@stack-spot/portal-network 0.124.0 → 0.125.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/apiManagement.d.ts +228 -256
- package/dist/api/apiManagement.d.ts.map +1 -1
- package/dist/api/apiManagement.js +196 -76
- package/dist/api/apiManagement.js.map +1 -1
- package/dist/api/workspace-ai.d.ts +4 -2
- package/dist/api/workspace-ai.d.ts.map +1 -1
- package/dist/api/workspace-ai.js +3 -1
- package/dist/api/workspace-ai.js.map +1 -1
- package/dist/apis.json +3 -3
- package/dist/client/api-management-client.d.ts +42 -0
- package/dist/client/api-management-client.d.ts.map +1 -0
- package/dist/client/api-management-client.js +43 -0
- package/dist/client/api-management-client.js.map +1 -0
- package/dist/client/types.d.ts +8 -3
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workspace-ai.d.ts +2 -0
- package/dist/client/workspace-ai.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/apiManagement.ts +471 -399
- package/src/api/workspace-ai.ts +6 -2
- package/src/apis.json +3 -3
- package/src/client/api-management-client.ts +36 -0
- package/src/client/types.ts +6 -3
- package/src/index.ts +3 -1
package/src/api/workspace-ai.ts
CHANGED
|
@@ -55,7 +55,7 @@ export type WorkspacePermissionRequest = {
|
|
|
55
55
|
permission_type: PermissionType;
|
|
56
56
|
};
|
|
57
57
|
export type SortBy = "name" | "permission";
|
|
58
|
-
export type ContentType = "knowledge_source" | "quick_command" | "agent" | "stack" | "
|
|
58
|
+
export type ContentType = "knowledge_source" | "quick_command" | "agent" | "stack" | "spot";
|
|
59
59
|
export type AddWorkspaceContentRequest = {
|
|
60
60
|
content_identifier: string[];
|
|
61
61
|
};
|
|
@@ -308,11 +308,13 @@ export function removePermissionV1WorkspacesWorkspaceIdPermissionsDelete({ works
|
|
|
308
308
|
/**
|
|
309
309
|
* List Groups And Members Permission In Workspace
|
|
310
310
|
*/
|
|
311
|
-
export function listGroupsAndMembersPermissionInWorkspaceV1WorkspacesWorkspaceIdPermissionsGet({ workspaceId, filterBy, filterValue, sortBy, order, authorization, xAccountId }: {
|
|
311
|
+
export function listGroupsAndMembersPermissionInWorkspaceV1WorkspacesWorkspaceIdPermissionsGet({ workspaceId, filterBy, filterValue, sortBy, page, size, order, authorization, xAccountId }: {
|
|
312
312
|
workspaceId: string;
|
|
313
313
|
filterBy?: string | null;
|
|
314
314
|
filterValue?: string | null;
|
|
315
315
|
sortBy?: SortBy | null;
|
|
316
|
+
page?: number;
|
|
317
|
+
size?: number;
|
|
316
318
|
order?: OrderEnum;
|
|
317
319
|
authorization: string;
|
|
318
320
|
xAccountId?: string | null;
|
|
@@ -331,6 +333,8 @@ export function listGroupsAndMembersPermissionInWorkspaceV1WorkspacesWorkspaceId
|
|
|
331
333
|
filter_by: filterBy,
|
|
332
334
|
filter_value: filterValue,
|
|
333
335
|
sort_by: sortBy,
|
|
336
|
+
page,
|
|
337
|
+
size,
|
|
334
338
|
order
|
|
335
339
|
}))}`, {
|
|
336
340
|
...opts,
|
package/src/apis.json
CHANGED
|
@@ -152,9 +152,9 @@
|
|
|
152
152
|
},
|
|
153
153
|
"apiManagement": {
|
|
154
154
|
"url": {
|
|
155
|
-
"dev": "https://api-management-apigw.dev.stackspot.com/
|
|
156
|
-
"stg": "https://api-management-apigw.stg.stackspot.com/
|
|
157
|
-
"prd": "https://api-management-apigw.stackspot.com/
|
|
155
|
+
"dev": "https://api-management-apigw.dev.stackspot.com/catalog-assets",
|
|
156
|
+
"stg": "https://api-management-apigw.stg.stackspot.com/catalog-assets",
|
|
157
|
+
"prd": "https://api-management-apigw.stackspot.com/catalog-assets"
|
|
158
158
|
},
|
|
159
159
|
"docs": "/v3/api-docs"
|
|
160
160
|
},
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
+
import { defaults, getEntries, getEntryById, getSubEntries } from '../api/apiManagement'
|
|
3
|
+
import apis from '../apis.json'
|
|
4
|
+
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
|
+
import { actionDictionary } from '../error/dictionary/action'
|
|
6
|
+
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
7
|
+
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
8
|
+
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
9
|
+
|
|
10
|
+
class ApiManagement extends ReactQueryNetworkClient {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(apis.workflows.url, defaults)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
16
|
+
return new DefaultAPIError(error.data, error.status, actionDictionary, error.headers)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Get list
|
|
21
|
+
*/
|
|
22
|
+
getList = this.mutation(removeAuthorizationParam(getEntries))
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Get api by id
|
|
26
|
+
*/
|
|
27
|
+
getApiById = this.mutation(getEntryById)
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Gets the version of one api
|
|
31
|
+
*/
|
|
32
|
+
getApiVersions = this.query(removeAuthorizationParam(getSubEntries))
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const apiManagement = new ApiManagement()
|
package/src/client/types.ts
CHANGED
|
@@ -211,8 +211,11 @@ export interface FixedDependencyResponse extends DependencyResponse {
|
|
|
211
211
|
delete_contents?: FixedContentDependencyResponse[] | null,
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
export interface WorkspaceAiMembersPermissions
|
|
215
|
-
actions: Action[],
|
|
214
|
+
export interface WorkspaceAiMembersPermissions {
|
|
215
|
+
items: (MembersFromResourceResponse & { actions: Action[] })[],
|
|
216
|
+
page: number,
|
|
217
|
+
size: number,
|
|
218
|
+
totalPages: number,
|
|
216
219
|
}
|
|
217
220
|
|
|
218
221
|
export interface WorkspaceAiGroupsPermissions extends GroupsFromResourceResponse {
|
|
@@ -220,7 +223,7 @@ export interface WorkspaceAiGroupsPermissions extends GroupsFromResourceResponse
|
|
|
220
223
|
}
|
|
221
224
|
|
|
222
225
|
export interface FixedWorkspaceAiPermissions {
|
|
223
|
-
members?: WorkspaceAiMembersPermissions
|
|
226
|
+
members?: WorkspaceAiMembersPermissions,
|
|
224
227
|
groups?: WorkspaceAiGroupsPermissions[],
|
|
225
228
|
}
|
|
226
229
|
|
package/src/index.ts
CHANGED
|
@@ -3,8 +3,8 @@ export { apiAddresses } from './api-addresses'
|
|
|
3
3
|
export { accountClient } from './client/account'
|
|
4
4
|
export { agentClient } from './client/agent'
|
|
5
5
|
export { agentToolsClient } from './client/agent-tools'
|
|
6
|
-
export { dataIntegrationClient } from './client/data-integration'
|
|
7
6
|
export { aiClient } from './client/ai'
|
|
7
|
+
export { apiManagement } from './client/api-management-client'
|
|
8
8
|
export { cloudAccountClient } from './client/cloud-account'
|
|
9
9
|
export { cloudPlatformClient } from './client/cloud-platform'
|
|
10
10
|
export { cloudPlatformHorizonClient } from './client/cloud-platform-horizon'
|
|
@@ -12,6 +12,7 @@ export { cloudRuntimesClient } from './client/cloud-runtimes'
|
|
|
12
12
|
export { cloudServicesClient } from './client/cloud-services'
|
|
13
13
|
export { codeShiftClient } from './client/code-shift'
|
|
14
14
|
export { contentClient } from './client/content'
|
|
15
|
+
export { dataIntegrationClient } from './client/data-integration'
|
|
15
16
|
export { eventBusClient } from './client/event-bus'
|
|
16
17
|
export { genAiInferenceClient } from './client/gen-ai-inference'
|
|
17
18
|
export { insightsClient } from './client/insights'
|
|
@@ -34,3 +35,4 @@ export { queryClient } from './network/react-query-client'
|
|
|
34
35
|
export { OperationResult, OperationVariables, UseQueryObjectOptions } from './network/types'
|
|
35
36
|
export { StreamedJson } from './utils/StreamedJson'
|
|
36
37
|
export { useExtendedList } from './utils/use-extended-list'
|
|
38
|
+
|