@stack-spot/portal-network 0.80.0 → 0.81.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.
@@ -43,7 +43,7 @@ export type UpdateWorkspaceRequest = {
43
43
  description?: string | null;
44
44
  logo?: string | null;
45
45
  };
46
- export type Action = "edit" | "read" | "manager";
46
+ export type Action = "view" | "edit" | "grant_access";
47
47
  export type PermissionListRequest = {
48
48
  identifier: string;
49
49
  action: Action;
package/src/client/ai.ts CHANGED
@@ -6,6 +6,7 @@ import {
6
6
  deleteConversationV1ConversationsConversationIdDelete,
7
7
  downloadConversationV1ConversationsConversationIdDownloadGet,
8
8
  findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet,
9
+ findKnowledgeSourceV1KnowledgeSourcesSlugGet,
9
10
  formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost,
10
11
  formatResultV1QuickCommandsSlugResultFormatPost,
11
12
  getQuickCommandV1QuickCommandsSlugGet,
@@ -47,6 +48,7 @@ class AIClient extends ReactQueryNetworkClient {
47
48
  quickCommands = this.query(removeAuthorizationParam(listAllV1QuickCommandsAllGet))
48
49
  quickCommand = this.query(removeAuthorizationParam(getQuickCommandV1QuickCommandsSlugGet))
49
50
  knowledgeSources = this.query(removeAuthorizationParam(listKnowledgeSourcesV1KnowledgeSourcesGet))
51
+ knowledgeSource = this.query(removeAuthorizationParam(findKnowledgeSourceV1KnowledgeSourcesSlugGet))
50
52
  knowledgeSourceDocument = this.query(removeAuthorizationParam(findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet))
51
53
  chats = this.infiniteQuery(removeAuthorizationParam(listConversationsV1ConversationsGet))
52
54
  chat = this.query(removeAuthorizationParam(
@@ -31,6 +31,7 @@ import {
31
31
  getGetPluginView,
32
32
  getInfrastructureEnvironmentsUsesPlugin,
33
33
  getListOfInputs,
34
+ getPlugin,
34
35
  getPluginInfrastructureView,
35
36
  getPluginModalView,
36
37
  getPluginVersions,
@@ -61,6 +62,7 @@ import {
61
62
  listLinksByStackVersion,
62
63
  listMostUsedStackVersions,
63
64
  listPlugins,
65
+ listPlugins1,
64
66
  listPluginVersionByIdsController,
65
67
  listReasons,
66
68
  listStacks,
@@ -388,7 +390,7 @@ class ContentClient extends ReactQueryNetworkClient {
388
390
  /**
389
391
  * Gets plugins from a stack version
390
392
  */
391
- listPluginsFromStack = this.query(listPlugins)
393
+ listPluginsFromStack = this.query(listPlugins1)
392
394
  /**
393
395
  * Gets the inputs of a specific Action. This fn is only used for permission purposes.
394
396
  */
@@ -422,6 +424,16 @@ class ContentClient extends ReactQueryNetworkClient {
422
424
  */
423
425
 
424
426
  listMostUsedStackVersions = this.query(listMostUsedStackVersions)
427
+
428
+ /**
429
+ * List plugins v2
430
+ */
431
+ pluginsV2 = this.infiniteQuery(listPlugins, { accumulator: 'content', initialPageParam: 0 })
432
+
433
+ /**
434
+ * Get plugin
435
+ */
436
+ plugin = this.query(getPlugin)
425
437
  }
426
438
 
427
439
  export const contentClient = new ContentClient()
@@ -3,6 +3,7 @@ import { AccountScmInfoSaveRequest, AccountScmInfoUpdateRequest, AccountScmStatu
3
3
  import { ChatRequest2, ChatResponse3, ConversationHistoryResponse, ConversationResponse } from '../api/ai'
4
4
  import { ConnectAccountRequestV2, ManagedAccountProvisionRequest } from '../api/cloudAccount'
5
5
  import { AllocationCostRequest, AllocationCostResponse, ChargePeriod, getAllocationCostFilters, ManagedService, ServiceResource } from '../api/cloudServices'
6
+ import { Action } from '../api/workspace-ai'
6
7
  import { ActivityResponse, FullInputContextResponse, InputConditionResponse, InputValuesContextResponse, PaginatedActivityResponse, PluginForAppCreationV2Response, PluginInputValuesInConsolidatedContextResponse, ValueByEnvResponse, WorkflowForCreationResponse } from '../api/workspaceManager'
7
8
 
8
9
  interface BaseSMCStatus {
@@ -197,9 +198,17 @@ export interface FixedConversationResponse extends ConversationResponse {
197
198
  history?: FixedConversationHistoryResponse[],
198
199
  }
199
200
 
201
+ export interface WorkspaceAiMembersPermissions extends MembersFromResourceResponse {
202
+ actions: Action[],
203
+ }
204
+
205
+ export interface WorkspaceAiGroupsPermissions extends GroupsFromResourceResponse {
206
+ actions: Action[],
207
+ }
208
+
200
209
  export interface FixedWorkspaceAiPermissions {
201
- members?: MembersFromResourceResponse[],
202
- groups?: GroupsFromResourceResponse[],
210
+ members?: WorkspaceAiMembersPermissions[],
211
+ groups?: WorkspaceAiGroupsPermissions[],
203
212
  }
204
213
 
205
214
  export type OazapftsFunction<Variables = any, Result = any> = (variables: Variables, opts?: RequestOpts) => Promise<Result>