@stack-spot/portal-network 0.97.2 → 0.99.0
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 +19 -0
- package/dist/api/ai.d.ts +132 -216
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +150 -211
- package/dist/api/ai.js.map +1 -1
- package/dist/api/codeShift.d.ts +8 -17
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js.map +1 -1
- package/dist/client/ai.d.ts +25 -3
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +28 -1
- package/dist/client/ai.js.map +1 -1
- package/dist/client/code-shift.d.ts +1 -1
- package/dist/client/code-shift.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/ai.ts +319 -475
- package/src/api/codeShift.ts +8 -18
- package/src/client/ai.ts +15 -0
package/src/api/codeShift.ts
CHANGED
|
@@ -16,10 +16,6 @@ export type ModuleResponse = {
|
|
|
16
16
|
id: string;
|
|
17
17
|
name: string;
|
|
18
18
|
};
|
|
19
|
-
export type ApplicationResponse = {
|
|
20
|
-
id: string;
|
|
21
|
-
name: string;
|
|
22
|
-
};
|
|
23
19
|
export type ExecutionResponse = {
|
|
24
20
|
id: string;
|
|
25
21
|
started_at: string | null;
|
|
@@ -36,7 +32,6 @@ export type UserResponse = {
|
|
|
36
32
|
export type ReportResponse = {
|
|
37
33
|
id: string;
|
|
38
34
|
"module": ModuleResponse;
|
|
39
|
-
application: ApplicationResponse;
|
|
40
35
|
execution: ExecutionResponse;
|
|
41
36
|
mode: string;
|
|
42
37
|
sourceBranch: string;
|
|
@@ -85,7 +80,7 @@ export type RepositoryResponse = {
|
|
|
85
80
|
url: string;
|
|
86
81
|
default_branch: string;
|
|
87
82
|
};
|
|
88
|
-
export type
|
|
83
|
+
export type ApplicationResponse = {
|
|
89
84
|
/** Application ID */
|
|
90
85
|
id: string;
|
|
91
86
|
/** Application name */
|
|
@@ -99,7 +94,7 @@ export type ApplicationResponse2 = {
|
|
|
99
94
|
};
|
|
100
95
|
export type ListApplicationResponse = {
|
|
101
96
|
/** List of applications */
|
|
102
|
-
items:
|
|
97
|
+
items: ApplicationResponse[];
|
|
103
98
|
/** Number of applications */
|
|
104
99
|
items_count: number;
|
|
105
100
|
/** Last evaluated key */
|
|
@@ -201,10 +196,6 @@ export type ModuleResponse3 = {
|
|
|
201
196
|
id: string;
|
|
202
197
|
name: string;
|
|
203
198
|
};
|
|
204
|
-
export type ApplicationResponse3 = {
|
|
205
|
-
id: string;
|
|
206
|
-
name: string;
|
|
207
|
-
};
|
|
208
199
|
export type DependsOnResponse = {
|
|
209
200
|
sourceRef: string;
|
|
210
201
|
targetRef: string;
|
|
@@ -223,17 +214,17 @@ export type TargetFilesResponse = {
|
|
|
223
214
|
};
|
|
224
215
|
export type GetReportResponse = {
|
|
225
216
|
id: string;
|
|
217
|
+
applicationId: string;
|
|
226
218
|
"module": ModuleResponse3;
|
|
227
|
-
application: ApplicationResponse3;
|
|
228
219
|
execution: ExecutionResponse;
|
|
229
220
|
mode: string;
|
|
230
|
-
|
|
231
|
-
|
|
221
|
+
sourceBranch: string;
|
|
222
|
+
targetBranch?: string | null;
|
|
232
223
|
createdBy: UserResponse;
|
|
233
224
|
createdAt: string;
|
|
234
225
|
updatedAt: string;
|
|
235
|
-
|
|
236
|
-
|
|
226
|
+
files_count: number | null;
|
|
227
|
+
issues_count: number | null;
|
|
237
228
|
pullRequestLink?: string | null;
|
|
238
229
|
targetFiles: TargetFilesResponse[];
|
|
239
230
|
};
|
|
@@ -403,7 +394,7 @@ export function getApplicationByIdServiceV1ApplicationsApplicationIdGet({ applic
|
|
|
403
394
|
}, opts?: Oazapfts.RequestOpts) {
|
|
404
395
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
405
396
|
status: 200;
|
|
406
|
-
data:
|
|
397
|
+
data: ApplicationResponse;
|
|
407
398
|
} | {
|
|
408
399
|
status: 400;
|
|
409
400
|
data: HttpErrorResponse;
|
|
@@ -680,7 +671,6 @@ export function dispatchModuleServiceV1ModulesDispatchesPost({ authorization, bo
|
|
|
680
671
|
})
|
|
681
672
|
})));
|
|
682
673
|
}
|
|
683
|
-
|
|
684
674
|
/**
|
|
685
675
|
* Put Report
|
|
686
676
|
*/
|
package/src/client/ai.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
2
|
import {
|
|
3
|
+
addFavoriteV1FavoritesPost,
|
|
3
4
|
ChatResponse3,
|
|
4
5
|
conversationHistoryV1ConversationsConversationIdGet,
|
|
5
6
|
defaults,
|
|
6
7
|
deleteConversationV1ConversationsConversationIdDelete,
|
|
8
|
+
deleteFavoriteV1FavoritesDelete,
|
|
7
9
|
downloadConversationV1ConversationsConversationIdDownloadGet,
|
|
8
10
|
findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet,
|
|
9
11
|
findKnowledgeSourceV1KnowledgeSourcesSlugGet,
|
|
10
12
|
formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost,
|
|
11
13
|
formatResultV1QuickCommandsSlugResultFormatPost,
|
|
12
14
|
getContentDependenciesV1ContentContentTypeContentIdDependenciesGet,
|
|
15
|
+
getFavoritesByTypeV1FavoritesGet,
|
|
13
16
|
getQuickCommandV1QuickCommandsSlugGet,
|
|
14
17
|
HttpValidationError,
|
|
15
18
|
listAiStacksV1AiStacksGet,
|
|
@@ -65,6 +68,18 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
65
68
|
fetchStepOfQuickCommand = this.mutation(removeAuthorizationParam(formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost))
|
|
66
69
|
llmStepOfQuickCommand = this.mutation(removeAuthorizationParam(quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost))
|
|
67
70
|
formatResultOfQuickCommand = this.mutation(removeAuthorizationParam(formatResultV1QuickCommandsSlugResultFormatPost))
|
|
71
|
+
/**
|
|
72
|
+
* List of favorites by type
|
|
73
|
+
*/
|
|
74
|
+
listFavoritesByType = this.query(removeAuthorizationParam(getFavoritesByTypeV1FavoritesGet))
|
|
75
|
+
/**
|
|
76
|
+
* Remove favorite from list
|
|
77
|
+
*/
|
|
78
|
+
removeFavorite = this.mutation(removeAuthorizationParam(deleteFavoriteV1FavoritesDelete))
|
|
79
|
+
/**
|
|
80
|
+
* Add favorite to list
|
|
81
|
+
*/
|
|
82
|
+
addFavorite = this.mutation(removeAuthorizationParam(addFavoriteV1FavoritesPost))
|
|
68
83
|
|
|
69
84
|
sendChatMessage(request: FixedChatRequest, minChangeIntervalMS?: number): StreamedJson<ChatResponse3> {
|
|
70
85
|
const abortController = new AbortController()
|