{"openapi":"3.1.0","info":{"title":"ParkingBase Identity","description":"Authentication and User Management Platform","contact":{"name":"ParkingBase Support","email":"support@parkingbase.com"},"license":{"name":"MIT License","url":"https://opensource.org/licenses/MIT"},"version":"1.0.0"},"servers":[{"url":"https://auth.parkingbase.com","description":"Generated server url"}],"tags":[{"name":"Ecommerce Users","description":"Ecommerce user sync API (API Clients only)"},{"name":"Theme","description":"UI theme configuration management"},{"name":"Authentication","description":"Authentication and token management APIs"},{"name":"Login Configuration","description":"APIs for configuring login authentication options"},{"name":"Service Accounts","description":"Service account management (Admin only)"},{"name":"User Groups","description":"User group management APIs - manage role-based user groups"},{"name":"OAuth2","description":"OAuth2 compatible token endpoints"},{"name":"OAuth2 Authorization","description":"OAuth2 Authorization Code Flow endpoints"},{"name":"User Management","description":"User management APIs (API Clients only)"},{"name":"MFA","description":"Multi-Factor Authentication APIs"},{"name":"Passkey Authentication","description":"FIDO2/WebAuthn Passkey registration and authentication"},{"name":"Maintenance","description":"System maintenance operations (Admin or Client auth)"},{"name":"Password Policy","description":"Password policy management"},{"name":"User Administration","description":"Admin-only user management (Basic Auth)"},{"name":"OTP Authentication","description":"Passwordless authentication via Email and SMS OTP"},{"name":"Client Management","description":"API Client management (Admin Basic Auth only)"},{"name":"Discovery","description":"OpenID Connect Discovery endpoints"},{"name":"Social Login","description":"Google, Apple, Microsoft SSO authentication"}],"paths":{"/api/users/{userType}/{id}/user-groups":{"put":{"tags":["User Management"],"summary":"Set User Groups","description":"Set user groups for a user (replaces all existing group memberships)","operationId":"setUserGroups","parameters":[{"name":"userType","in":"path","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroupsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["User Management"],"summary":"Add User Groups","description":"Add user groups to a user. The user will inherit roles from these groups.","operationId":"addUserGroups","parameters":[{"name":"userType","in":"path","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroupsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["User Management"],"summary":"Remove User Groups","description":"Remove user groups from a user. The user will lose inherited roles from these groups.","operationId":"removeUserGroups","parameters":[{"name":"userType","in":"path","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroupsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/password-policies/{entityType}/{entityId}/{userType}":{"get":{"tags":["Password Policy"],"summary":"Get Entity Policy","description":"Get effective password policy for entity and user type (with fallback to defaults)","operationId":"getEntityPolicy","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., 'company')","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}},{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasswordPolicyDto"}}}}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Password Policy"],"summary":"Set Entity Policy","description":"Set password policy for entity and user type","operationId":"setEntityPolicy","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., 'company')","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}},{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePasswordPolicyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasswordPolicyDto"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Password Policy"],"summary":"Delete Entity Policy","description":"Delete entity-specific policy (falls back to global default)","operationId":"deleteEntityPolicy","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., 'company')","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}},{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]}},"/api/password-policies/defaults/{userType}":{"get":{"tags":["Password Policy"],"summary":"Get Global Default","description":"Get global default password policy for a user type","operationId":"getGlobalDefault","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasswordPolicyDto"}}}}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Password Policy"],"summary":"Set Global Default","description":"Set global default password policy for a user type","operationId":"setGlobalDefault","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePasswordPolicyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasswordPolicyDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/maintenance/frame-ancestors":{"get":{"tags":["Maintenance"],"summary":"List Frame Ancestors","description":"Get all effective frame ancestor origins (DB + property-based)","operationId":"getFrameAncestors","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/FrameAncestorDto"}}}}},"security":[{"basicAuth":[]}]},"put":{"tags":["Maintenance"],"summary":"Sync Frame Ancestors","description":"Replace all DB frame ancestor origins with the provided set. Origins not in the set are removed; new ones are added. Property-based origins are not affected.","operationId":"syncFrameAncestors","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"uniqueItems":true}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/FrameAncestorDto"}}}}},"security":[{"basicAuth":[]}]},"post":{"tags":["Maintenance"],"summary":"Add Frame Ancestors","description":"Add one or more origins (comma-separated) allowed to embed this server in an iframe. MANUAL origins survive a sync; SYNC origins are reconciled by one.","operationId":"addFrameAncestors","parameters":[{"name":"origins","in":"query","required":true,"schema":{"type":"string"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","default":"MANUAL","enum":["MANUAL","SYNC"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}}},"security":[{"basicAuth":[]}]},"delete":{"tags":["Maintenance"],"summary":"Remove Frame Ancestors","description":"Remove one or more origins (comma-separated). Changes take effect on the next request.","operationId":"removeFrameAncestors","parameters":[{"name":"origins","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}}},"security":[{"basicAuth":[]}]}},"/api/login-config/entity/{entityType}/{entityId}/{userType}":{"get":{"tags":["Login Configuration"],"summary":"Get login configuration for entity","description":"Get login configuration for a specific entity type, entity ID, and user type","operationId":"getConfigurationForEntity","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., COMPANY, HOTEL)","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}},{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginConfigurationDto"}}}}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Login Configuration"],"summary":"Create or update login configuration for entity","description":"Upsert login configuration for a specific entity type, entity ID, and user type","operationId":"upsertConfigurationForEntity","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., COMPANY, HOTEL)","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}},{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginConfigurationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginConfigurationDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/ecommerce-users/{id}":{"get":{"tags":["Ecommerce Users"],"summary":"Get Ecommerce User","description":"Get an ecommerce user by ID","operationId":"getById","parameters":[{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EcommerceUserDto"}}}}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Ecommerce Users"],"summary":"Create or Update Ecommerce User","description":"Upsert — creates the user if not found, updates if exists. Idempotent operation for sync workflows.","operationId":"createOrUpdate","parameters":[{"name":"id","in":"path","description":"UUID for the user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEcommerceUserRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EcommerceUserDto"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Ecommerce Users"],"summary":"Create Ecommerce User","description":"Create a new ecommerce user with a caller-provided UUID as the ID","operationId":"createUser","parameters":[{"name":"id","in":"path","description":"UUID for the new user","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEcommerceUserRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EcommerceUserDto"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Ecommerce Users"],"summary":"Delete Ecommerce User","description":"Delete an ecommerce user by ID","operationId":"deleteUser","parameters":[{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]},"patch":{"tags":["Ecommerce Users"],"summary":"Update Ecommerce User","description":"Update an existing ecommerce user. Only provided fields are updated.","operationId":"updateUser","parameters":[{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEcommerceUserRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EcommerceUserDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/ecommerce-users/batch":{"put":{"tags":["Ecommerce Users"],"summary":"Batch Create or Update Ecommerce Users","description":"Batch upsert — each entry maps a UUID to its request data. Loads existing users in one query, then saves all in bulk.","operationId":"createOrUpdateBatch","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CreateEcommerceUserRequest"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/EcommerceUserDto"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/admin/users/{userType}/{id}":{"get":{"tags":["User Administration"],"summary":"Get User by ID","description":"Get a specific user by ID within a user type","operationId":"getUserById","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]},"put":{"tags":["User Administration"],"summary":"Update User","description":"Update an existing user. Password cannot be updated via this endpoint - use change-password or reset-password endpoints.","operationId":"updateUser_1","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRequest"}}},"required":true},"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]},"delete":{"tags":["User Administration"],"summary":"Delete User","description":"Permanently delete a user","operationId":"deleteUser_1","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]},"patch":{"tags":["User Administration"],"summary":"Partial Update User","description":"Partially update an existing user. Password cannot be updated via this endpoint - use change-password or reset-password endpoints.","operationId":"patchUser","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRequest"}}},"required":true},"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/oauth/token":{"post":{"tags":["OAuth2"],"summary":"OAuth Token","description":"OAuth2 compatible token endpoint supporting multiple grant types","operationId":"token","parameters":[{"name":"grant_type","in":"query","description":"Grant type: authorization_code, client_credentials, password, refresh_token","required":true,"schema":{"type":"string"}},{"name":"code","in":"query","description":"Authorization code (for authorization_code grant)","required":false,"schema":{"type":"string"}},{"name":"redirect_uri","in":"query","description":"Redirect URI (must match the one used in /authorize)","required":false,"schema":{"type":"string"}},{"name":"code_verifier","in":"query","description":"PKCE code verifier (required when code_challenge was used)","required":false,"schema":{"type":"string"}},{"name":"username","in":"query","description":"Username (for password grant)","required":false,"schema":{"type":"string"}},{"name":"password","in":"query","description":"Password (for password grant)","required":false,"schema":{"type":"string"}},{"name":"refresh_token","in":"query","description":"Refresh token (for refresh_token grant)","required":false,"schema":{"type":"string"}},{"name":"client_id","in":"query","description":"Client ID","required":false,"schema":{"type":"string"}},{"name":"client_secret","in":"query","description":"Client secret (for confidential clients)","required":false,"schema":{"type":"string"}},{"name":"audience","in":"query","description":"API audience","required":false,"schema":{"type":"string"}},{"name":"scope","in":"query","description":"Requested scopes (space-separated)","required":false,"schema":{"type":"string"}},{"name":"user_type","in":"query","description":"User type (for password grant)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}}},"security":[]}},"/api/{entityType}/{entityId}/user-groups":{"get":{"tags":["User Groups"],"summary":"List User Groups","description":"Get all user groups for a specific entity","operationId":"getUserGroups","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., COMPANY, HOTEL)","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserGroupDto"}}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["User Groups"],"summary":"Create User Group","description":"Create a new user group for an entity. The group name must be unique within the entity.","operationId":"createUserGroup","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., COMPANY, HOTEL)","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserGroupRequest"}}},"required":true},"responses":{"201":{"description":"User group created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserGroupDto"}}}},"400":{"description":"Invalid request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserGroupDto"}}}},"409":{"description":"User group with same name already exists for this entity","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserGroupDto"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["User Groups"],"summary":"Delete All User Groups for Entity","description":"Delete all user groups for a specific entity","operationId":"deleteUserGroupsByEntity","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., COMPANY, HOTEL)","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]}},"/api/{entityType}/{entityId}/user-groups/{id}/roles":{"post":{"tags":["User Groups"],"summary":"Add Roles to User Group","description":"Add roles to a user group within an entity","operationId":"addRoles","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., COMPANY, HOTEL)","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"User group ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserGroupDto"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["User Groups"],"summary":"Remove Roles from User Group","description":"Remove roles from a user group within an entity","operationId":"removeRoles","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., COMPANY, HOTEL)","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"User group ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserGroupDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/users/{userType}":{"post":{"tags":["User Management"],"summary":"Create User","description":"Create a new user of the specified type. Either email or phone_number must be provided.","operationId":"createUser_1","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/users/{userType}/{id}/time-bounded-role":{"post":{"tags":["User Management"],"summary":"Add Time-Bounded Role","description":"Add a role to a user with optional start and end dates. If start_date is set, the role becomes active only after that date. If end_date is set, the role expires after that date. If the role already exists, its time bounds will be updated.","operationId":"addTimeBoundedRole","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserRoleRequest"}}},"required":true},"responses":{"200":{"description":"Role added successfully","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}},"400":{"description":"Invalid request (e.g., end_date before start_date)","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/users/{userType}/{id}/send-verification":{"post":{"tags":["User Management"],"summary":"Send Verification OTP","description":"Send verification OTP to a user's email or phone number","operationId":"sendVerificationOtp","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","description":"Verification type: email or sms","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OTP sent successfully","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OtpResponse"}}}},"400":{"description":"User has no email/phone configured","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OtpResponse"}}}},"404":{"description":"User not found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OtpResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/api/users/{userType}/{id}/send-passkey-setup":{"post":{"tags":["User Management"],"summary":"Send Passkey Setup Link","description":"Send passkey setup link to a user's email or phone number","operationId":"sendPasskeySetupLink","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","description":"Delivery type: email or sms","required":true,"schema":{"type":"string"}},{"name":"entity_type","in":"query","description":"Entity type for tenant branding (e.g. COMPANY); optional","required":false,"schema":{"type":"string"}},{"name":"entity_id","in":"query","description":"Entity ID for tenant branding; optional","required":false,"schema":{"type":"string"}},{"name":"domain","in":"query","description":"Customer site (URL or domain) to send as; optional, wins over the company's theme domain","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Setup link sent successfully","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OtpResponse"}}}},"400":{"description":"User has no email/phone configured","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OtpResponse"}}}},"404":{"description":"User not found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OtpResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/api/users/{userType}/{id}/roles":{"post":{"tags":["User Management"],"summary":"Add Roles","description":"Add direct roles to a user","operationId":"addRoles_1","parameters":[{"name":"userType","in":"path","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["User Management"],"summary":"Remove Roles","description":"Remove direct roles from a user","operationId":"removeRoles_1","parameters":[{"name":"userType","in":"path","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/users/{userType}/{id}/login-as":{"post":{"tags":["User Management"],"summary":"Login As User","description":"Generate authentication tokens for a user by ID (impersonation). Allows administrators to login as any user without their password. Bypasses MFA and password requirements.","operationId":"loginAsUser","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","description":"User ID to impersonate","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tokens generated successfully","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}},"404":{"description":"User not found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}},"400":{"description":"User is blocked","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/api/users/{userType}/{id}/force-password-change":{"post":{"tags":["User Management"],"summary":"Force Password Change","description":"Set or clear the force password change flag for a user. When set, user must change password at next sign-in.","operationId":"setForcePasswordChange","parameters":[{"name":"userType","in":"path","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/theme/sync":{"post":{"tags":["Theme"],"summary":"Sync Theme","description":"Create or update theme for an entity. Called by external API servers to sync theme data.","operationId":"syncTheme","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThemeDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ThemeDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/theme/sync/bulk":{"post":{"tags":["Theme"],"summary":"Bulk Sync Themes","description":"Create or update multiple themes at once. Called by external API servers during batch sync.","operationId":"bulkSyncThemes","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ThemeDto"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ThemeDto"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/theme/cache/clear":{"post":{"tags":["Theme"],"summary":"Clear Theme Cache","description":"Clear all cached themes. Useful after bulk updates or to force refresh.","operationId":"clearCache","responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]}},"/api/service-accounts":{"post":{"tags":["Service Accounts"],"summary":"Create Service Account","description":"Create a new service account with email and password. entity_type and entity_id are required for password policy lookup.","operationId":"createServiceAccount","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateServiceAccountRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceAccountDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/service-accounts/{id}/reset-failed-auth":{"post":{"tags":["Service Accounts"],"summary":"Reset Failed Auth Count","description":"Reset the consecutive failed authentication counter","operationId":"resetFailedAuthCount","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceAccountDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/service-accounts/{id}/regenerate-password":{"post":{"tags":["Service Accounts"],"summary":"Regenerate Password","description":"Generate a new strong password for the service account. Returns the service account with the new password (store it securely!).","operationId":"regeneratePassword","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceAccountDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/service-accounts/{id}/deactivate":{"post":{"tags":["Service Accounts"],"summary":"Deactivate Service Account","description":"Deactivate a service account (block it to prevent authentication)","operationId":"deactivateServiceAccount","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceAccountDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/service-accounts/{id}/alerts":{"post":{"tags":["Service Accounts"],"summary":"Toggle Alerts","description":"Enable or disable alerts for a service account","operationId":"setAlertsEnabled","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"enabled","in":"query","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceAccountDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/service-accounts/{id}/activate":{"post":{"tags":["Service Accounts"],"summary":"Activate Service Account","description":"Activate a service account (unblock it to allow authentication)","operationId":"activateServiceAccount","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceAccountDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/password-policies/validate/{entityType}/{entityId}/{userType}":{"post":{"tags":["Password Policy"],"summary":"Validate Password","description":"Validate a password against the effective policy (does not check history)","operationId":"validatePassword","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., 'company')","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}},{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasswordValidationResult"}}}}},"security":[{"bearerAuth":[]}]}},"/api/passkey/{userType}/setup/registration/verify":{"post":{"tags":["Passkey Authentication"],"summary":"Verify Registration (setup token)","description":"Verify the attestation and save the passkey. The challenge must belong to the user the setup_token resolves to.","operationId":"verifySetupRegistration","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"setup_token","in":"query","description":"setup_token from an mfa_setup_required or registration response","required":true,"schema":{"type":"string"}},{"name":"challenge","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyRegistrationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasskeyDto"}}}}},"security":[]}},"/api/passkey/{userType}/setup/registration/options":{"post":{"tags":["Passkey Authentication"],"summary":"Get Registration Options (setup token)","description":"Generate WebAuthn credential creation options for a caller holding a setup_token. The account is resolved from that token, which the server issued on an mfa_setup_required or registration response; there is no identifier in the body and none is accepted.","operationId":"getSetupRegistrationOptions","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"setup_token","in":"query","description":"setup_token from an mfa_setup_required or registration response","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeySelfRegistrationOptionsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasskeyRegistrationOptionsResponse"}}}}},"security":[]}},"/api/passkey/{userType}/self/registration/verify":{"post":{"tags":["Passkey Authentication"],"summary":"Verify Registration (Secured)","description":"Verify the attestation and save the passkey for the authenticated user. Requires a valid user Bearer token. The challenge must belong to that user.","operationId":"verifySecuredRegistration","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"challenge","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyRegistrationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasskeyDto"}}}}},"security":[]}},"/api/passkey/{userType}/self/registration/options":{"post":{"tags":["Passkey Authentication"],"summary":"Get Registration Options (Secured)","description":"Generate WebAuthn credential creation options for the authenticated user. Requires a valid user Bearer token. The account is taken from that token; there is no identifier in the body and none is accepted.","operationId":"getSecuredRegistrationOptions","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeySelfRegistrationOptionsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasskeyRegistrationOptionsResponse"}}}}},"security":[]}},"/api/passkey/{userType}/authentication/verify":{"post":{"tags":["Passkey Authentication"],"summary":"Verify Authentication","description":"Verify the assertion from navigator.credentials.get() and return JWT tokens","operationId":"verifyAuthentication","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"challenge","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyAuthenticationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}}},"security":[]}},"/api/passkey/{userType}/authentication/options":{"post":{"tags":["Passkey Authentication"],"summary":"Get Authentication Options","description":"Generate WebAuthn credential request options. Returns a challenge and parameters for navigator.credentials.get()","operationId":"getAuthenticationOptions","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyAuthenticationOptionsRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasskeyAuthenticationOptionsResponse"}}}}},"security":[]}},"/api/otp/{userType}/verify":{"post":{"tags":["OTP Authentication"],"summary":"Verify OTP & Login","description":"Verify OTP code and get authentication tokens","operationId":"verifyOtpAndLogin","parameters":[{"name":"userType","in":"path","description":"User type: ECOMMERCE, BACKOFFICE, or HOTEL","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpVerifyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}}},"security":[]}},"/api/otp/{userType}/verify-only":{"post":{"tags":["OTP Authentication"],"summary":"Verify OTP Only","description":"Verify OTP code without returning auth tokens","operationId":"verifyOtpOnly","parameters":[{"name":"userType","in":"path","description":"User type: ECOMMERCE, BACKOFFICE, or HOTEL","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpVerifyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OtpResponse"}}}}},"security":[]}},"/api/otp/{userType}/send":{"post":{"tags":["OTP Authentication"],"summary":"Send OTP","description":"Send OTP to email or phone number for passwordless login","operationId":"sendOtp","parameters":[{"name":"userType","in":"path","description":"User type: ECOMMERCE, BACKOFFICE, or HOTEL","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"entity_type","in":"query","description":"Entity type for context (optional)","required":false,"schema":{"type":"string"}},{"name":"entity_id","in":"query","description":"Entity ID for context (optional)","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpSendRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OtpResponse"}}}}},"security":[]}},"/api/mfa/{userType}/verify":{"post":{"tags":["MFA"],"summary":"Verify MFA","description":"Verify 2FA code/passkey and get full authentication tokens","operationId":"verifyMfa","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaVerifyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}}},"security":[]}},"/api/mfa/{userType}/send-otp":{"post":{"tags":["MFA"],"summary":"Send MFA OTP","description":"Send OTP to user's phone or email for 2FA verification","operationId":"sendMfaOtp","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaSendOtpRequest"}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[]}},"/api/mfa/{userType}/passkey/options":{"post":{"tags":["MFA"],"summary":"Get MFA Passkey Options","description":"Get WebAuthn assertion options for passkey 2FA verification","operationId":"getMfaPasskeyOptions","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"mfa_token","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MfaPasskeyOptionsResponse"}}}}},"security":[]}},"/api/maintenance/cleanup-tokens":{"post":{"tags":["Maintenance"],"summary":"Cleanup Expired Tokens","description":"Clean up expired refresh tokens, OTPs, passkey challenges, and MFA challenges","operationId":"cleanupExpiredTokens","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CleanupResultDto"}}}}},"security":[{"basicAuth":[]}]}},"/api/maintenance/bulk-import/user-groups":{"post":{"tags":["Maintenance"],"summary":"Bulk Import User Groups","description":"Bulk import user groups. Creates new groups or updates existing ones (matched by name within the same entity).","operationId":"bulkImportUserGroups","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreateUserGroupRequest"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BulkImportResultDto"}}}}},"security":[{"basicAuth":[]}]}},"/api/ecommerce-users/{id}/token":{"post":{"tags":["Ecommerce Users"],"summary":"Generate Token for Ecommerce User","description":"Server-side (M2M) token issuance for an ecommerce user. Requires the 'users:manage' scope. Without a 'valid_until' body, returns a full token set (access + id + refresh) with the default lifetime. With 'valid_until' (epoch seconds), returns an access + refresh token (no id token); the access token may outlive the normal access-token cap but is clamped to the ecommerce token max (default 180 days). The minting client is recorded in the token's 'act' claim.","operationId":"generateToken","parameters":[{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateTokenRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/api/clients/{clientId}/rotate-secret":{"post":{"tags":["Client Management"],"summary":"Rotate Secret","description":"Generate a new client secret. Returns new secret (only shown once)","operationId":"rotateSecret","parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/clients/public":{"post":{"tags":["Client Management"],"summary":"Create Public OAuth Client","description":"Create a public OAuth client for SPAs or mobile apps. Public clients don't have a client_secret and MUST use PKCE. Suitable for browser-based apps that cannot securely store secrets.","operationId":"createPublicClient","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePublicClientRequest"}}},"required":true},"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/clients/confidential":{"post":{"tags":["Client Management"],"summary":"Create Confidential OAuth Client","description":"Create a confidential OAuth client for server-side apps. Confidential clients have a client_secret that must be kept secure. Suitable for backend services and traditional web apps.","operationId":"createConfidentialClient","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConfidentialClientRequest"}}},"required":true},"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/authorize/forget":{"post":{"tags":["OAuth2 Authorization"],"summary":"Forget the remembered sign-in","description":"Revoke this browser's remembered sign-in and clear its cookie. Requires an X-Recaptcha-Token for action REMEMBER_FORGET.","operationId":"forgetRememberedSignIn","responses":{"204":{"description":"Forgotten, or there was nothing to forget","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"403":{"description":"invalid_origin, or reCAPTCHA refused","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"security":[]}},"/api/authorize/continue":{"post":{"tags":["OAuth2 Authorization"],"summary":"Continue with a remembered sign-in","description":"Complete the pending authorization for the user of this browser's remembered sign-in, without a password. Requires an X-Recaptcha-Token for action REMEMBER_CONTINUE.","operationId":"continueRememberedSignIn","responses":{"200":{"description":"Code issued: {redirect_url, code}","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"400":{"description":"no_authorization_request","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"401":{"description":"remembered_session_invalid","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"403":{"description":"invalid_origin, or reCAPTCHA refused","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"security":[]}},"/api/authorize/complete":{"post":{"tags":["OAuth2 Authorization"],"summary":"Complete Authorization (API)","description":"Complete authorization and get redirect URL (for SPA)","operationId":"completeAuthorizationApi","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizeCompleteRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"security":[]}},"/api/authorize/cancel":{"post":{"tags":["OAuth2 Authorization"],"summary":"Cancel OAuth","description":"Cancel pending OAuth authorization","operationId":"cancelOAuth","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"security":[]}},"/api/auth/{userType}/register/authorize":{"post":{"tags":["Authentication"],"summary":"Register & Get Auth Code","description":"Register a new user and return an authorization code (PKCE). Exchange the code at /oauth/token.","operationId":"registerWithAuthCode","parameters":[{"name":"userType","in":"path","description":"User type: ECOMMERCE, BACKOFFICE, or HOTEL","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"entity_type","in":"query","description":"Entity type for context (optional)","required":false,"schema":{"type":"string"}},{"name":"entity_id","in":"query","description":"Entity ID for context (optional)","required":false,"schema":{"type":"string"}},{"name":"client_id","in":"query","description":"Client ID","required":true,"schema":{"type":"string"}},{"name":"redirect_uri","in":"query","description":"Redirect URI (must match client configuration)","required":true,"schema":{"type":"string"}},{"name":"code_challenge","in":"query","description":"PKCE code challenge","required":false,"schema":{"type":"string"}},{"name":"code_challenge_method","in":"query","description":"PKCE code challenge method (S256 or plain)","required":false,"schema":{"type":"string","default":"S256"}},{"name":"state","in":"query","description":"State parameter for CSRF protection","required":false,"schema":{"type":"string"}},{"name":"nonce","in":"query","description":"OpenID Connect nonce","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcommerceRegisterRequest"}}},"required":true},"responses":{"200":{"description":"User registered, authorization code returned","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthorizationCodeResponse"}}}},"400":{"description":"Invalid request or client","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthorizationCodeResponse"}}}},"409":{"description":"User already exists","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthorizationCodeResponse"}}}}},"security":[]}},"/api/auth/{userType}/password/reset":{"post":{"tags":["Authentication"],"summary":"Request Password Reset","description":"Request a password reset via email or SMS","operationId":"requestPasswordReset","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetRequest"}}},"required":true},"responses":{"200":{"description":"Password reset initiated successfully","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasswordResetInitiationResult"}}}},"500":{"description":"Failed to send password reset notification","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasswordResetInitiationResult"}}}}},"security":[]}},"/api/auth/{userType}/password/forgot":{"post":{"tags":["Authentication"],"summary":"Forgot Password (Public)","description":"Public forgot-password endpoint for frontend use","operationId":"forgotPassword","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"entity_type","in":"query","description":"Entity type for context (optional)","required":false,"schema":{"type":"string"}},{"name":"entity_id","in":"query","description":"Entity ID for context (optional)","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasswordResetInitiationResult"}}}}},"security":[]}},"/api/auth/{userType}/login":{"post":{"tags":["Authentication"],"summary":"Login","description":"Authenticate user with email/phone and password within a specific user type. Entity context is optional.","operationId":"login","parameters":[{"name":"userType","in":"path","description":"User type: ECOMMERCE, BACKOFFICE, or HOTEL","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"entity_type","in":"query","description":"Entity type for context (optional)","required":false,"schema":{"type":"string"}},{"name":"entity_id","in":"query","description":"Entity ID for context (optional)","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}}},"security":[]}},"/api/auth/{userType}/change-password":{"post":{"tags":["Authentication"],"summary":"Change Password & Get Tokens","description":"Change user's password using identifier (email/phone). Entity context is optional. Returns new auth tokens.","operationId":"changePasswordWithTokens","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"entity_type","in":"query","description":"Entity type for context (optional)","required":false,"schema":{"type":"string"}},{"name":"entity_id","in":"query","description":"Entity ID for context (optional)","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordWithIdentifierRequest"}}},"required":true},"responses":{"200":{"description":"Password changed, tokens returned","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}},"401":{"description":"Invalid credentials (wrong old password)","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}}},"security":[]}},"/api/auth/refresh":{"post":{"tags":["Authentication"],"summary":"Refresh Token","description":"Refresh access token using refresh token","operationId":"refreshToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRefreshRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}}},"security":[]}},"/api/auth/password/reset/complete":{"post":{"tags":["Authentication"],"summary":"Complete Password Reset","description":"Complete password reset using token from email/SMS","operationId":"completePasswordReset","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"security":[]}},"/api/auth/password/change-with-token":{"post":{"tags":["Authentication"],"summary":"Change Password with Token","description":"Change password using a password change token (for users who authenticated via OTP/passkey)","operationId":"changePasswordWithToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordWithTokenRequest"}}},"required":true},"responses":{"200":{"description":"Password changed successfully","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"400":{"description":"Invalid or expired token, or password policy violation","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"security":[]}},"/api/auth/oauth2/id-token":{"post":{"tags":["Social Login"],"summary":"Authenticate with Provider ID Token","description":"Verify an ID token from Google/Apple/Microsoft frontend SDK and return auth tokens","operationId":"authenticateWithIdToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdTokenLoginRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}},"security":[]}},"/api/auth/logout":{"post":{"tags":["Authentication"],"summary":"Logout","description":"Revoke refresh token","operationId":"logout","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRefreshRequest"}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[]}},"/api/auth/logout-all":{"post":{"tags":["Authentication"],"summary":"Logout All","description":"Revoke all refresh tokens for the user. Requires valid refresh token.","operationId":"logoutAll","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRefreshRequest"}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[]}},"/api/admin/users/{userType}":{"get":{"tags":["User Administration"],"summary":"List All Users by Type","description":"Get all users of a specific user type","operationId":"getAllUsers","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]},"post":{"tags":["User Administration"],"summary":"Create User","description":"Create a new user of the specified type.","operationId":"createUser_2","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}},"required":true},"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/{userType}/{id}/roles":{"get":{"tags":["User Administration"],"summary":"Get User Role Assignments","description":"Get all role assignments for a user, including time bounds and active status.","operationId":"getUserRoleAssignments","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]},"post":{"tags":["User Administration"],"summary":"Add Time-Bounded Role","description":"Add a role to a user with optional start and end dates. If start_date is set, the role becomes active only after that date. If end_date is set, the role expires after that date. If the role already exists, its time bounds will be updated.","operationId":"addTimeBoundedRole_1","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserRoleRequest"}}},"required":true},"responses":{"200":{"description":"Role added successfully","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}},"400":{"description":"Invalid request (e.g., end_date before start_date)","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}},"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/{userType}/{id}/reset-password":{"post":{"tags":["User Administration"],"summary":"Reset User Password","description":"Set a new password for the user (admin override, no old password required).","operationId":"resetPassword","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPasswordResetRequest"}}},"required":true},"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/{userType}/by-email/roles":{"post":{"tags":["User Administration"],"summary":"Add Time-Bounded Role by Email","description":"Add a role to a user identified by email with optional start and end dates. If start_date is set, the role becomes active only after that date. If end_date is set, the role expires after that date. If the role already exists, its time bounds will be updated.","operationId":"addTimeBoundedRoleByEmail","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"email","in":"query","description":"Email address","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserRoleRequest"}}},"required":true},"responses":{"200":{"description":"Role added successfully","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}},"400":{"description":"Invalid request (e.g., end_date before start_date)","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}},"404":{"description":"User not found with the given email","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}},"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/ip-rules":{"get":{"tags":["User Administration"],"summary":"List All IP Access Rules","description":"Get all IP whitelist and blacklist rules.","operationId":"getAllIpRules","responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]},"post":{"tags":["User Administration"],"summary":"Create IP Access Rule","description":"Create a new IP whitelist or blacklist rule.","operationId":"createIpRule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIpAccessRuleRequest"}}},"required":true},"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/ip-rules/whitelist":{"get":{"tags":["User Administration"],"summary":"List Active Whitelist","description":"Get all active whitelisted IPs. These IPs bypass rate limiting.","operationId":"getWhitelist","responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]},"post":{"tags":["User Administration"],"summary":"Quick Whitelist IP","description":"Quickly add an IP to the whitelist. Whitelisted IPs bypass rate limiting.","operationId":"whitelistIp","parameters":[{"name":"ipAddress","in":"query","description":"IP address to whitelist","required":true,"schema":{"type":"string"}},{"name":"description","in":"query","description":"Reason for whitelisting","required":false,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/ip-rules/refresh-cache":{"post":{"tags":["User Administration"],"summary":"Refresh IP Rules Cache","description":"Force refresh the in-memory whitelist/blacklist cache from the database.","operationId":"refreshIpRulesCache","responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/ip-rules/blacklist":{"get":{"tags":["User Administration"],"summary":"List Active Blacklist","description":"Get all active blacklisted IPs. These IPs are blocked from all requests.","operationId":"getBlacklist","responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]},"post":{"tags":["User Administration"],"summary":"Quick Blacklist IP","description":"Quickly add an IP to the blacklist. Blacklisted IPs are blocked from all requests.","operationId":"blacklistIp","parameters":[{"name":"ipAddress","in":"query","description":"IP address to blacklist","required":true,"schema":{"type":"string"}},{"name":"description","in":"query","description":"Reason for blacklisting","required":false,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/{entityType}/{entityId}/user-groups/{id}":{"get":{"tags":["User Groups"],"summary":"Get User Group","description":"Get a user group by its ID within an entity","operationId":"getUserGroupById","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., COMPANY, HOTEL)","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"User group ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"User group found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserGroupDto"}}}},"404":{"description":"User group not found or doesn't belong to the specified entity","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserGroupDto"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["User Groups"],"summary":"Delete User Group","description":"Delete a user group within an entity","operationId":"deleteUserGroup","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., COMPANY, HOTEL)","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"User group ID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"User group deleted"},"404":{"description":"User group not found or doesn't belong to the specified entity"}},"security":[{"bearerAuth":[]}]},"patch":{"tags":["User Groups"],"summary":"Update User Group","description":"Update an existing user group within an entity","operationId":"updateUserGroup","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., COMPANY, HOTEL)","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"User group ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserGroupRequest"}}},"required":true},"responses":{"200":{"description":"User group updated","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserGroupDto"}}}},"404":{"description":"User group not found or doesn't belong to the specified entity","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserGroupDto"}}}},"409":{"description":"User group with same name already exists for this entity","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserGroupDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/users/{userType}/{id}":{"get":{"tags":["User Management"],"summary":"Get User","description":"Get user by ID (must match the specified user type)","operationId":"getUserById_1","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["User Management"],"summary":"Delete User","description":"Delete a user by ID (must match the specified user type)","operationId":"deleteUser_2","parameters":[{"name":"userType","in":"path","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]},"patch":{"tags":["User Management"],"summary":"Update User","description":"Update an existing user (must match the specified user type). Password cannot be updated via this endpoint.","operationId":"updateUser_2","parameters":[{"name":"userType","in":"path","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/service-accounts/{id}":{"get":{"tags":["Service Accounts"],"summary":"Get Service Account","description":"Get service account by ID","operationId":"getServiceAccount","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceAccountDto"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Service Accounts"],"summary":"Delete Service Account","description":"Delete a service account","operationId":"deleteServiceAccount","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]},"patch":{"tags":["Service Accounts"],"summary":"Update Service Account","description":"Update service account details. entity_type and entity_id are required for password policy lookup.","operationId":"updateServiceAccount","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateServiceAccountRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceAccountDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/passkey/{userType}/users/{userId}/passkeys/{passkeyId}":{"delete":{"tags":["Passkey Authentication"],"summary":"Delete Passkey","description":"Remove a registered passkey","operationId":"deletePasskey","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}},{"name":"passkeyId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]},"patch":{"tags":["Passkey Authentication"],"summary":"Update Passkey","description":"Update passkey friendly name","operationId":"updatePasskey","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}},{"name":"passkeyId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasskeyDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/passkey/{userType}/self/passkeys/{passkeyId}":{"delete":{"tags":["Passkey Authentication"],"summary":"Delete Own Passkey","description":"Remove one of the authenticated user's passkeys.","operationId":"deleteOwnPasskey","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"passkeyId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[]},"patch":{"tags":["Passkey Authentication"],"summary":"Rename Own Passkey","description":"Update the friendly name of one of the authenticated user's passkeys.","operationId":"renameOwnPasskey","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"passkeyId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasskeyDto"}}}}},"security":[]}},"/api/clients/{clientId}/scopes":{"patch":{"tags":["Client Management"],"summary":"Update Scopes","description":"Update client's allowed scopes","operationId":"updateScopes","parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopesRequest"}}},"required":true},"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/clients/{clientId}/redirect-uris":{"patch":{"tags":["Client Management"],"summary":"Update Redirect URIs","description":"Update client's allowed redirect URIs for OAuth flows","operationId":"updateRedirectUris","parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectUrisRequest"}}},"required":true},"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/clients/{clientId}/grant-types":{"patch":{"tags":["Client Management"],"summary":"Update Grant Types","description":"Update client's allowed OAuth grant types","operationId":"updateGrantTypes","parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantTypesRequest"}}},"required":true},"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/clients/{clientId}/enable":{"patch":{"tags":["Client Management"],"summary":"Enable Client","description":"Enable a disabled client","operationId":"enableClient","parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/clients/{clientId}/disable":{"patch":{"tags":["Client Management"],"summary":"Disable Client","description":"Disable a client (revoke access)","operationId":"disableClient","parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/clients/{clientId}/allowed-origins":{"patch":{"tags":["Client Management"],"summary":"Update Allowed Origins","description":"Update client's allowed CORS origins","operationId":"updateAllowedOrigins","parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedOriginsRequest"}}},"required":true},"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/{userType}/{id}/unblock":{"patch":{"tags":["User Administration"],"summary":"Unblock User","description":"Unblock a previously blocked user","operationId":"unblockUser","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/{userType}/{id}/block":{"patch":{"tags":["User Administration"],"summary":"Block User","description":"Block a user to prevent login","operationId":"blockUser","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/ip-rules/{id}":{"get":{"tags":["User Administration"],"summary":"Get IP Rule by ID","description":"Get a specific IP access rule by its ID.","operationId":"getIpRuleById","parameters":[{"name":"id","in":"path","description":"Rule ID","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]},"delete":{"tags":["User Administration"],"summary":"Delete IP Access Rule","description":"Delete an IP access rule by ID.","operationId":"deleteIpRule","parameters":[{"name":"id","in":"path","description":"Rule ID","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]},"patch":{"tags":["User Administration"],"summary":"Update IP Access Rule","description":"Update an existing IP access rule (description, enabled status, expiration).","operationId":"updateIpRule","parameters":[{"name":"id","in":"path","description":"Rule ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateIpAccessRuleRequest"}}},"required":true},"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/authorize":{"get":{"tags":["OAuth2 Authorization"],"summary":"Authorization Endpoint","description":"OAuth2 authorization endpoint. Redirects to login page for user authentication.","operationId":"authorize","parameters":[{"name":"response_type","in":"query","description":"Response type, must be 'code'","required":true,"schema":{"type":"string"}},{"name":"client_id","in":"query","description":"Client identifier","required":true,"schema":{"type":"string"}},{"name":"redirect_uri","in":"query","description":"Redirect URI for the callback","required":true,"schema":{"type":"string"}},{"name":"scope","in":"query","description":"Space-separated scopes","required":false,"schema":{"type":"string"}},{"name":"state","in":"query","description":"State parameter for CSRF protection","required":false,"schema":{"type":"string"}},{"name":"code_challenge","in":"query","description":"PKCE code challenge","required":false,"schema":{"type":"string"}},{"name":"code_challenge_method","in":"query","description":"PKCE code challenge method (S256 or plain)","required":false,"schema":{"type":"string","default":"S256"}},{"name":"nonce","in":"query","description":"OpenID Connect nonce","required":false,"schema":{"type":"string"}},{"name":"user_type","in":"query","description":"User type to authenticate","required":false,"schema":{"type":"string"}},{"name":"entity_type","in":"query","description":"Entity type (e.g. COMPANY, HOTEL)","required":false,"schema":{"type":"string"}},{"name":"entity_id","in":"query","description":"Entity ID","required":false,"schema":{"type":"string"}},{"name":"login_hint","in":"query","description":"Pre-filled user identifier (email or phone)","required":false,"schema":{"type":"string"}},{"name":"theme","in":"query","description":"UI color scheme: 'light' (default) or 'dark'","required":false,"schema":{"type":"string"}},{"name":"prompt","in":"query","description":"OpenID Connect prompt; a value containing 'login' suppresses a remembered sign-in","required":false,"schema":{"type":"string"}},{"name":"max_age","in":"query","description":"OpenID Connect max_age in seconds; an older remembered sign-in is not offered","required":false,"schema":{"type":"string"}}],"responses":{"302":{"description":"Redirect to login page or callback with error","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RedirectView"}}}},"400":{"description":"Invalid request parameters","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RedirectView"}}}}},"security":[]}},"/api/{entityType}/{entityId}/user-groups/search":{"get":{"tags":["User Groups"],"summary":"Search User Groups","description":"Search user groups by name within an entity","operationId":"searchUserGroups","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., COMPANY, HOTEL)","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}},{"name":"q","in":"query","description":"Search query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserGroupDto"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/{entityType}/{entityId}/user-groups/by-role":{"get":{"tags":["User Groups"],"summary":"Find User Groups by Role","description":"Find user groups that contain a specific role within an entity","operationId":"findByRole","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., COMPANY, HOTEL)","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}},{"name":"role","in":"query","description":"Role to search for","required":true,"schema":{"type":"string"}},{"name":"contains","in":"query","description":"Use partial match (contains)","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserGroupDto"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/users/{userType}/{id}/effective-roles":{"get":{"tags":["User Management"],"summary":"Get Effective Roles","description":"Get all effective roles for a user (union of direct roles and roles from user groups)","operationId":"getEffectiveRoles","parameters":[{"name":"userType","in":"path","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}}},"security":[{"bearerAuth":[]}]}},"/api/users/{userType}/exists":{"get":{"tags":["User Management"],"summary":"User Exists","description":"Check if user exists by email or phone, and if they have a passkey","operationId":"userExists","parameters":[{"name":"userType","in":"path","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"identifier","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"boolean"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/users/{userType}/by-role":{"get":{"tags":["User Management"],"summary":"Find by Role","description":"Find users by role with optional search query and partial match","operationId":"findByRole_1","parameters":[{"name":"userType","in":"path","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"role","in":"query","description":"Role to filter by","required":true,"schema":{"type":"string"}},{"name":"q","in":"query","description":"Search query to filter results (email, phone, or name)","required":false,"schema":{"type":"string"}},{"name":"contains","in":"query","description":"Use partial match for role","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserDto"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/users/{userType}/by-role-and-group":{"get":{"tags":["User Management"],"summary":"Find by Role and User Group","description":"Find users who have a specific role AND belong to a specific user group","operationId":"findByRoleAndUserGroup","parameters":[{"name":"userType","in":"path","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"role","in":"query","description":"Role to filter by","required":true,"schema":{"type":"string"}},{"name":"userGroupId","in":"query","description":"User group ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserDto"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/users/{userType}/by-phone":{"get":{"tags":["User Management"],"summary":"Get User by Phone","description":"Get user by phone number","operationId":"getUsersByPhone","parameters":[{"name":"userType","in":"path","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"phone","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserDto"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/users/{userType}/by-email":{"get":{"tags":["User Management"],"summary":"Get User by Email","description":"Get user by email address","operationId":"getUsersByEmail","parameters":[{"name":"userType","in":"path","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"email","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserDto"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/theme":{"get":{"tags":["Theme"],"summary":"Get Theme","description":"Get UI theme configuration for an entity. Returns default theme if not found.","operationId":"getTheme","parameters":[{"name":"entity_type","in":"query","description":"Entity type (e.g., COMPANY, PROPERTY)","required":false,"schema":{"type":"string"}},{"name":"entity_id","in":"query","description":"Entity ID","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ThemeDto"}}}}},"security":[]},"delete":{"tags":["Theme"],"summary":"Delete Theme","description":"Remove theme configuration for an entity","operationId":"deleteTheme","parameters":[{"name":"entity_type","in":"query","description":"Entity type","required":true,"schema":{"type":"string"}},{"name":"entity_id","in":"query","description":"Entity ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}]}},"/api/service-accounts/by-role/{role}":{"get":{"tags":["Service Accounts"],"summary":"List Service Accounts by Role","description":"Get all service accounts filtered by role","operationId":"getAllServiceAccountsByRole","parameters":[{"name":"role","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceAccountDto"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/service-accounts/by-email":{"get":{"tags":["Service Accounts"],"summary":"Get by Email","description":"Get service account by email","operationId":"getServiceAccountByEmail","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceAccountDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/password-policies/{entityType}/{entityId}":{"get":{"tags":["Password Policy"],"summary":"List Entity Policies","description":"Get effective password policies for all user types for an entity (with fallback to defaults)","operationId":"listEntityPolicies","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., 'company')","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PasswordPolicyDto"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/password-policies/user/{userType}":{"get":{"tags":["Password Policy"],"summary":"Get User's Effective Policy","description":"Get the effective password policy for a user by their identifier. For HOTEL users, uses entity context if provided. For BACKOFFICE/ECOMMERCE users, returns the strictest policy from all company roles.","operationId":"getPolicyForUser","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"identifier","in":"query","description":"User identifier (email or phone)","required":true,"schema":{"type":"string"}},{"name":"entityType","in":"query","description":"Optional entity type for HOTEL users (e.g., 'HOTEL')","required":false,"schema":{"type":"string"}},{"name":"entityId","in":"query","description":"Optional entity ID for HOTEL users","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasswordPolicyDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/password-policies/effective/{entityType}/{entityId}/{userType}":{"get":{"tags":["Password Policy"],"summary":"Get Effective Policy","description":"Get the effective policy for a user type within an entity context","operationId":"getEffectivePolicy","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., 'company')","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}},{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PasswordPolicyDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/password-policies/defaults":{"get":{"tags":["Password Policy"],"summary":"List Global Defaults","description":"Get all global default password policies","operationId":"listGlobalDefaults","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PasswordPolicyDto"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/passkey/{userType}/users/{userId}/passkeys":{"get":{"tags":["Passkey Authentication"],"summary":"List User Passkeys","description":"Get all registered passkeys for a user","operationId":"getUserPasskeys","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PasskeyDto"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/passkey/{userType}/self/passkeys":{"get":{"tags":["Passkey Authentication"],"summary":"List Own Passkeys","description":"Get all registered passkeys for the authenticated user. Requires a valid user Bearer token.","operationId":"listOwnPasskeys","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PasskeyDto"}}}}}},"security":[]}},"/api/mfa/{userType}/status/{userId}":{"get":{"tags":["MFA"],"summary":"Get MFA Status","description":"Get available MFA methods for a user","operationId":"getMfaStatus","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"userId","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MfaStatusDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/maintenance/user-groups":{"get":{"tags":["Maintenance"],"summary":"List All User Groups","description":"Get all user groups across all entities. Use with caution as this may return a large dataset.","operationId":"getAllUserGroups","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserGroupDto"}}}}}},"security":[{"basicAuth":[]}]}},"/api/maintenance/redis":{"get":{"tags":["Maintenance"],"summary":"Get Redis Data Snapshot","description":"Get a snapshot of all data stored in Redis including rate limit buckets, alert cooldowns, and IP access rules. Useful for debugging and monitoring. Returns empty data if Redis is not enabled.","operationId":"getRedisSnapshot","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RedisDataSnapshotDto"}}}}},"security":[{"basicAuth":[]}]}},"/api/login-config/options":{"get":{"tags":["Login Configuration"],"summary":"Get login options","description":"Get available login options based on entity/user type configuration and user state. Pass either user_id or identifier to get personalized options including passkey availability.","operationId":"getLoginOptions","parameters":[{"name":"entity_type","in":"query","description":"Entity type","required":false,"schema":{"type":"string"}},{"name":"entity_id","in":"query","description":"Entity ID","required":false,"schema":{"type":"string"}},{"name":"user_type","in":"query","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"user_id","in":"query","description":"User ID (optional, for personalized options)","required":false,"schema":{"type":"string"}},{"name":"identifier","in":"query","description":"User identifier - email or phone (optional, used if user_id not provided)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginOptionsDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/login-config/entity/{entityType}/{entityId}":{"get":{"tags":["Login Configuration"],"summary":"Get all configurations for entity","description":"Get all login configurations for a specific entity","operationId":"getConfigurationsForEntity","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., COMPANY, HOTEL)","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LoginConfigurationDto"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/login-config/entity-type/{entityType}/user-type/{userType}":{"get":{"tags":["Login Configuration"],"summary":"Get all configurations for an entity type and user type","description":"Get every entity's login configuration for one entity type and user type. Entities with no configuration saved are absent from the result.","operationId":"getConfigurationsByUserType","parameters":[{"name":"entityType","in":"path","description":"Entity type (e.g., COMPANY, HOTEL)","required":true,"schema":{"type":"string"}},{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LoginConfigurationDto"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/ecommerce-users/find":{"get":{"tags":["Ecommerce Users"],"summary":"Find by Identifier","description":"Find an ecommerce user by a single identifier that matches either email or phone number","operationId":"findByIdentifier","parameters":[{"name":"identifier","in":"query","description":"Email or phone number","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EcommerceUserDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/ecommerce-users/by-phone":{"get":{"tags":["Ecommerce Users"],"summary":"Get by Phone","description":"Get an ecommerce user by phone number","operationId":"getByPhone","parameters":[{"name":"phone","in":"query","description":"Phone number in E.164 format","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EcommerceUserDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/ecommerce-users/by-email":{"get":{"tags":["Ecommerce Users"],"summary":"Get by Email","description":"Get an ecommerce user by email address","operationId":"getByEmail","parameters":[{"name":"email","in":"query","description":"Email address","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EcommerceUserDto"}}}}},"security":[{"bearerAuth":[]}]}},"/api/clients":{"get":{"tags":["Client Management"],"summary":"List Clients","description":"Get all registered API clients","operationId":"getAllClients","responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/clients/{clientId}":{"get":{"tags":["Client Management"],"summary":"Get Client","description":"Get client by client_id","operationId":"getClient","parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]},"delete":{"tags":["Client Management"],"summary":"Delete Client","description":"Delete an API client","operationId":"deleteClient","parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/clients/{clientId}/oauth-config":{"get":{"tags":["Client Management"],"summary":"Get OAuth Config","description":"Get full OAuth configuration for a client","operationId":"getOAuthConfig","parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/authorize/status":{"get":{"tags":["OAuth2 Authorization"],"summary":"Check OAuth Status","description":"Check if there's a pending OAuth authorization in session","operationId":"checkOAuthStatus","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}},"security":[]}},"/api/auth/recaptcha/config":{"get":{"tags":["Authentication"],"summary":"Get reCAPTCHA Config","description":"Returns reCAPTCHA enabled status and site key for frontend integration","operationId":"getRecaptchaConfig","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}},"security":[]}},"/api/auth/password/reset/validate":{"get":{"tags":["Authentication"],"summary":"Validate Reset Token","description":"Check if a reset token is valid and return password policy","operationId":"validateResetToken","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResetTokenValidationResult"}}}}},"security":[]}},"/api/auth/password/change/validate":{"get":{"tags":["Authentication"],"summary":"Validate Password Change Token","description":"Check if a password change token is valid and return password policy","operationId":"validatePasswordChangeToken","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResetTokenValidationResult"}}}}},"security":[]}},"/api/auth/oauth2/providers":{"get":{"tags":["Social Login"],"summary":"Get Social Login Providers","description":"List available OAuth2 providers with client IDs for web and native SDK integration","operationId":"getProviders","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string"}}}}}}},"security":[]}},"/api/admin/users/{userType}/search":{"get":{"tags":["User Administration"],"summary":"Search Users","description":"Search users by email, phone, or name within a user type","operationId":"searchUsers","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"query","in":"query","description":"Search query (email, phone, or name)","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/{userType}/by-role":{"get":{"tags":["User Administration"],"summary":"List Users by Role","description":"Get all users with a specific role","operationId":"getUsersByRole","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"role","in":"query","description":"Role name","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/{userType}/by-phone":{"get":{"tags":["User Administration"],"summary":"Get User by Phone","description":"Get a user by phone number within a user type","operationId":"getUserByPhone","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"phone","in":"query","description":"Phone number","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/{userType}/by-email":{"get":{"tags":["User Administration"],"summary":"Get User by Email","description":"Get a user by email address within a user type","operationId":"getUserByEmail","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"email","in":"query","description":"Email address","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/ip-rules/check":{"get":{"tags":["User Administration"],"summary":"Check IP Status","description":"Check if an IP address is whitelisted, blacklisted, or neither.","operationId":"checkIpStatus","parameters":[{"name":"ipAddress","in":"query","description":"IP address to check","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/ip-rules/cache-stats":{"get":{"tags":["User Administration"],"summary":"Get IP Rules Cache Stats","description":"Get statistics about the in-memory IP rules cache.","operationId":"getIpRulesCacheStats","responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/api/admin/users/ip-rules/by-ip":{"get":{"tags":["User Administration"],"summary":"Get IP Rule by IP Address","description":"Get a specific IP access rule by IP address.","operationId":"getIpRuleByIpAddress","parameters":[{"name":"ipAddress","in":"query","description":"IP address to look up","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]},"delete":{"tags":["User Administration"],"summary":"Delete IP Rule by IP Address","description":"Delete an IP access rule by IP address.","operationId":"deleteIpRuleByIpAddress","parameters":[{"name":"ipAddress","in":"query","description":"IP address","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}},"/.well-known/openid-configuration":{"get":{"tags":["Discovery"],"summary":"OpenID Configuration","description":"OpenID Connect Discovery document","operationId":"openidConfiguration","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}},"security":[]}},"/.well-known/jwks.json":{"get":{"tags":["Discovery"],"summary":"JWKS","description":"JSON Web Key Set containing the public key for token verification","operationId":"jwks","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}},"security":[]}},"/.well-known/assetlinks.json":{"get":{"tags":["Discovery"],"summary":"Android Asset Links","description":"Authorises native Android apps to use passkeys for this domain","operationId":"assetLinks","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":{}}}}}}},"security":[]}},"/.well-known/apple-app-site-association":{"get":{"tags":["Discovery"],"summary":"Apple App Site Association","description":"Authorises native iOS apps to use passkeys for this domain","operationId":"appleAppSiteAssociation","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}}},"security":[]}},"/api/admin/users/{userType}/{id}/roles/{role}":{"delete":{"tags":["User Administration"],"summary":"Remove Role","description":"Remove a specific role from a user.","operationId":"removeRole","parameters":[{"name":"userType","in":"path","description":"User type","required":true,"schema":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},{"name":"id","in":"path","description":"User ID","required":true,"schema":{"type":"string"}},{"name":"role","in":"path","description":"Role name to remove","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorized - Invalid or missing Basic Auth credentials","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden - Access denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"basicAuth":[]}]}}},"components":{"schemas":{"UserGroupsRequest":{"type":"object","properties":{"user_group_ids":{"type":"array","items":{"type":"string"},"minItems":1}},"required":["user_group_ids"]},"UserDto":{"type":"object","properties":{"email":{"type":"string"},"blocked":{"type":"boolean"},"roles":{"type":"array","items":{"type":"string"},"uniqueItems":true},"user_id":{"type":"string"},"email_verified":{"type":"boolean"},"given_name":{"type":"string"},"family_name":{"type":"string"},"phone_number":{"type":"string"},"phone_verified":{"type":"boolean"},"user_type":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]},"role_assignments":{"type":"array","items":{"$ref":"#/components/schemas/UserRoleAssignmentDto"},"uniqueItems":true},"effective_roles":{"type":"array","items":{"type":"string"},"uniqueItems":true},"user_group_ids":{"type":"array","items":{"type":"string"},"uniqueItems":true},"app_metadata":{"type":"object","additionalProperties":{"type":"string"}},"connection":{"type":"string"},"last_login":{"type":"string","format":"date-time"},"last_ip_address":{"type":"string"},"logins_count":{"type":"integer","format":"int64"},"password_changed_at":{"type":"string","format":"date-time"},"force_password_change":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"UserRoleAssignmentDto":{"type":"object","description":"A role assignment with optional time bounds","properties":{"role":{"type":"string","description":"The role name","example":"MANAGER"},"start_date":{"type":"string","format":"date-time","description":"When the role becomes active","example":"2024-01-15T00:00:00.000Z"},"end_date":{"type":"string","format":"date-time","description":"When the role expires","example":"2024-12-31T23:59:59.999Z"},"is_active":{"type":"boolean","description":"Whether the role is currently active based on time bounds","example":true},"is_permanent":{"type":"boolean","description":"Whether this is a permanent role (no time bounds)","example":false}}},"CreatePasswordPolicyRequest":{"type":"object","properties":{"min_length":{"type":"integer","format":"int64"},"max_length":{"type":"integer","format":"int64"},"require_lowercase":{"type":"boolean"},"require_uppercase":{"type":"boolean"},"require_numeric":{"type":"boolean"},"require_symbols":{"type":"boolean"},"password_history_count":{"type":"integer","format":"int64","maximum":24,"minimum":0},"password_expiration_days":{"type":"integer","format":"int64","maximum":365,"minimum":0}},"required":["max_length","min_length","password_expiration_days","password_history_count","require_lowercase","require_numeric","require_symbols","require_uppercase"]},"PasswordPolicyDto":{"type":"object","properties":{"id":{"type":"string"},"user_type":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]},"entity_type":{"type":"string"},"entity_id":{"type":"string"},"min_length":{"type":"integer","format":"int64"},"max_length":{"type":"integer","format":"int64"},"require_lowercase":{"type":"boolean"},"require_uppercase":{"type":"boolean"},"require_numeric":{"type":"boolean"},"require_symbols":{"type":"boolean"},"password_history_count":{"type":"integer","format":"int64"},"password_expiration_days":{"type":"integer","format":"int64"},"is_default":{"type":"boolean"}}},"FrameAncestorDto":{"type":"object","properties":{"origins":{"type":"array","items":{"type":"string"},"uniqueItems":true},"property_origins":{"type":"array","items":{"type":"string"},"uniqueItems":true}}},"LoginConfigurationRequest":{"type":"object","description":"Request to create or update login configuration","properties":{"enabled":{"type":"boolean","default":true,"description":"Whether this configuration is enabled","example":true},"allowed_first_factors":{"type":"array","default":"[\"PASSWORD\", \"EMAIL_OTP\", \"PHONE_OTP\", \"PASSKEY\"]","description":"Allowed first factor authentication methods","example":["PASSWORD","EMAIL_OTP","PHONE_OTP","PASSKEY"],"items":{"type":"string","enum":["PASSWORD","EMAIL_OTP","PHONE_OTP","PASSKEY","GOOGLE_OAUTH2","APPLE","MICROSOFT_OAUTH2"]},"uniqueItems":true},"allowed_mfa_methods":{"type":"array","default":"[\"EMAIL_OTP\", \"PHONE_OTP\", \"PASSKEY\"]","description":"Allowed MFA methods (available if MFA is triggered)","example":["EMAIL_OTP","PHONE_OTP","PASSKEY"],"items":{"type":"string","enum":["PASSWORD","EMAIL_OTP","PHONE_OTP","PASSKEY","GOOGLE_OAUTH2","APPLE","MICROSOFT_OAUTH2"]},"uniqueItems":true},"mfa_required":{"type":"boolean","default":false,"description":"Whether MFA is required after first factor authentication","example":false},"session_timeout_enabled":{"type":"boolean","default":false,"description":"Whether automatic session timeout is enforced","example":false},"idle_timeout_minutes":{"type":"integer","format":"int64","description":"Idle timeout in minutes - session expires after inactivity","example":15},"absolute_timeout_minutes":{"type":"integer","format":"int64","description":"Absolute timeout in minutes - session expires regardless of activity","example":720},"lockout_threshold":{"type":"integer","format":"int32","description":"Number of failed login attempts before account lockout","example":5},"lockout_duration_minutes":{"type":"integer","format":"int64","description":"Duration in minutes the account stays locked","example":30},"observation_window_minutes":{"type":"integer","format":"int64","description":"Observation window in minutes for counting failed attempts","example":15},"site_admin_emails":{"type":"array","description":"Site admin email addresses for security notifications","example":["admin@example.com","security@example.com"],"items":{"type":"string"},"uniqueItems":true}}},"LoginConfigurationDto":{"type":"object","description":"Login configuration response","properties":{"id":{"type":"string","description":"Configuration ID","example":"550e8400-e29b-41d4-a716-446655440000"},"enabled":{"type":"boolean","description":"Whether configuration is enabled","example":true},"entity_type":{"type":"string","description":"Entity type (null for global default)","example":"COMPANY"},"entity_id":{"type":"string","description":"Entity ID (null for global default)","example":"demo"},"user_type":{"type":"string","description":"User type","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"],"example":"BACKOFFICE"},"allowed_first_factors":{"type":"array","description":"Allowed first factor authentication methods","example":["PASSWORD","EMAIL_OTP","PHONE_OTP","PASSKEY"],"items":{"type":"string","enum":["PASSWORD","EMAIL_OTP","PHONE_OTP","PASSKEY","GOOGLE_OAUTH2","APPLE","MICROSOFT_OAUTH2"]},"uniqueItems":true},"allowed_mfa_methods":{"type":"array","description":"Allowed MFA methods","example":["EMAIL_OTP","PHONE_OTP","PASSKEY"],"items":{"type":"string","enum":["PASSWORD","EMAIL_OTP","PHONE_OTP","PASSKEY","GOOGLE_OAUTH2","APPLE","MICROSOFT_OAUTH2"]},"uniqueItems":true},"mfa_required":{"type":"boolean","description":"Whether MFA is required","example":false},"session_timeout_enabled":{"type":"boolean","description":"Whether automatic session timeout is enforced","example":false},"idle_timeout_minutes":{"type":"integer","format":"int64","description":"Idle timeout in minutes","example":15},"absolute_timeout_minutes":{"type":"integer","format":"int64","description":"Absolute timeout in minutes","example":720},"lockout_threshold":{"type":"integer","format":"int32","description":"Number of failed login attempts before lockout","example":5},"lockout_duration_minutes":{"type":"integer","format":"int64","description":"Duration in minutes the account stays locked","example":30},"observation_window_minutes":{"type":"integer","format":"int64","description":"Observation window in minutes for counting failed attempts","example":15},"site_admin_emails":{"type":"array","description":"Site admin email addresses for security notifications","example":["admin@example.com","security@example.com"],"items":{"type":"string"},"uniqueItems":true},"created_at":{"type":"string","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","description":"Last update timestamp","example":"2024-01-15T10:30:00Z"}}},"CreateEcommerceUserRequest":{"type":"object","properties":{"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"phoneNumber":{"type":"string"},"emailVerified":{"type":"boolean"},"phoneVerified":{"type":"boolean"}}},"EcommerceUserDto":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"phoneNumber":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"UpdateUserRequest":{"type":"object","properties":{"email":{"type":"string"},"blocked":{"type":"boolean"},"roles":{"type":"array","items":{"type":"string"},"uniqueItems":true},"first_name":{"type":"string"},"last_name":{"type":"string"},"phone_number":{"type":"string"},"email_verified":{"type":"boolean"},"phone_verified":{"type":"boolean"},"app_metadata":{"type":"object","additionalProperties":{"type":"string"}},"user_group_ids":{"type":"array","items":{"type":"string"},"uniqueItems":true},"force_password_change":{"type":"boolean"}}},"ApiError":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"status":{"type":"integer","format":"int32"},"error":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"details":{"type":"array","items":{"type":"string"}},"fieldErrors":{"type":"object","additionalProperties":{"type":"string"}},"lockedUntil":{"type":"string"},"remainingAttempts":{"type":"integer","format":"int32"}}},"AuthResponse":{"type":"object","properties":{"access_token":{"type":"string"},"refresh_token":{"type":"string"},"token_type":{"type":"string"},"expires_in":{"type":"integer","format":"int64"},"scope":{"type":"string"},"id_token":{"type":"string"},"mfa_required":{"type":"boolean"},"mfa_token":{"type":"string"},"available_mfa_methods":{"type":"array","items":{"type":"string","enum":["PHONE_OTP","EMAIL_OTP","PASSKEY"]},"uniqueItems":true},"identifier":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"name":{"type":"string"},"password_change_required":{"type":"boolean"},"password_change_reason":{"type":"string"},"password_change_token":{"type":"string"},"mfa_setup_required":{"type":"boolean"},"mfa_setup_options":{"type":"array","items":{"type":"string"},"uniqueItems":true},"setup_token":{"type":"string"}}},"CreateUserGroupRequest":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","maxLength":100,"minLength":0},"description":{"type":"string","maxLength":500,"minLength":0},"roles":{"type":"array","items":{"type":"string"},"uniqueItems":true},"entity_type":{"type":"string"},"entity_id":{"type":"string"},"is_sso_group":{"type":"boolean"}},"required":["name"]},"UserGroupDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"roles":{"type":"array","items":{"type":"string"},"uniqueItems":true},"entity_type":{"type":"string"},"entity_id":{"type":"string"},"is_sso_group":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"RolesRequest":{"type":"object","properties":{"roles":{"type":"array","items":{"type":"string"},"minItems":1}},"required":["roles"]},"CreateUserRequest":{"type":"object","properties":{"email":{"type":"string"},"password":{"type":"string","minLength":1},"roles":{"type":"array","items":{"type":"string"},"uniqueItems":true},"connection":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"phone_number":{"type":"string"},"app_metadata":{"type":"object","additionalProperties":{"type":"string"}},"email_verified":{"type":"boolean"},"phone_verified":{"type":"boolean"},"user_group_ids":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"required":["password"]},"AddUserRoleRequest":{"type":"object","description":"Request to add a role to a user with optional time bounds","properties":{"role":{"type":"string","description":"The role name to assign","example":"MANAGER","minLength":1},"start_date":{"type":"string","format":"date-time","description":"When the role becomes active (ISO 8601 format). If null, role is active immediately.","example":"2024-01-15T00:00:00.000Z"},"end_date":{"type":"string","format":"date-time","description":"When the role expires (ISO 8601 format). If null, role never expires.","example":"2024-12-31T23:59:59.999Z"}},"required":["role"]},"OtpResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"identifier":{"type":"string"},"type":{"type":"string"},"expires_in":{"type":"integer","format":"int64"},"retry_after":{"type":"integer","format":"int64"},"remaining_attempts":{"type":"integer","format":"int64"},"is_new_user":{"type":"boolean"},"verification_token":{"type":"string"}}},"ThemeDto":{"type":"object","properties":{"logo":{"type":"string"},"favicon":{"type":"string"},"font":{"type":"string"},"domain":{"type":"string"},"entity_type":{"type":"string"},"entity_id":{"type":"string"},"company_name":{"type":"string"},"company_tag_line":{"type":"string"},"logo_white":{"type":"string"},"color_primary":{"type":"string"},"color_primary_dark":{"type":"string"},"color_primary_light":{"type":"string"},"color_accent":{"type":"string"},"color_font":{"type":"string"},"background_image_url":{"type":"string"}}},"CreateServiceAccountRequest":{"type":"object","properties":{"email":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"name":{"type":"string"},"description":{"type":"string"},"roles":{"type":"array","items":{"type":"string"},"uniqueItems":true},"service_name":{"type":"string"},"alert_emails":{"type":"array","items":{"type":"string"},"uniqueItems":true},"alerts_enabled":{"type":"boolean"},"user_group_ids":{"type":"array","items":{"type":"string"},"uniqueItems":true},"app_metadata":{"type":"object","additionalProperties":{"type":"string"}}},"required":["email","password"]},"ServiceAccountDto":{"type":"object","properties":{"email":{"type":"string"},"description":{"type":"string"},"active":{"type":"boolean"},"status":{"type":"string"},"roles":{"type":"array","items":{"type":"string"},"uniqueItems":true},"id":{"type":"string"},"name":{"type":"string"},"user_type":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]},"service_name":{"type":"string"},"effective_roles":{"type":"array","items":{"type":"string"},"uniqueItems":true},"user_group_ids":{"type":"array","items":{"type":"string"},"uniqueItems":true},"password_changed_at":{"type":"string","format":"date-time"},"alerts_enabled":{"type":"boolean"},"alert_emails":{"type":"array","items":{"type":"string"},"uniqueItems":true},"failed_auth_count":{"type":"integer","format":"int64"},"last_login":{"type":"string","format":"date-time"},"last_ip_address":{"type":"string"},"logins_count":{"type":"integer","format":"int64"},"app_metadata":{"type":"object","additionalProperties":{"type":"string"}},"connection":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"generated_password":{"type":"string"}}},"PasswordValidationResult":{"type":"object","properties":{"valid":{"type":"boolean"},"errors":{"type":"array","items":{"type":"string"}},"policy_used":{"$ref":"#/components/schemas/PasswordPolicyDto"}}},"AuthenticatorAttestationResponse":{"type":"object","properties":{"transports":{"type":"array","items":{"type":"string"}},"clientDataJSON":{"type":"string"},"attestationObject":{"type":"string"},"publicKeyAlgorithm":{"type":"integer","format":"int64"},"publicKey":{"type":"string"},"authenticatorData":{"type":"string"}}},"ClientExtensionResults":{"type":"object","properties":{"credProps":{"$ref":"#/components/schemas/CredentialProperties"}}},"CredentialProperties":{"type":"object","properties":{"rk":{"type":"boolean"}}},"PasskeyRegistrationRequest":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string"},"response":{"$ref":"#/components/schemas/AuthenticatorAttestationResponse"},"rawId":{"type":"string"},"authenticatorAttachment":{"type":"string"},"clientExtensionResults":{"$ref":"#/components/schemas/ClientExtensionResults"},"passkey_name":{"type":"string"}},"required":["id"]},"PasskeyDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"aaguid":{"type":"string"},"discoverable":{"type":"boolean"},"transports":{"type":"array","items":{"type":"string"}},"authenticator_attachment":{"type":"string"},"backed_up":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"last_used_at":{"type":"string","format":"date-time"}}},"PasskeySelfRegistrationOptionsRequest":{"type":"object","description":"Begin passkey enrolment. The account is resolved by the server from the caller's credential, never from the body.","properties":{"passkey_name":{"type":"string","description":"Friendly name for this passkey","example":"My iPhone"},"require_resident_key":{"type":"boolean","default":true,"description":"Request a discoverable credential; required for iOS passkeys"},"authenticator_attachment":{"type":"string","description":"platform | cross-platform | null for any"},"user_verification":{"type":"string","default":"preferred","description":"required | preferred | discouraged"}}},"AuthenticatorSelection":{"type":"object","properties":{"authenticatorAttachment":{"type":"string"},"residentKey":{"type":"string"},"requireResidentKey":{"type":"boolean"},"userVerification":{"type":"string"}}},"CredentialDescriptor":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string"},"transports":{"type":"array","items":{"type":"string"}}}},"PasskeyRegistrationOptionsResponse":{"type":"object","properties":{"challenge":{"type":"string"},"rp":{"$ref":"#/components/schemas/RelyingParty"},"user":{"$ref":"#/components/schemas/UserEntity"},"timeout":{"type":"integer","format":"int64"},"attestation":{"type":"string"},"pubKeyCredParams":{"type":"array","items":{"$ref":"#/components/schemas/PubKeyCredParam"}},"authenticatorSelection":{"$ref":"#/components/schemas/AuthenticatorSelection"},"excludeCredentials":{"type":"array","items":{"$ref":"#/components/schemas/CredentialDescriptor"}}}},"PubKeyCredParam":{"type":"object","properties":{"type":{"type":"string"},"alg":{"type":"integer","format":"int64"}}},"RelyingParty":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"UserEntity":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"displayName":{"type":"string"}}},"AuthenticatorAssertionResponse":{"type":"object","properties":{"signature":{"type":"string"},"clientDataJSON":{"type":"string"},"authenticatorData":{"type":"string"},"userHandle":{"type":"string"}}},"PasskeyAuthenticationRequest":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string"},"response":{"$ref":"#/components/schemas/AuthenticatorAssertionResponse"},"rawId":{"type":"string"},"clientExtensionResults":{}},"required":["id"]},"PasskeyAuthenticationOptionsRequest":{"type":"object","properties":{"identifier":{"type":"string"},"user_verification":{"type":"string"}}},"PasskeyAuthenticationOptionsResponse":{"type":"object","properties":{"challenge":{"type":"string"},"timeout":{"type":"integer","format":"int64"},"rpId":{"type":"string"},"userVerification":{"type":"string"},"allowCredentials":{"type":"array","items":{"$ref":"#/components/schemas/CredentialDescriptor"}}}},"OtpVerifyRequest":{"type":"object","properties":{"identifier":{"type":"string","minLength":1},"code":{"type":"string","maxLength":8,"minLength":4},"type":{"type":"string","minLength":1},"purpose":{"type":"string"}},"required":["code","identifier","type"]},"OtpSendRequest":{"type":"object","properties":{"identifier":{"type":"string","minLength":1},"type":{"type":"string","minLength":1},"purpose":{"type":"string"},"first_name":{"type":"string"}},"required":["identifier","type"]},"MfaVerifyRequest":{"type":"object","properties":{"method":{"type":"string","enum":["PHONE_OTP","EMAIL_OTP","PASSKEY"]},"code":{"type":"string"},"mfa_token":{"type":"string","minLength":1},"authenticator_assertion":{"type":"string"}},"required":["method","mfa_token"]},"MfaSendOtpRequest":{"type":"object","properties":{"method":{"type":"string","enum":["PHONE_OTP","EMAIL_OTP","PASSKEY"]},"mfa_token":{"type":"string","minLength":1}},"required":["method","mfa_token"]},"AllowedCredential":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string"},"transports":{"type":"array","items":{"type":"string"}}}},"MfaPasskeyOptionsResponse":{"type":"object","properties":{"challenge":{"type":"string"},"timeout":{"type":"integer","format":"int64"},"mfa_token":{"type":"string"},"rp_id":{"type":"string"},"user_verification":{"type":"string"},"allow_credentials":{"type":"array","items":{"$ref":"#/components/schemas/AllowedCredential"}}}},"CleanupResultDto":{"type":"object","properties":{"refresh_tokens_deleted":{"type":"integer","format":"int32"},"otp_tokens_deleted":{"type":"integer","format":"int32"},"passkey_challenges_deleted":{"type":"integer","format":"int32"},"mfa_challenges_deleted":{"type":"integer","format":"int32"},"used_mfa_challenges_deleted":{"type":"integer","format":"int32"},"expired_authorization_codes_deleted":{"type":"integer","format":"int32"},"used_authorization_codes_deleted":{"type":"integer","format":"int32"},"expired_roles_deleted":{"type":"integer","format":"int32"},"expired_ip_access_rules_deleted":{"type":"integer","format":"int32"},"total_deleted":{"type":"integer","format":"int32"}}},"BulkImportResultDto":{"type":"object","properties":{"created":{"type":"integer","format":"int32"},"updated":{"type":"integer","format":"int32"},"failed":{"type":"integer","format":"int32"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/ImportError"}},"total_processed":{"type":"integer","format":"int32"}}},"ImportError":{"type":"object","properties":{"index":{"type":"integer","format":"int32"},"name":{"type":"string"},"error":{"type":"string"}}},"GenerateTokenRequest":{"type":"object","properties":{"valid_until":{"type":"integer","format":"int64"}}},"CreatePublicClientRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"redirectUris":{"type":"array","items":{"type":"string"},"uniqueItems":true},"allowedOrigins":{"type":"array","items":{"type":"string"},"uniqueItems":true},"scopes":{"type":"array","items":{"type":"string"},"uniqueItems":true},"defaultUserType":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},"required":["name"]},"CreateConfidentialClientRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"redirectUris":{"type":"array","items":{"type":"string"},"uniqueItems":true},"allowedOrigins":{"type":"array","items":{"type":"string"},"uniqueItems":true},"scopes":{"type":"array","items":{"type":"string"},"uniqueItems":true},"grantTypes":{"type":"array","items":{"type":"string"},"uniqueItems":true},"requirePkce":{"type":"boolean"},"defaultUserType":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]}},"required":["name"]},"AuthorizeCompleteRequest":{"type":"object","description":"Request to complete OAuth authorization","properties":{"user_id":{"type":"string","deprecated":true,"description":"Ignored. The user is taken from access_token"},"user_type":{"type":"string","deprecated":true,"description":"Ignored. The user is taken from access_token"},"access_token":{"type":"string","description":"Access token from a screen sign-in made moments ago; required"},"client_id":{"type":"string","description":"OAuth client ID (for session-free ecommerce flow)"},"redirect_uri":{"type":"string","description":"OAuth redirect URI (for session-free ecommerce flow)"},"code_challenge":{"type":"string","description":"PKCE code challenge (for session-free ecommerce flow)"},"code_challenge_method":{"type":"string","description":"PKCE code challenge method (for session-free ecommerce flow)"},"scope":{"type":"string","description":"OAuth scope (for session-free ecommerce flow)"},"state":{"type":"string","description":"OAuth state param (for session-free ecommerce flow)"},"nonce":{"type":"string","description":"OpenID Connect nonce (for session-free ecommerce flow)"},"embedded":{"type":"boolean","description":"True when completing inside a cross-site iframe; suppresses pb_device_id device tracking, which cannot work with a SameSite=Lax cookie"},"remember":{"type":"boolean","description":"True to set a 15-minute pb_remember cookie (back-office sign-ins identified by access_token only; ignored when embedded or for other user types)"}}},"EcommerceRegisterRequest":{"type":"object","properties":{"email":{"type":"string"},"password":{"type":"string","minLength":1},"first_name":{"type":"string"},"last_name":{"type":"string"},"phone_number":{"type":"string"},"email_verification_token":{"type":"string"},"phone_verification_token":{"type":"string"}},"required":["password"]},"AuthorizationCodeResponse":{"type":"object","properties":{"authorization_code":{"type":"string"},"state":{"type":"string"},"setup_token":{"type":"string"}}},"PasswordResetRequest":{"type":"object","properties":{"email":{"type":"string"},"phone_number":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"},"delivery_method":{"type":"string"}}},"PasswordResetInitiationResult":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"error_code":{"type":"string"}}},"AuthRequest":{"type":"object","properties":{"identifier":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"mfa_required":{"type":"boolean"},"allowed_mfa_methods":{"type":"array","items":{"type":"string","enum":["PHONE_OTP","EMAIL_OTP","PASSKEY"]},"uniqueItems":true}},"required":["identifier","password"]},"ChangePasswordWithIdentifierRequest":{"type":"object","properties":{"identifier":{"type":"string","minLength":1},"old_password":{"type":"string","minLength":1},"new_password":{"type":"string","maxLength":2147483647,"minLength":8}},"required":["identifier","new_password","old_password"]},"TokenRefreshRequest":{"type":"object","properties":{"refresh_token":{"type":"string","minLength":1}},"required":["refresh_token"]},"ResetPasswordRequest":{"type":"object","properties":{"token":{"type":"string","minLength":1},"new_password":{"type":"string","maxLength":2147483647,"minLength":8}},"required":["new_password","token"]},"ChangePasswordWithTokenRequest":{"type":"object","properties":{"token":{"type":"string","minLength":1},"new_password":{"type":"string","minLength":1}},"required":["new_password","token"]},"IdTokenLoginRequest":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"id_token":{"type":"string"},"access_token":{"type":"string"},"user_type":{"type":"string","enum":["ECOMMERCE","BACKOFFICE","HOTEL","SERVICE_ACCOUNT","FIELDSERVICE","WAYPOINT","ENFORCEMENT","PORTFOLIO","POS"]},"entity_type":{"type":"string"},"entity_id":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"create_if_not_exists":{"type":"boolean"}},"required":["provider","user_type"]},"AdminPasswordResetRequest":{"type":"object","properties":{"new_password":{"type":"string","minLength":1},"clear_history":{"type":"boolean"},"domain":{"type":"string"}},"required":["new_password"]},"CreateIpAccessRuleRequest":{"type":"object","properties":{"ipAddress":{"type":"string","minLength":1,"pattern":"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(/([0-9]|[1-2][0-9]|3[0-2]))?$|^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}(/([0-9]|[1-9][0-9]|1[0-2][0-8]))?$|^::$|^::1$"},"ruleType":{"type":"string","enum":["WHITELIST","BLACKLIST"]},"description":{"type":"string"},"enabled":{"type":"boolean"},"expiresAt":{"type":"string","format":"date-time"}},"required":["ipAddress","ruleType"]},"UpdateUserGroupRequest":{"type":"object","properties":{"name":{"type":"string","maxLength":100,"minLength":0},"description":{"type":"string","maxLength":500,"minLength":0},"roles":{"type":"array","items":{"type":"string"},"uniqueItems":true},"is_sso_group":{"type":"boolean"}}},"UpdateEcommerceUserRequest":{"type":"object","properties":{"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"phoneNumber":{"type":"string"},"emailVerified":{"type":"boolean"},"phoneVerified":{"type":"boolean"}}},"ScopesRequest":{"type":"object","properties":{"scopes":{"type":"array","items":{"type":"string"},"uniqueItems":true}}},"RedirectUrisRequest":{"type":"object","properties":{"redirectUris":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"required":["redirectUris"]},"GrantTypesRequest":{"type":"object","properties":{"grantTypes":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"required":["grantTypes"]},"AllowedOriginsRequest":{"type":"object","properties":{"allowedOrigins":{"type":"array","items":{"type":"string"},"uniqueItems":true}}},"UpdateIpAccessRuleRequest":{"type":"object","properties":{"description":{"type":"string"},"enabled":{"type":"boolean"},"expiresAt":{"type":"string","format":"date-time"}}},"ApplicationContext":{"type":"object","properties":{"parent":{"$ref":"#/components/schemas/ApplicationContext"},"id":{"type":"string"},"displayName":{"type":"string"},"startupDate":{"type":"integer","format":"int64"},"applicationName":{"type":"string"},"autowireCapableBeanFactory":{"$ref":"#/components/schemas/AutowireCapableBeanFactory"},"environment":{"$ref":"#/components/schemas/Environment"},"beanDefinitionCount":{"type":"integer","format":"int32"},"beanDefinitionNames":{"type":"array","items":{"type":"string"}},"parentBeanFactory":{"$ref":"#/components/schemas/BeanFactory"},"classLoader":{"type":"object","properties":{"name":{"type":"string"},"registeredAsParallelCapable":{"type":"boolean"},"parent":{"type":"object","properties":{"name":{"type":"string"},"registeredAsParallelCapable":{"type":"boolean"},"unnamedModule":{"type":"object","properties":{"name":{"type":"string"},"classLoader":{"type":"object","properties":{"name":{"type":"string"},"registeredAsParallelCapable":{"type":"boolean"},"definedPackages":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"sealed":{"type":"boolean"},"annotations":{"type":"array","items":{}},"declaredAnnotations":{"type":"array","items":{}},"specificationTitle":{"type":"string"},"specificationVersion":{"type":"string"},"specificationVendor":{"type":"string"},"implementationTitle":{"type":"string"},"implementationVersion":{"type":"string"},"implementationVendor":{"type":"string"}}}},"defaultAssertionStatus":{"type":"boolean","writeOnly":true}}},"descriptor":{"type":"object","properties":{"open":{"type":"boolean"},"automatic":{"type":"boolean"}}},"named":{"type":"boolean"},"annotations":{"type":"array","items":{}},"declaredAnnotations":{"type":"array","items":{}},"packages":{"type":"array","items":{"type":"string"},"uniqueItems":true},"nativeAccessEnabled":{"type":"boolean"},"layer":{}}},"definedPackages":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"sealed":{"type":"boolean"},"annotations":{"type":"array","items":{}},"declaredAnnotations":{"type":"array","items":{}},"specificationTitle":{"type":"string"},"specificationVersion":{"type":"string"},"specificationVendor":{"type":"string"},"implementationTitle":{"type":"string"},"implementationVersion":{"type":"string"},"implementationVendor":{"type":"string"}}}},"defaultAssertionStatus":{"type":"boolean","writeOnly":true}}},"unnamedModule":{"type":"object","properties":{"name":{"type":"string"},"classLoader":{"type":"object","properties":{"name":{"type":"string"},"registeredAsParallelCapable":{"type":"boolean"},"definedPackages":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"sealed":{"type":"boolean"},"annotations":{"type":"array","items":{}},"declaredAnnotations":{"type":"array","items":{}},"specificationTitle":{"type":"string"},"specificationVersion":{"type":"string"},"specificationVendor":{"type":"string"},"implementationTitle":{"type":"string"},"implementationVersion":{"type":"string"},"implementationVendor":{"type":"string"}}}},"defaultAssertionStatus":{"type":"boolean","writeOnly":true}}},"descriptor":{"type":"object","properties":{"open":{"type":"boolean"},"automatic":{"type":"boolean"}}},"named":{"type":"boolean"},"annotations":{"type":"array","items":{}},"declaredAnnotations":{"type":"array","items":{}},"packages":{"type":"array","items":{"type":"string"},"uniqueItems":true},"nativeAccessEnabled":{"type":"boolean"},"layer":{}}},"definedPackages":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"sealed":{"type":"boolean"},"annotations":{"type":"array","items":{}},"declaredAnnotations":{"type":"array","items":{}},"specificationTitle":{"type":"string"},"specificationVersion":{"type":"string"},"specificationVendor":{"type":"string"},"implementationTitle":{"type":"string"},"implementationVersion":{"type":"string"},"implementationVendor":{"type":"string"}}}},"defaultAssertionStatus":{"type":"boolean","writeOnly":true}}}}},"AutowireCapableBeanFactory":{},"BeanFactory":{},"DefaultHttpStatusCode":{"allOf":[{"$ref":"#/components/schemas/HttpStatusCode"}]},"Environment":{"type":"object","properties":{"activeProfiles":{"type":"array","items":{"type":"string"}},"defaultProfiles":{"type":"array","items":{"type":"string"}}}},"FilterRegistration":{"type":"object","properties":{"servletNameMappings":{"type":"array","items":{"type":"string"}},"urlPatternMappings":{"type":"array","items":{"type":"string"}},"name":{"type":"string"},"className":{"type":"string"},"initParameters":{"type":"object","additionalProperties":{"type":"string"}}}},"HttpStatus":{"allOf":[{"$ref":"#/components/schemas/HttpStatusCode"}],"enum":["100 CONTINUE","101 SWITCHING_PROTOCOLS","102 PROCESSING","103 EARLY_HINTS","103 CHECKPOINT","200 OK","201 CREATED","202 ACCEPTED","203 NON_AUTHORITATIVE_INFORMATION","204 NO_CONTENT","205 RESET_CONTENT","206 PARTIAL_CONTENT","207 MULTI_STATUS","208 ALREADY_REPORTED","226 IM_USED","300 MULTIPLE_CHOICES","301 MOVED_PERMANENTLY","302 FOUND","302 MOVED_TEMPORARILY","303 SEE_OTHER","304 NOT_MODIFIED","305 USE_PROXY","307 TEMPORARY_REDIRECT","308 PERMANENT_REDIRECT","400 BAD_REQUEST","401 UNAUTHORIZED","402 PAYMENT_REQUIRED","403 FORBIDDEN","404 NOT_FOUND","405 METHOD_NOT_ALLOWED","406 NOT_ACCEPTABLE","407 PROXY_AUTHENTICATION_REQUIRED","408 REQUEST_TIMEOUT","409 CONFLICT","410 GONE","411 LENGTH_REQUIRED","412 PRECONDITION_FAILED","413 PAYLOAD_TOO_LARGE","413 REQUEST_ENTITY_TOO_LARGE","414 URI_TOO_LONG","414 REQUEST_URI_TOO_LONG","415 UNSUPPORTED_MEDIA_TYPE","416 REQUESTED_RANGE_NOT_SATISFIABLE","417 EXPECTATION_FAILED","418 I_AM_A_TEAPOT","419 INSUFFICIENT_SPACE_ON_RESOURCE","420 METHOD_FAILURE","421 DESTINATION_LOCKED","422 UNPROCESSABLE_ENTITY","423 LOCKED","424 FAILED_DEPENDENCY","425 TOO_EARLY","426 UPGRADE_REQUIRED","428 PRECONDITION_REQUIRED","429 TOO_MANY_REQUESTS","431 REQUEST_HEADER_FIELDS_TOO_LARGE","451 UNAVAILABLE_FOR_LEGAL_REASONS","500 INTERNAL_SERVER_ERROR","501 NOT_IMPLEMENTED","502 BAD_GATEWAY","503 SERVICE_UNAVAILABLE","504 GATEWAY_TIMEOUT","505 HTTP_VERSION_NOT_SUPPORTED","506 VARIANT_ALSO_NEGOTIATES","507 INSUFFICIENT_STORAGE","508 LOOP_DETECTED","509 BANDWIDTH_LIMIT_EXCEEDED","510 NOT_EXTENDED","511 NETWORK_AUTHENTICATION_REQUIRED"]},"HttpStatusCode":{"type":"object","properties":{"error":{"type":"boolean"},"is4xxClientError":{"type":"boolean"},"is5xxServerError":{"type":"boolean"},"is1xxInformational":{"type":"boolean"},"is2xxSuccessful":{"type":"boolean"},"is3xxRedirection":{"type":"boolean"}}},"JspConfigDescriptor":{"type":"object","properties":{"jspPropertyGroups":{"type":"array","items":{"$ref":"#/components/schemas/JspPropertyGroupDescriptor"}},"taglibs":{"type":"array","items":{"$ref":"#/components/schemas/TaglibDescriptor"}}}},"JspPropertyGroupDescriptor":{"type":"object","properties":{"buffer":{"type":"string"},"deferredSyntaxAllowedAsLiteral":{"type":"string"},"errorOnELNotFound":{"type":"string"},"pageEncoding":{"type":"string"},"isXml":{"type":"string"},"scriptingInvalid":{"type":"string"},"includePreludes":{"type":"array","items":{"type":"string"}},"includeCodas":{"type":"array","items":{"type":"string"}},"trimDirectiveWhitespaces":{"type":"string"},"errorOnUndeclaredNamespace":{"type":"string"},"elIgnored":{"type":"string"},"urlPatterns":{"type":"array","items":{"type":"string"}},"defaultContentType":{"type":"string"}}},"RedirectView":{"type":"object","properties":{"applicationContext":{"$ref":"#/components/schemas/ApplicationContext"},"servletContext":{"$ref":"#/components/schemas/ServletContext","writeOnly":true},"contentType":{"type":"string"},"requestContextAttribute":{"type":"string"},"staticAttributes":{"type":"object","additionalProperties":{}},"exposePathVariables":{"type":"boolean"},"exposeContextBeansAsAttributes":{"type":"boolean","writeOnly":true},"exposedContextBeanNames":{"type":"array","items":{"type":"string"},"writeOnly":true},"beanName":{"type":"string"},"url":{"type":"string"},"contextRelative":{"type":"boolean","writeOnly":true},"http10Compatible":{"type":"boolean","writeOnly":true},"exposeModelAttributes":{"type":"boolean","writeOnly":true},"encodingScheme":{"type":"string","writeOnly":true},"statusCode":{"oneOf":[{"$ref":"#/components/schemas/DefaultHttpStatusCode"},{"$ref":"#/components/schemas/HttpStatus"}],"writeOnly":true},"expandUriTemplateVariables":{"type":"boolean","writeOnly":true},"propagateQueryParams":{"type":"boolean","writeOnly":true},"hosts":{"type":"array","items":{"type":"string"}},"propagateQueryProperties":{"type":"boolean"},"redirectView":{"type":"boolean"},"attributesCSV":{"type":"string","writeOnly":true},"attributesMap":{"type":"object","additionalProperties":{}},"attributes":{"type":"object","additionalProperties":{"type":"string"},"writeOnly":true}}},"ServletContext":{"type":"object","properties":{"classLoader":{"type":"object","properties":{"name":{"type":"string"},"registeredAsParallelCapable":{"type":"boolean"},"definedPackages":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"sealed":{"type":"boolean"},"annotations":{"type":"array","items":{}},"declaredAnnotations":{"type":"array","items":{}},"specificationTitle":{"type":"string"},"specificationVersion":{"type":"string"},"specificationVendor":{"type":"string"},"implementationTitle":{"type":"string"},"implementationVersion":{"type":"string"},"implementationVendor":{"type":"string"}}}},"defaultAssertionStatus":{"type":"boolean","writeOnly":true}}},"majorVersion":{"type":"integer","format":"int32"},"minorVersion":{"type":"integer","format":"int32"},"sessionTrackingModes":{"type":"array","items":{"type":"string","enum":["COOKIE","URL","SSL"]},"uniqueItems":true,"writeOnly":true},"sessionCookieConfig":{"$ref":"#/components/schemas/SessionCookieConfig"},"virtualServerName":{"type":"string"},"effectiveSessionTrackingModes":{"type":"array","items":{"type":"string","enum":["COOKIE","URL","SSL"]},"uniqueItems":true},"servletRegistrations":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ServletRegistration"}},"serverInfo":{"type":"string"},"responseCharacterEncoding":{"type":"string"},"effectiveMajorVersion":{"type":"integer","format":"int32"},"effectiveMinorVersion":{"type":"integer","format":"int32"},"servletContextName":{"type":"string"},"filterRegistrations":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/FilterRegistration"}},"defaultSessionTrackingModes":{"type":"array","items":{"type":"string","enum":["COOKIE","URL","SSL"]},"uniqueItems":true},"jspConfigDescriptor":{"$ref":"#/components/schemas/JspConfigDescriptor"},"sessionTimeout":{"type":"integer","format":"int32"},"requestCharacterEncoding":{"type":"string"},"contextPath":{"type":"string"},"initParameterNames":{},"attributeNames":{}}},"ServletRegistration":{"type":"object","properties":{"runAsRole":{"type":"string"},"mappings":{"type":"array","items":{"type":"string"}},"name":{"type":"string"},"className":{"type":"string"},"initParameters":{"type":"object","additionalProperties":{"type":"string"}}}},"SessionCookieConfig":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"},"attributes":{"type":"object","additionalProperties":{"type":"string"}},"comment":{"type":"string","deprecated":true},"maxAge":{"type":"integer","format":"int32"},"secure":{"type":"boolean"},"domain":{"type":"string"},"httpOnly":{"type":"boolean"}}},"TaglibDescriptor":{"type":"object","properties":{"taglibLocation":{"type":"string"},"taglibURI":{"type":"string"}}},"MfaStatusDto":{"type":"object","properties":{"user_id":{"type":"string"},"phone_otp_available":{"type":"boolean"},"email_otp_available":{"type":"boolean"},"passkey_available":{"type":"boolean"},"available_methods":{"type":"array","items":{"type":"string","enum":["PHONE_OTP","EMAIL_OTP","PASSKEY"]},"uniqueItems":true},"masked_phone":{"type":"string"},"masked_email":{"type":"string"},"passkey_count":{"type":"integer","format":"int64"}}},"AlertCooldownEntry":{"type":"object","description":"Alert cooldown entry","properties":{"value":{"type":"string","description":"Value stored (typically timestamp or lock indicator)"},"ttl":{"type":"integer","format":"int64","description":"TTL in seconds"},"alert_key":{"type":"string","description":"Alert key (IP:category:severity)"}}},"IpAccessRulesCache":{"type":"object","description":"IP access rules cache","properties":{"whitelist":{"type":"array","description":"Whitelisted IPs","items":{"type":"string"}},"blacklist":{"type":"array","description":"Blacklisted IPs","items":{"type":"string"}}}},"RateLimitBucketEntry":{"type":"object","description":"Rate limit bucket entry","properties":{"tokens":{"type":"string","description":"Remaining tokens"},"ttl":{"type":"integer","format":"int64","description":"TTL in seconds (-1 if no expiry, -2 if key doesn't exist)"},"client_key":{"type":"string","description":"The client key (IP:category)"},"last_refill":{"type":"string","description":"Last refill timestamp"}}},"RedisDataSnapshotDto":{"type":"object","description":"Snapshot of all Redis data at a point in time","properties":{"redis_enabled":{"type":"boolean","description":"Whether Redis is enabled for rate limiting"},"key_prefix":{"type":"string","description":"Redis key prefix used for this environment"},"snapshot_time":{"type":"string","description":"Timestamp when the snapshot was taken"},"rate_limit_buckets":{"type":"array","description":"Rate limit bucket data (IP:category -> tokens/last_refill)","items":{"$ref":"#/components/schemas/RateLimitBucketEntry"}},"alert_cooldowns":{"type":"array","description":"Alert notification cooldowns (IP:category:severity -> timestamp)","items":{"$ref":"#/components/schemas/AlertCooldownEntry"}},"ip_access_rules":{"$ref":"#/components/schemas/IpAccessRulesCache","description":"IP access rules cache"},"total_keys":{"type":"integer","format":"int32","description":"Total number of keys found"}}},"LoginOptionsDto":{"type":"object","description":"Login options for the login page, based on configuration and user state","properties":{"available_first_factors":{"type":"array","description":"Available first factor authentication methods (filtered by config and user verification status)","example":["PASSWORD","EMAIL_OTP","PHONE_OTP","PASSKEY"],"items":{"type":"string","enum":["PASSWORD","EMAIL_OTP","PHONE_OTP","PASSKEY","GOOGLE_OAUTH2","APPLE","MICROSOFT_OAUTH2"]},"uniqueItems":true},"available_mfa_methods":{"type":"array","description":"Available MFA methods (filtered by config and user verification status)","example":["EMAIL_OTP","PHONE_OTP","PASSKEY"],"items":{"type":"string","enum":["PASSWORD","EMAIL_OTP","PHONE_OTP","PASSKEY","GOOGLE_OAUTH2","APPLE","MICROSOFT_OAUTH2"]},"uniqueItems":true},"mfa_required":{"type":"boolean","default":false,"description":"Whether MFA is required after first factor","example":false},"email_verified":{"type":"boolean","description":"Whether user's email is verified","example":true},"phone_verified":{"type":"boolean","description":"Whether user's phone is verified","example":false},"has_passkey":{"type":"boolean","description":"Whether user has a passkey registered","example":true},"has_password":{"type":"boolean","description":"Whether user has a password set","example":true},"passkey_allowed":{"type":"boolean","description":"Whether passkey is allowed by configuration (for showing setup prompt)","example":true},"email":{"type":"string","description":"User's email address (unmasked)","example":"user@example.com"},"phone":{"type":"string","description":"User's phone number (unmasked)","example":"+1234567890"},"login_blocked":{"type":"boolean","description":"Whether login is blocked for this user (no available authentication methods)","example":false},"login_blocked_reason":{"type":"string","description":"Reason why login is blocked (only set when login_blocked is true)","example":"Your account requires email or phone verification for login. Please contact your administrator."},"self_registration_allowed":{"type":"boolean","default":false,"description":"Whether this user type permits public self-registration. Enforcement is server-side; this is the capability signal for the login UI.","example":false},"social_login_allowed":{"type":"boolean","default":false,"description":"Whether this user type permits social (Google/Apple/Microsoft) login.","example":false},"signup_passkey_prompt":{"type":"boolean","default":false,"description":"Whether a self-registration flow should offer passkey enrolment at the end of signup.","example":false}}},"ResetTokenValidationResult":{"type":"object","properties":{"valid":{"type":"boolean"},"identifier":{"type":"string"},"password_policy":{"$ref":"#/components/schemas/PasswordPolicyDto"}}}},"securitySchemes":{"basicAuth":{"type":"http","description":"Basic Authentication - For admin-only APIs (Client Management). Use admin.email:admin.password from config.","scheme":"basic"},"bearerAuth":{"type":"http","description":"JWT Authentication - For user and service account APIs","scheme":"bearer","bearerFormat":"JWT"}}}}