{
    "openapi": "3.0.0",
    "info": {
        "title": "TheBuilding.Cloud API",
        "description": "One REST API for sites, buildings, entrances, people, PINs, intercom calls and automations — the same API the TheBuilding.Cloud web app, mobile app and AI assistants use.\n\nSend `Authorization: Bearer <your API key>` and `Accept: application/json` with every request. Most replies are `{\"success\": true, \"message\": \"…\", \"data\": …}`; errors are `{\"success\": false, \"message\": \"…\"}`. Each person may make 300 requests a minute.\n\nGuides, recipes, the Postman collection and AI tools: https://go.thebuilding.cloud/developers",
        "contact": {
            "name": "TheBuilding.Cloud API support",
            "url": "https://thebuilding.cloud/support",
            "email": "help@thebuilding.cloud"
        },
        "version": "1.0.0"
    },
    "servers": [
        {
            "url": "https://go.thebuilding.cloud/api",
            "description": "Live — Your real buildings"
        },
        {
            "url": "https://stage.thebuilding.cloud/api",
            "description": "Staging — Test copy of the platform (no real doors)"
        }
    ],
    "paths": {
        "/auth-token": {
            "post": {
                "tags": [
                    "Authentication"
                ],
                "summary": "Get an API token",
                "description": "Swaps an email and password for an API token. Send it as `Authorization: Bearer <token>`. An unknown email and a wrong password get the same 404 reply, and only 10 tries a minute are allowed per email and address. Give the token a `token_name` so you can find and delete it later in the dashboard. Tokens named `mcp:<app>` are for AI assistants: they expire after a while and replace the previous one with the same name.",
                "operationId": "login",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "email": {
                                        "type": "string"
                                    },
                                    "password": {
                                        "type": "string"
                                    },
                                    "token_name": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "email": "you@company.com",
                                    "password": "your-password",
                                    "token_name": "my-integration"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Signed in. Keep `access_token` secret; `expires_at` is null when the token never expires.",
                        "content": {
                            "application/json": {
                                "schema": {},
                                "example": {
                                    "message": "User Login Successfully.",
                                    "access_token": "12|Xq3…",
                                    "expires_at": null,
                                    "data": {
                                        "id": 7,
                                        "name": "Alex Morgan",
                                        "email": "you@company.com",
                                        "role_id": 2,
                                        "status": 1
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": []
            }
        },
        "/automation-scene/runs/{runId}/acknowledge": {
            "post": {
                "tags": [
                    "Automation"
                ],
                "summary": "Acknowledge a run (stops an escalation that checks {{ run.acknowledged }})",
                "operationId": "automation-scene.acknowledge",
                "parameters": [
                    {
                        "name": "runId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Acknowledged"
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/automation-scene/{id}/versions": {
            "get": {
                "tags": [
                    "Automation"
                ],
                "summary": "Saved versions of a rule, newest first",
                "operationId": "automation-scene.versions",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Versions"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/automation-scene/{id}/versions/{version}/restore": {
            "post": {
                "tags": [
                    "Automation"
                ],
                "summary": "Restore an earlier version (saved as a new version)",
                "operationId": "automation-scene.restoreVersion",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "version",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Restored"
                    },
                    "422": {
                        "description": "The version can't run any more",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/automation-scene/connections": {
            "get": {
                "tags": [
                    "Automation"
                ],
                "summary": "The organisation's saved connections (secrets never returned)",
                "operationId": "automation-scene.connections",
                "parameters": [
                    {
                        "name": "organizationId",
                        "in": "query",
                        "description": "Super admins: the organisation",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Connections"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Automation"
                ],
                "summary": "Save a connection",
                "operationId": "automation-scene.connections.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "name",
                                    "auth"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "organizationId": {
                                        "type": "integer"
                                    },
                                    "auth": {
                                        "type": "object"
                                    },
                                    "headers": {
                                        "type": "array",
                                        "items": {
                                            "type": "object"
                                        }
                                    },
                                    "hosts": {
                                        "description": "Web addresses the connection may be used with",
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Saved"
                    },
                    "422": {
                        "description": "Invalid",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/automation-scene": {
            "get": {
                "tags": [
                    "Automation"
                ],
                "summary": "Get list of automation scenes",
                "description": "Returns list of automation scenes",
                "operationId": "automation-scene.index",
                "responses": {
                    "200": {
                        "description": "Automation scenes list fetch successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "scene_module": {
                                            "type": "string",
                                            "example": "tuya, easyset"
                                        },
                                        "main_module": {
                                            "type": "string",
                                            "example": "easyset"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "0000-00-00 00:00:00"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "0000-00-00 00:00:00"
                                        },
                                        "scene": {
                                            "properties": {
                                                "actionSelectedModule": {
                                                    "type": "array",
                                                    "items": {
                                                        "properties": {
                                                            "module": {
                                                                "type": "string",
                                                                "example": "tuya"
                                                            },
                                                            "event": {
                                                                "type": "string",
                                                                "example": "change_brightness"
                                                            },
                                                            "device": {
                                                                "type": "string",
                                                                "example": "00000"
                                                            },
                                                            "additionalField": {
                                                                "type": "string",
                                                                "example": []
                                                            }
                                                        },
                                                        "type": "object"
                                                    }
                                                },
                                                "mainSelectedModule": {
                                                    "type": "array",
                                                    "items": {
                                                        "properties": {
                                                            "device": {
                                                                "type": "string",
                                                                "example": "00000"
                                                            },
                                                            "event": {
                                                                "type": "string",
                                                                "example": "create"
                                                            },
                                                            "module": {
                                                                "type": "string",
                                                                "example": "easyset"
                                                            }
                                                        },
                                                        "type": "object"
                                                    }
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Scene name",
                                    "scene_module": "tuya, easyset",
                                    "main_module": "easyset",
                                    "organization_id": 1,
                                    "created_at": "0000-00-00 00:00:00",
                                    "updated_at": "0000-00-00 00:00:00",
                                    "scene": {
                                        "mainSelectedModule": {
                                            "device": "00000",
                                            "event": "create",
                                            "module": "easyset"
                                        },
                                        "actionSelectedModule": [
                                            {
                                                "additionalField": [],
                                                "device": "00000",
                                                "event": "bulb_switch_on",
                                                "module": "tuya"
                                            },
                                            {
                                                "additionalField": [
                                                    {
                                                        "dropdownType": "modal",
                                                        "key": "change_brightness",
                                                        "selectedValue": 15
                                                    }
                                                ],
                                                "device": "00000",
                                                "event": "change_brightness",
                                                "module": "tuya"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Automation"
                ],
                "summary": "Create new automation scene",
                "description": "Create new automation scene",
                "operationId": "automation-scene.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "organizationId": {
                                        "type": "integer",
                                        "example": 2
                                    },
                                    "sceneName": {
                                        "type": "string",
                                        "example": "Scene name"
                                    },
                                    "scene": {
                                        "properties": {
                                            "actionSelectedModule": {
                                                "type": "array",
                                                "items": {
                                                    "properties": {
                                                        "module": {
                                                            "type": "string",
                                                            "example": "firebird"
                                                        },
                                                        "event": {
                                                            "type": "string",
                                                            "example": "generate_report"
                                                        },
                                                        "device": {
                                                            "type": "string",
                                                            "example": "00000"
                                                        },
                                                        "additionalField": {
                                                            "type": "string",
                                                            "example": []
                                                        }
                                                    },
                                                    "type": "object"
                                                }
                                            },
                                            "mainSelectedModule": {
                                                "type": "array",
                                                "items": {
                                                    "properties": {
                                                        "device": {
                                                            "type": "string",
                                                            "example": "00000"
                                                        },
                                                        "event": {
                                                            "type": "string",
                                                            "example": "update"
                                                        },
                                                        "module": {
                                                            "type": "string",
                                                            "example": "easyset"
                                                        }
                                                    },
                                                    "type": "object"
                                                }
                                            }
                                        },
                                        "type": "object"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "organizationId": "2",
                                    "sceneName": "Scene name",
                                    "scene": {
                                        "mainSelectedModule": {
                                            "device": "00000",
                                            "event": "update",
                                            "module": "easyset"
                                        },
                                        "actionSelectedModule": [
                                            {
                                                "additionalField": [],
                                                "device": "00000",
                                                "event": "bulb_switch_on",
                                                "module": "tuya"
                                            },
                                            {
                                                "additionalField": [
                                                    {
                                                        "dropdownType": "modal",
                                                        "key": "change_brightness",
                                                        "selectedValue": 15
                                                    }
                                                ],
                                                "device": "00000",
                                                "event": "change_brightness",
                                                "module": "tuya"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success"
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/automation-scene/module-events": {
            "get": {
                "tags": [
                    "Automation"
                ],
                "summary": "Get list of automation module events",
                "description": "Returns list of automation module events",
                "operationId": "automation-scene.module-events",
                "responses": {
                    "200": {
                        "description": "Automation module events list fetch successfully"
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/automation-scene/{id}": {
            "get": {
                "tags": [
                    "Automation"
                ],
                "summary": "Get details of automation scene",
                "description": "Returns one automation scene including JSON scene definition (triggers and actions).",
                "operationId": "automation-scene.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Automation scene primary key.",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Get details of automation scene",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "scene_module": {
                                            "type": "string",
                                            "example": "tuya, easyset"
                                        },
                                        "main_module": {
                                            "type": "string",
                                            "example": "easyset"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "0000-00-00 00:00:00"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "0000-00-00 00:00:00"
                                        },
                                        "scene": {
                                            "properties": {
                                                "actionSelectedModule": {
                                                    "type": "array",
                                                    "items": {
                                                        "properties": {
                                                            "module": {
                                                                "type": "string",
                                                                "example": "tuya"
                                                            },
                                                            "moduleLabel": {
                                                                "type": "string",
                                                                "example": "Tuya"
                                                            },
                                                            "event": {
                                                                "type": "string",
                                                                "example": "change_brightness"
                                                            },
                                                            "eventLabel": {
                                                                "type": "string",
                                                                "example": "Change brightness"
                                                            },
                                                            "device": {
                                                                "type": "string",
                                                                "example": "00000"
                                                            },
                                                            "deviceOutput": {
                                                                "type": "string",
                                                                "example": "ORC1"
                                                            },
                                                            "additionalField": {
                                                                "type": "string",
                                                                "example": []
                                                            }
                                                        },
                                                        "type": "object"
                                                    }
                                                },
                                                "mainSelectedModule": {
                                                    "type": "array",
                                                    "items": {
                                                        "properties": {
                                                            "device": {
                                                                "type": "string",
                                                                "example": "00000"
                                                            },
                                                            "event": {
                                                                "type": "string",
                                                                "example": "create"
                                                            },
                                                            "eventLabel": {
                                                                "type": "string",
                                                                "example": "Create pin"
                                                            },
                                                            "module": {
                                                                "type": "string",
                                                                "example": "easyset"
                                                            },
                                                            "moduleLabel": {
                                                                "type": "string",
                                                                "example": "Easyset"
                                                            }
                                                        },
                                                        "type": "object"
                                                    }
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Scene name",
                                    "scene_module": "tuya, easyset",
                                    "main_module": "easyset",
                                    "organization_id": 1,
                                    "created_at": "0000-00-00 00:00:00",
                                    "updated_at": "0000-00-00 00:00:00",
                                    "scene": {
                                        "mainSelectedModule": {
                                            "device": "00000",
                                            "event": "create",
                                            "eventLabel": "Create pin",
                                            "module": "easyset",
                                            "moduleLabel": "Easyset"
                                        },
                                        "actionSelectedModule": [
                                            {
                                                "additionalField": [],
                                                "device": "00000",
                                                "event": "bulb_switch_on",
                                                "eventLabel": "Switch on",
                                                "module": "tuya",
                                                "moduleLabel": "Tuya"
                                            },
                                            {
                                                "additionalField": [
                                                    {
                                                        "dropdownType": "modal",
                                                        "key": "change_brightness",
                                                        "selectedValue": 15,
                                                        "eventLable": "Change brightness"
                                                    }
                                                ],
                                                "device": "00000",
                                                "event": "change_brightness",
                                                "eventLabel": "Change brightness",
                                                "module": "tuya",
                                                "moduleLabel": "Tuya"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Automation"
                ],
                "summary": "Update an automation rule",
                "description": "Same body as POST /automation-scene. The rule keeps its organisation unless a super admin sends organizationId.",
                "operationId": "automation-scene.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success"
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Automation"
                ],
                "summary": "Delete existing automation scene",
                "description": "Delete existing automation scene",
                "operationId": "automation-scene.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Automation scene id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Scene deleted successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/automation-scene/sync-operators/{id}": {
            "post": {
                "tags": [
                    "Automation"
                ],
                "summary": "Sync operators with autoamtion scene.",
                "description": "Share scene with operators. this operation will execute only from organizaion role. The Api request will sync user list so need to send all operators ids as array in payload",
                "operationId": "automation-scene.syncOperators",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Automation scene id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "users": {
                                        "type": "array",
                                        "items": {
                                            "type": "integer"
                                        },
                                        "example": [
                                            3
                                        ]
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Success"
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/automation-scene/test-scene/{id}": {
            "get": {
                "tags": [
                    "Automation"
                ],
                "summary": "Test automation scene",
                "description": "Test automation scene to check the result",
                "operationId": "automation-scene.testAutomationScene",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Automation scene id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success"
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/background-status/groups": {
            "get": {
                "tags": [
                    "Background status"
                ],
                "summary": "Get list of background notifications status",
                "description": "Returns list of background notifications status",
                "operationId": "background-status.indexGroups",
                "responses": {
                    "200": {
                        "description": "Notifications List Fetch Successfully"
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/background-status": {
            "get": {
                "tags": [
                    "Background status"
                ],
                "summary": "Get list of background notifications status",
                "description": "Returns list of background notifications status",
                "operationId": "background-status.index",
                "responses": {
                    "200": {
                        "description": "Notifications List Fetch Successfully"
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/background-status/{id}": {
            "get": {
                "tags": [
                    "Background status"
                ],
                "summary": "Restart background-status",
                "description": "Restart background-status",
                "operationId": "background-status.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "background-status id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation"
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Background status"
                ],
                "summary": "Delete existing background-status",
                "description": "Deletes a record and returns no content",
                "operationId": "background-status.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "background-status id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Background-status Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/background-status/clear-all": {
            "delete": {
                "tags": [
                    "Background status"
                ],
                "summary": "Delete all existing background-status",
                "description": "Deletes all record and returns no content",
                "operationId": "background-status.clearAll",
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Background-status Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/bg-notifications": {
            "get": {
                "tags": [
                    "Background Notification"
                ],
                "summary": "Get list of background notifications group",
                "description": "Returns list of background notifications group",
                "operationId": "getBgNotification",
                "responses": {
                    "200": {
                        "description": "Notifications List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "name": {
                                            "type": "string",
                                            "example": "Notification title"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2022-10-27T09:52:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "name": "Notification title",
                                    "created_at": "2022-10-27T09:52:53.000000Z"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/buildings": {
            "get": {
                "tags": [
                    "Building"
                ],
                "summary": "Get list of buildings",
                "description": "Returns list of buildings",
                "operationId": "buildings.index",
                "responses": {
                    "200": {
                        "description": "Building List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "address": {
                                            "type": "string",
                                            "example": "address"
                                        },
                                        "comment": {
                                            "type": "string",
                                            "example": "comment"
                                        },
                                        "site_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "entrances_count": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "site": {
                                            "properties": {
                                                "id": {
                                                    "type": "number"
                                                },
                                                "name": {
                                                    "type": "string"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Downtown",
                                    "address": "Address",
                                    "comment": "Comment",
                                    "site_id": 1,
                                    "photo": null,
                                    "entrances_count": 1,
                                    "status": 1,
                                    "site": {
                                        "id": 1,
                                        "name": "Site_1"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Building"
                ],
                "summary": "Create new building",
                "description": "Returns building data",
                "operationId": "buildings.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "address": {
                                        "type": "string"
                                    },
                                    "comment": {
                                        "type": "string"
                                    },
                                    "site_id": {
                                        "type": "integer"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "name",
                                    "address": "address",
                                    "comment": "comment",
                                    "site_id": 1
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "address": {
                                            "type": "string",
                                            "example": "address"
                                        },
                                        "comment": {
                                            "type": "string",
                                            "example": "comment"
                                        },
                                        "site_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "site": {
                                            "properties": {
                                                "id": {
                                                    "type": "number"
                                                },
                                                "name": {
                                                    "type": "string"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/buildings/dropdown": {
            "get": {
                "tags": [
                    "Building"
                ],
                "summary": "Get list of building",
                "description": "Returns list of building",
                "operationId": "buildings.dropdown",
                "responses": {
                    "200": {
                        "description": "Building List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "address": {
                                            "type": "string",
                                            "example": "address"
                                        },
                                        "comment": {
                                            "type": "string",
                                            "example": "comment"
                                        },
                                        "site_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "entrances_count": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "site": {
                                            "properties": {
                                                "id": {
                                                    "type": "number"
                                                },
                                                "name": {
                                                    "type": "string"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Downtown",
                                    "address": "Address",
                                    "comment": "Comment",
                                    "site_id": 1,
                                    "photo": null,
                                    "entrances_count": 1,
                                    "status": 1,
                                    "site": {
                                        "id": 1,
                                        "name": "Site_1"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/buildings/{id}": {
            "get": {
                "tags": [
                    "Building"
                ],
                "summary": "Get details of building",
                "description": "Returns building data",
                "operationId": "buildings.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Building id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successfull operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "site_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "address": {
                                            "type": "string",
                                            "example": "address"
                                        },
                                        "comment": {
                                            "type": "string",
                                            "example": "comment"
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Building"
                ],
                "summary": "Update existing building",
                "description": "Returns updated building data",
                "operationId": "buildings.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "address": {
                                        "type": "string"
                                    },
                                    "comment": {
                                        "type": "string"
                                    },
                                    "site_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "string",
                                    "address": "string",
                                    "comment": "string",
                                    "site_id": "number"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "site_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "address": {
                                            "type": "string",
                                            "example": "address"
                                        },
                                        "comment": {
                                            "type": "string",
                                            "example": "comment"
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "site": {
                                            "properties": {
                                                "id": {
                                                    "type": "number"
                                                },
                                                "name": {
                                                    "type": "string"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Building"
                ],
                "summary": "Delete existing Building",
                "description": "Deletes a record and returns no content",
                "operationId": "buildings.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Building id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Building Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/buildings/deactivate/{id}": {
            "get": {
                "tags": [
                    "Building"
                ],
                "summary": "Deactivate Building",
                "description": "Deactivate building by building id",
                "operationId": "buildings.deactivate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Building id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Building Deactivated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/buildings/activate/{id}": {
            "get": {
                "tags": [
                    "Building"
                ],
                "summary": "Activate Building",
                "description": "Activate building by building id",
                "operationId": "buildings.activate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Building id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Building Activated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/buildings/{id}/entrances": {
            "get": {
                "tags": [
                    "Building"
                ],
                "summary": "Get list of entrances in a building",
                "description": "Returns list of entrances in the building",
                "operationId": "entrances.building",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Building id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Entrances List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "building_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "device_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "address": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "comment": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Entrance name",
                                    "building_id": 1,
                                    "device_id": 1,
                                    "address": null,
                                    "comment": null,
                                    "photo": null,
                                    "status": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/buildings/{id}/usage": {
            "get": {
                "tags": [
                    "Building"
                ],
                "summary": "Get Building Usage",
                "description": "Returns Building Usage",
                "operationId": "buildings.usage",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Building id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Building Usage"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/buildings/{id}/access-logs": {
            "get": {
                "tags": [
                    "Building"
                ],
                "summary": "Get building-scoped access logs",
                "description": "Returns access log rows linked to the building. For org-wide logs use GET /access-logs (access-logs.index).",
                "operationId": "buildings.getAccessLogs",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Building id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Building Access Logs"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/buildings/{id}/invoices": {
            "get": {
                "tags": [
                    "Building"
                ],
                "summary": "Get Building Invoices",
                "description": "Returns Building Invoices",
                "operationId": "buildings.getBuildingInvoices",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Building id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Building Invoices"
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/building-groups": {
            "get": {
                "tags": [
                    "Building Group"
                ],
                "summary": "Get list of building-groups",
                "description": "Returns list of building-groups",
                "operationId": "building-groups.index",
                "responses": {
                    "200": {
                        "description": "Building Group List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "users_count": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Building Group_1",
                                    "organization_id": 2,
                                    "status": 1,
                                    "users_count": 2
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Building Group"
                ],
                "summary": "Create new building group",
                "description": "Returns building group data",
                "operationId": "building-groups.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "entrance_groups": {
                                        "type": "array",
                                        "items": {
                                            "type": "number"
                                        }
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "name",
                                    "entrance_groups": [
                                        1,
                                        2
                                    ]
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/building-groups/dropdown": {
            "get": {
                "tags": [
                    "Building Group"
                ],
                "summary": "Get list of building-groups",
                "description": "Returns list of building-groups",
                "operationId": "building-groups.dropdown",
                "responses": {
                    "200": {
                        "description": "Building Group List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "users_count": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Building Group_1",
                                    "organization_id": 2,
                                    "status": 1,
                                    "users_count": 2
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/building-groups/{id}": {
            "get": {
                "tags": [
                    "Building Group"
                ],
                "summary": "Get details of building group",
                "description": "Returns building group data",
                "operationId": "building-groups.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Building Group id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Building Group"
                ],
                "summary": "Update existing building group",
                "description": "Returns updated building group data",
                "operationId": "building-groups.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "entrance_groups": {
                                        "type": "array",
                                        "items": {
                                            "type": "number"
                                        }
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "name",
                                    "entrance_groups": [
                                        1,
                                        2
                                    ]
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Building Group"
                ],
                "summary": "Delete existing Building Group",
                "description": "Deletes a record and returns no content",
                "operationId": "building-groups.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Building Group id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Building Group Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/building-groups/deactivate/{id}": {
            "get": {
                "tags": [
                    "Building Group"
                ],
                "summary": "Deactivate Building Group",
                "description": "Deactivate building group by building group id",
                "operationId": "building-groups.deactivate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Building Group id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Building Group Deactivated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/building-groups/activate/{id}": {
            "get": {
                "tags": [
                    "Building Group"
                ],
                "summary": "Activate Building Group",
                "description": "Activate building group by building group id",
                "operationId": "building-groups.activate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Building Group id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Building Group Activated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/building-groups/unlink-user/{id}": {
            "delete": {
                "tags": [
                    "Building Group"
                ],
                "summary": "Unlink user from building group",
                "description": "Removes a person from a building group. `id` is the building-group membership. Operators lose the doors that building group gave them for remote unlock.",
                "operationId": "building-groups.unlinkUser",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "building group id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "user_id"
                                ],
                                "properties": {
                                    "user_id": {
                                        "type": "integer",
                                        "example": 123
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "User removed successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/building-groups/link-user/{id}": {
            "post": {
                "tags": [
                    "Building Group"
                ],
                "summary": "link User to Building Group",
                "description": "Adds a person (usually an operator) to a building group, so they can manage and remotely open the doors of its buildings.",
                "operationId": "building-groups.linkUser",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "building group id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "user_id"
                                ],
                                "properties": {
                                    "user_id": {
                                        "type": "integer",
                                        "example": 123
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "User added Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/burglar-alarms": {
            "get": {
                "tags": [
                    "Burglar Alarm"
                ],
                "summary": "Returns the list of burglar alarm devices",
                "description": "Returns the list of burglar alarm devices",
                "operationId": "burglar-alarms.index",
                "responses": {
                    "200": {
                        "description": "Burglar Alarm data Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "et"
                                        },
                                        "account_id": {
                                            "type": "string",
                                            "example": "exercitationem"
                                        },
                                        "building_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "time_format": {
                                            "type": "string",
                                            "example": "beatae"
                                        },
                                        "encryption_key": {
                                            "type": "string",
                                            "example": "quis"
                                        },
                                        "protocol": {
                                            "type": "string",
                                            "example": "temporibus"
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "et",
                                    "account_id": "exercitationem",
                                    "building_id": 2,
                                    "time_format": "beatae",
                                    "encryption_key": "quis",
                                    "protocol": "temporibus",
                                    "status": 1,
                                    "organization_id": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Burglar Alarm"
                ],
                "summary": "Adding a new device",
                "description": "Adding a new device",
                "operationId": "burglar-alarms.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "name",
                                    "account_id",
                                    "protocol",
                                    "time_format",
                                    "building_id"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "account_id": {
                                        "type": "string"
                                    },
                                    "protocol": {
                                        "type": "string"
                                    },
                                    "time_format": {
                                        "type": "string"
                                    },
                                    "building_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "et",
                                    "account_id": "exercitationem",
                                    "protocol": "temporibus",
                                    "time_format": "beatae",
                                    "building_id": 2
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Device successfully added",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/burglar-alarms/{id}": {
            "get": {
                "tags": [
                    "Burglar Alarm"
                ],
                "summary": "Get Alarm Device",
                "description": "Returns Alarm Device",
                "operationId": "burglar-alarms.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "et"
                                        },
                                        "account_id": {
                                            "type": "string",
                                            "example": "exercitationem"
                                        },
                                        "building_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "time_format": {
                                            "type": "string",
                                            "example": "beatae"
                                        },
                                        "encryption_key": {
                                            "type": "string",
                                            "example": "quis"
                                        },
                                        "protocol": {
                                            "type": "string",
                                            "example": "temporibus"
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "et",
                                    "account_id": "exercitationem",
                                    "building_id": 2,
                                    "time_format": "beatae",
                                    "encryption_key": "quis",
                                    "protocol": "temporibus",
                                    "status": 1,
                                    "organization_id": 1,
                                    "created_at": "2021-12-11T09:25:53.000000Z",
                                    "updated_at": "2021-12-11T09:25:53.000000Z"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Burglar Alarm"
                ],
                "summary": "Update device",
                "description": "Update device",
                "operationId": "burglar-alarms.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "account_id": {
                                        "type": "string"
                                    },
                                    "protocol": {
                                        "type": "string"
                                    },
                                    "time_format": {
                                        "type": "string"
                                    },
                                    "building_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "et",
                                    "account_id": "exercitationem",
                                    "protocol": "temporibus",
                                    "time_format": "beatae",
                                    "building_id": 2
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Burglar Alarm"
                ],
                "summary": "Delete device",
                "description": "Delete device",
                "operationId": "burglar-alarms.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Device deleted successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/burglar-alarms/deactivate/{id}": {
            "get": {
                "tags": [
                    "Burglar Alarm"
                ],
                "summary": "Deactivate device",
                "description": "Deactivate device",
                "operationId": "burglar-alarms.deactivate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Device successfully deactivated",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/burglar-alarms/activate/{id}": {
            "get": {
                "tags": [
                    "Burglar Alarm"
                ],
                "summary": "Activate device",
                "description": "Activate device",
                "operationId": "burglar-alarms.active",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Device successfully activated",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/burglar-alarm-events": {
            "get": {
                "tags": [
                    "Burglar Alarm"
                ],
                "summary": "Get list of events",
                "description": "Returns list of evets",
                "operationId": "burglar-alarm-events.index",
                "responses": {
                    "200": {
                        "description": "Event List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "account": "string",
                                    "ti": "",
                                    "ri": "",
                                    "content": "string",
                                    "code": "string",
                                    "message": "string",
                                    "event_qualifier": "string",
                                    "event_type": "sring"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Burglar Alarm"
                ],
                "summary": "Store Alarm Events",
                "description": "Returns alarm device events",
                "operationId": "burglar-alarm-events.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "account": {
                                        "type": "string"
                                    },
                                    "ti": {
                                        "type": "string"
                                    },
                                    "ri": {
                                        "type": "string"
                                    },
                                    "content": {
                                        "type": "string"
                                    },
                                    "code": {
                                        "type": "string"
                                    },
                                    "message": {
                                        "type": "string"
                                    },
                                    "event_qualifier": {
                                        "type": "string"
                                    },
                                    "event_type": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "account": "string",
                                    "ti": "",
                                    "ri": "",
                                    "content": "string",
                                    "code": "string",
                                    "message": "string",
                                    "event_qualifier": "string",
                                    "event_type": "sring"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/burglar-alarm-events/{account_id}": {
            "get": {
                "tags": [
                    "Burglar Alarm"
                ],
                "summary": "Get specific alarm device events",
                "description": "Returns list of Device Event",
                "operationId": "burglar-alarm-events.show",
                "parameters": [
                    {
                        "name": "account",
                        "in": "path",
                        "description": "Account ID",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation"
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/burglar-alarm-events/{id}": {
            "delete": {
                "tags": [
                    "Burglar Alarm"
                ],
                "summary": "Delete  event",
                "description": "Delete event",
                "operationId": "burglar-alarm-events.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "event id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "event deleted successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/user_charts": {
            "get": {
                "tags": [
                    "Charts"
                ],
                "summary": "Get user chart",
                "description": "Returns user charts data",
                "operationId": "user_charts",
                "responses": {
                    "200": {
                        "description": "User chart info retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "labels": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "datasets": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "label": {
                                                        "type": "string"
                                                    },
                                                    "data": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "number"
                                                        }
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "labels": [
                                        "Oct",
                                        "Nov",
                                        "Dec"
                                    ],
                                    "datasets": {
                                        "data": [
                                            2,
                                            33,
                                            32
                                        ],
                                        "label": "Statistics"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrance_charts": {
            "get": {
                "tags": [
                    "Charts"
                ],
                "summary": "Get entrance chart",
                "description": "Returns entrance charts data",
                "operationId": "entrance_chart_info",
                "responses": {
                    "200": {
                        "description": "Entrance chart info retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "labels": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "datasets": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "label": {
                                                        "type": "string"
                                                    },
                                                    "data": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "number"
                                                        }
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "labels": [
                                        "Oct",
                                        "Nov",
                                        "Dec"
                                    ],
                                    "datasets": {
                                        "data": [
                                            2,
                                            33,
                                            32
                                        ],
                                        "label": "Statistics"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/issue-reports-charts": {
            "get": {
                "tags": [
                    "Charts"
                ],
                "summary": "Get issue reports chart",
                "description": "Returns issue reports chart data",
                "operationId": "issue_reports_charts",
                "responses": {
                    "200": {
                        "description": "Issue reports chart info retrieved successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "labels": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "datasets": {
                                            "type": "array",
                                            "items": {
                                                "type": "integer"
                                            }
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "labels": [
                                        "Total issues",
                                        "Not resolved issue",
                                        "Resolved issues"
                                    ],
                                    "datasets": [
                                        10,
                                        2,
                                        8
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/dev-permissions": {
            "post": {
                "tags": [
                    "Other Devices"
                ],
                "summary": "Create new record",
                "description": "Returns message",
                "operationId": "dev-permissions.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "type": {
                                        "type": "string"
                                    },
                                    "building_id": {
                                        "type": "integer"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "name",
                                    "type": "comment",
                                    "building_id": 1
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "building_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "type": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/dev-permissions/{id}": {
            "put": {
                "tags": [
                    "Other Devices"
                ],
                "summary": "Update existing device",
                "description": "Returns updated device data",
                "operationId": "dev-permissions.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Device updated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Other Devices"
                ],
                "summary": "Delete existing record",
                "description": "Deletes a record and returns no content",
                "operationId": "dev-permissions.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Record id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/dev-permissions/{id}/{type}": {
            "get": {
                "tags": [
                    "Other Devices"
                ],
                "summary": "List cloud devices assignable to a building permission row",
                "description": "Returns Tuya, parking camera, or CCTV devices for the given building_dev_permissions record. `type` is the device family (e.g. tuya, parking_camera, cctv_stream).",
                "operationId": "dev-permissions.devices",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "building_dev_permissions primary key.",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "type",
                        "in": "path",
                        "description": "Device type slug.",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "tuya"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "type": {
                                            "type": "string",
                                            "example": "address"
                                        },
                                        "building_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Downtown",
                                    "type": "Address",
                                    "site_id": 1,
                                    "status": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/device-event/tuya": {
            "get": {
                "tags": [
                    "Device Event Log"
                ],
                "summary": "Get list of event",
                "description": "Returns list of event",
                "operationId": "tuyaDeviceEvent",
                "responses": {
                    "200": {
                        "description": "Tuya Event Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/device-event/easyset": {
            "get": {
                "tags": [
                    "Device Event Log"
                ],
                "summary": "Get list of event",
                "description": "Returns list of event",
                "operationId": "easySetDeviceEvent",
                "responses": {
                    "200": {
                        "description": "Event List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/device-groups": {
            "get": {
                "tags": [
                    "Device group"
                ],
                "summary": "Get list of device-groups",
                "description": "Returns list of device-groups",
                "operationId": "device-groups.index",
                "responses": {
                    "200": {
                        "description": "Device group List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "user_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Device group"
                ],
                "summary": "Create new Device group",
                "description": "Returns Device group data",
                "operationId": "device-groups.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "user_id": {
                                        "type": "integer"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "name",
                                    "user_id": 1
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "user_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/device-groups/dropdown": {
            "get": {
                "tags": [
                    "Device group"
                ],
                "summary": "Get list of Device group",
                "description": "Returns list of Device group",
                "operationId": "device-groups.dropdown",
                "responses": {
                    "200": {
                        "description": "Device group List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "user_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/device-groups/{id}": {
            "put": {
                "tags": [
                    "Device group"
                ],
                "summary": "Update existing Device group",
                "description": "Returns updated Device group data",
                "operationId": "device-groups.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "user_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "string",
                                    "user_id": "number"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "user_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Device group"
                ],
                "summary": "Delete existing Device group",
                "description": "Deletes a record and returns no content",
                "operationId": "device-groups.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device group id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Device group Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/device-groups/deactivate/{id}": {
            "get": {
                "tags": [
                    "Device group"
                ],
                "summary": "Deactivate Device group",
                "description": "Deactivate Device group by Device group id",
                "operationId": "device-groups.deactivate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device group id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Device group Deactivated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/device-groups/activate/{id}": {
            "get": {
                "tags": [
                    "Device group"
                ],
                "summary": "Activate device-groups",
                "description": "Activate device-groups by device-groups id",
                "operationId": "device-groups.activate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "device-groups id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "device-groups Activated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/device-timers": {
            "get": {
                "tags": [
                    "Device timers"
                ],
                "summary": "Get list of Device timers",
                "description": "Returns list of Device timers",
                "operationId": "device-timers.index",
                "responses": {
                    "200": {
                        "description": "Device timers List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "start_time": {
                                            "type": "string",
                                            "example": "12:00"
                                        },
                                        "end_time": {
                                            "type": "string",
                                            "example": "12:00"
                                        },
                                        "start_date": {
                                            "type": "string",
                                            "example": "12-12-2002"
                                        },
                                        "end_date": {
                                            "type": "string",
                                            "example": "12-12-2002"
                                        },
                                        "selected_days": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "name",
                                    "start_time": "12:00",
                                    "end_time": "12:00",
                                    "start_date": "12-12-2002",
                                    "end_date": "12-12-2002",
                                    "selected_days": 1,
                                    "organization_id": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Device timers"
                ],
                "summary": "Create new Device Timer",
                "description": "Returns Device Timer data",
                "operationId": "device-timers.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "start_time": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "end_time": {
                                        "type": "string"
                                    },
                                    "start_date": {
                                        "type": "string"
                                    },
                                    "end_date": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "name",
                                    "start_time": "string",
                                    "end_time": "string",
                                    "start_date": "string",
                                    "end_date": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "number",
                                            "example": "name"
                                        },
                                        "start_time": {
                                            "type": "string",
                                            "example": "string"
                                        },
                                        "end_time": {
                                            "type": "string",
                                            "example": "string"
                                        },
                                        "start_date": {
                                            "type": "string",
                                            "example": "string"
                                        },
                                        "end_date": {
                                            "type": "string",
                                            "example": "string"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/device-timers/all": {
            "get": {
                "tags": [
                    "Device timers"
                ],
                "summary": "Get list of Device timers",
                "description": "Returns list of Device timers",
                "operationId": "device-timers.getAll",
                "responses": {
                    "200": {
                        "description": "Device timers List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "start_time": {
                                            "type": "string",
                                            "example": "12:00"
                                        },
                                        "end_time": {
                                            "type": "string",
                                            "example": "12:00"
                                        },
                                        "start_date": {
                                            "type": "string",
                                            "example": "12-12-2002"
                                        },
                                        "end_date": {
                                            "type": "string",
                                            "example": "12-12-2002"
                                        },
                                        "selected_days": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "name",
                                    "start_time": "12:00",
                                    "end_time": "12:00",
                                    "start_date": "12-12-2002",
                                    "end_date": "12-12-2002",
                                    "selected_days": 1,
                                    "organization_id": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/device-timers/{id}": {
            "get": {
                "tags": [
                    "Device timers"
                ],
                "summary": "Get details of Device Timer",
                "description": "Returns Device Timer data",
                "operationId": "device-timers.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device Timer id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "start_time": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "end_time": {
                                            "type": "string",
                                            "example": "string"
                                        },
                                        "start_date": {
                                            "type": "string",
                                            "example": "string"
                                        },
                                        "end_date": {
                                            "type": "string",
                                            "example": "string"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Device timers"
                ],
                "summary": "Update existing Device Timer",
                "description": "Returns updated Device Timer data",
                "operationId": "device-timers.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "start_time": {
                                        "type": "string"
                                    },
                                    "end_time": {
                                        "type": "string"
                                    },
                                    "start_date": {
                                        "type": "string"
                                    },
                                    "end_date": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "string",
                                    "start_time": "string",
                                    "end_time": "string",
                                    "start_date": "string",
                                    "end_date": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "string"
                                        },
                                        "start_time": {
                                            "type": "string",
                                            "example": "string"
                                        },
                                        "end_time": {
                                            "type": "string",
                                            "example": "string"
                                        },
                                        "start_date": {
                                            "type": "string",
                                            "example": "string"
                                        },
                                        "end_date": {
                                            "type": "string",
                                            "example": "string"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Device timers"
                ],
                "summary": "Delete existing Device Timer",
                "description": "Deletes a record and returns no content",
                "operationId": "device-timers.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device Timer id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Device Timer Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrances/{id}/door-schedules": {
            "get": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Door schedules",
                "description": "Schedules that open, close or trigger this door.",
                "operationId": "entrances.doorSchedulesIndex",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Add a door schedule",
                "description": "Creates a schedule for this door: open, close, open-then-close or a short trigger, once or repeating. The server checks the times and creates the cloud timers; the reply is the saved schedule.",
                "operationId": "entrances.doorSchedulesStore",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "name",
                                    "action",
                                    "kind",
                                    "timezone",
                                    "open_expression"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "action": {
                                        "type": "string",
                                        "enum": [
                                            "pair",
                                            "open",
                                            "close",
                                            "trigger"
                                        ]
                                    },
                                    "kind": {
                                        "type": "string",
                                        "enum": [
                                            "once",
                                            "rate",
                                            "calendar",
                                            "text"
                                        ]
                                    },
                                    "timezone": {
                                        "type": "string",
                                        "example": "Europe/London"
                                    },
                                    "open_expression": {
                                        "type": "string",
                                        "example": "cron(0 8 ? * MON-FRI *)"
                                    },
                                    "close_mode": {
                                        "type": "string",
                                        "enum": [
                                            "schedule",
                                            "after",
                                            "next_day"
                                        ]
                                    },
                                    "close_expression": {
                                        "type": "string",
                                        "example": "cron(0 18 ? * MON-FRI *)"
                                    },
                                    "close_after_minutes": {
                                        "type": "integer"
                                    },
                                    "close_at_time": {
                                        "type": "string",
                                        "example": "06:00"
                                    },
                                    "starts_at": {
                                        "type": "string",
                                        "format": "date-time"
                                    },
                                    "ends_at": {
                                        "type": "string",
                                        "format": "date-time"
                                    },
                                    "retry_seconds": {
                                        "type": "integer",
                                        "enum": [
                                            60,
                                            300,
                                            900,
                                            3600,
                                            86400
                                        ]
                                    },
                                    "flex_minutes": {
                                        "type": "integer",
                                        "enum": [
                                            0,
                                            5,
                                            15,
                                            60
                                        ]
                                    },
                                    "automation_id": {
                                        "type": "integer"
                                    },
                                    "settings": {
                                        "type": "object"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Created"
                    },
                    "422": {
                        "description": "Not valid",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "502": {
                        "description": "AWS refused it"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/door-schedules": {
            "get": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Door schedules of every entrance you manage",
                "description": "Saved door schedules (finished one-offs included) of the entrances in the person's scope, 50 a page, with the entrance name. Super admins, and organisations and operators who may view entrances.",
                "operationId": "doorSchedules.all",
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "description": "Search schedule or entrance names",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "entrance_id",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List, with next_page (null on the last page)"
                    },
                    "403": {
                        "description": "Not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Get list of Easyset devices",
                "description": "Lists the Ontico (Easyset) controllers your account can see, with their status.",
                "operationId": "easyset-devices.index",
                "responses": {
                    "200": {
                        "description": "Easyset Devices List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/sync-devices": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Get list of Easyset devices after sync",
                "description": "Refreshes the list of Ontico (Easyset) controllers from the device cloud, then returns it.",
                "operationId": "easyset-devices.syncDevices",
                "responses": {
                    "200": {
                        "description": "Easyset Devices List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/{id}": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Get details of easyset-device",
                "description": "Returns easyset-device data",
                "operationId": "easyset-devices.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "imei": {
                                            "type": "number",
                                            "example": 342341
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "type": {
                                            "type": "string",
                                            "example": "type"
                                        },
                                        "phone_number": {
                                            "type": "string",
                                            "example": "phone_number"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Update existing Easyset Device",
                "description": "Update existing Easyset Device",
                "operationId": "easyset-devices.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "phone_number": {
                                        "type": "string"
                                    },
                                    "description": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "string",
                                    "phone_number": "string",
                                    "description": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Easyset Device Updated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/unlock/{id}": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Unlock entrance of easyset-device",
                "description": "Returns success data",
                "operationId": "easyset-devices.unlock",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Entrance unlocked Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/send-changes/{id}": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Send Changes To Device of easyset-device",
                "description": "Returns success data",
                "operationId": "easyset-devices.sendChangesToDevice",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Request Sent Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/response/{operationId}/{deviceId}": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Get Response of Device changes",
                "description": "Returns success data",
                "operationId": "easyset-devices.getDevResponse",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Response returned Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/abort-operation/{id}": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Abort Operation of Device changes",
                "description": "Returns success data",
                "operationId": "easyset-devices.abortOperation",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Operation aborted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/access-logs": {
            "get": {
                "tags": [
                    "Access Logs"
                ],
                "summary": "List access control logs",
                "description": "Paginated org-scoped access events (door unlocks, PIN use, etc.). UI: Logs → Access Control Logs. Requires easyset_access_logs permission.",
                "operationId": "access-logs.index",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/PaginationPerPage"
                    },
                    {
                        "$ref": "#/components/parameters/PaginationColumnName"
                    },
                    {
                        "$ref": "#/components/parameters/PaginationOrder"
                    },
                    {
                        "$ref": "#/components/parameters/PaginationSearch"
                    },
                    {
                        "name": "logsIds",
                        "in": "query",
                        "description": "Filter to specific log primary keys.",
                        "required": false,
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "integer"
                            }
                        }
                    },
                    {
                        "name": "selectedAll",
                        "in": "query",
                        "description": "When exporting selection, indicates all rows selected.",
                        "required": false,
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "Start of the period, e.g. 2026-10-01 or 2026-10-01 08:00:00. Only used together with to_date.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2026-10-01"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "End of the period. A plain date means the start of that day, so use the next day (or 23:59:59) to include all of it.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2026-11-01"
                        }
                    },
                    {
                        "name": "event_type",
                        "in": "query",
                        "description": "Only this kind of event, as shown in the event_type field of each row.",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "access_status",
                        "in": "query",
                        "description": "rejected = only refused PIN attempts. accepted leaves out refused PINs but also rows without details, so leave it out to see everything.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "accepted",
                                "rejected"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Access logs retrieved",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/event-log": {
            "get": {
                "tags": [
                    "Access Logs"
                ],
                "summary": "(Deprecated) List access logs",
                "description": "Deprecated alias of GET /access-logs. Prefer access-logs.index.",
                "operationId": "easyset-devices.deviceEventLog",
                "responses": {
                    "200": {
                        "description": "Access logs retrieved",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "deprecated": true,
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Store Easyset devices event log",
                "description": "Records an event (a door opening, a PIN used) reported by an Ontico (Easyset) controller.",
                "operationId": "easyset-devices.storeDeviceEventLog",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "event_type": {
                                        "type": "string"
                                    },
                                    "time": {
                                        "type": "string"
                                    },
                                    "user": {
                                        "type": "string"
                                    },
                                    "output": {
                                        "type": "string"
                                    },
                                    "extra_info": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "event_type": "string",
                                    "time": "string",
                                    "user": "string",
                                    "output": "string",
                                    "extra_info": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Easyset Device Event Log Saved Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": []
            }
        },
        "/access-logs/{id}": {
            "delete": {
                "tags": [
                    "Access Logs"
                ],
                "summary": "Delete an access log row",
                "description": "Super admin only. Permanently deletes one access log record by primary key.",
                "operationId": "access-logs.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Access log primary key.",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Deleted",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Not authorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/event-log/{id}": {
            "delete": {
                "tags": [
                    "Access Logs"
                ],
                "summary": "(Deprecated) Delete access log",
                "description": "Deprecated: deletes one Ontico (Easyset) access log entry. Kept for older callers.",
                "operationId": "easyset-devices.deleteDeviceEventLog",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Deleted",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "deprecated": true,
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/device-service-buttons/{id}": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Get Response of Device Service Buttons",
                "description": "Returns success data",
                "operationId": "easyset-devices.getDevServiceButtons",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Response returned Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/dev-intercom-apartment/{id}/{position}": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Get the intercom apartment buttons of an Easyset device",
                "description": "Returns success data",
                "operationId": "easyset-devices.getDevIntercomApartment",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Response returned Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/device-service-buttons": {
            "post": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Store Easyset devices service-buttons",
                "description": "Saves the service-button settings of an Ontico (Easyset) intercom controller.",
                "operationId": "easyset-devices.updateDevServiceButton",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "device_id": {
                                        "type": "string"
                                    },
                                    "param": {
                                        "type": "string"
                                    },
                                    "user": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "device_id": "string",
                                    "param": "string",
                                    "user": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Easyset Device Service Buttons Saved Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/dev-intercom-apartment": {
            "post": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Store Easyset devices Intercom-buttons",
                "description": "Saves the apartment (call) buttons of an Ontico (Easyset) intercom controller.",
                "operationId": "easyset-devices.updateDevIntercomApartment",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "device_id": {
                                        "type": "string"
                                    },
                                    "param": {
                                        "type": "string"
                                    },
                                    "user": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "device_id": "string",
                                    "param": "string",
                                    "user": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Easyset Device Intercom Buttons Saved Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/fw-upgrade/{deviceId}": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Upgrade device firmware",
                "description": "Asks an Ontico (Easyset) controller to update its firmware.",
                "operationId": "easyset-devices.fwUpgrade",
                "parameters": [
                    {
                        "name": "deviceId",
                        "in": "path",
                        "description": "Easyset-device id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Easyset Device Firmware update request Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/add-device": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Add add Device By Imei",
                "description": "Finds an Ontico (Easyset) controller by its IMEI and adds it to your account.",
                "operationId": "easyset-devices.addDeviceByImei",
                "responses": {
                    "200": {
                        "description": "Easyset Device Added Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/device-admins/{id}": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Get Device admin tab settings",
                "description": "Reads the Admin tab settings of an Ontico (Easyset) controller.",
                "operationId": "easyset-devices.getDeviceAdmins",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Easyset Device Admin tab settings fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Update Device admin tab settings",
                "description": "Saves the Admin tab settings of an Ontico (Easyset) controller.",
                "operationId": "easyset-devices.setDeviceAdmins",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "device_id": {
                                        "type": "string"
                                    },
                                    "param1": {
                                        "type": "string"
                                    },
                                    "param2": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "device_id": "string",
                                    "param1": "string",
                                    "param2": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Easyset Device Admin tab settings Updated Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/device-admin-general/{id}": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Get Device AdminGeneralSetting tab settings",
                "description": "Reads the general admin settings of an Ontico (Easyset) controller.",
                "operationId": "easyset-devices.getDevAdminGeneralSetting",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Easyset Device AdminGeneral settings fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/device-digital-interface/{id}": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Get Device digital-interface tab settings",
                "description": "Reads the digital interface (Wiegand and reader) settings of an Ontico (Easyset) controller.",
                "operationId": "easyset-devices.getDevDigitalInterfaceSetting",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Easyset Device digital-interface settings fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Update Device digital-interface tab settings",
                "description": "Saves the digital interface (Wiegand and reader) settings of an Ontico (Easyset) controller.",
                "operationId": "easyset-devices.setDevDigitalInterfaceSetting",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "device_id": {
                                        "type": "string"
                                    },
                                    "param1": {
                                        "type": "string"
                                    },
                                    "param2": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "device_id": "string",
                                    "param1": "string",
                                    "param2": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Easyset Device digital-interface tab settings Updated Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/device-outputs-setting/{id}": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Get Device outputs-setting tab settings",
                "description": "Reads the output (relay) settings of an Ontico (Easyset) controller.",
                "operationId": "easyset-devices.getDevOutputSetting",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Easyset Device outputs-setting settings fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Update Device outputs-setting tab settings",
                "description": "Saves the output (relay) settings of an Ontico (Easyset) controller.",
                "operationId": "easyset-devices.setDevOutputSetting",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "device_id": {
                                        "type": "string"
                                    },
                                    "param1": {
                                        "type": "string"
                                    },
                                    "param2": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "device_id": "string",
                                    "param1": "string",
                                    "param2": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Easyset Device outputs-setting tab settings Updated Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/device-inputs/{id}": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Get Device device-inputs tab settings",
                "description": "Reads the input settings of an Ontico (Easyset) controller.",
                "operationId": "easyset-devices.getDevInputSetting",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Easyset Device device-inputs settings fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Update Device device-inputs tab settings",
                "description": "Saves the input settings of an Ontico (Easyset) controller.",
                "operationId": "easyset-devices.setDevInputSetting",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "device_id": {
                                        "type": "string"
                                    },
                                    "param1": {
                                        "type": "string"
                                    },
                                    "param2": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "device_id": "string",
                                    "param1": "string",
                                    "param2": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Easyset Device device-inputs tab settings Updated Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/device-misc/{id}": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Get Device device-misc tab settings",
                "description": "Reads the other (miscellaneous) settings of an Ontico (Easyset) controller.",
                "operationId": "easyset-devices.getDevMiscSetting",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Easyset Device device-misc settings fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Update Device device-misc tab settings",
                "description": "Saves the other (miscellaneous) settings of an Ontico (Easyset) controller.",
                "operationId": "easyset-devices.setDevMiscSetting",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-devices id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "device_id": {
                                        "type": "string"
                                    },
                                    "param1": {
                                        "type": "string"
                                    },
                                    "param2": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "device_id": "string",
                                    "param1": "string",
                                    "param2": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Easyset Device device-misc tab settings Updated Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/easyset-devices/export-settings/{id}": {
            "get": {
                "tags": [
                    "Easyset-devices"
                ],
                "summary": "Export Device settings",
                "description": "Downloads all settings of an Ontico (Easyset) controller as one file, for a backup or to copy to another unit.",
                "operationId": "easyset-devices.exportSettings",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Easyset-device id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Easyset Device settings Exported Successfully"
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrances": {
            "get": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Get list of entrances",
                "description": "Returns list of entrances",
                "operationId": "entrances.index",
                "responses": {
                    "200": {
                        "description": "Entrances List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "building_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "device_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "address": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "comment": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Entrance name",
                                    "building_id": 1,
                                    "device_id": 1,
                                    "address": null,
                                    "comment": null,
                                    "photo": null,
                                    "status": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Create new entrance",
                "description": "Returns entrance data",
                "operationId": "entrances.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "address": {
                                        "type": "string"
                                    },
                                    "comment": {
                                        "type": "string"
                                    },
                                    "photo": {
                                        "type": "string"
                                    },
                                    "building_id": {
                                        "type": "number"
                                    },
                                    "device_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "string",
                                    "address": "string",
                                    "comment": "string",
                                    "photo": "string",
                                    "building_id": 1,
                                    "device_id": 1
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "address": {
                                            "type": "string",
                                            "example": "address"
                                        },
                                        "comment": {
                                            "type": "string",
                                            "example": "comment"
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "building_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "device_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrances/dropdown": {
            "get": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Get list of entrances",
                "description": "Returns list of entrances",
                "operationId": "entrances.dropdown",
                "responses": {
                    "200": {
                        "description": "Entrances List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "building_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "device_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "address": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "comment": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Entrance name",
                                    "building_id": 1,
                                    "device_id": 1,
                                    "address": null,
                                    "comment": null,
                                    "photo": null,
                                    "status": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrances/{id}": {
            "get": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Get details of entrance",
                "description": "Returns entrance data",
                "operationId": "entrances.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Entrance id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "building_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "device_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "has_intercom": {
                                            "type": "number",
                                            "example": 0
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "address": {
                                            "type": "string",
                                            "example": "address"
                                        },
                                        "comment": {
                                            "type": "string",
                                            "example": "comment"
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Update existing entrance",
                "description": "Returns updated entrance data",
                "operationId": "entrances.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "address": {
                                        "type": "string"
                                    },
                                    "comment": {
                                        "type": "string"
                                    },
                                    "photo": {
                                        "type": "string"
                                    },
                                    "building_id": {
                                        "type": "number"
                                    },
                                    "device_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "string",
                                    "address": "string",
                                    "comment": "string",
                                    "photo": "string",
                                    "building_id": 1,
                                    "device_id": 1
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "building_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "device_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "has_intercom": {
                                            "type": "number",
                                            "example": 0
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "address": {
                                            "type": "string",
                                            "example": "address"
                                        },
                                        "comment": {
                                            "type": "string",
                                            "example": "comment"
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Delete existing Entrance",
                "description": "Deletes a record and returns no content",
                "operationId": "entrances.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Entrance id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Entrance Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrances/deactivate/{id}": {
            "get": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Deactivate Entrance",
                "description": "Deactivate entrance by entrance id",
                "operationId": "entrances.deactivate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Entrance id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Entrance Deactivated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrances/activate/{id}": {
            "get": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Activate Entrance",
                "description": "Activate entrance by entrance id",
                "operationId": "entrances.activate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Entrance id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Entrance Activated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrances/{id}/unlock": {
            "post": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Open an entrance",
                "description": "Sends an open command to the door's controller and records it in the access log under the person whose key is used. That person must be allowed to open this door, exactly as in the app: managers (Organisation, Operator, Engineer, Employee) for doors in their organisation, everyone else through an approved entrance group with this door. Doors set to open only near the building need `lat` and `lng`. A 200 means the command was sent; the access log shows whether the door really opened.",
                "operationId": "entrances.unlock",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "The entrance ID (from List entrances).",
                        "required": true,
                        "schema": {
                            "type": "number"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "lat": {
                                        "description": "The person's latitude. Needed only for doors that open only near the building.",
                                        "type": "number",
                                        "example": 51.5072
                                    },
                                    "lng": {
                                        "description": "The person's longitude. Needed with lat.",
                                        "type": "number",
                                        "example": -0.1276
                                    },
                                    "user_id": {
                                        "description": "Managers only (Super Admin, Organisation, Operator): record the opening for this person instead, e.g. a reception desk opening for a visitor.",
                                        "type": "integer",
                                        "example": 318
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The open command was sent. Doors with no hardware (passkey only) answer with the message Access logged successfully.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "success": {
                                            "type": "boolean",
                                            "example": true
                                        },
                                        "message": {
                                            "type": "string",
                                            "example": "Entrance Unlocked Successfully."
                                        },
                                        "data": {
                                            "description": "The entrance that was opened.",
                                            "properties": {
                                                "id": {
                                                    "type": "number",
                                                    "example": 42
                                                },
                                                "organization_id": {
                                                    "type": "number",
                                                    "example": 3
                                                },
                                                "building_id": {
                                                    "type": "number",
                                                    "example": 7
                                                },
                                                "device_id": {
                                                    "type": "number",
                                                    "example": 1201
                                                },
                                                "has_intercom": {
                                                    "type": "number",
                                                    "example": 1
                                                },
                                                "name": {
                                                    "type": "string",
                                                    "example": "Main Entrance"
                                                },
                                                "address": {
                                                    "type": "string",
                                                    "example": "1 High Street"
                                                },
                                                "comment": {
                                                    "type": "string",
                                                    "example": null,
                                                    "nullable": true
                                                },
                                                "photo": {
                                                    "type": "string",
                                                    "example": null,
                                                    "nullable": true
                                                },
                                                "status": {
                                                    "description": "1 = turned on, 0 = turned off",
                                                    "type": "number",
                                                    "example": 1
                                                },
                                                "created_at": {
                                                    "type": "string",
                                                    "format": "date-time",
                                                    "example": "2025-03-11T09:25:53.000000Z"
                                                },
                                                "updated_at": {
                                                    "type": "string",
                                                    "format": "date-time",
                                                    "example": "2026-10-02T14:10:05.000000Z"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Entrance Unlocked Successfully.",
                                    "data": {
                                        "id": 42,
                                        "organization_id": 3,
                                        "building_id": 7,
                                        "device_id": 1201,
                                        "has_intercom": 1,
                                        "name": "Main Entrance",
                                        "address": "1 High Street",
                                        "comment": null,
                                        "photo": null,
                                        "status": 1,
                                        "created_at": "2025-03-11T09:25:53.000000Z",
                                        "updated_at": "2026-10-02T14:10:05.000000Z"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "No key, or the key is wrong or deleted.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "No access to this door, the entrance is turned off, or the person is too far away for a door that only opens nearby. The message says which.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                },
                                "example": {
                                    "success": false,
                                    "message": "You do not have access to this door. Ask your building manager to add you to it."
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No entrance with this ID in your organisation, or its controller wasn't found.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                },
                                "example": {
                                    "success": false,
                                    "message": "Entrance Not Found."
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The door opens only near the building and no position was sent.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                },
                                "example": {
                                    "message": "Location is required for this entrance.",
                                    "errors": {
                                        "lat": [
                                            "Location is required for this entrance."
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "The controller couldn't be reached. Try again shortly.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrances/unlock/{entranceId}/{userId}": {
            "post": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Unlock Entrance",
                "description": "Unlock entrance by entrance ID and user ID",
                "operationId": "entrances.unlockV2",
                "parameters": [
                    {
                        "name": "entranceId",
                        "in": "path",
                        "description": "Entrance ID",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "userId",
                        "in": "path",
                        "description": "User ID",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful unlock operation"
                    },
                    "404": {
                        "description": "User or entrance not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrance-groups": {
            "get": {
                "tags": [
                    "Entrance Group"
                ],
                "summary": "Get list of entrance groups",
                "description": "Returns list of entrance groupss",
                "operationId": "entrance-groups.index",
                "responses": {
                    "200": {
                        "description": "Entrance groups List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "users_count": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "entrances_count": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "organization_id": 1,
                                    "name": "Entrance group name",
                                    "status": 1,
                                    "created_at": "2021-12-11T09:25:53.000000Z",
                                    "updated_at": "2021-12-11T09:25:53.000000Z",
                                    "users_count": 1,
                                    "entrances_count": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Entrance Group"
                ],
                "summary": "Create new entrance group",
                "description": "Returns entrance group data",
                "operationId": "entrance-groups.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "entrance_ids": {
                                        "type": "array",
                                        "items": {
                                            "type": "number"
                                        }
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "name",
                                    "entrance_ids": [
                                        1,
                                        2
                                    ]
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrance-groups/{id}": {
            "get": {
                "tags": [
                    "Entrance Group"
                ],
                "summary": "Get details of entrance group",
                "description": "Returns entrance group data",
                "operationId": "entrance-groups.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Entrance group id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successfull operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "organization_id": 1,
                                    "name": "Entrance group name",
                                    "status": 1,
                                    "created_at": "2021-12-11T09:25:53.000000Z",
                                    "updated_at": "2021-12-11T09:25:53.000000Z"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Entrance Group"
                ],
                "summary": "Update existing entrance group",
                "description": "Returns updated entrance group data",
                "operationId": "entrance-groups.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "entrance_ids": {
                                        "type": "array",
                                        "items": {
                                            "type": "number"
                                        }
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "name",
                                    "entrance_ids": [
                                        1,
                                        2
                                    ]
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Entrance Group"
                ],
                "summary": "Delete existing entrance group",
                "description": "Deletes a record and returns no content",
                "operationId": "entrance-groups.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Entrance group id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Entrance Group Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrance-groups/deactivate/{id}": {
            "get": {
                "tags": [
                    "Entrance Group"
                ],
                "summary": "Deactivate Entrance Group",
                "description": "Deactivate entrance group by id",
                "operationId": "entrance-groups.deactivate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Entrance group id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Entrance Group Deactivated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrance-groups/activate/{id}": {
            "get": {
                "tags": [
                    "Entrance Group"
                ],
                "summary": "Activate Entrance Group",
                "description": "Activate entrance group by id",
                "operationId": "entrance-groups.activate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Entrance group id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Entrance Group Activated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrance-groups/send-invitation": {
            "post": {
                "tags": [
                    "Entrance Group"
                ],
                "summary": "Send entrance group invitation",
                "description": "Send entrance group invitation",
                "operationId": "entranceg-groups.send-invitation",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "id": {
                                        "type": "number"
                                    },
                                    "emails": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "id": "1",
                                    "emails": "test@test.com,test1@test.com"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Email will be sent soon."
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrance-groups/{entranceGroupId}/users": {
            "get": {
                "tags": [
                    "Entrance Group"
                ],
                "summary": "Fetch entrance group users",
                "description": "/**",
                "operationId": "entrance-groups.entranceGroupUsers",
                "parameters": [
                    {
                        "name": "entranceGroupId",
                        "in": "path",
                        "description": "Entrance group ID",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Entrance group fetch Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrance-groups/link-user/{entranceGroupId}": {
            "post": {
                "tags": [
                    "Entrance Group"
                ],
                "summary": "link User to entrance Group",
                "description": "Adds a person to an entrance group, so they can open its doors once their membership is approved.",
                "operationId": "entrance-groups.linkUser",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "user id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "User added Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrance-groups/unlink-user/{id}": {
            "delete": {
                "tags": [
                    "Entrance Group"
                ],
                "summary": "unlink User from entrance Group",
                "description": "Removes a person from an entrance group. Their PINs, cards and QR codes are taken off that group's door readers.",
                "operationId": "entrance-groups.unlinkUser",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "user id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "User removed Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrance-groups/deactivate/entrance-user/{permissionId}": {
            "get": {
                "tags": [
                    "Entrance Group"
                ],
                "summary": "Deactivate Entrance Group user",
                "description": "Deactivate entrance group user by id",
                "operationId": "entrance-groups.deactivate.user",
                "parameters": [
                    {
                        "name": "permissionId",
                        "in": "path",
                        "description": "Entrance group permission id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Entrance Group user Deactivated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrance-groups/activate/entrance-user/{permissionId}": {
            "get": {
                "tags": [
                    "Entrance Group"
                ],
                "summary": "Activate Entrance Group user",
                "description": "Activate entrance group user by id",
                "operationId": "entrance-groups.activate.user",
                "parameters": [
                    {
                        "name": "permissionId",
                        "in": "path",
                        "description": "Entrance group permission id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Entrance Group user Activated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrance-pins": {
            "get": {
                "tags": [
                    "Entrance Pin"
                ],
                "summary": "Get list of entrance pins",
                "description": "Returns list of entrance pins",
                "operationId": "entrance-pins.index",
                "parameters": [
                    {
                        "name": "user_id",
                        "in": "query",
                        "description": "User ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "format": "int64"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Entrance Pins List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "old_pin": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "current_pin": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "user_id": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 32,
                                    "user_id": 4,
                                    "organization_id": 2,
                                    "current_pin": "5558",
                                    "name": "pin 8",
                                    "old_pin": null,
                                    "status": 1,
                                    "created_at": "2022-10-25T05:39:10.000000Z",
                                    "updated_at": "2022-10-25T05:39:10.000000Z",
                                    "deleted_at": null
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Entrance Pin"
                ],
                "summary": "Create new entrance pin",
                "description": "Returns entrance pin data",
                "operationId": "entrance-pins.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "device_pin": {
                                        "type": "number"
                                    },
                                    "user_id": {
                                        "type": "number"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "pin_type": {
                                        "type": "string"
                                    },
                                    "current_pin": {
                                        "type": "number"
                                    },
                                    "single_pin_timer_id": {
                                        "type": "integer"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "string",
                                    "device_pin": "Number",
                                    "user_id": "Number",
                                    "pin_type": "default|code|qur_code|vpin|caller_id",
                                    "single_pin_timer_id": 0
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "user_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "device_pin": {
                                            "type": "number",
                                            "example": 1323
                                        },
                                        "current_pin": {
                                            "type": "number",
                                            "example": 222
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrance-pins/{id}": {
            "get": {
                "tags": [
                    "Entrance Pin"
                ],
                "summary": "Get details of entrance pin",
                "description": "Returns entrance pin data",
                "operationId": "entrance-pins.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Pin Id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successfull operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "old_pin": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "current_pin": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "user_id": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 32,
                                    "user_id": 4,
                                    "organization_id": 2,
                                    "current_pin": "5558",
                                    "name": "pin 8",
                                    "old_pin": null,
                                    "status": 1,
                                    "created_at": "2022-10-25T05:39:10.000000Z",
                                    "updated_at": "2022-10-25T05:39:10.000000Z",
                                    "deleted_at": null
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Entrance Pin"
                ],
                "summary": "Update existing pin",
                "description": "Returns updated entrance pin data",
                "operationId": "entrance-pins.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "device_pin": {
                                        "type": "number"
                                    },
                                    "user_id": {
                                        "type": "number"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "current_pin": {
                                        "type": "number"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "name",
                                    "device_pin": 32432,
                                    "user_id": 23,
                                    "current_pin": 1223
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "user_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "device_pin": {
                                            "type": "number",
                                            "example": 1323
                                        },
                                        "current_pin": {
                                            "type": "number",
                                            "example": 222
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Entrance Pin"
                ],
                "summary": "Delete existing entrance pin",
                "description": "Deletes a record and returns no content",
                "operationId": "entrance-pin.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Entrance Pin id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Entrance Pin Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrance-pins/restore/{id}": {
            "get": {
                "tags": [
                    "Entrance Pin"
                ],
                "summary": "Restore existing entrance pin",
                "description": "Restore a record and returns no content",
                "operationId": "entrance-pin.entrancePinRestore",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Entrance Pin id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Entrance Pin Restore Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrance-pins/resync-pins/{user}": {
            "get": {
                "tags": [
                    "Entrance Pin"
                ],
                "summary": "Resync all pins",
                "description": "Resync all pins for user",
                "operationId": "entrance-pin.reSyncAllPins",
                "parameters": [
                    {
                        "name": "user",
                        "in": "path",
                        "description": "User id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Request sent successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No available pins to sync",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/exports": {
            "get": {
                "tags": [
                    "Exports"
                ],
                "summary": "List export jobs",
                "description": "Lists your export jobs (CSV, PDF, HTML), newest first, with their status.",
                "operationId": "exports.index",
                "parameters": [
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "queued",
                                "processing",
                                "completed",
                                "failed"
                            ]
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/PaginationPerPage"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated exports"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Exports"
                ],
                "summary": "Queue an async export job",
                "description": "Creates a background export. Pass the full export_params object from the UI (filters, format, module keys).",
                "operationId": "exports.store",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "type",
                                    "export_params"
                                ],
                                "properties": {
                                    "type": {
                                        "type": "string",
                                        "enum": [
                                            "access-logs",
                                            "parking-logs",
                                            "request-logs",
                                            "account-data",
                                            "firebird-events",
                                            "firebird-io-logs",
                                            "intercom-calls",
                                            "invoices"
                                        ]
                                    },
                                    "export_params": {
                                        "description": "Type-specific filters and export_format (csv, html, pdf where allowed).",
                                        "type": "object"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Export queued"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/exports/{export}": {
            "get": {
                "tags": [
                    "Exports"
                ],
                "summary": "Get export job status",
                "description": "Returns the status of one export job: queued, running, done or failed.",
                "operationId": "exports.show",
                "parameters": [
                    {
                        "name": "export",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Export row"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/exports/{id}/download": {
            "get": {
                "tags": [
                    "Exports"
                ],
                "summary": "Download completed export file",
                "description": "Downloads the file of a finished export job.",
                "operationId": "exports.download",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "File stream (zip/csv)"
                    },
                    "404": {
                        "description": "Not ready or missing",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/exports/statistics": {
            "get": {
                "tags": [
                    "Exports"
                ],
                "summary": "Export job counts by status",
                "description": "Counts your export jobs by status.",
                "operationId": "exports.statistics",
                "responses": {
                    "200": {
                        "description": "total, queued, processing, completed, failed"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/exports/account-modules": {
            "get": {
                "tags": [
                    "Exports"
                ],
                "summary": "List account-data export modules",
                "description": "Returns module keys allowed for type=account-data exports for the current role.",
                "operationId": "exports.accountModules",
                "responses": {
                    "200": {
                        "description": "Module catalog"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds": {
            "get": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Returns the list of devices",
                "description": "Returns the list of devices",
                "operationId": "api.firebirds.index",
                "responses": {
                    "200": {
                        "description": "Alarm Device List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Adding a new device",
                "description": "Adding a new device",
                "operationId": "api.firebirds.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "imei",
                                    "organization_id",
                                    "building_id"
                                ],
                                "properties": {
                                    "imei": {
                                        "type": "string"
                                    },
                                    "iccid": {
                                        "type": "string"
                                    },
                                    "organization_id": {
                                        "type": "integer"
                                    },
                                    "building_id": {
                                        "type": "null"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "imei": "123456",
                                    "iccid": "123456",
                                    "organization_id": 2,
                                    "building_id": null
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Device successfully added",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/{imei}": {
            "get": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Get Alarm Device",
                "description": "Get Alarm Device",
                "operationId": "api.firebirds.show",
                "parameters": [
                    {
                        "name": "imei",
                        "in": "path",
                        "description": "Device imei",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Alarm Device Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/{id}": {
            "put": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Update device",
                "description": "Update device",
                "operationId": " api.firebirds.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "imei": {
                                        "type": "string"
                                    },
                                    "iccid": {
                                        "type": "string"
                                    },
                                    "organization_id": {
                                        "type": "integer"
                                    },
                                    "building_id": {
                                        "type": "integer"
                                    },
                                    "status": {
                                        "type": "integer"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "imei": "123456",
                                    "iccid": "123456",
                                    "organization_id": 2,
                                    "building_id": 2,
                                    "status": 0
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Delete device",
                "description": "Delete device",
                "operationId": "api.firebirds.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Device deleted successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/deactivate/{id}": {
            "get": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Deactivate device",
                "description": "Deactivate device",
                "operationId": "api.firebirds.deactivate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Device successfully deactivated",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/activate/{id}": {
            "get": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Activate device",
                "description": "Activate device",
                "operationId": "api.firebirds.active",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Device successfully activated",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/command": {
            "post": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Send a command",
                "description": "Send a command",
                "operationId": "api.firebirds.command",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "command"
                                ],
                                "properties": {
                                    "command": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Device successfully added",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/add-device": {
            "get": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Add add Device By Imei",
                "description": "Finds a FireBird controller by its IMEI and adds it to your organisation.",
                "operationId": "api.firebirds.addDeviceByImei",
                "responses": {
                    "200": {
                        "description": "FireBird Device Added Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/toggle-relay": {
            "post": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Update firebird relay status",
                "description": "Update firebird relay status",
                "operationId": "api.firebirds.toggleRelay",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "imei",
                                    "relay_no",
                                    "status"
                                ],
                                "properties": {
                                    "imei": {
                                        "type": "string"
                                    },
                                    "relay": {
                                        "type": "integer"
                                    },
                                    "status": {
                                        "type": "string"
                                    },
                                    "relay_no": {
                                        "type": "integer"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "imei": "864351050050123",
                                    "relay_no": 2,
                                    "status": "on"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Device relay updated",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/update-io-title": {
            "post": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Update firebird input output title",
                "description": "Update firebird input output title",
                "operationId": "api.firebirds.updateIoTitle",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "imei",
                                    "module",
                                    "index",
                                    "title"
                                ],
                                "properties": {
                                    "imei": {
                                        "type": "string"
                                    },
                                    "address": {
                                        "type": "integer"
                                    },
                                    "module": {
                                        "type": "string"
                                    },
                                    "index": {
                                        "type": "integer"
                                    },
                                    "title": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "imei": "",
                                    "address": 1,
                                    "module": "relays",
                                    "index": 2,
                                    "title": ""
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Io title updated.",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/update-io-relation-timer": {
            "post": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Update firebird input output relation timer",
                "description": "Update firebird input output relation timer",
                "operationId": "api.firebirds.updateIoRelationTimer",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "imei",
                                    "address",
                                    "time"
                                ],
                                "properties": {
                                    "imei": {
                                        "type": "string"
                                    },
                                    "address": {
                                        "type": "integer"
                                    },
                                    "time": {
                                        "type": "integer"
                                    }
                                },
                                "type": "object"
                            },
                            "example": {
                                "imei": "",
                                "address": 1,
                                "time": 1000
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Io relation timer updated.",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/update-board-info": {
            "post": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Update firebird board info",
                "description": "Update firebird board info add key old_address for update address",
                "operationId": "api.firebirds.updateBoardInfo",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "imei",
                                    "name",
                                    "address",
                                    "model"
                                ],
                                "properties": {
                                    "imei": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "address": {
                                        "type": "integer"
                                    },
                                    "model": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            },
                            "example": {
                                "imei": "",
                                "name": "Firebird",
                                "address": 1,
                                "model": "v1"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Board info updated.",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/delete-board": {
            "post": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Delete firebird board",
                "description": "Delete firebird board",
                "operationId": "api.firebirds.deleteBoard",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "imei",
                                    "address"
                                ],
                                "properties": {
                                    "imei": {
                                        "type": "string"
                                    },
                                    "address": {
                                        "type": "integer"
                                    }
                                },
                                "type": "object"
                            },
                            "example": {
                                "imei": "",
                                "address": 1
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Board deleted.",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/sim/{iccid}": {
            "get": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Get SIM details by ICCID",
                "description": "Requires seeSimDetails permission. ICCID must belong to a FireBird device in the organization.",
                "operationId": "api.firebirds.sim.getSim",
                "parameters": [
                    {
                        "name": "iccid",
                        "in": "path",
                        "description": "SIM ICCID on the FireBird device.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "FireBird Device Sim detail fetched Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/sim/{iccid}/network": {
            "get": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Get SIM network status",
                "description": "Returns the mobile network status of a FireBird unit's SIM card.",
                "operationId": "api.firebirds.sim.getNetworkDetail",
                "parameters": [
                    {
                        "name": "iccid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "FireBird Device Sim detail fetched Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/sim/update": {
            "get": {
                "tags": [
                    "FireBird"
                ],
                "summary": "update sim detail",
                "description": "Refreshes the stored details of FireBird SIM cards from the SIM provider.",
                "operationId": "api.firebirds.sim.updateSim",
                "responses": {
                    "200": {
                        "description": "FireBird Device Sim updated Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/sim/{iccid}/top-up": {
            "get": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Create SIM top-up order",
                "description": "Orders a data top-up for a FireBird unit's SIM card.",
                "operationId": "api.firebirds.sim.addTopUP",
                "parameters": [
                    {
                        "name": "iccid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "FireBird Device Sim TopUP updated Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/sim/{iccid}/auto-top-up/{status}": {
            "get": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Enable or disable SIM auto top-up",
                "description": "Switches automatic data top-ups on or off for a FireBird unit's SIM card.",
                "operationId": "api.firebirds.sim.autoTopUP",
                "parameters": [
                    {
                        "name": "iccid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "path",
                        "description": "true to enable, false to disable.",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "true",
                                "false"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "FireBird Sim Auto top up  updated Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/sim/{iccid}/usage/{type}": {
            "get": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Get SIM data usage quota",
                "description": "Returns the data used and left on a FireBird unit's SIM card.",
                "operationId": "api.firebirds.sim.getUsage",
                "parameters": [
                    {
                        "name": "iccid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "type",
                        "in": "path",
                        "description": "Allowance to read: data or sms (lower case).",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "data",
                                "sms"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "FireBird Sim usage fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebirds/sim/{iccid}/reset": {
            "get": {
                "tags": [
                    "FireBird"
                ],
                "summary": "Reset SIM network connection",
                "description": "Resets the mobile network connection of a FireBird unit's SIM card.",
                "operationId": "api.firebirds.sim.resetConnection",
                "parameters": [
                    {
                        "name": "iccid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "FireBird Sim Reset connection Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/enrollments": {
            "get": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "New units asking to be set up for remote updates",
                "description": "Units waiting for approval or being set up, plus those enrolled or refused in the last 14 days. Each has the security code (fingerprint) the unit reported. Super admin only.",
                "operationId": "firebird-ota.enrollments.index",
                "responses": {
                    "200": {
                        "description": "Enrolment requests",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/enrollments/{id}/approve": {
            "post": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Approve a new unit for remote updates",
                "description": "Registers the unit's security code at the update server and asks the unit (AT+ENROLL) to fetch its device key. Offline units are asked when they are next online. Super admin only.",
                "operationId": "firebird-ota.enrollments.approve",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "FireBird id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Approved",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Cannot be approved (already enrolled, not asked, revoked)",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Update server not configured or unreachable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/enrollments/{id}/reject": {
            "post": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Refuse a unit that asked to be set up for remote updates",
                "description": "The update server will not give this unit a device key. It can be approved later. Super admin only.",
                "operationId": "firebird-ota.enrollments.reject",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "FireBird id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Refused",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Cannot be refused",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Update server not configured or unreachable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/enrollments/{id}/resend": {
            "post": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Ask an approved unit again to fetch its device key",
                "description": "Super admin: asks an approved FireBird unit again to fetch its device key, e.g. after it missed the first request.",
                "operationId": "firebird-ota.enrollments.resend",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "FireBird id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Sent",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Not approved, or offline",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-events": {
            "get": {
                "tags": [
                    "FireBird Events"
                ],
                "summary": "Get List of FireBird Events",
                "description": "Returns list of Events",
                "operationId": "firebird-events.index",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "description": "page",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "pageLimit",
                        "in": "query",
                        "description": "Page limit",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Events is successfully received",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "The events were not received",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "FireBird Events"
                ],
                "summary": "Store FireBird Event",
                "description": "Store FireBird Event",
                "operationId": "firebird-events.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "imei",
                                    "content"
                                ],
                                "properties": {
                                    "imei": {
                                        "type": "string"
                                    },
                                    "content": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "imei": "123456",
                                    "content": "example content"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Event store successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-events/{imei}": {
            "get": {
                "tags": [
                    "FireBird Events"
                ],
                "summary": "Show FireBird Event",
                "description": "Show FireBird Event",
                "operationId": "firebird-events.show",
                "parameters": [
                    {
                        "name": "imei",
                        "in": "path",
                        "description": "imei",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Event is successfully received",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "FireBird Events"
                ],
                "summary": "Delete FireBird Event",
                "description": "Delete FireBird Event",
                "operationId": "firebird-events.destroy",
                "parameters": [
                    {
                        "name": "imei",
                        "in": "path",
                        "description": "imei",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Event successfully deleted",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Event was not deleted",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-events/deleteAll": {
            "post": {
                "tags": [
                    "FireBird Events"
                ],
                "summary": "Delete all FireBird Event",
                "description": "Delete all FireBird Event",
                "operationId": "firebird-events.deleteAll",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "imei",
                                    "content"
                                ],
                                "properties": {
                                    "imei": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "imei": "123456"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "All Events successfully deleted",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Event was not deleted",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-iologs": {
            "get": {
                "tags": [
                    "FireBird I/O Logs"
                ],
                "summary": "Get List of FireBird Events",
                "description": "Returns list of Events",
                "operationId": "firebird-iologs.index",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "description": "page",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "pageLimit",
                        "in": "query",
                        "description": "Page limit",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Events is successfully received",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "The events were not received",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird/iologs/{id}": {
            "delete": {
                "tags": [
                    "FireBird I/O Logs"
                ],
                "summary": "Delete FireBird I/O Event",
                "description": "Delete FireBird I/O Event",
                "operationId": "firebird/iologs.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "id",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Event successfully deleted",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Event was not deleted",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird/iologs/deleteAll/{id}": {
            "get": {
                "tags": [
                    "FireBird I/O Logs"
                ],
                "summary": "Delete all FireBird Event",
                "description": "Delete all FireBird I/O Event",
                "operationId": "firebird/iologs.deleteAll",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "imei",
                                    "content"
                                ],
                                "properties": {
                                    "imei": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "imei": "123456"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "All Events successfully deleted",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Event was not deleted",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/releases": {
            "get": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Firmware releases per hardware family",
                "description": "Releases published to the FireBird-OTA bucket (stable/beta channel and versions per hardware). Super admin only.",
                "operationId": "firebird-ota.releases",
                "responses": {
                    "200": {
                        "description": "Releases index",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "OTA service not configured or unreachable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Publish new firmware from a zipped firmware folder",
                "description": "The zip (the firmware folder with main.py or main_tcp.py, max 4 MB) goes to the FireBird-OTA update server, which checks and compiles every file, converts them to .mpy for folders with build_mpy.py, encrypts the release and stores it. Releases cannot be changed afterwards: publish a new version number. The first release of new hardware sets new_model=1 and a model_name: that creates the model. Super admin only.",
                "operationId": "firebird-ota.releases.publish",
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "required": [
                                    "file",
                                    "hardware_model",
                                    "version"
                                ],
                                "properties": {
                                    "file": {
                                        "type": "string",
                                        "format": "binary"
                                    },
                                    "hardware_model": {
                                        "type": "string",
                                        "example": "v3.1"
                                    },
                                    "version": {
                                        "type": "string",
                                        "example": "1.0.2"
                                    },
                                    "notes": {
                                        "type": "string",
                                        "example": "Relay timer fix"
                                    },
                                    "channel": {
                                        "type": "string",
                                        "enum": [
                                            "beta",
                                            "stable"
                                        ],
                                        "example": "beta"
                                    },
                                    "new_model": {
                                        "description": "First release of a new hardware model",
                                        "type": "boolean",
                                        "example": false
                                    },
                                    "model_name": {
                                        "description": "Display name of the new model (required with new_model)",
                                        "type": "string",
                                        "example": "Reader and keypad v4 (2 relays)"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Published",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Invalid zip, syntax error, wrong model or version already exists",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Update server not configured or unreachable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/releases/promote": {
            "post": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Make a published version the recommended one",
                "description": "Points the stable channel (what organisations and operators install) at this version; it is offered from then on. Going back to an older version stops offering the newer one it replaces (the reply has no_longer_offered). Super admin only.",
                "operationId": "firebird-ota.releases.promote",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "hardware_model",
                                    "version"
                                ],
                                "properties": {
                                    "hardware_model": {
                                        "type": "string",
                                        "example": "v3.1"
                                    },
                                    "version": {
                                        "type": "string",
                                        "example": "1.0.2"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Recommended",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "No such release",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Update server not configured or unreachable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/models": {
            "post": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Rename a hardware model",
                "description": "Changes the display name of a hardware model on the update server. The model code (what units report) never changes. Super admin only.",
                "operationId": "firebird-ota.models.rename",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "hardware_model",
                                    "name"
                                ],
                                "properties": {
                                    "hardware_model": {
                                        "type": "string",
                                        "example": "v4.0"
                                    },
                                    "name": {
                                        "type": "string",
                                        "example": "Reader and keypad v4 (2 relays)"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Renamed",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Invalid name or unknown model",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Update server not configured or unreachable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/fleet": {
            "get": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Units per hardware family and firmware version",
                "description": "Counts reported by the units themselves (+FWVER) per hardware and version (units, online, enabled), plus the default settings for new updates. Super admin only.",
                "operationId": "firebird-ota.fleet",
                "responses": {
                    "200": {
                        "description": "Fleet overview",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/rollouts": {
            "get": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "List firmware rollouts",
                "description": "Super admin: lists FireBird firmware rollouts with their progress.",
                "operationId": "firebird-ota.rollouts.index",
                "responses": {
                    "200": {
                        "description": "Rollouts with progress",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Start a staged rollout",
                "description": "Sends OTA=<version> to every enabled unit of the hardware family that is older than the version: canary first, then cumulative waves, inside the night window. Pauses itself on failures. Super admin only.",
                "operationId": "firebird-ota.rollouts.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "hardware_model",
                                    "version"
                                ],
                                "properties": {
                                    "hardware_model": {
                                        "type": "string",
                                        "example": "v3.1"
                                    },
                                    "version": {
                                        "type": "string",
                                        "example": "1.4.0"
                                    },
                                    "canary_count": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "wave_percents": {
                                        "type": "array",
                                        "items": {
                                            "type": "integer"
                                        },
                                        "example": [
                                            10,
                                            50,
                                            100
                                        ]
                                    },
                                    "window_start": {
                                        "type": "string",
                                        "example": "01:00"
                                    },
                                    "window_end": {
                                        "type": "string",
                                        "example": "05:00"
                                    },
                                    "timezone": {
                                        "type": "string",
                                        "example": "Europe/London"
                                    },
                                    "max_failure_percent": {
                                        "type": "integer",
                                        "example": 10
                                    },
                                    "notes": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Rollout started",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Invalid, unknown release, nothing to update or rollout already active",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/rollouts/{id}": {
            "get": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "One rollout with every unit's status",
                "description": "Super admin: one firmware rollout with every unit's update status.",
                "operationId": "firebird-ota.rollouts.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Rollout",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/rollouts/{id}/pause": {
            "post": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Pause a rollout (units already updating finish normally)",
                "description": "Super admin: pauses a firmware rollout. Units already updating finish normally; no new ones start.",
                "operationId": "firebird-ota.rollouts.pause",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paused",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "422": {
                        "description": "Not running",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/rollouts/{id}/resume": {
            "post": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Resume a paused rollout",
                "description": "failed=accept leaves failed units on their old firmware; failed=retry tries them again.",
                "operationId": "firebird-ota.rollouts.resume",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "failed": {
                                        "type": "string",
                                        "enum": [
                                            "accept",
                                            "retry"
                                        ]
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Running again",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "422": {
                        "description": "Not paused",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/rollouts/{id}/cancel": {
            "post": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Cancel a rollout (no further units are updated)",
                "description": "Super admin: cancels a firmware rollout. No further units are updated.",
                "operationId": "firebird-ota.rollouts.cancel",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Cancelled",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "422": {
                        "description": "Already finished",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/latest": {
            "get": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Recommended (stable) firmware version per hardware model",
                "description": "Used by the FireBird list to show which units have an update available. Super admin, organisation and operator. Returns an empty object when firmware updates are not set up or the update server cannot be reached.",
                "operationId": "firebird-ota.latest",
                "responses": {
                    "200": {
                        "description": "Map of hardware model to version, e.g. {\"v3.1\": \"1.3.0\"}",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/choices": {
            "get": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Firmware versions this user can install, per hardware model",
                "description": "For the FireBird list: per model the recommended version and the versions this user may install (super admins: all published versions; organisations and operators: the ones a super admin offers them). Empty when the update server can't be reached.",
                "operationId": "firebird-ota.choices",
                "responses": {
                    "200": {
                        "description": "{ model: { recommended, versions } }",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/releases/settings": {
            "post": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Offer a version to organisations, or edit its notes",
                "description": "Whether organisations and operators may install this version on their units, and the short notes they read when they choose it. The recommended version is always offered. Super admin only.",
                "operationId": "firebird-ota.releases.settings",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "hardware_model",
                                    "version"
                                ],
                                "properties": {
                                    "hardware_model": {
                                        "type": "string",
                                        "example": "v3.1"
                                    },
                                    "version": {
                                        "type": "string",
                                        "example": "1.0.2"
                                    },
                                    "offered": {
                                        "type": "boolean",
                                        "example": true
                                    },
                                    "notes": {
                                        "type": "string",
                                        "example": "Faster reconnect after a WiFi drop-out."
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Saved",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Invalid, unknown version, or the recommended version can't be turned off",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Update server not configured or unreachable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/devices/{id}": {
            "get": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Firmware state of one FireBird and the releases that can be installed",
                "description": "Super admins see every release for the unit's hardware; organisations and operators the versions a super admin offers them. Operators only see units on entrances they manage.",
                "operationId": "firebird-ota.devices.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "FireBird (fire_alarms) id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Firmware state and installable releases",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Device not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "OTA service not configured or unreachable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/firebird-ota/devices/{id}/update": {
            "post": {
                "tags": [
                    "FireBird OTA"
                ],
                "summary": "Update the firmware of one FireBird now",
                "description": "Sends OTA=<version> to the unit (OTA=<version>,FORCE for a roll back to an older version). The unit must be online, enabled and report its hardware; it refuses while a relay is active and rolls itself back if the new firmware is unhealthy. Without a version the recommended release is installed. Super admins can install any published version; organisations and operators only the versions a super admin offers them.",
                "operationId": "firebird-ota.devices.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "FireBird (fire_alarms) id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "version": {
                                        "description": "Default: the recommended release. Organisations and operators: an offered version",
                                        "type": "string",
                                        "example": "1.4.0"
                                    },
                                    "rollback": {
                                        "description": "Install an OLDER version (sends OTA=<version>,FORCE); organisations and operators only to an offered version",
                                        "type": "boolean",
                                        "example": false
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Update sent",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Device not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unit offline, disabled, already updating, already up to date, or release not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "OTA service not configured or unreachable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/reports": {
            "get": {
                "tags": [
                    "FireBird Reports"
                ],
                "summary": "Get list of reports",
                "description": "Returns list of reports",
                "operationId": "reports.index",
                "responses": {
                    "200": {
                        "description": "Reports List Fetch Successfully"
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/reports/{id}": {
            "get": {
                "tags": [
                    "FireBird Reports"
                ],
                "summary": "Get details of report",
                "description": "Returns report data",
                "operationId": "reports.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Report id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation"
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "FireBird Reports"
                ],
                "summary": "Delete existing report",
                "description": "Deletes a record and returns no content",
                "operationId": "reports.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "report id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Report Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/reports/generateReport": {
            "post": {
                "tags": [
                    "FireBird Reports"
                ],
                "summary": "get FireBird report",
                "description": "get FireBird report as PDF",
                "operationId": "reports.generateReport",
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "File downloaded Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/reports/sendReport": {
            "post": {
                "tags": [
                    "FireBird Reports"
                ],
                "summary": "Send FireBird report",
                "description": "Send FireBird device report as PDF",
                "operationId": "reports.sendReport",
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "File Send Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/{id}/guest-access": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Guest access end date and status",
                "description": "status is active, ended (end time passed, suspension pending) or suspended. Times are ISO 8601 (UTC).",
                "operationId": "users.guestAccess.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Guest access"
                    },
                    "403": {
                        "description": "Not allowed to manage this guest",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Guest not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "User"
                ],
                "summary": "Set a guest's access end, or re-enable a suspended guest",
                "description": "ends_at is optional (ISO 8601; without a time zone it is read as UK time). Empty means 30 days from now. At most 30 days from now.",
                "operationId": "users.guestAccess.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "ends_at": {
                                        "type": "string",
                                        "example": "2026-11-28T14:00:00Z"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Guest access updated"
                    },
                    "422": {
                        "description": "End date not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/{id}/guest-access/keep": {
            "post": {
                "tags": [
                    "User"
                ],
                "summary": "Keep a suspended guest for 30 more days before deletion",
                "description": "A suspended guest is deleted 90 days after their access ended. This moves the deletion 30 days later; the guest stays suspended and opens no doors.",
                "operationId": "users.guestAccess.keep",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Deletion postponed"
                    },
                    "422": {
                        "description": "Guest is not suspended",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/entrances/intercom-buildings/{id}": {
            "get": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Buildings of the entrance's location for the visitor intercom page",
                "description": "Public (visitor intercom page): the buildings at this entrance's location that visitors may call.",
                "operationId": "entrances.intercomBuildings",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Entrance id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Buildings retrieved (enabled=false when the location does not allow it)"
                    },
                    "404": {
                        "description": "Entrance Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": []
            }
        },
        "/entrances/intercom-buildings/{id}/{buildingId}/access-groups": {
            "get": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Entrance groups of a building, for a group call from the visitor intercom page",
                "description": "Public (visitor intercom page): the entrance groups of a building that a visitor can ring as a group.",
                "operationId": "entrances.intercomBuildingGroups",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Entrance id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "buildingId",
                        "in": "path",
                        "description": "Building id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Groups retrieved"
                    },
                    "403": {
                        "description": "Building call list disabled / building not in location",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Entrance Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": []
            }
        },
        "/entrances/intercom-buildings/{id}/{buildingId}/access-users": {
            "get": {
                "tags": [
                    "Entrance"
                ],
                "summary": "Users of a building, for an individual call from the visitor intercom page",
                "description": "Public (visitor intercom page): the people of a building that a visitor can ring one by one.",
                "operationId": "entrances.intercomBuildingUsers",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Entrance id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "buildingId",
                        "in": "path",
                        "description": "Building id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Users retrieved"
                    },
                    "403": {
                        "description": "Building call list disabled / building not in location",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Entrance Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": []
            }
        },
        "/intercom-calls": {
            "get": {
                "tags": [
                    "Intercom"
                ],
                "summary": "List intercom call history",
                "description": "Paginated call records for the signed-in organization. UI: Logs → Intercom Logs.",
                "operationId": "intercom-calls.index",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/PaginationPerPage"
                    },
                    {
                        "$ref": "#/components/parameters/PaginationColumnName"
                    },
                    {
                        "$ref": "#/components/parameters/PaginationOrder"
                    },
                    {
                        "$ref": "#/components/parameters/PaginationSearch"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Intercom calls list"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Intercom"
                ],
                "summary": "Create intercom call (visitor)",
                "description": "Public endpoint used by entrance/kiosk when a visitor starts a video call. No authentication.",
                "operationId": "intercom-calls.store",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "call_request_id",
                                    "entrance_id",
                                    "visitor_user_id"
                                ],
                                "properties": {
                                    "call_request_id": {
                                        "description": "Unique client-generated call id (e.g. web- timestamp).",
                                        "type": "string"
                                    },
                                    "entrance_id": {
                                        "type": "integer"
                                    },
                                    "visitor_user_id": {
                                        "description": "Ephemeral visitor session id, not a user primary key.",
                                        "type": "string"
                                    },
                                    "target_user_ids": {
                                        "description": "Optional explicit callee user ids.",
                                        "type": "array",
                                        "items": {
                                            "type": "integer"
                                        }
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Call created"
                    },
                    "403": {
                        "description": "Entrance disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": []
            }
        },
        "/intercom-calls/{id}": {
            "get": {
                "tags": [
                    "Intercom"
                ],
                "summary": "Get intercom call by call_request_id",
                "description": "Public poll endpoint. Path `{id}` is `call_request_id`, not the numeric database id.",
                "operationId": "intercom-calls.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "call_request_id string.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Call row"
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": []
            },
            "put": {
                "tags": [
                    "Intercom"
                ],
                "summary": "Update intercom call status",
                "description": "Visitor or client updates lifecycle (ringing, active, ended, etc.). Path `{id}` is call_request_id.",
                "operationId": "intercom-calls.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "status"
                                ],
                                "properties": {
                                    "status": {
                                        "type": "string",
                                        "enum": [
                                            "initiated",
                                            "ringing",
                                            "pending",
                                            "active",
                                            "rejected",
                                            "ended",
                                            "timeout"
                                        ]
                                    },
                                    "user_id": {
                                        "description": "Answering user when accepting/rejecting.",
                                        "type": "integer",
                                        "nullable": true
                                    },
                                    "extra_info": {
                                        "type": "string",
                                        "nullable": true
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Updated call"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": []
            },
            "delete": {
                "tags": [
                    "Intercom"
                ],
                "summary": "Delete intercom call record",
                "description": "Authenticated. Path `{id}` is the numeric primary key of intercom_calls (not call_request_id).",
                "operationId": "intercom-calls.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "intercom_calls.id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Deleted"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/issue-report": {
            "get": {
                "tags": [
                    "Issue Report"
                ],
                "summary": "Get list of Issues",
                "description": "Returns list of Issues",
                "operationId": "issue-report.index",
                "responses": {
                    "200": {
                        "description": "Issues List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "issue_number": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "user_id": {
                                            "type": "number",
                                            "example": "1"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": "1"
                                        },
                                        "agent_id": {
                                            "type": "number",
                                            "example": null
                                        },
                                        "issue_report_category_id": {
                                            "type": "number",
                                            "example": "1"
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": "1"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "issue_number": "0000001",
                                    "user_id": 1,
                                    "organization_id": 1,
                                    "agent_id": null,
                                    "issue_report_category_id": 1,
                                    "status": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Issue Report"
                ],
                "summary": "Create new Issue",
                "description": "Returns Issue data",
                "operationId": "issue-report.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "user_id": {
                                        "type": "number"
                                    },
                                    "organization_id": {
                                        "type": "number"
                                    },
                                    "issue_report_category_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "user_id": 1,
                                    "organization_id": 1,
                                    "issue_report_category_id": 1
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "issue_number": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "user_id": {
                                            "type": "number",
                                            "example": "1"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": "1"
                                        },
                                        "agent_id": {
                                            "type": "number",
                                            "example": null
                                        },
                                        "issue_report_category_id": {
                                            "type": "number",
                                            "example": "1"
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": "1"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/issue-report/{id}": {
            "get": {
                "tags": [
                    "Issue Report"
                ],
                "summary": "Get one Issue",
                "description": "Returns one Issue with the same fields as a row of the list. Only issues the caller can see in the list are found.",
                "operationId": "issue-report.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Issue Report id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Issue Report retrieved successfully."
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Issue Report Not Found.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Issue Report"
                ],
                "summary": "Delete existing Issue",
                "description": "Deletes a record and returns no content",
                "operationId": "issue-report.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Issue Report id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Issue Report Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/issue-report/change-status/{id}": {
            "post": {
                "tags": [
                    "Issue Report"
                ],
                "summary": "Change Status of Issue",
                "description": "Change Status by id",
                "operationId": "issue-report.changeStatus",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Issue Report id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Status Change Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/issue-report/change-read-status/{id}": {
            "get": {
                "tags": [
                    "Issue Report"
                ],
                "summary": "Change read Status of Issue",
                "description": "Change read Status by id",
                "operationId": "issue-report.changeReadStatus",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Issue Report id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Status Change Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/issue-report/show-comments/{id}": {
            "get": {
                "tags": [
                    "Issue Report"
                ],
                "summary": "Get list of Comments by issue-report Id",
                "description": "Get list of Comments by issue-report Id",
                "operationId": "issue-report.showComments",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Issue Report id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "list of Comments fetch Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/issue-report/add-comment": {
            "post": {
                "tags": [
                    "Issue Report"
                ],
                "summary": "Create new Comment",
                "description": "Create new Comment",
                "operationId": "issue-report.addComment",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "user_id": {
                                        "type": "number"
                                    },
                                    "post_id": {
                                        "type": "number"
                                    },
                                    "content": {
                                        "type": "string"
                                    },
                                    "comment_type": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "user_id": 1,
                                    "post_id": 1,
                                    "comment_type": "comment",
                                    "content": "this is comment"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "issue_number": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "user_id": {
                                            "type": "number",
                                            "example": "1"
                                        },
                                        "post_id": {
                                            "type": "number",
                                            "example": "1"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "this is comment"
                                        },
                                        "comment_type": {
                                            "type": "string",
                                            "example": "comment"
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": "1"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/issue-report/generate-report/{id}": {
            "get": {
                "tags": [
                    "Issue Report"
                ],
                "summary": "get comments report of Issue",
                "description": "get comments report of Issue as PDF",
                "operationId": "issue-report.generateReport",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Issue Report id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "File downloaded Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/issue-report-categories": {
            "get": {
                "tags": [
                    "Issue Report Categories"
                ],
                "summary": "Get list of ticket categories",
                "description": "Returns list of ticket categories",
                "operationId": "issue-report-categories.index",
                "responses": {
                    "200": {
                        "description": "Issue Report Categories List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "parent_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Downtown"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Issue Report Categories"
                ],
                "summary": "Create new category",
                "description": "Returns category data",
                "operationId": "issue-report-categories.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "photo": {
                                        "type": "string"
                                    },
                                    "parent_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "string",
                                    "photo": "string",
                                    "parent_id": 1
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "parent_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/issue-report-categories/{id}": {
            "get": {
                "tags": [
                    "Issue Report Categories"
                ],
                "summary": "Get details of Category",
                "description": "Returns Category data",
                "operationId": "issue-report-categories.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Category id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "parent_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Issue Report Categories"
                ],
                "summary": "Update existing category",
                "description": "Returns updated category data",
                "operationId": "issue-report-categories.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "photo": {
                                        "type": "string"
                                    },
                                    "parent_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "string",
                                    "photo": "string",
                                    "parent_id": 1
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "parent_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Issue Report Categories"
                ],
                "summary": "Delete existing Category",
                "description": "Deletes a record and returns no content",
                "operationId": "issue-report-categories.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Category id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Category Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/issue-report-categories/deactivate/{id}": {
            "get": {
                "tags": [
                    "Issue Report Categories"
                ],
                "summary": "Deactivate category",
                "description": "Deactivate category by id",
                "operationId": "issue-report-categories.deactivate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Category id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Category Deactivated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/issue-report-categories/activate/{id}": {
            "get": {
                "tags": [
                    "Issue Report Categories"
                ],
                "summary": "Activate Category",
                "description": "Activate Category by id",
                "operationId": "issue-report-categories.activate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Category id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Category Activated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/issue-report-categories/add-questions": {
            "post": {
                "tags": [
                    "Issue Report Categories"
                ],
                "summary": "Create new category questions",
                "description": "Returns category questions data",
                "operationId": "issue-report-categories.addQuestions",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "question": {
                                        "type": "string"
                                    },
                                    "issue_report_category_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "question": "string",
                                    "issue_report_category_id": 1
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Question Added Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/issue-report-categories/update-question/{id}": {
            "post": {
                "tags": [
                    "Issue Report Categories"
                ],
                "summary": "Update category questions",
                "description": "Returns category questions data",
                "operationId": "issue-report-categories.updateQuestion",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "question id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "question": {
                                        "type": "string"
                                    },
                                    "issue_report_category_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "question": "string",
                                    "issue_report_category_id": 1
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Question Updated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/issue-report-categories/delete-question/{cat_id}/{id}": {
            "delete": {
                "tags": [
                    "Issue Report Categories"
                ],
                "summary": "Delete existing Question",
                "description": "Deletes a record and returns no content",
                "operationId": "issue-report-categories.deleteQuestion",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Category id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Question id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Question Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting": {
            "get": {
                "tags": [
                    "Meeting"
                ],
                "summary": "List meetings",
                "description": "Paginated meetings the caller may see (employees: the ones they host; visitors: their own). Each row has visitor, employee (the host), entrance_group (the doors), status (Pending, Scheduled, On site, Completed, Cancelled, Declined), checked_in_at/checked_out_at (actual arrival and departure), access.state (the door pass: awaiting_approval, starts_later, active, activating, open, ended) and can.* (actions the caller may take). summary has today's counts.",
                "operationId": "meeting.index",
                "parameters": [
                    {
                        "name": "scope",
                        "in": "query",
                        "description": "today | upcoming | pending | on_site | past | all (default all)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "description": "Filter by one status",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "date",
                        "in": "query",
                        "description": "Only this date (YYYY-MM-DD)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Visitor, host, company, purpose, plate or meeting code",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Meetings List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Book a visitor",
                "description": "Creates the meeting and emails the visitor their pass. The door pass works only from minutes_before the start to minutes_after the end (meeting settings), on the chosen entrance group's doors. Times are UK local time (HH:mm).",
                "operationId": "meeting.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "meeting",
                                    "visitor",
                                    "employee"
                                ],
                                "properties": {
                                    "meeting": {
                                        "properties": {
                                            "date": {
                                                "type": "string",
                                                "example": "2026-11-04"
                                            },
                                            "in_time": {
                                                "type": "string",
                                                "example": "09:00"
                                            },
                                            "out_time": {
                                                "type": "string",
                                                "example": "10:00"
                                            },
                                            "purpose": {
                                                "type": "string",
                                                "example": "Interview"
                                            },
                                            "type": {
                                                "type": "string",
                                                "example": "Business Meeting"
                                            },
                                            "company": {
                                                "type": "string",
                                                "example": "Acme Ltd"
                                            },
                                            "notes": {
                                                "type": "string",
                                                "example": "Use the side entrance."
                                            },
                                            "vehicle_number": {
                                                "type": "string",
                                                "example": "AB12CDE"
                                            },
                                            "entrance_group_id": {
                                                "description": "Doors for the pass; default from meeting settings",
                                                "type": "integer"
                                            },
                                            "send_email": {
                                                "type": "boolean",
                                                "example": true
                                            }
                                        },
                                        "type": "object"
                                    },
                                    "visitor": {
                                        "properties": {
                                            "id": {
                                                "description": "A visitor in this organisation (see /meeting/visitors)",
                                                "type": "integer"
                                            }
                                        },
                                        "type": "object"
                                    },
                                    "employee": {
                                        "properties": {
                                            "id": {
                                                "description": "The host (see /meeting/options hosts)",
                                                "type": "integer"
                                            }
                                        },
                                        "type": "object"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Meeting Created Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/{id}": {
            "get": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Get one meeting",
                "operationId": "meeting.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Meeting retrieved successfully.",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Edit a meeting",
                "description": "Same body as meeting.store (visitor.id is ignored: the visitor of a meeting can't change). Changing the date, times, doors or plate re-sends the visitor's pass.",
                "operationId": "meeting.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {}
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Meeting Successfully Updated.",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Delete a meeting",
                "description": "Removes the visitor's door pass and deletes the meeting. To keep a record, cancel or check out instead.",
                "operationId": "meeting.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Meeting Deleted Successfully."
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/change-status/{id}": {
            "get": {
                "tags": [
                    "Meeting"
                ],
                "summary": "End a meeting (mark complete)",
                "description": "Marks a Scheduled or On site meeting Completed and removes the visitor's door pass.",
                "operationId": "meeting.changeStatus",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Meeting Status Changed Successfully"
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The meeting has already ended",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/{id}/check-in": {
            "post": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Mark the visitor as arrived",
                "description": "Scheduled → On site. Opens the pass now if the visitor is early, and tells the host.",
                "operationId": "meeting.checkIn",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Checked in"
                    },
                    "422": {
                        "description": "Wrong status",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/{id}/check-out": {
            "post": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Check the visitor out / end the meeting",
                "description": "Scheduled or On site → Completed. Removes the visitor's door pass.",
                "operationId": "meeting.checkOut",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Checked out"
                    },
                    "422": {
                        "description": "Already ended",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/{id}/approve": {
            "post": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Approve a visitor's request",
                "description": "Pending → Scheduled. Emails the visitor their pass.",
                "operationId": "meeting.approve",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Approved"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/{id}/decline": {
            "post": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Decline a visitor's request",
                "operationId": "meeting.decline",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "reason": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Declined"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/{id}/cancel": {
            "post": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Cancel a meeting",
                "description": "Pending or Scheduled → Cancelled. Removes the pass and emails the visitor.",
                "operationId": "meeting.cancel",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Cancelled"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/{id}/extend": {
            "post": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Make a meeting longer",
                "description": "Moves the end time (and the pass) later by the given minutes, up to 23:59.",
                "operationId": "meeting.extend",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "minutes": {
                                        "type": "integer",
                                        "example": 30
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Extended"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/{id}/resend": {
            "post": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Email the visitor their pass again",
                "operationId": "meeting.resend",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Sent"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/download-card/{id}": {
            "get": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Download the visitor card (PDF)",
                "operationId": "meeting.downloadCard",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "PDF file"
                    },
                    "404": {
                        "description": "Meeting not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/invitation-link": {
            "get": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Visitor self-registration and reception kiosk links",
                "description": "data is the reception kiosk link (kept for older clients). links has kiosk and register. Pass rotate=1 (meeting settings permission) to make new links; old links and printed QR codes stop working.",
                "operationId": "meeting.getInvitationLink",
                "responses": {
                    "200": {
                        "description": "Invitation-link fetch Successfully."
                    },
                    "404": {
                        "description": "Entrance group with Entrance not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/options": {
            "get": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Hosts, doors and defaults for the meeting form",
                "description": "Everything the meeting form needs in one call: hosts, doors, defaults and settings.",
                "operationId": "meeting.options",
                "responses": {
                    "200": {
                        "description": "Options"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/visitors": {
            "get": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Search this organisation's visitors",
                "description": "Visitors of this organisation, for the visitor picker.",
                "operationId": "meeting.visitors",
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Visitors"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Add a visitor",
                "description": "Add a visitor from the meeting form without leaving it. Re-uses the visitor if someone\nwith this email is already one of this organisation's visitors.",
                "operationId": "meeting.addVisitor",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "name",
                                    "email"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "email": {
                                        "type": "string"
                                    },
                                    "phone": {
                                        "type": "string"
                                    },
                                    "country_code": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Visitor"
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/settings": {
            "get": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Meeting settings for this organisation",
                "operationId": "meeting.settings",
                "responses": {
                    "200": {
                        "description": "Settings"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Change meeting settings",
                "operationId": "meeting.updateSettings",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "entrance_group_id": {
                                        "type": "integer"
                                    },
                                    "minutes_before": {
                                        "type": "integer"
                                    },
                                    "minutes_after": {
                                        "type": "integer"
                                    },
                                    "self_registration": {
                                        "type": "boolean"
                                    },
                                    "require_approval": {
                                        "type": "boolean"
                                    },
                                    "auto_check_in": {
                                        "type": "boolean"
                                    },
                                    "notify_host_email": {
                                        "type": "boolean"
                                    },
                                    "notify_host_push": {
                                        "type": "boolean"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Saved"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/{id}/badge": {
            "get": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Visitor badge",
                "description": "What goes on the printed visitor badge (Print badge in the meeting detail).",
                "operationId": "meeting.badge",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Badge"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/roll-call": {
            "get": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Visitors on site now",
                "description": "Fire roll call: everyone on site now (visitors you can see), to print or check off.",
                "operationId": "meeting.rollCall",
                "responses": {
                    "200": {
                        "description": "On site"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/blocked": {
            "get": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Blocked visitors",
                "operationId": "meeting.blocked",
                "responses": {
                    "200": {
                        "description": "Blocked visitors"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Block a visitor",
                "description": "Block someone by email and/or number plate. Their booked and live visits here are\ncancelled and their passes stop working (they aren't emailed).",
                "operationId": "meeting.blocked.store",
                "responses": {
                    "200": {
                        "description": "Blocked"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/hosts": {
            "get": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Hosts and their settings",
                "description": "The organisation's hosts (its employees, operators and the organisation account) with their\nhost settings and today's visitor counts. Organisation account only; anyone else gets\njust themselves (see hostMe).",
                "operationId": "meeting.hosts",
                "responses": {
                    "200": {
                        "description": "Hosts"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/hosts/{id}": {
            "put": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Change a host's settings",
                "description": "Change one host's settings. The organisation account can change anyone's; a host can change\ntheir own stand-in and alert choices (not whether they can host, or their department).",
                "operationId": "meeting.hosts.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Saved"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/hosts/me": {
            "get": {
                "tags": [
                    "Meeting"
                ],
                "summary": "My host settings",
                "description": "The signed-in person's own host settings, and who they could choose as stand-in.",
                "operationId": "meeting.hosts.me",
                "responses": {
                    "200": {
                        "description": "Settings"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/meeting/organisations": {
            "get": {
                "tags": [
                    "Meeting"
                ],
                "summary": "Organisations (super admin)",
                "description": "Organisations a super admin can pick on the Meetings page.",
                "operationId": "meeting.organisations",
                "responses": {
                    "200": {
                        "description": "Organisations"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/notifications": {
            "get": {
                "tags": [
                    "Notification"
                ],
                "summary": "Get list of notifications",
                "description": "Returns list of notifications",
                "operationId": "notifications.index",
                "responses": {
                    "200": {
                        "description": "Notifications List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "name": {
                                            "type": "string",
                                            "example": "Notification title"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2022-10-27T09:52:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "name": "Notification title",
                                    "created_at": "2022-10-27T09:52:53.000000Z"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/organizations": {
            "get": {
                "tags": [
                    "Organizations"
                ],
                "summary": "Get list of organizations",
                "description": "Returns list of organizations",
                "operationId": "organizations.index",
                "responses": {
                    "200": {
                        "description": "Organizations List Fetch Successfully"
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/parking-cameras": {
            "get": {
                "tags": [
                    "Parking Camera"
                ],
                "summary": "Get list of parking cameras",
                "description": "Returns list of parking cameras",
                "operationId": "parking-cameras.index",
                "responses": {
                    "200": {
                        "description": "Parking camera List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Downtown",
                                    "photo": null,
                                    "status": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/parking-sensor-events": {
            "get": {
                "tags": [
                    "Parking Sensor Events"
                ],
                "summary": "Returns the list of devices events",
                "description": "Returns the list of devices events",
                "operationId": "api.parking-sensor-events.index",
                "responses": {
                    "200": {
                        "description": "Parking Sensor Events List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Parking Sensor Event"
                ],
                "summary": "Store Parking Sensor Event",
                "description": "Store Parking Sensor Event",
                "operationId": "parking-sensor-events.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "imei",
                                    "content"
                                ],
                                "properties": {
                                    "imei": {
                                        "type": "string"
                                    },
                                    "content": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "imei": "123456",
                                    "content": "example content"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Event store successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/parking-sensor-events/{imei}": {
            "get": {
                "tags": [
                    "Parking Sensor Event"
                ],
                "summary": "Show Parking Sensor Event",
                "description": "Show Parking Sensor Event",
                "operationId": "parking-sensor-events.show",
                "parameters": [
                    {
                        "name": "imei",
                        "in": "path",
                        "description": "imei",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Event is successfully received",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Parking Sensor Event"
                ],
                "summary": "Delete Parking Sensor Event",
                "description": "Delete Parking Sensor Event",
                "operationId": "parking-sensor-events.destroy",
                "parameters": [
                    {
                        "name": "imei",
                        "in": "path",
                        "description": "imei",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Event successfully deleted",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Event was not deleted",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/parking-sensor-events/deleteAll": {
            "post": {
                "tags": [
                    "Parking Sensor Event"
                ],
                "summary": "Delete all Parking Sensor Event",
                "description": "Delete all Parking Sensor Event",
                "operationId": "parking-sensor-events.deleteAll",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "imei",
                                    "content"
                                ],
                                "properties": {
                                    "imei": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "imei": "123456"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "All Events successfully deleted",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Event was not deleted",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/parking-sensor": {
            "get": {
                "tags": [
                    "Parking Sensor"
                ],
                "summary": "Returns the list of devices",
                "description": "Returns the list of devices",
                "operationId": "api.parking-sensor.index",
                "responses": {
                    "200": {
                        "description": "Parking Sensor List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Parking Sensor"
                ],
                "summary": "Adding a new device",
                "description": "Adding a new device",
                "operationId": "api.parking-sensor.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "imei",
                                    "iccid",
                                    "organization_id",
                                    "building_id"
                                ],
                                "properties": {
                                    "imei": {
                                        "type": "string"
                                    },
                                    "iccid": {
                                        "type": "string"
                                    },
                                    "organization_id": {
                                        "type": "integer"
                                    },
                                    "building_id": {
                                        "type": "null"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "imei": "123456",
                                    "iccid": "123456",
                                    "organization_id": 2,
                                    "building_id": null
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Device successfully added",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/parking-sensor/{imei}": {
            "get": {
                "tags": [
                    "Parking Sensor"
                ],
                "summary": "Get Parking Sensor",
                "description": "Get Parking Sensor",
                "operationId": "api.parking-sensor.show",
                "parameters": [
                    {
                        "name": "imei",
                        "in": "path",
                        "description": "Device imei",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Parking Sensor Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/parking-sensor/{id}": {
            "put": {
                "tags": [
                    "Parking Sensor"
                ],
                "summary": "Update device",
                "description": "Update device",
                "operationId": " api.parking-sensor.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "imei": {
                                        "type": "string"
                                    },
                                    "iccid": {
                                        "type": "string"
                                    },
                                    "organization_id": {
                                        "type": "integer"
                                    },
                                    "building_id": {
                                        "type": "integer"
                                    },
                                    "status": {
                                        "type": "integer"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "imei": "123456",
                                    "iccid": "123456",
                                    "organization_id": 2,
                                    "building_id": 2,
                                    "status": 0
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Parking Sensor"
                ],
                "summary": "Delete device",
                "description": "Delete device",
                "operationId": "api.parking-sensor.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Device deleted successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/parking-sensor/deactivate/{id}": {
            "get": {
                "tags": [
                    "Parking Sensor"
                ],
                "summary": "Deactivate device",
                "description": "Deactivate device",
                "operationId": "api.parking-sensor.deactivate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Device successfully deactivated",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/parking-sensor/activate/{id}": {
            "get": {
                "tags": [
                    "Parking Sensor"
                ],
                "summary": "Activate device",
                "description": "Activate device",
                "operationId": "api.parking-sensor.active",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Device id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Device successfully activated",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/parking-sensor/command": {
            "post": {
                "tags": [
                    "Parking Sensor"
                ],
                "summary": "Send a command",
                "description": "Send a command",
                "operationId": "api.parking-sensor.command",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "command"
                                ],
                                "properties": {
                                    "command": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Device successfully added",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/partner-admin/overview": {
            "get": {
                "tags": [
                    "Partner Control Centre"
                ],
                "summary": "Programme numbers: partners, countries, partner-sourced revenue, commission owed",
                "operationId": "partner-admin.overview",
                "responses": {
                    "200": {
                        "description": "Overview",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Super admin only",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/partner-admin/stock": {
            "get": {
                "tags": [
                    "Partner Control Centre"
                ],
                "summary": "FireBird stock: units in the pool, with partners, grey market, paid orders to fill",
                "description": "Super admin only. Units held by Super Admin that are not given to a partner, and paid orders still waiting for units.",
                "operationId": "partner-admin.stock",
                "responses": {
                    "200": {
                        "description": "Stock",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Super admin only",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/partner-admin/devices/check": {
            "post": {
                "tags": [
                    "Partner Control Centre"
                ],
                "summary": "Check scanned or pasted IMEIs before allocating them",
                "description": "Super admin only. Each IMEI comes back as accepted or refused with a plain reason.",
                "operationId": "partner-admin.devices.check",
                "responses": {
                    "200": {
                        "description": "Per-IMEI result",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Super admin only",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/partner-admin/orders/{id}/devices": {
            "post": {
                "tags": [
                    "Partner Control Centre"
                ],
                "summary": "Allocate FireBird units to a paid order by IMEI",
                "description": "Super admin only. Accepted units are allocated to the order; refused ones come back with the reason. Never more than the order's FireBird lines need.",
                "operationId": "partner-admin.orders.devices",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Allocated and refused",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Super admin only",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/partner-admin/orders/{id}/devices/{imei}": {
            "delete": {
                "tags": [
                    "Partner Control Centre"
                ],
                "summary": "Take a wrongly scanned unit off an order before it ships",
                "description": "Super admin only. Only units not yet shipped.",
                "operationId": "partner-admin.orders.devices.remove",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "imei",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Removed",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Super admin only",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/partner-admin/returns": {
            "get": {
                "tags": [
                    "Partner Control Centre"
                ],
                "summary": "Returns (RMA) of FireBird units from partners",
                "description": "Super admin only. Open returns first (status=open, the default) or closed ones (status=closed), with the partner, the warranty found at opening and whether the replacement goes out in advance.",
                "operationId": "partner-admin.returns",
                "responses": {
                    "200": {
                        "description": "Returns",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Super admin only",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/partner-admin/returns/{id}/decide": {
            "post": {
                "tags": [
                    "Partner Control Centre"
                ],
                "summary": "Approve or reject an open return",
                "operationId": "partner-admin.returns.decide",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "approve"
                                ],
                                "properties": {
                                    "approve": {
                                        "type": "boolean"
                                    },
                                    "note": {
                                        "type": "string",
                                        "maxLength": 500
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Decided",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Super admin only",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Already decided",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/partner-admin/returns/{id}/replacement": {
            "post": {
                "tags": [
                    "Partner Control Centre"
                ],
                "summary": "Send the replacement unit for an approved return",
                "description": "Super admin only. The scanned IMEI must be a unit in the stock pool. It goes to the partner's My stock and carries on the replaced unit's warranty. Without an advance replacement, the faulty unit must be marked received first.",
                "operationId": "partner-admin.returns.replacement",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "imei"
                                ],
                                "properties": {
                                    "imei": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Replacement sent",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Super admin only",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Refused with a reason",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/partner-admin/returns/{id}/received": {
            "post": {
                "tags": [
                    "Partner Control Centre"
                ],
                "summary": "Mark the faulty unit of a return as received",
                "description": "Super admin only. The unit leaves the partner's devices. replace=false closes the return without a replacement. Moving the FireBird out of the customer's organisation stays the usual Super Admin step.",
                "operationId": "partner-admin.returns.received",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "replace": {
                                        "type": "boolean"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Received",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Super admin only",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Refused with a reason",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/partner-applications": {
            "post": {
                "tags": [
                    "Partner Hub"
                ],
                "summary": "Apply to become a partner (public)",
                "operationId": "partner-applications.store",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "company_name",
                                    "contact_name",
                                    "email",
                                    "country",
                                    "programme"
                                ],
                                "properties": {
                                    "company_name": {
                                        "type": "string"
                                    },
                                    "contact_name": {
                                        "type": "string"
                                    },
                                    "email": {
                                        "type": "string"
                                    },
                                    "country": {
                                        "type": "string",
                                        "example": "GB"
                                    },
                                    "programme": {
                                        "type": "string",
                                        "enum": [
                                            "affiliate",
                                            "referral",
                                            "reseller",
                                            "distributor"
                                        ]
                                    },
                                    "website": {
                                        "type": "string"
                                    },
                                    "team_size": {
                                        "type": "integer"
                                    },
                                    "message": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Received",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "422": {
                        "description": "Invalid",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": []
            }
        },
        "/partner-hub/home": {
            "get": {
                "tags": [
                    "Partner Hub"
                ],
                "summary": "Partner home: earnings, payout, recurring revenue, pipeline, tier, alerts, orders",
                "operationId": "partner-hub.home",
                "responses": {
                    "200": {
                        "description": "Home data",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Not a partner member",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/partner-hub/devices/summary": {
            "get": {
                "tags": [
                    "Partner Hub"
                ],
                "summary": "Counts for the partner's FireBird units",
                "description": "Units in My stock (and how many over 90 days), enrolled, active, activation commission earned, and when activation commission is earned.",
                "operationId": "partner-hub.devices.summary",
                "responses": {
                    "200": {
                        "description": "Counts",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Not a partner member",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/partner-hub/devices": {
            "get": {
                "tags": [
                    "Partner Hub"
                ],
                "summary": "The partner's FireBird units: My stock, claimed, active",
                "description": "Each unit with its order, state, dates, the customer and site it is with (own customers only; site for resellers and distributors) and whether its activation commission is earned. Filter with tab=stock|activations and search by IMEI.",
                "operationId": "partner-hub.devices",
                "responses": {
                    "200": {
                        "description": "Units",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Not a partner member",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/partner-hub/returns": {
            "get": {
                "tags": [
                    "Partner Hub"
                ],
                "summary": "The partner's returns (RMA) of FireBird units",
                "description": "Each return with its state, the warranty found when it was opened, whether a replacement goes out in advance (Gold and Platinum) and the replacement IMEI once sent. Filter with status=open|closed.",
                "operationId": "partner-hub.returns",
                "responses": {
                    "200": {
                        "description": "Returns",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Not a partner member",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Partner Hub"
                ],
                "summary": "Open a return for one of the partner's FireBird units",
                "description": "Owner, sales or finance. The unit's warranty and last time online are checked and kept on the return; Gold and Platinum partners get an advance replacement when the unit is in warranty.",
                "operationId": "partner-hub.returns.store",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "partner_device_id",
                                    "reason"
                                ],
                                "properties": {
                                    "partner_device_id": {
                                        "type": "integer"
                                    },
                                    "reason": {
                                        "type": "string",
                                        "enum": [
                                            "faulty",
                                            "damaged",
                                            "dead_on_arrival",
                                            "other"
                                        ]
                                    },
                                    "description": {
                                        "type": "string",
                                        "maxLength": 2000
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Return opened",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Refused with a reason",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/partner-hub/orders/{id}/pay": {
            "post": {
                "tags": [
                    "Partner Hub"
                ],
                "summary": "Pay a shop order by card or Direct Debit",
                "description": "Owner, sales or finance. Card orders: returns the address of Stripe's secure payment page for the order's total (an open one is reused); the order moves to Processing when Stripe confirms the payment. Direct Debit orders: returns the address of GoCardless's page to set up the mandate and pay, or url null with submitted true when the partner's kept mandate was used; the order moves to Processing when the money clears (Gold and Platinum partners when it is submitted). Only for orders waiting for payment, and only while that payment method is switched on.",
                "operationId": "partner-hub.orders.pay",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Payment page address",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "This order can't be paid by card",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/partner-hub/orders/{id}/customer-pay-link": {
            "post": {
                "tags": [
                    "Partner Hub"
                ],
                "summary": "Get a pay link for your customer",
                "description": "Owner, sales or finance. For a drop-ship order your customer pays us for by card, while it waits for payment and card payment is switched on: returns a link (url, expires_at) to send your customer yourself. It opens a page with the order lines and total and a Pay by card button (Stripe secure payment page, no sign-in). We never email your customer. The order moves to Processing when Stripe confirms the payment.",
                "operationId": "partner-hub.orders.customer-pay-link",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Pay link",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "403": {
                        "description": "Not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "This order has no customer pay link",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/application-settings": {
            "get": {
                "tags": [
                    "Application settings"
                ],
                "summary": "Get list of application-settings",
                "description": "Returns list of application-settings",
                "operationId": "application-settings.index",
                "responses": {
                    "200": {
                        "description": "application-settings Fetch Successfully"
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/application-settings/{id}": {
            "put": {
                "tags": [
                    "Application settings"
                ],
                "summary": "Update existing application-settings",
                "description": "Returns updated application-settings data",
                "operationId": "application-settings.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "address": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "string",
                                    "address": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success"
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/sites": {
            "get": {
                "tags": [
                    "Site"
                ],
                "summary": "Get list of sites",
                "description": "Returns list of sites",
                "operationId": "sites.index",
                "responses": {
                    "200": {
                        "description": "Site List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Downtown",
                                    "photo": null,
                                    "status": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Site"
                ],
                "summary": "Create new site",
                "description": "Returns site data",
                "operationId": "sites.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "address": {
                                        "type": "string"
                                    },
                                    "comment": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "string",
                                    "address": "string",
                                    "comment": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "address": {
                                            "type": "string",
                                            "example": "address"
                                        },
                                        "comment": {
                                            "type": "string",
                                            "example": "comment"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/sites/{id}": {
            "get": {
                "tags": [
                    "Site"
                ],
                "summary": "Get details of site",
                "description": "Returns site data",
                "operationId": "sites.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Site id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "address": {
                                            "type": "string",
                                            "example": "address"
                                        },
                                        "comment": {
                                            "type": "string",
                                            "example": "comment"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Site"
                ],
                "summary": "Update existing site",
                "description": "Returns updated site data",
                "operationId": "sites.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "address": {
                                        "type": "string"
                                    },
                                    "comment": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "string",
                                    "address": "string",
                                    "comment": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "address": {
                                            "type": "string",
                                            "example": "address"
                                        },
                                        "comment": {
                                            "type": "string",
                                            "example": "comment"
                                        },
                                        "organization_id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Site"
                ],
                "summary": "Delete existing Site",
                "description": "Deletes a record and returns no content",
                "operationId": "sites.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Site id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Site Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/sites/deactivate/{id}": {
            "get": {
                "tags": [
                    "Site"
                ],
                "summary": "Deactivate Site",
                "description": "Deactivate site by site id",
                "operationId": "sites.deactivate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Site id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Site Deactivated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/sites/activate/{id}": {
            "get": {
                "tags": [
                    "Site"
                ],
                "summary": "Activate Site",
                "description": "Activate site by site id",
                "operationId": "sites.activate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Site id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Site Activated Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/sites/{id}/usage-count": {
            "get": {
                "tags": [
                    "Site"
                ],
                "summary": "Get usage report",
                "description": "Returns usage report",
                "operationId": "sites.getUsageCount",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Site id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "total": {
                                            "type": "integer",
                                            "example": "100"
                                        },
                                        "used": {
                                            "type": "integer",
                                            "example": "50"
                                        },
                                        "remaining": {
                                            "type": "integer",
                                            "example": "50"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/sites/{id}/intercom-settings": {
            "patch": {
                "tags": [
                    "Site"
                ],
                "summary": "Update location intercom settings",
                "description": "Allow / disallow the location's buildings to be listed on the visitor intercom call page.",
                "operationId": "sites.intercomSettings",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Site id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "intercom_settings": {
                                        "properties": {
                                            "allow_building_call_list": {
                                                "type": "boolean",
                                                "example": true
                                            }
                                        },
                                        "type": "object"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Site intercom settings updated"
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/support/send": {
            "post": {
                "tags": [
                    "Support"
                ],
                "summary": "Sent message to support",
                "description": "Sent message to support",
                "operationId": "9218bb6381fbbb947787d40d8773c56b",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "name",
                                    "email",
                                    "message"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "email": {
                                        "type": "string"
                                    },
                                    "phone": {
                                        "type": "integer"
                                    },
                                    "message": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "My name",
                                    "email": "email@test.com",
                                    "phone": 685730694,
                                    "message": "Test message"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Mail sent successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unprocessable Entity",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/smart-devices": {
            "get": {
                "tags": [
                    "Tuya smart devices"
                ],
                "summary": "List Tuya smart devices",
                "description": "Lists devices from the organization Tuya cloud app, merged with building assignments. Requires Pro/Enterprise subscription.",
                "operationId": "smart-devices.index",
                "responses": {
                    "200": {
                        "description": "Devices fetch successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/smart-devices/{smart_device_id}": {
            "get": {
                "tags": [
                    "Tuya smart devices"
                ],
                "summary": "Get smart device details",
                "description": "Get smart device details",
                "operationId": "smart-devices.show",
                "parameters": [
                    {
                        "name": "smart_device_id",
                        "in": "path",
                        "description": "Smart device id",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Data fetch successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/smart-devices/toggleSwitch": {
            "post": {
                "tags": [
                    "Tuya smart devices"
                ],
                "summary": "Turn the device on/off",
                "description": "Turn the device on/off",
                "operationId": "c183d395ce755a661ef13a740851ef80",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "command": {
                                        "type": "boolean"
                                    },
                                    "dev_id": {
                                        "type": "string"
                                    },
                                    "dev_name": {
                                        "type": "string"
                                    },
                                    "code": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "command": true,
                                    "dev_id": "124qwerty567",
                                    "dev_name": "exampleA584",
                                    "code": "switch_led"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Device successfully deactivated",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/smart-devices/changeBrightness": {
            "post": {
                "tags": [
                    "Tuya smart devices"
                ],
                "summary": "change Brightness",
                "description": "Change Brightness",
                "operationId": "e7190e4e1c8f636e83f26a68f85ce7d8",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "brightness": {
                                        "type": "number"
                                    },
                                    "dev_id": {
                                        "type": "string"
                                    },
                                    "dev_name": {
                                        "type": "string"
                                    },
                                    "code": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "brightness": 2,
                                    "dev_id": "124qwerty567",
                                    "dev_name": "exampleA584",
                                    "code": "change_br"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Brightness successfully changed",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Get list of user",
                "description": "Returns list of user",
                "operationId": "users.index",
                "parameters": [
                    {
                        "name": "user_type",
                        "in": "query",
                        "description": "Filter by user type",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "default": "regular",
                            "enum": [
                                "regular",
                                "temporary"
                            ]
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "description": "Filter by user status",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "example": 1
                        }
                    },
                    {
                        "name": "role_id",
                        "in": "query",
                        "description": "Filter by role id. Roles: 3=Operator, 4=Entrance user, 5=Engineer, 6=Employee, 7=Visitor, 8=Guest user.",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "default": 5,
                            "example": 5
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "User List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "email": {
                                            "type": "string",
                                            "example": "email"
                                        },
                                        "role_id": {
                                            "type": "number",
                                            "example": "1"
                                        },
                                        "status": {
                                            "type": "string",
                                            "example": "1"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Jhone Doe",
                                    "email": "example@gmail.com",
                                    "role_id": 1,
                                    "photo": null,
                                    "status": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "User"
                ],
                "summary": "Create new user",
                "description": "Returns user data",
                "operationId": "users.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "email": {
                                        "type": "string"
                                    },
                                    "password": {
                                        "type": "string"
                                    },
                                    "password_confirmation": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "string",
                                    "email": "string",
                                    "password": "string",
                                    "password_confirmation": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "email": {
                                            "type": "string",
                                            "example": "email"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/{id}": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Get details of user",
                "description": "Returns user data",
                "operationId": "users.show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "User id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "email": {
                                            "type": "string",
                                            "example": "email"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "User"
                ],
                "summary": "Update existing user",
                "description": "Returns updated user data",
                "operationId": "users.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "email": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "name": "Jone Doe",
                                    "email": "example@gmail.com"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "email": {
                                            "type": "string",
                                            "example": "email"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "User"
                ],
                "summary": "Delete existing User",
                "description": "Deletes a record and returns no content",
                "operationId": "users.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "User id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/destroy-permanent/{id}": {
            "delete": {
                "tags": [
                    "User"
                ],
                "summary": "Delete existing User",
                "description": "Deletes a record and returns no content",
                "operationId": "users.destroy.permanent",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "User id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/restore/{id}": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Restore existing User",
                "description": "Restore deleted record and returns no content",
                "operationId": "users.restore",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "User id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/verify/{id}": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Verify existing User",
                "description": "Verify User and returns message",
                "operationId": "users.verify",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "User id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/unverify/{id}": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Unverify existing User",
                "description": "Unverify User and returns message",
                "operationId": "users.unverify",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "User id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/activate/{id}": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Activate existing User",
                "description": "Activate User and returns message",
                "operationId": "users.activate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "User id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/deactivate/{id}": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Deactivate existing User",
                "description": "Deactivate User and returns message",
                "operationId": "users.deactivate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "User id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/entrance-users": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Get list of entrance-users",
                "description": "Returns list of entrance-users",
                "operationId": "users.entranceUsers",
                "responses": {
                    "200": {
                        "description": "User List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "email": {
                                            "type": "string",
                                            "example": "email"
                                        },
                                        "role_id": {
                                            "type": "number",
                                            "example": "1"
                                        },
                                        "status": {
                                            "type": "string",
                                            "example": "1"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Jhone Doe",
                                    "email": "example@gmail.com",
                                    "role_id": 1,
                                    "photo": null,
                                    "status": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/users/org-users": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Get list of organization users",
                "description": "Returns list of organization users",
                "operationId": "users.organizationUsers",
                "responses": {
                    "200": {
                        "description": "User List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "email": {
                                            "type": "string",
                                            "example": "email"
                                        },
                                        "role_id": {
                                            "type": "number",
                                            "example": "1"
                                        },
                                        "status": {
                                            "type": "string",
                                            "example": "1"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Jhone Doe",
                                    "email": "example@gmail.com",
                                    "role_id": 1,
                                    "photo": null,
                                    "status": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/visitors": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Get list of visitor users",
                "description": "Returns list of visitor users",
                "operationId": "users.visitorUsers",
                "responses": {
                    "200": {
                        "description": "User List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "email": {
                                            "type": "string",
                                            "example": "email"
                                        },
                                        "role_id": {
                                            "type": "number",
                                            "example": "1"
                                        },
                                        "status": {
                                            "type": "string",
                                            "example": "1"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Jhone Doe",
                                    "email": "example@gmail.com",
                                    "role_id": 1,
                                    "photo": null,
                                    "status": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/employees": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Get list of employees users",
                "description": "Returns list of employees users",
                "operationId": "users.employeeUsers",
                "responses": {
                    "200": {
                        "description": "User List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "email": {
                                            "type": "string",
                                            "example": "email"
                                        },
                                        "role_id": {
                                            "type": "number",
                                            "example": "1"
                                        },
                                        "status": {
                                            "type": "string",
                                            "example": "1"
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Jhone Doe",
                                    "email": "example@gmail.com",
                                    "role_id": 1,
                                    "photo": null,
                                    "status": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/tokens": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Get list of Tokens of Current User",
                "description": "Get list of APIs Tokens of User",
                "operationId": "users.tokenList",
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "User"
                ],
                "summary": "Generate new Token of Current User",
                "description": "Generate new Token of Current User",
                "operationId": "users.tokenGenerate",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "token_name": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "token_name": "Api"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/tokens/{id}": {
            "delete": {
                "tags": [
                    "User"
                ],
                "summary": "Delete existing User token",
                "description": "Delete existing User token and returns message",
                "operationId": "users.tokenRevoke",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Token id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/resend-unverified-email": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Resend Emails to unverified existing Users",
                "description": "Resend Emails to unverified existing Users",
                "operationId": "users.resendUnverifiedEmail",
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/building-update": {
            "post": {
                "tags": [
                    "User"
                ],
                "summary": "Update building of existing user",
                "description": "Returns success message",
                "operationId": "users.buildingUpdate",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "building_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "building_id": 1
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/nexmo/update/{id}": {
            "put": {
                "tags": [
                    "User"
                ],
                "summary": "Nexmo Credential Update for user",
                "description": "Returns success message",
                "operationId": "users.nexmoCredentialUpdate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "User id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "nexmo_key": {
                                        "type": "string"
                                    },
                                    "nexmo_secret": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "nexmo_key": "string",
                                    "nexmo_secret": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/tuya/update/{id}": {
            "put": {
                "tags": [
                    "User"
                ],
                "summary": "Tuya Credential Update for user",
                "description": "Returns success message",
                "operationId": "users.tuyaCredentialUpdate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "User id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "tuya_key": {
                                        "type": "string"
                                    },
                                    "tuya_secret": {
                                        "type": "string"
                                    },
                                    "tuya_app_list": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "tuya_key": "string",
                                    "tuya_secret": "string",
                                    "tuya_app_list": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/easyset/update/{id}": {
            "put": {
                "tags": [
                    "User"
                ],
                "summary": "Easyset Credential Update for user",
                "description": "Returns success message",
                "operationId": "users.easysetCredentialUpdate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "User id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "username": {
                                        "type": "string"
                                    },
                                    "password": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "username": "string",
                                    "password": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/sim-credential/update/{id}": {
            "post": {
                "tags": [
                    "User"
                ],
                "summary": "Sim Credential Credential Update for user",
                "description": "Returns success message",
                "operationId": "users.simCredentialUpdate",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "User id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "username": {
                                        "type": "string"
                                    },
                                    "password": {
                                        "type": "string"
                                    }
                                },
                                "type": "object",
                                "example": {
                                    "username": "string",
                                    "password": "string"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/account-switch/{id}": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Switch User Organisation",
                "description": "Switch User Organisation and returns no content",
                "operationId": "users.switchUserOrganisation",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Organisation id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/users/theme/{id}": {
            "get": {
                "tags": [
                    "User"
                ],
                "summary": "Change User Theme",
                "description": "Change Theme and store User",
                "operationId": "users.theme",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Theme ID",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/user-pins": {
            "get": {
                "tags": [
                    "User Pin"
                ],
                "summary": "Get list of user-pins",
                "description": "Returns list of user-pins",
                "operationId": "user-pins.index",
                "responses": {
                    "200": {
                        "description": "User-pin List Fetch Successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "name"
                                        },
                                        "photo": {
                                            "type": "string",
                                            "example": null
                                        },
                                        "status": {
                                            "type": "number",
                                            "example": 1
                                        }
                                    },
                                    "type": "object"
                                },
                                "example": {
                                    "id": 1,
                                    "name": "Downtown",
                                    "photo": null,
                                    "status": 1
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/user-pins/{id}": {
            "delete": {
                "tags": [
                    "User Pin"
                ],
                "summary": "Delete existing User-pin",
                "description": "Deletes a record and returns no content",
                "operationId": "user-pins.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "User-pin id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "User-pin Deleted Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/user-pins/restore/{id}": {
            "get": {
                "tags": [
                    "Entrance Pin"
                ],
                "summary": "Restore existing user pin",
                "description": "Restore a record and returns no content",
                "operationId": "user-pins.userPinRestore",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "User Pin id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Entrance Pin Restore Successfully"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation Fail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/user-pins/destroy-permanent/{id}": {
            "delete": {
                "tags": [
                    "User Pin"
                ],
                "summary": "Delete existing user-pin",
                "description": "Deletes a record and returns no content",
                "operationId": "user-pins.destroy.permanent",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "User-pins id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "404": {
                        "description": "Resource Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/visualizers": {
            "get": {
                "tags": [
                    "Visualizer"
                ],
                "summary": "Get all visualizers",
                "description": "write swagger docs.",
                "operationId": "f8358cf9555c9525d50e9001009c16b8",
                "parameters": [
                    {
                        "name": "column_name",
                        "in": "query",
                        "description": "Column name for sorting",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "description": "Order by ASC or DESC",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Search by name, description, status, created_by, organization_id, objects",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "Number of items per page",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation"
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/visualizer-objects": {
            "get": {
                "tags": [
                    "Visualizer"
                ],
                "summary": "List visualizer objects",
                "description": "Floor-plan icons linked to devices. Paginated; operators see objects on assigned visualizers.",
                "operationId": "visualizer-objects.index",
                "parameters": [
                    {
                        "name": "column_name",
                        "in": "query",
                        "description": "Column name",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "description": "Order",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "filter_by_building_id",
                        "in": "query",
                        "description": "Filter by building id",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Search",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "Per page",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation"
                    },
                    "403": {
                        "description": "View permission Not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Visualizer"
                ],
                "summary": "Create visualizer object",
                "description": "// write swagger docs",
                "operationId": "visualizer-objects.store",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "type": {
                                        "type": "string"
                                    },
                                    "device_id": {
                                        "type": "string"
                                    },
                                    "object_value": {
                                        "type": "string"
                                    },
                                    "status": {
                                        "type": "integer"
                                    },
                                    "photo": {
                                        "type": "file"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful operation"
                    },
                    "403": {
                        "description": "Create permission Not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/visualizer-objects/{id}": {
            "put": {
                "tags": [
                    "Visualizer"
                ],
                "summary": "Update visualizer object",
                "description": "Updates an object (door, camera, sensor) placed on a visualiser floor plan: its position, size or linked device.",
                "operationId": "visualizer-objects.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Graphic Object ID",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "name",
                                    "type",
                                    "device_id",
                                    "object_value",
                                    "status"
                                ],
                                "properties": {
                                    "name": {
                                        "description": "Name of the graphic object",
                                        "type": "string"
                                    },
                                    "type": {
                                        "description": "Type of the graphic object",
                                        "type": "string"
                                    },
                                    "device_id": {
                                        "description": "Device ID associated with the object",
                                        "type": "string"
                                    },
                                    "object_value": {
                                        "description": "Value of the object",
                                        "type": "string"
                                    },
                                    "status": {
                                        "description": "Status of the graphic object",
                                        "type": "integer"
                                    },
                                    "photo": {
                                        "description": "Photo associated with the graphic object",
                                        "type": "string",
                                        "format": "binary"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Graphic object updated successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "success": {
                                            "type": "boolean"
                                        },
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Graphic object not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "error": {
                                            "type": "string"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "error": {
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Visualizer"
                ],
                "summary": "Delete visualizer object",
                "description": "// write swagger docs",
                "operationId": "visualizer-objects.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Graphic Object ID",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "success": {
                                            "type": "boolean"
                                        },
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Delete permission Not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "error": {
                                            "type": "string"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/webhooks": {
            "get": {
                "tags": [
                    "Webhook"
                ],
                "summary": "List Webhooks",
                "description": "Get a paginated list of webhooks with optional search, sorting, and pagination.",
                "operationId": "webhooks.index",
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Search term for filtering webhooks.",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "Number of items to display per page.",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Webhook"
                ],
                "summary": "Create Webhook",
                "description": "Create a new webhook.",
                "operationId": "webhooks.store",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "name",
                                    "url",
                                    "event"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "example": "Webhook Name"
                                    },
                                    "url": {
                                        "type": "string",
                                        "example": "https://example.com/webhook"
                                    },
                                    "event": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        },
                                        "example": [
                                            "user.created",
                                            "user.updated"
                                        ]
                                    },
                                    "status": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "organization_id": {
                                        "type": "integer",
                                        "example": 1
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Webhook created successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "integer",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "Webhook Name"
                                        },
                                        "url": {
                                            "type": "string",
                                            "example": "https://example.com/webhook"
                                        },
                                        "event": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            },
                                            "example": [
                                                "user.created",
                                                "user.updated"
                                            ]
                                        },
                                        "status": {
                                            "type": "integer",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "integer",
                                            "example": 1
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2022-10-27T09:52:53.000000Z"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2022-10-27T09:52:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/webhooks/{id}": {
            "put": {
                "tags": [
                    "Webhook"
                ],
                "summary": "Update Webhook",
                "description": "Update a webhook.",
                "operationId": "webhooks.update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Webhook ID",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "name",
                                    "url",
                                    "event"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "example": "Webhook Name"
                                    },
                                    "url": {
                                        "type": "string",
                                        "example": "https://example.com/webhook"
                                    },
                                    "event": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        },
                                        "example": [
                                            "user.created",
                                            "user.updated"
                                        ]
                                    },
                                    "status": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "organization_id": {
                                        "type": "integer",
                                        "example": 1
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Webhook updated successfully",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "integer",
                                            "example": 1
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "Webhook Name"
                                        },
                                        "url": {
                                            "type": "string",
                                            "example": "https://example.com/webhook"
                                        },
                                        "event": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            },
                                            "example": [
                                                "user.created",
                                                "user.updated"
                                            ]
                                        },
                                        "status": {
                                            "type": "integer",
                                            "example": 1
                                        },
                                        "organization_id": {
                                            "type": "integer",
                                            "example": 1
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2022-10-27T09:52:53.000000Z"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2022-10-27T09:52:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Webhook"
                ],
                "summary": "Delete Webhook",
                "description": "Delete a webhook.",
                "operationId": "webhooks.destroy",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Webhook ID",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Webhook deleted successfully",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/webhooks/event-types": {
            "get": {
                "tags": [
                    "Webhook"
                ],
                "summary": "List webhook event types",
                "description": "Every event a webhook can subscribe to: type, version, group, description, whether deliveries are signed, and a sample of the data it carries. Put the types you want in the webhook's events list.",
                "operationId": "webhooks.eventTypes",
                "responses": {
                    "200": {
                        "description": "Event types"
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/webhooks/{id}/deliveries": {
            "get": {
                "tags": [
                    "Webhook"
                ],
                "summary": "List a webhook's deliveries",
                "description": "The delivery log of one webhook, newest first, 20 a page (kept 30 days): event type, status (pending, sending, retrying, succeeded, failed), attempts, the answer code and when the next try is due. Filter with status.",
                "operationId": "webhooks.deliveries",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Webhook ID",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "description": "Only deliveries with this status",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "pending",
                                "sending",
                                "retrying",
                                "succeeded",
                                "failed"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "Page number",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Deliveries"
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Webhook not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/webhooks/deliveries/{delivery}": {
            "get": {
                "tags": [
                    "Webhook"
                ],
                "summary": "Show one delivery",
                "description": "One delivery with the exact JSON body that was sent (signed deliveries send the same body on every try) and the headers used, without the signature.",
                "operationId": "webhooks.delivery",
                "parameters": [
                    {
                        "name": "delivery",
                        "in": "path",
                        "description": "Delivery id (dlv_...)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Delivery"
                    },
                    "404": {
                        "description": "Delivery not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/webhooks/deliveries/{delivery}/replay": {
            "post": {
                "tags": [
                    "Webhook"
                ],
                "summary": "Replay a delivery",
                "description": "Sends the same event again to the same webhook as a new delivery (same event id, so your endpoint can tell it is a repeat). Works while the event is kept (30 days) and the webhook is switched on and not paused.",
                "operationId": "webhooks.replay",
                "parameters": [
                    {
                        "name": "delivery",
                        "in": "path",
                        "description": "Delivery id (dlv_...)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Replay queued"
                    },
                    "404": {
                        "description": "Delivery not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The webhook is paused or switched off, or the event is no longer kept",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/webhooks/{id}/test-event": {
            "post": {
                "tags": [
                    "Webhook"
                ],
                "summary": "Send a test event",
                "description": "Sends a signed delivery of the chosen event type with its sample data straight away (one try, marked test: true) and answers with the result, so you can check your endpoint verifies the signature. 10 a minute.",
                "operationId": "webhooks.testEvent",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Webhook ID",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "event_type": {
                                        "description": "A signed event type from the event types list; webhook.test when left out",
                                        "type": "string",
                                        "example": "webhook.test"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Test delivery result"
                    },
                    "404": {
                        "description": "Webhook not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Unknown event type or the address is not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many test events",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/webhooks/{id}/rotate-secret": {
            "post": {
                "tags": [
                    "Webhook"
                ],
                "summary": "Rotate a webhook's signing secret",
                "description": "Makes a new signing secret and answers with it once (it is never shown again). For the next 24 hours deliveries carry two v1 signatures, one with the new and one with the old secret, so you can switch without missing events.",
                "operationId": "webhooks.rotateSecret",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Webhook ID",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The new secret (shown once)"
                    },
                    "404": {
                        "description": "Webhook not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/webhooks/{id}/resume": {
            "post": {
                "tags": [
                    "Webhook"
                ],
                "summary": "Resume a paused webhook",
                "description": "A webhook is paused after many failed deliveries in a row. Resume starts sending again: deliveries that were waiting are sent, and the failure count starts from zero.",
                "operationId": "webhooks.resume",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Webhook ID",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Resumed"
                    },
                    "404": {
                        "description": "Webhook not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/help/feedback": {
            "get": {
                "tags": [
                    "Support"
                ],
                "summary": "Help centre feedback (Super Admin)",
                "description": "Anonymous 'Did this help?' answers from the help centre: totals, answers per guide (yes, no, comments, last answer) and the newest comments. Add format=csv for every answer as a CSV file. Super Admins only.",
                "operationId": "api.help.feedback",
                "parameters": [
                    {
                        "name": "path",
                        "in": "query",
                        "description": "Only comments for this guide, e.g. /help/door-keys/open-a-door-with-your-phone",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "Newest comments to return (1-200, default 50)",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "description": "csv to download every answer",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "csv"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Feedback summary",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Super Admins only",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        },
        "/notice-board": {
            "get": {
                "tags": [
                    "Notice board"
                ],
                "summary": "Get buildings, entrance groups and people to notify",
                "description": "Lists the active buildings, entrance groups and people the signed-in person may send notices to (capped list; the dashboard searches with /notice-board/recipients instead). Needs the manage notice board permission.",
                "operationId": "notice-board.index",
                "responses": {
                    "200": {
                        "description": "Successfully received",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Notice board"
                ],
                "summary": "Send a notice",
                "description": "Queues a notice by email, SMS, voice call, push (web and app), Telegram or Slack and returns straight away; it is sent in the background. Operators can send to entrance users, buildings and entrance groups only; organisation-wide and To All audiences are Super Admin only; Telegram and Slack reach staff only. Sends to more than a few hundred people must repeat the request with confirmed=true (the first answer is 409 with needs_confirmation). The same notice sent twice within 2 minutes is refused.",
                "operationId": "notice-board.store",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "type",
                                    "notice_type",
                                    "message"
                                ],
                                "properties": {
                                    "type": {
                                        "description": "How to send it.",
                                        "type": "string",
                                        "enum": [
                                            "email",
                                            "sms",
                                            "voice_call",
                                            "push_notification",
                                            "telegram_notification",
                                            "slack_notification"
                                        ]
                                    },
                                    "notice_type": {
                                        "description": "Who gets it.",
                                        "type": "string",
                                        "enum": [
                                            "entrance-user",
                                            "organization",
                                            "operator",
                                            "engineer",
                                            "building",
                                            "access-group",
                                            "all"
                                        ]
                                    },
                                    "subject": {
                                        "description": "Needed for email.",
                                        "type": "string",
                                        "maxLength": 150
                                    },
                                    "message": {
                                        "description": "The text. SMS and voice calls: up to 160 characters; push: 2,000; Telegram: 4,000.",
                                        "type": "string"
                                    },
                                    "entrance_users": {
                                        "description": "Person IDs, for notice_type entrance-user.",
                                        "type": "array",
                                        "items": {
                                            "type": "integer"
                                        }
                                    },
                                    "buildings": {
                                        "description": "Building IDs, for notice_type building.",
                                        "type": "array",
                                        "items": {
                                            "type": "integer"
                                        }
                                    },
                                    "access_groups": {
                                        "description": "Entrance group IDs, for notice_type access-group.",
                                        "type": "array",
                                        "items": {
                                            "type": "integer"
                                        }
                                    },
                                    "everyone": {
                                        "description": "Everyone in the chosen audience instead of a list of IDs.",
                                        "type": "boolean"
                                    },
                                    "filters": {
                                        "description": "Optional refinements (account status, user type, membership). Left out: active people, regular entrance users, approved members.",
                                        "type": "object"
                                    },
                                    "confirmed": {
                                        "description": "Send true to confirm a large send.",
                                        "type": "boolean"
                                    }
                                },
                                "type": "object"
                            },
                            "example": {
                                "type": "email",
                                "notice_type": "building",
                                "buildings": [
                                    7
                                ],
                                "subject": "Lift maintenance",
                                "message": "The lift is out of service on Tuesday from 9:00 to 12:00."
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Notice queued for sending",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthenticated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "A large send that needs confirmed=true, or the same notice was just sent.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Missing or wrong fields, or nobody in the selection can receive this kind of notice.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationError"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "sanctum": []
                    }
                ]
            }
        }
    },
    "components": {
        "parameters": {
            "PaginationPerPage": {
                "name": "per_page",
                "in": "query",
                "description": "Page size for paginated list endpoints.",
                "required": false,
                "schema": {
                    "type": "integer",
                    "default": 10,
                    "maximum": 100,
                    "minimum": 1
                }
            },
            "PaginationColumnName": {
                "name": "column_name",
                "in": "query",
                "description": "Column to sort by.",
                "required": false,
                "schema": {
                    "type": "string",
                    "default": "id"
                }
            },
            "PaginationOrder": {
                "name": "order",
                "in": "query",
                "description": "Sort direction.",
                "required": false,
                "schema": {
                    "type": "string",
                    "default": "DESC",
                    "enum": [
                        "ASC",
                        "DESC"
                    ]
                }
            },
            "PaginationSearch": {
                "name": "search",
                "in": "query",
                "description": "Free-text search when supported by the endpoint.",
                "required": false,
                "schema": {
                    "type": "string"
                }
            }
        },
        "securitySchemes": {
            "sanctum": {
                "type": "http",
                "description": "Bearer token from POST /api/auth-token or SPA session cookie on the same origin.",
                "bearerFormat": "Sanctum",
                "scheme": "bearer"
            }
        },
        "schemas": {
            "Envelope": {
                "type": "object",
                "description": "The shape of most successful replies. `data` holds the record or list.",
                "properties": {
                    "success": {
                        "type": "boolean",
                        "example": true
                    },
                    "message": {
                        "type": "string",
                        "example": "Success."
                    },
                    "data": {
                        "description": "The record, list or page you asked for."
                    }
                }
            },
            "Error": {
                "type": "object",
                "description": "An error. `message` is plain English and safe to show to people.",
                "properties": {
                    "success": {
                        "type": "boolean",
                        "example": false
                    },
                    "message": {
                        "type": "string",
                        "example": "Entrance Not Found."
                    }
                },
                "required": [
                    "message"
                ]
            },
            "Page": {
                "type": "object",
                "description": "One page of a list (inside `data`).",
                "properties": {
                    "current_page": {
                        "type": "integer",
                        "example": 1
                    },
                    "data": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "per_page": {
                        "type": "integer",
                        "example": 10
                    },
                    "total": {
                        "type": "integer",
                        "example": 42
                    },
                    "last_page": {
                        "type": "integer",
                        "example": 5
                    },
                    "next_page_url": {
                        "type": "string",
                        "nullable": true
                    },
                    "prev_page_url": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "ValidationError": {
                "type": "object",
                "description": "Some fields were missing or wrong. `errors` lists the messages per field.",
                "properties": {
                    "message": {
                        "type": "string",
                        "example": "The name field is required."
                    },
                    "errors": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "example": {
                            "name": [
                                "The name field is required."
                            ]
                        }
                    }
                },
                "required": [
                    "message"
                ]
            }
        },
        "responses": {
            "TooManyRequests": {
                "description": "Too many requests: over 300 a minute for this person (300 a minute for this address when not signed in; some endpoints allow fewer). Wait the number of seconds in `Retry-After`, then try again.",
                "headers": {
                    "Retry-After": {
                        "description": "Seconds to wait.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                },
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            }
        }
    },
    "tags": [
        {
            "name": "Authentication",
            "description": "Get an API token from an email and password. Most integrations use an API key created in the dashboard instead."
        },
        {
            "name": "Organizations",
            "description": "Organizations"
        },
        {
            "name": "Site",
            "description": "Sites are the places your buildings belong to."
        },
        {
            "name": "Building",
            "description": "Buildings, their entrances and their intercom call lists."
        },
        {
            "name": "Building Group",
            "description": "Groups of buildings managed together."
        },
        {
            "name": "Visualizer",
            "description": "Visualizer"
        },
        {
            "name": "Entrance",
            "description": "Doors, gates and barriers: list them, open them, and read their settings."
        },
        {
            "name": "Entrance Group",
            "description": "Who may open which doors. People join a group; the group holds the doors."
        },
        {
            "name": "Entrance Pin",
            "description": "Keypad codes, cards and other credentials for doors."
        },
        {
            "name": "User Pin",
            "description": "User Pin"
        },
        {
            "name": "Device timers",
            "description": "Device timers"
        },
        {
            "name": "Access Logs",
            "description": "Org-wide access control logs (Logs → Access Control Logs)."
        },
        {
            "name": "User",
            "description": "People in your organisation: managers, door users, employees, visitors and guests."
        },
        {
            "name": "Meeting",
            "description": "Visitor meetings and their invitations."
        },
        {
            "name": "Notice board",
            "description": "Send notices by email, SMS, push, Telegram or Slack to people, buildings or entrance groups."
        },
        {
            "name": "Notification",
            "description": "Notification"
        },
        {
            "name": "Support",
            "description": "Support"
        },
        {
            "name": "Intercom",
            "description": "Video intercom call history and visitor call lifecycle (V1)."
        },
        {
            "name": "Automation",
            "description": "Rules that react to events (a door opens, an alarm starts) and take actions."
        },
        {
            "name": "Webhook",
            "description": "Addresses we call when something happens in your organisation."
        },
        {
            "name": "Issue Report",
            "description": "Issue Report"
        },
        {
            "name": "Issue Report Categories",
            "description": "Issue Report Categories"
        },
        {
            "name": "FireBird",
            "description": "FireBird controllers: status, relays, inputs and settings."
        },
        {
            "name": "FireBird Events",
            "description": "FireBird Events"
        },
        {
            "name": "FireBird I/O Logs",
            "description": "FireBird I/O Logs"
        },
        {
            "name": "FireBird Reports",
            "description": "FireBird Reports"
        },
        {
            "name": "FireBird OTA",
            "description": "FireBird firmware releases and staged over-the-air rollouts (super admin)."
        },
        {
            "name": "Easyset-devices",
            "description": "Easyset-devices"
        },
        {
            "name": "Burglar Alarm",
            "description": "Burglar Alarm"
        },
        {
            "name": "Parking Sensor",
            "description": "Parking Sensor"
        },
        {
            "name": "Parking Sensor Event",
            "description": "Parking Sensor Event"
        },
        {
            "name": "Parking Sensor Events",
            "description": "Parking Sensor Events"
        },
        {
            "name": "Parking Camera",
            "description": "Parking Camera"
        },
        {
            "name": "Tuya smart devices",
            "description": "Tuya smart devices"
        },
        {
            "name": "Other Devices",
            "description": "Other Devices"
        },
        {
            "name": "Device group",
            "description": "Device group"
        },
        {
            "name": "Device Event Log",
            "description": "Device Event Log"
        },
        {
            "name": "Exports",
            "description": "Async CSV/PDF/HTML export jobs."
        },
        {
            "name": "Charts",
            "description": "Charts"
        },
        {
            "name": "Background status",
            "description": "Background status"
        },
        {
            "name": "Background Notification",
            "description": "Background Notification"
        },
        {
            "name": "Application settings",
            "description": "Application settings"
        },
        {
            "name": "Partner Control Centre",
            "description": "Partner Control Centre"
        },
        {
            "name": "Partner Hub",
            "description": "Partner Hub"
        }
    ],
    "x-tagGroups": [
        {
            "name": "Getting started",
            "tags": [
                "Authentication"
            ]
        },
        {
            "name": "Places",
            "tags": [
                "Organizations",
                "Site",
                "Building",
                "Building Group",
                "Visualizer"
            ]
        },
        {
            "name": "Doors and access",
            "tags": [
                "Entrance",
                "Entrance Group",
                "Entrance Pin",
                "User Pin",
                "Device timers",
                "Access Logs"
            ]
        },
        {
            "name": "People",
            "tags": [
                "User",
                "Meeting",
                "Notice board",
                "Notification",
                "Support"
            ]
        },
        {
            "name": "Intercom",
            "tags": [
                "Intercom"
            ]
        },
        {
            "name": "Automation",
            "tags": [
                "Automation",
                "Webhook"
            ]
        },
        {
            "name": "Issue reports",
            "tags": [
                "Issue Report",
                "Issue Report Categories"
            ]
        },
        {
            "name": "FireBird controllers",
            "tags": [
                "FireBird",
                "FireBird Events",
                "FireBird I/O Logs",
                "FireBird Reports",
                "FireBird OTA"
            ]
        },
        {
            "name": "Other devices",
            "tags": [
                "Easyset-devices",
                "Burglar Alarm",
                "Parking Sensor",
                "Parking Sensor Event",
                "Parking Sensor Events",
                "Parking Camera",
                "Tuya smart devices",
                "Other Devices",
                "Device group",
                "Device Event Log"
            ]
        },
        {
            "name": "Reports and exports",
            "tags": [
                "Exports",
                "Charts",
                "Background status",
                "Background Notification",
                "Application settings"
            ]
        },
        {
            "name": "More",
            "tags": [
                "Partner Control Centre",
                "Partner Hub"
            ]
        }
    ],
    "x-polished": 1
}