@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.
- package/CHANGELOG.md +248 -21
- package/dist/api/agent-tools.d.ts +85 -6
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +37 -6
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/codeShift.d.ts +126 -10
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +84 -0
- package/dist/api/codeShift.js.map +1 -1
- package/dist/apis-itau.json +57 -57
- package/dist/client/agent-tools.d.ts +15 -6
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +13 -4
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/code-shift.d.ts +61 -4
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +46 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +1 -1
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/src/api/account.ts +1 -0
- package/src/api/agent-tools.ts +131 -11
- package/src/api/agent.ts +2 -0
- package/src/api/codeShift.ts +293 -10
- package/src/api/notification.ts +2 -0
- package/src/apis-itau.json +58 -58
- package/src/client/agent-tools.ts +9 -4
- package/src/client/ai.ts +1 -0
- package/src/client/code-shift.ts +29 -0
- package/src/error/dictionary/cloud-platform.ts +1 -1
package/src/apis-itau.json
CHANGED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
},
|
|
18
18
|
"agent": {
|
|
19
19
|
"url": {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"prd": "
|
|
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
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"prd": "
|
|
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
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"prd": "
|
|
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
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"prd": "
|
|
76
|
+
"stg": "",
|
|
77
|
+
"dev": "",
|
|
78
|
+
"prd": ""
|
|
79
79
|
},
|
|
80
80
|
"docs": "/v3/api-docs"
|
|
81
81
|
},
|
|
82
82
|
"apiRuntime": {
|
|
83
83
|
"url": {
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"prd": "
|
|
84
|
+
"stg": "",
|
|
85
|
+
"dev": "",
|
|
86
|
+
"prd": ""
|
|
87
87
|
},
|
|
88
88
|
"docs": "/v3/api-docs"
|
|
89
89
|
},
|
|
90
90
|
"cloudServices": {
|
|
91
91
|
"url": {
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"prd": "
|
|
92
|
+
"stg": "",
|
|
93
|
+
"dev": "",
|
|
94
|
+
"prd": ""
|
|
95
95
|
},
|
|
96
96
|
"docs": "/v3/api-docs"
|
|
97
97
|
},
|
|
98
98
|
"cloudAccount": {
|
|
99
99
|
"url": {
|
|
100
|
-
|
|
101
|
-
"
|
|
102
|
-
"prd": "
|
|
100
|
+
"stg": "",
|
|
101
|
+
"dev": "",
|
|
102
|
+
"prd": ""
|
|
103
103
|
},
|
|
104
104
|
"docs": "/v3/api-docs"
|
|
105
105
|
},
|
|
106
106
|
"dataPlatform": {
|
|
107
107
|
"url": {
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"prd": "
|
|
108
|
+
"stg": "",
|
|
109
|
+
"dev": "",
|
|
110
|
+
"prd": ""
|
|
111
111
|
},
|
|
112
112
|
"docs": "/v3/api-docs"
|
|
113
113
|
},
|
|
114
114
|
"insights": {
|
|
115
115
|
"url": {
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"prd": "
|
|
116
|
+
"stg": "",
|
|
117
|
+
"dev": "",
|
|
118
|
+
"prd": ""
|
|
119
119
|
},
|
|
120
120
|
"docs": "/v3/api-docs"
|
|
121
121
|
},
|
|
122
122
|
"workflows": {
|
|
123
123
|
"url": {
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"prd": "
|
|
124
|
+
"stg": "",
|
|
125
|
+
"dev": "",
|
|
126
|
+
"prd": ""
|
|
127
127
|
},
|
|
128
128
|
"docs": "/openapi.json"
|
|
129
129
|
},
|
|
130
130
|
"workspaceManager": {
|
|
131
131
|
"url": {
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"prd": "
|
|
132
|
+
"stg": "",
|
|
133
|
+
"dev": "",
|
|
134
|
+
"prd": ""
|
|
135
135
|
},
|
|
136
136
|
"docs": "/v3/api-docs"
|
|
137
137
|
},
|
|
138
138
|
"workspaceSearchEngine": {
|
|
139
139
|
"url": {
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"prd": "
|
|
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
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"prd": "
|
|
155
|
+
"stg": "",
|
|
156
|
+
"dev": "",
|
|
157
|
+
"prd": ""
|
|
158
158
|
},
|
|
159
159
|
"docs": "/v3/api-docs"
|
|
160
160
|
},
|
|
161
161
|
"secrets": {
|
|
162
162
|
"url": {
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"prd": "
|
|
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
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"prd": "
|
|
179
|
+
"stg": "",
|
|
180
|
+
"dev": "",
|
|
181
|
+
"prd": ""
|
|
182
182
|
},
|
|
183
183
|
"docs": "/v3/api-docs"
|
|
184
184
|
},
|
|
185
|
-
|
|
185
|
+
"cloudRuntimes": {
|
|
186
186
|
"url": {
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"prd": "
|
|
187
|
+
"stg": "",
|
|
188
|
+
"dev": "",
|
|
189
|
+
"prd": ""
|
|
190
190
|
},
|
|
191
191
|
"docs": "/v3/api-docs"
|
|
192
192
|
},
|
|
193
193
|
"cloudPlatformHorizon": {
|
|
194
194
|
"url": {
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"prd": "
|
|
195
|
+
"stg": "",
|
|
196
|
+
"dev": "",
|
|
197
|
+
"prd": ""
|
|
198
198
|
},
|
|
199
199
|
"docs": "/v3/api-docs"
|
|
200
200
|
},
|
|
201
201
|
"codeShift": {
|
|
202
202
|
"url": {
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"prd": "
|
|
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
|
-
"
|
|
220
|
-
"
|
|
221
|
-
"prd": "
|
|
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
package/src/client/code-shift.ts
CHANGED
|
@@ -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: '
|
|
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.',
|