@stack-spot/portal-network 0.153.0 → 0.154.0-beta.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.
@@ -332,3 +332,5 @@ export function delete1({ notificationIntentId }: {
332
332
  method: "DELETE"
333
333
  }));
334
334
  }
335
+
336
+
@@ -1,12 +1,15 @@
1
1
  import { HttpError } from '@oazapfts/runtime'
2
- import { createToolkitToolsV1ToolkitsToolkitIdToolsPost, createToolkitV1ToolkitsPost, defaults, deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete, deleteToolkitV1ToolkitsToolkitIdDelete, editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut, forkToolkitV1ToolkitsToolkitIdForkPost, getPublicToolKitsV1BuiltinToolkitGet, getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet, getToolkitV1ToolkitsToolkitIdGet, HttpValidationError, listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost, listToolkitsV1ToolkitsGet, updateToolkitV1ToolkitsToolkitIdPatch } from '../api/agent-tools'
2
+ import { addFavoriteV1AgentsAgentIdFavoritePost, AgentVisibilityLevelEnum, createAgentV1AgentsPost, createToolkitToolsV1ToolkitsToolkitIdToolsPost, createToolkitV1ToolkitsPost, defaults, deleteAgentV1AgentsAgentIdDelete, deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete, deleteToolkitV1ToolkitsToolkitIdDelete, editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut, forkToolkitV1ToolkitsToolkitIdForkPost, getAgentV1AgentsAgentIdGet, getPublicToolKitsV1BuiltinToolkitGet, getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet, getToolkitV1ToolkitsToolkitIdGet, HttpValidationError, listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost, listAgentsV1AgentsGet, listToolkitsV1ToolkitsGet, publishAgentV1AgentsAgentIdPublishPost, searchAgentsV1AgentsSearchPost, updateAgentV1AgentsAgentIdPut, updateToolkitV1ToolkitsToolkitIdPatch, VisibilityLevelEnum } from '../api/agent-tools'
3
3
  import apis from '../apis.json'
4
4
  import { StackspotAPIError } from '../error/StackspotAPIError'
5
5
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
6
6
  import { FetchEventStream } from '../network/types'
7
7
  import { removeAuthorizationParam } from '../utils/remove-authorization-param'
8
8
  import { StreamedArray } from '../utils/StreamedArray'
9
- import { AgentToolsOpenAPIPreview } from './types'
9
+ import { AgentResponseWithBuiltIn, AgentToolsOpenAPIPreview, AgentVisibilityLevel } from './types'
10
+ import { workspaceAiClient } from './workspace-ai'
11
+
12
+ const AGENT_DEFAULT_SLUG = 'stk_code_buddy'
10
13
 
