-
Notifications
You must be signed in to change notification settings - Fork 6
feat: descopers & management key CRUD #613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for managing "descopers" (internal users/administrators) in the management API. It introduces CRUD operations for creating, reading, updating, deleting, and listing descopers with role-based access control (RBAC) support.
Key changes:
- Added type definitions for descoper entities, attributes, roles, and RBAC configuration
- Implemented five management operations: create, load, update, delete, and loadAll
- Comprehensive test coverage for all descoper operations
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| lib/management/types.ts | Defines TypeScript types for descoper entities, RBAC, roles, and API request/response structures |
| lib/management/paths.ts | Adds API endpoint paths for descoper CRUD operations |
| lib/management/index.ts | Integrates descoper module into the main management API |
| lib/management/descoper.ts | Implements descoper management functions with HTTP client wrappers |
| lib/management/descoper.test.ts | Provides comprehensive unit tests for all descoper operations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 9 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Related Issues
Part-of: https://github.com/descope/etc/issues/12606
Depends-on: descope/descope-js#1292
Cover new Descoper methods..
Must