@stack-spot/portal-network 0.79.0 → 0.80.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 +14 -0
- package/dist/api/apiRuntime.d.ts +338 -138
- package/dist/api/apiRuntime.d.ts.map +1 -1
- package/dist/api/apiRuntime.js +126 -130
- package/dist/api/apiRuntime.js.map +1 -1
- package/dist/api/workspace-ai.d.ts +3 -3
- package/dist/api/workspace-ai.d.ts.map +1 -1
- package/dist/api/workspace-ai.js +4 -4
- package/dist/api/workspace-ai.js.map +1 -1
- package/dist/client/runtime-manager.d.ts +66 -4
- package/dist/client/runtime-manager.d.ts.map +1 -1
- package/dist/client/runtime-manager.js +84 -3
- package/dist/client/runtime-manager.js.map +1 -1
- package/dist/client/workspace-ai.d.ts.map +1 -1
- package/dist/client/workspace-ai.js +3 -3
- package/dist/client/workspace-ai.js.map +1 -1
- package/package.json +1 -1
- package/src/api/apiRuntime.ts +540 -466
- package/src/api/workspace-ai.ts +5 -5
- package/src/client/runtime-manager.ts +51 -4
- package/src/client/workspace-ai.ts +4 -4
package/src/api/workspace-ai.ts
CHANGED
|
@@ -53,7 +53,7 @@ export type WorkspacePermissionRequest = {
|
|
|
53
53
|
permission_list: PermissionListRequest[];
|
|
54
54
|
permission_type: PermissionType;
|
|
55
55
|
};
|
|
56
|
-
export type ResourceType = "knowledge_source" | "quick_command" | "agent" | "stack";
|
|
56
|
+
export type ResourceType = "knowledge_source" | "quick_command" | "agent" | "stack" | "workspace";
|
|
57
57
|
export type AddWorkspaceResourceRequest = {
|
|
58
58
|
resource_identifier: string[];
|
|
59
59
|
};
|
|
@@ -188,7 +188,7 @@ export function deleteWorkspaceV1WorkspacesWorkspaceIdDelete({ workspaceId, auth
|
|
|
188
188
|
/**
|
|
189
189
|
* Add Permission
|
|
190
190
|
*/
|
|
191
|
-
export function
|
|
191
|
+
export function addPermissionV1WorkspacesWorkspaceIdPermissionsPatch({ workspaceId, authorization, xAccountId, workspacePermissionRequest }: {
|
|
192
192
|
workspaceId: string;
|
|
193
193
|
authorization: string;
|
|
194
194
|
xAccountId?: string | null;
|
|
@@ -201,7 +201,7 @@ export function addPermissionV1WorkspacesWorkspaceIdPermissionPatch({ workspaceI
|
|
|
201
201
|
} | {
|
|
202
202
|
status: 422;
|
|
203
203
|
data: HttpValidationError;
|
|
204
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/
|
|
204
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/permissions`, oazapfts.json({
|
|
205
205
|
...opts,
|
|
206
206
|
method: "PATCH",
|
|
207
207
|
body: workspacePermissionRequest,
|
|
@@ -214,7 +214,7 @@ export function addPermissionV1WorkspacesWorkspaceIdPermissionPatch({ workspaceI
|
|
|
214
214
|
/**
|
|
215
215
|
* Remove Permission
|
|
216
216
|
*/
|
|
217
|
-
export function
|
|
217
|
+
export function removePermissionV1WorkspacesWorkspaceIdPermissionsDelete({ workspaceId, authorization, xAccountId, workspacePermissionRequest }: {
|
|
218
218
|
workspaceId: string;
|
|
219
219
|
authorization: string;
|
|
220
220
|
xAccountId?: string | null;
|
|
@@ -227,7 +227,7 @@ export function removePermissionV1WorkspacesWorkspaceIdPermissionDelete({ worksp
|
|
|
227
227
|
} | {
|
|
228
228
|
status: 422;
|
|
229
229
|
data: HttpValidationError;
|
|
230
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/
|
|
230
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/permissions`, oazapfts.json({
|
|
231
231
|
...opts,
|
|
232
232
|
method: "DELETE",
|
|
233
233
|
body: workspacePermissionRequest,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
-
import { defaults,
|
|
2
|
+
import { defaults, getAppInfo, getAppsInRealm, getPluginDeployments, getRunByUlid, getRunsOnAllEnvs, getRunsOnEnv, getRunsRunning, getRunTaskPlugins, getRunTasks, runRollbackApp, runRollbackInfra } from '../api/apiRuntime'
|
|
3
3
|
import apis from '../apis.json'
|
|
4
4
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
5
|
import { rteDictionary } from '../error/dictionary/rte'
|
|
@@ -18,12 +18,59 @@ class RuntimeManagerClient extends ReactQueryNetworkClient {
|
|
|
18
18
|
/**
|
|
19
19
|
* Runs an app rollback
|
|
20
20
|
*/
|
|
21
|
-
appRollback = this.mutation(
|
|
21
|
+
appRollback = this.mutation(runRollbackApp)
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Runs an infra rollback
|
|
25
25
|
*/
|
|
26
|
-
infraRollback = this.mutation(
|
|
27
|
-
|
|
26
|
+
infraRollback = this.mutation(runRollbackInfra)
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting all runnings run
|
|
30
|
+
*/
|
|
31
|
+
adminGetRunsRunning = this.query(getRunsRunning)
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting all runs off an app or infra on an env
|
|
35
|
+
*/
|
|
36
|
+
adminGetRunsOnEnv = this.query(getRunsOnEnv)
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting all runs off an app or infra on every environment its deployed
|
|
40
|
+
*/
|
|
41
|
+
adminGetRunsOnAllEnvs = this.query(getRunsOnAllEnvs)
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting run data by ulid identifier
|
|
45
|
+
*/
|
|
46
|
+
adminGetRunByUlid = this.query(getRunByUlid)
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting run task data of a run
|
|
50
|
+
*/
|
|
51
|
+
adminGetRunTasks = this.query(getRunTasks)
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting run task plugin data of a run
|
|
55
|
+
*/
|
|
56
|
+
adminGetRunTaskPlugins = this.query(getRunTaskPlugins)
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting plugin deployment data of a run
|
|
60
|
+
*/
|
|
61
|
+
adminGetPluginDeployments = this.query(getPluginDeployments)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting the list of apps in a realm
|
|
66
|
+
*/
|
|
67
|
+
adminGetAppsInRealm = this.query(getAppsInRealm)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting app or infra information by ulid
|
|
72
|
+
*/
|
|
73
|
+
adminGetAppInfo = this.query(getAppInfo)
|
|
74
|
+
}
|
|
28
75
|
|
|
29
76
|
export const runtimeManagerClient = new RuntimeManagerClient()
|
|
@@ -2,7 +2,7 @@ import { HttpError } from '@oazapfts/runtime'
|
|
|
2
2
|
import { AgentResponse } from '../api/agent'
|
|
3
3
|
import { GetAiStackResponse, KnowledgeSourceItemResponse, QuickCommandResponse } from '../api/ai'
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
addPermissionV1WorkspacesWorkspaceIdPermissionsPatch,
|
|
6
6
|
addResourceV1WorkspacesWorkspaceIdResourceTypePost,
|
|
7
7
|
createWorkspaceV1WorkspacesPost,
|
|
8
8
|
defaults,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
listAllByResourceTypeV1WorkspacesWorkspaceIdResourceTypeGet,
|
|
13
13
|
listGroupsAndMembersPermissionInWorkspaceV1WorkspacesWorkspaceIdPermissionsGet,
|
|
14
14
|
listWorkspacesV1WorkspacesGet,
|
|
15
|
-
|
|
15
|
+
removePermissionV1WorkspacesWorkspaceIdPermissionsDelete,
|
|
16
16
|
removeResourceV1WorkspacesWorkspaceIdResourceTypeResourceIdDelete,
|
|
17
17
|
updateWorkspaceV1WorkspacesWorkspaceIdPatch,
|
|
18
18
|
} from '../api/workspace-ai'
|
|
@@ -93,8 +93,8 @@ class WorkspaceAiClient extends ReactQueryNetworkClient {
|
|
|
93
93
|
|
|
94
94
|
deleteResourceTypeFromWorkspaceAi = this.mutation(removeAuthorizationParam(
|
|
95
95
|
removeResourceV1WorkspacesWorkspaceIdResourceTypeResourceIdDelete))
|
|
96
|
-
addPermissionToWorkspaceAi = this.mutation(removeAuthorizationParam(
|
|
97
|
-
removePermissionToWorkspaceAi = this.mutation(removeAuthorizationParam(
|
|
96
|
+
addPermissionToWorkspaceAi = this.mutation(removeAuthorizationParam(addPermissionV1WorkspacesWorkspaceIdPermissionsPatch))
|
|
97
|
+
removePermissionToWorkspaceAi = this.mutation(removeAuthorizationParam(removePermissionV1WorkspacesWorkspaceIdPermissionsDelete))
|
|
98
98
|
// eslint-disable-next-line max-len
|
|
99
99
|
groupsOfWorkspaceAi = this.query(removeAuthorizationParam(listGroupsAndMembersPermissionInWorkspaceV1WorkspacesWorkspaceIdPermissionsGet) as unknown as ReplaceResult<typeof listGroupsAndMembersPermissionInWorkspaceV1WorkspacesWorkspaceIdPermissionsGet, FixedWorkspaceAiPermissions>)
|
|
100
100
|
}
|