@stack-spot/portal-network 0.156.1-beta.2 → 0.156.2

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +7 -52
  2. package/dist/api/codeShift.d.ts +196 -101
  3. package/dist/api/codeShift.d.ts.map +1 -1
  4. package/dist/api/codeShift.js +94 -37
  5. package/dist/api/codeShift.js.map +1 -1
  6. package/dist/api/discovery.d.ts +222 -33
  7. package/dist/api/discovery.d.ts.map +1 -1
  8. package/dist/api/discovery.js +78 -27
  9. package/dist/api/discovery.js.map +1 -1
  10. package/dist/apis.json +1 -1
  11. package/dist/client/agent-tools.d.ts +3 -89
  12. package/dist/client/agent-tools.d.ts.map +1 -1
  13. package/dist/client/agent-tools.js +2 -133
  14. package/dist/client/agent-tools.js.map +1 -1
  15. package/dist/client/agent.d.ts +50 -5
  16. package/dist/client/agent.d.ts.map +1 -1
  17. package/dist/client/agent.js +64 -0
  18. package/dist/client/agent.js.map +1 -1
  19. package/dist/client/ai.d.ts +0 -7
  20. package/dist/client/ai.d.ts.map +1 -1
  21. package/dist/client/ai.js +1 -10
  22. package/dist/client/ai.js.map +1 -1
  23. package/dist/client/code-shift.d.ts +67 -25
  24. package/dist/client/code-shift.d.ts.map +1 -1
  25. package/dist/client/code-shift.js +73 -30
  26. package/dist/client/code-shift.js.map +1 -1
  27. package/dist/client/discovery.d.ts +6 -12
  28. package/dist/client/discovery.d.ts.map +1 -1
  29. package/dist/client/discovery.js +5 -14
  30. package/dist/client/discovery.js.map +1 -1
  31. package/dist/client/gen-ai-inference.d.ts +0 -9
  32. package/dist/client/gen-ai-inference.d.ts.map +1 -1
  33. package/dist/client/gen-ai-inference.js +1 -10
  34. package/dist/client/gen-ai-inference.js.map +1 -1
  35. package/dist/client/types.d.ts +4 -5
  36. package/dist/client/types.d.ts.map +1 -1
  37. package/package.json +1 -1
  38. package/readme.md +1 -1
  39. package/src/api/account.ts +0 -1
  40. package/src/api/agent-tools.ts +0 -3
  41. package/src/api/agent.ts +0 -2
  42. package/src/api/codeShift.ts +481 -248
  43. package/src/api/discovery.ts +309 -49
  44. package/src/api/notification.ts +0 -2
  45. package/src/apis.json +1 -1
  46. package/src/client/agent-tools.ts +3 -102
  47. package/src/client/agent.ts +68 -0
  48. package/src/client/ai.ts +0 -6
  49. package/src/client/code-shift.ts +57 -19
  50. package/src/client/discovery.ts +5 -9
  51. package/src/client/gen-ai-inference.ts +1 -6
  52. package/src/client/types.ts +5 -7
@@ -2,10 +2,15 @@ import { HttpError } from '@oazapfts/runtime'
2
2
  import {
3
3
  defaults, deleteV1AgentByAgentIdFavorite, getV1AgentByAgentId, getV1Agents, getV1PublicAgentByAgentId, getV1PublicAgents,
4
4
  postV1AgentByAgentIdFavorite, putV1AgentByAgentId,
5
+ VisibilityLevel,
5
6
  } from '../api/agent'
6
7
  import apis from '../apis.json'
7
8
  import { StackspotAPIError } from '../error/StackspotAPIError'
8
9
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
10
+ import { AgentResponseWithBuiltIn, AgentVisibilityLevel } from './types'
11
+ import { workspaceAiClient } from './workspace-ai'
12
+
13
+ export const isAgentDefault = (agentSlug?: string) => agentSlug === 'stk_code_buddy'
9
14
 
10
15
  interface AgentError {
11
16
  code?: string,
@@ -31,6 +36,57 @@ class AgentClient extends ReactQueryNetworkClient {
31
36
  })
32
37
  }
33
38
 
