@danxbot/ui 20.1.0 → 20.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,8 +28,13 @@ export interface AccessRequestPanelProps {
|
|
|
28
28
|
permissions: Permission[];
|
|
29
29
|
/** What the approver holds. A role holding anything outside this set cannot be chosen. */
|
|
30
30
|
ownPermissionKeys: string[];
|
|
31
|
+
/**
|
|
32
|
+
* The role to start on instead of the narrowest allowed one (DX-4431: an agent session starts on the team's
|
|
33
|
+
* default agent role). Used only while it is selectable; otherwise the narrowest allowed role applies.
|
|
34
|
+
*/
|
|
35
|
+
defaultRoleId?: string;
|
|
31
36
|
onApprove: (roleId: string) => Promise<void>;
|
|
32
37
|
onDeny: () => Promise<void>;
|
|
33
38
|
className?: string;
|
|
34
39
|
}
|
|
35
|
-
export declare function AccessRequestPanel({ request, state, roles, permissions, ownPermissionKeys, onApprove, onDeny, className, }: AccessRequestPanelProps): import("react").JSX.Element;
|
|
40
|
+
export declare function AccessRequestPanel({ request, state, roles, permissions, ownPermissionKeys, defaultRoleId, onApprove, onDeny, className, }: AccessRequestPanelProps): import("react").JSX.Element;
|
|
@@ -4,7 +4,7 @@ export interface AgentKeysListProps {
|
|
|
4
4
|
/** The keys agents hold, already scoped to the person. */
|
|
5
5
|
keys: ApiKey[];
|
|
6
6
|
onRevoke: (id: number) => Promise<void>;
|
|
7
|
-
/** The id of a key currently mid-revoke. Disables just that row. */
|
|
7
|
+
/** The id of a key currently mid-revoke or mid-role-change. Disables just that row's controls. */
|
|
8
8
|
busyId?: number | null;
|
|
9
9
|
/** Makes each key's role editable in place. Omit for a read-only role badge. */
|
|
10
10
|
roleEditor?: KeyRoleEditor;
|
|
@@ -27,7 +27,7 @@ export interface KeyRoleEditor {
|
|
|
27
27
|
export interface ApiKeysTableProps {
|
|
28
28
|
keys: ApiKey[];
|
|
29
29
|
onRevoke: (id: number) => Promise<void>;
|
|
30
|
-
/** The id of a key currently mid-revoke. Disables just that row. */
|
|
30
|
+
/** The id of a key currently mid-revoke or mid-role-change. Disables just that row's controls. */
|
|
31
31
|
busyId?: number | null;
|
|
32
32
|
/** Makes each key's role editable in place (DX-4427). Omit for a read-only role badge. */
|
|
33
33
|
roleEditor?: KeyRoleEditor;
|