mirror of
https://github.com/unraid/api.git
synced 2026-02-09 01:18:58 -06:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * API Key Authorization flow with consent screen, callback support, and a Tools page. * Schema-driven API Key creation UI with permission presets, templates, and Developer Authorization Link. * Effective Permissions preview and a new multi-select permission control. * **UI Improvements** * Mask/toggle API keys, copy-to-clipboard with toasts, improved select labels, new label styles, tab wrapping, and accordionized color controls. * **Documentation** * Public guide for the API Key authorization flow and scopes added. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
20 lines
476 B
TypeScript
20 lines
476 B
TypeScript
import gql from 'graphql-tag';
|
|
|
|
export const PREVIEW_EFFECTIVE_PERMISSIONS = gql`
|
|
query PreviewEffectivePermissions($roles: [Role!], $permissions: [AddPermissionInput!]) {
|
|
previewEffectivePermissions(roles: $roles, permissions: $permissions) {
|
|
resource
|
|
actions
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const GET_PERMISSIONS_FOR_ROLES = gql`
|
|
query GetPermissionsForRoles($roles: [Role!]!) {
|
|
getPermissionsForRoles(roles: $roles) {
|
|
resource
|
|
actions
|
|
}
|
|
}
|
|
`;
|