39
+ /**
40
+ * List agents filtered by visibility.
41
+ */
42
+ allAgents = this.query({
43
+ name: 'allAgents',
44
+ request: async (signal, variables: { visibilities: AgentVisibilityLevel[] }) => {
45
+ const visibilities: VisibilityLevel[] = variables.visibilities.includes('ALL')
46
+ ? ['PERSONAL', 'SHARED', 'WORKSPACE', 'ACCOUNT', 'FAVORITE']
47
+ : variables.visibilities.filter((visibility) => visibility !== 'BUILT-IN' && visibility !== 'ALL') as VisibilityLevel[]
48
+
49
+ const shouldIncludeBuiltInAgent = variables.visibilities.includes('ALL') || variables.visibilities.includes('BUILT-IN')
50
+ const shouldFetchBuiltInAgent = shouldIncludeBuiltInAgent || variables.visibilities.includes('FAVORITE')
51
+ const shouldFetchWorkspaceAgents = variables.visibilities.includes('ALL') || variables.visibilities.includes('WORKSPACE')
52
+
53
+ const publicAgentsPromise = shouldFetchBuiltInAgent ? getV1PublicAgents({}, { signal }) : Promise.resolve([])
54
+ const workspaceAgentsPromise = shouldFetchWorkspaceAgents
55
+ ? workspaceAiClient.workspacesContentsByType.query({ contentType: 'agent' })
56
+ : Promise.resolve([])
57
+
58
+ const [publicAgents, workspaceAgents, ...agentsByVisibility] = await Promise.all([
59
+ publicAgentsPromise,
60
+ workspaceAgentsPromise,
61
+ ...visibilities.map((visibility) => getV1Agents({ visibility }, { signal })),
62
+ ])
63
+
64
+ const workspaceAgentsWithSpaceName = workspaceAgents?.flatMap(({ agents, space_name }) =>
65
+ agents?.map((agent) => ({
66
+ ...agent,
67
+ spaceName: space_name,
68
+ builtIn: publicAgents?.some(publicAgent => publicAgent.id === agent.id),
69
+ }))) as AgentResponseWithBuiltIn[]
70
+
71
+ const allAgents: AgentResponseWithBuiltIn[] = workspaceAgentsWithSpaceName || []
72
+
73
+ if (shouldIncludeBuiltInAgent) {
74
+ const builtInsAgents = publicAgents?.map((agent) => ({ ...agent, builtIn: true, visibility_level: 'BUILT-IN' }))
75
+ // @ts-ignore fixme: above, BUILT-IN is not a valid value for the enum VisibilityLevel.
76
+ allAgents.push(...builtInsAgents)
77
+ }
78
+
79
+ agentsByVisibility.forEach(agents => {
80
+ allAgents.push(...agents.map(agent => ({
81
+ ...agent,
82
+ builtIn: publicAgents?.some(publicAgent => publicAgent.id === agent.id),
83
+ })))
84
+ })
85
+
86
+ return allAgents
87
+ },
88
+ })
89
+
34
90
  /**
35
91
  * Gets an agent by id
36
92
  */
@@ -41,6 +97,18 @@ class AgentClient extends ReactQueryNetworkClient {
41
97
  : getV1AgentByAgentId({ ...variables }, { signal }),
42
98
  })
43
99
 
100
+ /**
101
+ * Gets the default agent
102
+ */
103
+ agentDefault = this.query({
104
+ name: 'agentDefault',
105
+ request: async (signal) => {
106
+ const publicAgents = await getV1PublicAgents({}, { signal })
107
+ const agentDefault = publicAgents.find((agent) => isAgentDefault(agent.slug))
108
+ return agentDefault ? { ...agentDefault, builtIn: true } : undefined
109
+ },
110
+ })
111
+
44
112
  /**
45
113
  * List commons agents
46
114
  */
