{"openapi":"3.1.0","info":{"title":"Cinco+ Platform API","version":"1.0.0"},"paths":{"/api/auth/register":{"post":{"tags":["Autenticación"],"summary":"Register Comercio","description":"Register a new comercio account (admin_comercio) + initial default sucursal.","operationId":"register_comercio_api_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Register Comercio Api Auth Register Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login":{"post":{"tags":["Autenticación"],"summary":"Login","description":"Authenticate user and return JWT access + refresh tokens.","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Login Api Auth Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/refresh":{"post":{"tags":["Autenticación"],"summary":"Refresh Session","description":"Issue a new access token from a valid refresh token.","operationId":"refresh_session_api_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Refresh Session Api Auth Refresh Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/me":{"get":{"tags":["Autenticación"],"summary":"Get Me","description":"Return authenticated user profile.","operationId":"get_me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Me Api Auth Me Get"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["Autenticación"],"summary":"Update My Profile","description":"Update authenticated user's name and (if admin_comercio) their comercio name.","operationId":"update_my_profile_api_auth_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update My Profile Api Auth Me Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/me/report-preferences":{"patch":{"tags":["Autenticación"],"summary":"Update Report Preferences","description":"Toggle weekly/monthly AI summaries and review email alert preferences for the current user.","operationId":"update_report_preferences_api_auth_me_report_preferences_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportPreferencesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Report Preferences Api Auth Me Report Preferences Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/change-password":{"post":{"tags":["Autenticación"],"summary":"Change Password","description":"Change password for the currently logged-in user.","operationId":"change_password_api_auth_change_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Change Password Api Auth Change Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/forgot-password":{"post":{"tags":["Autenticación"],"summary":"Forgot Password","description":"Generate a 6-digit password reset code and send recovery email.","operationId":"forgot_password_api_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Forgot Password Api Auth Forgot Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/reset-password":{"post":{"tags":["Autenticación"],"summary":"Reset Password","description":"Verify recovery code and set a new password.","operationId":"reset_password_api_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Reset Password Api Auth Reset Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/google/start":{"get":{"tags":["Autenticación"],"summary":"Google User Auth Start","description":"Return Google OAuth URL for user login/signup (respecting pending invitations).","operationId":"google_user_auth_start_api_auth_google_start_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Google User Auth Start Api Auth Google Start Get"}}}}}}},"/api/auth/invitations":{"get":{"tags":["Autenticación"],"summary":"List Invitations","description":"List pending and accepted team invitations.","operationId":"list_invitations_api_auth_invitations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Response List Invitations Api Auth Invitations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/invite":{"post":{"tags":["Autenticación"],"summary":"Invite Team Member","description":"Invite an employee or branch manager by email with a registration code.","operationId":"invite_team_member_api_auth_invite_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteTeamRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Invite Team Member Api Auth Invite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/invitations/{inv_id}/resend":{"post":{"tags":["Autenticación"],"summary":"Resend Invitation","description":"Resend invitation email for an existing pending invitation.","operationId":"resend_invitation_api_auth_invitations__inv_id__resend_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"inv_id","in":"path","required":true,"schema":{"type":"string","title":"Inv Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Resend Invitation Api Auth Invitations  Inv Id  Resend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/empleados/{emp_id}/send-invite":{"post":{"tags":["Autenticación"],"summary":"Send Invite For Existing Empleado","description":"Create/resend an invitation for an existing empleado who has an email.","operationId":"send_invite_for_existing_empleado_api_auth_empleados__emp_id__send_invite_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"emp_id","in":"path","required":true,"schema":{"type":"string","title":"Emp Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Send Invite For Existing Empleado Api Auth Empleados  Emp Id  Send Invite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/accept-invite":{"post":{"tags":["Autenticación"],"summary":"Accept Invitation","description":"Complete account registration using an invitation code.","operationId":"accept_invitation_api_auth_accept_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptInviteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Accept Invitation Api Auth Accept Invite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/team":{"get":{"tags":["Autenticación"],"summary":"List Team Users","description":"List team users respecting comercio and sucursal hierarchy.","operationId":"list_team_users_api_auth_team_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Response List Team Users Api Auth Team Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Autenticación"],"summary":"Create Team User","description":"Create a team user (admin_sucursal or empleado) respecting role hierarchy.","operationId":"create_team_user_api_auth_team_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeamUserRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Team User Api Auth Team Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/comercios":{"get":{"tags":["Comercios y GMB"],"summary":"List Comercios","description":"admin_general sees all comercios; others see only their own comercio.","operationId":"list_comercios_api_comercios_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"object"},"type":"array","title":"Response List Comercios Api Comercios Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/comercios/current":{"get":{"tags":["Comercios y GMB"],"summary":"Get Current Comercio","description":"Return active comercio details.","operationId":"get_current_comercio_api_comercios_current_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Current Comercio Api Comercios Current Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Comercios y GMB"],"summary":"Update Current Comercio","description":"Update comercio configuration (brand voice, billing cycle, employee visibility).","operationId":"update_current_comercio_api_comercios_current_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComercioUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Current Comercio Api Comercios Current Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/comercios/gmb/link":{"post":{"tags":["Comercios y GMB"],"summary":"Link Gmb Sucursal","description":"Link a sucursal to Google My Business / Google Business Profile.","operationId":"link_gmb_sucursal_api_comercios_gmb_link_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmbLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Link Gmb Sucursal Api Comercios Gmb Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/comercios/gmb/sync/{sucursal_id}":{"post":{"tags":["Comercios y GMB"],"summary":"Sync Gmb Reviews And Analyze","description":"Trigger initial/incremental GMB review history sync for a sucursal\nand run AI analysis (sentiment, categories, recurring patterns, day-1 diagnostic).","operationId":"sync_gmb_reviews_and_analyze_api_comercios_gmb_sync__sucursal_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sucursal_id","in":"path","required":true,"schema":{"type":"string","title":"Sucursal Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Sync Gmb Reviews And Analyze Api Comercios Gmb Sync  Sucursal Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gmb/oauth/start":{"get":{"tags":["Google OAuth"],"summary":"Gmb Oauth Start","description":"Return Google OAuth consent URL for connecting a Google Business Profile account.","operationId":"gmb_oauth_start_api_gmb_oauth_start_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Gmb Oauth Start Api Gmb Oauth Start Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gmb/callback":{"get":{"tags":["Google OAuth"],"summary":"Gmb Oauth Callback","description":"Handle Google OAuth callback, save connection in gmb_connections, and auto-import sucursales.","operationId":"gmb_oauth_callback_api_gmb_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gmb/connections":{"get":{"tags":["Google OAuth"],"summary":"List Gmb Connections","description":"List all connected Google accounts for this comercio (without exposing tokens).","operationId":"list_gmb_connections_api_gmb_connections_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Response List Gmb Connections Api Gmb Connections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gmb/connections/{conn_id}/import-locations":{"post":{"tags":["Google OAuth"],"summary":"Reimport Connection Locations","description":"Re-import / sync all Google Business Profile locations for a specific Google connection.","operationId":"reimport_connection_locations_api_gmb_connections__conn_id__import_locations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conn_id","in":"path","required":true,"schema":{"type":"string","title":"Conn Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Reimport Connection Locations Api Gmb Connections  Conn Id  Import Locations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sucursales":{"get":{"tags":["Sucursales"],"summary":"List Sucursales","description":"List sucursales visible to the current user.","operationId":"list_sucursales_api_sucursales_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Response List Sucursales Api Sucursales Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Sucursales"],"summary":"Create Sucursal","description":"Create a new sucursal and update location billing if exceeding free tier.","operationId":"create_sucursal_api_sucursales_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SucursalCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Sucursal Api Sucursales Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sucursales/{sucursal_id}":{"patch":{"tags":["Sucursales"],"summary":"Update Sucursal","description":"Update sucursal details, active status, or measurement mode.","operationId":"update_sucursal_api_sucursales__sucursal_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sucursal_id","in":"path","required":true,"schema":{"type":"string","title":"Sucursal Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SucursalUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Sucursal Api Sucursales  Sucursal Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/puestos":{"get":{"tags":["Puestos y Empleados"],"summary":"List Puestos","description":"List positions (puestos) filtered by comercio and optional sucursal.","operationId":"list_puestos_api_puestos_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sucursal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sucursal Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Response List Puestos Api Puestos Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Puestos y Empleados"],"summary":"Create Puesto","description":"Create a position (puesto) in a sucursal.","operationId":"create_puesto_api_puestos_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PuestoCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Puesto Api Puestos Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/puestos/{puesto_id}":{"patch":{"tags":["Puestos y Empleados"],"summary":"Update Puesto","description":"Update a position (puesto).","operationId":"update_puesto_api_puestos__puesto_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"puesto_id","in":"path","required":true,"schema":{"type":"string","title":"Puesto Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PuestoUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Puesto Api Puestos  Puesto Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/empleados":{"get":{"tags":["Puestos y Empleados"],"summary":"List Empleados","description":"List employees filtered by comercio and sucursal.","operationId":"list_empleados_api_empleados_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sucursal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sucursal Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Response List Empleados Api Empleados Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Puestos y Empleados"],"summary":"Create Empleado","description":"Create an employee and optionally provision their login account.","operationId":"create_empleado_api_empleados_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmpleadoCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Empleado Api Empleados Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/empleados/{empleado_id}":{"patch":{"tags":["Puestos y Empleados"],"summary":"Update Empleado","description":"Update employee assignment or active status.","operationId":"update_empleado_api_empleados__empleado_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"empleado_id","in":"path","required":true,"schema":{"type":"string","title":"Empleado Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmpleadoUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Empleado Api Empleados  Empleado Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/qrs":{"get":{"tags":["Códigos QR Individuales"],"summary":"List Qrs","description":"List QRs respecting comercio, sucursal, and employee scope.","operationId":"list_qrs_api_qrs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sucursal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sucursal Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Response List Qrs Api Qrs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Códigos QR Individuales"],"summary":"Create Qr","description":"Generate a new individual billable QR linked to sucursal and optional empleado/puesto.","operationId":"create_qr_api_qrs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QrCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Qr Api Qrs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/qrs/{qr_id}":{"patch":{"tags":["Códigos QR Individuales"],"summary":"Update Qr","description":"Update QR label, assignment, or active state.","operationId":"update_qr_api_qrs__qr_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"qr_id","in":"path","required":true,"schema":{"type":"string","title":"Qr Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QrUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Qr Api Qrs  Qr Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/qrs/{qr_code}/svg":{"get":{"tags":["Códigos QR Individuales"],"summary":"Download Qr Svg","description":"Return printable SVG for a QR code.","operationId":"download_qr_svg_api_qrs__qr_code__svg_get","parameters":[{"name":"qr_code","in":"path","required":true,"schema":{"type":"string","title":"Qr Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rubros":{"get":{"tags":["Rubros y Chips"],"summary":"List Rubros","description":"List rubros with their positive and negative rating chips.","operationId":"list_rubros_api_rubros_get","parameters":[{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Response List Rubros Api Rubros Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Rubros y Chips"],"summary":"Create Rubro","description":"Create a new rubro (admin_general only).","operationId":"create_rubro_api_rubros_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RubroCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Rubro Api Rubros Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rubros/{rubro_id}":{"patch":{"tags":["Rubros y Chips"],"summary":"Update Rubro","description":"Update rubro name, chips, or active flag (admin_general only).","operationId":"update_rubro_api_rubros__rubro_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rubro_id","in":"path","required":true,"schema":{"type":"string","title":"Rubro Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RubroUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Rubro Api Rubros  Rubro Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Rubros y Chips"],"summary":"Delete Rubro","description":"Delete a rubro (admin_general only).","operationId":"delete_rubro_api_rubros__rubro_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rubro_id","in":"path","required":true,"schema":{"type":"string","title":"Rubro Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Delete Rubro Api Rubros  Rubro Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/qr/{qr_code}":{"get":{"tags":["Captura Pública QR"],"summary":"Get Qr Landing Context","description":"Open QR scan context without login or app install.\nRecords scan event associated with comercio, sucursal, and empleado/puesto (unless preview=True).","operationId":"get_qr_landing_context_api_public_qr__qr_code__get","parameters":[{"name":"qr_code","in":"path","required":true,"schema":{"type":"string","title":"Qr Code"}},{"name":"preview","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Preview"}},{"name":"ext","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Ext"}},{"name":"ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Qr Landing Context Api Public Qr  Qr Code  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/qr/{qr_code}/ai-draft":{"post":{"tags":["Captura Pública QR"],"summary":"Generate Public Ai Draft","description":"Generate an editable AI review draft for any rating (1 to 5 stars).","operationId":"generate_public_ai_draft_api_public_qr__qr_code__ai_draft_post","parameters":[{"name":"qr_code","in":"path","required":true,"schema":{"type":"string","title":"Qr Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Generate Public Ai Draft Api Public Qr  Qr Code  Ai Draft Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/qr/{qr_code}/feedback":{"post":{"tags":["Captura Pública QR"],"summary":"Submit Public Feedback","description":"Record either a direct internal message or a Google review intent.\nNever blocks Google access regardless of star rating.\nRoutes direct messages to sucursal inbox + comercio dashboard and triggers recurring alerts.","operationId":"submit_public_feedback_api_public_qr__qr_code__feedback_post","parameters":[{"name":"qr_code","in":"path","required":true,"schema":{"type":"string","title":"Qr Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicFeedbackRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Submit Public Feedback Api Public Qr  Qr Code  Feedback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/qr/{qr_code}/feedback/{item_id}/contact":{"patch":{"tags":["Captura Pública QR"],"summary":"Attach Optional Contact","description":"Optionally attach WhatsApp or Email after submitting direct feedback.","operationId":"attach_optional_contact_api_public_qr__qr_code__feedback__item_id__contact_patch","parameters":[{"name":"qr_code","in":"path","required":true,"schema":{"type":"string","title":"Qr Code"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicContactRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Attach Optional Contact Api Public Qr  Qr Code  Feedback  Item Id  Contact Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox":{"get":{"tags":["Bandeja, Insights y Kanban"],"summary":"List Inbox","description":"List unified inbox items respecting RBAC, sucursal scope, and employee visibility.","operationId":"list_inbox_api_inbox_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sucursal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sucursal Id"}},{"name":"rating","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":5,"minimum":1},{"type":"null"}],"title":"Rating"}},{"name":"sentiment","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"qr_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qr Code"}},{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}$"},{"type":"null"}],"title":"Month"}},{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"title":"Date"}},{"name":"hour_band","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^\\d{1,2}-\\d{1,2}$"},{"type":"null"}],"title":"Hour Band"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":15,"title":"Page Size"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Inbox Api Inbox Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/unread-count":{"get":{"tags":["Bandeja, Insights y Kanban"],"summary":"Get Inbox Unread Count","description":"Return counts of unread inbox items, active AI insights, and open tasks for sidebar badges.","operationId":"get_inbox_unread_count_api_inbox_unread_count_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sucursal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sucursal Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer"},"title":"Response Get Inbox Unread Count Api Inbox Unread Count Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/mark-all-read":{"post":{"tags":["Bandeja, Insights y Kanban"],"summary":"Mark All Inbox Read","description":"Mark all 'nuevo' inbox items in scope as 'en_revision'.","operationId":"mark_all_inbox_read_api_inbox_mark_all_read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sucursal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sucursal Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Mark All Inbox Read Api Inbox Mark All Read Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/{item_id}":{"patch":{"tags":["Bandeja, Insights y Kanban"],"summary":"Update Inbox Item","description":"Update inbox item status and save brand-voice reply.","operationId":"update_inbox_item_api_inbox__item_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxStatusUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Inbox Item Api Inbox  Item Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/{item_id}/suggest-reply":{"post":{"tags":["Bandeja, Insights y Kanban"],"summary":"Suggest Inbox Reply On Demand","description":"Generate an AI reply draft on demand for a specific inbox item.","operationId":"suggest_inbox_reply_on_demand_api_inbox__item_id__suggest_reply_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Suggest Inbox Reply On Demand Api Inbox  Item Id  Suggest Reply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/regenerate-ai":{"post":{"tags":["Bandeja, Insights y Kanban"],"summary":"Regenerate Inbox Ai Replies","description":"Regenerate AI reply suggestions for existing inbox items.","operationId":"regenerate_inbox_ai_replies_api_inbox_regenerate_ai_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sucursal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sucursal Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Regenerate Inbox Ai Replies Api Inbox Regenerate Ai Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/insights/report":{"get":{"tags":["Bandeja, Insights y Kanban"],"summary":"Get Latest Ai Report","description":"Return the latest persisted deep AI analysis report for the comercio or sucursal.","operationId":"get_latest_ai_report_api_insights_report_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sucursal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sucursal Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Response Get Latest Ai Report Api Insights Report Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/insights/analyze":{"post":{"tags":["Bandeja, Insights y Kanban"],"summary":"Run Deep Ai Analysis","description":"Run a deep qualitative + quantitative AI analysis across all reviews in scope.","operationId":"run_deep_ai_analysis_api_insights_analyze_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sucursal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sucursal Id"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","pattern":"^(all|90d|30d)$","default":"all","title":"Period"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Run Deep Ai Analysis Api Insights Analyze Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/insights/periodic-reports":{"get":{"tags":["Bandeja, Insights y Kanban"],"summary":"List Periodic Reports","description":"List saved weekly and monthly AI summary reports.","operationId":"list_periodic_reports_api_insights_periodic_reports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Response List Periodic Reports Api Insights Periodic Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/insights/periodic-reports/generate":{"post":{"tags":["Bandeja, Insights y Kanban"],"summary":"Generate Periodic Report Now","description":"Generate a weekly or monthly AI summary report on demand (without emailing).","operationId":"generate_periodic_report_now_api_insights_periodic_reports_generate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"period_type","in":"query","required":false,"schema":{"type":"string","pattern":"^(weekly|monthly)$","default":"weekly","title":"Period Type"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Generate Periodic Report Now Api Insights Periodic Reports Generate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/insights/periodic-reports/{report_id}/send-email":{"post":{"tags":["Bandeja, Insights y Kanban"],"summary":"Send Periodic Report Now","description":"Send a saved weekly or monthly AI summary report via email using the exact scheduled mailer.","operationId":"send_periodic_report_now_api_insights_periodic_reports__report_id__send_email_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Send Periodic Report Now Api Insights Periodic Reports  Report Id  Send Email Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/insights":{"get":{"tags":["Bandeja, Insights y Kanban"],"summary":"List Insights","description":"List AI insights for comercio or sucursal.","operationId":"list_insights_api_insights_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sucursal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sucursal Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"active","title":"Status"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Response List Insights Api Insights Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/insights/{insight_id}/dismiss":{"post":{"tags":["Bandeja, Insights y Kanban"],"summary":"Dismiss Insight","description":"Dismiss an AI insight.","operationId":"dismiss_insight_api_insights__insight_id__dismiss_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Dismiss Insight Api Insights  Insight Id  Dismiss Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/insights/{insight_id}/create-task":{"post":{"tags":["Bandeja, Insights y Kanban"],"summary":"Create Task From Insight","description":"Convert an AI insight directly into a Kanban task.","operationId":"create_task_from_insight_api_insights__insight_id__create_task_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"insight_id","in":"path","required":true,"schema":{"type":"string","title":"Insight Id"}},{"name":"assignee_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee User Id"}},{"name":"assignee_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Name"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Task From Insight Api Insights  Insight Id  Create Task Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kanban/tasks":{"get":{"tags":["Bandeja, Insights y Kanban"],"summary":"List Kanban Tasks","description":"List Kanban tasks respecting comercio, sucursal, and employee scope.","operationId":"list_kanban_tasks_api_kanban_tasks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sucursal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sucursal Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Response List Kanban Tasks Api Kanban Tasks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Bandeja, Insights y Kanban"],"summary":"Create Kanban Task","description":"Create a Kanban task manually or from inbox.","operationId":"create_kanban_task_api_kanban_tasks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KanbanTaskCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Kanban Task Api Kanban Tasks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kanban/tasks/{task_id}":{"patch":{"tags":["Bandeja, Insights y Kanban"],"summary":"Update Kanban Task","description":"Update Kanban task status (drag-and-drop / selector), priority, or assignee.","operationId":"update_kanban_task_api_kanban_tasks__task_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KanbanTaskUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Kanban Task Api Kanban Tasks  Task Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Bandeja, Insights y Kanban"],"summary":"Delete Kanban Task","description":"Cancel and remove a Kanban task.","operationId":"delete_kanban_task_api_kanban_tasks__task_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Delete Kanban Task Api Kanban Tasks  Task Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/summary":{"get":{"tags":["Facturación y Analítica"],"summary":"Billing Summary","description":"Return current plan, location vs individual QR pricing breakdown, and cuenta corriente.","operationId":"billing_summary_api_billing_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Billing Summary Api Billing Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/payments":{"post":{"tags":["Facturación y Analítica"],"summary":"Register Payment","description":"Register a payment in the comercio cuenta corriente.","operationId":"register_payment_api_billing_payments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Register Payment Api Billing Payments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/overview":{"get":{"tags":["Facturación y Analítica"],"summary":"Admin General Overview","description":"Global platform view for admin_general across all comercios, plans, and billing.","operationId":"admin_general_overview_api_admin_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Admin General Overview Api Admin Overview Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/config":{"get":{"tags":["Facturación y Analítica"],"summary":"Get Platform Config","description":"Get global platform rating goal defaults.","operationId":"get_platform_config_api_admin_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Platform Config Api Admin Config Get"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["Facturación y Analítica"],"summary":"Update Platform Config","description":"Update global platform rating goal defaults (admin_general).","operationId":"update_platform_config_api_admin_config_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformConfigUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Platform Config Api Admin Config Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/dashboard":{"get":{"tags":["Facturación y Analítica"],"summary":"Dashboard Analytics","description":"Return separated Google vs Cinco+ ratings, 5-star calculator per sucursal,\nQR scan counts, and performance ranking by employee/position according to measurement_mode.","operationId":"dashboard_analytics_api_analytics_dashboard_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sucursal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sucursal Id"}},{"name":"comercio_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Dashboard Analytics Api Analytics Dashboard Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/health":{"get":{"summary":"Health Check","description":"Health check endpoint.","operationId":"health_check_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Check Api Health Get"}}}}}}},"/":{"get":{"summary":"Serve Landing","description":"Serve the Cinco+ landing page.","operationId":"serve_landing__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app":{"get":{"summary":"Serve Dashboard","description":"Serve the multi-role management dashboard.","operationId":"serve_dashboard_app_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/widget.js":{"get":{"summary":"Serve Widget Js","description":"Serve the embeddable Cinco+ capture widget script.","operationId":"serve_widget_js_widget_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/r/{qr_code}":{"get":{"summary":"Serve Qr Capture","description":"Serve the frictionless mobile QR capture page.","operationId":"serve_qr_capture_r__qr_code__get","parameters":[{"name":"qr_code","in":"path","required":true,"schema":{"type":"string","title":"Qr Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AcceptInviteRequest":{"properties":{"code":{"type":"string","maxLength":20,"minLength":4,"title":"Code"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"},"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":2},{"type":"null"}],"title":"Name"}},"type":"object","required":["code","password"],"title":"AcceptInviteRequest"},"AiDraftRequest":{"properties":{"rating":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Rating"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"notes":{"type":"string","maxLength":600,"title":"Notes","default":""}},"type":"object","required":["rating"],"title":"AiDraftRequest"},"BillingCycle":{"type":"string","enum":["monthly","annual"],"title":"BillingCycle"},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","minLength":1,"title":"Current Password"},"new_password":{"type":"string","maxLength":128,"minLength":8,"title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest"},"ComercioUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"rubro_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rubro Id"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"brand_voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Voice"},"billing_cycle":{"anyOf":[{"$ref":"#/components/schemas/BillingCycle"},{"type":"null"}]},"employee_review_visibility":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Employee Review Visibility"},"ai_reply_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ai Reply Enabled"},"needs_google_onboarding":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needs Google Onboarding"},"plan_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Tier"}},"type":"object","title":"ComercioUpdateRequest"},"CreateTeamUserRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"},"role":{"$ref":"#/components/schemas/UserRole"},"sucursal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sucursal Id"},"puesto_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Puesto Id"},"empleado_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Empleado Id"}},"type":"object","required":["name","email","password","role"],"title":"CreateTeamUserRequest"},"EmpleadoCreateRequest":{"properties":{"sucursal_id":{"type":"string","title":"Sucursal Id"},"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"},"puesto_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Puesto Id"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"create_user_account":{"type":"boolean","title":"Create User Account","default":false},"password":{"anyOf":[{"type":"string","minLength":8},{"type":"null"}],"title":"Password"}},"type":"object","required":["sucursal_id","name"],"title":"EmpleadoCreateRequest"},"EmpleadoUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"sucursal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sucursal Id"},"puesto_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Puesto Id"},"activo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Activo"}},"type":"object","title":"EmpleadoUpdateRequest"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"GmbLinkRequest":{"properties":{"sucursal_id":{"type":"string","title":"Sucursal Id"},"google_place_id":{"type":"string","minLength":3,"title":"Google Place Id"},"google_review_url":{"type":"string","minLength":10,"title":"Google Review Url"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"}},"type":"object","required":["sucursal_id","google_place_id","google_review_url"],"title":"GmbLinkRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InboxStatusUpdateRequest":{"properties":{"status":{"type":"string","pattern":"^(nuevo|en_revision|respondido|resuelto)$","title":"Status"},"reply_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply Text"}},"type":"object","required":["status"],"title":"InboxStatusUpdateRequest"},"InviteTeamRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"role":{"$ref":"#/components/schemas/UserRole"},"sucursal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sucursal Id"},"puesto_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Puesto Id"}},"type":"object","required":["name","email","role"],"title":"InviteTeamRequest"},"KanbanTaskCreateRequest":{"properties":{"sucursal_id":{"type":"string","title":"Sucursal Id"},"title":{"type":"string","maxLength":180,"minLength":3,"title":"Title"},"description":{"type":"string","maxLength":1000,"title":"Description","default":""},"priority":{"$ref":"#/components/schemas/TaskPriority","default":"media"},"status":{"$ref":"#/components/schemas/TaskStatus","default":"Pendiente"},"origin":{"type":"string","title":"Origin","default":"manual"},"origin_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Id"},"assignee_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee User Id"},"assignee_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Name"}},"type":"object","required":["sucursal_id","title"],"title":"KanbanTaskCreateRequest"},"KanbanTaskUpdateRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"priority":{"anyOf":[{"$ref":"#/components/schemas/TaskPriority"},{"type":"null"}]},"status":{"anyOf":[{"$ref":"#/components/schemas/TaskStatus"},{"type":"null"}]},"assignee_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee User Id"},"assignee_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Name"}},"type":"object","title":"KanbanTaskUpdateRequest"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","minLength":1,"title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"MeasurementMode":{"type":"string","enum":["ninguno","empleado","puesto","ambos"],"title":"MeasurementMode"},"PaymentCreateRequest":{"properties":{"amount_usd":{"type":"number","exclusiveMinimum":0.0,"title":"Amount Usd"},"reference":{"type":"string","maxLength":120,"title":"Reference","default":"Pago registrado"},"comercio_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comercio Id"}},"type":"object","required":["amount_usd"],"title":"PaymentCreateRequest"},"PlatformConfigUpdateRequest":{"properties":{"default_google_target":{"type":"number","maximum":5.0,"minimum":1.0,"title":"Default Google Target"},"default_cincomas_target":{"type":"number","maximum":5.0,"minimum":1.0,"title":"Default Cincomas Target"}},"type":"object","required":["default_google_target","default_cincomas_target"],"title":"PlatformConfigUpdateRequest"},"ProfileUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":2},{"type":"null"}],"title":"Name"},"comercio_name":{"anyOf":[{"type":"string","maxLength":150,"minLength":2},{"type":"null"}],"title":"Comercio Name"}},"type":"object","title":"ProfileUpdateRequest"},"PublicContactRequest":{"properties":{"customer_name":{"type":"string","maxLength":100,"minLength":2,"title":"Customer Name"},"contact_channel":{"type":"string","pattern":"^(whatsapp|email)$","title":"Contact Channel"},"contact_value":{"type":"string","maxLength":120,"minLength":5,"title":"Contact Value"}},"type":"object","required":["customer_name","contact_channel","contact_value"],"title":"PublicContactRequest"},"PublicFeedbackRequest":{"properties":{"rating":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Rating"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"comment":{"type":"string","maxLength":1200,"title":"Comment","default":""},"action_type":{"type":"string","title":"Action Type","default":"direct_message"},"customer_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Customer Name"},"customer_contact":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Customer Contact"},"external_ref":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"External Ref"}},"type":"object","required":["rating"],"title":"PublicFeedbackRequest"},"PuestoCreateRequest":{"properties":{"sucursal_id":{"type":"string","title":"Sucursal Id"},"name":{"type":"string","maxLength":100,"minLength":2,"title":"Name"},"description":{"type":"string","maxLength":250,"title":"Description","default":""}},"type":"object","required":["sucursal_id","name"],"title":"PuestoCreateRequest"},"PuestoUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"activo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Activo"}},"type":"object","title":"PuestoUpdateRequest"},"QrCreateRequest":{"properties":{"sucursal_id":{"type":"string","title":"Sucursal Id"},"label":{"type":"string","maxLength":120,"minLength":2,"title":"Label"},"format_type":{"type":"string","title":"Format Type","default":"acrilico"},"empleado_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Empleado Id"},"puesto_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Puesto Id"}},"type":"object","required":["sucursal_id","label"],"title":"QrCreateRequest"},"QrUpdateRequest":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"format_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format Type"},"empleado_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Empleado Id"},"puesto_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Puesto Id"},"activo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Activo"}},"type":"object","title":"QrUpdateRequest"},"RefreshRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"RefreshRequest"},"RegisterRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"},"comercio_name":{"type":"string","maxLength":150,"minLength":2,"title":"Comercio Name"},"rubro_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rubro Id"},"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"},"needs_google_onboarding":{"type":"boolean","title":"Needs Google Onboarding","default":false},"billing_cycle":{"$ref":"#/components/schemas/BillingCycle","default":"monthly"}},"type":"object","required":["name","comercio_name","email","password"],"title":"RegisterRequest"},"ReportPreferencesRequest":{"properties":{"report_weekly_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Report Weekly Enabled"},"report_monthly_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Report Monthly Enabled"},"review_email_alert":{"anyOf":[{"type":"string","pattern":"^(none|low_only|all)$"},{"type":"null"}],"title":"Review Email Alert"}},"type":"object","title":"ReportPreferencesRequest"},"ResetPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"code":{"type":"string","maxLength":12,"minLength":4,"title":"Code"},"new_password":{"type":"string","maxLength":128,"minLength":8,"title":"New Password"}},"type":"object","required":["email","code","new_password"],"title":"ResetPasswordRequest"},"RubroCreateRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"},"positive_tags":{"items":{"type":"string"},"type":"array","title":"Positive Tags"},"negative_tags":{"items":{"type":"string"},"type":"array","title":"Negative Tags"},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["name"],"title":"RubroCreateRequest"},"RubroUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":2},{"type":"null"}],"title":"Name"},"positive_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Positive Tags"},"negative_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Negative Tags"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},"type":"object","title":"RubroUpdateRequest"},"SucursalCreateRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"},"address":{"type":"string","maxLength":250,"title":"Address","default":""},"phone":{"type":"string","maxLength":40,"title":"Phone","default":""},"measurement_mode":{"$ref":"#/components/schemas/MeasurementMode","default":"ninguno"},"google_place_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Place Id"},"google_review_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Review Url"},"needs_google_onboarding":{"type":"boolean","title":"Needs Google Onboarding","default":false},"target_rating":{"type":"number","maximum":5.0,"minimum":1.0,"title":"Target Rating","default":4.7},"cincomas_target_rating":{"type":"number","maximum":5.0,"minimum":1.0,"title":"Cincomas Target Rating","default":4.8}},"type":"object","required":["name"],"title":"SucursalCreateRequest"},"SucursalUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"measurement_mode":{"anyOf":[{"$ref":"#/components/schemas/MeasurementMode"},{"type":"null"}]},"activa":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Activa"},"google_place_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Place Id"},"google_review_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Review Url"},"needs_google_onboarding":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needs Google Onboarding"},"target_rating":{"anyOf":[{"type":"number","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Target Rating"},"cincomas_target_rating":{"anyOf":[{"type":"number","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Cincomas Target Rating"}},"type":"object","title":"SucursalUpdateRequest"},"TaskPriority":{"type":"string","enum":["alta","media","baja"],"title":"TaskPriority"},"TaskStatus":{"type":"string","enum":["Pendiente","En progreso","Resuelta","Cerrada"],"title":"TaskStatus"},"UserRole":{"type":"string","enum":["admin_general","admin_comercio","admin_sucursal","empleado"],"title":"UserRole"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}