@stack-spot/portal-network 0.103.0 → 0.104.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 +14 -0
- package/dist/api/ai.d.ts +128 -25
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +106 -0
- package/dist/api/ai.js.map +1 -1
- package/dist/api/codeShift.d.ts +38 -5
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +2 -2
- package/dist/api/codeShift.js.map +1 -1
- package/dist/client/ai.d.ts +7 -0
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +10 -1
- package/dist/client/ai.js.map +1 -1
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +2 -2
- package/dist/client/code-shift.js.map +1 -1
- package/package.json +1 -1
- package/src/api/ai.ts +264 -25
- package/src/api/codeShift.ts +38 -5
- package/src/client/ai.ts +5 -0
- package/src/client/code-shift.ts +2 -2
package/src/api/ai.ts
CHANGED
|
@@ -12,7 +12,30 @@ export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {};
|
|
15
|
-
export type
|
|
15
|
+
export type AiStackWorkspaceForkRequest = {
|
|
16
|
+
ids: string[];
|
|
17
|
+
member_id: string;
|
|
18
|
+
};
|
|
19
|
+
export type AiStackWorkspaceForkResponse = {
|
|
20
|
+
stack_ids: string[];
|
|
21
|
+
stack_ids_account: string[];
|
|
22
|
+
error_ids: string[];
|
|
23
|
+
};
|
|
24
|
+
export type ValidationError = {
|
|
25
|
+
loc: (string | number)[];
|
|
26
|
+
msg: string;
|
|
27
|
+
"type": string;
|
|
28
|
+
};
|
|
29
|
+
export type HttpValidationError = {
|
|
30
|
+
detail?: ValidationError[];
|
|
31
|
+
};
|
|
32
|
+
export type AiStackWorkspaceDeleteRequest = {
|
|
33
|
+
ids: string[];
|
|
34
|
+
};
|
|
35
|
+
export type AiStackWorkspaceListRequest = {
|
|
36
|
+
ids: string[];
|
|
37
|
+
name?: string | null;
|
|
38
|
+
};
|
|
16
39
|
export type GetAiStackResponse = {
|
|
17
40
|
id: string;
|
|
18
41
|
name: string;
|
|
@@ -31,14 +54,7 @@ export type GetAiStackResponse = {
|
|
|
31
54
|
visibility_level: string;
|
|
32
55
|
use_only?: boolean | null;
|
|
33
56
|
};
|
|
34
|
-
export type
|
|
35
|
-
loc: (string | number)[];
|
|
36
|
-
msg: string;
|
|
37
|
-
"type": string;
|
|
38
|
-
};
|
|
39
|
-
export type HttpValidationError = {
|
|
40
|
-
detail?: ValidationError[];
|
|
41
|
-
};
|
|
57
|
+
export type VisibilityLevelEnum = "account" | "personal" | "shared" | "workspace";
|
|
42
58
|
export type NewAiStackRequest = {
|
|
43
59
|
name: string;
|
|
44
60
|
use_case: string;
|
|
@@ -131,6 +147,17 @@ export type ChatResponse = {
|
|
|
131
147
|
total_cost?: string | null;
|
|
132
148
|
sources: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile | KnowledgeSourceEvent)[];
|
|
133
149
|
};
|
|
150
|
+
export type AutoCompleteRequest = {
|
|
151
|
+
context?: object | null;
|
|
152
|
+
code_to_complete: string;
|
|
153
|
+
file_extension: string;
|
|
154
|
+
file_path: string;
|
|
155
|
+
file_context: string | null;
|
|
156
|
+
file_relevant: string | null;
|
|
157
|
+
};
|
|
158
|
+
export type AutoCompleteResult = {
|
|
159
|
+
code: string;
|
|
160
|
+
};
|
|
134
161
|
export type EventTypeEnum = "code_injected" | "code_copied" | "custom_quick_command_execution" | "user_feedback_provided" | "copied_all";
|
|
135
162
|
export type SourceProjectFile2 = {
|
|
136
163
|
"type"?: "project_file";
|
|
@@ -283,15 +310,46 @@ export type TokensCurrentUsageResponse = {
|
|
|
283
310
|
used: number;
|
|
284
311
|
limit: number;
|
|
285
312
|
renewal_date: string;
|
|
313
|
+
embeddings_tokens_usage: number;
|
|
314
|
+
prompt_tokens_usage: number;
|
|
286
315
|
};
|
|
287
316
|
export type TokensMonthlyUsageResponse = {
|
|
288
317
|
used: number;
|
|
289
318
|
month: number;
|
|
319
|
+
embeddings_tokens_usage: number;
|
|
320
|
+
prompt_tokens_usage: number;
|
|
290
321
|
};
|
|
291
322
|
export type AddWorkspaceKnowledgeSourceRequest = {
|
|
292
323
|
knowledge_source_slugs: string[];
|
|
293
324
|
};
|
|
325
|
+
export type QuickCommandWorkspaceForkRequest = {
|
|
326
|
+
ids: string[];
|
|
327
|
+
member_id: string;
|
|
328
|
+
};
|
|
329
|
+
export type QuickCommandWorkspaceDeleteRequest = {
|
|
330
|
+
ids: string[];
|
|
331
|
+
};
|
|
332
|
+
export type QuickCommandWorkspaceListRequest = {
|
|
333
|
+
ids: string[];
|
|
334
|
+
name?: string | null;
|
|
335
|
+
};
|
|
294
336
|
export type QuickCommandTypeRequest = "IDE" | "REMOTE";
|
|
337
|
+
export type QuickCommandsReturnType = "CHAT" | "REPLACE_CODE" | "BEFORE_CODE" | "AFTER_CODE";
|
|
338
|
+
export type QuickCommandListResponse = {
|
|
339
|
+
slug: string;
|
|
340
|
+
name: string;
|
|
341
|
+
"type": QuickCommandTypeRequest;
|
|
342
|
+
description: string;
|
|
343
|
+
studio_id?: string | null;
|
|
344
|
+
flow?: object | null;
|
|
345
|
+
preserve_conversation: boolean;
|
|
346
|
+
use_selected_code: boolean;
|
|
347
|
+
return_type?: QuickCommandsReturnType | null;
|
|
348
|
+
creator: string | null;
|
|
349
|
+
visibility_level: string;
|
|
350
|
+
use_only: boolean;
|
|
351
|
+
id: string;
|
|
352
|
+
};
|
|
295
353
|
export type Method = "GET" | "OPTIONS" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
296
354
|
export type QuickCommandsStepFetchRequest = {
|
|
297
355
|
slug: string;
|
|
@@ -312,7 +370,6 @@ export type QuickCommandsStepPromptRequest = {
|
|
|
312
370
|
agent_id?: string | null;
|
|
313
371
|
agent_built_in?: boolean | null;
|
|
314
372
|
};
|
|
315
|
-
export type QuickCommandsReturnType = "CHAT" | "REPLACE_CODE" | "BEFORE_CODE" | "AFTER_CODE";
|
|
316
373
|
export type CustomInputRequest = {
|
|
317
374
|
slug: string;
|
|
318
375
|
question: string;
|
|
@@ -333,21 +390,6 @@ export type QuickCommandsCreateRequest = {
|
|
|
333
390
|
export type BaseContextualRequest = {
|
|
334
391
|
context?: object | null;
|
|
335
392
|
};
|
|
336
|
-
export type QuickCommandListResponse = {
|
|
337
|
-
slug: string;
|
|
338
|
-
name: string;
|
|
339
|
-
"type": QuickCommandTypeRequest;
|
|
340
|
-
description: string;
|
|
341
|
-
studio_id?: string | null;
|
|
342
|
-
flow?: object | null;
|
|
343
|
-
preserve_conversation: boolean;
|
|
344
|
-
use_selected_code: boolean;
|
|
345
|
-
return_type?: QuickCommandsReturnType | null;
|
|
346
|
-
creator: string | null;
|
|
347
|
-
visibility_level: string;
|
|
348
|
-
use_only: boolean;
|
|
349
|
-
id: string;
|
|
350
|
-
};
|
|
351
393
|
export type QuickCommandsUpdateRequest = {
|
|
352
394
|
name?: string | null;
|
|
353
395
|
description?: string | null;
|
|
@@ -606,6 +648,83 @@ export function metricsMetricsGet(opts?: Oazapfts.RequestOpts) {
|
|
|
606
648
|
...opts
|
|
607
649
|
}));
|
|
608
650
|
}
|
|
651
|
+
/**
|
|
652
|
+
* Workspace Fork
|
|
653
|
+
*/
|
|
654
|
+
export function workspaceForkV1AiStacksWorkspaceForkPost({ authorization, xAccountId, aiStackWorkspaceForkRequest }: {
|
|
655
|
+
authorization: string;
|
|
656
|
+
xAccountId?: string | null;
|
|
657
|
+
aiStackWorkspaceForkRequest: AiStackWorkspaceForkRequest;
|
|
658
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
659
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
660
|
+
status: 200;
|
|
661
|
+
data: AiStackWorkspaceForkResponse;
|
|
662
|
+
} | {
|
|
663
|
+
status: 404;
|
|
664
|
+
} | {
|
|
665
|
+
status: 422;
|
|
666
|
+
data: HttpValidationError;
|
|
667
|
+
}>("/v1/ai-stacks/workspace/fork", oazapfts.json({
|
|
668
|
+
...opts,
|
|
669
|
+
method: "POST",
|
|
670
|
+
body: aiStackWorkspaceForkRequest,
|
|
671
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
672
|
+
authorization,
|
|
673
|
+
"x-account-id": xAccountId
|
|
674
|
+
})
|
|
675
|
+
})));
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Workspace Delete Fork
|
|
679
|
+
*/
|
|
680
|
+
export function workspaceDeleteForkV1AiStacksWorkspaceForkDelete({ authorization, xAccountId, aiStackWorkspaceDeleteRequest }: {
|
|
681
|
+
authorization: string;
|
|
682
|
+
xAccountId?: string | null;
|
|
683
|
+
aiStackWorkspaceDeleteRequest: AiStackWorkspaceDeleteRequest;
|
|
684
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
685
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
686
|
+
status: 204;
|
|
687
|
+
} | {
|
|
688
|
+
status: 404;
|
|
689
|
+
} | {
|
|
690
|
+
status: 422;
|
|
691
|
+
data: HttpValidationError;
|
|
692
|
+
}>("/v1/ai-stacks/workspace/fork", oazapfts.json({
|
|
693
|
+
...opts,
|
|
694
|
+
method: "DELETE",
|
|
695
|
+
body: aiStackWorkspaceDeleteRequest,
|
|
696
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
697
|
+
authorization,
|
|
698
|
+
"x-account-id": xAccountId
|
|
699
|
+
})
|
|
700
|
+
})));
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
* Workspace List
|
|
704
|
+
*/
|
|
705
|
+
export function workspaceListV1AiStacksWorkspaceListPost({ authorization, xAccountId, aiStackWorkspaceListRequest }: {
|
|
706
|
+
authorization: string;
|
|
707
|
+
xAccountId?: string | null;
|
|
708
|
+
aiStackWorkspaceListRequest: AiStackWorkspaceListRequest;
|
|
709
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
710
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
711
|
+
status: 200;
|
|
712
|
+
data: GetAiStackResponse[];
|
|
713
|
+
} | {
|
|
714
|
+
status: 404;
|
|
715
|
+
} | {
|
|
716
|
+
status: 422;
|
|
717
|
+
data: HttpValidationError;
|
|
718
|
+
}>("/v1/ai-stacks/workspace/list", oazapfts.json({
|
|
719
|
+
...opts,
|
|
720
|
+
method: "POST",
|
|
721
|
+
body: aiStackWorkspaceListRequest,
|
|
722
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
723
|
+
authorization,
|
|
724
|
+
"x-account-id": xAccountId
|
|
725
|
+
})
|
|
726
|
+
})));
|
|
727
|
+
}
|
|
609
728
|
/**
|
|
610
729
|
* List Ai Stacks
|
|
611
730
|
*/
|
|
@@ -897,6 +1016,26 @@ export function devAssistantV1ChatPost(opts?: Oazapfts.RequestOpts) {
|
|
|
897
1016
|
method: "POST"
|
|
898
1017
|
}));
|
|
899
1018
|
}
|
|
1019
|
+
/**
|
|
1020
|
+
* Autocomplete V1
|
|
1021
|
+
*/
|
|
1022
|
+
export function autocompleteV1V1AutocompletePost({ autoCompleteRequest }: {
|
|
1023
|
+
autoCompleteRequest: AutoCompleteRequest;
|
|
1024
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1025
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1026
|
+
status: 200;
|
|
1027
|
+
data: string | AutoCompleteResult;
|
|
1028
|
+
} | {
|
|
1029
|
+
status: 404;
|
|
1030
|
+
} | {
|
|
1031
|
+
status: 422;
|
|
1032
|
+
data: HttpValidationError;
|
|
1033
|
+
}>("/v1/autocomplete", oazapfts.json({
|
|
1034
|
+
...opts,
|
|
1035
|
+
method: "POST",
|
|
1036
|
+
body: autoCompleteRequest
|
|
1037
|
+
})));
|
|
1038
|
+
}
|
|
900
1039
|
/**
|
|
901
1040
|
* Post Event
|
|
902
1041
|
*/
|
|
@@ -1683,6 +1822,29 @@ export function changeExternalConfigsV1AccountsExternalConfigPatch({ body }: {
|
|
|
1683
1822
|
body
|
|
1684
1823
|
})));
|
|
1685
1824
|
}
|
|
1825
|
+
/**
|
|
1826
|
+
* Current
|
|
1827
|
+
*/
|
|
1828
|
+
export function currentV1TokensUsageTotalGet({ authorization, xAccountId }: {
|
|
1829
|
+
authorization: string;
|
|
1830
|
+
xAccountId?: string | null;
|
|
1831
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1832
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1833
|
+
status: 200;
|
|
1834
|
+
data: TokensCurrentUsageResponse;
|
|
1835
|
+
} | {
|
|
1836
|
+
status: 404;
|
|
1837
|
+
} | {
|
|
1838
|
+
status: 422;
|
|
1839
|
+
data: HttpValidationError;
|
|
1840
|
+
}>("/v1/tokens-usage/total", {
|
|
1841
|
+
...opts,
|
|
1842
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1843
|
+
authorization,
|
|
1844
|
+
"x-account-id": xAccountId
|
|
1845
|
+
})
|
|
1846
|
+
}));
|
|
1847
|
+
}
|
|
1686
1848
|
/**
|
|
1687
1849
|
* Current
|
|
1688
1850
|
*/
|
|
@@ -1840,6 +2002,83 @@ export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeS
|
|
|
1840
2002
|
})
|
|
1841
2003
|
}));
|
|
1842
2004
|
}
|
|
2005
|
+
/**
|
|
2006
|
+
* Workspace Fork
|
|
2007
|
+
*/
|
|
2008
|
+
export function workspaceForkV1QuickCommandsWorkspaceForkPost({ authorization, xAccountId, quickCommandWorkspaceForkRequest }: {
|
|
2009
|
+
authorization: string;
|
|
2010
|
+
xAccountId?: string | null;
|
|
2011
|
+
quickCommandWorkspaceForkRequest: QuickCommandWorkspaceForkRequest;
|
|
2012
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2013
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2014
|
+
status: 200;
|
|
2015
|
+
data: any;
|
|
2016
|
+
} | {
|
|
2017
|
+
status: 404;
|
|
2018
|
+
} | {
|
|
2019
|
+
status: 422;
|
|
2020
|
+
data: HttpValidationError;
|
|
2021
|
+
}>("/v1/quick-commands/workspace/fork", oazapfts.json({
|
|
2022
|
+
...opts,
|
|
2023
|
+
method: "POST",
|
|
2024
|
+
body: quickCommandWorkspaceForkRequest,
|
|
2025
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2026
|
+
authorization,
|
|
2027
|
+
"x-account-id": xAccountId
|
|
2028
|
+
})
|
|
2029
|
+
})));
|
|
2030
|
+
}
|
|
2031
|
+
/**
|
|
2032
|
+
* Workspace Delete Fork
|
|
2033
|
+
*/
|
|
2034
|
+
export function workspaceDeleteForkV1QuickCommandsWorkspaceForkDelete({ authorization, xAccountId, quickCommandWorkspaceDeleteRequest }: {
|
|
2035
|
+
authorization: string;
|
|
2036
|
+
xAccountId?: string | null;
|
|
2037
|
+
quickCommandWorkspaceDeleteRequest: QuickCommandWorkspaceDeleteRequest;
|
|
2038
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2039
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2040
|
+
status: 204;
|
|
2041
|
+
} | {
|
|
2042
|
+
status: 404;
|
|
2043
|
+
} | {
|
|
2044
|
+
status: 422;
|
|
2045
|
+
data: HttpValidationError;
|
|
2046
|
+
}>("/v1/quick-commands/workspace/fork", oazapfts.json({
|
|
2047
|
+
...opts,
|
|
2048
|
+
method: "DELETE",
|
|
2049
|
+
body: quickCommandWorkspaceDeleteRequest,
|
|
2050
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2051
|
+
authorization,
|
|
2052
|
+
"x-account-id": xAccountId
|
|
2053
|
+
})
|
|
2054
|
+
})));
|
|
2055
|
+
}
|
|
2056
|
+
/**
|
|
2057
|
+
* Workspace List
|
|
2058
|
+
*/
|
|
2059
|
+
export function workspaceListV1QuickCommandsWorkspaceListPost({ authorization, xAccountId, quickCommandWorkspaceListRequest }: {
|
|
2060
|
+
authorization: string;
|
|
2061
|
+
xAccountId?: string | null;
|
|
2062
|
+
quickCommandWorkspaceListRequest: QuickCommandWorkspaceListRequest;
|
|
2063
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2064
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2065
|
+
status: 200;
|
|
2066
|
+
data: QuickCommandListResponse[];
|
|
2067
|
+
} | {
|
|
2068
|
+
status: 404;
|
|
2069
|
+
} | {
|
|
2070
|
+
status: 422;
|
|
2071
|
+
data: HttpValidationError;
|
|
2072
|
+
}>("/v1/quick-commands/workspace/list", oazapfts.json({
|
|
2073
|
+
...opts,
|
|
2074
|
+
method: "POST",
|
|
2075
|
+
body: quickCommandWorkspaceListRequest,
|
|
2076
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2077
|
+
authorization,
|
|
2078
|
+
"x-account-id": xAccountId
|
|
2079
|
+
})
|
|
2080
|
+
})));
|
|
2081
|
+
}
|
|
1843
2082
|
/**
|
|
1844
2083
|
* Create Quick Command
|
|
1845
2084
|
*/
|
package/src/api/codeShift.ts
CHANGED
|
@@ -51,7 +51,7 @@ export type ListApplicationReportResponse = {
|
|
|
51
51
|
/** Last evaluated key */
|
|
52
52
|
lastEvaluatedKey: string | null;
|
|
53
53
|
};
|
|
54
|
-
export type ExceptionType = "CODE_SHIFT_API_0000_UNEXPECTED_ERROR" | "CODE_SHIFT_API_0001_INVALID_VALUE" | "CODE_SHIFT_API_0002_NOT_IMPLEMENTED" | "CODE_SHIFT_API_0003_NOT_FOUND" | "CODE_SHIFT_API_0004_VALIDATION_ERROR" | "CODE_SHIFT_API_3000_WORKFLOW_API_DISPATCH_FAILURE" | "CODE_SHIFT_API_3001_WORKFLOW_API_DISPATCH_FORBIDDEN" | "CODE_SHIFT_API_3002_WORKFLOW_API_DISPATCH_PARSE_ERROR" | "CODE_SHIFT_API_3010_AWS_SECRET_MANAGER_GET_SECRET_FAILURE" | "CODE_SHIFT_API_3011_AWS_SECRET_MANAGER_PARSE_SECRET_ERROR" | "CODE_SHIFT_API_6000_IAM_GENERATE_TOKEN_FAILURE";
|
|
54
|
+
export type ExceptionType = "CODE_SHIFT_API_0000_UNEXPECTED_ERROR" | "CODE_SHIFT_API_0001_INVALID_VALUE" | "CODE_SHIFT_API_0002_NOT_IMPLEMENTED" | "CODE_SHIFT_API_0003_NOT_FOUND" | "CODE_SHIFT_API_0004_VALIDATION_ERROR" | "CODE_SHIFT_API_0005_CONFLICT" | "CODE_SHIFT_API_3000_WORKFLOW_API_DISPATCH_FAILURE" | "CODE_SHIFT_API_3001_WORKFLOW_API_DISPATCH_FORBIDDEN" | "CODE_SHIFT_API_3002_WORKFLOW_API_DISPATCH_PARSE_ERROR" | "CODE_SHIFT_API_3010_AWS_SECRET_MANAGER_GET_SECRET_FAILURE" | "CODE_SHIFT_API_3011_AWS_SECRET_MANAGER_PARSE_SECRET_ERROR" | "CODE_SHIFT_API_6000_IAM_GENERATE_TOKEN_FAILURE";
|
|
55
55
|
export type BadRequestExceptionTypes = "CODE_SHIFT_API_1001_DECODE_JWT_ERROR" | "CODE_SHIFT_API_2001_BAD_REQUEST_REQUIRED_FIELD" | "CODE_SHIFT_API_2002_BAD_REQUEST_EMPTY_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2003_BAD_REQUEST_TYPE_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2004_BAD_REQUEST_VALUE_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2005_BAD_REQUEST_VALUE_FIELD_MAX_LENGTH" | "CODE_SHIFT_API_2006_BAD_REQUEST_VALUE_FIELD_MIN_LENGTH" | "CODE_SHIFT_API_2007_BAD_REQUEST_VALUE_REGEX_DOESNT_MATCH" | "CODE_SHIFT_API_2008_BAD_REQUEST_VALUE_FIELD_NUMBER_NOT_LT" | "CODE_SHIFT_API_2100_CREATE_BODY_REPO_AND_REPO_CREATE_ACTION" | "CODE_SHIFT_API_2101_CREATE_BODY_NOT_REPO_AND_NOT_REPO_CREATE_ACTION" | "CODE_SHIFT_API_2102_BAD_REQUEST_DATE_MAX_INTERVAL" | "CODE_SHIFT_API_2103_BAD_REQUEST_INVALID_PAGE" | "CODE_SHIFT_API_2104_BAD_REQUEST_DUPLICATED_ALIAS" | "CODE_SHIFT_API_2105_BAD_REQUEST_INVALID_REPO_URL" | "CODE_SHIFT_API_2110_BAD_REQUEST_PUT_STEP_STATUS_COMPLETED_WITHOUT_CONCLUSION" | "CODE_SHIFT_API_2112_BAD_REQUEST_PUT_STEP_STATUS_NOT_COMPLETED_AND_CONCLUSION_DEFINED" | "CODE_SHIFT_API_2113_BAD_REQUEST_PUT_STEP_STATUS_COMPLETED_AND_COMPLETED_AT_NOT_DEFINED" | "CODE_SHIFT_API_2114_BAD_REQUEST_PUT_STEP_STATUS_IN_PROGRESS_AND_STARTED_AT_NOT_DEFINED" | "CODE_SHIFT_API_2115_BAD_REQUEST_PUT_STEP_COMPLETED_AT_DEFINED_AND_STATUS_NOT_COMPLETED" | "CODE_SHIFT_API_2116_BAD_REQUEST_PUT_STEP_STARTED_AT_DEFINED_AND_STATUS_PENDING" | "CODE_SHIFT_API_2117_BAD_REQUEST_PUT_STEP_LOG_DEFINED_AND_CONCLUSION_IS_NOT_FAILURE" | "CODE_SHIFT_API_2120_BAD_REQUEST_MULTIPLE_INTEGRATION" | "CODE_SHIFT_API_2121_BAD_REQUEST_EMPTY_INTEGRATION" | "CODE_SHIFT_API_2121_BAD_REQUEST_EMPTY_TARGET" | "CODE_SHIFT_API_2121_BAD_REQUEST_FILLED_TARGET" | "CODE_SHIFT_API_2999_BAD_REQUEST_UNMAPPED";
|
|
56
56
|
export type InvalidPayloadDetails = {
|
|
57
57
|
code: BadRequestExceptionTypes;
|
|
@@ -80,6 +80,27 @@ export type RepositoryResponse = {
|
|
|
80
80
|
url: string;
|
|
81
81
|
defaultBranch: string;
|
|
82
82
|
};
|
|
83
|
+
export type ExecutionResponse2 = {
|
|
84
|
+
id: string;
|
|
85
|
+
startedAt: string | null;
|
|
86
|
+
completedAt: string | null;
|
|
87
|
+
status: string | null;
|
|
88
|
+
conclusion: string | null;
|
|
89
|
+
};
|
|
90
|
+
export type ReportResponse2 = {
|
|
91
|
+
id: string;
|
|
92
|
+
execution: ExecutionResponse2;
|
|
93
|
+
mode: string;
|
|
94
|
+
moduleId: string;
|
|
95
|
+
sourceBranch: string;
|
|
96
|
+
targetBranch?: string | null;
|
|
97
|
+
createdBy: UserResponse;
|
|
98
|
+
createdAt: string;
|
|
99
|
+
updatedAt: string;
|
|
100
|
+
filesCount: number | null;
|
|
101
|
+
issuesCount: number | null;
|
|
102
|
+
pullRequestLink?: string | null;
|
|
103
|
+
};
|
|
83
104
|
export type ApplicationResponse = {
|
|
84
105
|
/** Application ID */
|
|
85
106
|
id: string;
|
|
@@ -91,6 +112,7 @@ export type ApplicationResponse = {
|
|
|
91
112
|
createdBy?: string | null;
|
|
92
113
|
/** Repository */
|
|
93
114
|
repository: RepositoryResponse;
|
|
115
|
+
lastModuleReport: ReportResponse2 | null;
|
|
94
116
|
};
|
|
95
117
|
export type ListApplicationResponse = {
|
|
96
118
|
/** List of applications */
|
|
@@ -100,11 +122,15 @@ export type ListApplicationResponse = {
|
|
|
100
122
|
/** Last evaluated key */
|
|
101
123
|
lastEvaluatedKey: string | null;
|
|
102
124
|
};
|
|
125
|
+
export type RepositoryRequest2 = {
|
|
126
|
+
url?: string | null;
|
|
127
|
+
defaultBranch?: string | null;
|
|
128
|
+
};
|
|
103
129
|
export type PutApplicationRequest = {
|
|
104
130
|
/** Application name */
|
|
105
131
|
name?: string | null;
|
|
106
132
|
/** Repository */
|
|
107
|
-
repository?:
|
|
133
|
+
repository?: RepositoryRequest2 | null;
|
|
108
134
|
};
|
|
109
135
|
export type CreateModuleRequest = {
|
|
110
136
|
/** Module name */
|
|
@@ -196,6 +222,13 @@ export type ModuleResponse3 = {
|
|
|
196
222
|
id: string;
|
|
197
223
|
name: string;
|
|
198
224
|
};
|
|
225
|
+
export type ExecutionResponse3 = {
|
|
226
|
+
id: string;
|
|
227
|
+
startedAt: string | null;
|
|
228
|
+
completedAt: string | null;
|
|
229
|
+
status: string | null;
|
|
230
|
+
conclusion: string | null;
|
|
231
|
+
};
|
|
199
232
|
export type DependsOnResponse = {
|
|
200
233
|
sourceRef: string;
|
|
201
234
|
targetRef: string;
|
|
@@ -216,7 +249,7 @@ export type GetReportResponse = {
|
|
|
216
249
|
id: string;
|
|
217
250
|
applicationId: string;
|
|
218
251
|
"module": ModuleResponse3;
|
|
219
|
-
execution:
|
|
252
|
+
execution: ExecutionResponse3;
|
|
220
253
|
mode: string;
|
|
221
254
|
sourceBranch: string;
|
|
222
255
|
targetBranch?: string | null;
|
|
@@ -229,9 +262,9 @@ export type GetReportResponse = {
|
|
|
229
262
|
targetFiles: TargetFilesResponse[];
|
|
230
263
|
};
|
|
231
264
|
/**
|
|
232
|
-
* List Report
|
|
265
|
+
* List Application Report
|
|
233
266
|
*/
|
|
234
|
-
export function
|
|
267
|
+
export function listApplicationReportV1ApplicationsApplicationIdReportsGet({ applicationId, pageSize, page, lastEvaluatedKey, authorization }: {
|
|
235
268
|
applicationId: string;
|
|
236
269
|
pageSize?: number;
|
|
237
270
|
page?: number;
|
package/src/client/ai.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { last } from 'lodash'
|
|
|
3
3
|
import {
|
|
4
4
|
addFavoriteV1FavoritesPost,
|
|
5
5
|
conversationHistoryV1ConversationsConversationIdGet,
|
|
6
|
+
currentV1TokensUsageTotalGet,
|
|
6
7
|
defaults,
|
|
7
8
|
deleteConversationV1ConversationsConversationIdDelete,
|
|
8
9
|
deleteFavoriteV1FavoritesDelete,
|
|
@@ -63,6 +64,10 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
63
64
|
* Lists the AI Stacks according to their visibilities.
|
|
64
65
|
*/
|
|
65
66
|
aiStacks = this.query(removeAuthorizationParam(listAiStacksV1AiStacksGet))
|
|
67
|
+
/**
|
|
68
|
+
* Gets total tokens usage
|
|
69
|
+
*/
|
|
70
|
+
totalTokensUsage = this.query(removeAuthorizationParam(currentV1TokensUsageTotalGet))
|
|
66
71
|
/**
|
|
67
72
|
* Gets a workspace by its id.
|
|
68
73
|
*/
|
package/src/client/code-shift.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { defaults, createApplicationsBatchServiceV1ApplicationsBatchPost, create
|
|
|
10
10
|
getApplicationByIdServiceV1ApplicationsApplicationIdGet,
|
|
11
11
|
dispatchModuleServiceV1ModulesDispatchesPost,
|
|
12
12
|
getReportV1ReportsReportIdGet,
|
|
13
|
-
|
|
13
|
+
listApplicationReportV1ApplicationsApplicationIdReportsGet,
|
|
14
14
|
} from '../api/codeShift'
|
|
15
15
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
16
16
|
|
|
@@ -31,7 +31,7 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
31
31
|
modules = this.query(removeAuthorizationParam(listModulesServiceV1ModulesGet))
|
|
32
32
|
deleteImportedApp = this.mutation(removeAuthorizationParam(deleteApplicationServiceV1ApplicationsApplicationIdDelete))
|
|
33
33
|
generateReport = this.mutation(removeAuthorizationParam(dispatchModuleServiceV1ModulesDispatchesPost))
|
|
34
|
-
reports = this.query(removeAuthorizationParam(
|
|
34
|
+
reports = this.query(removeAuthorizationParam(listApplicationReportV1ApplicationsApplicationIdReportsGet))
|
|
35
35
|
report = this.query(removeAuthorizationParam(getReportV1ReportsReportIdGet))
|
|
36
36
|
}
|
|
37
37
|
|