@acarmisc/backstage-plugin-litellm-backend 0.1.3 → 0.1.7

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.
package/config.d.ts CHANGED
@@ -12,6 +12,14 @@ export interface Config {
12
12
  */
13
13
  masterKey: string;
14
14
 
15
+ /**
16
+ * Email domain appended to the Backstage user entity name to form the
17
+ * LiteLLM user_id. When set, a user named "john.doe" maps to
18
+ * "john.doe@<userIdDomain>" in LiteLLM. Omit to use the bare entity name.
19
+ * @visibility backend
20
+ */
21
+ userIdDomain?: string;
22
+
15
23
  provisioning?: {
16
24
  /**
17
25
  * When true the backend automatically creates a LiteLLM user on first
@@ -68,6 +76,26 @@ export interface Config {
68
76
  */
69
77
  metadata?: Record<string, string>;
70
78
  };
79
+
80
+ /**
81
+ * Role-based provisioning overrides. Evaluated in order — first match wins.
82
+ * When a Backstage user belongs to the listed group, these settings override
83
+ * the defaults above. Fields omitted here fall back to defaults.
84
+ */
85
+ roles?: Array<{
86
+ /**
87
+ * Backstage group entity ref, e.g. "group:default/ai-power-users".
88
+ * Matched against the user's memberOf relations in the catalog.
89
+ */
90
+ group: string;
91
+ maxBudget?: number;
92
+ budgetDuration?: string;
93
+ models?: string[];
94
+ teams?: string[];
95
+ tpmLimit?: number;
96
+ rpmLimit?: number;
97
+ metadata?: Record<string, string>;
98
+ }>;
71
99
  };
72
100
  };
73
101
  }