@stack-spot/portal-network 0.178.0 → 0.178.1-beta.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.
@@ -17,9 +17,9 @@
17
17
  },
18
18
  "agent": {
19
19
  "url": {
20
- "dev": "https://genai-ai-agent-mgmt-api.dev.stackspot.com",
21
- "stg": "https://genai-ai-agent-mgmt-api.stg.stackspot.com",
22
- "prd": "https://genai-ai-agent-mgmt-api.stackspot.com"
20
+ "stg": "",
21
+ "dev": "",
22
+ "prd": ""
23
23
  },
24
24
  "docs": "/q/openapi"
25
25
  },
@@ -41,9 +41,9 @@
41
41
  },
42
42
  "workspace": {
43
43
  "url": {
44
- "dev": "https://workspace-workspace-api.dev.stackspot.com",
45
- "stg": "https://workspace-workspace-api.stg.stackspot.com",
46
- "prd": "https://workspace.stackspot.com"
44
+ "stg": "",
45
+ "dev": "",
46
+ "prd": ""
47
47
  },
48
48
  "docs": "/v3/api-docs"
49
49
  },
@@ -57,9 +57,9 @@
57
57
  },
58
58
  "content": {
59
59
  "url": {
60
- "dev": "https://content-content-api.dev.stackspot.com",
61
- "stg": "https://content-content-api.stg.stackspot.com",
62
- "prd": "https://content-api.stackspot.com"
60
+ "stg": "",
61
+ "dev": "",
62
+ "prd": ""
63
63
  },
64
64
  "docs": "/v3/api-docs"
65
65
  },
@@ -73,73 +73,73 @@
73
73
  },
74
74
  "serviceCatalog": {
75
75
  "url": {
76
- "dev": "https://catalog-tech-products-catalog-api.dev.stackspot.com",
77
- "stg": "https://catalog-tech-products-catalog-api.stg.stackspot.com",
78
- "prd": "https://catalog-api.stackspot.com"
76
+ "stg": "",
77
+ "dev": "",
78
+ "prd": ""
79
79
  },
80
80
  "docs": "/v3/api-docs"
81
81
  },
82
82
  "apiRuntime": {
83
83
  "url": {
84
- "dev": "https://runtime-manager.dev.stackspot.com",
85
- "stg": "https://runtime-manager.stg.stackspot.com",
86
- "prd": "https://runtime-manager.stackspot.com"
84
+ "stg": "",
85
+ "dev": "",
86
+ "prd": ""
87
87
  },
88
88
  "docs": "/v3/api-docs"
89
89
  },
90
90
  "cloudServices": {
91
91
  "url": {
92
- "dev": "https://cloud-services-cloud-services-api.dev.stackspot.com",
93
- "stg": "https://cloud-services-cloud-services-api.stg.stackspot.com",
94
- "prd": "https://cloud-services-api.stackspot.com"
92
+ "stg": "",
93
+ "dev": "",
94
+ "prd": ""
95
95
  },
96
96
  "docs": "/v3/api-docs"
97
97
  },
98
98
  "cloudAccount": {
99
99
  "url": {
100
- "dev": "https://account-account-external-connections-api.dev.stackspot.com",
101
- "stg": "https://account-account-external-connections-api.stg.stackspot.com",
102
- "prd": "https://account-external-connections-api.stackspot.com"
100
+ "stg": "",
101
+ "dev": "",
102
+ "prd": ""
103
103
  },
104
104
  "docs": "/v3/api-docs"
105
105
  },
106
106
  "dataPlatform": {
107
107
  "url": {
108
- "dev": "https://data-platform-metabase.dev.stackspot.com",
109
- "stg": "https://data-platform-metabase.stg.stackspot.com",
110
- "prd": "https://data-platform-stackspot-public.stackspot.com"
108
+ "stg": "",
109
+ "dev": "",
110
+ "prd": ""
111
111
  },
112
112
  "docs": "/v3/api-docs"
113
113
  },
114
114
  "insights": {
115
115
  "url": {
116
- "dev": "https://insights-insights-api.dev.stackspot.com",
117
- "stg": "https://insights-insights-api.stg.stackspot.com",
118
- "prd": "https://insights-api.stackspot.com"
116
+ "stg": "",
117
+ "dev": "",
118
+ "prd": ""
119
119
  },
120
120
  "docs": "/v3/api-docs"
121
121
  },
