{ "openapi": "3.1.0", "info": { "title": "amobile-test backend", "version": "2.0.0" }, "paths": { "/api/auth/login": { "post": { "tags": [ "auth" ], "summary": "Login", "operationId": "login_api_auth_login_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginIn" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/me": { "get": { "tags": [ "auth" ], "summary": "Me", "operationId": "me_api_auth_me_get", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/users": { "post": { "tags": [ "auth" ], "summary": "Create User", "operationId": "create_user_api_auth_users_post", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserCreate" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/employees": { "post": { "tags": [ "employees" ], "summary": "Create Employee", "operationId": "create_employee_api_employees_post", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EmployeeCreate" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EmployeeOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "get": { "tags": [ "employees" ], "summary": "List Employees", "operationId": "list_employees_api_employees_get", "parameters": [ { "name": "department", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Department" } }, { "name": "is_active", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Active" } }, { "name": "search", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Search" } }, { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 1, "default": 1, "title": "Page" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 100, "minimum": 1, "default": 20, "title": "Limit" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_EmployeeOut_" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/employees/{employee_id}": { "get": { "tags": [ "employees" ], "summary": "Get Employee", "operationId": "get_employee_api_employees__employee_id__get", "parameters": [ { "name": "employee_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Employee Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EmployeeOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "put": { "tags": [ "employees" ], "summary": "Update Employee", "operationId": "update_employee_api_employees__employee_id__put", "parameters": [ { "name": "employee_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Employee Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EmployeeUpdate" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EmployeeOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/employees/{employee_id}/deactivate": { "patch": { "tags": [ "employees" ], "summary": "Deactivate Employee", "operationId": "deactivate_employee_api_employees__employee_id__deactivate_patch", "parameters": [ { "name": "employee_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Employee Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EmployeeOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/tickets": { "post": { "tags": [ "tickets" ], "summary": "Create Ticket", "operationId": "create_ticket_api_tickets_post", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TicketCreate" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TicketOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "get": { "tags": [ "tickets" ], "summary": "List Tickets", "operationId": "list_tickets_api_tickets_get", "parameters": [ { "name": "status", "in": "query", "required": false, "schema": { "anyOf": [ { "$ref": "#/components/schemas/TicketStatus" }, { "type": "null" } ], "title": "Status" } }, { "name": "priority", "in": "query", "required": false, "schema": { "anyOf": [ { "$ref": "#/components/schemas/Priority" }, { "type": "null" } ], "title": "Priority" } }, { "name": "employee_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Employee Id" } }, { "name": "assigned_to", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Assigned To" } }, { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 1, "default": 1, "title": "Page" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 100, "minimum": 1, "default": 20, "title": "Limit" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_TicketOut_" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/tickets/stats": { "get": { "tags": [ "tickets" ], "summary": "Ticket Stats", "operationId": "ticket_stats_api_tickets_stats_get", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TicketStats" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/tickets/{ticket_id}": { "get": { "tags": [ "tickets" ], "summary": "Get Ticket", "operationId": "get_ticket_api_tickets__ticket_id__get", "parameters": [ { "name": "ticket_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Ticket Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TicketOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/tickets/{ticket_id}/assign": { "patch": { "tags": [ "tickets" ], "summary": "Assign Ticket", "operationId": "assign_ticket_api_tickets__ticket_id__assign_patch", "parameters": [ { "name": "ticket_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Ticket Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TicketAssign" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TicketOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/tickets/{ticket_id}/status": { "patch": { "tags": [ "tickets" ], "summary": "Change Status", "operationId": "change_status_api_tickets__ticket_id__status_patch", "parameters": [ { "name": "ticket_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Ticket Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TicketStatusUpdate" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TicketOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/admin/clients": { "post": { "tags": [ "admin:clients" ], "summary": "Create Client", "operationId": "create_client_api_admin_clients_post", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientCreate" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientCreatedOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/admin/clients/{client_id}/keys": { "post": { "tags": [ "admin:clients" ], "summary": "Rotate Key", "description": "Issue a new key for the client (rotation). The plaintext is shown once.", "operationId": "rotate_key_api_admin_clients__client_id__keys_post", "parameters": [ { "name": "client_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Client Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientCreatedOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/admin/clients/{client_id}/deactivate": { "patch": { "tags": [ "admin:clients" ], "summary": "Deactivate Client", "operationId": "deactivate_client_api_admin_clients__client_id__deactivate_patch", "parameters": [ { "name": "client_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Client Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/integration/requests": { "post": { "tags": [ "integration" ], "summary": "Submit Request", "operationId": "submit_request_api_integration_requests_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IntegrationRequestIn" } } }, "required": true }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IntegrationRequestOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/admin/integration/requests": { "get": { "tags": [ "admin:integration" ], "summary": "List Requests", "operationId": "list_requests_api_admin_integration_requests_get", "parameters": [ { "name": "client_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Client Id" } }, { "name": "status", "in": "query", "required": false, "schema": { "anyOf": [ { "$ref": "#/components/schemas/RequestStatus" }, { "type": "null" } ], "title": "Status" } }, { "name": "request_type", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Request Type" } }, { "name": "date_from", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Date From" } }, { "name": "date_to", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Date To" } }, { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 1, "default": 1, "title": "Page" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 100, "minimum": 1, "default": 20, "title": "Limit" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_IntegrationRequestOut_" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/admin/integration/requests/{request_id}/process": { "post": { "tags": [ "admin:integration" ], "summary": "Process Request", "operationId": "process_request_api_admin_integration_requests__request_id__process_post", "parameters": [ { "name": "request_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Request Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProcessResultOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/admin/audit": { "get": { "tags": [ "admin:audit" ], "summary": "List Audit", "operationId": "list_audit_api_admin_audit_get", "parameters": [ { "name": "client_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Client Id" } }, { "name": "success", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Success" } }, { "name": "action", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Action" } }, { "name": "date_from", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Date From" } }, { "name": "date_to", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Date To" } }, { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 1, "default": 1, "title": "Page" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 100, "minimum": 1, "default": 20, "title": "Limit" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_AuditOut_" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/health": { "get": { "tags": [ "meta" ], "summary": "Health", "operationId": "health_health_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": { "type": "string" }, "type": "object", "title": "Response Health Health Get" } } } } } } } }, "components": { "schemas": { "AuditOut": { "properties": { "id": { "type": "integer", "title": "Id" }, "client_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Client Id" }, "action": { "type": "string", "title": "Action" }, "ip_address": { "type": "string", "title": "Ip Address" }, "user_agent": { "type": "string", "title": "User Agent" }, "success": { "type": "boolean", "title": "Success" }, "details": { "anyOf": [ {}, { "type": "null" } ], "title": "Details" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "action", "ip_address", "user_agent", "success", "created_at" ], "title": "AuditOut" }, "ClientCreate": { "properties": { "name": { "type": "string", "minLength": 1, "title": "Name" }, "requests_limit_per_minute": { "type": "integer", "minimum": 1.0, "title": "Requests Limit Per Minute", "default": 60 } }, "type": "object", "required": [ "name" ], "title": "ClientCreate" }, "ClientCreatedOut": { "properties": { "client_id": { "type": "integer", "title": "Client Id" }, "api_key": { "type": "string", "title": "Api Key" } }, "type": "object", "required": [ "client_id", "api_key" ], "title": "ClientCreatedOut", "description": "Returned once on creation — the only place the plaintext key is exposed (INV-P8)." }, "ClientOut": { "properties": { "id": { "type": "integer", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "is_active": { "type": "boolean", "title": "Is Active" }, "requests_limit_per_minute": { "type": "integer", "title": "Requests Limit Per Minute" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "name", "is_active", "requests_limit_per_minute", "created_at" ], "title": "ClientOut" }, "EmployeeCreate": { "properties": { "full_name": { "type": "string", "minLength": 1, "title": "Full Name" }, "position": { "type": "string", "minLength": 1, "title": "Position" }, "department": { "type": "string", "minLength": 1, "title": "Department" }, "phone": { "type": "string", "minLength": 1, "title": "Phone" }, "email": { "type": "string", "format": "email", "title": "Email" }, "external_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "External Id" } }, "type": "object", "required": [ "full_name", "position", "department", "phone", "email" ], "title": "EmployeeCreate" }, "EmployeeOut": { "properties": { "id": { "type": "integer", "title": "Id" }, "full_name": { "type": "string", "title": "Full Name" }, "position": { "type": "string", "title": "Position" }, "department": { "type": "string", "title": "Department" }, "phone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Phone" }, "email": { "type": "string", "title": "Email" }, "is_active": { "type": "boolean", "title": "Is Active" }, "external_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "External Id" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" }, "updated_at": { "type": "string", "format": "date-time", "title": "Updated At" } }, "type": "object", "required": [ "id", "full_name", "position", "department", "email", "is_active", "created_at", "updated_at" ], "title": "EmployeeOut" }, "EmployeeUpdate": { "properties": { "full_name": { "anyOf": [ { "type": "string", "minLength": 1 }, { "type": "null" } ], "title": "Full Name" }, "position": { "anyOf": [ { "type": "string", "minLength": 1 }, { "type": "null" } ], "title": "Position" }, "department": { "anyOf": [ { "type": "string", "minLength": 1 }, { "type": "null" } ], "title": "Department" }, "phone": { "anyOf": [ { "type": "string", "minLength": 1 }, { "type": "null" } ], "title": "Phone" }, "email": { "anyOf": [ { "type": "string", "format": "email" }, { "type": "null" } ], "title": "Email" }, "is_active": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Active" } }, "type": "object", "title": "EmployeeUpdate" }, "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "type": "array", "title": "Detail" } }, "type": "object", "title": "HTTPValidationError" }, "IntegrationRequestIn": { "properties": { "request_type": { "type": "string", "minLength": 1, "title": "Request Type" }, "payload": { "additionalProperties": true, "type": "object", "title": "Payload" } }, "type": "object", "required": [ "request_type" ], "title": "IntegrationRequestIn" }, "IntegrationRequestOut": { "properties": { "id": { "type": "integer", "title": "Id" }, "client_id": { "type": "integer", "title": "Client Id" }, "request_type": { "type": "string", "title": "Request Type" }, "payload": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Payload" }, "status": { "type": "string", "title": "Status" }, "error_message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error Message" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" }, "processed_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Processed At" } }, "type": "object", "required": [ "id", "client_id", "request_type", "status", "created_at" ], "title": "IntegrationRequestOut" }, "LoginIn": { "properties": { "email": { "type": "string", "format": "email", "title": "Email" }, "password": { "type": "string", "minLength": 1, "title": "Password" } }, "type": "object", "required": [ "email", "password" ], "title": "LoginIn" }, "Page_AuditOut_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/AuditOut" }, "type": "array", "title": "Items" }, "total": { "type": "integer", "title": "Total" }, "page": { "type": "integer", "title": "Page" }, "limit": { "type": "integer", "title": "Limit" } }, "type": "object", "required": [ "items", "total", "page", "limit" ], "title": "Page[AuditOut]" }, "Page_EmployeeOut_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/EmployeeOut" }, "type": "array", "title": "Items" }, "total": { "type": "integer", "title": "Total" }, "page": { "type": "integer", "title": "Page" }, "limit": { "type": "integer", "title": "Limit" } }, "type": "object", "required": [ "items", "total", "page", "limit" ], "title": "Page[EmployeeOut]" }, "Page_IntegrationRequestOut_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/IntegrationRequestOut" }, "type": "array", "title": "Items" }, "total": { "type": "integer", "title": "Total" }, "page": { "type": "integer", "title": "Page" }, "limit": { "type": "integer", "title": "Limit" } }, "type": "object", "required": [ "items", "total", "page", "limit" ], "title": "Page[IntegrationRequestOut]" }, "Page_TicketOut_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/TicketOut" }, "type": "array", "title": "Items" }, "total": { "type": "integer", "title": "Total" }, "page": { "type": "integer", "title": "Page" }, "limit": { "type": "integer", "title": "Limit" } }, "type": "object", "required": [ "items", "total", "page", "limit" ], "title": "Page[TicketOut]" }, "Priority": { "type": "string", "enum": [ "low", "medium", "high", "critical" ], "title": "Priority" }, "ProcessResultOut": { "properties": { "status": { "type": "string", "title": "Status" }, "message": { "type": "string", "title": "Message" } }, "type": "object", "required": [ "status", "message" ], "title": "ProcessResultOut" }, "RequestStatus": { "type": "string", "enum": [ "accepted", "rejected", "processed", "failed" ], "title": "RequestStatus" }, "Role": { "type": "string", "enum": [ "admin", "operator", "viewer" ], "title": "Role" }, "TicketAssign": { "properties": { "assigned_to": { "type": "integer", "title": "Assigned To" } }, "type": "object", "required": [ "assigned_to" ], "title": "TicketAssign" }, "TicketCreate": { "properties": { "employee_id": { "type": "integer", "title": "Employee Id" }, "title": { "type": "string", "minLength": 1, "title": "Title" }, "description": { "type": "string", "minLength": 1, "title": "Description" }, "priority": { "$ref": "#/components/schemas/Priority" } }, "type": "object", "required": [ "employee_id", "title", "description", "priority" ], "title": "TicketCreate" }, "TicketOut": { "properties": { "id": { "type": "integer", "title": "Id" }, "employee_id": { "type": "integer", "title": "Employee Id" }, "title": { "type": "string", "title": "Title" }, "description": { "type": "string", "title": "Description" }, "priority": { "type": "string", "title": "Priority" }, "status": { "type": "string", "title": "Status" }, "assigned_to": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Assigned To" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" }, "updated_at": { "type": "string", "format": "date-time", "title": "Updated At" }, "resolved_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Resolved At" } }, "type": "object", "required": [ "id", "employee_id", "title", "description", "priority", "status", "created_at", "updated_at" ], "title": "TicketOut" }, "TicketStats": { "properties": { "total": { "type": "integer", "title": "Total" }, "new": { "type": "integer", "title": "New" }, "in_progress": { "type": "integer", "title": "In Progress" }, "resolved": { "type": "integer", "title": "Resolved" }, "rejected": { "type": "integer", "title": "Rejected" }, "critical_opened": { "type": "integer", "title": "Critical Opened" } }, "type": "object", "required": [ "total", "new", "in_progress", "resolved", "rejected", "critical_opened" ], "title": "TicketStats" }, "TicketStatus": { "type": "string", "enum": [ "new", "in_progress", "resolved", "rejected" ], "title": "TicketStatus" }, "TicketStatusUpdate": { "properties": { "status": { "$ref": "#/components/schemas/TicketStatus" } }, "type": "object", "required": [ "status" ], "title": "TicketStatusUpdate" }, "TokenOut": { "properties": { "access_token": { "type": "string", "title": "Access Token" }, "token_type": { "type": "string", "title": "Token Type", "default": "bearer" }, "role": { "type": "string", "title": "Role" } }, "type": "object", "required": [ "access_token", "role" ], "title": "TokenOut" }, "UserCreate": { "properties": { "email": { "type": "string", "format": "email", "title": "Email" }, "password": { "type": "string", "minLength": 8, "title": "Password" }, "role": { "$ref": "#/components/schemas/Role", "default": "viewer" } }, "type": "object", "required": [ "email", "password" ], "title": "UserCreate" }, "UserOut": { "properties": { "id": { "type": "integer", "title": "Id" }, "email": { "type": "string", "title": "Email" }, "role": { "type": "string", "title": "Role" }, "is_active": { "type": "boolean", "title": "Is Active" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "email", "role", "is_active", "created_at" ], "title": "UserOut" }, "ValidationError": { "properties": { "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "type": "array", "title": "Location" }, "msg": { "type": "string", "title": "Message" }, "type": { "type": "string", "title": "Error Type" }, "input": { "title": "Input" }, "ctx": { "type": "object", "title": "Context" } }, "type": "object", "required": [ "loc", "msg", "type" ], "title": "ValidationError" } } } }