@red-hat-developer-hub/backstage-plugin-intelligent-assistant-common 3.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.
- package/CHANGELOG.md +214 -0
- package/README.md +5 -0
- package/dist/index.cjs.js +15 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/permissions.cjs.js +65 -0
- package/dist/permissions.cjs.js.map +1 -0
- package/dist/permissions.esm.js +56 -0
- package/dist/permissions.esm.js.map +1 -0
- package/package.json +78 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# @red-hat-developer-hub/backstage-plugin-lightspeed-common
|
|
2
|
+
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 95d26f7: BREAKING CHANGE: Rename Lightspeed plugins to Intelligent Assistant. npm package names, Backstage plugin IDs (`pluginId`), backend API base URLs (`/api/lightspeed` → `/api/intelligent-assistant`), app-config namespace (`lightspeed:` → `intelligent-assistant:`), RBAC permission names (`lightspeed.*` → `intelligent-assistant.*`), scalprum identifiers, NFS extension names, and translation refs have all been updated. See the backend plugin README migration guide for full details.
|
|
8
|
+
- 95d26f7: BREAKING CHANGE: The configuration namespace has been renamed from `lightspeed` to `intelligent-assistant`. Update your `app-config.yaml` to replace `lightspeed:` with `intelligent-assistant:`. RBAC permission policy names have also been renamed (e.g., `lightspeed.chat.read` → `intelligent-assistant.chat.read`). Update your `rbac-policy.csv` accordingly. See the migration guide in the lightspeed-backend plugin's README for full details.
|
|
9
|
+
|
|
10
|
+
### Minor Changes
|
|
11
|
+
|
|
12
|
+
- 95d26f7: Backstage version bump to v1.52.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 95d26f7: Updated dependency `prettier` to `3.8.4`.
|
|
17
|
+
|
|
18
|
+
## 2.9.1
|
|
19
|
+
|
|
20
|
+
## 2.9.0
|
|
21
|
+
|
|
22
|
+
## 2.8.5
|
|
23
|
+
|
|
24
|
+
## 2.8.4
|
|
25
|
+
|
|
26
|
+
## 2.8.3
|
|
27
|
+
|
|
28
|
+
## 2.8.2
|
|
29
|
+
|
|
30
|
+
## 2.8.1
|
|
31
|
+
|
|
32
|
+
## 2.8.0
|
|
33
|
+
|
|
34
|
+
## 2.7.1
|
|
35
|
+
|
|
36
|
+
## 2.7.0
|
|
37
|
+
|
|
38
|
+
## 2.6.8
|
|
39
|
+
|
|
40
|
+
## 2.6.7
|
|
41
|
+
|
|
42
|
+
## 2.6.6
|
|
43
|
+
|
|
44
|
+
## 2.6.5
|
|
45
|
+
|
|
46
|
+
## 2.6.4
|
|
47
|
+
|
|
48
|
+
## 2.6.3
|
|
49
|
+
|
|
50
|
+
## 2.6.2
|
|
51
|
+
|
|
52
|
+
### Patch Changes
|
|
53
|
+
|
|
54
|
+
- 5148408: Migrated to Jest 30 as required by @backstage/cli 0.36.0.
|
|
55
|
+
|
|
56
|
+
## 2.6.1
|
|
57
|
+
|
|
58
|
+
## 2.6.0
|
|
59
|
+
|
|
60
|
+
## 2.5.1
|
|
61
|
+
|
|
62
|
+
## 2.5.0
|
|
63
|
+
|
|
64
|
+
## 2.4.0
|
|
65
|
+
|
|
66
|
+
## 2.3.0
|
|
67
|
+
|
|
68
|
+
## 2.2.1
|
|
69
|
+
|
|
70
|
+
## 2.2.0
|
|
71
|
+
|
|
72
|
+
## 2.1.0
|
|
73
|
+
|
|
74
|
+
## 2.0.0
|
|
75
|
+
|
|
76
|
+
### Minor Changes
|
|
77
|
+
|
|
78
|
+
- 024d5a8: Added MCP Server management backend APIs with per-user preferences, on-demand validation, and new permissions (lightspeed.mcp.read, lightspeed.mcp.manage)
|
|
79
|
+
- 7db4bed: Implement AI Notebooks session, document, and query service
|
|
80
|
+
- 01241c2: Backstage version bump to v1.49.2
|
|
81
|
+
moved existing app to app-legacy
|
|
82
|
+
app now runs the NFS model
|
|
83
|
+
|
|
84
|
+
## 1.4.0
|
|
85
|
+
|
|
86
|
+
## 1.3.0
|
|
87
|
+
|
|
88
|
+
### Minor Changes
|
|
89
|
+
|
|
90
|
+
- 0a7c742: Backstage version bump to v1.47.3
|
|
91
|
+
|
|
92
|
+
## 1.2.3
|
|
93
|
+
|
|
94
|
+
## 1.2.2
|
|
95
|
+
|
|
96
|
+
### Patch Changes
|
|
97
|
+
|
|
98
|
+
- aaac497: Updated dependency `prettier` to `3.8.1`.
|
|
99
|
+
|
|
100
|
+
## 1.2.1
|
|
101
|
+
|
|
102
|
+
### Patch Changes
|
|
103
|
+
|
|
104
|
+
- 9c17c36: Updated dependency `prettier` to `3.8.0`.
|
|
105
|
+
|
|
106
|
+
## 1.2.0
|
|
107
|
+
|
|
108
|
+
## 1.1.2
|
|
109
|
+
|
|
110
|
+
## 1.1.1
|
|
111
|
+
|
|
112
|
+
## 1.1.0
|
|
113
|
+
|
|
114
|
+
### Minor Changes
|
|
115
|
+
|
|
116
|
+
- 99f35d5: Backstage version bump to v1.45.2
|
|
117
|
+
|
|
118
|
+
## 1.0.4
|
|
119
|
+
|
|
120
|
+
### Patch Changes
|
|
121
|
+
|
|
122
|
+
- 58e26ba: '@red-hat-developer-hub/backstage-plugin-lightspeed' :
|
|
123
|
+
- Added missing translations for untranslated labels across the Lightspeed chat UI.
|
|
124
|
+
- Added lightspeed settings kebab menu
|
|
125
|
+
- Added a new “Pinned” section. The section is conditionally visible only when pinning chats are enabled in Lightspeed settings. It shows an empty state when no chats are pinned.
|
|
126
|
+
- Added Kebab menu actions to each chat item with actions: Rename, Pin, Unpin
|
|
127
|
+
- Implemented logic to move chats between Pinned and Recent sections based on the selected action (“Pin” / “Unpin”).
|
|
128
|
+
- Updated search behavior to show results under both Pinned and Recent groups (when enabled), including appropriate empty search messaging.
|
|
129
|
+
- The Rename action opens a dialog with an editable text field and confirm/cancel actions.
|
|
130
|
+
- Replaced the patternfly components with MUI to match the Figma designs [Design 1](https://www.figma.com/design/urwU8VqRvHfbxMqxeVknrv/RHDH-Lightspeed---AI-Assistant?node-id=1523-1670&t=CqnUYsxar0PtjAjZ-0)
|
|
131
|
+
[Design 2](https://www.figma.com/design/urwU8VqRvHfbxMqxeVknrv/RHDH-Lightspeed---AI-Assistant?node-id=2514-5415&t=PphIEOl5Yzmgv5tI-0)
|
|
132
|
+
|
|
133
|
+
'@red-hat-developer-hub/backstage-plugin-lightspeed-common':
|
|
134
|
+
|
|
135
|
+
Added the Update api client
|
|
136
|
+
|
|
137
|
+
- 40b80fe: Remove "lifecycle" keywords and "supported-versions" in package.json. Change "lifecycle" to active in catalog.yaml
|
|
138
|
+
|
|
139
|
+
## 1.0.3
|
|
140
|
+
|
|
141
|
+
## 1.0.2
|
|
142
|
+
|
|
143
|
+
## 0.4.0
|
|
144
|
+
|
|
145
|
+
### Minor Changes
|
|
146
|
+
|
|
147
|
+
- d922b04: Backstage version bump to v1.42.5
|
|
148
|
+
|
|
149
|
+
## 0.3.4
|
|
150
|
+
|
|
151
|
+
### Patch Changes
|
|
152
|
+
|
|
153
|
+
- 0e00cb6: Upgrade backstage to 1.39.1
|
|
154
|
+
|
|
155
|
+
## 0.3.3
|
|
156
|
+
|
|
157
|
+
### Patch Changes
|
|
158
|
+
|
|
159
|
+
- a79f849: Updated dependency `prettier` to `3.6.2`.
|
|
160
|
+
|
|
161
|
+
## 0.3.2
|
|
162
|
+
|
|
163
|
+
### Patch Changes
|
|
164
|
+
|
|
165
|
+
- 5d80736: Renamed permissions to align with the updated naming convention:
|
|
166
|
+
- `lightspeed.conversations.read` → `lightspeed.chat.read`
|
|
167
|
+
- `lightspeed.conversations.create` → `lightspeed.chat.create`
|
|
168
|
+
- `lightspeed.conversations.delete` → `lightspeed.chat.delete`
|
|
169
|
+
|
|
170
|
+
## 0.3.1
|
|
171
|
+
|
|
172
|
+
### Patch Changes
|
|
173
|
+
|
|
174
|
+
- a9e5f32: Updated dependency `@openapitools/openapi-generator-cli` to `2.20.0`.
|
|
175
|
+
Updated dependency `prettier` to `3.5.3`.
|
|
176
|
+
Updated dependency `@redhat-developer/red-hat-developer-hub-theme` to `0.5.1`.
|
|
177
|
+
Updated dependency `@red-hat-developer-hub/backstage-plugin-theme` to `^0.6.0`.
|
|
178
|
+
Updated dependency `@janus-idp/cli` to `3.5.0`.
|
|
179
|
+
|
|
180
|
+
## 0.3.0
|
|
181
|
+
|
|
182
|
+
### Minor Changes
|
|
183
|
+
|
|
184
|
+
- 91a66a8: Backstage version bump to v1.35.1
|
|
185
|
+
|
|
186
|
+
## 0.2.1
|
|
187
|
+
|
|
188
|
+
### Patch Changes
|
|
189
|
+
|
|
190
|
+
- 8001249: fix dynamic plugins packaging
|
|
191
|
+
|
|
192
|
+
## 0.2.0
|
|
193
|
+
|
|
194
|
+
### Minor Changes
|
|
195
|
+
|
|
196
|
+
- e41a860: Backstage version bump to v1.34.2
|
|
197
|
+
|
|
198
|
+
## 0.1.3
|
|
199
|
+
|
|
200
|
+
### Patch Changes
|
|
201
|
+
|
|
202
|
+
- d59e940: Updated dependency `prettier` to `3.4.2`.
|
|
203
|
+
|
|
204
|
+
## 0.1.2
|
|
205
|
+
|
|
206
|
+
### Patch Changes
|
|
207
|
+
|
|
208
|
+
- 5f6faba: update peer dependancies
|
|
209
|
+
|
|
210
|
+
## 0.1.1
|
|
211
|
+
|
|
212
|
+
### Patch Changes
|
|
213
|
+
|
|
214
|
+
- c113d1a: add rbac permission support
|
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var permissions = require('./permissions.cjs.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.lightspeedChatCreatePermission = permissions.lightspeedChatCreatePermission;
|
|
8
|
+
exports.lightspeedChatDeletePermission = permissions.lightspeedChatDeletePermission;
|
|
9
|
+
exports.lightspeedChatReadPermission = permissions.lightspeedChatReadPermission;
|
|
10
|
+
exports.lightspeedChatUpdatePermission = permissions.lightspeedChatUpdatePermission;
|
|
11
|
+
exports.lightspeedMcpManagePermission = permissions.lightspeedMcpManagePermission;
|
|
12
|
+
exports.lightspeedMcpReadPermission = permissions.lightspeedMcpReadPermission;
|
|
13
|
+
exports.lightspeedNotebooksUsePermission = permissions.lightspeedNotebooksUsePermission;
|
|
14
|
+
exports.lightspeedPermissions = permissions.lightspeedPermissions;
|
|
15
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as _backstage_plugin_permission_common from '@backstage/plugin-permission-common';
|
|
2
|
+
|
|
3
|
+
/** This permission is used to access the lightspeed read conversations endpoint
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
declare const lightspeedChatReadPermission: _backstage_plugin_permission_common.BasicPermission;
|
|
7
|
+
/** This permission is used to access the lightspeed create conversations endpoint
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
declare const lightspeedChatCreatePermission: _backstage_plugin_permission_common.BasicPermission;
|
|
11
|
+
/** This permission is used to access the lightspeed delete endpoint
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
declare const lightspeedChatDeletePermission: _backstage_plugin_permission_common.BasicPermission;
|
|
15
|
+
/** This permission is used to access the lightspeed update endpoint
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
declare const lightspeedChatUpdatePermission: _backstage_plugin_permission_common.BasicPermission;
|
|
19
|
+
/** This permission is used to list configured MCP servers
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
declare const lightspeedMcpReadPermission: _backstage_plugin_permission_common.BasicPermission;
|
|
23
|
+
/** This permission is used to add, update, delete, and validate MCP servers
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
declare const lightspeedMcpManagePermission: _backstage_plugin_permission_common.BasicPermission;
|
|
27
|
+
/** This permission is used to access AI Notebooks features
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
declare const lightspeedNotebooksUsePermission: _backstage_plugin_permission_common.BasicPermission;
|
|
31
|
+
/**
|
|
32
|
+
* List of all permissions on permission polices.
|
|
33
|
+
*
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
declare const lightspeedPermissions: _backstage_plugin_permission_common.BasicPermission[];
|
|
37
|
+
|
|
38
|
+
export { lightspeedChatCreatePermission, lightspeedChatDeletePermission, lightspeedChatReadPermission, lightspeedChatUpdatePermission, lightspeedMcpManagePermission, lightspeedMcpReadPermission, lightspeedNotebooksUsePermission, lightspeedPermissions };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { lightspeedChatCreatePermission, lightspeedChatDeletePermission, lightspeedChatReadPermission, lightspeedChatUpdatePermission, lightspeedMcpManagePermission, lightspeedMcpReadPermission, lightspeedNotebooksUsePermission, lightspeedPermissions } from './permissions.esm.js';
|
|
2
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var pluginPermissionCommon = require('@backstage/plugin-permission-common');
|
|
4
|
+
|
|
5
|
+
const lightspeedChatReadPermission = pluginPermissionCommon.createPermission({
|
|
6
|
+
name: "intelligent-assistant.chat.read",
|
|
7
|
+
attributes: {
|
|
8
|
+
action: "read"
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const lightspeedChatCreatePermission = pluginPermissionCommon.createPermission({
|
|
12
|
+
name: "intelligent-assistant.chat.create",
|
|
13
|
+
attributes: {
|
|
14
|
+
action: "create"
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
const lightspeedChatDeletePermission = pluginPermissionCommon.createPermission({
|
|
18
|
+
name: "intelligent-assistant.chat.delete",
|
|
19
|
+
attributes: {
|
|
20
|
+
action: "delete"
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const lightspeedChatUpdatePermission = pluginPermissionCommon.createPermission({
|
|
24
|
+
name: "intelligent-assistant.chat.update",
|
|
25
|
+
attributes: {
|
|
26
|
+
action: "update"
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
const lightspeedMcpReadPermission = pluginPermissionCommon.createPermission({
|
|
30
|
+
name: "intelligent-assistant.mcp.read",
|
|
31
|
+
attributes: {
|
|
32
|
+
action: "read"
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
const lightspeedMcpManagePermission = pluginPermissionCommon.createPermission({
|
|
36
|
+
name: "intelligent-assistant.mcp.manage",
|
|
37
|
+
attributes: {
|
|
38
|
+
action: "update"
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
const lightspeedNotebooksUsePermission = pluginPermissionCommon.createPermission({
|
|
42
|
+
name: "intelligent-assistant.notebooks.use",
|
|
43
|
+
attributes: {
|
|
44
|
+
action: "update"
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
const lightspeedPermissions = [
|
|
48
|
+
lightspeedChatReadPermission,
|
|
49
|
+
lightspeedChatCreatePermission,
|
|
50
|
+
lightspeedChatDeletePermission,
|
|
51
|
+
lightspeedChatUpdatePermission,
|
|
52
|
+
lightspeedMcpReadPermission,
|
|
53
|
+
lightspeedMcpManagePermission,
|
|
54
|
+
lightspeedNotebooksUsePermission
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
exports.lightspeedChatCreatePermission = lightspeedChatCreatePermission;
|
|
58
|
+
exports.lightspeedChatDeletePermission = lightspeedChatDeletePermission;
|
|
59
|
+
exports.lightspeedChatReadPermission = lightspeedChatReadPermission;
|
|
60
|
+
exports.lightspeedChatUpdatePermission = lightspeedChatUpdatePermission;
|
|
61
|
+
exports.lightspeedMcpManagePermission = lightspeedMcpManagePermission;
|
|
62
|
+
exports.lightspeedMcpReadPermission = lightspeedMcpReadPermission;
|
|
63
|
+
exports.lightspeedNotebooksUsePermission = lightspeedNotebooksUsePermission;
|
|
64
|
+
exports.lightspeedPermissions = lightspeedPermissions;
|
|
65
|
+
//# sourceMappingURL=permissions.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.cjs.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createPermission } from '@backstage/plugin-permission-common';\n\n/** This permission is used to access the lightspeed read conversations endpoint\n * @public\n */\nexport const lightspeedChatReadPermission = createPermission({\n name: 'intelligent-assistant.chat.read',\n attributes: {\n action: 'read',\n },\n});\n\n/** This permission is used to access the lightspeed create conversations endpoint\n * @public\n */\nexport const lightspeedChatCreatePermission = createPermission({\n name: 'intelligent-assistant.chat.create',\n attributes: {\n action: 'create',\n },\n});\n\n/** This permission is used to access the lightspeed delete endpoint\n * @public\n */\nexport const lightspeedChatDeletePermission = createPermission({\n name: 'intelligent-assistant.chat.delete',\n attributes: {\n action: 'delete',\n },\n});\n\n/** This permission is used to access the lightspeed update endpoint\n * @public\n */\nexport const lightspeedChatUpdatePermission = createPermission({\n name: 'intelligent-assistant.chat.update',\n attributes: {\n action: 'update',\n },\n});\n\n/** This permission is used to list configured MCP servers\n * @public\n */\nexport const lightspeedMcpReadPermission = createPermission({\n name: 'intelligent-assistant.mcp.read',\n attributes: {\n action: 'read',\n },\n});\n\n/** This permission is used to add, update, delete, and validate MCP servers\n * @public\n */\nexport const lightspeedMcpManagePermission = createPermission({\n name: 'intelligent-assistant.mcp.manage',\n attributes: {\n action: 'update',\n },\n});\n\n/** This permission is used to access AI Notebooks features\n * @public\n */\nexport const lightspeedNotebooksUsePermission = createPermission({\n name: 'intelligent-assistant.notebooks.use',\n attributes: {\n action: 'update',\n },\n});\n\n/**\n * List of all permissions on permission polices.\n *\n * @public\n */\nexport const lightspeedPermissions = [\n lightspeedChatReadPermission,\n lightspeedChatCreatePermission,\n lightspeedChatDeletePermission,\n lightspeedChatUpdatePermission,\n lightspeedMcpReadPermission,\n lightspeedMcpManagePermission,\n lightspeedNotebooksUsePermission,\n];\n"],"names":["createPermission"],"mappings":";;;;AAqBO,MAAM,+BAA+BA,uCAAA,CAAiB;AAAA,EAC3D,IAAA,EAAM,iCAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAKM,MAAM,iCAAiCA,uCAAA,CAAiB;AAAA,EAC7D,IAAA,EAAM,mCAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAKM,MAAM,iCAAiCA,uCAAA,CAAiB;AAAA,EAC7D,IAAA,EAAM,mCAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAKM,MAAM,iCAAiCA,uCAAA,CAAiB;AAAA,EAC7D,IAAA,EAAM,mCAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAKM,MAAM,8BAA8BA,uCAAA,CAAiB;AAAA,EAC1D,IAAA,EAAM,gCAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAKM,MAAM,gCAAgCA,uCAAA,CAAiB;AAAA,EAC5D,IAAA,EAAM,kCAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAKM,MAAM,mCAAmCA,uCAAA,CAAiB;AAAA,EAC/D,IAAA,EAAM,qCAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAOM,MAAM,qBAAA,GAAwB;AAAA,EACnC,4BAAA;AAAA,EACA,8BAAA;AAAA,EACA,8BAAA;AAAA,EACA,8BAAA;AAAA,EACA,2BAAA;AAAA,EACA,6BAAA;AAAA,EACA;AACF;;;;;;;;;;;"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { createPermission } from '@backstage/plugin-permission-common';
|
|
2
|
+
|
|
3
|
+
const lightspeedChatReadPermission = createPermission({
|
|
4
|
+
name: "intelligent-assistant.chat.read",
|
|
5
|
+
attributes: {
|
|
6
|
+
action: "read"
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
const lightspeedChatCreatePermission = createPermission({
|
|
10
|
+
name: "intelligent-assistant.chat.create",
|
|
11
|
+
attributes: {
|
|
12
|
+
action: "create"
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
const lightspeedChatDeletePermission = createPermission({
|
|
16
|
+
name: "intelligent-assistant.chat.delete",
|
|
17
|
+
attributes: {
|
|
18
|
+
action: "delete"
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
const lightspeedChatUpdatePermission = createPermission({
|
|
22
|
+
name: "intelligent-assistant.chat.update",
|
|
23
|
+
attributes: {
|
|
24
|
+
action: "update"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const lightspeedMcpReadPermission = createPermission({
|
|
28
|
+
name: "intelligent-assistant.mcp.read",
|
|
29
|
+
attributes: {
|
|
30
|
+
action: "read"
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
const lightspeedMcpManagePermission = createPermission({
|
|
34
|
+
name: "intelligent-assistant.mcp.manage",
|
|
35
|
+
attributes: {
|
|
36
|
+
action: "update"
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
const lightspeedNotebooksUsePermission = createPermission({
|
|
40
|
+
name: "intelligent-assistant.notebooks.use",
|
|
41
|
+
attributes: {
|
|
42
|
+
action: "update"
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
const lightspeedPermissions = [
|
|
46
|
+
lightspeedChatReadPermission,
|
|
47
|
+
lightspeedChatCreatePermission,
|
|
48
|
+
lightspeedChatDeletePermission,
|
|
49
|
+
lightspeedChatUpdatePermission,
|
|
50
|
+
lightspeedMcpReadPermission,
|
|
51
|
+
lightspeedMcpManagePermission,
|
|
52
|
+
lightspeedNotebooksUsePermission
|
|
53
|
+
];
|
|
54
|
+
|
|
55
|
+
export { lightspeedChatCreatePermission, lightspeedChatDeletePermission, lightspeedChatReadPermission, lightspeedChatUpdatePermission, lightspeedMcpManagePermission, lightspeedMcpReadPermission, lightspeedNotebooksUsePermission, lightspeedPermissions };
|
|
56
|
+
//# sourceMappingURL=permissions.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.esm.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createPermission } from '@backstage/plugin-permission-common';\n\n/** This permission is used to access the lightspeed read conversations endpoint\n * @public\n */\nexport const lightspeedChatReadPermission = createPermission({\n name: 'intelligent-assistant.chat.read',\n attributes: {\n action: 'read',\n },\n});\n\n/** This permission is used to access the lightspeed create conversations endpoint\n * @public\n */\nexport const lightspeedChatCreatePermission = createPermission({\n name: 'intelligent-assistant.chat.create',\n attributes: {\n action: 'create',\n },\n});\n\n/** This permission is used to access the lightspeed delete endpoint\n * @public\n */\nexport const lightspeedChatDeletePermission = createPermission({\n name: 'intelligent-assistant.chat.delete',\n attributes: {\n action: 'delete',\n },\n});\n\n/** This permission is used to access the lightspeed update endpoint\n * @public\n */\nexport const lightspeedChatUpdatePermission = createPermission({\n name: 'intelligent-assistant.chat.update',\n attributes: {\n action: 'update',\n },\n});\n\n/** This permission is used to list configured MCP servers\n * @public\n */\nexport const lightspeedMcpReadPermission = createPermission({\n name: 'intelligent-assistant.mcp.read',\n attributes: {\n action: 'read',\n },\n});\n\n/** This permission is used to add, update, delete, and validate MCP servers\n * @public\n */\nexport const lightspeedMcpManagePermission = createPermission({\n name: 'intelligent-assistant.mcp.manage',\n attributes: {\n action: 'update',\n },\n});\n\n/** This permission is used to access AI Notebooks features\n * @public\n */\nexport const lightspeedNotebooksUsePermission = createPermission({\n name: 'intelligent-assistant.notebooks.use',\n attributes: {\n action: 'update',\n },\n});\n\n/**\n * List of all permissions on permission polices.\n *\n * @public\n */\nexport const lightspeedPermissions = [\n lightspeedChatReadPermission,\n lightspeedChatCreatePermission,\n lightspeedChatDeletePermission,\n lightspeedChatUpdatePermission,\n lightspeedMcpReadPermission,\n lightspeedMcpManagePermission,\n lightspeedNotebooksUsePermission,\n];\n"],"names":[],"mappings":";;AAqBO,MAAM,+BAA+B,gBAAA,CAAiB;AAAA,EAC3D,IAAA,EAAM,iCAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAKM,MAAM,iCAAiC,gBAAA,CAAiB;AAAA,EAC7D,IAAA,EAAM,mCAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAKM,MAAM,iCAAiC,gBAAA,CAAiB;AAAA,EAC7D,IAAA,EAAM,mCAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAKM,MAAM,iCAAiC,gBAAA,CAAiB;AAAA,EAC7D,IAAA,EAAM,mCAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAKM,MAAM,8BAA8B,gBAAA,CAAiB;AAAA,EAC1D,IAAA,EAAM,gCAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAKM,MAAM,gCAAgC,gBAAA,CAAiB;AAAA,EAC5D,IAAA,EAAM,kCAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAKM,MAAM,mCAAmC,gBAAA,CAAiB;AAAA,EAC/D,IAAA,EAAM,qCAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAOM,MAAM,qBAAA,GAAwB;AAAA,EACnC,4BAAA;AAAA,EACA,8BAAA;AAAA,EACA,8BAAA;AAAA,EACA,8BAAA;AAAA,EACA,2BAAA;AAAA,EACA,6BAAA;AAAA,EACA;AACF;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@red-hat-developer-hub/backstage-plugin-intelligent-assistant-common",
|
|
3
|
+
"description": "Common functionalities for the intelligent-assistant plugin",
|
|
4
|
+
"version": "3.0.0",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public",
|
|
10
|
+
"main": "dist/index.cjs.js",
|
|
11
|
+
"module": "dist/index.esm.js",
|
|
12
|
+
"types": "dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"backstage": {
|
|
15
|
+
"role": "common-library",
|
|
16
|
+
"pluginId": "intelligent-assistant",
|
|
17
|
+
"pluginPackage": "@red-hat-developer-hub/backstage-plugin-intelligent-assistant-common",
|
|
18
|
+
"pluginPackages": [
|
|
19
|
+
"@red-hat-developer-hub/backstage-plugin-intelligent-assistant",
|
|
20
|
+
"@red-hat-developer-hub/backstage-plugin-intelligent-assistant-backend",
|
|
21
|
+
"@red-hat-developer-hub/backstage-plugin-intelligent-assistant-common"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "backstage-cli package build",
|
|
27
|
+
"clean": "backstage-cli package clean",
|
|
28
|
+
"lint:check": "backstage-cli package lint",
|
|
29
|
+
"lint:fix": "backstage-cli package lint --fix",
|
|
30
|
+
"postpack": "backstage-cli package postpack",
|
|
31
|
+
"prepack": "backstage-cli package prepack",
|
|
32
|
+
"start": "backstage-cli package start",
|
|
33
|
+
"test": "backstage-cli package test --passWithNoTests --coverage",
|
|
34
|
+
"tsc": "tsc",
|
|
35
|
+
"prettier:check": "prettier --ignore-unknown --check .",
|
|
36
|
+
"prettier:fix": "prettier --ignore-unknown --write ."
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@backstage/plugin-permission-common": "^0.9.9"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@backstage/cli": "^0.36.3",
|
|
43
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
|
|
44
|
+
"@spotify/prettier-config": "^15.0.0",
|
|
45
|
+
"prettier": "3.8.4"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"@backstage/plugin-permission-common": "^0.9.9"
|
|
49
|
+
},
|
|
50
|
+
"files": [
|
|
51
|
+
"dist"
|
|
52
|
+
],
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "git+https://github.com/redhat-developer/rhdh-plugins.git",
|
|
56
|
+
"directory": "workspaces/intelligent-assistant/plugins/intelligent-assistant-common"
|
|
57
|
+
},
|
|
58
|
+
"keywords": [
|
|
59
|
+
"backstage",
|
|
60
|
+
"plugin"
|
|
61
|
+
],
|
|
62
|
+
"homepage": "https://red.ht/rhdh",
|
|
63
|
+
"bugs": "https://github.com/redhat-developer/rhdh-plugins/issues",
|
|
64
|
+
"maintainers": [
|
|
65
|
+
"@karthikjeeyar",
|
|
66
|
+
"@rohitkrai03",
|
|
67
|
+
"@yangcao77",
|
|
68
|
+
"@Eswaraiahsapram"
|
|
69
|
+
],
|
|
70
|
+
"typesVersions": {
|
|
71
|
+
"*": {
|
|
72
|
+
"package.json": [
|
|
73
|
+
"package.json"
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"module": "dist/index.esm.js"
|
|
78
|
+
}
|