@acarmisc/backstage-plugin-litellm 0.29.0 → 0.31.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.
@@ -14,3 +14,18 @@ export declare function keyLast4(key: VirtualKey): string;
14
14
  * Handles singular and plural correctly.
15
15
  */
16
16
  export declare function pruneCopy(n: number): string;
17
+ /** Outcome of one permission check: granted, refused, or still loading (neither). */
18
+ export interface PermissionState {
19
+ allowed: boolean;
20
+ denied: boolean;
21
+ }
22
+ /**
23
+ * Label and enabled-state of the row's block/unblock button. Blocking needs the
24
+ * key-manage permission; unblocking needs the dedicated unblock permission (the
25
+ * server does not let owners lift a block on their own say-so). "No permission"
26
+ * wording only appears after a real denial, never while permissions load.
27
+ */
28
+ export declare function blockButtonState(blocked: boolean | undefined, manage: PermissionState, unblock: PermissionState): {
29
+ label: string;
30
+ disabled: boolean;
31
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acarmisc/backstage-plugin-litellm",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "backstage": {
5
5
  "role": "frontend-plugin",
6
6
  "pluginId": "litellm",
@@ -23,7 +23,8 @@
23
23
  "types": "./dist/index.d.ts",
24
24
  "import": "./dist/index.esm.js",
25
25
  "require": "./dist/index.cjs.js"
26
- }
26
+ },
27
+ "./package.json": "./package.json"
27
28
  },
28
29
  "main": "dist/index.cjs.js",
29
30
  "module": "dist/index.esm.js",