{"openapi":"3.1.0","info":{"title":"Uyuni Backend - Nova Box","description":"\nAPI de Gestión de Personal y Activos Fijos (ERP Lite).\n\nFunciones:\n- Gestión Integral de Personal (Staff) y Unidades Organizacionales.\n- Administración y Control de Activos Fijos y Actas de Respaldo.\n- Arquitectura Modular Robusta con Auditoría y RBAC.\n","contact":{"name":"Henry Alejandro Taby Zenteno","url":"https://github.com/henrytaby","email":"henry.taby@gmail.com"},"license":{"name":"MIT License","url":"https://opensource.org/license/mit"},"version":"v1"},"paths":{"/api/auth/login":{"post":{"tags":["Auth"],"summary":"Login For Access Token","operationId":"login_for_access_token_api_auth_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_for_access_token_api_auth_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/me":{"get":{"tags":["Auth"],"summary":"Read Users Me","operationId":"read_users_me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/auth/refresh":{"post":{"tags":["Auth"],"summary":"Refresh Access Token","operationId":"refresh_access_token_api_auth_refresh_post","parameters":[{"name":"refresh_token","in":"query","required":true,"schema":{"type":"string","title":"Refresh Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/logout":{"post":{"tags":["Auth"],"summary":"Logout","operationId":"logout_api_auth_logout_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/LogoutRequest"},{"type":"null"}],"title":"Logout Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Logout Api Auth Logout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/auth/me/roles":{"get":{"tags":["Auth"],"summary":"Read Users Roles","description":"Get all active roles assigned to the current user (or all if superuser).","operationId":"read_users_roles_api_auth_me_roles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/RoleInfo"},"type":"array","title":"Response Read Users Roles Api Auth Me Roles Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/auth/me/menu/{role_slug}":{"get":{"tags":["Auth"],"summary":"Get user menu for role","description":"Retrieves the hierarchical menu structure (Module Groups -> Modules) for the current user in the context of a specific Role. Validates that the user holds the role.","operationId":"read_user_menu_api_auth_me_menu__role_slug__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"role_slug","in":"path","required":true,"schema":{"type":"string","title":"Role Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModuleGroupMenu"},"title":"Response Read User Menu Api Auth Me Menu  Role Slug  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/catalogs/bulk":{"post":{"tags":["Global - Catalogs"],"summary":"Get Bulk Catalogs","description":"Recupera múltiples catálogos en una sola petición HTTP.\nEl cuerpo de la petición debe ser un mapa JSON donde las llaves son los nombres\nde los catálogos y los valores son objetos conteniendo los parámetros específicos\npara cada proveedor (por ejemplo: {\"departamentos\": {\"gerencia_id\": \"...\"}}).","operationId":"get_bulk_catalogs_api_catalogs_bulk_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Request Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"items":{"$ref":"#/components/schemas/CatalogItemSchema"},"type":"array"},"type":"object","title":"Response Get Bulk Catalogs Api Catalogs Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/catalogs/{catalog_name}":{"get":{"tags":["Global - Catalogs"],"summary":"Get Single Catalog","description":"Recupera un catálogo individual de forma dinámica y genérica.","operationId":"get_single_catalog_api_catalogs__catalog_name__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"catalog_name","in":"path","required":true,"schema":{"type":"string","title":"Catalog Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CatalogItemSchema"},"title":"Response Get Single Catalog Api Catalogs  Catalog Name  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tasks/":{"post":{"tags":["Tasks"],"summary":"Create Task","description":"Create a new task.","operationId":"create_task_api_tasks__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Tasks"],"summary":"Get Tasks","description":"Get all tasks.","operationId":"get_tasks_api_tasks__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Task"},"title":"Response Get Tasks Api Tasks  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tasks/{task_id}":{"get":{"tags":["Tasks"],"summary":"Get Task","description":"Get a task by ID.","operationId":"get_task_api_tasks__task_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Tasks"],"summary":"Update Task","description":"Update an existing task.","operationId":"update_task_api_tasks__task_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Tasks"],"summary":"Delete Task","description":"Delete a task by ID.","operationId":"delete_task_api_tasks__task_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tasks/count":{"get":{"tags":["Tasks"],"summary":"Count Tasks","description":"Count tasks.","operationId":"count_tasks_api_tasks_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/core/org-units/":{"post":{"tags":["Core Staff - Org Units"],"summary":"Create Org Unit","operationId":"create_org_unit_api_core_org_units__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgUnitCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgUnitRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Core Staff - Org Units"],"summary":"Get Org Units","operationId":"get_org_units_api_core_org_units__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrgUnitRead"},"title":"Response Get Org Units Api Core Org Units  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/core/org-units/count":{"get":{"tags":["Core Staff - Org Units"],"summary":"Count Org Units","operationId":"count_org_units_api_core_org_units_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/core/org-units/acronym/{acronym}":{"get":{"tags":["Core Staff - Org Units"],"summary":"Get Org Units By Acronym","operationId":"get_org_units_by_acronym_api_core_org_units_acronym__acronym__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"acronym","in":"path","required":true,"schema":{"type":"string","title":"Acronym"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrgUnitRead"},"title":"Response Get Org Units By Acronym Api Core Org Units Acronym  Acronym  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/core/org-units/acronym/{acronym}/count":{"get":{"tags":["Core Staff - Org Units"],"summary":"Count Org Units By Acronym","operationId":"count_org_units_by_acronym_api_core_org_units_acronym__acronym__count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"acronym","in":"path","required":true,"schema":{"type":"string","title":"Acronym"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/core/org-units/{id}":{"get":{"tags":["Core Staff - Org Units"],"summary":"Get Org Unit","operationId":"get_org_unit_api_core_org_units__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgUnitRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Core Staff - Org Units"],"summary":"Update Org Unit","operationId":"update_org_unit_api_core_org_units__id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgUnitUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgUnitRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Core Staff - Org Units"],"summary":"Delete Org Unit","operationId":"delete_org_unit_api_core_org_units__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/core/positions/":{"post":{"tags":["Core Staff - Positions"],"summary":"Create Position","operationId":"create_position_api_core_positions__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPositionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPositionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Core Staff - Positions"],"summary":"Get Positions","operationId":"get_positions_api_core_positions__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StaffPositionRead"},"title":"Response Get Positions Api Core Positions  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/core/positions/count":{"get":{"tags":["Core Staff - Positions"],"summary":"Count Positions","operationId":"count_positions_api_core_positions_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/core/positions/{id}":{"get":{"tags":["Core Staff - Positions"],"summary":"Get Position","operationId":"get_position_api_core_positions__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPositionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Core Staff - Positions"],"summary":"Update Position","operationId":"update_position_api_core_positions__id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPositionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPositionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Core Staff - Positions"],"summary":"Delete Position","operationId":"delete_position_api_core_positions__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/core/staff/":{"post":{"tags":["Core Staff - Personal"],"summary":"Create Staff","operationId":"create_staff_api_core_staff__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Core Staff - Personal"],"summary":"Get Staff List","operationId":"get_staff_list_api_core_staff__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"org_unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Unit Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StaffReadDetailed"},"title":"Response Get Staff List Api Core Staff  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/core/staff/count":{"get":{"tags":["Core Staff - Personal"],"summary":"Count Staff","operationId":"count_staff_api_core_staff_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"org_unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Unit Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/core/staff/{id}":{"get":{"tags":["Core Staff - Personal"],"summary":"Get Staff","operationId":"get_staff_api_core_staff__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffReadDetailed"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Core Staff - Personal"],"summary":"Update Staff","operationId":"update_staff_api_core_staff__id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Core Staff - Personal"],"summary":"Delete Staff","operationId":"delete_staff_api_core_staff__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/core/users/":{"post":{"tags":["Core Staff - Users"],"summary":"Create User","operationId":"create_user_api_core_users__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Core Staff - Users"],"summary":"Get Users List","operationId":"get_users_list_api_core_users__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"is_superuser","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Superuser"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserReadDetailed"},"title":"Response Get Users List Api Core Users  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/core/users/count":{"get":{"tags":["Core Staff - Users"],"summary":"Count Users","operationId":"count_users_api_core_users_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"is_superuser","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Superuser"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/core/users/{id}":{"get":{"tags":["Core Staff - Users"],"summary":"Get User","operationId":"get_user_api_core_users__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserReadDetailed"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Core Staff - Users"],"summary":"Update User","operationId":"update_user_api_core_users__id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Core Staff - Users"],"summary":"Delete User","operationId":"delete_user_api_core_users__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/institutions/":{"post":{"tags":["Assets - Institutions"],"summary":"Create Institution","operationId":"create_institution_api_assets_institutions__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Assets - Institutions"],"summary":"Get Institutions","operationId":"get_institutions_api_assets_institutions__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InstitutionRead"},"title":"Response Get Institutions Api Assets Institutions  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/institutions/count":{"get":{"tags":["Assets - Institutions"],"summary":"Count Institutions","operationId":"count_institutions_api_assets_institutions_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/institutions/{id}":{"get":{"tags":["Assets - Institutions"],"summary":"Get Institution","operationId":"get_institution_api_assets_institutions__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Assets - Institutions"],"summary":"Update Institution","operationId":"update_institution_api_assets_institutions__id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Assets - Institutions"],"summary":"Delete Institution","operationId":"delete_institution_api_assets_institutions__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/areas/":{"post":{"tags":["Assets - Areas"],"summary":"Create Area","operationId":"create_area_api_assets_areas__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Assets - Areas"],"summary":"Get Areas","operationId":"get_areas_api_assets_areas__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AreaRead"},"title":"Response Get Areas Api Assets Areas  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/areas/count":{"get":{"tags":["Assets - Areas"],"summary":"Count Areas","operationId":"count_areas_api_assets_areas_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/areas/{id}":{"get":{"tags":["Assets - Areas"],"summary":"Get Area","operationId":"get_area_api_assets_areas__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Assets - Areas"],"summary":"Update Area","operationId":"update_area_api_assets_areas__id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Assets - Areas"],"summary":"Delete Area","operationId":"delete_area_api_assets_areas__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/groups/":{"post":{"tags":["Assets - Asset Groups"],"summary":"Create Group","operationId":"create_group_api_assets_groups__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetGroupCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetGroupRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Assets - Asset Groups"],"summary":"Get Groups","operationId":"get_groups_api_assets_groups__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetGroupRead"},"title":"Response Get Groups Api Assets Groups  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/groups/count":{"get":{"tags":["Assets - Asset Groups"],"summary":"Count Groups","operationId":"count_groups_api_assets_groups_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/groups/{id}":{"get":{"tags":["Assets - Asset Groups"],"summary":"Get Group","operationId":"get_group_api_assets_groups__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetGroupRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Assets - Asset Groups"],"summary":"Update Group","operationId":"update_group_api_assets_groups__id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetGroupUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetGroupRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Assets - Asset Groups"],"summary":"Delete Group","operationId":"delete_group_api_assets_groups__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/statuses/":{"post":{"tags":["Assets - Asset Statuses"],"summary":"Create Status","operationId":"create_status_api_assets_statuses__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetStatusCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetStatusRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Assets - Asset Statuses"],"summary":"Get Statuses","operationId":"get_statuses_api_assets_statuses__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetStatusRead"},"title":"Response Get Statuses Api Assets Statuses  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/statuses/count":{"get":{"tags":["Assets - Asset Statuses"],"summary":"Count Statuses","operationId":"count_statuses_api_assets_statuses_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/statuses/{id}":{"get":{"tags":["Assets - Asset Statuses"],"summary":"Get Status","operationId":"get_status_api_assets_statuses__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetStatusRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Assets - Asset Statuses"],"summary":"Update Status","operationId":"update_status_api_assets_statuses__id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetStatusRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Assets - Asset Statuses"],"summary":"Delete Status","operationId":"delete_status_api_assets_statuses__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/acts/":{"post":{"tags":["Assets - Acts"],"summary":"Create Act","operationId":"create_act_api_assets_acts__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Assets - Acts"],"summary":"Get Acts","operationId":"get_acts_api_assets_acts__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActRead"},"title":"Response Get Acts Api Assets Acts  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/acts/count":{"get":{"tags":["Assets - Acts"],"summary":"Count Acts","operationId":"count_acts_api_assets_acts_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/acts/{id}":{"get":{"tags":["Assets - Acts"],"summary":"Get Act","operationId":"get_act_api_assets_acts__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Assets - Acts"],"summary":"Update Act","operationId":"update_act_api_assets_acts__id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Assets - Acts"],"summary":"Delete Act","operationId":"delete_act_api_assets_acts__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/assets/":{"post":{"tags":["Assets - Fixed Assets"],"summary":"Create Asset","operationId":"create_asset_api_assets_assets__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixedAssetCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixedAssetRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Assets - Fixed Assets"],"summary":"Get Assets","operationId":"get_assets_api_assets_assets__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FixedAssetRead"},"title":"Response Get Assets Api Assets Assets  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/assets/count":{"get":{"tags":["Assets - Fixed Assets"],"summary":"Count Assets","operationId":"count_assets_api_assets_assets_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/assets/{id}":{"get":{"tags":["Assets - Fixed Assets"],"summary":"Get Asset","operationId":"get_asset_api_assets_assets__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixedAssetRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Assets - Fixed Assets"],"summary":"Update Asset","operationId":"update_asset_api_assets_assets__id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixedAssetUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixedAssetRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Assets - Fixed Assets"],"summary":"Delete Asset","operationId":"delete_asset_api_assets_assets__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/rounds/":{"post":{"tags":["Commerce - Investment Rounds"],"summary":"Create Round","operationId":"create_round_api_commerce_rounds__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestmentRoundCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestmentRoundRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Commerce - Investment Rounds"],"summary":"Get Rounds","operationId":"get_rounds_api_commerce_rounds__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvestmentRoundRead"},"title":"Response Get Rounds Api Commerce Rounds  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/rounds/count":{"get":{"tags":["Commerce - Investment Rounds"],"summary":"Count Rounds","operationId":"count_rounds_api_commerce_rounds_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/rounds/{id}":{"get":{"tags":["Commerce - Investment Rounds"],"summary":"Get Round","operationId":"get_round_api_commerce_rounds__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestmentRoundRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Commerce - Investment Rounds"],"summary":"Update Round","operationId":"update_round_api_commerce_rounds__id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestmentRoundUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestmentRoundRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Commerce - Investment Rounds"],"summary":"Delete Round","operationId":"delete_round_api_commerce_rounds__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/batches/":{"post":{"tags":["Commerce - Batches & Boxes"],"summary":"Create Batch","operationId":"create_batch_api_commerce_batches__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Commerce - Batches & Boxes"],"summary":"Get Batches","operationId":"get_batches_api_commerce_batches__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BatchRead"},"title":"Response Get Batches Api Commerce Batches  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/batches/count":{"get":{"tags":["Commerce - Batches & Boxes"],"summary":"Count Batches","operationId":"count_batches_api_commerce_batches_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/batches/{id}":{"get":{"tags":["Commerce - Batches & Boxes"],"summary":"Get Batch","operationId":"get_batch_api_commerce_batches__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Commerce - Batches & Boxes"],"summary":"Update Batch","operationId":"update_batch_api_commerce_batches__id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Commerce - Batches & Boxes"],"summary":"Delete Batch","operationId":"delete_batch_api_commerce_batches__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/batches/{id}/recalculate":{"post":{"tags":["Commerce - Batches & Boxes"],"summary":"Recalculate Batch","operationId":"recalculate_batch_api_commerce_batches__id__recalculate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"revalue_sales","in":"query","required":false,"schema":{"type":"boolean","description":"Recalcular automáticamente costos y márgenes de ventas","default":true,"title":"Revalue Sales"},"description":"Recalcular automáticamente costos y márgenes de ventas"},{"name":"force_product_counts","in":"query","required":false,"schema":{"type":"boolean","description":"Forzar conteo exacto desde la tabla de productos","default":false,"title":"Force Product Counts"},"description":"Forzar conteo exacto desde la tabla de productos"},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/batches/{id}/allocate-relative-costs":{"post":{"tags":["Commerce - Batches & Boxes"],"summary":"Allocate Relative Costs","operationId":"allocate_relative_costs_api_commerce_batches__id__allocate_relative_costs_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"basis","in":"query","required":false,"schema":{"type":"string","description":"Base de ponderación: 'official_price' o 'minimum_price'","default":"official_price","title":"Basis"},"description":"Base de ponderación: 'official_price' o 'minimum_price'"},{"name":"revalue_sales","in":"query","required":false,"schema":{"type":"boolean","description":"Recalcular automáticamente costos y márgenes de ventas","default":true,"title":"Revalue Sales"},"description":"Recalcular automáticamente costos y márgenes de ventas"},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/categories/":{"post":{"tags":["Commerce - Categories"],"summary":"Create Category","operationId":"create_category_api_commerce_categories__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Commerce - Categories"],"summary":"Get Categories","operationId":"get_categories_api_commerce_categories__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CategoryRead"},"title":"Response Get Categories Api Commerce Categories  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/categories/count":{"get":{"tags":["Commerce - Categories"],"summary":"Count Categories","operationId":"count_categories_api_commerce_categories_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/categories/{id}":{"get":{"tags":["Commerce - Categories"],"summary":"Get Category","operationId":"get_category_api_commerce_categories__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Commerce - Categories"],"summary":"Update Category","operationId":"update_category_api_commerce_categories__id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Commerce - Categories"],"summary":"Delete Category","operationId":"delete_category_api_commerce_categories__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/channels/":{"post":{"tags":["Commerce - Sales Channels"],"summary":"Create Channel","operationId":"create_channel_api_commerce_channels__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesChannelCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesChannelRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Commerce - Sales Channels"],"summary":"Get Channels","operationId":"get_channels_api_commerce_channels__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SalesChannelRead"},"title":"Response Get Channels Api Commerce Channels  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/channels/count":{"get":{"tags":["Commerce - Sales Channels"],"summary":"Count Channels","operationId":"count_channels_api_commerce_channels_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/channels/{id}":{"get":{"tags":["Commerce - Sales Channels"],"summary":"Get Channel","operationId":"get_channel_api_commerce_channels__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesChannelRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Commerce - Sales Channels"],"summary":"Update Channel","operationId":"update_channel_api_commerce_channels__id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesChannelUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesChannelRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Commerce - Sales Channels"],"summary":"Delete Channel","operationId":"delete_channel_api_commerce_channels__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/product-masters/":{"post":{"tags":["Commerce - Product Masters"],"summary":"Create Product Master","operationId":"create_product_master_api_commerce_product_masters__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductMasterCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductMasterRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Commerce - Product Masters"],"summary":"Get Product Masters","operationId":"get_product_masters_api_commerce_product_masters__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"category_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"}},{"name":"live_basket_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Live Basket Id"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductMasterRead"},"title":"Response Get Product Masters Api Commerce Product Masters  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/product-masters/count":{"get":{"tags":["Commerce - Product Masters"],"summary":"Count Product Masters","operationId":"count_product_masters_api_commerce_product_masters_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"category_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"}},{"name":"live_basket_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Live Basket Id"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/product-masters/by-number/{item_number}":{"get":{"tags":["Commerce - Product Masters"],"summary":"Get Product Master By Number","operationId":"get_product_master_by_number_api_commerce_product_masters_by_number__item_number__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"item_number","in":"path","required":true,"schema":{"type":"integer","title":"Item Number"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductMasterRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/product-masters/resolve/{identifier}":{"get":{"tags":["Commerce - Product Masters"],"summary":"Resolve Product Master","operationId":"resolve_product_master_api_commerce_product_masters_resolve__identifier__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductMasterRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/product-masters/{id}":{"get":{"tags":["Commerce - Product Masters"],"summary":"Get Product Master By Id","operationId":"get_product_master_by_id_api_commerce_product_masters__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductMasterRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Commerce - Product Masters"],"summary":"Update Product Master","operationId":"update_product_master_api_commerce_product_masters__id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductMasterUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductMasterRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Commerce - Product Masters"],"summary":"Delete Product Master","operationId":"delete_product_master_api_commerce_product_masters__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/live-baskets/":{"post":{"tags":["Commerce - Live Baskets"],"summary":"Create Live Basket","operationId":"create_live_basket_api_commerce_live_baskets__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveBasketCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveBasketRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Commerce - Live Baskets"],"summary":"Get Live Baskets","operationId":"get_live_baskets_api_commerce_live_baskets__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LiveBasketRead"},"title":"Response Get Live Baskets Api Commerce Live Baskets  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/live-baskets/count":{"get":{"tags":["Commerce - Live Baskets"],"summary":"Count Live Baskets","operationId":"count_live_baskets_api_commerce_live_baskets_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/live-baskets/{id}":{"get":{"tags":["Commerce - Live Baskets"],"summary":"Get Live Basket","operationId":"get_live_basket_api_commerce_live_baskets__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveBasketRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Commerce - Live Baskets"],"summary":"Update Live Basket","operationId":"update_live_basket_api_commerce_live_baskets__id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveBasketUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveBasketRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Commerce - Live Baskets"],"summary":"Delete Live Basket","operationId":"delete_live_basket_api_commerce_live_baskets__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/products/":{"post":{"tags":["Commerce - Products"],"summary":"Create Product","operationId":"create_product_api_commerce_products__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Commerce - Products"],"summary":"Get Products","operationId":"get_products_api_commerce_products__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"}},{"name":"master_product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Master Product Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductRead"},"title":"Response Get Products Api Commerce Products  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/products/count":{"get":{"tags":["Commerce - Products"],"summary":"Count Products","operationId":"count_products_api_commerce_products_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"}},{"name":"master_product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Master Product Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/products/by-sku/{sku}":{"get":{"tags":["Commerce - Products"],"summary":"Get Product By Sku","operationId":"get_product_by_sku_api_commerce_products_by_sku__sku__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"sku","in":"path","required":true,"schema":{"type":"string","title":"Sku"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/products/{id}":{"get":{"tags":["Commerce - Products"],"summary":"Get Product","operationId":"get_product_api_commerce_products__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Commerce - Products"],"summary":"Update Product","operationId":"update_product_api_commerce_products__id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Commerce - Products"],"summary":"Delete Product","operationId":"delete_product_api_commerce_products__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/sales/":{"post":{"tags":["Commerce - Sales"],"summary":"Create Sale","operationId":"create_sale_api_commerce_sales__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Commerce - Sales"],"summary":"Get Sales","operationId":"get_sales_api_commerce_sales__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"payment_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Status"}},{"name":"delivery_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Status"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SaleRead"},"title":"Response Get Sales Api Commerce Sales  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/sales/count":{"get":{"tags":["Commerce - Sales"],"summary":"Count Sales","operationId":"count_sales_api_commerce_sales_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"payment_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Status"}},{"name":"delivery_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Status"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commerce/sales/{id}":{"get":{"tags":["Commerce - Sales"],"summary":"Get Sale","operationId":"get_sale_api_commerce_sales__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Commerce - Sales"],"summary":"Update Sale","operationId":"update_sale_api_commerce_sales__id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Commerce - Sales"],"summary":"Delete Sale","operationId":"delete_sale_api_commerce_sales__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"X-Active-Role","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Active-Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Read Items","operationId":"read_items__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"tags":["Health"],"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Check Health Get"}}}}}}}},"components":{"schemas":{"ActCreate":{"properties":{"act_number":{"type":"string","title":"Act Number"},"registered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Registered At"},"pdf_attachment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pdf Attachment"},"staff_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Staff Id"}},"type":"object","required":["act_number"],"title":"ActCreate"},"ActRead":{"properties":{"act_number":{"type":"string","title":"Act Number"},"registered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Registered At"},"pdf_attachment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pdf Attachment"},"staff_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Staff Id"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["act_number","id"],"title":"ActRead"},"ActUpdate":{"properties":{"act_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Act Number"},"registered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Registered At"},"pdf_attachment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pdf Attachment"},"staff_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Staff Id"}},"type":"object","title":"ActUpdate"},"AreaCreate":{"properties":{"name":{"type":"string","title":"Name"},"institution_id":{"type":"string","format":"uuid","title":"Institution Id"}},"type":"object","required":["name","institution_id"],"title":"AreaCreate"},"AreaRead":{"properties":{"name":{"type":"string","title":"Name"},"institution_id":{"type":"string","format":"uuid","title":"Institution Id"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["name","institution_id","id"],"title":"AreaRead"},"AreaUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"institution_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Institution Id"}},"type":"object","title":"AreaUpdate"},"AssetGroupCreate":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"AssetGroupCreate"},"AssetGroupRead":{"properties":{"name":{"type":"string","title":"Name"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["name","id"],"title":"AssetGroupRead"},"AssetGroupUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"AssetGroupUpdate"},"AssetStatusCreate":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"AssetStatusCreate"},"AssetStatusRead":{"properties":{"name":{"type":"string","title":"Name"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["name","id"],"title":"AssetStatusRead"},"AssetStatusUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"AssetStatusUpdate"},"BatchCreate":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"investment_round_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Investment Round Id"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"batch_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Type"},"purchase_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Purchase Date"},"purchase_price":{"type":"number","title":"Purchase Price","default":0.0},"freight_cost":{"type":"number","title":"Freight Cost","default":0.0},"total_cost":{"type":"number","title":"Total Cost","default":0.0},"currency":{"type":"string","title":"Currency","default":"BOB"},"initial_items_count":{"type":"integer","title":"Initial Items Count","default":0},"merma_items_count":{"type":"integer","title":"Merma Items Count","default":0},"sellable_items_count":{"type":"integer","title":"Sellable Items Count","default":0},"unit_cost":{"type":"number","title":"Unit Cost","default":0.0},"status":{"type":"string","title":"Status","default":"active"},"financial_status":{"type":"string","title":"Financial Status","default":"EN_RECUPERACION"},"observations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observations"}},"type":"object","required":["code","name"],"title":"BatchCreate"},"BatchRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"investment_round_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Investment Round Id"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"batch_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Type"},"purchase_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Purchase Date"},"purchase_price":{"type":"number","title":"Purchase Price","default":0.0},"freight_cost":{"type":"number","title":"Freight Cost","default":0.0},"total_cost":{"type":"number","title":"Total Cost","default":0.0},"currency":{"type":"string","title":"Currency","default":"BOB"},"initial_items_count":{"type":"integer","title":"Initial Items Count","default":0},"merma_items_count":{"type":"integer","title":"Merma Items Count","default":0},"sellable_items_count":{"type":"integer","title":"Sellable Items Count","default":0},"unit_cost":{"type":"number","title":"Unit Cost","default":0.0},"status":{"type":"string","title":"Status","default":"active"},"financial_status":{"type":"string","title":"Financial Status","default":"EN_RECUPERACION"},"observations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observations"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["code","name","id"],"title":"BatchRead"},"BatchUpdate":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"investment_round_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Investment Round Id"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"batch_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Type"},"purchase_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Purchase Date"},"purchase_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Purchase Price"},"freight_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Freight Cost"},"total_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Cost"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"initial_items_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Initial Items Count"},"merma_items_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Merma Items Count"},"sellable_items_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sellable Items Count"},"unit_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unit Cost"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"financial_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Financial Status"},"observations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observations"}},"type":"object","title":"BatchUpdate"},"Body_login_for_access_token_api_auth_login_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"^password$"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","format":"password","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"format":"password","title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_login_for_access_token_api_auth_login_post"},"CatalogItemSchema":{"properties":{"value":{"title":"Value"},"label":{"type":"string","title":"Label"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"}},"type":"object","required":["value","label"],"title":"CatalogItemSchema"},"CategoryCreate":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"typical_products":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Typical Products"}},"type":"object","required":["code","name"],"title":"CategoryCreate"},"CategoryRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"typical_products":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Typical Products"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["code","name","id"],"title":"CategoryRead"},"CategoryUpdate":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"typical_products":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Typical Products"}},"type":"object","title":"CategoryUpdate"},"FixedAssetCreate":{"properties":{"old_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Old Code"},"new_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Code"},"description":{"type":"string","title":"Description"},"serial_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial Number"},"location_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Detail"},"observations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observations"},"is_saf":{"type":"boolean","title":"Is Saf","default":true},"is_physically_verified":{"type":"boolean","title":"Is Physically Verified","default":false},"is_decommissioned":{"type":"boolean","title":"Is Decommissioned","default":false},"registered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Registered At"},"source_files":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Files"},"group_id":{"type":"string","format":"uuid","title":"Group Id"},"status_id":{"type":"string","format":"uuid","title":"Status Id"},"area_id":{"type":"string","format":"uuid","title":"Area Id"},"org_unit_id":{"type":"string","format":"uuid","title":"Org Unit Id"},"assigned_staff_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Staff Id"},"custodian_staff_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Custodian Staff Id"}},"type":"object","required":["description","group_id","status_id","area_id","org_unit_id"],"title":"FixedAssetCreate"},"FixedAssetRead":{"properties":{"old_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Old Code"},"new_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Code"},"description":{"type":"string","title":"Description"},"serial_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial Number"},"location_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Detail"},"observations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observations"},"is_saf":{"type":"boolean","title":"Is Saf","default":true},"is_physically_verified":{"type":"boolean","title":"Is Physically Verified","default":false},"is_decommissioned":{"type":"boolean","title":"Is Decommissioned","default":false},"registered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Registered At"},"source_files":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Files"},"group_id":{"type":"string","format":"uuid","title":"Group Id"},"status_id":{"type":"string","format":"uuid","title":"Status Id"},"area_id":{"type":"string","format":"uuid","title":"Area Id"},"org_unit_id":{"type":"string","format":"uuid","title":"Org Unit Id"},"assigned_staff_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Staff Id"},"custodian_staff_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Custodian Staff Id"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["description","group_id","status_id","area_id","org_unit_id","id"],"title":"FixedAssetRead"},"FixedAssetUpdate":{"properties":{"old_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Old Code"},"new_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"serial_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial Number"},"location_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Detail"},"observations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observations"},"is_saf":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Saf"},"is_physically_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Physically Verified"},"is_decommissioned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Decommissioned"},"registered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Registered At"},"source_files":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Files"},"group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"},"status_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Status Id"},"area_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Area Id"},"org_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Unit Id"},"assigned_staff_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Staff Id"},"custodian_staff_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Custodian Staff Id"}},"type":"object","title":"FixedAssetUpdate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InstitutionCreate":{"properties":{"name":{"type":"string","title":"Name"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},"type":"object","required":["name"],"title":"InstitutionCreate"},"InstitutionRead":{"properties":{"name":{"type":"string","title":"Name"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["name","id"],"title":"InstitutionRead"},"InstitutionUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},"type":"object","title":"InstitutionUpdate"},"InvestmentRoundCreate":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"disbursement_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Disbursement Date"},"capital_invested":{"type":"number","title":"Capital Invested","default":0.0},"currency":{"type":"string","title":"Currency","default":"BOB"},"status":{"type":"string","title":"Status","default":"active"},"observations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observations"}},"type":"object","required":["code","name"],"title":"InvestmentRoundCreate"},"InvestmentRoundRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"disbursement_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Disbursement Date"},"capital_invested":{"type":"number","title":"Capital Invested","default":0.0},"currency":{"type":"string","title":"Currency","default":"BOB"},"status":{"type":"string","title":"Status","default":"active"},"observations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observations"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["code","name","id"],"title":"InvestmentRoundRead"},"InvestmentRoundUpdate":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"disbursement_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Disbursement Date"},"capital_invested":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Capital Invested"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"observations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observations"}},"type":"object","title":"InvestmentRoundUpdate"},"LiveBasketCreate":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"price_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Range"},"target_audience":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Audience"}},"type":"object","required":["code","name","label"],"title":"LiveBasketCreate"},"LiveBasketRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"price_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Range"},"target_audience":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Audience"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["code","name","label","id"],"title":"LiveBasketRead"},"LiveBasketUpdate":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"price_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Range"},"target_audience":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Audience"}},"type":"object","title":"LiveBasketUpdate"},"LogoutRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token","description":"Refresh token to revoke"}},"type":"object","required":["refresh_token"],"title":"LogoutRequest"},"ModuleGroupMenu":{"properties":{"group_name":{"type":"string","title":"Group Name"},"slug":{"type":"string","title":"Slug"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"modules":{"items":{"$ref":"#/components/schemas/ModuleMenu"},"type":"array","title":"Modules"}},"type":"object","required":["group_name","slug","modules"],"title":"ModuleGroupMenu"},"ModuleMenu":{"properties":{"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Route"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"permissions":{"$ref":"#/components/schemas/UserModulePermission"}},"type":"object","required":["name","slug","permissions"],"title":"ModuleMenu"},"OrgUnitCreate":{"properties":{"external_id":{"type":"integer","title":"External Id"},"name":{"type":"string","title":"Name"},"acronym":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acronym"},"general_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"General Unit"},"type":{"type":"string","title":"Type"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"}},"type":"object","required":["external_id","name","type"],"title":"OrgUnitCreate"},"OrgUnitRead":{"properties":{"external_id":{"type":"integer","title":"External Id"},"name":{"type":"string","title":"Name"},"acronym":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acronym"},"general_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"General Unit"},"type":{"type":"string","title":"Type"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["external_id","name","type","id"],"title":"OrgUnitRead"},"OrgUnitReadWithParent":{"properties":{"external_id":{"type":"integer","title":"External Id"},"name":{"type":"string","title":"Name"},"acronym":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acronym"},"general_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"General Unit"},"type":{"type":"string","title":"Type"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"id":{"type":"string","format":"uuid","title":"Id"},"parent":{"anyOf":[{"$ref":"#/components/schemas/OrgUnitReadWithParent"},{"type":"null"}]}},"type":"object","required":["external_id","name","type","id"],"title":"OrgUnitReadWithParent"},"OrgUnitSimple":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"acronym":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acronym"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"parent":{"anyOf":[{"$ref":"#/components/schemas/OrgUnitSimple"},{"type":"null"}]}},"type":"object","required":["id","name"],"title":"OrgUnitSimple"},"OrgUnitUpdate":{"properties":{"external_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"External Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"acronym":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acronym"},"general_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"General Unit"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"}},"type":"object","title":"OrgUnitUpdate"},"ProductCreate":{"properties":{"master_product_id":{"type":"string","format":"uuid","title":"Master Product Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"sheet_row_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sheet Row Id"},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Name"},"cost_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Price"},"initial_quantity":{"type":"integer","title":"Initial Quantity","default":1},"sold_quantity":{"type":"integer","title":"Sold Quantity","default":0},"merma_quantity":{"type":"integer","title":"Merma Quantity","default":0},"available_quantity":{"type":"integer","title":"Available Quantity","default":1},"status":{"type":"string","title":"Status","default":"AVAILABLE"},"physical_condition":{"type":"string","title":"Physical Condition","default":"OPERATIONAL"},"defect_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Defect Detail"},"is_reviewed":{"type":"boolean","title":"Is Reviewed","default":false}},"type":"object","required":["master_product_id"],"title":"ProductCreate"},"ProductMasterCreate":{"properties":{"item_number":{"type":"integer","title":"Item Number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"live_basket_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Live Basket Id"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"official_price":{"type":"number","title":"Official Price","default":0.0},"minimum_price":{"type":"number","title":"Minimum Price","default":0.0},"published_price":{"type":"number","title":"Published Price","default":0.0},"currency":{"type":"string","title":"Currency","default":"BOB"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"marketplace_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketplace Url"},"external_info_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Info Url"},"features":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Features"},"marketing_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketing Details"},"is_reviewed":{"type":"boolean","title":"Is Reviewed","default":false},"is_fb_verified":{"type":"boolean","title":"Is Fb Verified","default":false},"has_video":{"type":"boolean","title":"Has Video","default":false},"is_published_marketplace":{"type":"boolean","title":"Is Published Marketplace","default":false},"is_whatsapp_published":{"type":"boolean","title":"Is Whatsapp Published","default":false},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["item_number","name"],"title":"ProductMasterCreate"},"ProductMasterRead":{"properties":{"item_number":{"type":"integer","title":"Item Number"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"live_basket_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Live Basket Id"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"official_price":{"type":"number","title":"Official Price","default":0.0},"minimum_price":{"type":"number","title":"Minimum Price","default":0.0},"published_price":{"type":"number","title":"Published Price","default":0.0},"currency":{"type":"string","title":"Currency","default":"BOB"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"marketplace_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketplace Url"},"external_info_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Info Url"},"features":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Features"},"marketing_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketing Details"},"is_reviewed":{"type":"boolean","title":"Is Reviewed","default":false},"is_fb_verified":{"type":"boolean","title":"Is Fb Verified","default":false},"has_video":{"type":"boolean","title":"Has Video","default":false},"is_published_marketplace":{"type":"boolean","title":"Is Published Marketplace","default":false},"is_whatsapp_published":{"type":"boolean","title":"Is Whatsapp Published","default":false},"is_active":{"type":"boolean","title":"Is Active","default":true},"id":{"type":"string","format":"uuid","title":"Id"},"total_available_stock":{"type":"integer","title":"Total Available Stock","default":0},"total_sold_stock":{"type":"integer","title":"Total Sold Stock","default":0},"total_merma_stock":{"type":"integer","title":"Total Merma Stock","default":0}},"type":"object","required":["item_number","code","name","id"],"title":"ProductMasterRead"},"ProductMasterUpdate":{"properties":{"item_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Item Number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id"},"live_basket_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Live Basket Id"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"official_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Official Price"},"minimum_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minimum Price"},"published_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Published Price"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"marketplace_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketplace Url"},"external_info_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Info Url"},"features":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Features"},"marketing_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketing Details"},"is_reviewed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Reviewed"},"is_fb_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Fb Verified"},"has_video":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Video"},"is_published_marketplace":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Published Marketplace"},"is_whatsapp_published":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Whatsapp Published"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"ProductMasterUpdate"},"ProductRead":{"properties":{"master_product_id":{"type":"string","format":"uuid","title":"Master Product Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"sheet_row_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sheet Row Id"},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Name"},"cost_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Price"},"initial_quantity":{"type":"integer","title":"Initial Quantity","default":1},"sold_quantity":{"type":"integer","title":"Sold Quantity","default":0},"merma_quantity":{"type":"integer","title":"Merma Quantity","default":0},"available_quantity":{"type":"integer","title":"Available Quantity","default":1},"status":{"type":"string","title":"Status","default":"AVAILABLE"},"physical_condition":{"type":"string","title":"Physical Condition","default":"OPERATIONAL"},"defect_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Defect Detail"},"is_reviewed":{"type":"boolean","title":"Is Reviewed","default":false},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name","default":""},"official_price":{"type":"number","title":"Official Price","default":0.0},"minimum_price":{"type":"number","title":"Minimum Price","default":0.0},"published_price":{"type":"number","title":"Published Price","default":0.0},"batch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Name"}},"type":"object","required":["master_product_id","id"],"title":"ProductRead"},"ProductUpdate":{"properties":{"master_product_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Master Product Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"sheet_row_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sheet Row Id"},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Name"},"cost_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Price"},"initial_quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Initial Quantity"},"sold_quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sold Quantity"},"merma_quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Merma Quantity"},"available_quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Available Quantity"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"physical_condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Physical Condition"},"defect_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Defect Detail"},"is_reviewed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Reviewed"}},"type":"object","title":"ProductUpdate"},"RoleInfo":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"}},"type":"object","required":["id","name","slug"],"title":"RoleInfo"},"SaleCreate":{"properties":{"sale_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sale Number"},"sheet_sale_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sheet Sale Id"},"sale_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sale Date"},"customer_name":{"type":"string","title":"Customer Name","default":"Cliente Casual"},"customer_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Phone"},"channel_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"},"channel":{"type":"string","title":"Channel","default":"MARKETPLACE"},"payment_method":{"type":"string","title":"Payment Method","default":"QR"},"payment_status":{"type":"string","title":"Payment Status","default":"COLLECTED"},"delivery_modality":{"type":"string","title":"Delivery Modality","default":"FREE_MEETING_POINT"},"delivery_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Address"},"delivery_cost":{"type":"number","title":"Delivery Cost","default":0.0},"delivery_cost_paid_by":{"type":"string","title":"Delivery Cost Paid By","default":"FREE"},"delivery_status":{"type":"string","title":"Delivery Status","default":"DELIVERED"},"total_collected":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Collected"},"currency":{"type":"string","title":"Currency","default":"BOB"},"observations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observations"},"allow_below_minimum":{"type":"boolean","title":"Allow Below Minimum","default":false},"items":{"items":{"$ref":"#/components/schemas/SaleItemCreate"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"SaleCreate"},"SaleItemCreate":{"properties":{"product_id":{"type":"string","format":"uuid","title":"Product Id"},"quantity":{"type":"integer","title":"Quantity","default":1},"unit_price":{"type":"number","title":"Unit Price"}},"type":"object","required":["product_id","unit_price"],"title":"SaleItemCreate"},"SaleItemRead":{"properties":{"product_id":{"type":"string","format":"uuid","title":"Product Id"},"quantity":{"type":"integer","title":"Quantity","default":1},"unit_price":{"type":"number","title":"Unit Price"},"id":{"type":"string","format":"uuid","title":"Id"},"sale_id":{"type":"string","format":"uuid","title":"Sale Id"},"product_name":{"type":"string","title":"Product Name","default":""},"unit_cost":{"type":"number","title":"Unit Cost"},"total_price":{"type":"number","title":"Total Price"},"net_margin":{"type":"number","title":"Net Margin"}},"type":"object","required":["product_id","unit_price","id","sale_id","unit_cost","total_price","net_margin"],"title":"SaleItemRead"},"SaleRead":{"properties":{"customer_name":{"type":"string","title":"Customer Name","default":"Cliente Casual"},"customer_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Phone"},"channel_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"},"channel":{"type":"string","title":"Channel","default":"MARKETPLACE"},"payment_method":{"type":"string","title":"Payment Method","default":"QR"},"payment_status":{"type":"string","title":"Payment Status","default":"COLLECTED"},"delivery_modality":{"type":"string","title":"Delivery Modality","default":"FREE_MEETING_POINT"},"delivery_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Address"},"delivery_cost":{"type":"number","title":"Delivery Cost","default":0.0},"delivery_cost_paid_by":{"type":"string","title":"Delivery Cost Paid By","default":"FREE"},"delivery_status":{"type":"string","title":"Delivery Status","default":"DELIVERED"},"total_collected":{"type":"number","title":"Total Collected","default":0.0},"currency":{"type":"string","title":"Currency","default":"BOB"},"observations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observations"},"id":{"type":"string","format":"uuid","title":"Id"},"sale_number":{"type":"string","title":"Sale Number"},"sheet_sale_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sheet Sale Id"},"sale_date":{"type":"string","format":"date-time","title":"Sale Date"},"total_cost":{"type":"number","title":"Total Cost"},"net_profit":{"type":"number","title":"Net Profit"},"items":{"items":{"$ref":"#/components/schemas/SaleItemRead"},"type":"array","title":"Items","default":[]}},"type":"object","required":["id","sale_number","sale_date","total_cost","net_profit"],"title":"SaleRead"},"SaleUpdate":{"properties":{"customer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Name"},"customer_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Phone"},"channel_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"payment_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Method"},"payment_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Status"},"delivery_modality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Modality"},"delivery_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Address"},"delivery_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delivery Cost"},"delivery_cost_paid_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Cost Paid By"},"delivery_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Status"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"observations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observations"}},"type":"object","title":"SaleUpdate"},"SalesChannelCreate":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["code","name"],"title":"SalesChannelCreate"},"SalesChannelRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active","default":true},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["code","name","id"],"title":"SalesChannelRead"},"SalesChannelUpdate":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"SalesChannelUpdate"},"StaffCreate":{"properties":{"external_id":{"type":"integer","title":"External Id"},"first_name":{"type":"string","title":"First Name"},"last_name_1":{"type":"string","title":"Last Name 1"},"last_name_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name 2"},"full_name":{"type":"string","title":"Full Name"},"birth_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birth Date"},"document_number":{"type":"string","title":"Document Number"},"document_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Location"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"cellphone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cellphone"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"status":{"type":"string","title":"Status","default":"INCORPORADO"},"staff_type":{"type":"string","title":"Staff Type","default":"SERVIDOR PÚBLICO"},"position_id":{"type":"string","format":"uuid","title":"Position Id"},"org_unit_id":{"type":"string","format":"uuid","title":"Org Unit Id"}},"type":"object","required":["external_id","first_name","last_name_1","full_name","document_number","position_id","org_unit_id"],"title":"StaffCreate"},"StaffPositionCreate":{"properties":{"external_id":{"type":"integer","title":"External Id"},"name":{"type":"string","title":"Name"},"level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level"},"position_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position Type"}},"type":"object","required":["external_id","name"],"title":"StaffPositionCreate"},"StaffPositionRead":{"properties":{"external_id":{"type":"integer","title":"External Id"},"name":{"type":"string","title":"Name"},"level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level"},"position_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position Type"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["external_id","name","id"],"title":"StaffPositionRead"},"StaffPositionSimple":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level"}},"type":"object","required":["id","name"],"title":"StaffPositionSimple"},"StaffPositionUpdate":{"properties":{"external_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"External Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level"},"position_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position Type"}},"type":"object","title":"StaffPositionUpdate"},"StaffRead":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name_1":{"type":"string","title":"Last Name 1"},"last_name_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name 2"},"full_name":{"type":"string","title":"Full Name"},"birth_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birth Date"},"document_number":{"type":"string","title":"Document Number"},"document_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Location"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"cellphone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cellphone"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"position_id":{"type":"string","format":"uuid","title":"Position Id"},"org_unit_id":{"type":"string","format":"uuid","title":"Org Unit Id"},"id":{"type":"string","format":"uuid","title":"Id"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["first_name","last_name_1","full_name","document_number","position_id","org_unit_id","id","is_active"],"title":"StaffRead"},"StaffReadDetailed":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name_1":{"type":"string","title":"Last Name 1"},"last_name_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name 2"},"full_name":{"type":"string","title":"Full Name"},"birth_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birth Date"},"document_number":{"type":"string","title":"Document Number"},"document_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Location"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"cellphone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cellphone"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"position_id":{"type":"string","format":"uuid","title":"Position Id"},"org_unit_id":{"type":"string","format":"uuid","title":"Org Unit Id"},"id":{"type":"string","format":"uuid","title":"Id"},"is_active":{"type":"boolean","title":"Is Active"},"management_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Management Name","readOnly":true},"department_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department Name","readOnly":true},"position_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position Name","readOnly":true},"position":{"anyOf":[{"$ref":"#/components/schemas/StaffPositionSimple"},{"type":"null"}],"readOnly":true},"org_unit":{"anyOf":[{"$ref":"#/components/schemas/OrgUnitSimple"},{"type":"null"}],"readOnly":true}},"type":"object","required":["first_name","last_name_1","full_name","document_number","position_id","org_unit_id","id","is_active","management_name","department_name","position_name","position","org_unit"],"title":"StaffReadDetailed"},"StaffUpdate":{"properties":{"external_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"External Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name 1"},"last_name_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name 2"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"birth_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birth Date"},"document_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Number"},"document_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Location"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"cellphone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cellphone"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"staff_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Staff Type"},"position_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Position Id"},"org_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Unit Id"}},"type":"object","title":"StaffUpdate"},"Task":{"properties":{"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"The timestamp when the data was created"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"The timestamp when the data was last updated"},"created_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By Id","description":"The user who created this record"},"updated_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By Id","description":"The user who last updated this record"},"id":{"type":"string","format":"uuid","title":"Id","description":"The primary key"},"title":{"type":"string","title":"Title","description":"The title of the task"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the task"},"completed":{"type":"boolean","title":"Completed","description":"The completion status of the task","default":false}},"type":"object","title":"Task","description":"Task model that represents a task in the database."},"TaskCreate":{"properties":{"title":{"type":"string","title":"Title","description":"The title of the task"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the task"},"completed":{"type":"boolean","title":"Completed","description":"The completion status of the task","default":false}},"type":"object","required":["title"],"title":"TaskCreate","description":"Schema for creating a new task."},"TaskUpdate":{"properties":{"title":{"type":"string","title":"Title","description":"The title of the task"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the task"},"completed":{"type":"boolean","title":"Completed","description":"The completion status of the task","default":false}},"type":"object","required":["title"],"title":"TaskUpdate","description":"Schema for updating a task."},"Token":{"properties":{"access_token":{"type":"string","title":"Access Token","description":"JWT Access Token for API access"},"token_type":{"type":"string","title":"Token Type","description":"Token type, usually 'bearer'"},"refresh_token":{"type":"string","title":"Refresh Token","description":"Token to refresh the access token"}},"type":"object","required":["access_token","token_type","refresh_token"],"title":"Token"},"UserCreate":{"properties":{"username":{"type":"string","title":"Username","description":"Unique username for login"},"email":{"type":"string","title":"Email","description":"Valid email address"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name","description":"User's first name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"User's last name"},"password":{"type":"string","title":"Password","description":"Strong password"},"is_active":{"type":"boolean","title":"Is Active","description":"Whether the user is active","default":true},"is_superuser":{"type":"boolean","title":"Is Superuser","description":"Whether the user has superuser privileges","default":false},"is_verified":{"type":"boolean","title":"Is Verified","description":"Whether the user email is verified","default":false}},"additionalProperties":false,"type":"object","required":["username","email","password"],"title":"UserCreate"},"UserModulePermission":{"properties":{"module_slug":{"type":"string","title":"Module Slug"},"can_create":{"type":"boolean","title":"Can Create","default":false},"can_update":{"type":"boolean","title":"Can Update","default":false},"can_delete":{"type":"boolean","title":"Can Delete","default":false},"can_read":{"type":"boolean","title":"Can Read","default":false},"scope_all":{"type":"boolean","title":"Scope All","description":"If True, can access all records. Else, own records.","default":false}},"type":"object","required":["module_slug"],"title":"UserModulePermission"},"UserRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"username":{"type":"string","title":"Username"},"email":{"type":"string","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"is_verified":{"type":"boolean","title":"Is Verified"},"is_active":{"type":"boolean","title":"Is Active"},"is_superuser":{"type":"boolean","title":"Is Superuser"}},"type":"object","required":["id","username","email","is_verified","is_active","is_superuser"],"title":"UserRead"},"UserReadDetailed":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"username":{"type":"string","title":"Username"},"email":{"type":"string","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"is_verified":{"type":"boolean","title":"Is Verified"},"is_active":{"type":"boolean","title":"Is Active"},"is_superuser":{"type":"boolean","title":"Is Superuser"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"created_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By Id"},"updated_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By Id"}},"type":"object","required":["id","username","email","is_verified","is_active","is_superuser"],"title":"UserReadDetailed"},"UserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"User unique identifier"},"username":{"type":"string","title":"Username","description":"Unique username"},"email":{"type":"string","title":"Email","description":"User email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name","description":"User's first name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"User's last name"},"is_verified":{"type":"boolean","title":"Is Verified","description":"Whether the email is verified","default":false}},"additionalProperties":false,"type":"object","required":["id","username","email"],"title":"UserResponse"},"UserUpdate":{"properties":{"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username","description":"Unique username for login"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"Valid email address"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name","description":"User's first name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"User's last name"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password","description":"New strong password"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Whether the user is active"},"is_superuser":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Superuser","description":"Whether the user has superuser privileges"},"is_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Verified","description":"Whether the user email is verified"}},"additionalProperties":false,"type":"object","title":"UserUpdate"},"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"}},"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"/api/auth/login"}}}}},"tags":[{"name":"Auth","description":"Gestión de Autenticación, Roles y Permisos de Usuario."},{"name":"Tasks","description":"Sistema de gestión de actividades y tareas operativas."},{"name":"Core Staff - Personal","description":"Administración del capital humano y datos maestros del personal."},{"name":"Core Staff - Org Units","description":"Gestión de la estructura organizacional y unidades administrativas."},{"name":"Core Staff - Positions","description":"Definición y control de cargos y puestos de trabajo."},{"name":"Assets - Institutions","description":"Registro de entidades gubernamentales y organizaciones externas."},{"name":"Assets - Areas","description":"Control de ubicaciones físicas y áreas geográficas de inventario."},{"name":"Assets - Asset Groups","description":"Categorización lógica y contable de los bienes del sistema."},{"name":"Assets - Asset Statuses","description":"Gestión de estados de conservación y situación legal de activos."},{"name":"Assets - Acts","description":"Control documental de actas de asignación, entrega y respaldo."},{"name":"Assets - Fixed Assets","description":"Gestión centralizada de Bienes de Uso, códigos SAF y verificación física."},{"name":"Commerce - Products","description":"Catálogo de productos, SKUs NOV-XXX y stock."},{"name":"Commerce - Sales","description":"Punto de venta y transacciones atómicas."},{"name":"Commerce - Batches & Boxes","description":"Lotes de importación y análisis de costos."},{"name":"Commerce - Investment Rounds","description":"Control de rondas de inversión y retorno de capital."},{"name":"Commerce - Categories","description":"Taxonomía oficial de categorías Nova Box."},{"name":"Commerce - Live Baskets","description":"Canastas estratégicas para transmisiones en vivo."}]}