@stack-spot/portal-network 0.197.0 → 0.197.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 +123 -0
- package/dist/api/agent-tools.d.ts +139 -148
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +41 -4
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/agent.d.ts +55 -55
- package/dist/api/agent.d.ts.map +1 -1
- package/dist/api/ai.d.ts +288 -19
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +196 -11
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatformHorizon.d.ts +178 -9
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +69 -1
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/api/codeShift.d.ts +316 -32
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +172 -8
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/dataIntegration.d.ts +291 -1
- package/dist/api/dataIntegration.d.ts.map +1 -1
- package/dist/api/dataIntegration.js +254 -0
- package/dist/api/dataIntegration.js.map +1 -1
- package/dist/api/discover.d.ts +95 -12
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +78 -2
- package/dist/api/discover.js.map +1 -1
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/client/account.d.ts +233 -233
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/agent-tools.d.ts +159 -126
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +35 -4
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +46 -46
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/ai.d.ts +226 -108
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +92 -2
- package/dist/client/ai.js.map +1 -1
- package/dist/client/api-management.d.ts +2 -2
- package/dist/client/cloud-account.d.ts +13 -13
- package/dist/client/cloud-platform-horizon.d.ts +38 -19
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +19 -1
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +50 -50
- package/dist/client/cloud-runtimes.d.ts +4 -4
- package/dist/client/cloud-services.d.ts +17 -17
- package/dist/client/cloud-services.d.ts.map +1 -1
- package/dist/client/code-shift.d.ts +332 -265
- 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/content.d.ts +127 -132
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/data-integration.d.ts +85 -55
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +22 -2
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discover.d.ts +29 -9
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +236 -1
- package/dist/client/discover.js.map +1 -1
- package/dist/client/event-bus.d.ts.map +1 -1
- package/dist/client/gen-ai-inference.d.ts +20 -20
- package/dist/client/insights.d.ts +7 -7
- package/dist/client/notification.d.ts +10 -10
- package/dist/client/runtime-manager.d.ts +8 -8
- package/dist/client/secrets.d.ts.map +1 -1
- package/dist/client/secrets.js +1 -1
- package/dist/client/secrets.js.map +1 -1
- package/dist/client/types.d.ts +14 -0
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workflow.d.ts +10 -10
- package/dist/client/workspace-ai.d.ts +53 -53
- package/dist/client/workspace-manager.d.ts +77 -77
- package/dist/client/workspace-search.d.ts +2 -2
- package/dist/client/workspace.d.ts +58 -105
- package/dist/client/workspace.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/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/src/api/agent-tools.ts +186 -150
- package/src/api/ai.ts +521 -24
- package/src/api/cloudPlatformHorizon.ts +412 -9
- package/src/api/codeShift.ts +631 -37
- package/src/api/dataIntegration.ts +635 -1
- package/src/api/discover.ts +180 -14
- package/src/client/agent-tools.ts +26 -4
- package/src/client/ai.ts +74 -10
- package/src/client/cloud-platform-horizon.ts +12 -4
- package/src/client/code-shift.ts +35 -1
- package/src/client/data-integration.ts +15 -1
- package/src/client/discover.ts +233 -3
- package/src/client/secrets.ts +1 -1
- package/src/client/types.ts +17 -2
- package/src/error/dictionary/cloud-platform.ts +6 -0
- package/src/utils/StreamedJson.tsx +9 -2
package/src/api/discover.ts
CHANGED
|
@@ -8,11 +8,11 @@ import * as Oazapfts from "@oazapfts/runtime";
|
|
|
8
8
|
import * as QS from "@oazapfts/runtime/query";
|
|
9
9
|
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "https://discover-discover-core.
|
|
11
|
+
baseUrl: "https://discover-discover-core.dev.stackspot.com",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://discover-discover-core.
|
|
15
|
+
generatedServerUrl: "https://discover-discover-core.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
17
|
export type GetOpportunityResponseHypothesisResponse = {
|
|
18
18
|
id: string;
|
|
@@ -28,7 +28,7 @@ export type GetOpportunityResponse = {
|
|
|
28
28
|
hypotheses: GetOpportunityResponseHypothesisResponse[];
|
|
29
29
|
updatedBy?: string;
|
|
30
30
|
updatedAt?: string;
|
|
31
|
-
chatId
|
|
31
|
+
chatId: string;
|
|
32
32
|
};
|
|
33
33
|
export type UpdateOpportunityRequest = {
|
|
34
34
|
title?: string;
|
|
@@ -42,7 +42,7 @@ export type UpdateOpportunityResponse = {
|
|
|
42
42
|
createdAt?: string;
|
|
43
43
|
updatedBy?: string;
|
|
44
44
|
updatedAt?: string;
|
|
45
|
-
chatId
|
|
45
|
+
chatId: string;
|
|
46
46
|
};
|
|
47
47
|
export type GetHypothesisResponseDocumentResponse = {
|
|
48
48
|
id: string;
|
|
@@ -59,7 +59,7 @@ export type GetHypothesisResponse = {
|
|
|
59
59
|
createdAt?: string;
|
|
60
60
|
updatedBy?: string;
|
|
61
61
|
updatedAt?: string;
|
|
62
|
-
chatId
|
|
62
|
+
chatId: string;
|
|
63
63
|
};
|
|
64
64
|
export type UpdateHypothesisRequest = {
|
|
65
65
|
title?: string;
|
|
@@ -74,7 +74,7 @@ export type UpdateHypothesisResponse = {
|
|
|
74
74
|
createdAt?: string;
|
|
75
75
|
updatedBy?: string;
|
|
76
76
|
updatedAt?: string;
|
|
77
|
-
chatId
|
|
77
|
+
chatId: string;
|
|
78
78
|
};
|
|
79
79
|
export type GetDocumentResponse = {
|
|
80
80
|
id: string;
|
|
@@ -85,7 +85,7 @@ export type GetDocumentResponse = {
|
|
|
85
85
|
createdAt?: string;
|
|
86
86
|
updatedBy?: string;
|
|
87
87
|
updatedAt?: string;
|
|
88
|
-
chatId
|
|
88
|
+
chatId: string;
|
|
89
89
|
};
|
|
90
90
|
export type UpdateDocumentRequest = {
|
|
91
91
|
title?: string;
|
|
@@ -101,7 +101,7 @@ export type UpdateDocumentResponse = {
|
|
|
101
101
|
createdAt?: string;
|
|
102
102
|
updatedBy?: string;
|
|
103
103
|
updatedAt?: string;
|
|
104
|
-
chatId
|
|
104
|
+
chatId: string;
|
|
105
105
|
};
|
|
106
106
|
export type SortResponse = {
|
|
107
107
|
direction: string;
|
|
@@ -134,7 +134,7 @@ export type PageResponseGetOpportunityResponse = {
|
|
|
134
134
|
export type CreateOpportunityRequest = {
|
|
135
135
|
title?: string;
|
|
136
136
|
description?: string;
|
|
137
|
-
chatId
|
|
137
|
+
chatId: string;
|
|
138
138
|
};
|
|
139
139
|
export type CreateOpportunityResponse = {
|
|
140
140
|
id: string;
|
|
@@ -144,13 +144,24 @@ export type CreateOpportunityResponse = {
|
|
|
144
144
|
createdAt?: string;
|
|
145
145
|
updatedBy?: string;
|
|
146
146
|
updatedAt?: string;
|
|
147
|
-
chatId
|
|
147
|
+
chatId: string;
|
|
148
|
+
};
|
|
149
|
+
export type InsightResponseInsightData = {
|
|
150
|
+
id: string;
|
|
151
|
+
title: string;
|
|
152
|
+
summary: string;
|
|
153
|
+
badge: string;
|
|
154
|
+
chartUrl: string;
|
|
155
|
+
};
|
|
156
|
+
export type InsightResponse = {
|
|
157
|
+
insights: InsightResponseInsightData[];
|
|
158
|
+
generatedAt: string;
|
|
148
159
|
};
|
|
149
160
|
export type CreateHypothesisRequest = {
|
|
150
161
|
opportunityId?: string;
|
|
151
162
|
title?: string;
|
|
152
163
|
description?: string;
|
|
153
|
-
chatId
|
|
164
|
+
chatId: string;
|
|
154
165
|
};
|
|
155
166
|
export type CreateHypothesisResponse = {
|
|
156
167
|
id: string;
|
|
@@ -161,14 +172,14 @@ export type CreateHypothesisResponse = {
|
|
|
161
172
|
createdAt?: string;
|
|
162
173
|
updatedBy?: string;
|
|
163
174
|
updatedAt?: string;
|
|
164
|
-
chatId
|
|
175
|
+
chatId: string;
|
|
165
176
|
};
|
|
166
177
|
export type CreateDocumentRequest = {
|
|
167
178
|
hypothesisId?: string;
|
|
168
179
|
title?: string;
|
|
169
180
|
description?: string;
|
|
170
181
|
content?: string;
|
|
171
|
-
chatId
|
|
182
|
+
chatId: string;
|
|
172
183
|
};
|
|
173
184
|
export type CreateDocumentResponse = {
|
|
174
185
|
id: string;
|
|
@@ -179,7 +190,34 @@ export type CreateDocumentResponse = {
|
|
|
179
190
|
createdAt?: string;
|
|
180
191
|
updatedBy?: string;
|
|
181
192
|
updatedAt?: string;
|
|
182
|
-
chatId
|
|
193
|
+
chatId: string;
|
|
194
|
+
};
|
|
195
|
+
export type MessageRequest = {
|
|
196
|
+
prompt: string;
|
|
197
|
+
conversationId: string;
|
|
198
|
+
};
|
|
199
|
+
export type SseEmitter = {
|
|
200
|
+
timeout?: number;
|
|
201
|
+
};
|
|
202
|
+
export type AdminAgentCreateRequest = {
|
|
203
|
+
agentId: string;
|
|
204
|
+
name: string;
|
|
205
|
+
description: string;
|
|
206
|
+
schema: string;
|
|
207
|
+
};
|
|
208
|
+
export type AdminAgentResponse = {
|
|
209
|
+
id: string;
|
|
210
|
+
name: string;
|
|
211
|
+
description: string;
|
|
212
|
+
active: boolean;
|
|
213
|
+
createdAt: string;
|
|
214
|
+
updatedAt?: string;
|
|
215
|
+
};
|
|
216
|
+
export type GetInsightResponse = {
|
|
217
|
+
id: string;
|
|
218
|
+
title: string;
|
|
219
|
+
content: string;
|
|
220
|
+
chartUrl: string;
|
|
183
221
|
};
|
|
184
222
|
export type GetArtifactResponse = {
|
|
185
223
|
"type": "OPPORTUNITY" | "HYPOTHESIS" | "DOCUMENT";
|
|
@@ -187,6 +225,9 @@ export type GetArtifactResponse = {
|
|
|
187
225
|
title: string;
|
|
188
226
|
description: string;
|
|
189
227
|
};
|
|
228
|
+
export type AdminHelloResponse = {
|
|
229
|
+
message: string;
|
|
230
|
+
};
|
|
190
231
|
/**
|
|
191
232
|
* Get specific Opportunity
|
|
192
233
|
*/
|
|
@@ -345,6 +386,30 @@ export function create({ createOpportunityRequest }: {
|
|
|
345
386
|
body: createOpportunityRequest
|
|
346
387
|
})));
|
|
347
388
|
}
|
|
389
|
+
/**
|
|
390
|
+
* Fetch Insights
|
|
391
|
+
*/
|
|
392
|
+
export function fetchInsights(opts?: Oazapfts.RequestOpts) {
|
|
393
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
394
|
+
status: 200;
|
|
395
|
+
data: InsightResponse;
|
|
396
|
+
}>("/v2/insights", {
|
|
397
|
+
...opts,
|
|
398
|
+
method: "POST"
|
|
399
|
+
}));
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Refresh Insights
|
|
403
|
+
*/
|
|
404
|
+
export function refreshInsights(opts?: Oazapfts.RequestOpts) {
|
|
405
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
406
|
+
status: 200;
|
|
407
|
+
data: InsightResponse;
|
|
408
|
+
}>("/v2/insights/refresh", {
|
|
409
|
+
...opts,
|
|
410
|
+
method: "POST"
|
|
411
|
+
}));
|
|
412
|
+
}
|
|
348
413
|
/**
|
|
349
414
|
* Get all Hypotheses
|
|
350
415
|
*/
|
|
@@ -405,6 +470,80 @@ export function create2({ createDocumentRequest }: {
|
|
|
405
470
|
body: createDocumentRequest
|
|
406
471
|
})));
|
|
407
472
|
}
|
|
473
|
+
export function chat({ authorization, messageRequest }: {
|
|
474
|
+
authorization: string;
|
|
475
|
+
messageRequest: MessageRequest;
|
|
476
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
477
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
478
|
+
status: 200;
|
|
479
|
+
data: SseEmitter;
|
|
480
|
+
}>("/v2/ai/chat", oazapfts.json({
|
|
481
|
+
...opts,
|
|
482
|
+
method: "POST",
|
|
483
|
+
body: messageRequest,
|
|
484
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
485
|
+
Authorization: authorization
|
|
486
|
+
})
|
|
487
|
+
})));
|
|
488
|
+
}
|
|
489
|
+
export function createAgent({ adminAgentCreateRequest }: {
|
|
490
|
+
adminAgentCreateRequest: AdminAgentCreateRequest;
|
|
491
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
492
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
493
|
+
status: 200;
|
|
494
|
+
data: AdminAgentResponse;
|
|
495
|
+
}>("/v2/admin/agents", oazapfts.json({
|
|
496
|
+
...opts,
|
|
497
|
+
method: "POST",
|
|
498
|
+
body: adminAgentCreateRequest
|
|
499
|
+
})));
|
|
500
|
+
}
|
|
501
|
+
export function deactivateAgent({ schema, agentId }: {
|
|
502
|
+
schema: string;
|
|
503
|
+
agentId: string;
|
|
504
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
505
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/admin/agents/${encodeURIComponent(schema)}/${encodeURIComponent(agentId)}/deactivate`, {
|
|
506
|
+
...opts,
|
|
507
|
+
method: "PATCH"
|
|
508
|
+
}));
|
|
509
|
+
}
|
|
510
|
+
export function activateAgent({ schema, agentId }: {
|
|
511
|
+
schema: string;
|
|
512
|
+
agentId: string;
|
|
513
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
514
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
515
|
+
status: 200;
|
|
516
|
+
data: AdminAgentResponse;
|
|
517
|
+
}>(`/v2/admin/agents/${encodeURIComponent(schema)}/${encodeURIComponent(agentId)}/activate`, {
|
|
518
|
+
...opts,
|
|
519
|
+
method: "PATCH"
|
|
520
|
+
}));
|
|
521
|
+
}
|
|
522
|
+
export function getAndCacheData({ key }: {
|
|
523
|
+
key: string;
|
|
524
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
525
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
526
|
+
status: 200;
|
|
527
|
+
data: {
|
|
528
|
+
[key: string]: object;
|
|
529
|
+
};
|
|
530
|
+
}>(`/v2/redis/hello-world-persist-redis/${encodeURIComponent(key)}`, {
|
|
531
|
+
...opts
|
|
532
|
+
}));
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Get specific Insight
|
|
536
|
+
*/
|
|
537
|
+
export function getInsightById({ insightId }: {
|
|
538
|
+
insightId: string;
|
|
539
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
540
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
541
|
+
status: 200;
|
|
542
|
+
data: GetInsightResponse;
|
|
543
|
+
}>(`/v2/insights/${encodeURIComponent(insightId)}`, {
|
|
544
|
+
...opts
|
|
545
|
+
}));
|
|
546
|
+
}
|
|
408
547
|
/**
|
|
409
548
|
* Get specific Document content
|
|
410
549
|
*/
|
|
@@ -433,3 +572,30 @@ export function getAll2({ chatId }: {
|
|
|
433
572
|
...opts
|
|
434
573
|
}));
|
|
435
574
|
}
|
|
575
|
+
export function hello(opts?: Oazapfts.RequestOpts) {
|
|
576
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
577
|
+
status: 200;
|
|
578
|
+
data: AdminHelloResponse;
|
|
579
|
+
}>("/v2/admin/hello", {
|
|
580
|
+
...opts
|
|
581
|
+
}));
|
|
582
|
+
}
|
|
583
|
+
export function listAgents({ schema }: {
|
|
584
|
+
schema: string;
|
|
585
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
586
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
587
|
+
status: 200;
|
|
588
|
+
data: AdminAgentResponse[];
|
|
589
|
+
}>(`/v2/admin/agents/${encodeURIComponent(schema)}`, {
|
|
590
|
+
...opts
|
|
591
|
+
}));
|
|
592
|
+
}
|
|
593
|
+
export function deleteAgent({ schema, agentId }: {
|
|
594
|
+
schema: string;
|
|
595
|
+
agentId: string;
|
|
596
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
597
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/admin/agents/${encodeURIComponent(schema)}/${encodeURIComponent(agentId)}`, {
|
|
598
|
+
...opts,
|
|
599
|
+
method: "DELETE"
|
|
600
|
+
}));
|
|
601
|
+
}
|
|
@@ -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, listAgentsV3AgentsGet, 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, listMcpToolsV1McpToolsToolkitIdGet, listMultiAgentsV1AgentsMultiAgentsGet, listToolkitsV1ToolkitsGet, listToolkitsV2ToolkitsGet, 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'
|
|
@@ -12,6 +12,7 @@ import { AgentResponseWithBuiltIn, AgentToolsOpenAPIPreview, AgentVisibilityLeve
|
|
|
12
12
|
import { workspaceAiClient } from './workspace-ai'
|
|
13
13
|
|
|
14
14
|
const AGENT_DEFAULT_SLUG = 'stk_flex'
|
|
15
|
+
const listAgentsV3AgentsWithoutAuthorization = removeAuthorizationParam(listAgentsV3AgentsGet)
|
|
15
16
|
|
|
16
17
|
class AgentToolsClient extends ReactQueryNetworkClient {
|
|
17
18
|
constructor() {
|
|
@@ -22,6 +23,9 @@ class AgentToolsClient extends ReactQueryNetworkClient {
|
|
|
22
23
|
return new DefaultAPIError(error.data, error.status, agentToolsDictionary, error.headers)
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Lists all public toolkits.
|
|
28
|
+
*/
|
|
25
29
|
tools = this.query(removeAuthorizationParam(getPublicToolKitsV1BuiltinToolkitGet))
|
|
26
30
|
|
|
27
31
|
/**
|
|
@@ -57,7 +61,15 @@ class AgentToolsClient extends ReactQueryNetworkClient {
|
|
|
57
61
|
/**
|
|
58
62
|
* List agents with support for multiple filters
|
|
59
63
|
*/
|
|
60
|
-
agentsMultipleFilters = this.infiniteQuery(
|
|
64
|
+
agentsMultipleFilters = this.infiniteQuery(listAgentsV3AgentsWithoutAuthorization, {
|
|
65
|
+
pageParamName: 'filters.page',
|
|
66
|
+
accumulator: 'items',
|
|
67
|
+
getNextPageParam: ({ variables, lastPage, lastPageParam }) => {
|
|
68
|
+
const size = variables.filters.size ?? 1
|
|
69
|
+
const parsedLastPageParam = (lastPageParam as number) ?? variables.filters.page ?? 1
|
|
70
|
+
return lastPage.items && lastPage.items.length < size ? undefined : parsedLastPageParam + 1
|
|
71
|
+
},
|
|
72
|
+
})
|
|
61
73
|
|
|
62
74
|
/**
|
|
63
75
|
* List agents available to be added to other agents
|
|
@@ -131,9 +143,18 @@ class AgentToolsClient extends ReactQueryNetworkClient {
|
|
|
131
143
|
},
|
|
132
144
|
})
|
|
133
145
|
|
|
134
|
-
|
|
135
|
-
|
|
146
|
+
/**
|
|
147
|
+
* Lists all custom toolkits.
|
|
148
|
+
*/
|
|
136
149
|
toolkits = this.query(removeAuthorizationParam(listToolkitsV1ToolkitsGet))
|
|
150
|
+
/**
|
|
151
|
+
* Get list of Toolkits V2
|
|
152
|
+
*/
|
|
153
|
+
toolkitsV2 = this.query(removeAuthorizationParam(listToolkitsV2ToolkitsGet))
|
|
154
|
+
/**
|
|
155
|
+
* Lists all tools of an MCP toolkit.
|
|
156
|
+
*/
|
|
157
|
+
mcpTools = this.query(removeAuthorizationParam(listMcpToolsV1McpToolsToolkitIdGet))
|
|
137
158
|
/**
|
|
138
159
|
* Get a toolkit by Id
|
|
139
160
|
*/
|
|
@@ -166,6 +187,7 @@ class AgentToolsClient extends ReactQueryNetworkClient {
|
|
|
166
187
|
* Delete tool from Toolkit
|
|
167
188
|
*/
|
|
168
189
|
deleteToolFromToolkit = this.mutation(removeAuthorizationParam(deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete))
|
|
190
|
+
|
|
169
191
|
/**
|
|
170
192
|
* Previews an uploaded open api file as a stream where each array item is an OpenAPI operation.
|
|
171
193
|
*/
|
package/src/client/ai.ts
CHANGED
|
@@ -7,21 +7,27 @@ import {
|
|
|
7
7
|
calculateNextStepV1QuickCommandsSlugStepsStepSlugCalculateNextStepPost,
|
|
8
8
|
callbackV1QuickCommandsCallbackExecutionIdGet,
|
|
9
9
|
conversationHistoryV1ConversationsConversationIdGet,
|
|
10
|
+
createAnswerForReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersPost,
|
|
10
11
|
createExecutionV1QuickCommandsCreateExecutionSlugPost,
|
|
12
|
+
createResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsPost,
|
|
11
13
|
currentV1TokensUsageCurrentGet,
|
|
12
|
-
currentV1TokensUsageTotalGet,
|
|
13
14
|
defaults,
|
|
14
15
|
deleteConversationV1ConversationsConversationIdDelete,
|
|
15
16
|
deleteFavoriteV1AiStacksStackIdFavoriteDelete,
|
|
16
17
|
deleteFavoriteV1QuickCommandsSlugFavoriteDelete,
|
|
17
18
|
deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdDelete,
|
|
19
|
+
deleteResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdDelete,
|
|
20
|
+
deleteReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdDelete,
|
|
18
21
|
downloadConversationV1ConversationsConversationIdDownloadGet,
|
|
19
22
|
findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet,
|
|
20
23
|
findKnowledgeSourceV1KnowledgeSourcesSlugGet,
|
|
21
24
|
formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost,
|
|
22
25
|
formatResultV1QuickCommandsSlugResultFormatPost,
|
|
23
26
|
getContentDependenciesV1ContentContentTypeContentIdDependenciesGet,
|
|
27
|
+
getFlagsV1FlagsGet,
|
|
24
28
|
getQuickCommandV1QuickCommandsSlugGet,
|
|
29
|
+
getReviewsByResourceV1ResourcesResourceTypeSlugResourceSlugReviewsGet,
|
|
30
|
+
getScriptExecutionStatusV1QuickCommandsScriptExecutionsScriptExecutionIdGet,
|
|
25
31
|
getUploadFormV1FileUploadFormPost,
|
|
26
32
|
HttpValidationError,
|
|
27
33
|
listAiStacksV1AiStacksGet,
|
|
@@ -38,10 +44,16 @@ import {
|
|
|
38
44
|
resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete,
|
|
39
45
|
runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost,
|
|
40
46
|
searchKnowledgeSourcesV1KnowledgeSourcesSearchPost,
|
|
47
|
+
startScriptStepV1QuickCommandsSlugStepsStepSlugStartScriptPost,
|
|
48
|
+
totalV1TokensUsageTotalGet,
|
|
41
49
|
updateQuickCommandV1QuickCommandsSlugPatch,
|
|
50
|
+
updateResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdPatch,
|
|
51
|
+
updateReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdPatch,
|
|
42
52
|
updateTitleV1ConversationsConversationIdPatch,
|
|
43
53
|
vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost,
|
|
44
54
|
} from '../api/ai'
|
|
55
|
+
|
|
56
|
+
|
|
45
57
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
46
58
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
47
59
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
@@ -106,7 +118,7 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
106
118
|
/**
|
|
107
119
|
* Gets total tokens usage
|
|
108
120
|
*/
|
|
109
|
-
totalTokensUsage = this.query(removeAuthorizationParam(
|
|
121
|
+
totalTokensUsage = this.query(removeAuthorizationParam(totalV1TokensUsageTotalGet))
|
|
110
122
|
/**
|
|
111
123
|
* Gets current tokens usage
|
|
112
124
|
*/
|
|
@@ -257,6 +269,58 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
257
269
|
* Removes the resource of type Quick Command from the list of favorites.
|
|
258
270
|
*/
|
|
259
271
|
removeFavoriteQuickCommand = this.mutation(removeAuthorizationParam(deleteFavoriteV1QuickCommandsSlugFavoriteDelete))
|
|
272
|
+
/**
|
|
273
|
+
* Lists all the feature flags for this user.
|
|
274
|
+
*/
|
|
275
|
+
flags = this.query(getFlagsV1FlagsGet)
|
|
276
|
+
/**
|
|
277
|
+
* Starts the execution of a script step
|
|
278
|
+
*/
|
|
279
|
+
startScriptStep = this.mutation(removeAuthorizationParam(startScriptStepV1QuickCommandsSlugStepsStepSlugStartScriptPost))
|
|
280
|
+
/**
|
|
281
|
+
* Gets the status of the execution of a script step
|
|
282
|
+
*/
|
|
283
|
+
getStatusScriptStep = this.query(removeAuthorizationParam(getScriptExecutionStatusV1QuickCommandsScriptExecutionsScriptExecutionIdGet))
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Get reviews by resource
|
|
287
|
+
*/
|
|
288
|
+
getReviewsByResource = this.query(removeAuthorizationParam(getReviewsByResourceV1ResourcesResourceTypeSlugResourceSlugReviewsGet))
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Create a resource review
|
|
292
|
+
*/
|
|
293
|
+
createResourceReview = this.mutation(removeAuthorizationParam(createResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsPost))
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Create an answer for a review
|
|
297
|
+
*/
|
|
298
|
+
createAnswerForReview = this.mutation(
|
|
299
|
+
removeAuthorizationParam(createAnswerForReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersPost))
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Update a resource review
|
|
303
|
+
*/
|
|
304
|
+
updateResourceReview = this.mutation(
|
|
305
|
+
removeAuthorizationParam(updateResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdPatch))
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Delete a resource review
|
|
309
|
+
*/
|
|
310
|
+
deleteResourceReview = this.mutation(
|
|
311
|
+
removeAuthorizationParam(deleteResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdDelete))
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Update a review comment (answer)
|
|
315
|
+
*/
|
|
316
|
+
updateReviewComment = this.mutation(
|
|
317
|
+
removeAuthorizationParam(updateReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdPatch))
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Delete a review comment (answer)
|
|
321
|
+
*/
|
|
322
|
+
deleteReviewComment = this.mutation(
|
|
323
|
+
removeAuthorizationParam(deleteReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdDelete))
|
|
260
324
|
|
|
261
325
|
private static async toolsOfAgent(agentId?: string) {
|
|
262
326
|
try {
|
|
@@ -308,7 +372,7 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
308
372
|
steps: info.data?.steps?.map(s => s.goal) ?? [],
|
|
309
373
|
goal: info.data?.plan_goal ?? '',
|
|
310
374
|
})
|
|
311
|
-
|
|
375
|
+
|
|
312
376
|
info.data?.steps.forEach(s => data.steps?.push({
|
|
313
377
|
id: s.id,
|
|
314
378
|
type: 'step',
|
|
@@ -368,7 +432,7 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
368
432
|
}
|
|
369
433
|
|
|
370
434
|
if (info.type === 'tool' && info.action === 'awaiting_approval') {
|
|
371
|
-
const tool = tools.find(({ id }) => id === info.data?.tool_id)
|
|
435
|
+
const tool = tools.find(({ id }) => id === info.data?.tool_id)
|
|
372
436
|
data.steps.push({
|
|
373
437
|
id: info.id,
|
|
374
438
|
type: 'tool',
|
|
@@ -392,7 +456,7 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
392
456
|
if (info.type === 'tool' && info.action === 'start') {
|
|
393
457
|
const currentStep = data.steps.find(s => s.status === 'running') as StepChatStep
|
|
394
458
|
if (!info.data) return
|
|
395
|
-
|
|
459
|
+
|
|
396
460
|
//There might be a tool with status awaiting_approval, so we want to inform tool has already started
|
|
397
461
|
if (!currentStep || !currentStep.attempts[0].tools) {
|
|
398
462
|
const input = formatJson(info.data.input)
|
|
@@ -405,7 +469,7 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
405
469
|
input: info.data?.input,
|
|
406
470
|
user_question: info.data?.user_question,
|
|
407
471
|
attempts: [{
|
|
408
|
-
tools:[{ ...tool, executionId: info.id, input }],
|
|
472
|
+
tools: [{ ...tool, executionId: info.id, input }],
|
|
409
473
|
}],
|
|
410
474
|
})
|
|
411
475
|
} else {
|
|
@@ -415,7 +479,7 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
415
479
|
if (!toolInFirstAttempt) {
|
|
416
480
|
const input = formatJson(info.data.input)
|
|
417
481
|
const tool = tools?.find(({ id }) => id === info.data?.tool_id) ?? { id: info.data?.tool_id, name: info.data?.tool_id }
|
|
418
|
-
currentStep.attempts[info.data.attempt-1].tools?.push({
|
|
482
|
+
currentStep.attempts[info.data.attempt - 1].tools?.push({
|
|
419
483
|
...tool,
|
|
420
484
|
executionId: info.id,
|
|
421
485
|
input,
|
|
@@ -426,8 +490,8 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
426
490
|
toolInFirstAttempt.input = input
|
|
427
491
|
} else {
|
|
428
492
|
const tool = tools.find(({ id }) => id === info.data?.tool_id) ?? { id: info.data?.tool_id, name: info.data?.tool_id }
|
|
429
|
-
currentStep.attempts[info.data.attempt-1] ??= { tools: [] }
|
|
430
|
-
currentStep.attempts[info.data.attempt-1].tools?.push({
|
|
493
|
+
currentStep.attempts[info.data.attempt - 1] ??= { tools: [] }
|
|
494
|
+
currentStep.attempts[info.data.attempt - 1].tools?.push({
|
|
431
495
|
...tool,
|
|
432
496
|
executionId: info.id,
|
|
433
497
|
input,
|
|
@@ -440,7 +504,7 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
440
504
|
if (info.type === 'tool' && info.action === 'end') {
|
|
441
505
|
const currentStep = data.steps.find(s => s.status === 'running') as StepChatStep
|
|
442
506
|
if (!currentStep || !info.data) return
|
|
443
|
-
const tool = currentStep.attempts[info.data.attempt-1]?.tools?.find(t => t.executionId === info.id)
|
|
507
|
+
const tool = currentStep.attempts[info.data.attempt - 1]?.tools?.find(t => t.executionId === info.id)
|
|
444
508
|
if (tool) {
|
|
445
509
|
tool.output = formatJson(info.data.output)
|
|
446
510
|
tool.duration = info.duration
|
|
@@ -4,7 +4,7 @@ import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
|
4
4
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
5
5
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
6
6
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
7
|
-
import { associateWithWorkspaceEnvironment, createAddon, createDeployTemplate, createOrganization, createRuntime1, createTenant1, defaults, deploy, findApplicationDeploymentById, getApplicationDeploymentHealth, getApplicationDeploymentLogs, getAssociationWorkspaceEnvironmentByRuntimeId, getOrganizationById, getOrganizations, getRuntime1, getTenant1, listAddon, listApplicationDeployments, listAssociations, listDeployTemplate, listRuntimes, listRuntimes1, listTenants, listTenants1 } from '../api/cloudPlatformHorizon'
|
|
7
|
+
import { associateWithWorkspaceEnvironment, createAddon, createDeployTemplate, createOrganization, createRuntime1, createTenant1, defaults, deploy, findApplicationDeploymentById, getApplicationDeploymentHealth, getApplicationDeploymentLogs, getAssociationWorkspaceEnvironmentByRuntimeId, getOrganizationById, getOrganizations, getRuntime1, getTenant1, listAddon, listApplicationDeploymentRollouts, listApplicationDeployments, listAssociations, listDeployTemplate, listRuntimes, listRuntimes1, listTenants, listTenants1, postApplicationDeploymentRolloutAction } from '../api/cloudPlatformHorizon'
|
|
8
8
|
import { baseDictionary } from '../error/dictionary/base'
|
|
9
9
|
import { getApiAddresses } from '../api-addresses'
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
|
19
19
|
/**
|
|
20
20
|
* Get a list of organizations
|
|
21
21
|
*/
|
|
22
|
-
listOrganizations= this.query(removeAuthorizationParam(getOrganizations))
|
|
22
|
+
listOrganizations = this.query(removeAuthorizationParam(getOrganizations))
|
|
23
23
|
/**
|
|
24
24
|
* Get organization by id
|
|
25
25
|
*/
|
|
@@ -27,11 +27,11 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
|
27
27
|
/**
|
|
28
28
|
* Get details of an tenant
|
|
29
29
|
*/
|
|
30
|
-
getTenantById= this.query(removeAuthorizationParam(getTenant1))
|
|
30
|
+
getTenantById = this.query(removeAuthorizationParam(getTenant1))
|
|
31
31
|
/**
|
|
32
32
|
* Get details of an runtime
|
|
33
33
|
*/
|
|
34
|
-
getRuntimeById= this.query(removeAuthorizationParam(getRuntime1))
|
|
34
|
+
getRuntimeById = this.query(removeAuthorizationParam(getRuntime1))
|
|
35
35
|
/**
|
|
36
36
|
* Create an tenant
|
|
37
37
|
*/
|
|
@@ -108,6 +108,14 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
|
108
108
|
* List runtime associations to workspace's environment
|
|
109
109
|
*/
|
|
110
110
|
listRuntimeAssociationsToEnv = this.query(removeAuthorizationParam(listAssociations))
|
|
111
|
+
/**
|
|
112
|
+
* List of application deployments rollout
|
|
113
|
+
*/
|
|
114
|
+
listApplicationDeploymentRollouts = this.query(removeAuthorizationParam(listApplicationDeploymentRollouts))
|
|
115
|
+
/**
|
|
116
|
+
* Set an action to application deployment rollout
|
|
117
|
+
*/
|
|
118
|
+
deployApplicationRolloutAction = this.mutation(removeAuthorizationParam(postApplicationDeploymentRolloutAction))
|
|
111
119
|
}
|
|
112
120
|
|
|
113
121
|
export const cloudPlatformHorizonClient = new CloudPlatformHorizonClient()
|
package/src/client/code-shift.ts
CHANGED
|
@@ -69,10 +69,16 @@ import {
|
|
|
69
69
|
moduleFavoriteServiceAddV1ModulesModuleIdFavoritesPost,
|
|
70
70
|
moduleFavoriteServiceDeleteV1ModulesModuleIdFavoritesDelete,
|
|
71
71
|
patHealthCheckV1ScmPatHealthCheckGet,
|
|
72
|
+
getModuleDocsV1ModulesModuleIdDocsGet,
|
|
73
|
+
analyticsModuleExecutionTimesReportV1AnalyticsModulesExecutionTimesGet,
|
|
74
|
+
analyticsModuleExecutionTimesDownloadV1AnalyticsModulesExecutionTimesDownloadGet,
|
|
75
|
+
createReposBatchServiceV2ReposBatchPost,
|
|
76
|
+
getImportResultV2ReposBatchImportIdGet,
|
|
77
|
+
downloadImportResultV2ReposBatchImportIdDownloadGet,
|
|
72
78
|
} from '../api/codeShift'
|
|
73
79
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
74
80
|
import { codeShiftDictionary } from '../error/dictionary/code-shift'
|
|
75
|
-
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
81
|
+
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
76
82
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
77
83
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
78
84
|
import { getApiAddresses } from '../api-addresses'
|
|
@@ -94,6 +100,18 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
94
100
|
* Creates repositories in batch.
|
|
95
101
|
*/
|
|
96
102
|
createRepositoriesBatch = this.mutation(removeAuthorizationParam(createReposBatchServiceV1ReposBatchPost))
|
|
103
|
+
/**
|
|
104
|
+
* Imports repositories in batch.
|
|
105
|
+
*/
|
|
106
|
+
createRepositoriesBatchV2 = this.mutation(removeAuthorizationParam(createReposBatchServiceV2ReposBatchPost))
|
|
107
|
+
/**
|
|
108
|
+
* Gets the status of a batch import.
|
|
109
|
+
*/
|
|
110
|
+
getImportBatchResultsV2 = this.query(removeAuthorizationParam(getImportResultV2ReposBatchImportIdGet))
|
|
111
|
+
/**
|
|
112
|
+
* Downloads the import result for a batch.
|
|
113
|
+
*/
|
|
114
|
+
downloadImportBatchResultsV2 = this.query(removeAuthorizationParam(downloadImportResultV2ReposBatchImportIdDownloadGet))
|
|
97
115
|
/**
|
|
98
116
|
* Gets list of repositories.
|
|
99
117
|
*/
|
|
@@ -150,6 +168,10 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
150
168
|
* Generates a report.
|
|
151
169
|
*/
|
|
152
170
|
generateReport = this.mutation(removeAuthorizationParam(dispatchModuleServiceV1ModulesDispatchesPost))
|
|
171
|
+
/**
|
|
172
|
+
* Gets module docs.
|
|
173
|
+
*/
|
|
174
|
+
moduleDocs = this.query(removeAuthorizationParam(getModuleDocsV1ModulesModuleIdDocsGet))
|
|
153
175
|
/**
|
|
154
176
|
* Gets repository reports.
|
|
155
177
|
*/
|
|
@@ -394,6 +416,18 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
394
416
|
analyticsRepositoryTargetDetailsDownload = this.query(
|
|
395
417
|
removeAuthorizationParam(analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet),
|
|
396
418
|
)
|
|
419
|
+
/**
|
|
420
|
+
* Analytics Modules Execution Times
|
|
421
|
+
*/
|
|
422
|
+
analyticsModulesExecutionTimes = this.query(
|
|
423
|
+
removeAuthorizationParam(analyticsModuleExecutionTimesReportV1AnalyticsModulesExecutionTimesGet),
|
|
424
|
+
)
|
|
425
|
+
/**
|
|
426
|
+
* Analytics Modules Execution Times Download
|
|
427
|
+
*/
|
|
428
|
+
analyticsModulesExecutionTimesDownload = this.query(
|
|
429
|
+
removeAuthorizationParam(analyticsModuleExecutionTimesDownloadV1AnalyticsModulesExecutionTimesDownloadGet),
|
|
430
|
+
)
|
|
397
431
|
}
|
|
398
432
|
|
|
399
433
|
export const codeShiftClient = new CodeShift()
|