@acarmisc/backstage-plugin-litellm 0.34.0 → 0.36.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.
- package/dist/api.d.ts +13 -1
- package/dist/components/ConnectPage.d.ts +7 -0
- package/dist/components/TeamUsage.d.ts +11 -1
- package/dist/connect.d.ts +8 -0
- package/dist/index.cjs.js +365 -153
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.esm.js +350 -138
- package/dist/index.esm.js.map +4 -4
- package/dist/plugin.d.ts +40 -0
- package/dist/types.d.ts +6 -1
- package/package.json +2 -2
package/dist/plugin.d.ts
CHANGED
|
@@ -50,4 +50,44 @@ export declare const litellmPlugin: import("@backstage/frontend-plugin-api").Ove
|
|
|
50
50
|
noHeader?: boolean;
|
|
51
51
|
};
|
|
52
52
|
}>;
|
|
53
|
+
"page:litellm/connect": import("@backstage/frontend-plugin-api").OverridableExtensionDefinition<{
|
|
54
|
+
kind: "page";
|
|
55
|
+
name: "connect";
|
|
56
|
+
config: {
|
|
57
|
+
path: string | undefined;
|
|
58
|
+
title: string | undefined;
|
|
59
|
+
};
|
|
60
|
+
configInput: {
|
|
61
|
+
path?: string | undefined;
|
|
62
|
+
title?: string | undefined;
|
|
63
|
+
};
|
|
64
|
+
output: import("@backstage/frontend-plugin-api").ExtensionDataRef<string, "core.routing.path", {}> | import("@backstage/frontend-plugin-api").ExtensionDataRef<import("@backstage/frontend-plugin-api").RouteRef<import("@backstage/frontend-plugin-api").AnyRouteRefParams>, "core.routing.ref", {
|
|
65
|
+
optional: true;
|
|
66
|
+
}> | import("@backstage/frontend-plugin-api").ExtensionDataRef<import("react").JSX.Element, "core.reactElement", {}> | import("@backstage/frontend-plugin-api").ExtensionDataRef<string, "core.title", {
|
|
67
|
+
optional: true;
|
|
68
|
+
}> | import("@backstage/frontend-plugin-api").ExtensionDataRef<import("@backstage/frontend-plugin-api").IconElement, "core.icon", {
|
|
69
|
+
optional: true;
|
|
70
|
+
}>;
|
|
71
|
+
inputs: {
|
|
72
|
+
pages: import("@backstage/frontend-plugin-api").ExtensionInput<import("@backstage/frontend-plugin-api").ConfigurableExtensionDataRef<import("react").JSX.Element, "core.reactElement", {}> | import("@backstage/frontend-plugin-api").ConfigurableExtensionDataRef<string, "core.routing.path", {}> | import("@backstage/frontend-plugin-api").ConfigurableExtensionDataRef<import("@backstage/frontend-plugin-api").RouteRef<import("@backstage/frontend-plugin-api").AnyRouteRefParams>, "core.routing.ref", {
|
|
73
|
+
optional: true;
|
|
74
|
+
}> | import("@backstage/frontend-plugin-api").ConfigurableExtensionDataRef<string, "core.title", {
|
|
75
|
+
optional: true;
|
|
76
|
+
}> | import("@backstage/frontend-plugin-api").ConfigurableExtensionDataRef<import("@backstage/frontend-plugin-api").IconElement, "core.icon", {
|
|
77
|
+
optional: true;
|
|
78
|
+
}>, {
|
|
79
|
+
singleton: false;
|
|
80
|
+
optional: false;
|
|
81
|
+
internal: false;
|
|
82
|
+
}>;
|
|
83
|
+
};
|
|
84
|
+
params: {
|
|
85
|
+
path: string;
|
|
86
|
+
title?: string;
|
|
87
|
+
icon?: import("@backstage/frontend-plugin-api").IconElement;
|
|
88
|
+
loader?: () => Promise<import("react").JSX.Element>;
|
|
89
|
+
routeRef?: import("@backstage/frontend-plugin-api").RouteRef;
|
|
90
|
+
noHeader?: boolean;
|
|
91
|
+
};
|
|
92
|
+
}>;
|
|
53
93
|
}>;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type UserInfo, type TeamMember, type TeamObjectPermission, type TeamInfo, type VirtualKey, type ModelInfo, type UsageModelBreakdown, type UsageKeyBreakdown, type UsageDailyPoint, type UsageDailyModelPoint, type UsageMetrics, type GenerateKeyRequest, type UpdateKeyRequest, type GenerateKeyResponse, type AuditLogEntry, type PaginatedAuditLogs, type AuditLogsParams, type CreateTeamResponse, } from '@acarmisc/backstage-plugin-litellm-common';
|
|
1
|
+
export { type UserInfo, type TeamMember, type TeamObjectPermission, type TeamInfo, type VirtualKey, type ModelInfo, type UsageModelBreakdown, type UsageKeyBreakdown, type UsageDailyPoint, type UsageDailyModelPoint, type UsageMetrics, type TeamMemberUsage, type TeamMemberUsageRow, type GenerateKeyRequest, type UpdateKeyRequest, type GenerateKeyResponse, type AuditLogEntry, type PaginatedAuditLogs, type AuditLogsParams, type CreateTeamResponse, } from '@acarmisc/backstage-plugin-litellm-common';
|
|
2
2
|
export interface VectorStoreInfo {
|
|
3
3
|
id: string;
|
|
4
4
|
name?: string;
|
|
@@ -40,6 +40,11 @@ export interface LiteLlmConfig {
|
|
|
40
40
|
/** LiteLLM team roles (e.g. ["admin"]) whose holders may add/remove members of their own team via POST/DELETE /teams/:id/members endpoints. */
|
|
41
41
|
memberManagerRoles?: string[];
|
|
42
42
|
};
|
|
43
|
+
/** Team usage views, set via litellm.teamUsage in app-config.yaml. */
|
|
44
|
+
teamUsage?: {
|
|
45
|
+
/** Whether the per-member breakdown is enabled (each caller is still authorized server-side). */
|
|
46
|
+
memberBreakdown?: boolean;
|
|
47
|
+
};
|
|
43
48
|
/** Team-budget hiding switches, set via litellm.display in app-config.yaml. */
|
|
44
49
|
display?: {
|
|
45
50
|
/** Dollars hidden from regular members (percent + status still shown). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acarmisc/backstage-plugin-litellm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "frontend-plugin",
|
|
6
6
|
"pluginId": "litellm",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"prepack": "npm run build"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@acarmisc/backstage-plugin-litellm-common": "0.
|
|
44
|
+
"@acarmisc/backstage-plugin-litellm-common": "0.2.0",
|
|
45
45
|
"@backstage/catalog-model": "^1.9.0",
|
|
46
46
|
"@backstage/core-components": "^0.18.10",
|
|
47
47
|
"@backstage/core-plugin-api": "^1.12.6",
|