@stack-spot/portal-network 0.79.1 → 0.80.1

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(
@@ -1,5 +1,5 @@
1
1
  import { HttpError } from '@oazapfts/runtime'
2
- import { defaults, runRollbackApp2, runRollbackInfra2 } from '../api/apiRuntime'
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(runRollbackApp2)
21
+ appRollback = this.mutation(runRollbackApp)
22
22
 
23
23
  /**
24
24
  * Runs an infra rollback
25
25
  */
26
- infraRollback = this.mutation(runRollbackInfra2)
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()
@@ -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>