11
14
  class AgentToolsClient extends ReactQueryNetworkClient {
12
15
  constructor() {
@@ -26,8 +29,104 @@ class AgentToolsClient extends ReactQueryNetworkClient {
26
29
  tools = this.query(removeAuthorizationParam(getPublicToolKitsV1BuiltinToolkitGet))
27
30
 
28
31
  /**
29
- * Get list of Toolkits
32
+ * Create agent
33
+ */
34
+ createAgent = this.mutation(removeAuthorizationParam(createAgentV1AgentsPost))
35
+
36
+ /**
37
+ * Delete agent
38
+ */
39
+ deleteAgent = this.mutation(deleteAgentV1AgentsAgentIdDelete)
40
+
41
+ /**
42
+ * Updates an agent
43
+ */
44
+ updateAgent = this.mutation(updateAgentV1AgentsAgentIdPut)
45
+
46
+ /**
47
+ * Favorite an agent
48
+ */
49
+ favoriteAgent = this.mutation(addFavoriteV1AgentsAgentIdFavoritePost)
50
+
51
+ /**
52
+ * Publish an agent
53
+ */
54
+ publishAgent = this.mutation(publishAgentV1AgentsAgentIdPublishPost)
55
+
56
+ /**
57
+ * List agents
58
+ */
59
+ agents = this.infiniteQuery(removeAuthorizationParam(listAgentsV1AgentsGet))
60
+
61
+ /**
62
+ * Gets agent by id
63
+ */
64
+ agent = this.query(removeAuthorizationParam(getAgentV1AgentsAgentIdGet))
65
+
66
+ /**
67
+ * Gets agents by ids
68
+ */
69
+ agentsByIds = this.query(removeAuthorizationParam(searchAgentsV1AgentsSearchPost))
70
+
71
+ /**
72
+ * Gets the default agent slug
73
+ */
74
+ agentDefaultSlug = AGENT_DEFAULT_SLUG
75
+
76
+ /**
77
+ * Gets the default agent
78
+ */
79
+ agentDefault = this.query({
80
+ name: 'agentDefault',
81
+ request: async (signal) => {
82
+ const agentDefault = await listAgentsV1AgentsGet(
83
+ { visibility: 'built_in', slug: this.agentDefaultSlug, authorization: '' }, { signal },
84
+ )
85
+
86
+ const agentId = agentDefault.at(0)?.id
87
+ const agent = agentId ? await this.agent.query({ agentId }) : undefined
88
+ return agent
89
+ },
90
+ })
91
+
92
+ /**
93
+ * List agents filtered by visibility.
30
94
  */
95
+ allAgents = this.query({
96
+ name: 'allAgents',
97
+ request: async (signal, variables: { visibilities: (AgentVisibilityLevel | 'all')[] }) => {
98
+ const allVisibilities = ['account', 'built_in', 'favorite', 'personal', 'shared', 'workspace'] as const
99
+ const visibilities = variables.visibilities.includes('all')
100
+ ? allVisibilities
101
+ : variables.visibilities as Array<AgentVisibilityLevelEnum | VisibilityLevelEnum>
102
+
103
+ const shouldFetchWorkspaceAgents = visibilities.includes('workspace')
104
+
105
+ const workspaceAgentsPromise = shouldFetchWorkspaceAgents
106
+ ? workspaceAiClient.workspacesContentsByType.query({ contentType: 'agent' })
107
+ : Promise.resolve([])
108
+
109
+ const [workspaceAgents, ...agentsByVisibility] = await Promise.all([
110
+ workspaceAgentsPromise,
111
+ ...visibilities.map((visibility) => listAgentsV1AgentsGet({ visibility, authorization: '' }, { signal })),
112
+ ])
113
+
114
+ const workspaceAgentsWithSpaceName = workspaceAgents.flatMap(({ agents, space_name }) =>
115
+ agents?.map((agent) => ({ ...agent, spaceName: space_name, builtIn: false }))) as AgentResponseWithBuiltIn[]
116
+
117
+ const allAgents: AgentResponseWithBuiltIn[] = workspaceAgentsWithSpaceName ?? []
118
+
119
+ agentsByVisibility.forEach(agents => allAgents.push(...agents.map(agent => ({
120
+ ...agent,
121
+ builtIn: agent?.visibility_level === 'built_in',
122
+ }))))
123
+
124
+ return allAgents
125
+ },
126
+ })
127
+
128
+ /* Get list of Toolkits
129
+ */
31
130
  toolkits = this.query(removeAuthorizationParam(listToolkitsV1ToolkitsGet))
32
131
  /**
33
132
  * Get a toolkit by Id
@@ -2,15 +2,10 @@ import { HttpError } from '@oazapfts/runtime'
2
2
  import {
3
3
  defaults, deleteV1AgentByAgentIdFavorite, getV1AgentByAgentId, getV1Agents, getV1PublicAgentByAgentId, getV1PublicAgents,
4
4
  postV1AgentByAgentIdFavorite, putV1AgentByAgentId,
5
- VisibilityLevel,
6
5
  } from '../api/agent'
7
6
  import apis from '../apis.json'
8
7
  import { StackspotAPIError } from '../error/StackspotAPIError'
9
8
  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'
14
9
 
15
10
  interface AgentError {
16
11
  code?: string,
@@ -36,57 +31,6 @@ class AgentClient extends ReactQueryNetworkClient {
36
31
  })
37
32
  }
38
33
 
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
-
90
34
  /**
91
35
  * Gets an agent by id
92
36
  */
@@ -97,18 +41,6 @@ class AgentClient extends ReactQueryNetworkClient {
97
41
  : getV1AgentByAgentId({ ...variables }, { signal }),
98
42
  })
99
43
 
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
-
112
44
  /**
113
45
  * List commons agents
114
46
  */
package/src/client/ai.ts CHANGED
@@ -33,6 +33,7 @@ import {
33
33
  quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost,
34
34
  resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete,
35
35
  runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost,
36
+ searchKnowledgeSourcesV1KnowledgeSourcesSearchPost,
36
37
  updateQuickCommandV1QuickCommandsSlugPatch,
37
38
  updateTitleV1ConversationsConversationIdPatch,
38
39
  vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost,
@@ -134,6 +135,10 @@ class AIClient extends ReactQueryNetworkClient {
134
135
  * Gets a knowledge source document by the slug of the parent knowledge source and the document id.
135
136
  */
136
137
  knowledgeSourceDocument = this.query(removeAuthorizationParam(findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet))
138
+ /**
139
+ * Lists knowledge sources matching the provided IDs.
140
+ */
141
+ searchKnowledgeSources = this.query(removeAuthorizationParam(searchKnowledgeSourcesV1KnowledgeSourcesSearchPost))
137
142
  /**
138
143
  * Gets the chat history. This is a paginated resource.
139
144
  */
@@ -371,3 +376,4 @@ class AIClient extends ReactQueryNetworkClient {
371
376
  }
372
377
 
373
378
  export const aiClient = new AIClient()
379
+
@@ -3,15 +3,12 @@ import { HttpError } from '@oazapfts/runtime'
3
3
  import {
4
4
  checkRoleRouteV1RolesRoleGet,
5
5
  createAccountSettingsV1SettingsPut,
6
- createApplicationsBatchServiceV1ApplicationsBatchPost,
7
- createApplicationServiceV1ApplicationsPost,
8
6
  createIntegrationServiceV1IntegrationsPost,
9
7
  createModuleServiceV1ModulesPost,
10
8
  createProgramGroupServiceV1ProgramGroupsPost,
11
9
  createReposBatchServiceV1ReposBatchPost,
12
10
  createRepositoryServiceV1ReposPost,
13
11
  defaults,
14
- deleteApplicationServiceV1ApplicationsApplicationIdDelete,
15
12
  deleteIntegrationServiceV1IntegrationsIntegrationIdDelete,
16
13
  deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDelete,
17
14
  deleteRepositoryServiceV1ReposRepositoryIdDelete,
@@ -19,14 +16,12 @@ import {
19
16
  downloadReportV1ReportsReportIdDownloadGet,
20
17
  downloadSearchReposScmServiceV1ReposSearchScmSearchRepoIdDownloadGet,
21
18
  getAccountSettingsV1SettingsGet,
22
- getApplicationByIdServiceV1ApplicationsApplicationIdGet,
23
19
  getIntegrationByIdServiceV1IntegrationsIntegrationIdGet,
24
20
  getProgramGroupByIdServiceV1ProgramGroupsProgramGroupIdGet,
21
+ getReportPullRequestContentV1ReportsReportIdPullRequestGet,
25
22
  getReportV1ReportsReportIdGet,
26
23
  getRepositoryByIdServiceV1ReposRepositoryIdGet,
27
24
  getStatusSearchReposScmServiceV1ReposSearchScmSearchRepoIdStatusGet,
28
- listApplicationReportV1ApplicationsApplicationIdReportsGet,
29
- listApplicationServiceV1ApplicationsGet,
30
25
  listIntegrationServiceV1IntegrationsGet,
31
26
  listModulesServiceV1ModulesGet,
32
27
  listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReportsGet,
@@ -35,10 +30,11 @@ import {
35
30
  listRepositoryServiceV1ReposGet,
36
31
  listTagsServiceV1TagsGet,
37
32
  searchReposScmServiceV1ReposSearchScmGet,
38
- updateApplicationServiceV1ApplicationsApplicationIdPut,
39
33
  updateIntegrationServiceV1IntegrationsIntegrationIdPut,
34
+ updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut,
40
35
  updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut,
41
36
  updateRepositoryServiceV1ReposRepositoryIdPut,
37
+ validateScmUrlServiceV1ReposValidateScmUrlPost,
42
38
  } from '../api/codeShift'
43
39
  import apis from '../apis.json'
44
40
  import { DefaultAPIError } from '../error/DefaultAPIError'
@@ -56,36 +52,6 @@ class CodeShift extends ReactQueryNetworkClient {
56
52
  return new DefaultAPIError(error.data, error.status, codeShiftDictionary, error.headers)
57
53
  }
58
54
 
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))
89
55
  /**
90
56
  * Creates a repository.
91
57
  */
@@ -110,6 +76,10 @@ class CodeShift extends ReactQueryNetworkClient {
110
76
  * Updates a repository
111
77
  */
112
78
  updateRepository = this.mutation(removeAuthorizationParam(updateRepositoryServiceV1ReposRepositoryIdPut))
79
+ /**
80
+ * Get a report for a pull request by id.
81
+ */
82
+ getReportPullRequestContent = this.query(removeAuthorizationParam(getReportPullRequestContentV1ReportsReportIdPullRequestGet))
113
83
  /**
114
84
  * Gets modules.
115
85
  */
@@ -122,11 +92,6 @@ class CodeShift extends ReactQueryNetworkClient {
122
92
  * Generates a report.
123
93
  */
124
94
  generateReport = this.mutation(removeAuthorizationParam(dispatchModuleServiceV1ModulesDispatchesPost))
125
- /**
126
- * @deprecated use repositoryReports instead
127
- * Gets reports.
128
- */
129
- reports = this.query(removeAuthorizationParam(listApplicationReportV1ApplicationsApplicationIdReportsGet))
130
95
  /**
131
96
  * Gets repository reports.
132
97
  */
@@ -164,67 +129,64 @@ class CodeShift extends ReactQueryNetworkClient {
164
129
  * We do not use opa in this api, so this is the fn needed to check permissions.
165
130
  */
166
131
  validateRolePermissions = this.query(removeAuthorizationParam(checkRoleRouteV1RolesRoleGet))
167
-
168
132
  /**
169
133
  * Creates an integration
170
134
  */
171
135
  createIntegration = this.mutation(removeAuthorizationParam(createIntegrationServiceV1IntegrationsPost))
172
-
173
136
  /**
174
137
  * Lists integrations
175
138
  */
176
139
  listIntegration = this.query(removeAuthorizationParam(listIntegrationServiceV1IntegrationsGet))
177
-
178
140
  /**
179
141
  * Gets an integration by id
180
142
  */
181
143
  getIntegrationById = this.query(removeAuthorizationParam(getIntegrationByIdServiceV1IntegrationsIntegrationIdGet))
182
-
183
144
  /**
184
145
  * Updates an integration
185
146
  */
186
147
  updateIntegration = this.mutation(removeAuthorizationParam(updateIntegrationServiceV1IntegrationsIntegrationIdPut))
187
-
188
148
  /**
189
149
  * Deletes an integration
190
150
  */
191
151
  deleteIntegration = this.mutation(removeAuthorizationParam(deleteIntegrationServiceV1IntegrationsIntegrationIdDelete))
192
-
193
152
  /**
194
153
  * Creates a program group.
195
154
  */
196
155
  createProgramGroup = this.mutation(removeAuthorizationParam(createProgramGroupServiceV1ProgramGroupsPost))
197
-
198
156
  /**
199
157
  * Gets list of program groups.
200
158
  */
201
159
  listProgramGroups = this.query(removeAuthorizationParam(listProgramGroupServiceV1ProgramGroupsGet))
202
-
203
160
  /**
204
161
  * Gets a program group by id.
205
162
  */
206
163
  getProgramGroupById = this.query(removeAuthorizationParam(getProgramGroupByIdServiceV1ProgramGroupsProgramGroupIdGet))
207
-
208
164
  /**
209
- * List Program Group Report Service
210
- */
165
+ * List Program Group Report Service
166
+ */
211
167
  listProgramGroupReport = this.query(removeAuthorizationParam(listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReportsGet))
212
-
213
168
  /**
214
169
  * Updates a program group.
215
170
  */
216
171
  updateProgramGroup = this.mutation(removeAuthorizationParam(updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut))
217
-
172
+ /**
173
+ * Updates a program group components.
174
+ */
175
+ updateProgramGroupComponents = this.mutation(
176
+ removeAuthorizationParam(updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut),
177
+ )
218
178
  /**
219
179
  * Deletes a program group.
220
180
  */
221
181
  deleteProgramGroup = this.mutation(removeAuthorizationParam(deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDelete))
222
-
223
182
  /**
224
183
  * Gets list of tags.
225
184
  */
226
185
  tags = this.query(removeAuthorizationParam(listTagsServiceV1TagsGet))
227
-
186
+ /**
187
+ * Validates a SCM URL.
188
+ */
189
+ validateSCMUrl = this.mutation(removeAuthorizationParam(validateScmUrlServiceV1ReposValidateScmUrlPost))
228
190
  }
229
191
 
230
192
  export const codeShiftClient = new CodeShift()
@@ -1,7 +1,6 @@
1
1
  import { RequestOpts } from '@oazapfts/runtime'
2
2
  import { AccountScmInfoSaveRequest, AccountScmInfoUpdateRequest, AccountScmStatusResponse, GroupsFromResourceResponse, MembersFromResourceResponse } from '../api/account'
3
- import { AgentResponse, VisibilityLevel } from '../api/agent'
4
- import { HttpMethod } from '../api/agent-tools'
3
+ import { AgentVisibilityLevelEnum, HttpMethod, ListAgentResponse, VisibilityLevelEnum } from '../api/agent-tools'
5
4
  import { ChatRequest, ChatResponse3, ContentDependencyResponse, ConversationHistoryResponse, ConversationResponse, DependencyResponse } from '../api/ai'
6
5
  import { ConnectAccountRequestV2, ManagedAccountProvisionRequest } from '../api/cloudAccount'
7
6
  import { AllocationCostRequest, AllocationCostResponse, ChargePeriod, getAllocationCostFilters, ManagedService, ServiceResource } from '../api/cloudServices'
@@ -220,6 +219,7 @@ export interface WorkspaceAiMembersPermissions {
220
219
  totalPages: number,
221
220
  }
222
221
 
222
+
223
223
  export interface WorkspaceAiGroupsPermissions extends GroupsFromResourceResponse {
224
224
  actions: Action[],
225
225
  }
@@ -358,12 +358,14 @@ 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 AgentResponse {
361
+ export interface AgentResponseWithBuiltIn extends Omit<ListAgentResponse, 'conversation_starter' | 'avatar'> {
362
362
  builtIn?: boolean,
363
363
  spaceName?: string,
364
- }
364
+ conversation_starter?: string[] | null,
365
+ avatar?: string | null | undefined,
366
+ }
365
367
 
366
- export type AgentVisibilityLevel = VisibilityLevel | 'BUILT-IN' | 'ALL'
368
+ export type AgentVisibilityLevel = AgentVisibilityLevelEnum | VisibilityLevelEnum
367
369
 
368
370
  export interface AgentToolsOpenAPIPreview {
369
371
  name: string,