@stack-spot/portal-network 0.193.0-alpha.1 → 0.193.0-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 +170 -0
- package/dist/api/account.d.ts +4 -116
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +9 -95
- package/dist/api/account.js.map +1 -1
- package/dist/api/ai.d.ts +189 -86
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +238 -142
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatform.d.ts +73 -126
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +82 -66
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/codeShift.d.ts +171 -40
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +80 -10
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/discover.d.ts +23 -12
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +10 -0
- package/dist/api/discover.js.map +1 -1
- package/dist/apis-itau.json +0 -8
- package/dist/apis.json +0 -8
- package/dist/client/account.d.ts +4 -0
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +10 -1
- package/dist/client/account.js.map +1 -1
- package/dist/client/ai.d.ts +46 -0
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +140 -15
- package/dist/client/ai.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +155 -51
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +146 -47
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/code-shift.d.ts +53 -3
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +55 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/discover.d.ts +7 -1
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +208 -0
- package/dist/client/discover.js.map +1 -1
- package/dist/client/types.d.ts +39 -5
- package/dist/client/types.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.d.ts +6 -0
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +6 -0
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/StreamedJson.d.ts.map +1 -1
- package/dist/utils/StreamedJson.js +9 -1
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.json +2 -2
- package/readme.md +2 -1
- package/src/api/account.ts +21 -192
- package/src/api/agent-tools.ts +3 -0
- package/src/api/agent.ts +2 -0
- package/src/api/ai.ts +364 -157
- package/src/api/cloudPlatform.ts +147 -204
- package/src/api/codeShift.ts +284 -45
- package/src/api/discover.ts +35 -12
- package/src/api/notification.ts +2 -0
- package/src/apis-itau.json +0 -8
- package/src/apis.json +0 -8
- package/src/client/account.ts +5 -0
- package/src/client/ai.ts +136 -13
- package/src/client/cloud-platform.ts +84 -29
- package/src/client/code-shift.ts +30 -1
- package/src/client/discover.ts +220 -3
- package/src/client/types.ts +43 -7
- package/src/error/dictionary/cloud-platform.ts +6 -0
- package/src/index.ts +0 -1
- package/src/utils/StreamedJson.tsx +9 -2
- package/dist/api/codeGen.d.ts +0 -51
- package/dist/api/codeGen.d.ts.map +0 -1
- package/dist/api/codeGen.js +0 -49
- package/dist/api/codeGen.js.map +0 -1
- package/dist/client/code-gen.d.ts +0 -14
- package/dist/client/code-gen.d.ts.map +0 -1
- package/dist/client/code-gen.js +0 -35
- package/dist/client/code-gen.js.map +0 -1
- package/src/api/codeGen.ts +0 -92
- package/src/client/code-gen.ts +0 -45
package/src/client/account.ts
CHANGED
|
@@ -108,6 +108,7 @@ import {
|
|
|
108
108
|
listScmCredentials1,
|
|
109
109
|
listScmCredentials2, partialUpdateSso, personalAccessTokenAuthorization,
|
|
110
110
|
personalContact,
|
|
111
|
+
reactivateTrialAccount,
|
|
111
112
|
removeRoleFromMember,
|
|
112
113
|
removeTrialAccount,
|
|
113
114
|
resetOtp,
|
|
@@ -919,6 +920,10 @@ class AccountClient extends ReactQueryNetworkClient {
|
|
|
919
920
|
* Get expiration data
|
|
920
921
|
*/
|
|
921
922
|
getExpirationData = this.query(getPersonalAccountExpirationData)
|
|
923
|
+
/**
|
|
924
|
+
* Reactive trial account
|
|
925
|
+
*/
|
|
926
|
+
reactivateTrialAccount = this.mutation(reactivateTrialAccount)
|
|
922
927
|
}
|
|
923
928
|
|
|
924
929
|
export const accountClient = new AccountClient()
|
package/src/client/ai.ts
CHANGED
|
@@ -38,6 +38,8 @@ import {
|
|
|
38
38
|
resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete,
|
|
39
39
|
runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost,
|
|
40
40
|
searchKnowledgeSourcesV1KnowledgeSourcesSearchPost,
|
|
41
|
+
tokensByUserV1AnalyticsTokensByUserGet,
|
|
42
|
+
tokensDailyUsageV1AnalyticsTokensDailyUsageGet,
|
|
41
43
|
updateQuickCommandV1QuickCommandsSlugPatch,
|
|
42
44
|
updateTitleV1ConversationsConversationIdPatch,
|
|
43
45
|
vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost,
|
|
@@ -257,6 +259,14 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
257
259
|
* Removes the resource of type Quick Command from the list of favorites.
|
|
258
260
|
*/
|
|
259
261
|
removeFavoriteQuickCommand = this.mutation(removeAuthorizationParam(deleteFavoriteV1QuickCommandsSlugFavoriteDelete))
|
|
262
|
+
/**
|
|
263
|
+
* Get Tokens Daily usage
|
|
264
|
+
*/
|
|
265
|
+
analyticsTokensDailyUsage = this.query(removeAuthorizationParam(tokensDailyUsageV1AnalyticsTokensDailyUsageGet))
|
|
266
|
+
/**
|
|
267
|
+
* Get Tokens By User
|
|
268
|
+
*/
|
|
269
|
+
analyticsTokensByUser = this.query(tokensByUserV1AnalyticsTokensByUserGet)
|
|
260
270
|
|
|
261
271
|
private static async toolsOfAgent(agentId?: string) {
|
|
262
272
|
try {
|
|
@@ -266,6 +276,9 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
266
276
|
agent.toolkits?.builtin_toolkits?.forEach(kit => kit.tools?.forEach(({ id, name, description }) => {
|
|
267
277
|
if (id) tools.push({ image: kit.image_url, id, name: name || id, description })
|
|
268
278
|
}))
|
|
279
|
+
agent.toolkits?.custom_toolkits?.forEach(kit => kit.tools?.forEach(({ id, name, description }) => {
|
|
280
|
+
if (id) tools.push({ image: kit.avatar ?? undefined, id, name: name || id, description })
|
|
281
|
+
}))
|
|
269
282
|
return tools
|
|
270
283
|
} catch {
|
|
271
284
|
return []
|
|
@@ -290,7 +303,9 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
290
303
|
*/
|
|
291
304
|
async function transform(event: Partial<FixedChatResponse>, data: Partial<ChatResponseWithSteps>) {
|
|
292
305
|
const info = event.agent_info
|
|
306
|
+
|
|
293
307
|
if (!info) return
|
|
308
|
+
|
|
294
309
|
const tools = await AIClient.toolsOfAgent(request.context?.agent_id)
|
|
295
310
|
data.steps = data.steps ? [...data.steps] : []
|
|
296
311
|
|
|
@@ -303,6 +318,59 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
303
318
|
steps: info.data?.steps?.map(s => s.goal) ?? [],
|
|
304
319
|
goal: info.data?.plan_goal ?? '',
|
|
305
320
|
})
|
|
321
|
+
|
|
322
|
+
info.data?.steps.forEach(s => data.steps?.push({
|
|
323
|
+
id: s.id,
|
|
324
|
+
type: 'step',
|
|
325
|
+
status: 'pending',
|
|
326
|
+
input: s.goal,
|
|
327
|
+
attempts: [{
|
|
328
|
+
tools: s.tools?.map(t => ({
|
|
329
|
+
...(tools.find(({ id }) => id === t.tool_id) ?? { id: t.tool_id, name: t.tool_id }),
|
|
330
|
+
executionId: t.tool_execution_id,
|
|
331
|
+
goal: t.goal,
|
|
332
|
+
})),
|
|
333
|
+
}],
|
|
334
|
+
}))
|
|
335
|
+
data.steps.push({ id: 'answer', type: 'answer', status: 'pending' })
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
if (info.type === 'planning' && info.action === 'awaiting_approval') {
|
|
339
|
+
data.steps.push({
|
|
340
|
+
id: 'planning',
|
|
341
|
+
type: 'planning',
|
|
342
|
+
status: 'awaiting_approval',
|
|
343
|
+
user_question: info.data?.user_question,
|
|
344
|
+
duration: info.duration || 0,
|
|
345
|
+
steps: info.data?.steps?.map(s => s.goal) ?? [],
|
|
346
|
+
goal: info.data?.plan_goal ?? '',
|
|
347
|
+
})
|
|
348
|
+
info.data?.steps.forEach(s => data.steps?.push({
|
|
349
|
+
id: s.id,
|
|
350
|
+
type: 'step',
|
|
351
|
+
status: 'pending',
|
|
352
|
+
input: s.goal,
|
|
353
|
+
attempts: [{
|
|
354
|
+
tools: s.tools?.map(t => ({
|
|
355
|
+
...(tools.find(({ id }) => id === t.tool_id) ?? { id: t.tool_id, name: t.tool_id }),
|
|
356
|
+
executionId: t.tool_execution_id,
|
|
357
|
+
goal: t.goal,
|
|
358
|
+
})),
|
|
359
|
+
}],
|
|
360
|
+
}))
|
|
361
|
+
data.steps.push({ id: 'answer', type: 'answer', status: 'pending' })
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
if (info.type === 'planning' && info.action === 'awaiting_approval') {
|
|
365
|
+
data.steps.push({
|
|
366
|
+
id: 'planning',
|
|
367
|
+
type: 'planning',
|
|
368
|
+
status: 'awaiting_approval',
|
|
369
|
+
user_question: info.data?.user_question,
|
|
370
|
+
duration: info.duration || 0,
|
|
371
|
+
steps: info.data?.steps?.map(s => s.goal) ?? [],
|
|
372
|
+
goal: info.data?.plan_goal ?? '',
|
|
373
|
+
})
|
|
306
374
|
info.data?.steps.forEach(s => data.steps?.push({
|
|
307
375
|
id: s.id,
|
|
308
376
|
type: 'step',
|
|
@@ -312,6 +380,7 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
312
380
|
tools: s.tools?.map(t => ({
|
|
313
381
|
...(tools.find(({ id }) => id === t.tool_id) ?? { id: t.tool_id, name: t.tool_id }),
|
|
314
382
|
executionId: t.tool_execution_id,
|
|
383
|
+
goal: t.goal,
|
|
315
384
|
})),
|
|
316
385
|
}],
|
|
317
386
|
}))
|
|
@@ -334,27 +403,80 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
334
403
|
}
|
|
335
404
|
}
|
|
336
405
|
|
|
406
|
+
if (info.type === 'tool' && info.action === 'awaiting_approval') {
|
|
407
|
+
const tool = tools.find(({ id }) => id === info.data?.tool_id)
|
|
408
|
+
data.steps.push({
|
|
409
|
+
id: info.id,
|
|
410
|
+
type: 'tool',
|
|
411
|
+
status: 'awaiting_approval',
|
|
412
|
+
duration: info.duration || 0,
|
|
413
|
+
input: info.data?.input,
|
|
414
|
+
user_question: info.data?.user_question,
|
|
415
|
+
attempts: [{
|
|
416
|
+
tools: [{
|
|
417
|
+
executionId: info.id,
|
|
418
|
+
id: info.data?.tool_id ?? '',
|
|
419
|
+
name: tool?.name ?? '',
|
|
420
|
+
goal: tool?.goal,
|
|
421
|
+
...tool,
|
|
422
|
+
}],
|
|
423
|
+
}],
|
|
424
|
+
})
|
|
425
|
+
data.steps.push({ id: 'answer', type: 'answer', status: 'pending' })
|
|
426
|
+
}
|
|
427
|
+
|
|
337
428
|
if (info.type === 'tool' && info.action === 'start') {
|
|
338
429
|
const currentStep = data.steps.find(s => s.status === 'running') as StepChatStep
|
|
339
|
-
if (!
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
430
|
+
if (!info.data) return
|
|
431
|
+
|
|
432
|
+
//There might be a tool with status awaiting_approval, so we want to inform tool has already started
|
|
433
|
+
if (!currentStep || !currentStep.attempts[0].tools) {
|
|
434
|
+
const input = formatJson(info.data.input)
|
|
435
|
+
const tool = tools.find(({ id }) => id === info.data?.tool_id) ?? { id: info.data?.tool_id, name: info.data?.tool_id }
|
|
436
|
+
data.steps.push({
|
|
437
|
+
id: info.id,
|
|
438
|
+
type: 'tool',
|
|
439
|
+
status: 'running',
|
|
440
|
+
duration: info.duration || 0,
|
|
441
|
+
input: info.data?.input,
|
|
442
|
+
user_question: info.data?.user_question,
|
|
443
|
+
attempts: [{
|
|
444
|
+
tools:[{ ...tool, executionId: info.id, input }],
|
|
445
|
+
}],
|
|
350
446
|
})
|
|
447
|
+
} else {
|
|
448
|
+
const toolInFirstAttempt = currentStep.attempts[0].tools?.find(t => t.executionId === info.id)
|
|
449
|
+
//One step might have multiple tools. When in an approval mode, we might not have all the tools in the array yet.
|
|
450
|
+
//So we make sure to add any tools that are not in there.
|
|
451
|
+
if (!toolInFirstAttempt) {
|
|
452
|
+
const input = formatJson(info.data.input)
|
|
453
|
+
const tool = tools?.find(({ id }) => id === info.data?.tool_id) ?? { id: info.data?.tool_id, name: info.data?.tool_id }
|
|
454
|
+
currentStep.attempts[info.data.attempt-1].tools?.push({
|
|
455
|
+
...tool,
|
|
456
|
+
executionId: info.id,
|
|
457
|
+
input,
|
|
458
|
+
})
|
|
459
|
+
} else {
|
|
460
|
+
const input = formatJson(info.data.input)
|
|
461
|
+
if (info.data.attempt === 1) {
|
|
462
|
+
toolInFirstAttempt.input = input
|
|
463
|
+
} else {
|
|
464
|
+
const tool = tools.find(({ id }) => id === info.data?.tool_id) ?? { id: info.data?.tool_id, name: info.data?.tool_id }
|
|
465
|
+
currentStep.attempts[info.data.attempt-1] ??= { tools: [] }
|
|
466
|
+
currentStep.attempts[info.data.attempt-1].tools?.push({
|
|
467
|
+
...tool,
|
|
468
|
+
executionId: info.id,
|
|
469
|
+
input,
|
|
470
|
+
})
|
|
471
|
+
}
|
|
472
|
+
}
|
|
351
473
|
}
|
|
352
474
|
}
|
|
353
475
|
|
|
354
476
|
if (info.type === 'tool' && info.action === 'end') {
|
|
355
477
|
const currentStep = data.steps.find(s => s.status === 'running') as StepChatStep
|
|
356
478
|
if (!currentStep || !info.data) return
|
|
357
|
-
const tool = currentStep.attempts[info.data.attempt]?.tools?.find(t => t.executionId === info.id)
|
|
479
|
+
const tool = currentStep.attempts[info.data.attempt-1]?.tools?.find(t => t.executionId === info.id)
|
|
358
480
|
if (tool) {
|
|
359
481
|
tool.output = formatJson(info.data.output)
|
|
360
482
|
tool.duration = info.duration
|
|
@@ -366,7 +488,7 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
366
488
|
if (answerStep) answerStep.status = 'running'
|
|
367
489
|
}
|
|
368
490
|
|
|
369
|
-
if (info.type === '
|
|
491
|
+
if (info.type === 'chat' && info.action === 'end') {
|
|
370
492
|
const answerStep = last(data.steps)
|
|
371
493
|
if (answerStep) {
|
|
372
494
|
answerStep.status = 'success'
|
|
@@ -393,3 +515,4 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
393
515
|
}
|
|
394
516
|
|
|
395
517
|
export const aiClient = new AIClient()
|
|
518
|
+
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
2
|
import {
|
|
3
|
-
acceptNetworkConnection,
|
|
4
3
|
createCertificate,
|
|
5
4
|
createCidr,
|
|
6
5
|
createDnsRecord,
|
|
7
6
|
createDnsZone,
|
|
8
7
|
createFolder,
|
|
9
8
|
createFoundation,
|
|
10
|
-
createInbound,
|
|
11
9
|
createNetwork,
|
|
12
|
-
createNetworkConnection,
|
|
13
10
|
createProject,
|
|
14
11
|
createRuntime,
|
|
15
12
|
createTenant,
|
|
16
13
|
createVpn,
|
|
17
14
|
defaults,
|
|
15
|
+
deleteCertificate,
|
|
16
|
+
deleteCidr,
|
|
17
|
+
deleteDnsRecord,
|
|
18
|
+
deleteDnsZone,
|
|
19
|
+
deleteFolder,
|
|
20
|
+
deleteNetwork,
|
|
21
|
+
deleteProject,
|
|
22
|
+
deleteVpn,
|
|
18
23
|
getCertificate,
|
|
19
24
|
getFolder,
|
|
25
|
+
getFolderTags,
|
|
20
26
|
getFoundation,
|
|
21
27
|
getNetwork,
|
|
22
28
|
getProject,
|
|
@@ -26,13 +32,18 @@ import {
|
|
|
26
32
|
listDnsRecord,
|
|
27
33
|
listDnsZone,
|
|
28
34
|
listFoundations,
|
|
29
|
-
listInbound,
|
|
30
35
|
listNetwork,
|
|
31
|
-
listNetworkConnection,
|
|
32
36
|
listRuntime,
|
|
33
37
|
listTenant,
|
|
34
38
|
listVpns,
|
|
35
39
|
providers,
|
|
40
|
+
putCertificateTags,
|
|
41
|
+
putCidrTags,
|
|
42
|
+
putDnsZoneTags,
|
|
43
|
+
putFolderTags,
|
|
44
|
+
putNetworkTags,
|
|
45
|
+
putProjectTags,
|
|
46
|
+
putVpnTags,
|
|
36
47
|
} from '../api/cloudPlatform'
|
|
37
48
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
38
49
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
@@ -125,26 +136,6 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
125
136
|
* Create a network
|
|
126
137
|
*/
|
|
127
138
|
createNetwork = this.mutation(removeAuthorizationParam(createNetwork))
|
|
128
|
-
/**
|
|
129
|
-
* Get a list of inbounds
|
|
130
|
-
*/
|
|
131
|
-
listInbounds = this.query(removeAuthorizationParam(listInbound))
|
|
132
|
-
/**
|
|
133
|
-
* Create a inbound
|
|
134
|
-
*/
|
|
135
|
-
createInbound = this.mutation(removeAuthorizationParam(createInbound))
|
|
136
|
-
/**
|
|
137
|
-
* Add a network connection
|
|
138
|
-
*/
|
|
139
|
-
addNetworkConnection = this.mutation(removeAuthorizationParam(createNetworkConnection))
|
|
140
|
-
/**
|
|
141
|
-
* Get a network connection request
|
|
142
|
-
*/
|
|
143
|
-
getNetworkConnections = this.query(removeAuthorizationParam(listNetworkConnection))
|
|
144
|
-
/**
|
|
145
|
-
* Accept a network connection
|
|
146
|
-
*/
|
|
147
|
-
acceptNetworkConnection = this.mutation(removeAuthorizationParam(acceptNetworkConnection))
|
|
148
139
|
/**
|
|
149
140
|
* Get a list of vpn's
|
|
150
141
|
*/
|
|
@@ -170,13 +161,77 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
170
161
|
*/
|
|
171
162
|
createTenant = this.mutation(removeAuthorizationParam(createTenant))
|
|
172
163
|
/**
|
|
173
|
-
* Get a list of runtimes
|
|
174
|
-
*/
|
|
164
|
+
* Get a list of runtimes
|
|
165
|
+
*/
|
|
175
166
|
listRuntimes = this.query(removeAuthorizationParam(listRuntime))
|
|
176
167
|
/**
|
|
177
|
-
* Create a runtime
|
|
178
|
-
*/
|
|
168
|
+
* Create a runtime
|
|
169
|
+
*/
|
|
179
170
|
createRuntime = this.mutation(removeAuthorizationParam(createRuntime))
|
|
171
|
+
/**
|
|
172
|
+
* Get a list of tags in folder
|
|
173
|
+
*/
|
|
174
|
+
getFolderTags = this.query(removeAuthorizationParam(getFolderTags))
|
|
175
|
+
/**
|
|
176
|
+
* Update folder tags
|
|
177
|
+
*/
|
|
178
|
+
updateFolderTags = this.mutation(removeAuthorizationParam(putFolderTags))
|
|
179
|
+
/**
|
|
180
|
+
* Update project tags
|
|
181
|
+
*/
|
|
182
|
+
updateProjectTags = this.mutation(removeAuthorizationParam(putProjectTags))
|
|
183
|
+
/**
|
|
184
|
+
* Update network tags
|
|
185
|
+
*/
|
|
186
|
+
updateNetworkTags = this.mutation(removeAuthorizationParam(putNetworkTags))
|
|
187
|
+
/**
|
|
188
|
+
* Update cidr tags
|
|
189
|
+
*/
|
|
190
|
+
updateCidrTags = this.mutation(removeAuthorizationParam(putCidrTags))
|
|
191
|
+
/**
|
|
192
|
+
* Update dns zone tags
|
|
193
|
+
*/
|
|
194
|
+
updateDnsZoneTags = this.mutation(removeAuthorizationParam(putDnsZoneTags))
|
|
195
|
+
/**
|
|
196
|
+
* Update certificate tags
|
|
197
|
+
*/
|
|
198
|
+
updateCertificateTags = this.mutation(removeAuthorizationParam(putCertificateTags))
|
|
199
|
+
/**
|
|
200
|
+
* Update vpn tags
|
|
201
|
+
*/
|
|
202
|
+
updateVpnTags = this.mutation(removeAuthorizationParam(putVpnTags))
|
|
203
|
+
/**
|
|
204
|
+
* Delete a folder
|
|
205
|
+
*/
|
|
206
|
+
deleteFolder = this.mutation(removeAuthorizationParam(deleteFolder))
|
|
207
|
+
/**
|
|
208
|
+
* Delete a project
|
|
209
|
+
*/
|
|
210
|
+
deleteProject = this.mutation(removeAuthorizationParam(deleteProject))
|
|
211
|
+
/**
|
|
212
|
+
* Delete a network
|
|
213
|
+
*/
|
|
214
|
+
deleteNetwork = this.mutation(removeAuthorizationParam(deleteNetwork))
|
|
215
|
+
/**
|
|
216
|
+
* Delete a certificate
|
|
217
|
+
*/
|
|
218
|
+
deleteCertificate = this.mutation(removeAuthorizationParam(deleteCertificate))
|
|
219
|
+
/**
|
|
220
|
+
* Delete a dns zone
|
|
221
|
+
*/
|
|
222
|
+
deleteDnsZone = this.mutation(removeAuthorizationParam(deleteDnsZone))
|
|
223
|
+
/**
|
|
224
|
+
* Delete a dns record
|
|
225
|
+
*/
|
|
226
|
+
deleteDnsRecord = this.mutation(removeAuthorizationParam(deleteDnsRecord))
|
|
227
|
+
/**
|
|
228
|
+
* Delete a VPN
|
|
229
|
+
*/
|
|
230
|
+
deleteVPN = this.mutation(removeAuthorizationParam(deleteVpn))
|
|
231
|
+
/**
|
|
232
|
+
* Delete a CIDR
|
|
233
|
+
*/
|
|
234
|
+
deleteCidr = this.mutation(removeAuthorizationParam(deleteCidr))
|
|
180
235
|
}
|
|
181
236
|
|
|
182
237
|
export const cloudPlatformClient = new CloudPlatformClient()
|
package/src/client/code-shift.ts
CHANGED
|
@@ -58,14 +58,19 @@ import {
|
|
|
58
58
|
getModuleV1ModulesModuleIdGet,
|
|
59
59
|
analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet,
|
|
60
60
|
analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet,
|
|
61
|
+
putCustomerRatingReportV1ReportsReportIdCustomerRatingPut,
|
|
61
62
|
searchReposScmServiceV2ReposSearchScmPost,
|
|
62
63
|
importReposWithTagsScmServiceV2ReposSearchScmSearchIdPost,
|
|
63
64
|
searchReposScmV2V2ReposSearchScmSearchIdGet,
|
|
64
65
|
analyticsRepositoryTargetDetailsV1AnalyticsRepositoriesTargetDetailsGet,
|
|
65
66
|
analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet,
|
|
66
|
-
putCustomerRatingReportV1ReportsReportIdCustomerRatingPut,
|
|
67
67
|
updateModuleServiceV1ModulesModuleIdPut,
|
|
68
68
|
downloadSearchReposScmV2V2ReposSearchScmSearchIdDownloadGet,
|
|
69
|
+
moduleFavoriteServiceAddV1ModulesModuleIdFavoritesPost,
|
|
70
|
+
moduleFavoriteServiceDeleteV1ModulesModuleIdFavoritesDelete,
|
|
71
|
+
patHealthCheckV1ScmPatHealthCheckGet,
|
|
72
|
+
createReposBatchServiceV2ReposBatchPost,
|
|
73
|
+
getImportResultV2ReposBatchImportIdGet,
|
|
69
74
|
} from '../api/codeShift'
|
|
70
75
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
71
76
|
import { codeShiftDictionary } from '../error/dictionary/code-shift'
|
|
@@ -91,6 +96,14 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
91
96
|
* Creates repositories in batch.
|
|
92
97
|
*/
|
|
93
98
|
createRepositoriesBatch = this.mutation(removeAuthorizationParam(createReposBatchServiceV1ReposBatchPost))
|
|
99
|
+
/**
|
|
100
|
+
* Imports repositories in batch.
|
|
101
|
+
*/
|
|
102
|
+
createRepositoriesBatchV2 = this.mutation(removeAuthorizationParam(createReposBatchServiceV2ReposBatchPost))
|
|
103
|
+
/**
|
|
104
|
+
* Gets the status of a batch import.
|
|
105
|
+
*/
|
|
106
|
+
getImportBatchResultsV2 = this.query(removeAuthorizationParam(getImportResultV2ReposBatchImportIdGet))
|
|
94
107
|
/**
|
|
95
108
|
* Gets list of repositories.
|
|
96
109
|
*/
|
|
@@ -123,6 +136,14 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
123
136
|
* Gets module by id.
|
|
124
137
|
*/
|
|
125
138
|
module = this.query(removeAuthorizationParam(getModuleV1ModulesModuleIdGet))
|
|
139
|
+
/**
|
|
140
|
+
* Add a module in favorites.
|
|
141
|
+
*/
|
|
142
|
+
addFavoriteModule = this.mutation(removeAuthorizationParam(moduleFavoriteServiceAddV1ModulesModuleIdFavoritesPost))
|
|
143
|
+
/**
|
|
144
|
+
* Remove a module from favorites.
|
|
145
|
+
*/
|
|
146
|
+
removeFavoriteModule = this.mutation(removeAuthorizationParam(moduleFavoriteServiceDeleteV1ModulesModuleIdFavoritesDelete))
|
|
126
147
|
/**
|
|
127
148
|
* Gets module inputs.
|
|
128
149
|
*/
|
|
@@ -135,6 +156,10 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
135
156
|
* Updates a module.
|
|
136
157
|
*/
|
|
137
158
|
updateModule = this.mutation(removeAuthorizationParam(updateModuleServiceV1ModulesModuleIdPut))
|
|
159
|
+
/**
|
|
160
|
+
* Adds a module to favorites.
|
|
161
|
+
*/
|
|
162
|
+
addModuleToFavorites = this.mutation(removeAuthorizationParam(moduleFavoriteServiceAddV1ModulesModuleIdFavoritesPost))
|
|
138
163
|
/**
|
|
139
164
|
* Generates a report.
|
|
140
165
|
*/
|
|
@@ -263,6 +288,10 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
263
288
|
* Validates a SCM URL.
|
|
264
289
|
*/
|
|
265
290
|
validateSCMUrl = this.mutation(removeAuthorizationParam(validateScmUrlServiceV1ReposValidateScmUrlPost))
|
|
291
|
+
/**
|
|
292
|
+
* PAT Health Check
|
|
293
|
+
*/
|
|
294
|
+
checkScmPatHealth = this.query(removeAuthorizationParam(patHealthCheckV1ScmPatHealthCheckGet))
|
|
266
295
|
/**
|
|
267
296
|
* Get Branches for a Repository
|
|
268
297
|
*/
|