519 Commits

Author SHA1 Message Date
Carlos Santos
2ce58f08fd backend: update role validation to include SPEAKER in participant middleware 2025-08-07 19:08:51 +02:00
Carlos Santos
b6acebfa18 backend: implement participant role management and update signals 2025-08-07 18:51:20 +02:00
juancarmore
1161f1bb21 Rename publisher role to speaker across the application 2025-08-06 22:14:56 +02:00
juancarmore
42db1b7bb6 backend: update recording handling to include roomName and adjust related logic 2025-08-06 13:33:56 +02:00
juancarmore
6e9c1743a1 backend: update participant handling to make participantName optional and adjust related logic 2025-08-05 17:52:13 +02:00
juancarmore
5637c56f44 backend: update dependencies in package-lock.json 2025-08-05 17:50:03 +02:00
juancarmore
aef2a2484b backend: allow publisher participants to retrieve room information except moderatorRoomUrl field 2025-08-05 17:49:20 +02:00
juancarmore
459537ecfb backend: replace roomIdPrefix with roomName 2025-08-05 16:36:03 +02:00
Carlos Santos
76093b9f42 backend: add body-parser dependency to backend 2025-08-04 12:52:54 +02:00
Carlos Santos
583941fbd9 backend: moved update room endpoint from internal to public 2025-07-30 15:48:34 +02:00
Carlos Santos
f5b0944599 backend: add launch configuration for debugging Jest tests 2025-07-30 13:07:33 +02:00
Carlos Santos
14e40e1ccc backend: update room status signal handling to use recordingInfo instead of EgressInfo 2025-07-30 12:59:49 +02:00
Carlos Santos
12d019fdc4 backend(test): rename handleRecordingLockTimeout to handleRecordingTimeout in race conditions tests 2025-07-29 19:56:37 +02:00
Carlos Santos
2b9f8dd65e backend: enhance recording signal handling in LivekitWebhookService and RecordingService 2025-07-29 19:12:20 +02:00
juancarmore
bf8cb4ba5f Update all package-lock.json files 2025-07-24 00:58:21 +02:00
Carlos Santos
6ddb002561 backend: add debug logging for webhook event object in lkWebhookHandler 2025-07-23 16:06:14 +02:00
juancarmore
b92aec9d30 backend: reduce login attempt window to 5 minutes and skip successful requests 2025-07-22 12:39:03 +02:00
juancarmore
4ca7f82d15 Refactor OpenAPI documentation for clarity and consistency 2025-07-21 18:34:50 +02:00
cruizba
c0ae9c38b6 backend: conditionally configure S3 credentials to support IAM Role usage 2025-07-18 16:48:09 +02:00
juancarmore
51df863310 backend: enhance error handling for egress listing 2025-07-17 19:22:44 +02:00
Juan Carlos Moreno García
7464ef3c6f
Fix tests (#6)
* Adds TODO for API key rejection

Adds a TODO comment in the recording routes to reject requests that include an API key.

Adds FIXME comments to recording security tests, indicating that the tests do not need to start a recording to check the fail case.

* backend: remove TODO comments for API key rejection in recording routes

* test: enhace recording security tests by only creating necessary recordings

---------

Co-authored-by: Carlos Santos <4a.santos@gmail.com>
2025-07-17 16:28:14 +02:00
juancarmore
4d13eb94a8 fix(token): update verifyToken method to include a timeout parameter 2025-07-17 11:04:22 +02:00
Carlos Santos
462a61842e backend: update dependencies and devDependencies in package.json
- Bump @aws-sdk/client-s3 from 3.673.0 to 3.846.0
- Update cron from ^4.1.0 to 4.3.2
- Update dotenv from 16.4.7 to 16.6.1
- Bump express-openapi-validator from ^5.4.2 to 5.5.7
- Update express-rate-limit from ^7.5.0 to 7.5.1
- Bump inversify from ^6.2.1 to 6.2.2
- Update ioredis from ^5.4.2 to 5.6.1
- Bump livekit-server-sdk from 2.6.2 to 2.13.1
- Update winston from 3.14.2 to 3.17.0
- Update yamljs from ^0.3.0 to 0.3.0
- Bump zod from ^3.24.2 to 3.25.76
- Update @openapitools/openapi-generator-cli from ^2.16.3 to 2.21.2
- Update @types/cookie-parser from 1.4.7 to 1.4.9
- Update @types/cors from 2.8.17 to 2.8.19
- Update @types/express from 4.17.21 to 4.17.23
- Update @types/node from ^20.12.14 to 22.16.4
- Update @types/supertest from ^6.0.2 to 6.0.3
- Update @types/swagger-ui-express from ^4.1.6 to 4.1.8
- Update @types/validator from ^13.12.2 to 13.15.2
- Update @typescript-eslint/eslint-plugin from 6.7.5 to 6.21.0
- Update @typescript-eslint/parser from 6.7.5 to 6.21.0
- Update eslint from 8.50.0 to 8.57.1
- Update eslint-config-prettier from 9.0.0 to 9.1.0
- Update nodemon from 3.1.9 to 3.1.10
- Update openapi-generate-html from ^0.4.2 to 0.4.4
- Update prettier from 3.3.3 to 3.6.2
- Update supertest from ^7.0.0 to 7.1.3
- Update ts-jest from ^29.2.5 to 29.4.0
- Update ts-node from 10.9.2 to tsx ^4.20.3
- Update typescript from 5.4.5 to 5.8.3
- Update unzipper from 0.12.3
2025-07-16 12:33:22 +02:00
Carlos Santos
0ae172e4ec backend: stop pending egress immediately after timeout in recording service 2025-07-16 11:11:01 +02:00
Carlos Santos
28adbd2a38 backend: remove health check method from RedisService 2025-07-15 16:31:41 +02:00
Carlos Santos
385dab5710 backend: implement health check for storage providers and integrate into service initialization 2025-07-15 16:24:55 +02:00
Carlos Santos
da26614033 backend: terminate process on Redis connection failure during startup 2025-07-15 14:00:27 +02:00
Carlos Santos
8ffc4b942f backend: Improve error logging for webhook event failures 2025-07-15 12:20:23 +02:00
Carlos Santos
ef6de48a19 backend: remove console log from stopAllRecordings response checks 2025-07-14 14:49:32 +02:00
Carlos Santos
dc268a436c backend: enhance webhook handling with locking mechanism and error handling 2025-07-14 14:38:58 +02:00
Carlos Santos
bbd3c274c4 backend: fix stopAllRecordings request adding participant role header
- enhance stopAllRecordings function to filter active recordings
- validate responses
2025-07-14 13:42:53 +02:00
juancarmore
169030a995 test: update tests and helpers to reflect code changes 2025-07-11 12:14:15 +02:00
juancarmore
98de6fe0e8 backend: refactor token expiration handling to use internal configuration constants 2025-07-11 12:04:12 +02:00
juancarmore
82592e1f6c openapi: add x-participant-role header parameter and error response for invalid roles. Update related paths to include role validation. 2025-07-11 01:45:11 +02:00
juancarmore
fdd897b86b backend: update participant token validation middleware to always check for participant role header to specified a valid role include in the token roles. Refactor related middlewares to use the new participant token structure 2025-07-11 01:44:35 +02:00
juancarmore
22ce0e7d66 backend: upgrade participant token generation to include multiple roles in the same token 2025-07-11 01:41:44 +02:00
juancarmore
39f41560de backend: streamline moderator and publisher permissions by removing unused properties. Update tests and openapi docs 2025-07-10 00:31:42 +02:00
juancarmore
0fdb4c7d18 backend: update environment variables documentation and adjust participant token expiration 2025-07-10 00:30:18 +02:00
juancarmore
82d81e7598 test: update event controller to use DistributedEventService and correct 2025-07-09 01:32:29 +02:00
juancarmore
2202f8c3dc backend: add room existence check before sending data in LiveKit service 2025-07-07 17:23:34 +02:00
Carlos Santos
e1f60ab3c1 backend: update ov-components room status signal handling to use recording egress data 2025-07-04 17:53:07 +02:00
Carlos Santos
7361b71a7a backend: introduce FrontendEventService for frontend communication and update dependencies 2025-07-04 15:43:29 +02:00
Carlos Santos
273ad8c577 backend: replace SystemEventService with DistributedEventService and introduce distributed event model 2025-07-04 15:43:28 +02:00
juancarmore
62f5a64708 openapi: update autoDeletionDate examples to use future date and correct API server URLs 2025-07-04 14:02:19 +02:00
Carlos Santos
fbcb70dbc2
Add OpenVidu Meet Console implementation (#4)
* frontend: update icons for Rooms and Recordings in console navigation

* frontend: enhance overview component with user stats and improved layout

* frontend: implement theme service and design tokens for light/dark mode support

- Added ThemeService to manage theme preferences and system theme detection.
- Introduced design tokens for consistent styling across light and dark themes.
- Updated components to utilize the new navigation service for routing.
- Replaced SecurityPreferencesComponent with PreferencesComponent for settings.
- Enhanced UI with new styles and improved navigation structure.
- Added tests for ThemeService to ensure functionality.

* frontend: enhance overview component with title styling and icon integration

* frontend: remove unused Router import from overview component

* frontend: implement developers settings with API key and webhook configuration

* frontend: update styles and structure for console navigation and overview components

* frontend: simplify API key checks and integrate notification service for user feedback

* frontend: update openvidu-components-angular to version 3.3.0-dev2 and simplify Material Symbols stylesheet link

* frontend: adjust padding and gap for stat card and actions in overview component

* frontend: update import paths to use relative paths for better module resolution

* frontend: enhance sync-types.sh script with advanced options and detailed usage instructions

* typings: update TypeScript declaration files and improve sync-types.sh script for better clarity and functionality

* webcomponent: webcomponent typings are now moved to typings directory

* Revert "typings: update TypeScript declaration files and improve sync-types.sh script for better clarity and functionality"

This reverts commit 7da952bc44be20c3f74ffb82bf941b96b78ad019.

* typings: improve sync-types.sh script for clarity and consistency

* test: update error message for empty downloaded file check

* frontend: update outbound event message types in video room and web component manager services

* frontend: enhance styling for console component and adjust nav item border radius

* style: update comments in disabled class for clarity and consistency; refactor import paths in room-form component

* typings: update import paths in message.type.ts to include file extensions

* frontend: enhance rooms management interface with improved loading states, search functionality, and table features

* frontend: enhance loading state with improved UI and animations for room loading process

* frontend: enhance rooms table with auto-deletion feature and improve status display

* frontend: update import paths for services and add containsRoute method to NavigationService

* frontend: remove unused components and associated files from shared-meet-components

* frontend: add logo selector component and enhance preferences settings with access controls

* frontend: add SessionStorageService import to extract query params guard

* frontend: add margin-bottom utility class to overview container

* frontend: update description for creating a room in the overview component

* frontend: Added recording list component

* frontend: update padding in mat-sidenav entry to use spacing variable

* frontend: update text for delete room button to use lowercase

* frontend: enhance console navigation with tooltips and active item styling

* frontend: refactor styles in console navigation for consistency and improved theming

* frontend: add border to card header for improved visual separation

* frontend: created room list reusable component

* frontend: adjust vertical alignment of table cells in recording lists

* frontend: enhance room status and auto-deletion indicators with tooltips and improved styling

* frontend: enhance HTTP service methods to include status codes in responses

* frontend: fix duration formatting to use integer seconds instead of fixed-point

* frontend: refactor icon styles in status badge for consistency

* Add modular SCSS structure for design tokens, mixins, animations, and utility classes

- Introduced _animations.scss for keyframes and animation utility classes.
- Refactored _design-tokens.scss to import modular design system files for better maintainability.
- Created _mixins-components.scss for component-specific mixins like cards and buttons.
- Added _mixins-layout.scss for layout-related mixins and responsive design utilities.
- Established _mixins-responsive.scss for breakpoint mixins to facilitate responsive design.
- Introduced _tokens-core.scss for core design tokens including colors, spacing, and typography.
- Created _tokens-themes.scss for theme-specific design tokens for light and dark modes.
- Added _utilities.scss for reusable utility classes to streamline common styling patterns.

* frontend: Refactor styles for settings preferences component and enhance utility classes

- Simplified SCSS for preferences.component.scss by utilizing utility classes for layout and styling.
- Introduced new utility classes for Material components, including slide toggle and navigation list.
- Enhanced form section styling with consistent spacing and layout adjustments.
- Added responsive design patterns for toolbar and table components.
- Improved loading and empty state styles for better user experience.

* frontend: standardize page layout and loading states across components

* frontend: enhance status badge and action button styles for consistency

* ci: update unit test workflow to include typings setup

* test: update import path for WebComponentCommand to typings directory

* frontend: refactor dialog component structure and enhance styles for improved accessibility and responsiveness

* frontend: rename batchDelete methods to bulkDelete for consistency

* frontend: implement confirmation dialog for room deletion with improved error handling

* frontend: extract feature-specific API logic from HttpService into dedicated services

* frontend: extract common recording actions into RecordingManagerService

* frontend: refactor navigation handling for improved consistency

* backend: add endpoint to download multiple recordings in a zip file and refactor bulkDeleteRecordings to delete only recordings from the same room if recording token is provided

* openapi: add download endpoint for recordings and update bulk delete logic to enforce room constraints

* frontend: enhance recording media URL generation and add bulk delete and download functionalities

* frontend: rename 'batchDownload' to 'bulkDownload' for consistency and implement missing methods in RecordingsComponent

* frontend: Implement Room Creation Wizard with Step Indicator and Navigation

- Added StepIndicatorComponent for visual step tracking in the wizard.
- Created WizardNavComponent for navigation controls (Next, Previous, Cancel, Finish).
- Developed RoomWizardComponent to manage the wizard's state and steps.
- Introduced WizardStateService to handle the wizard's data and navigation logic.
- Defined WizardStep and WizardNavigationConfig models for step management.
- Implemented basic structure for individual steps: Basic Info, Recording Settings, Recording Trigger, Recording Layout, and Preferences.
- Integrated components into the room creation flow, allowing users to navigate through steps.
- Added unit tests for all new components and services to ensure functionality.

* feat(wizard): enhance wizard functionality and UI

- Added validation form groups to WizardStep interface for better form handling.
- Updated WizardNavigationConfig to include customizable button labels and states.
- Implemented step navigation with event handling in room-wizard component.
- Refactored basic info step into a standalone component with reactive form support.
- Improved styling for the basic info step and action buttons.
- Enhanced wizard state management to handle dynamic step visibility based on user input.
- Added methods for loading existing data and saving form changes automatically.
- Updated tests to reflect changes in component structure and functionality.

* feat(recording-preferences): implement recording preferences step with form and options

* feat(room-wizard): add recording trigger step with selectable options and form handling

* feat(recording-preferences): refactor option selection to use SelectableCard component and update styles

* test: add tests for download recordings endpoint and update tests for bulk delete recordings

* openapi: improve descriptions for bulk delete operations and add new response for marked rooms

* frontend: update bulk actions and add sharing functionality in RecordingsComponent, and enhace RecordingListsComponent

* frontend: implement bulkDeleteRooms method and enhace RoomsComponent and RoomListsComponent

* typings: add MeetApiKey interface

* backend: update API key handling to use MeetApiKey type

* openapi: create API key schema and update response references

* backend: add webhook URL testing functionality and validation

* frontend: simplify HTTP request methods by removing response observation

* frontend: streamline OverviewComponent by removing unused observables and simplifying data loading

* frontend: add API key management methods to AuthService

* frontend: enhance GlobalPreferencesService by adding webhook preferences management

* frontend: refactor DevelopersSettingsComponent to improve API key handling and streamline webhook configuration

* openapi: add webhook URL testing endpoint with request and response schemas

* test: add tests for webhook URL validation

* frontend: enhance PreferencesComponent and add changePassword method in AuthService

* feat(recording-preferences): add recording access control options and enhance UI animations

* feat(recording-layout): implement recording layout selection step with form handling and visual options

* feat(room-preferences): implement room preferences step with form handling and toggle options

* feat(room-wizard): enhance form handling and default value saving across components

* feat(layouts): add new layout images for grid, single speaker, and speaker configurations

* feat(developers): adjust API key field button padding and update spacing in API key display

* feat(rooms-lists): enhance button formatting and add tooltips for room status and auto-deletion

* feat(room-wizard): update room creation logic and form field names for consistency

* feat(room-wizard): add skip button functionality and enhance navigation handling

* feat(basic-info): simplify form layout by removing action buttons and related styles

* fix(wizard-navigation): change currentStepId type from string to number for consistency

* feat(styles): enhance button padding and hover effect in batch actions for improved usability

* fix(wizard-navigation): adjust padding for improved layout consistency

* feat(basic-info): add clear button for deletion date and enhance time selection layout

* feat(rooms-list): enhance deletion date display with new styling and structure

* fix(basic-info): remove debugger statement from saveFormData method

* refactor(step-indicator): remove commented-out styles for cleaner code

* feat(step-indicator): enhance responsive layout handling and emit layout changes

* feat(overview): improve loading state handling and update stats management

* feat(step-indicator): enable navigation between steps and improve layout handling

* feat(room-wizard): refactor state management to use MeetRoomOptions and improve data handling across components

* feat(step-indicator): enhance layout handling and improve text overflow management for better responsiveness

* feat(step-indicator): update step properties to enhance navigation and state management

* feat(room-wizard): add 'Create Room' label to finish button in navigation config

* openapi: add force-deletion parameter to delete room endpoint

* frontend: split code in ContextService into domain specific services and rename it to AppDataSerivce

* frontend: enhace FeatureConfigurationService to use signal-based approach and remove unused preferences and permissions

* feat(basic-info): update deletion hint icon and improve warning color consistency

* feat(room-service): rename saveRoomPreferences to updateRoom and adjust API path for preference updates

* feat(room-wizard): implement edit mode for room configuration, allowing users to update existing room settings

* feat(pro-feature-badge): create ProFeatureBadge component and integrate into logo selector and selectable card

* fix(recording): adjust compression level for zip archive in downloadRecordingsZip

* fix(internal-config): remove FIXME comments related to LK bug for meeting timeouts

* frontend: reorganize imports and remove unused components

* refactor(console): rename 'Developers' to 'Embedded' in navigation and update related routes

* fix(console-nav): update toolbar title from 'OpenVidu Console' to 'OpenVidu Meet'

* feat(users-permissions): create UsersPermissions component and update routing

* feat(users-permissions): add pro feature badge to user authentication section

* fix(overview): update navigation and text from 'Developers' to 'Embedded'

* feat(overview): update authentication configuration card and navigation

* frontend: refactor RoomRecordingsComponent to use RecordingListsComponent

* refactor: update API paths to remove 'meet' prefix for consistency

* frontend: update navigation paths to remove 'console' prefix for consistency

* feat(video-room): add leave and end meeting functionality with toolbar buttons

* fix(overview): remove unnecessary comment on initial loading state

* feat(wizard): enable quick create functionality in wizard navigation

* feat(step-indicator): implement safe current step index handling for edit mode

* feat(wizard): update quick create visibility to show only on first step in edit mode

* feat(users-permissions): refactor admin password handling and validation

* webcomponent: update Playwright dependencies and refactor leaveRoom functionality

- Updated Playwright and Playwright Test versions in package.json to 1.53.2.
- Refactored leaveRoom function to accept a role parameter, allowing for different behavior based on user role (moderator or publisher).
- Updated E2E tests to utilize the new leaveRoom function, ensuring proper cleanup and behavior for both roles.
- Removed unnecessary afterEach cleanup in UI Feature Preferences tests.

* frontend: add IDs to leave and end meeting buttons for better accessibility

* testapp: update package-lock.json and refactor ConfigService constructor for improved environment variable handling

* frontend: update background colors for improved visual consistency

* chore: add tslib dependency and enhance target directory validation in sync-types.sh

* frontend: enhance accessibility by adding IDs to toolbar and form elements

---------

Co-authored-by: juancarmore <juancar_more2@hotmail.com>
2025-07-02 17:00:43 +02:00
juancarmore
b2eb0b5439 backend: add MEET_COOKIE_SECURE env var for cookie security settings 2025-06-24 18:36:17 +02:00
Juan Carlos Moreno García
98764597e2
Add Azure Blob Storage integration (#3)
* azure-features: added azure blob support for meet

* azure-feature: removed variables of .env files

* azure-features: added azure blob support for meet

* azure-feature: removed variables of .env files

* azure-features: fix to pass the boundary ranges test

* ci update Azure storage configuration in egress.yaml using yq

* ci: update yq command for modifying egress.yaml to use correct syntax

* ci: add logging for current storage provider in backend integration tests

* ci: update conditional syntax for Azure storage provider in backend integration tests

* feature-azure: modified package-lock

* ci: remove logging of current storage provider in backend integration tests

* ci: add pre-startup script execution for Azure setup in backend integration tests

* fix: streamline pre-startup command execution for Azure storage provider

* fix: update pre-startup command script for Azure storage provider

* fix: improve pre-startup command script for Azure storage provider

* fix: remove commented instruction for modifying egress.yaml in Azure setup

* fix: streamline pre-startup command execution in backend integration tests

* fix: correct command execution syntax in backend integration tests

* fix: add container name for Azure storage provider configuration

* fix: add container name and environment variables for Azure storage configuration

* ci: enhance recordings API tests to support Azure storage provider configuration

* ci: add support for Azure storage provider in webhook, security, global preferences, participants, meetings, and users API tests

* ci: add Azure container names for various API tests in backend integration workflow

* fix: update Azure storage container names for various API tests

* backend: fix - ensure all recordings are deleted after room security tests

* ci: remove MEET_WEBHOOK_ENABLED environment variable from OpenVidu Meet setup in all jobs

* backend: refactor storage services exports

* backend: update Azure Blob Storage references and error messages for consistency

* ci: add matrix strategy for Rooms API Tests to support multiple storage providers

* backend: rename ABS services for consistency

* backend: ensure maxResults is a number in listObjectsPaginated method

* ci: update storage provider from azure to abs in integration tests

---------

Co-authored-by: Piwccle <sergiosergi11@hotmail.com>
Co-authored-by: Carlos Santos <4a.santos@gmail.com>
2025-06-23 18:34:53 +02:00
juancarmore
b059acb159 test: improve test cleanup by adding disconnectFakeParticipants and consolidating room/recording deletions 2025-06-23 13:57:44 +02:00
juancarmore
a7528ba8ac test: add sleep to deleteRoom and bulkDeleteRooms for improved timing 2025-06-23 13:55:18 +02:00
juancarmore
49926459cd backend: add missing description for buildAccessRecordingSecretsKey method 2025-06-23 13:54:56 +02:00