122
122
  "workflows": {
123
123
  "url": {
124
- "dev": "https://workflow-workflow-api.dev.stackspot.com",
125
- "stg": "https://workflow-workflow-api.stg.stackspot.com",
126
- "prd": "https://workflow-api.stackspot.com"
124
+ "stg": "",
125
+ "dev": "",
126
+ "prd": ""
127
127
  },
128
128
  "docs": "/openapi.json"
129
129
  },
130
130
  "workspaceManager": {
131
131
  "url": {
132
- "dev": "https://workspace-workspace-manager.dev.stackspot.com",
133
- "stg": "https://workspace-workspace-manager.stg.stackspot.com",
134
- "prd": "https://workspace-manager.stackspot.com"
132
+ "stg": "",
133
+ "dev": "",
134
+ "prd": ""
135
135
  },
136
136
  "docs": "/v3/api-docs"
137
137
  },
138
138
  "workspaceSearchEngine": {
139
139
  "url": {
140
- "dev": "https://workspace-search-engine-api.dev.stackspot.com",
141
- "stg": "https://workspace-search-engine-api.stg.stackspot.com",
142
- "prd": "https://workspace-search-engine-api.stackspot.com"
140
+ "stg": "",
141
+ "dev": "",
142
+ "prd": ""
143
143
  },
144
144
  "docs": "/v3/api-docs"
145
145
  },
@@ -152,17 +152,17 @@
152
152
  },
153
153
  "apiManagement": {
154
154
  "url": {
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"
155
+ "stg": "",
156
+ "dev": "",
157
+ "prd": ""
158
158
  },
159
159
  "docs": "/v3/api-docs"
160
160
  },
161
161
  "secrets": {
162
162
  "url": {
163
- "dev": "https://workspace-workspace-secrets-api.dev.stackspot.com",
164
- "stg": "https://workspace-workspace-secrets-api.stg.stackspot.com",
165
- "prd": "https://secrets-api.stackspot.com"
163
+ "stg": "",
164
+ "dev": "",
165
+ "prd": ""
166
166
  },
167
167
  "docs": "/v3/api-docs"
168
168
  },
@@ -176,33 +176,33 @@
176
176
  },
177
177
  "cloudPlatform": {
178
178
  "url": {
179
- "dev": "https://cloud-cloud-platform-api.dev.stackspot.com",
180
- "stg": "https://cloud-cloud-platform-api.stg.stackspot.com",
181
- "prd": "https://cloud-cloud-platform-api.prd.stackspot.com"
179
+ "stg": "",
180
+ "dev": "",
181
+ "prd": ""
182
182
  },
183
183
  "docs": "/v3/api-docs"
184
184
  },
185
- "cloudRuntimes": {
185
+ "cloudRuntimes": {
186
186
  "url": {
187
- "dev": "https://cloud-cloud-runtime-api.dev.stackspot.com",
188
- "stg": "https://cloud-cloud-runtime-api.stg.stackspot.com",
189
- "prd": "https://cloud-cloud-runtime-api.prd.stackspot.com"
187
+ "stg": "",
188
+ "dev": "",
189
+ "prd": ""
190
190
  },
191
191
  "docs": "/v3/api-docs"
192
192
  },
193
193
  "cloudPlatformHorizon": {
194
194
  "url": {
195
- "dev": "https://cloud-platform-horizon.dev.stackspot.com",
196
- "stg": "https://cloud-platform-horizon.stg.stackspot.com",
197
- "prd": "https://cloud-platform-horizon.stackspot.com"
195
+ "stg": "",
196
+ "dev": "",
197
+ "prd": ""
198
198
  },
199
199
  "docs": "/v3/api-docs"
200
200
  },
201
201
  "codeShift": {
202
202
  "url": {
203
- "dev": "https://code-shift-code-shift-api.dev.stackspot.com",
204
- "stg": "https://code-shift-code-shift-api.stg.stackspot.com",
205
- "prd": "https://code-shift-api.stackspot.com"
203
+ "stg": "",
204
+ "dev": "",
205
+ "prd": ""
206
206
  },
207
207
  "docs": "/openapi.json"
208
208
  },
@@ -216,9 +216,9 @@
216
216
  },
217
217
  "discover": {
218
218
  "url": {
219
- "dev": "https://discover-discover-core.dev.stackspot.com",
220
- "stg": "https://discover-discover-core.stg.stackspot.com",
221
- "prd": "https://discover-core.stackspot.com"
219
+ "stg": "",
220
+ "dev": "",
221
+ "prd": ""
222
222
  },
223
223
  "docs": "/v3/api-docs"
224
224
  }