package/src/client/ai.ts CHANGED
@@ -34,7 +34,6 @@ import {
34
34
  quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost,
35
35
  resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete,
36
36
  runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost,
37
- searchKnowledgeSourcesV1KnowledgeSourcesSearchPost,
38
37
  updateQuickCommandV1QuickCommandsSlugPatch,
39
38
  updateTitleV1ConversationsConversationIdPatch,
40
39
  vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost,
@@ -136,10 +135,6 @@ class AIClient extends ReactQueryNetworkClient {
136
135
  * Gets a knowledge source document by the slug of the parent knowledge source and the document id.
137
136
  */
138
137
  knowledgeSourceDocument = this.query(removeAuthorizationParam(findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet))
139
- /**
140
- * Lists knowledge sources matching the provided IDs.
141
- */
142
- searchKnowledgeSources = this.query(removeAuthorizationParam(searchKnowledgeSourcesV1KnowledgeSourcesSearchPost))
143
138
  /**
144
139
  * Gets the chat history. This is a paginated resource.
145
140
  */
@@ -381,4 +376,3 @@ class AIClient extends ReactQueryNetworkClient {
381
376
  }
382
377
 
383
378
  export const aiClient = new AIClient()
384
-
@@ -3,12 +3,15 @@ import { HttpError } from '@oazapfts/runtime'
3
3
  import {
4
4
  checkRoleRouteV1RolesRoleGet,
5
5
  createAccountSettingsV1SettingsPut,
6
+ createApplicationsBatchServiceV1ApplicationsBatchPost,
7
+ createApplicationServiceV1ApplicationsPost,
6
8
  createIntegrationServiceV1IntegrationsPost,
7
9
  createModuleServiceV1ModulesPost,
8
10
  createProgramGroupServiceV1ProgramGroupsPost,
9
11
  createReposBatchServiceV1ReposBatchPost,
10
12
  createRepositoryServiceV1ReposPost,
11
13
  defaults,
14
+ deleteApplicationServiceV1ApplicationsApplicationIdDelete,
12
15
  deleteIntegrationServiceV1IntegrationsIntegrationIdDelete,
13
16
  deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDelete,
14
17
  deleteRepositoryServiceV1ReposRepositoryIdDelete,
@@ -16,12 +19,14 @@ import {
16
19
  downloadReportV1ReportsReportIdDownloadGet,
17
20
  downloadSearchReposScmServiceV1ReposSearchScmSearchRepoIdDownloadGet,
18
21
  getAccountSettingsV1SettingsGet,
22
+ getApplicationByIdServiceV1ApplicationsApplicationIdGet,
19
23
  getIntegrationByIdServiceV1IntegrationsIntegrationIdGet,
20
24
  getProgramGroupByIdServiceV1ProgramGroupsProgramGroupIdGet,
21
- getReportPullRequestContentV1ReportsReportIdPullRequestGet,
22
25
  getReportV1ReportsReportIdGet,
23
26
  getRepositoryByIdServiceV1ReposRepositoryIdGet,
24
27
  getStatusSearchReposScmServiceV1ReposSearchScmSearchRepoIdStatusGet,
28
+ listApplicationReportV1ApplicationsApplicationIdReportsGet,
29
+ listApplicationServiceV1ApplicationsGet,
25
30
  listIntegrationServiceV1IntegrationsGet,
26
31
  listModulesServiceV1ModulesGet,
27
32
  listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReportsGet,
@@ -30,11 +35,10 @@ import {
30
35
  listRepositoryServiceV1ReposGet,
31
36
  listTagsServiceV1TagsGet,
32
37
  searchReposScmServiceV1ReposSearchScmGet,
38
+ updateApplicationServiceV1ApplicationsApplicationIdPut,
33
39
  updateIntegrationServiceV1IntegrationsIntegrationIdPut,
34
- updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut,
35
40
  updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut,
36
41
  updateRepositoryServiceV1ReposRepositoryIdPut,
37
- validateScmUrlServiceV1ReposValidateScmUrlPost,
38
42
  } from '../api/codeShift'
39
43
  import apis from '../apis.json'
40
44
  import { DefaultAPIError } from '../error/DefaultAPIError'
@@ -52,6 +56,36 @@ class CodeShift extends ReactQueryNetworkClient {
52
56
  return new DefaultAPIError(error.data, error.status, codeShiftDictionary, error.headers)
53
57
  }
54
58
 
59
+ /**
60
+ * @deprecated use createRepository instead
61
+ * Creates a code shift application.
62
+ */
63
+ createApplication = this.mutation(removeAuthorizationParam(createApplicationServiceV1ApplicationsPost))
64
+ /**
65
+ * @deprecated use createRepositoriesBatch instead
66
+ * Creates a code shift application in batch.
67
+ */
68
+ createApplicationBatch = this.mutation(removeAuthorizationParam(createApplicationsBatchServiceV1ApplicationsBatchPost))
69
+ /**
70
+ * @deprecated use repositories instead
71
+ * Gets code shift applications.
72
+ */
73
+ applications = this.query(removeAuthorizationParam(listApplicationServiceV1ApplicationsGet))
74
+ /**
75
+ * @deprecated use repository instead
76
+ * Gets code shift application
77
+ */
78
+ application = this.query(removeAuthorizationParam(getApplicationByIdServiceV1ApplicationsApplicationIdGet))
79
+ /**
80
+ * @deprecated use updateRepository instead
81
+ * Updates a code shift application
82
+ */
83
+ updateApplication = this.mutation(removeAuthorizationParam(updateApplicationServiceV1ApplicationsApplicationIdPut))
84
+ /**
85
+ * @deprecated use deleteRepository instead
86
+ * Deletes a code shift application.
87
+ */
88
+ deleteImportedApp = this.mutation(removeAuthorizationParam(deleteApplicationServiceV1ApplicationsApplicationIdDelete))
55
89
  /**
56
90
  * Creates a repository.
57
91
  */
@@ -76,10 +110,6 @@ class CodeShift extends ReactQueryNetworkClient {
76
110
  * Updates a repository
77
111
  */
78
112
  updateRepository = this.mutation(removeAuthorizationParam(updateRepositoryServiceV1ReposRepositoryIdPut))
79
- /**
80
- * Get a report for a pull request by id.
81
- */
82
- getReportPullRequestContent = this.query(removeAuthorizationParam(getReportPullRequestContentV1ReportsReportIdPullRequestGet))
83
113
  /**
84
114
  * Gets modules.
85
115
  */
@@ -92,6 +122,11 @@ class CodeShift extends ReactQueryNetworkClient {
92
122
  * Generates a report.
93
123
  */
94
124
  generateReport = this.mutation(removeAuthorizationParam(dispatchModuleServiceV1ModulesDispatchesPost))
125
+ /**
126
+ * @deprecated use repositoryReports instead
127
+ * Gets reports.
128
+ */
129
+ reports = this.query(removeAuthorizationParam(listApplicationReportV1ApplicationsApplicationIdReportsGet))
95
130
  /**
96
131
  * Gets repository reports.
97
132
  */
@@ -129,64 +164,67 @@ class CodeShift extends ReactQueryNetworkClient {
129
164
  * We do not use opa in this api, so this is the fn needed to check permissions.
130
165
  */
131
166
  validateRolePermissions = this.query(removeAuthorizationParam(checkRoleRouteV1RolesRoleGet))
167
+
132
168
  /**
133
169
  * Creates an integration
134
170
  */
135
171
  createIntegration = this.mutation(removeAuthorizationParam(createIntegrationServiceV1IntegrationsPost))
172
+
136
173
  /**
137
174
  * Lists integrations
138
175
  */
139
176
  listIntegration = this.query(removeAuthorizationParam(listIntegrationServiceV1IntegrationsGet))
177
+
140
178
  /**
141
179
  * Gets an integration by id
142
180
  */
143
181
  getIntegrationById = this.query(removeAuthorizationParam(getIntegrationByIdServiceV1IntegrationsIntegrationIdGet))
182
+
144
183
  /**
145
184
  * Updates an integration
146
185
  */
147
186
  updateIntegration = this.mutation(removeAuthorizationParam(updateIntegrationServiceV1IntegrationsIntegrationIdPut))
187
+
148
188
  /**
149
189
  * Deletes an integration
150
190
  */
151
191
  deleteIntegration = this.mutation(removeAuthorizationParam(deleteIntegrationServiceV1IntegrationsIntegrationIdDelete))
192
+
152
193
  /**
153
194
  * Creates a program group.
154
195
  */
155
196
  createProgramGroup = this.mutation(removeAuthorizationParam(createProgramGroupServiceV1ProgramGroupsPost))
197
+
156
198
  /**
157
199
  * Gets list of program groups.
158
200
  */
159
201
  listProgramGroups = this.query(removeAuthorizationParam(listProgramGroupServiceV1ProgramGroupsGet))
202
+
160
203
  /**
161
204
  * Gets a program group by id.
162
205
  */
163
206
  getProgramGroupById = this.query(removeAuthorizationParam(getProgramGroupByIdServiceV1ProgramGroupsProgramGroupIdGet))
207
+
164
208
  /**
165
- * List Program Group Report Service
166
- */
209
+ * List Program Group Report Service
210
+ */
167
211
  listProgramGroupReport = this.query(removeAuthorizationParam(listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReportsGet))
212
+
168
213
  /**
169
214
  * Updates a program group.
170
215
  */
171
216
  updateProgramGroup = this.mutation(removeAuthorizationParam(updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut))
172
- /**
173
- * Updates a program group components.
174
- */
175
- updateProgramGroupComponents = this.mutation(
176
- removeAuthorizationParam(updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut),
177
- )
217
+
178
218
  /**
179
219
  * Deletes a program group.
180
220
  */
181
221
  deleteProgramGroup = this.mutation(removeAuthorizationParam(deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDelete))
222
+
182
223
  /**
183
224
  * Gets list of tags.
184
225
  */
185
226
  tags = this.query(removeAuthorizationParam(listTagsServiceV1TagsGet))
186
- /**
187
- * Validates a SCM URL.
188
- */
189
- validateSCMUrl = this.mutation(removeAuthorizationParam(validateScmUrlServiceV1ReposValidateScmUrlPost))
227
+
190
228
  }
191
229
 
192
230
  export const codeShiftClient = new CodeShift()
@@ -1,5 +1,5 @@
1
1
  import { HttpError } from '@oazapfts/runtime'
2
- import { attach, createHypothesis, defaults, deleteHypothesisById, deleteV1DocumentsByDocumentIdHypothesesAndHypothesisId, download, findHypothesisById, getAll, getById, list, list1, listAllDocumentsWithHypotheses, listHypothesis, listVersions, upload } from '../api/discovery'
2
+ import { attach, createHypothesis, defaults, deleteV1DocumentsByDocumentIdHypothesesAndHypothesisNumber, download, findHypothesisByNumber, getAll, getById, list1, list2, listAllDocumentsWithHypotheses, listHypothesis, listVersions, upload } from '../api/discovery'
3
3
  import apis from '../apis.json'
4
4
  import { DefaultAPIError } from '../error/DefaultAPIError'
5
5
  import { baseDictionary } from '../error/dictionary/base'
@@ -23,11 +23,11 @@ class DiscoveryClient extends ReactQueryNetworkClient {
23
23
  /**
24
24
  * Get details of an hypothesis by id
25
25
  */
26
- getHypothesisById = this.query(findHypothesisById)
26
+ getHypothesisById = this.query(findHypothesisByNumber)
27
27
  /**
28
28
  * Get list of hypothesis documents
29
29
  */
30
- listDocumentsByHypothesis = this.query(list1)
30
+ listDocumentsByHypothesis = this.query(list2)
31
31
  /**
32
32
  * Get list of all documents
33
33
  */
@@ -39,7 +39,7 @@ class DiscoveryClient extends ReactQueryNetworkClient {
39
39
  /**
40
40
  * Get list of opportunities
41
41
  */
42
- listOpportunities = this.query(list)
42
+ listOpportunities = this.query(list1)
43
43
  /**
44
44
  * Get list of document types
45
45
  */
@@ -56,14 +56,10 @@ class DiscoveryClient extends ReactQueryNetworkClient {
56
56
  * Attach a existing document in an hypothesis
57
57
  */
58
58
  attachExistingDocument = this.mutation(removeAuthorizationParam(attach))
59
- /**
60
- * Delete an hypothesis
61
- */
62
- deleteHypothesis = this.mutation(removeAuthorizationParam(deleteHypothesisById))
63
59
  /**
64
60
  * Delete an document
65
61
  */
66
- deleteDocument = this.mutation(removeAuthorizationParam(deleteV1DocumentsByDocumentIdHypothesesAndHypothesisId))
62
+ deleteDocument = this.mutation(removeAuthorizationParam(deleteV1DocumentsByDocumentIdHypothesesAndHypothesisNumber))
67
63
  /**
68
64
  * Download an document
69
65
  */
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { HttpError } from '@oazapfts/runtime'
3
- import { addSelfHostedModelV1LlmModelsPost, agentChatV1AgentAgentIdChatPost, defaults, deleteModelResourcesV1LlmResourcesResourceIdDelete, deleteV1LlmModelsModelIdDelete, getModelV1LlmModelsModelIdGet, listLlmProvidersV1LlmProvidersGet, listModelsV1LlmModelsGet, saveOrUpdateModelResourcesV1LlmModelsModelIdResourcesPut, toggleModelStatusV1LlmModelsModelIdPatch, updateV1LlmModelsModelIdPut } from '../api/genAiInference'
3
+ import { addSelfHostedModelV1LlmModelsPost, defaults, deleteModelResourcesV1LlmResourcesResourceIdDelete, deleteV1LlmModelsModelIdDelete, getModelV1LlmModelsModelIdGet, listLlmProvidersV1LlmProvidersGet, listModelsV1LlmModelsGet, saveOrUpdateModelResourcesV1LlmModelsModelIdResourcesPut, toggleModelStatusV1LlmModelsModelIdPatch, updateV1LlmModelsModelIdPut } from '../api/genAiInference'
4
4
  import apis from '../apis.json'
5
5
  import { DefaultAPIError } from '../error/DefaultAPIError'
6
6
  import { inferenceDictionary } from '../error/dictionary/ai-inference'
@@ -55,11 +55,6 @@ class GenAiInference extends ReactQueryNetworkClient {
55
55
  * Deletes a specific model resource by resource ID.
56
56
  */
57
57
  deleteModelResource = this.mutation(removeAuthorizationParam(deleteModelResourcesV1LlmResourcesResourceIdDelete))
58
-
59
- /**
60
- * Interaction with a specific AI agent
61
- */
62
- sendAgentMessage = this.mutation(agentChatV1AgentAgentIdChatPost)
63
58
  }
64
59
 
65
60
  export const genAiInferenceClient = new GenAiInference()
@@ -1,6 +1,7 @@
1
1
  import { RequestOpts } from '@oazapfts/runtime'
2
2
  import { AccountScmInfoSaveRequest, AccountScmInfoUpdateRequest, AccountScmStatusResponse, GroupsFromResourceResponse, MembersFromResourceResponse } from '../api/account'
3
- import { AgentVisibilityLevelEnum, HttpMethod, ListAgentResponse, VisibilityLevelEnum } from '../api/agent-tools'
3
+ import { AgentResponse, VisibilityLevel } from '../api/agent'
4
+ import { HttpMethod } from '../api/agent-tools'
4
5
  import { ChatRequest, ChatResponse3, ContentDependencyResponse, ConversationHistoryResponse, ConversationResponse, DependencyResponse } from '../api/ai'
5
6
  import { ConnectAccountRequestV2, ManagedAccountProvisionRequest } from '../api/cloudAccount'
6
7
  import { AllocationCostRequest, AllocationCostResponse, ChargePeriod, getAllocationCostFilters, ManagedService, ServiceResource } from '../api/cloudServices'
@@ -219,7 +220,6 @@ export interface WorkspaceAiMembersPermissions {
219
220
  totalPages: number,
220
221
  }
221
222
 
222
-
223
223
  export interface WorkspaceAiGroupsPermissions extends GroupsFromResourceResponse {
224
224
  actions: Action[],
225
225
  }
@@ -358,14 +358,12 @@ export type FixVariables<
358
358
 
359
359
  export type ReplaceResult<T extends (...args: any[]) => Promise<any>, Fix> = (...args: Parameters<T>) => Promise<Fix>
360
360
 
361
- export interface AgentResponseWithBuiltIn extends Omit<ListAgentResponse, 'conversation_starter' | 'avatar'> {
361
+ export interface AgentResponseWithBuiltIn extends AgentResponse {
362
362
  builtIn?: boolean,
363
363
  spaceName?: string,
364
- conversation_starter?: string[] | null,
365
- avatar?: string | null | undefined,
366
- }
364
+ }
367
365
 
368
- export type AgentVisibilityLevel = AgentVisibilityLevelEnum | VisibilityLevelEnum
366
+ export type AgentVisibilityLevel = VisibilityLevel | 'BUILT-IN' | 'ALL'
369
367
 
370
368
  export interface AgentToolsOpenAPIPreview {
371
369
  name: string,