@danxbot/ui 17.0.0 → 18.0.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.
@@ -3,8 +3,9 @@ import type { Permission, Role } from "./types";
3
3
  export interface ApiKey {
4
4
  id: number;
5
5
  name: string;
6
- /** The `Role.id` this key acts with. */
7
- roleId: string;
6
+ /** The label of the role this key acts with. A label, not an id: a key can carry a role of a team other than the one whose
7
+ * `roles` the create dialog offers, and only the consumer's server can name that one. */
8
+ roleLabel: string;
8
9
  /** ISO instant. */
9
10
  createdAt: string;
10
11
  /** ISO instant, or `null`/omitted if it has never been used. */
@@ -17,7 +18,7 @@ export interface ApiKeysPanelProps {
17
18
  keys: ApiKey[];
18
19
  /** Keys a worker minted on the person's behalf; listed and revocable, never created here. Omitted or empty hides the group. */
19
20
  agentKeys?: ApiKey[];
20
- /** Every role a key could carry; also resolves each listed key's role label. */
21
+ /** The roles the create dialog offers. */
21
22
  roles: Role[];
22
23
  /** The permission catalog, used to name the permissions that make a role unavailable. */
23
24
  permissions: Permission[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/ui",
3
- "version": "17.0.0",
3
+ "version": "18.0.0",
4
4
  "type": "module",
5
5
  "description": "Danxbot — a domain-agnostic React design system with motion as a first-class primitive.",
6
6
  "license": "MIT",