@@ -1,6 +1,6 @@
1
1
  import { HttpError } from '@oazapfts/runtime'
2
2
  import { getApiAddresses } from '../api-addresses'
3
- import { addFavoriteV1AgentsAgentIdFavoritePost, AgentVisibilityLevelEnum, createAgentV1AgentsPost, createToolkitToolsV1ToolkitsToolkitIdToolsPost, createToolkitV1ToolkitsPost, defaults, deleteAgentV1AgentsAgentIdDelete, deleteFavoriteV1AgentsAgentIdFavoriteDelete, deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete, deleteToolkitV1ToolkitsToolkitIdDelete, editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut, forkAgentV1AgentsAgentIdForkPost, forkToolkitV1ToolkitsToolkitIdForkPost, getAgentV1AgentsAgentIdGet, getPublicToolKitsV1BuiltinToolkitGet, getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet, getToolkitV1ToolkitsToolkitIdGet, listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost, listAgentsV1AgentsGet, listMultiAgentsV1AgentsMultiAgentsGet, listToolkitsV1ToolkitsGet, publishAgentV1AgentsAgentIdPublishPost, searchAgentsV1AgentsSearchPost, shareV1AgentsAgentIdSharePost, updateAgentV1AgentsAgentIdPatch, updateToolkitV1ToolkitsToolkitIdPatch, VisibilityLevelEnum } from '../api/agent-tools'
3
+ import { addFavoriteV1AgentsAgentIdFavoritePost, AgentVisibilityLevelEnum, createAgentV1AgentsPost, createToolkitToolsV1ToolkitsToolkitIdToolsPost, createToolkitV1ToolkitsPost, defaults, deleteAgentV1AgentsAgentIdDelete, deleteFavoriteV1AgentsAgentIdFavoriteDelete, deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete, deleteToolkitV1ToolkitsToolkitIdDelete, editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut, forkAgentV1AgentsAgentIdForkPost, forkToolkitV1ToolkitsToolkitIdForkPost, getAgentV1AgentsAgentIdGet, getPublicToolKitsV1BuiltinToolkitGet, getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet, getToolkitV1ToolkitsToolkitIdGet, listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost, listAgentsV1AgentsGet, listAgentsV3AgentsGet, listMultiAgentsV1AgentsMultiAgentsGet, listToolkitsV1ToolkitsGet, publishAgentV1AgentsAgentIdPublishPost, searchAgentsV1AgentsSearchPost, shareV1AgentsAgentIdSharePost, updateAgentV1AgentsAgentIdPatch, updateToolkitV1ToolkitsToolkitIdPatch, VisibilityLevelEnum } from '../api/agent-tools'
4
4
  import { DefaultAPIError } from '../error/DefaultAPIError'
5
5
  import { agentToolsDictionary } from '../error/dictionary/agent-tools'
6
6
  import { StackspotAPIError } from '../error/StackspotAPIError'
