{"openapi":"3.0.0","paths":{"/api/health":{"get":{"operationId":"AppController_getHealth","parameters":[],"responses":{"200":{"description":""}},"tags":["App"]}},"/api/sentry-test":{"get":{"operationId":"AppController_getSentryTest","parameters":[],"responses":{"200":{"description":""}},"tags":["App"]}},"/api/auth/login":{"post":{"operationId":"AuthController_login","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoLoginRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoLoginResponse"}}}},"400":{"description":"Bad Request"},"404":{"description":"User not found"}},"tags":["Auth"]}},"/api/auth/register":{"post":{"operationId":"AuthController_register","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoRegistrationRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoRegistrationResponse"}}}},"400":{"description":"Bad Request"},"403":{"description":"Registration is disabled. A super-admin user already exists."},"409":{"description":"User with this email already exists"}},"tags":["Auth"]}},"/api/auth/me":{"get":{"operationId":"AuthController_getMe","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoGetMeResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"tags":["Auth"]}},"/api/auth/refresh-token":{"post":{"operationId":"AuthController_refreshToken","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoRefreshTokenResponse"}}}},"400":{"description":"Invalid refresh token"}},"tags":["Auth"]}},"/api/auth/logout":{"post":{"operationId":"AuthController_logout","parameters":[],"responses":{"200":{"description":"Successfully logged out"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"tags":["Auth"]}},"/api/tenants":{"post":{"operationId":"TenantsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoCreateTenantRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoTenantResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Create a new tenant","tags":["Tenants"]},"get":{"operationId":"TenantsController_findAll","parameters":[{"name":"page","required":false,"in":"query","schema":{"minimum":1,"default":1,"type":"number"}},{"name":"per_page","required":false,"in":"query","schema":{"minimum":1,"default":10,"type":"number"}},{"name":"search","required":false,"in":"query","description":"Search tenants by name","schema":{"type":"string"}},{"name":"is_active","required":false,"in":"query","description":"Filter tenants by active status","schema":{"type":"boolean"}},{"name":"status","required":false,"in":"query","description":"Filter tenants by expiration status","schema":{"example":"active","type":"string","enum":["active","expired","expiring_soon","not_active"]}},{"name":"sortBy","required":false,"in":"query","description":"Sort tenants by field","schema":{"example":"name","type":"string","enum":["name","slug","domain","expiration_date"]}},{"name":"sortOrder","required":false,"in":"query","description":"Sort order","schema":{"example":"asc","type":"string","enum":["asc","desc"]}},{"required":false,"name":"page","in":"query","schema":{"minimum":1,"default":1,"type":"number"}},{"required":false,"name":"per_page","in":"query","schema":{"minimum":1,"default":10,"type":"number"}},{"required":false,"description":"Search tenants by name","name":"search","in":"query","schema":{"type":"string"}},{"required":false,"description":"Filter tenants by active status","name":"is_active","in":"query","schema":{"type":"boolean"}},{"required":false,"description":"Filter tenants by expiration status","name":"status","in":"query","schema":{"example":"active","type":"string"}},{"required":false,"description":"Sort tenants by field","name":"sortBy","in":"query","schema":{"example":"name","type":"string"}},{"required":false,"description":"Sort order","name":"sortOrder","in":"query","schema":{"example":"asc","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoPaginatedTenantsResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get all tenants (paginated)","tags":["Tenants"]}},"/api/tenants/stats":{"get":{"operationId":"TenantsController_getStats","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoTenantStatsResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get tenant statistics","tags":["Tenants"]}},"/api/tenants/slug/{slug}":{"get":{"operationId":"TenantsController_findBySlug","parameters":[{"name":"slug","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoTenantResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get tenant by slug","tags":["Tenants"]}},"/api/tenants/domain/{domain}":{"get":{"operationId":"TenantsController_findByDomain","parameters":[{"name":"domain","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoTenantResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get tenant by domain","tags":["Tenants"]}},"/api/tenants/current":{"get":{"operationId":"TenantsController_getCurrentTenant","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoTenantResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get current tenant","tags":["Tenants"]},"put":{"operationId":"TenantsController_updateCurrentTenant","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateTenantRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoTenantResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update current tenant","tags":["Tenants"]}},"/api/tenants/current-tenant":{"get":{"operationId":"TenantsController_getCurrentTenantPayloadFormat","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoCurrentTenantResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get current tenant (PayloadCMS format)","tags":["Tenants"]}},"/api/tenants/{id}":{"get":{"operationId":"TenantsController_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoTenantResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get tenant by ID","tags":["Tenants"]},"put":{"operationId":"TenantsController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateTenantRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoTenantResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update tenant","tags":["Tenants"]},"delete":{"operationId":"TenantsController_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"202":{"description":"Tenant deletion job queued successfully","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string","example":"123e4567-e89b-12d3-a456-426614174000"}}}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete tenant","tags":["Tenants"]}},"/api/tenants/{id}/logo":{"delete":{"operationId":"TenantsController_deleteLogo","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Tenant logo deleted successfully"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete tenant logo","tags":["Tenants"]}},"/api/tenants/{id}/brand-image":{"delete":{"operationId":"TenantsController_deleteBrandImage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Tenant brand image deleted successfully"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete tenant brand image","tags":["Tenants"]}},"/api/tenants/{id}/deletion-status":{"get":{"operationId":"TenantsController_getDeletionStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Deletion status retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoTenantDeletionStatusResponse"}}}},"401":{"description":"Unauthorized"},"404":{"description":"No deletion job found for this tenant"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get tenant deletion status","tags":["Tenants"]}},"/api/branding":{"get":{"operationId":"BrandingController_getBranding","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoBrandingResponse"}}}}},"summary":"Get branding (logo and brand image) by host","tags":["Branding"]}},"/api/devices":{"get":{"operationId":"DeviceController_findAll","parameters":[{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"per_page","required":false,"in":"query","schema":{"type":"string"}},{"name":"tenantId","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","description":"Sort devices by field","schema":{"example":"model","type":"string","enum":["model","location","licenseCode","lastOnlineAt"]}},{"name":"sortOrder","required":false,"in":"query","description":"Sort order","schema":{"example":"asc","type":"string","enum":["asc","desc"]}},{"name":"isAuthorized","required":false,"in":"query","description":"Filter by authorization. Omit for no filter (super-admin: all devices; tenant: still only authorized). Use true or false to filter.","schema":{"type":"boolean"}},{"required":false,"name":"page","in":"query","schema":{"type":"string"}},{"required":false,"name":"per_page","in":"query","schema":{"type":"string"}},{"required":false,"name":"tenantId","in":"query","schema":{"type":"string"}},{"required":false,"name":"search","in":"query","schema":{"type":"string"}},{"required":false,"description":"Sort devices by field","name":"sortBy","in":"query","schema":{"example":"model","type":"string"}},{"required":false,"description":"Sort order","name":"sortOrder","in":"query","schema":{"example":"asc","type":"string"}},{"required":false,"description":"Filter by authorization. Omit for no filter (super-admin: all devices; tenant: still only authorized). Use true or false to filter.","name":"isAuthorized","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoPaginatedDeviceResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get all devices (paginated)","tags":["Devices"]},"delete":{"operationId":"DeviceController_bulkDelete","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoBulkDeleteDevicesRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoBulkDeleteDevicesResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Bulk delete devices","tags":["Devices"]}},"/api/devices/stats":{"get":{"operationId":"DeviceController_getStats","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoDeviceStatsResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get device statistics","tags":["Devices"]}},"/api/devices/{id}":{"get":{"operationId":"DeviceController_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoDeviceResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get device by ID","tags":["Devices"]},"put":{"operationId":"DeviceController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateDeviceRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoDeviceResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update device (super-admin only)","tags":["Devices"]},"delete":{"operationId":"DeviceController_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Device deleted successfully"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete device","tags":["Devices"]}},"/api/devices/{id}/location":{"patch":{"operationId":"DeviceController_updateLocation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateDeviceLocationRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoDeviceResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update device location (tenant-admin/moderator only)","tags":["Devices"]}},"/api/devices/{id}/is-authorized":{"patch":{"operationId":"DeviceController_updateIsAuthorized","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateDeviceIsAuthorizedRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoDeviceResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update device isAuthorized (super-admin only)","tags":["Devices"]}},"/api/devices/{id}/tenant":{"patch":{"description":"Assign a tenant to an unassigned device. Cannot reassign if device already has a tenant.","operationId":"DeviceController_updateTenant","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateDeviceTenantRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoDeviceResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update device tenant (super-admin only)","tags":["Devices"]},"delete":{"description":"Remove the tenant assignment from a device. Device must have a tenant assigned.","operationId":"DeviceController_removeTenant","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoDeviceResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Remove tenant from device (super-admin only)","tags":["Devices"]}},"/api/media/stats":{"get":{"operationId":"MediaController_getStats","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoMediaStatsResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get media statistics","tags":["Media"]}},"/api/media":{"get":{"operationId":"MediaController_findAll","parameters":[{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"per_page","required":false,"in":"query","schema":{"type":"string"}},{"name":"tenantId","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"is360","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"sortBy","required":false,"in":"query","description":"Sort media by field","schema":{"example":"title","type":"string","enum":["title","file_size"]}},{"name":"sortOrder","required":false,"in":"query","description":"Sort order","schema":{"example":"asc","type":"string","enum":["asc","desc"]}},{"required":false,"name":"page","in":"query","schema":{"type":"string"}},{"required":false,"name":"per_page","in":"query","schema":{"type":"string"}},{"required":false,"name":"tenantId","in":"query","schema":{"type":"string"}},{"required":false,"name":"search","in":"query","schema":{"type":"string"}},{"required":false,"name":"is360","in":"query","schema":{"type":"boolean"}},{"required":false,"description":"Sort media by field","name":"sortBy","in":"query","schema":{"example":"title","type":"string"}},{"required":false,"description":"Sort order","name":"sortOrder","in":"query","schema":{"example":"asc","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoPaginatedMediaResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get all media (paginated)","tags":["Media"]},"post":{"operationId":"MediaController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoCreateMediaRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoMediaResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Create a new media","tags":["Media"]}},"/api/media/current-tenant":{"get":{"operationId":"MediaController_getCurrentTenantMedia","parameters":[],"responses":{"200":{"description":"Media list retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DtoCurrentTenantMediaResponse"}}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get all media for current tenant","tags":["Media"]}},"/api/media/{id}":{"get":{"operationId":"MediaController_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoMediaResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get media by ID","tags":["Media"]},"put":{"operationId":"MediaController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateMediaRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoMediaResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update media","tags":["Media"]},"delete":{"operationId":"MediaController_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Media deleted successfully"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete media","tags":["Media"]}},"/api/media/{id}/should-show-on-device":{"patch":{"operationId":"MediaController_updateShouldShowOnDevice","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoPatchShouldShowOnDeviceRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoMediaResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update should show on device flag","tags":["Media"]}},"/api/media/{id}/media-file":{"delete":{"operationId":"MediaController_deleteMediaFile","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Media file deleted successfully"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete media file","tags":["Media"]}},"/api/media/{id}/thumbnail":{"delete":{"operationId":"MediaController_deleteThumbnail","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Thumbnail deleted successfully"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete thumbnail","tags":["Media"]}},"/api/global-media":{"get":{"operationId":"GlobalMediaController_findAll","parameters":[{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"per_page","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"is360","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"sortBy","required":false,"in":"query","description":"Sort global media by field","schema":{"example":"title","type":"string","enum":["title","file_size"]}},{"name":"sortOrder","required":false,"in":"query","description":"Sort order","schema":{"example":"asc","type":"string","enum":["asc","desc"]}},{"required":false,"name":"page","in":"query","schema":{"type":"string"}},{"required":false,"name":"per_page","in":"query","schema":{"type":"string"}},{"required":false,"name":"search","in":"query","schema":{"type":"string"}},{"required":false,"name":"is360","in":"query","schema":{"type":"boolean"}},{"required":false,"description":"Sort global media by field","name":"sortBy","in":"query","schema":{"example":"title","type":"string"}},{"required":false,"description":"Sort order","name":"sortOrder","in":"query","schema":{"example":"asc","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoPaginatedGlobalMediaResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get all global media (paginated)","tags":["Global Media"]},"post":{"operationId":"GlobalMediaController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoCreateGlobalMediaRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoGlobalMediaResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Create a new global media","tags":["Global Media"]}},"/api/global-media/{id}/usages":{"get":{"operationId":"GlobalMediaController_findAllMediaByGlobalMediaId","parameters":[{"name":"id","required":true,"in":"path","description":"Global media ID","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"per_page","required":false,"in":"query","schema":{"type":"string"}},{"required":false,"name":"page","in":"query","schema":{"type":"string"}},{"required":false,"name":"per_page","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoPaginatedMediaResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get all media entities that use a specific global media","tags":["Global Media"]}},"/api/global-media/{id}":{"get":{"operationId":"GlobalMediaController_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoGlobalMediaResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get global media by ID","tags":["Global Media"]},"put":{"operationId":"GlobalMediaController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateGlobalMediaRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoGlobalMediaResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update global media","tags":["Global Media"]},"delete":{"operationId":"GlobalMediaController_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Global media deleted successfully"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete global media","tags":["Global Media"]}},"/api/global-media/{id}/media-file":{"delete":{"operationId":"GlobalMediaController_deleteMediaFile","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Global media file deleted successfully"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete global media file","tags":["Global Media"]}},"/api/global-media/{id}/thumbnail":{"delete":{"operationId":"GlobalMediaController_deleteThumbnail","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Global media thumbnail deleted successfully"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete global media thumbnail","tags":["Global Media"]}},"/api/locales":{"post":{"operationId":"LocalesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoCreateLocaleRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoLocaleResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Create a new locale","tags":["Locales"]},"get":{"operationId":"LocalesController_findAll","parameters":[{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"per_page","required":false,"in":"query","schema":{"type":"string"}},{"name":"tenantId","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","description":"Sort locales by field","schema":{"example":"code","type":"string","enum":["code","name"]}},{"name":"sortOrder","required":false,"in":"query","description":"Sort order","schema":{"example":"asc","type":"string","enum":["asc","desc"]}},{"required":false,"name":"page","in":"query","schema":{"type":"string"}},{"required":false,"name":"per_page","in":"query","schema":{"type":"string"}},{"required":false,"name":"tenantId","in":"query","schema":{"type":"string"}},{"required":false,"description":"Sort locales by field","name":"sortBy","in":"query","schema":{"example":"code","type":"string"}},{"required":false,"description":"Sort order","name":"sortOrder","in":"query","schema":{"example":"asc","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoPaginatedLocalesResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get all locales (paginated)","tags":["Locales"]},"delete":{"operationId":"LocalesController_bulkDelete","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoBulkDeleteLocalesRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoBulkDeleteLocalesResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Bulk delete locales","tags":["Locales"]}},"/api/locales/{id}":{"get":{"operationId":"LocalesController_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoLocaleResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get locale by ID","tags":["Locales"]},"put":{"operationId":"LocalesController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateLocaleRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoLocaleResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update locale","tags":["Locales"]},"delete":{"operationId":"LocalesController_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Locale deleted successfully"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete locale","tags":["Locales"]}},"/api/users/permissions":{"get":{"operationId":"UsersController_getPermissions","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get current user permissions","tags":["Users"]}},"/api/users/stats":{"get":{"operationId":"UsersController_getStats","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUserStatsResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get user statistics","tags":["Users"]}},"/api/users":{"get":{"operationId":"UsersController_list","parameters":[{"name":"page","required":false,"in":"query","schema":{"minimum":1,"default":1,"type":"number"}},{"name":"per_page","required":false,"in":"query","schema":{"minimum":1,"default":10,"type":"number"}},{"name":"tenantId","required":false,"in":"query","description":"Filter users by tenant ID","schema":{"type":"string"}},{"name":"role","required":false,"in":"query","description":"Filter users by role","schema":{"type":"string","enum":["SUPER_ADMIN","TENANT_ADMIN","TENANT_MODERATOR","TENANT_VIEWER"]}},{"name":"search","required":false,"in":"query","description":"Search users by full name, first name, last name, or email","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","description":"Sort users by field","schema":{"example":"email","type":"string","enum":["email","full_name"]}},{"name":"sortOrder","required":false,"in":"query","description":"Sort order","schema":{"example":"asc","type":"string","enum":["asc","desc"]}},{"name":"isActive","required":false,"in":"query","description":"Filter users by active status","schema":{"type":"boolean"}},{"required":false,"name":"page","in":"query","schema":{"minimum":1,"default":1,"type":"number"}},{"required":false,"name":"per_page","in":"query","schema":{"minimum":1,"default":10,"type":"number"}},{"required":false,"description":"Filter users by tenant ID","name":"tenantId","in":"query","schema":{"type":"string"}},{"required":false,"description":"Filter users by role","name":"role","in":"query","schema":{"type":"string"}},{"required":false,"description":"Search users by full name, first name, last name, or email","name":"search","in":"query","schema":{"type":"string"}},{"required":false,"description":"Sort users by field","name":"sortBy","in":"query","schema":{"example":"email","type":"string"}},{"required":false,"description":"Sort order","name":"sortOrder","in":"query","schema":{"example":"asc","type":"string"}},{"required":false,"description":"Filter users by active status","name":"isActive","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoPaginatedUsersResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"List all users (paginated)","tags":["Users"]},"post":{"operationId":"UsersController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoCreateUserRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoCreateUserResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Create a new user","tags":["Users"]},"delete":{"operationId":"UsersController_bulkDelete","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoBulkDeleteUsersRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoBulkDeleteUsersResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Bulk delete users","tags":["Users"]}},"/api/users/{id}":{"get":{"operationId":"UsersController_getById","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoGetUserByIdResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get user by ID","tags":["Users"]},"put":{"operationId":"UsersController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateUserRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateUserResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update current user","tags":["Users"]},"delete":{"operationId":"UsersController_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"User deleted successfully"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete user","tags":["Users"]}},"/api/users/{id}/resend-invitation":{"post":{"description":"Super-admins must send tenantId in the body when the target user belongs to more than one tenant. Tenant-scoped admins ignore body tenantId.","operationId":"UsersController_resendInvitation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoResendInvitationRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoResendInvitationResponse"}}}},"400":{"description":"User has already accepted the invitation, has no tenant assignment, multi-tenant user without tenantId, or invalid tenantId"},"401":{"description":"Unauthorized"},"404":{"description":"User not found"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Resend invitation email to user","tags":["Users"]}},"/api/users/{id}/role":{"patch":{"operationId":"UsersController_updateRole","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateUserRoleRequest"}}}},"responses":{"200":{"description":"User role updated successfully"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update user role","tags":["Users"]}},"/api/users/current-user":{"delete":{"operationId":"UsersController_deleteCurrentUser","parameters":[],"responses":{"200":{"description":"User deleted successfully and logged out"},"401":{"description":"Unauthorized"},"404":{"description":"User not found"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete current logged-in user","tags":["Users"]}},"/api/users/forgot-password":{"post":{"operationId":"UsersController_forgotPassword","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoForgotPasswordRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoForgotPasswordResponse"}}}},"400":{"description":"Bad Request"}},"summary":"Request password reset email","tags":["Users"]}},"/api/users/set-password":{"post":{"operationId":"UsersController_setPassword","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoSetPasswordRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoSetPasswordResponse"}}}},"400":{"description":"Bad Request"},"401":{"description":"Invalid or expired invite token"},"404":{"description":"User not found"}},"summary":"Set password for user using invite token","tags":["Users"]}},"/api/users/reset-password":{"post":{"operationId":"UsersController_resetPassword","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoResetPasswordRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoResetPasswordResponse"}}}},"400":{"description":"Bad Request"},"401":{"description":"Invalid or expired password reset token"},"404":{"description":"User not found"}},"summary":"Reset password using password reset token","tags":["Users"]}},"/api/users/change-password":{"post":{"operationId":"UsersController_changePassword","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoChangePasswordRequest"}}}},"responses":{"200":{"description":"Password changed successfully"},"400":{"description":"Bad Request"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Change password for authenticated user","tags":["Users"]}},"/api/storage/start-upload":{"post":{"operationId":"StorageController_startUpload","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoStartUploadRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoStartUploadResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Start multipart upload","tags":["Storage"]}},"/api/storage/upload-part-url":{"post":{"operationId":"StorageController_getPartUrl","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUploadPartUrlRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUploadPartUrlResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get upload part URL","tags":["Storage"]}},"/api/storage/upload-complete":{"post":{"operationId":"StorageController_completeUpload","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoCompleteUploadRequest"}}}},"responses":{"201":{"description":"Upload completed successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoCompleteUploadResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Complete multipart upload","tags":["Storage"]}},"/api/tours":{"post":{"operationId":"ToursController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoCreateTourRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoTourResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Create a tour","tags":["Tours"]},"get":{"operationId":"ToursController_findAll","parameters":[{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"per_page","required":false,"in":"query","schema":{"type":"string"}},{"name":"tenantId","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"example":"title","type":"string","enum":["title"]}},{"name":"sortOrder","required":false,"in":"query","schema":{"example":"asc","type":"string","enum":["asc","desc"]}},{"required":false,"name":"page","in":"query","schema":{"type":"string"}},{"required":false,"name":"per_page","in":"query","schema":{"type":"string"}},{"required":false,"name":"tenantId","in":"query","schema":{"type":"string"}},{"required":false,"name":"sortBy","in":"query","schema":{"example":"title","type":"string"}},{"required":false,"name":"sortOrder","in":"query","schema":{"example":"asc","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoPaginatedToursResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"List tours (paginated)","tags":["Tours"]}},"/api/tours/current-tenant":{"get":{"operationId":"ToursController_getCurrentTenantTours","parameters":[{"name":"x-device-id","in":"header","description":"Device ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Tours with scenes and hotspots retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DtoCurrentTenantTourResponse"}}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get all tours for current tenant (device viewer)","tags":["Tours"]}},"/api/tours/{id}":{"get":{"operationId":"ToursController_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoTourResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get tour by id","tags":["Tours"]},"put":{"operationId":"ToursController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateTourRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoTourResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update tour","tags":["Tours"]},"delete":{"operationId":"ToursController_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Tour deleted"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete tour","tags":["Tours"]}},"/api/tours/{id}/thumbnail":{"delete":{"operationId":"ToursController_deleteThumbnail","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Thumbnail removed"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Remove tour thumbnail","tags":["Tours"]}},"/api/tours/{id}/starting-scene":{"patch":{"operationId":"ToursController_patchStartingScene","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoPatchTourStartingSceneRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoTourResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Set tour starting scene","tags":["Tours"]}},"/api/tours/{tourId}/scenes":{"get":{"operationId":"ScenesController_list","parameters":[{"name":"tourId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DtoSceneResponse"}}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"List scenes for a tour","tags":["Tours"]},"post":{"operationId":"ScenesController_create","parameters":[{"name":"tourId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoCreateSceneRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoSceneResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Create a scene for a tour","tags":["Tours"]}},"/api/tours/{tourId}/scenes/{sceneId}":{"get":{"operationId":"ScenesController_findOne","parameters":[{"name":"tourId","required":true,"in":"path","schema":{"type":"string"}},{"name":"sceneId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoSceneResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get a scene by id","tags":["Tours"]},"put":{"operationId":"ScenesController_update","parameters":[{"name":"tourId","required":true,"in":"path","schema":{"type":"string"}},{"name":"sceneId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateSceneRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoSceneResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update a scene","tags":["Tours"]},"delete":{"operationId":"ScenesController_delete","parameters":[{"name":"tourId","required":true,"in":"path","schema":{"type":"string"}},{"name":"sceneId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Scene deleted"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete a scene","tags":["Tours"]}},"/api/tours/{tourId}/scenes/{sceneId}/file":{"delete":{"operationId":"ScenesController_deleteFile","parameters":[{"name":"tourId","required":true,"in":"path","schema":{"type":"string"}},{"name":"sceneId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Scene file deleted"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete scene file","tags":["Tours"]}},"/api/tours/{tourId}/scenes/{sceneId}/hotspots":{"get":{"operationId":"HotspotsController_list","parameters":[{"name":"tourId","required":true,"in":"path","schema":{"type":"string"}},{"name":"sceneId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DtoHotspotResponse"}}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"List hotspots for a scene","tags":["Tours"]},"post":{"operationId":"HotspotsController_create","parameters":[{"name":"tourId","required":true,"in":"path","schema":{"type":"string"}},{"name":"sceneId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoCreateHotspotRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoHotspotResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Create a hotspot for a scene","tags":["Tours"]}},"/api/tours/{tourId}/scenes/{sceneId}/hotspots/{hotspotId}":{"get":{"operationId":"HotspotsController_findOne","parameters":[{"name":"tourId","required":true,"in":"path","schema":{"type":"string"}},{"name":"sceneId","required":true,"in":"path","schema":{"type":"string"}},{"name":"hotspotId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoHotspotResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get a hotspot by id","tags":["Tours"]},"put":{"operationId":"HotspotsController_update","parameters":[{"name":"tourId","required":true,"in":"path","schema":{"type":"string"}},{"name":"sceneId","required":true,"in":"path","schema":{"type":"string"}},{"name":"hotspotId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateHotspotRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoHotspotResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update a hotspot","tags":["Tours"]},"delete":{"operationId":"HotspotsController_delete","parameters":[{"name":"tourId","required":true,"in":"path","schema":{"type":"string"}},{"name":"sceneId","required":true,"in":"path","schema":{"type":"string"}},{"name":"hotspotId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Hotspot deleted"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete a hotspot","tags":["Tours"]}},"/api/feature-flags":{"post":{"operationId":"FeatureFlagController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoCreateFeatureFlagRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoFeatureFlagResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Create a feature flag (super-admin only)","tags":["Feature Flags"]},"get":{"operationId":"FeatureFlagController_findAll","parameters":[{"name":"page","required":false,"in":"query","schema":{"minimum":1,"default":1,"type":"number"}},{"name":"per_page","required":false,"in":"query","schema":{"minimum":1,"default":10,"type":"number"}},{"required":false,"name":"page","in":"query","schema":{"minimum":1,"default":1,"type":"number"}},{"required":false,"name":"per_page","in":"query","schema":{"minimum":1,"default":10,"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoPaginatedFeatureFlagsResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"List all feature flags (paginated, super-admin only)","tags":["Feature Flags"]}},"/api/feature-flags/active":{"get":{"operationId":"FeatureFlagController_getActive","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get all active feature flags (any authenticated user)","tags":["Feature Flags"]}},"/api/feature-flags/{id}":{"get":{"operationId":"FeatureFlagController_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoFeatureFlagResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get feature flag by ID (super-admin only)","tags":["Feature Flags"]},"put":{"operationId":"FeatureFlagController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateFeatureFlagRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoFeatureFlagResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update feature flag (super-admin only)","tags":["Feature Flags"]},"delete":{"operationId":"FeatureFlagController_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Feature flag deleted successfully"},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Delete feature flag (super-admin only)","tags":["Feature Flags"]}},"/api/feature-flags/{id}/enabled":{"patch":{"operationId":"FeatureFlagController_setEnabled","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoPatchFeatureFlagEnabledRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoFeatureFlagResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Set feature flag enabled state (super-admin only)","tags":["Feature Flags"]}},"/api/knowledge":{"post":{"operationId":"KnowledgeController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoCreateKnowledgeRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoKnowledgeResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Create a new knowledge","tags":["Knowledge"]},"get":{"operationId":"KnowledgeController_findOne","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoKnowledgeResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Get knowledge by ID","tags":["Knowledge"]},"put":{"operationId":"KnowledgeController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoUpdateKnowledgeRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoKnowledgeResponse"}}}},"401":{"description":"Unauthorized"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Update knowledge","tags":["Knowledge"]}},"/api/v1/events":{"post":{"operationId":"SessionEventsIngestController_ingest","parameters":[{"name":"x-device-id","in":"header","description":"Device ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoIngestSessionEventsRequest"}}}},"responses":{"202":{"description":"Batch accepted for processing"},"429":{"description":"Rate limited per hardware id"}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Ingest batched session events (async)","tags":["Analytics"]}},"/api/events/stats":{"get":{"operationId":"SessionEventsStatsController_getStats","parameters":[{"name":"from","required":true,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"to","required":true,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"timezone","required":false,"in":"query","description":"IANA timezone for peak-hour buckets (default UTC)","schema":{"type":"string"}},{"name":"hardwareId","required":false,"in":"query","description":"Filter by device hardware id (same as deviceId in legacy UI)","schema":{"type":"string"}},{"name":"deviceId","required":false,"in":"query","description":"Alias for hardwareId","schema":{"type":"string"}},{"name":"tenantId","required":false,"in":"query","description":"Required for super-admin when viewing a specific tenant","schema":{"type":"string"}}],"responses":{"default":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoSessionEventStatsResponse"}}}}},"security":[{"BEARER_AUTH_NAME":[]}],"summary":"Session / content analytics KPIs","tags":["Analytics"]}},"/api/configurator":{"post":{"operationId":"ConfiguratorController_submit","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DtoSubmitConfigurationRequest"}}}},"responses":{"201":{"description":"Configuration submitted"},"403":{"description":"Turnstile verification failed"}},"summary":"Submit VR Hotelo configuration wizard","tags":["Configurator"]}}},"info":{"title":"API","description":"API description","version":"1.0","contact":{}},"tags":[],"servers":[],"components":{"securitySchemes":{"BEARER_AUTH_NAME":{"scheme":"bearer","bearerFormat":"JWT","type":"http","name":"JWT","description":"Enter JWT token","in":"header"}},"schemas":{"DtoLoginRequest":{"type":"object","properties":{"email":{"type":"string"},"password":{"type":"string"}},"required":["email","password"]},"DtoLoginResponse":{"type":"object","properties":{"user":{"type":"object","readOnly":true},"accessToken":{"type":"string","readOnly":true}},"required":["user","accessToken"]},"DtoRegistrationRequest":{"type":"object","properties":{"email":{"type":"string"},"password":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"}},"required":["email","password","firstName","lastName"]},"DtoRegistrationResponse":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"email":{"type":"string","readOnly":true},"firstName":{"type":"string","readOnly":true},"lastName":{"type":"string","readOnly":true}},"required":["id","email","firstName","lastName"]},"DtoGetMeResponse":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"email":{"type":"string","readOnly":true},"firstName":{"type":"string","readOnly":true},"lastName":{"type":"string","readOnly":true},"tenantId":{"type":"object","readOnly":true},"role":{"type":"object","readOnly":true}},"required":["id","email","firstName","lastName","tenantId","role"]},"DtoRefreshTokenResponse":{"type":"object","properties":{"accessToken":{"type":"string","readOnly":true}},"required":["accessToken"]},"DtoCreateTenantRequest":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"isActive":{"type":"boolean","default":true},"ordersEmail":{"type":"string"},"isForever":{"type":"boolean","description":"When true, license never expires and licenseExpiration is ignored"},"licenseExpiration":{"type":"string","description":"Required when isForever is false"},"aiContent":{"type":"string"},"plan":{"type":"string","enum":["essential","standard","premium","ultimate"],"default":"essential"}},"required":["name","slug","domain","isActive","ordersEmail","isForever"]},"DtoStorageFileData":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"sourceType":{"type":"string","enum":["UPLOADED","EXTERNAL_URL"]},"fileName":{"type":"string"}},"required":["id","url","sourceType","fileName"]},"DtoTenantResponse":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"isActive":{"type":"boolean"},"ordersEmail":{"type":"string"},"isForever":{"type":"boolean","description":"When true, license never expires"},"plan":{"type":"string","enum":["essential","standard","premium","ultimate"],"description":"Tenant plan tier"},"licenseExpiration":{"type":"object","nullable":true,"description":"Null when isForever is true"},"aiContent":{"type":"object","nullable":true},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"logo":{"$ref":"#/components/schemas/DtoStorageFileData"},"brandImage":{"$ref":"#/components/schemas/DtoStorageFileData"}},"required":["id","name","slug","domain","isActive","ordersEmail","isForever","plan","licenseExpiration","createdAt"]},"DtoPaginatedTenantsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DtoTenantResponse"}},"total":{"type":"number"},"page":{"type":"number"},"per_page":{"type":"number"},"last_page":{"type":"number"},"to":{"type":"number"},"from":{"type":"number"}},"required":["data","total","page","per_page","last_page","to","from"]},"DtoTenantStatsResponse":{"type":"object","properties":{"totalTenants":{"type":"number","description":"Total number of tenants","example":150},"expiredTenants":{"type":"number","description":"Number of tenants with expired licenses","example":5},"expiringSoonTenants":{"type":"number","description":"Number of tenants with licenses expiring in the next 2 months","example":12}},"required":["totalTenants","expiredTenants","expiringSoonTenants"]},"DtoCurrentTenantResponse":{"type":"object","properties":{"id":{"type":"string","description":"Tenant ID"},"name":{"type":"string","description":"Tenant name"},"slug":{"type":"string","description":"Tenant slug"},"domain":{"type":"string","description":"Tenant domain"},"isActive":{"type":"boolean","description":"Whether tenant is active"},"aiContent":{"type":"object","description":"AI content configuration","nullable":true},"ordersEmail":{"type":"string","description":"Orders email address"},"isForever":{"type":"boolean","description":"When true, license never expires"},"plan":{"type":"string","enum":["essential","standard","premium","ultimate"],"description":"Tenant plan tier"},"licenseExpiration":{"type":"object","description":"License expiration date; null when isForever is true","nullable":true},"updatedAt":{"format":"date-time","type":"string","description":"Last update timestamp"},"createdAt":{"format":"date-time","type":"string","description":"Creation timestamp"}},"required":["id","name","slug","domain","isActive","ordersEmail","isForever","plan","licenseExpiration","createdAt"]},"DtoUpdateTenantRequest":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"isActive":{"type":"boolean"},"ordersEmail":{"type":"string"},"isForever":{"type":"boolean","description":"When true, license never expires; licenseExpiration is then ignored"},"licenseExpiration":{"type":"string","description":"Required when isForever is explicitly false"},"aiContent":{"type":"string"},"logoId":{"type":"string"},"brandImageId":{"type":"string"},"plan":{"type":"string","enum":["essential","standard","premium","ultimate"]}}},"DtoTenantDeletionStatusResponse":{"type":"object","properties":{"jobId":{"type":"string","description":"Job ID for tracking the deletion process","example":"123e4567-e89b-12d3-a456-426614174000"},"status":{"type":"string","description":"Current status of the deletion job","enum":["pending","in_progress","completed","failed"],"example":"in_progress"},"progress":{"type":"object","description":"Progress information","example":{"stage":"deleting_media","current":5,"total":10,"percentage":50}},"error":{"type":"string","description":"Error message if deletion failed","example":"Failed to delete R2 files"}},"required":["jobId","status"]},"DtoBrandingResponse":{"type":"object","properties":{"logo":{"$ref":"#/components/schemas/DtoStorageFileData"},"brandImage":{"$ref":"#/components/schemas/DtoStorageFileData"}}},"DtoDeviceResponse":{"type":"object","properties":{"id":{"type":"string"},"tenantId":{"type":"object","nullable":true},"model":{"type":"string"},"location":{"type":"string"},"licenseCode":{"type":"object","nullable":true},"hardwareId":{"type":"object","nullable":true},"isAuthorized":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"lastOnlineAt":{"format":"date-time","type":"string"},"tenant":{"type":"object","nullable":true}},"required":["id","model","location","isAuthorized","createdAt"]},"DtoPaginatedDeviceResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DtoDeviceResponse"}},"total":{"type":"number"},"page":{"type":"number"},"per_page":{"type":"number"},"last_page":{"type":"number"},"from":{"type":"number"},"to":{"type":"number"}},"required":["data","total","page","per_page","last_page","from","to"]},"DtoDeviceStatsResponse":{"type":"object","properties":{"numberOfDevices":{"type":"number","description":"Total number of devices","example":42}},"required":["numberOfDevices"]},"DtoUpdateDeviceRequest":{"type":"object","properties":{"tenantId":{"type":"object"},"model":{"type":"string"},"location":{"type":"string"},"licenseCode":{"type":"object","nullable":true}}},"DtoUpdateDeviceLocationRequest":{"type":"object","properties":{"location":{"type":"string"}},"required":["location"]},"DtoUpdateDeviceIsAuthorizedRequest":{"type":"object","properties":{"isAuthorized":{"type":"boolean"}},"required":["isAuthorized"]},"DtoUpdateDeviceTenantRequest":{"type":"object","properties":{"tenantId":{"type":"string"}},"required":["tenantId"]},"DtoBulkDeleteDevicesRequest":{"type":"object","properties":{"deviceIds":{"example":["123e4567-e89b-12d3-a456-426614174000","223e4567-e89b-12d3-a456-426614174001"],"type":"array","items":{"type":"string"}}},"required":["deviceIds"]},"DtoBulkDeleteDevicesError":{"type":"object","properties":{"deviceId":{"type":"string"},"reason":{"type":"string"}},"required":["deviceId","reason"]},"DtoBulkDeleteDevicesResponse":{"type":"object","properties":{"deletedCount":{"type":"number","example":5},"failedCount":{"type":"number","example":2},"errors":{"description":"Present when failedCount > 0","type":"array","items":{"$ref":"#/components/schemas/DtoBulkDeleteDevicesError"}}},"required":["deletedCount","failedCount"]},"DtoMediaStatsResponse":{"type":"object","properties":{"count":{"type":"number","description":"Total number of media files","example":150},"totalUsage":{"type":"number","description":"Total size of all media files in bytes","example":1073741824},"count360":{"type":"number","description":"Number of 360-degree video media files","example":25},"topLanguages":{"type":"array","description":"Top 3 languages used in media files","example":[{"code":"en","name":"English","count":45},{"code":"es","name":"Spanish","count":30},{"code":"fr","name":"French","count":20}],"items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"count":{"type":"number"}}}}},"required":["count","totalUsage","count360","topLanguages"]},"DtoGlobalMediaResponse":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"is360":{"type":"boolean"},"thumbnail":{"$ref":"#/components/schemas/DtoStorageFileData"},"mediaFile":{"$ref":"#/components/schemas/DtoStorageFileData"},"fileSize":{"type":"number","description":"File size in bytes"},"usesCount":{"type":"number","description":"Number of media entities using this global media"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","title","is360","createdAt"]},"DtoLocaleResponse":{"type":"object","properties":{"id":{"type":"string"},"tenantId":{"type":"string"},"tenantName":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","tenantId","code","name","createdAt"]},"DtoMediaLocaleResponse":{"type":"object","properties":{"locale":{"$ref":"#/components/schemas/DtoLocaleResponse"},"localizedTitle":{"type":"string"}},"required":["locale","localizedTitle"]},"DtoMediaResponse":{"type":"object","properties":{"id":{"type":"string"},"tenantId":{"type":"string"},"tenant":{"$ref":"#/components/schemas/DtoTenantResponse"},"title":{"type":"string"},"is360":{"type":"boolean"},"shouldShowOnDevice":{"type":"boolean"},"source":{"type":"string","enum":["UPLOADED","SHARED"]},"thumbnail":{"$ref":"#/components/schemas/DtoStorageFileData"},"mediaFile":{"$ref":"#/components/schemas/DtoStorageFileData"},"globalMedia":{"$ref":"#/components/schemas/DtoGlobalMediaResponse"},"fileSize":{"type":"number","description":"File size in bytes"},"locales":{"type":"array","items":{"$ref":"#/components/schemas/DtoMediaLocaleResponse"}},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","tenantId","title","is360","shouldShowOnDevice","source","createdAt"]},"DtoPaginatedMediaResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DtoMediaResponse"}},"total":{"type":"number"},"page":{"type":"number"},"per_page":{"type":"number"},"last_page":{"type":"number"},"from":{"type":"number"},"to":{"type":"number"}},"required":["data","total","page","per_page","last_page","from","to"]},"DtoCurrentTenantMediaThumbnailResponse":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"type":"object"},"url":{"type":"string"},"filename":{"type":"string"},"filesize":{"type":"number"}},"required":["id","createdAt","updatedAt","url","filename","filesize"]},"DtoCurrentTenantMediaResponse":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"caption":{"type":"object","nullable":true},"is360":{"type":"boolean"},"source":{"type":"string","enum":["UPLOADED","SHARED"]},"thumbnail":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/DtoCurrentTenantMediaThumbnailResponse"}]},"locale":{"type":"object","nullable":true},"localization":{"type":"object","additionalProperties":{"type":"string"},"description":"Localized titles mapped by locale code"},"filename":{"type":"object","nullable":true},"createdAt":{"type":"object"},"updatedAt":{"type":"object"},"url":{"type":"object","nullable":true},"mimeType":{"type":"object","nullable":true},"filesize":{"type":"number","nullable":false},"width":{"type":"object","nullable":true},"height":{"type":"object","nullable":true},"focalX":{"type":"object","nullable":true},"focalY":{"type":"object","nullable":true}},"required":["id","title","caption","is360","source","thumbnail","locale","localization","filename","createdAt","updatedAt","url","mimeType","filesize","width","height","focalX","focalY"]},"DtoMediaLocaleRequest":{"type":"object","properties":{"localeId":{"type":"string"},"localizedTitle":{"type":"string"}},"required":["localeId","localizedTitle"]},"DtoCreateMediaRequest":{"type":"object","properties":{"tenantId":{"type":"object"},"title":{"type":"string"},"is360":{"type":"boolean"},"shouldShowOnDevice":{"type":"boolean"},"globalMediaId":{"type":"object"},"thumbnailId":{"type":"object"},"thumbnailUrl":{"type":"string"},"mediaFileId":{"type":"object"},"mediaUrl":{"type":"string"},"locales":{"type":"array","items":{"$ref":"#/components/schemas/DtoMediaLocaleRequest"}},"source":{"type":"string"}},"required":["tenantId","title","is360"]},"DtoUpdateMediaRequest":{"type":"object","properties":{"title":{"type":"string"},"is360":{"type":"boolean"},"shouldShowOnDevice":{"type":"boolean"},"globalMediaId":{"type":"object"},"thumbnailId":{"type":"string"},"thumbnailUrl":{"type":"string"},"mediaFileId":{"type":"string"},"mediaUrl":{"type":"string"},"locales":{"type":"array","items":{"$ref":"#/components/schemas/DtoMediaLocaleRequest"}}}},"DtoPatchShouldShowOnDeviceRequest":{"type":"object","properties":{"shouldShowOnDevice":{"type":"boolean"}},"required":["shouldShowOnDevice"]},"DtoPaginatedGlobalMediaResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DtoGlobalMediaResponse"}},"total":{"type":"number"},"page":{"type":"number"},"per_page":{"type":"number"},"last_page":{"type":"number"},"from":{"type":"number"},"to":{"type":"number"}},"required":["data","total","page","per_page","last_page","from","to"]},"DtoCreateGlobalMediaRequest":{"type":"object","properties":{"title":{"type":"string"},"is360":{"type":"boolean"},"thumbnailId":{"type":"string"},"mediaFileId":{"type":"string"},"mediaUrl":{"type":"string"},"thumbnailUrl":{"type":"string"},"usesCount":{"type":"number"}},"required":["title","is360"]},"DtoUpdateGlobalMediaRequest":{"type":"object","properties":{"title":{"type":"string"},"is360":{"type":"boolean"},"thumbnailId":{"type":"string"},"mediaFileId":{"type":"string"},"mediaUrl":{"type":"string"},"thumbnailUrl":{"type":"string"}}},"DtoCreateLocaleRequest":{"type":"object","properties":{"tenantId":{"type":"object"},"code":{"type":"string"},"name":{"type":"string"}},"required":["tenantId","code","name"]},"DtoPaginatedLocalesResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DtoLocaleResponse"}},"total":{"type":"number"},"page":{"type":"number"},"per_page":{"type":"number"},"last_page":{"type":"number"},"from":{"type":"number"},"to":{"type":"number"}},"required":["data","total","page","per_page","last_page","from","to"]},"DtoUpdateLocaleRequest":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}}},"DtoBulkDeleteLocalesRequest":{"type":"object","properties":{"localeIds":{"example":["123e4567-e89b-12d3-a456-426614174000","223e4567-e89b-12d3-a456-426614174001"],"type":"array","items":{"type":"string"}}},"required":["localeIds"]},"DtoBulkDeleteLocalesError":{"type":"object","properties":{"localeId":{"type":"string"},"reason":{"type":"string"}},"required":["localeId","reason"]},"DtoBulkDeleteLocalesResponse":{"type":"object","properties":{"deletedCount":{"type":"number","example":5},"failedCount":{"type":"number","example":2},"errors":{"description":"Present when failedCount > 0","type":"array","items":{"$ref":"#/components/schemas/DtoBulkDeleteLocalesError"}}},"required":["deletedCount","failedCount"]},"DtoUserStatsResponse":{"type":"object","properties":{"totalUsers":{"type":"number","description":"Total number of users","example":150},"usersByRole":{"type":"object","description":"Number of users per role. SUPER_ADMIN count is only included for super admin users.","example":{"SUPER_ADMIN":2,"TENANT_ADMIN":10,"TENANT_MODERATOR":25,"TENANT_VIEWER":113},"additionalProperties":{"type":"number"}},"activeUsers":{"type":"number","description":"Number of active users","example":140},"inactiveUsers":{"type":"number","description":"Number of inactive users","example":10}},"required":["totalUsers","usersByRole","activeUsers","inactiveUsers"]},"DtoListUsersResponseItem":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"email":{"type":"string","readOnly":true},"firstName":{"type":"string","readOnly":true},"lastName":{"type":"string","readOnly":true},"tenantId":{"type":"object","readOnly":true},"role":{"type":"object","readOnly":true},"isActive":{"type":"boolean","readOnly":true}},"required":["id","email","firstName","lastName","tenantId","role","isActive"]},"DtoPaginatedUsersResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DtoListUsersResponseItem"}},"total":{"type":"number"},"page":{"type":"number"},"per_page":{"type":"number"},"last_page":{"type":"number"},"to":{"type":"number"},"from":{"type":"number"}},"required":["data","total","page","per_page","last_page","to","from"]},"DtoGetUserByIdResponse":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"email":{"type":"string","readOnly":true},"firstName":{"type":"string","readOnly":true},"lastName":{"type":"string","readOnly":true},"tenantId":{"type":"object","readOnly":true},"role":{"type":"object","readOnly":true},"isActive":{"type":"boolean","readOnly":true}},"required":["id","email","firstName","lastName","tenantId","role","isActive"]},"DtoCreateUserRequest":{"type":"object","properties":{"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"tenantId":{"type":"object"},"role":{"type":"string","enum":["SUPER_ADMIN","TENANT_ADMIN","TENANT_MODERATOR","TENANT_VIEWER"]}},"required":["email","firstName","lastName"]},"DtoCreateUserResponse":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"email":{"type":"string","readOnly":true},"firstName":{"type":"string","readOnly":true},"lastName":{"type":"string","readOnly":true},"tenantId":{"type":"object","readOnly":true},"role":{"type":"string","readOnly":true}},"required":["id","email","firstName","lastName","tenantId","role"]},"DtoResendInvitationRequest":{"type":"object","properties":{"tenantId":{"type":"string","description":"When resending as super-admin: required if the user belongs to multiple tenants. Ignored for tenant-scoped admins.","format":"uuid"}}},"DtoResendInvitationResponse":{"type":"object","properties":{"message":{"type":"string","description":"Success message","example":"Invitation has been resent successfully"},"emailDelivered":{"type":"boolean","description":"False if the invitation token was updated but sending the email failed; retry resend or check logs.","example":true}},"required":["message","emailDelivered"]},"DtoUpdateUserRequest":{"type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"}},"required":["firstName","lastName"]},"DtoUpdateUserResponse":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"email":{"type":"string","readOnly":true},"firstName":{"type":"string","readOnly":true},"lastName":{"type":"string","readOnly":true},"updatedAt":{"type":"object","readOnly":true}},"required":["id","email","firstName","lastName","updatedAt"]},"DtoUpdateUserRoleRequest":{"type":"object","properties":{"role":{"type":"string","enum":["SUPER_ADMIN","TENANT_ADMIN","TENANT_MODERATOR","TENANT_VIEWER"],"description":"New role to assign to the user"}},"required":["role"]},"DtoBulkDeleteUsersRequest":{"type":"object","properties":{"userIds":{"example":["123e4567-e89b-12d3-a456-426614174000","223e4567-e89b-12d3-a456-426614174001"],"type":"array","items":{"type":"string"}}},"required":["userIds"]},"DtoBulkDeleteUsersError":{"type":"object","properties":{"userId":{"type":"string"},"reason":{"type":"string"}},"required":["userId","reason"]},"DtoBulkDeleteUsersResponse":{"type":"object","properties":{"deletedCount":{"type":"number","example":5},"failedCount":{"type":"number","example":2},"errors":{"description":"Present when failedCount > 0","type":"array","items":{"$ref":"#/components/schemas/DtoBulkDeleteUsersError"}}},"required":["deletedCount","failedCount"]},"DtoForgotPasswordRequest":{"type":"object","properties":{"email":{"type":"string","description":"Email address of the user requesting password reset","example":"user@example.com"}},"required":["email"]},"DtoForgotPasswordResponse":{"type":"object","properties":{"message":{"type":"string","description":"Success message","example":"Password reset email has been sent"}},"required":["message"]},"DtoSetPasswordRequest":{"type":"object","properties":{"inviteToken":{"type":"string","description":"Invite token received via email"},"password":{"type":"string","description":"New password for the user"},"repeatedPassword":{"type":"string","description":"Repeated password for confirmation"}},"required":["inviteToken","password","repeatedPassword"]},"DtoSetPasswordResponse":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"email":{"type":"string","readOnly":true},"firstName":{"type":"string","readOnly":true},"lastName":{"type":"string","readOnly":true},"tenantId":{"type":"object","readOnly":true},"role":{"type":"object","readOnly":true}},"required":["id","email","firstName","lastName","tenantId","role"]},"DtoResetPasswordRequest":{"type":"object","properties":{"token":{"type":"string","description":"Password reset token received via email"},"password":{"type":"string","description":"New password for the user"},"repeatedPassword":{"type":"string","description":"Repeated password for confirmation"}},"required":["token","password","repeatedPassword"]},"DtoResetPasswordResponse":{"type":"object","properties":{"message":{"type":"string","readOnly":true}},"required":["message"]},"DtoChangePasswordRequest":{"type":"object","properties":{"currentPassword":{"type":"string","description":"Current password of the user"},"newPassword":{"type":"string","description":"New password for the user"},"repeatedPassword":{"type":"string","description":"Repeated password for confirmation"}},"required":["currentPassword","newPassword","repeatedPassword"]},"DtoStartUploadRequest":{"type":"object","properties":{"tenantId":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"}},"required":["filename"]},"DtoStartUploadResponse":{"type":"object","properties":{"uploadId":{"type":"string"},"key":{"type":"string"}},"required":["uploadId","key"]},"DtoUploadPartUrlRequest":{"type":"object","properties":{"key":{"type":"string"},"uploadId":{"type":"string"},"partNumber":{"type":"number"}},"required":["key","uploadId","partNumber"]},"DtoUploadPartUrlResponse":{"type":"object","properties":{"uploadUrl":{"type":"string"}},"required":["uploadUrl"]},"DtoUploadPart":{"type":"object","properties":{"ETag":{"type":"string","description":"ETag returned from S3 after uploading a part"},"partNumber":{"type":"number","description":"Part number (1-indexed)"}},"required":["ETag","partNumber"]},"DtoCompleteUploadRequest":{"type":"object","properties":{"key":{"type":"string"},"uploadId":{"type":"string"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/DtoUploadPart"}},"tenantId":{"type":"string","description":"Tenant ID (required for super-admin, optional for tenant users)"}},"required":["key","uploadId","parts"]},"DtoCompleteUploadResponse":{"type":"object","properties":{"id":{"type":"string"},"r2Key":{"type":"object"},"url":{"type":"string"},"tenantId":{"type":"object"},"fileName":{"type":"string"},"createdAt":{"format":"date-time","type":"string"}},"required":["id","r2Key","url","tenantId","fileName","createdAt"]},"DtoTourLocalizedTitleRequest":{"type":"object","properties":{"localeId":{"type":"string"},"localizedTitle":{"type":"string"}},"required":["localeId","localizedTitle"]},"DtoCreateTourRequest":{"type":"object","properties":{"tenantId":{"type":"object","nullable":true},"title":{"type":"string"},"localizedTitles":{"type":"array","items":{"$ref":"#/components/schemas/DtoTourLocalizedTitleRequest"}},"thumbnailId":{"type":"object","nullable":true}},"required":["title"]},"DtoTourLocalizedTitleResponse":{"type":"object","properties":{"locale":{"$ref":"#/components/schemas/DtoLocaleResponse"},"localizedTitle":{"type":"string"}},"required":["locale","localizedTitle"]},"DtoTourResponse":{"type":"object","properties":{"id":{"type":"string"},"tenantId":{"type":"string"},"tenantName":{"type":"string"},"title":{"type":"string"},"startingSceneId":{"type":"object","nullable":true},"thumbnailId":{"type":"object","nullable":true},"thumbnail":{"$ref":"#/components/schemas/DtoStorageFileData"},"localizedTitles":{"type":"array","items":{"$ref":"#/components/schemas/DtoTourLocalizedTitleResponse"}}},"required":["id","tenantId","title"]},"DtoPaginatedToursResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DtoTourResponse"}},"total":{"type":"number"},"page":{"type":"number"},"per_page":{"type":"number"},"last_page":{"type":"number"},"from":{"type":"number"},"to":{"type":"number"}},"required":["data","total","page","per_page","last_page","from","to"]},"StorageFile":{"type":"object","properties":{}},"DtoSceneLocalizedTitleResponse":{"type":"object","properties":{"locale":{"$ref":"#/components/schemas/DtoLocaleResponse"},"localizedTitle":{"type":"string"}},"required":["locale","localizedTitle"]},"DtoHotspotResponse":{"type":"object","properties":{"id":{"type":"string"},"tourId":{"type":"string"},"sceneId":{"type":"string"},"targetSceneId":{"type":"string"},"yaw":{"type":"number"},"pitch":{"type":"number"},"label":{"type":"string"}},"required":["id","tourId","sceneId","targetSceneId","yaw","pitch","label"]},"DtoCurrentTenantSceneResponse":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"tenantId":{"type":"string"},"tourId":{"type":"string"},"storageFileId":{"type":"object","nullable":true},"storageFile":{"$ref":"#/components/schemas/StorageFile"},"localizedTitles":{"type":"array","items":{"$ref":"#/components/schemas/DtoSceneLocalizedTitleResponse"}},"locale":{"type":"object","nullable":true},"localization":{"type":"object","additionalProperties":{"type":"string"}},"hotspots":{"type":"array","items":{"$ref":"#/components/schemas/DtoHotspotResponse"}}},"required":["id","title","tenantId","tourId","storageFileId","storageFile","localization","hotspots"]},"DtoCurrentTenantTourResponse":{"type":"object","properties":{"id":{"type":"string"},"tenantId":{"type":"string"},"tenantName":{"type":"string"},"title":{"type":"string"},"startingSceneId":{"type":"object","nullable":true},"thumbnailId":{"type":"object","nullable":true},"thumbnail":{"$ref":"#/components/schemas/DtoStorageFileData"},"localizedTitles":{"type":"array","items":{"$ref":"#/components/schemas/DtoTourLocalizedTitleResponse"}},"locale":{"type":"object","nullable":true},"localization":{"type":"object","additionalProperties":{"type":"string"}},"scenes":{"type":"array","items":{"$ref":"#/components/schemas/DtoCurrentTenantSceneResponse"}}},"required":["id","tenantId","title","localization","scenes"]},"DtoUpdateTourRequest":{"type":"object","properties":{"title":{"type":"string"},"thumbnailUrl":{"type":"string"},"thumbnailId":{"type":"object","nullable":true},"localizedTitles":{"type":"array","items":{"$ref":"#/components/schemas/DtoTourLocalizedTitleRequest"}}}},"DtoPatchTourStartingSceneRequest":{"type":"object","properties":{"startingSceneId":{"type":"string"}},"required":["startingSceneId"]},"DtoSceneResponse":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"tenantId":{"type":"string"},"tourId":{"type":"string"},"storageFileId":{"type":"object","nullable":true},"storageFile":{"$ref":"#/components/schemas/StorageFile"},"localizedTitles":{"type":"array","items":{"$ref":"#/components/schemas/DtoSceneLocalizedTitleResponse"}}},"required":["id","title","tenantId","tourId","storageFileId","storageFile"]},"DtoSceneLocalizedTitleRequest":{"type":"object","properties":{"localeId":{"type":"string"},"localizedTitle":{"type":"string"}},"required":["localeId","localizedTitle"]},"DtoCreateSceneRequest":{"type":"object","properties":{"title":{"type":"string"},"localizedTitles":{"type":"array","items":{"$ref":"#/components/schemas/DtoSceneLocalizedTitleRequest"}},"storageFileId":{"type":"string","description":"Storage file UUID (required when url is not provided)"},"url":{"type":"string","description":"External 360° image URL (converted to a storage file on save)"}},"required":["title"]},"DtoUpdateSceneRequest":{"type":"object","properties":{"title":{"type":"string"},"localizedTitles":{"type":"array","items":{"$ref":"#/components/schemas/DtoSceneLocalizedTitleRequest"}},"storageFileId":{"type":"string"},"url":{"type":"string","description":"External 360° image URL (converted to a storage file on save)"}}},"DtoCreateHotspotRequest":{"type":"object","properties":{"targetSceneId":{"type":"string"},"yaw":{"type":"number"},"pitch":{"type":"number"}},"required":["targetSceneId","yaw","pitch"]},"DtoUpdateHotspotRequest":{"type":"object","properties":{"targetSceneId":{"type":"string"},"yaw":{"type":"number"},"pitch":{"type":"number"}}},"DtoCreateFeatureFlagRequest":{"type":"object","properties":{"key":{"type":"string","description":"Unique key for the feature flag"},"enabled":{"type":"boolean","description":"Whether the flag is enabled"}},"required":["key","enabled"]},"DtoFeatureFlagResponse":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"enabled":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","key","enabled","createdAt"]},"DtoPaginatedFeatureFlagsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DtoFeatureFlagResponse"}},"total":{"type":"number"},"page":{"type":"number"},"per_page":{"type":"number"},"last_page":{"type":"number"},"to":{"type":"number"},"from":{"type":"number"}},"required":["data","total","page","per_page","last_page","to","from"]},"DtoUpdateFeatureFlagRequest":{"type":"object","properties":{"key":{"type":"string","description":"Unique key for the feature flag"},"enabled":{"type":"boolean","description":"Whether the flag is enabled"}}},"DtoPatchFeatureFlagEnabledRequest":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the feature flag is enabled"}},"required":["enabled"]},"DtoCreateKnowledgeRequest":{"type":"object","properties":{"content":{"type":"string","description":"Knowledge content (max 200,000 characters)"}},"required":["content"]},"DtoKnowledgeResponse":{"type":"object","properties":{"id":{"type":"string"},"tenantId":{"type":"string"},"content":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","tenantId","content","createdAt"]},"DtoUpdateKnowledgeRequest":{"type":"object","properties":{"content":{"type":"string","description":"Knowledge content (max 200,000 characters)"}}},"DtoSessionEventItemRequest":{"type":"object","properties":{"eventId":{"type":"string","format":"uuid"},"eventType":{"type":"string","enum":["SESSION_START","SESSION_END","CONTENT_OPEN","CONTENT_CLOSE","CONTENT_COMPLETE","GAME_OPEN","GAME_CLOSED","GAME_COMPLETE","TOUR_START","TOUR_END"]},"hardwareId":{"type":"string"},"sessionId":{"type":"object","format":"uuid","nullable":true},"occurredAt":{"type":"string","format":"date-time"},"contentId":{"type":"object"},"metadataJson":{"description":"JSON object or JSON string. Legacy key/value objects and arrays of those pairs are normalized to one flat object before persist.","oneOf":[{"type":"object","additionalProperties":true},{"type":"string"}],"nullable":true}},"required":["eventId","eventType","occurredAt"]},"DtoIngestSessionEventsRequest":{"type":"object","properties":{"events":{"type":"array","items":{"$ref":"#/components/schemas/DtoSessionEventItemRequest"}}},"required":["events"]},"DtoPeakUsageHourResponse":{"type":"object","properties":{"hour":{"type":"number"},"sessionCount":{"type":"number"}},"required":["hour","sessionCount"]},"DtoSessionEventMediaStatResponse":{"type":"object","properties":{"contentId":{"type":"string","description":"Content / media identifier from session events"},"mediaTitle":{"type":"object","nullable":true,"description":"Title from tenant media when contentId matches media.id; null if unknown or deleted"},"mediaKind":{"type":"string","enum":["video","audio","image"],"nullable":true,"description":"Inferred from storage file URL or file_name extension on the main media file"},"openCount":{"type":"number","description":"CEIL(SUM(duration) / MAX(total_duration)) per CONTENT_CLOSE with metadata, aggregated per media."},"completionRatePercent":{"type":"object","nullable":true,"description":"100 * FLOOR(SUM(duration) / MAX(total_duration)) / openCount when openCount > 0 (values not exposed separately)."},"durationCompletionRatePercent":{"type":"object","nullable":true,"description":"100 * sumDuration / sumTotalDuration when sumTotalDuration > 0; uncapped (may exceed 100% when content is rewatched)."}},"required":["contentId","mediaTitle","mediaKind","openCount","completionRatePercent","durationCompletionRatePercent"]},"DtoSessionEventStatsMetaResponse":{"type":"object","properties":{"warnings":{"type":"array","items":{"type":"string"}}}},"DtoSessionEventStatsResponse":{"type":"object","properties":{"totalSessions":{"type":"number"},"avgSessionDurationSeconds":{"type":"object","nullable":true,"description":"Mean SESSION_END metadata duration per session (seconds; same unit as stored duration)"},"contentCompletionRatePercent":{"type":"object","nullable":true},"openCount":{"type":"number","description":"Tenant-wide SUM of CEIL(SUM(duration) / MAX(total_duration)) per content from CONTENT_CLOSE events."},"contentOpenCount":{"type":"number","description":"Same as openCount. Tenant-wide sum of per-content open counts."},"uniqueHeadsetsServed":{"type":"number"},"avgContentsPerSession":{"type":"object","nullable":true},"peakUsageByHour":{"type":"array","items":{"$ref":"#/components/schemas/DtoPeakUsageHourResponse"}},"repeatHeadsetRatePercent":{"type":"object","nullable":true},"mediaStats":{"type":"array","items":{"$ref":"#/components/schemas/DtoSessionEventMediaStatResponse"}},"averageGameDuration":{"type":"object","nullable":true,"description":"Mean metadata playTime on GAME_COMPLETE and GAME_CLOSED events (same unit as clients send, e.g. seconds)"},"averageGamePoints":{"type":"object","nullable":true,"description":"Mean metadata score on GAME_COMPLETE and GAME_CLOSED events"},"gameSessions":{"type":"number","description":"Count of GAME_OPEN events in the filtered range"},"meta":{"$ref":"#/components/schemas/DtoSessionEventStatsMetaResponse"}},"required":["totalSessions","avgSessionDurationSeconds","contentCompletionRatePercent","openCount","contentOpenCount","uniqueHeadsetsServed","avgContentsPerSession","peakUsageByHour","repeatHeadsetRatePercent","mediaStats","averageGameDuration","averageGamePoints","gameSessions"]},"DtoQuantityAnswer":{"type":"object","properties":{"licences":{"type":"number","minimum":1,"maximum":100},"quantity":{"type":"number","minimum":1,"maximum":100,"deprecated":true,"description":"Legacy alias for licences"},"vr-equipment":{"type":"string","enum":["own","vr-hotelo"]}},"required":["vr-equipment"]},"DtoModuleAnswer":{"type":"object","properties":{"selections":{"type":"array","items":{"type":"string","enum":["reception","rooms","fairs","other"]}},"other":{"type":"string","description":"Required when \"other\" is in selections"}},"required":["selections"]},"DtoEnvironmentAnswer":{"type":"object","properties":{"selection":{"type":"string","enum":["andoria","risa","vendikar","custom-made"]},"other":{"type":"string","description":"Required when selection is \"custom-made\""}},"required":["selection"]},"DtoContentAnswer":{"type":"object","properties":{"selections":{"type":"array","items":{"type":"string","enum":["360-videos","360-photos","2d-videos","photos-promotional","music-audio","vr-games-interactive","no-content-production","other"]}},"other":{"type":"string","description":"Required when \"other\" is in selections"}},"required":["selections"]},"DtoContactAnswer":{"type":"object","properties":{"name":{"type":"string"},"surname":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["name","surname","email","phone"]},"DtoFormAnswers":{"type":"object","properties":{"package":{"type":"string","enum":["essential","standard","premium","ultimate"]},"quantity":{"$ref":"#/components/schemas/DtoQuantityAnswer"},"licence-duration":{"type":"string","enum":["6-months","1-year","2-years","3-years"]},"modules":{"$ref":"#/components/schemas/DtoModuleAnswer"},"environment":{"$ref":"#/components/schemas/DtoEnvironmentAnswer"},"content":{"$ref":"#/components/schemas/DtoContentAnswer"},"branding":{"type":"string","enum":["stickers","wrapping"]},"vr-stand":{"type":"string","enum":["dockel-prime","dockel-eco","dockel-eco-wallker","suitcase","no-stand"]},"contact":{"$ref":"#/components/schemas/DtoContactAnswer"}},"required":["package","quantity","licence-duration","modules","environment","content","branding","vr-stand","contact"]},"DtoSubmitConfigurationRequest":{"type":"object","properties":{"formId":{"type":"object","example":"vr-hotelo-configuration"},"formVersion":{"type":"object","example":"2.0.1"},"submittedAt":{"type":"string","example":"2026-06-17T14:30:00.000Z"},"answers":{"$ref":"#/components/schemas/DtoFormAnswers"},"turnstileToken":{"type":"string","description":"Cloudflare Turnstile response token","example":"0.abcdefghijklmnopqrstuvwxyz"}},"required":["formId","formVersion","submittedAt","answers","turnstileToken"]}}}}