@@ -52,7 +52,12 @@ class AgentToolsClient extends ReactQueryNetworkClient {
52
52
  /**
53
53
  * List agents
54
54
  */
55
- agents = this.infiniteQuery(removeAuthorizationParam(listAgentsV1AgentsGet))
55
+ agents = this.infiniteQuery(removeAuthorizationParam(listAgentsV1AgentsGet), { pageParamName: 'request.page' })
56
+
57
+ /**
58
+ * List agents with support for multiple filters
59
+ */
60
+ agentsMultipleFilters = this.infiniteQuery(listAgentsV3AgentsGet, { accumulator: 'items' })
56
61
 
57
62
  /**
58
63
  * List agents available to be added to other agents
@@ -81,7 +86,7 @@ class AgentToolsClient extends ReactQueryNetworkClient {
81
86
  name: 'agentDefault',
82
87
  request: async (signal) => {
83
88
  const agentDefault = await listAgentsV1AgentsGet(
84
- { visibility: 'built_in', slug: this.agentDefaultSlug, authorization: '' }, { signal },
89
+ { request: { visibility: 'built_in', slug: this.agentDefaultSlug }, authorization: '' }, { signal },
85
90
  )
86
91
 
87
92
  const agentId = agentDefault?.find((agent) => agent.slug === this.agentDefaultSlug)?.id
@@ -109,7 +114,7 @@ class AgentToolsClient extends ReactQueryNetworkClient {
109
114
 
110
115
  const [workspaceAgents, ...agentsByVisibility] = await Promise.all([
111
116
  workspaceAgentsPromise,
112
- ...visibilities.map((visibility) => listAgentsV1AgentsGet({ visibility, authorization: '' }, { signal })),
117
+ ...visibilities.map((visibility) => listAgentsV1AgentsGet({ request: { visibility }, authorization: '' }, { signal })),
113
118
  ])
114
119
 
115
120
  const workspaceAgentsWithSpaceName = workspaceAgents.flatMap(({ agents, space_name }) =>
package/src/client/ai.ts CHANGED
@@ -393,3 +393,4 @@ class AIClient extends ReactQueryNetworkClient {
393
393
  }
394
394
 
395
395
  export const aiClient = new AIClient()
396
+
@@ -58,6 +58,11 @@ import {
58
58
  getModuleV1ModulesModuleIdGet,
59
59
  analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet,
60
60
  analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet,
61
+ analyticsRepositoryTargetDetailsV1AnalyticsRepositoriesTargetDetailsGet,
62
+ analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet,
63
+ searchReposScmServiceV2ReposSearchScmPost,
64
+ importReposWithTagsScmServiceV2ReposSearchScmSearchIdPost,
65
+ searchReposScmV2V2ReposSearchScmSearchIdGet,
61
66
  } from '../api/codeShift'
62
67
  import { DefaultAPIError } from '../error/DefaultAPIError'
63
68
  import { codeShiftDictionary } from '../error/dictionary/code-shift'
@@ -159,6 +164,18 @@ class CodeShift extends ReactQueryNetworkClient {
159
164
  * Downloads file with found repositories
160
165
  */
161
166
  downloadSearchRepository = this.mutation(removeAuthorizationParam(downloadSearchReposScmServiceV1ReposSearchScmSearchRepoIdDownloadGet))
167
+ /**
168
+ * Searches for repositories (v2)
169
+ */
170
+ searchRepositoryV2 = this.mutation(removeAuthorizationParam(searchReposScmServiceV2ReposSearchScmPost))
171
+ /**
172
+ * Imports repositories (v2)
173
+ */
174
+ importRepositories = this.mutation(removeAuthorizationParam(importReposWithTagsScmServiceV2ReposSearchScmSearchIdPost))
175
+ /**
176
+ * Gets repositories search by id (v2)
177
+ */
178
+ getRepositoriesBySearchId = this.query(removeAuthorizationParam(searchReposScmV2V2ReposSearchScmSearchIdGet))
162
179
  /**
163
180
  * Validate if the user has permission.
164
181
  * We do not use opa in this api, so this is the fn needed to check permissions.
@@ -330,6 +347,18 @@ class CodeShift extends ReactQueryNetworkClient {
330
347
  analyticsProgramGroupsTargetDetailsDownload = this.query(
331
348
  removeAuthorizationParam(analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet),
332
349
  )
350
+ /**
351
+ * Analytics Repository Target Details
352
+ */
353
+ analyticsRepositoryTargetDetails = this.query(
354
+ removeAuthorizationParam(analyticsRepositoryTargetDetailsV1AnalyticsRepositoriesTargetDetailsGet),
355
+ )
356
+ /**
357
+ * Analytics Repository Target Details Download
358
+ */
359
+ analyticsRepositoryTargetDetailsDownload = this.query(
360
+ removeAuthorizationParam(analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet),
361
+ )
333
362
  }
334
363
 
335
364
  export const codeShiftClient = new CodeShift()
@@ -8,7 +8,7 @@ export const scfDictionary = {
8
8
  SCF_CIDR_RANGE_CONFLICT: 'CIDR range {1} conflicts with an existing range.',
9
9
  SCF_CIDR_FOUNDATION_RESERVED: 'CIDR range {1} conflicts with the Foundation\'s reserved range.',
10
10
  SCF_CIDR_NOT_FOUND_ERROR: 'CIDR with ID {1} not found.',
11
- SCF_CONTROL_TOWER_BUSY_ERROR: 'Foundation\'s Control Tower is currently busy. Please try again later.',
11
+ SCF_CONTROL_TOWER_BUSY_ERROR: 'Foundations Control Tower is currently busy. Please try again later.',
12
12
  SCF_DNS_RECORD_ERROR: 'DNS Record operation failed.',
13
13
  SCF_DNS_RECORD_NOT_FOUND_ERROR: 'DNS Record with ID {1} not found.',
14
14
  SCF_DNS_ZONE_ERROR: 'DNS Zone operation failed.',