@stack-spot/portal-network 0.160.1 → 0.161.0-beta.2
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 +165 -0
- package/dist/api/agent-tools.d.ts +71 -5
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +88 -6
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/ai.d.ts +4 -0
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js.map +1 -1
- package/dist/api/codeShift.d.ts +372 -207
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +200 -95
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/content.d.ts +140 -308
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +79 -217
- package/dist/api/content.js.map +1 -1
- package/dist/api-addresses.d.ts +30 -0
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/api-addresses.js +57 -3
- package/dist/api-addresses.js.map +1 -1
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +2 -2
- package/dist/client/account.js.map +1 -1
- package/dist/client/agent-tools.d.ts +14 -2
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +5 -5
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +1 -0
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/agent.js +3 -2
- package/dist/client/agent.js.map +1 -1
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +2 -2
- package/dist/client/ai.js.map +1 -1
- package/dist/client/api-management.d.ts.map +1 -1
- package/dist/client/api-management.js +2 -2
- package/dist/client/api-management.js.map +1 -1
- package/dist/client/cloud-account.d.ts.map +1 -1
- package/dist/client/cloud-account.js +2 -2
- package/dist/client/cloud-account.js.map +1 -1
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +2 -2
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +2 -2
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/cloud-runtimes.d.ts.map +1 -1
- package/dist/client/cloud-runtimes.js +2 -2
- package/dist/client/cloud-runtimes.js.map +1 -1
- package/dist/client/cloud-services.d.ts.map +1 -1
- package/dist/client/cloud-services.js +2 -2
- package/dist/client/cloud-services.js.map +1 -1
- package/dist/client/code-shift.d.ts +122 -67
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +140 -75
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/content.d.ts +10 -4
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +12 -3
- package/dist/client/content.js.map +1 -1
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +2 -2
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discovery.d.ts.map +1 -1
- package/dist/client/discovery.js +2 -2
- package/dist/client/discovery.js.map +1 -1
- package/dist/client/event-bus.d.ts.map +1 -1
- package/dist/client/event-bus.js +2 -2
- package/dist/client/event-bus.js.map +1 -1
- package/dist/client/gen-ai-inference.d.ts +9 -0
- package/dist/client/gen-ai-inference.d.ts.map +1 -1
- package/dist/client/gen-ai-inference.js +12 -3
- package/dist/client/gen-ai-inference.js.map +1 -1
- package/dist/client/insights.d.ts.map +1 -1
- package/dist/client/insights.js +2 -2
- package/dist/client/insights.js.map +1 -1
- package/dist/client/notification.d.ts.map +1 -1
- package/dist/client/notification.js +2 -2
- package/dist/client/notification.js.map +1 -1
- package/dist/client/runtime-manager.d.ts.map +1 -1
- package/dist/client/runtime-manager.js +2 -2
- package/dist/client/runtime-manager.js.map +1 -1
- package/dist/client/secrets.d.ts.map +1 -1
- package/dist/client/secrets.js +2 -2
- package/dist/client/secrets.js.map +1 -1
- package/dist/client/workflow.d.ts.map +1 -1
- package/dist/client/workflow.js +2 -2
- package/dist/client/workflow.js.map +1 -1
- package/dist/client/workspace-ai.d.ts +1 -4
- package/dist/client/workspace-ai.d.ts.map +1 -1
- package/dist/client/workspace-ai.js +2 -2
- package/dist/client/workspace-ai.js.map +1 -1
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +2 -2
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/client/workspace-search.d.ts.map +1 -1
- package/dist/client/workspace-search.js +2 -2
- package/dist/client/workspace-search.js.map +1 -1
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/client/workspace.js +2 -2
- package/dist/client/workspace.js.map +1 -1
- package/dist/error/DefaultAPIError.d.ts +1 -1
- package/dist/error/DefaultAPIError.d.ts.map +1 -1
- package/dist/error/DefaultAPIError.js +27 -12
- package/dist/error/DefaultAPIError.js.map +1 -1
- package/dist/error/types.d.ts +19 -0
- package/dist/error/types.d.ts.map +1 -0
- package/dist/error/types.js +2 -0
- package/dist/error/types.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/network/NetworkClient.d.ts +6 -0
- package/dist/network/NetworkClient.d.ts.map +1 -1
- package/dist/network/NetworkClient.js +10 -1
- package/dist/network/NetworkClient.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 +173 -11
- package/src/api/agent.ts +2 -0
- package/src/api/ai.ts +4 -0
- package/src/api/codeShift.ts +918 -537
- package/src/api/content.ts +343 -795
- package/src/api/notification.ts +2 -0
- package/src/api-addresses.ts +75 -5
- package/src/client/account.ts +2 -2
- package/src/client/agent-tools.ts +5 -5
- package/src/client/agent.ts +4 -2
- package/src/client/ai.ts +3 -2
- package/src/client/api-management.ts +2 -2
- package/src/client/cloud-account.ts +2 -2
- package/src/client/cloud-platform-horizon.ts +2 -2
- package/src/client/cloud-platform.ts +2 -2
- package/src/client/cloud-runtimes.ts +2 -2
- package/src/client/cloud-services.ts +2 -2
- package/src/client/code-shift.ts +95 -58
- package/src/client/content.ts +7 -2
- package/src/client/data-integration.ts +2 -2
- package/src/client/discovery.ts +2 -2
- package/src/client/event-bus.ts +2 -2
- package/src/client/gen-ai-inference.ts +8 -3
- package/src/client/insights.ts +2 -2
- package/src/client/notification.ts +2 -2
- package/src/client/runtime-manager.ts +2 -2
- package/src/client/secrets.ts +2 -2
- package/src/client/workflow.ts +2 -2
- package/src/client/workspace-ai.ts +2 -2
- package/src/client/workspace-manager.ts +2 -2
- package/src/client/workspace-search.ts +2 -2
- package/src/client/workspace.ts +2 -2
- package/src/error/DefaultAPIError.ts +35 -12
- package/src/error/types.ts +21 -0
- package/src/index.ts +1 -1
- package/src/network/NetworkClient.ts +11 -1
package/dist/api/codeShift.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import * as Oazapfts from "@oazapfts/runtime";
|
|
8
8
|
export declare const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders>;
|
|
9
9
|
export declare const servers: {};
|
|
10
|
-
export type CodeShiftRole = "list-applications" | "create-application" | "list-repository" | "create-repository" | "delete-repository" | "dispatch-module" | "create-module" | "account-settings" | "list-integration" | "create-integration" | "delete-integration" | "list-program-group" | "create-program-group" | "delete-program-group";
|
|
10
|
+
export type CodeShiftRole = "list-applications" | "create-application" | "list-repository" | "create-repository" | "delete-repository" | "dispatch-module" | "create-module" | "account-settings" | "list-integration" | "create-integration" | "delete-integration" | "list-program-group" | "create-program-group" | "delete-program-group" | "view-analytics";
|
|
11
11
|
export type RolesResponse = {
|
|
12
12
|
result: boolean;
|
|
13
13
|
};
|
|
@@ -19,122 +19,6 @@ export type ValidationError = {
|
|
|
19
19
|
export type HttpValidationError = {
|
|
20
20
|
detail?: ValidationError[];
|
|
21
21
|
};
|
|
22
|
-
export type ModuleResponse = {
|
|
23
|
-
id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
};
|
|
26
|
-
export type ExecutionResponse = {
|
|
27
|
-
id: string;
|
|
28
|
-
startedAt: string | null;
|
|
29
|
-
completedAt: string | null;
|
|
30
|
-
status: string | null;
|
|
31
|
-
conclusion: string | null;
|
|
32
|
-
};
|
|
33
|
-
export type UserResponse = {
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
email: string;
|
|
37
|
-
ip?: string | null;
|
|
38
|
-
};
|
|
39
|
-
export type ReportResponse = {
|
|
40
|
-
id: string;
|
|
41
|
-
"module": ModuleResponse | null;
|
|
42
|
-
execution: ExecutionResponse | null;
|
|
43
|
-
mode: string;
|
|
44
|
-
sourceBranch: string;
|
|
45
|
-
targetBranch?: string | null;
|
|
46
|
-
createdBy: UserResponse;
|
|
47
|
-
createdAt: string;
|
|
48
|
-
updatedAt: string;
|
|
49
|
-
filesCount: number | null;
|
|
50
|
-
issuesCount: number | null;
|
|
51
|
-
pullRequestLink?: string | null;
|
|
52
|
-
errorLog?: string | null;
|
|
53
|
-
};
|
|
54
|
-
export type ListApplicationReportResponse = {
|
|
55
|
-
/** List of reports */
|
|
56
|
-
items: ReportResponse[];
|
|
57
|
-
/** Number of reports */
|
|
58
|
-
itemsCount: number;
|
|
59
|
-
/** Last evaluated key */
|
|
60
|
-
lastEvaluatedKey: string | null;
|
|
61
|
-
};
|
|
62
|
-
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_0006_INVALID_REPO_URL" | "CODE_SHIFT_API_0007_FORBIDDEN" | "CODE_SHIFT_API_0008_DEFAULT_BRANCH" | "CODE_SHIFT_API_0009_INVALID_SPREADSHEET" | "CODE_SHIFT_API_3000_WORKFLOW_API_DISPATCH_FAILURE" | "CODE_SHIFT_API_3001_WORKFLOW_API_DISPATCH_FORBIDDEN" | "CODE_SHIFT_API_3009_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_4000_ACCOUNTS_API_PAT_FAILURE" | "CODE_SHIFT_API_4001_ACCOUNTS_API_PAT_FORBIDDEN" | "CODE_SHIFT_API_4002_ACCOUNTS_API_PAT_FORBIDDEN" | "CODE_SHIFT_API_4009_ACCOUNTS_API_PAT_PARSE_ERROR" | "CODE_SHIFT_API_6000_IAM_GENERATE_TOKEN_FAILURE" | "CODE_SHIFT_API_6000_IAM_INTROSPECT_TOKEN_FAILURE";
|
|
63
|
-
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";
|
|
64
|
-
export type InvalidPayloadDetails = {
|
|
65
|
-
code: BadRequestExceptionTypes | ExceptionType;
|
|
66
|
-
field: string | null;
|
|
67
|
-
message?: string | null;
|
|
68
|
-
};
|
|
69
|
-
export type HttpErrorResponse = {
|
|
70
|
-
status: string;
|
|
71
|
-
code: ExceptionType;
|
|
72
|
-
details: string;
|
|
73
|
-
validationDetails?: InvalidPayloadDetails[] | null;
|
|
74
|
-
};
|
|
75
|
-
export type BodyCreateApplicationsBatchServiceV1ApplicationsBatchPost = {
|
|
76
|
-
file: Blob;
|
|
77
|
-
};
|
|
78
|
-
export type RepositoryRequest = {
|
|
79
|
-
url: string;
|
|
80
|
-
defaultBranch: string;
|
|
81
|
-
};
|
|
82
|
-
export type CreateApplicationRequest = {
|
|
83
|
-
/** Application name */
|
|
84
|
-
name?: string | null;
|
|
85
|
-
/** Repository */
|
|
86
|
-
repository: RepositoryRequest;
|
|
87
|
-
};
|
|
88
|
-
export type RepositoryResponse = {
|
|
89
|
-
url: string;
|
|
90
|
-
defaultBranch: string;
|
|
91
|
-
};
|
|
92
|
-
export type ReportResponse2 = {
|
|
93
|
-
id: string;
|
|
94
|
-
execution: ExecutionResponse | null;
|
|
95
|
-
mode: string;
|
|
96
|
-
moduleId: string | null;
|
|
97
|
-
sourceBranch: string;
|
|
98
|
-
targetBranch?: string | null;
|
|
99
|
-
createdBy: UserResponse;
|
|
100
|
-
createdAt: string;
|
|
101
|
-
updatedAt: string;
|
|
102
|
-
filesCount: number | null;
|
|
103
|
-
issuesCount: number | null;
|
|
104
|
-
pullRequestLink?: string | null;
|
|
105
|
-
errorLog?: string | null;
|
|
106
|
-
};
|
|
107
|
-
export type ApplicationResponse = {
|
|
108
|
-
/** Application ID */
|
|
109
|
-
id: string;
|
|
110
|
-
/** Application name */
|
|
111
|
-
name: string;
|
|
112
|
-
/** Application creation date */
|
|
113
|
-
createdAt?: string | null;
|
|
114
|
-
/** Application creation user */
|
|
115
|
-
createdBy?: string | null;
|
|
116
|
-
/** Repository */
|
|
117
|
-
repository: RepositoryResponse | null;
|
|
118
|
-
lastModuleReport: ReportResponse2 | null;
|
|
119
|
-
};
|
|
120
|
-
export type ListApplicationResponse = {
|
|
121
|
-
/** List of applications */
|
|
122
|
-
items: ApplicationResponse[];
|
|
123
|
-
/** Number of applications */
|
|
124
|
-
itemsCount: number;
|
|
125
|
-
/** Last evaluated key */
|
|
126
|
-
lastEvaluatedKey: string | null;
|
|
127
|
-
};
|
|
128
|
-
export type RepositoryRequest2 = {
|
|
129
|
-
url?: string | null;
|
|
130
|
-
defaultBranch?: string | null;
|
|
131
|
-
};
|
|
132
|
-
export type PutApplicationRequest = {
|
|
133
|
-
/** Application name */
|
|
134
|
-
name?: string | null;
|
|
135
|
-
/** Repository */
|
|
136
|
-
repository?: RepositoryRequest2 | null;
|
|
137
|
-
};
|
|
138
22
|
export type ModuleType = "repository" | "program_group";
|
|
139
23
|
export type InputRequest = {
|
|
140
24
|
name: string;
|
|
@@ -160,13 +44,47 @@ export type CreateModuleRequest = {
|
|
|
160
44
|
inputs: InputRequest[];
|
|
161
45
|
/** Module studio */
|
|
162
46
|
studio: string;
|
|
47
|
+
/** Module studio */
|
|
48
|
+
constants?: {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
} | null;
|
|
51
|
+
};
|
|
52
|
+
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_0006_INVALID_REPO_URL" | "CODE_SHIFT_API_0007_FORBIDDEN" | "CODE_SHIFT_API_0008_DEFAULT_BRANCH" | "CODE_SHIFT_API_0009_INVALID_SPREADSHEET" | "CODE_SHIFT_API_0010_PR_LINK_NOT_EXISTS" | "CODE_SHIFT_API_0011_EMPTY_SPREADSHEET" | "CODE_SHIFT_API_0012_REPOSITORY_NOT_EXISTS_IN_SCM" | "CODE_SHIFT_API_0013_SCM_BRANCH_NOT_EXISTS_EXCEPTION" | "CODE_SHIFT_API_3000_WORKFLOW_API_DISPATCH_FAILURE" | "CODE_SHIFT_API_3001_WORKFLOW_API_DISPATCH_FORBIDDEN" | "CODE_SHIFT_API_3009_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_3100_SCM_GET_REPOSITORIES_FAILURE" | "CODE_SHIFT_API_3110_SCM_GET_PULL_REQUEST_FAILURE" | "CODE_SHIFT_API_3120_SCM_GET_BRANCHES_FAILURE" | "CODE_SHIFT_API_3130_SCM_GET_SCM_REPOSITORY_FETCH_FAILURE" | "CODE_SHIFT_API_3131_SCM_REPOSITORY_NOT_FOUND" | "CODE_SHIFT_API_3140_SCM_GET_BRANCH_FAILURE" | "CODE_SHIFT_API_3142_SCM_GET_BRANCHES_NOT_FOUND" | "CODE_SHIFT_API_4000_ACCOUNTS_API_PAT_FAILURE" | "CODE_SHIFT_API_4001_ACCOUNTS_API_PAT_FORBIDDEN" | "CODE_SHIFT_API_4002_ACCOUNTS_API_PAT_FORBIDDEN" | "CODE_SHIFT_API_4009_ACCOUNTS_API_PAT_PARSE_ERROR" | "CODE_SHIFT_API_6000_IAM_GENERATE_TOKEN_FAILURE" | "CODE_SHIFT_API_6000_IAM_INTROSPECT_TOKEN_FAILURE";
|
|
53
|
+
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";
|
|
54
|
+
export type InvalidPayloadDetails = {
|
|
55
|
+
code: BadRequestExceptionTypes | ExceptionType;
|
|
56
|
+
field: string | null;
|
|
57
|
+
message?: string | null;
|
|
58
|
+
};
|
|
59
|
+
export type SuggestedMessage = {
|
|
60
|
+
ptBr: string | null;
|
|
61
|
+
enUs: string | null;
|
|
62
|
+
};
|
|
63
|
+
export type InvalidPayloadDetailsRead = {
|
|
64
|
+
code: BadRequestExceptionTypes | ExceptionType;
|
|
65
|
+
field: string | null;
|
|
66
|
+
message?: string | null;
|
|
67
|
+
suggestedMessages: SuggestedMessage | null;
|
|
68
|
+
};
|
|
69
|
+
export type HttpErrorResponse = {
|
|
70
|
+
status: string;
|
|
71
|
+
code: ExceptionType;
|
|
72
|
+
details: string;
|
|
73
|
+
validationDetails?: InvalidPayloadDetails[] | null;
|
|
74
|
+
};
|
|
75
|
+
export type HttpErrorResponseRead = {
|
|
76
|
+
status: string;
|
|
77
|
+
code: ExceptionType;
|
|
78
|
+
details: string;
|
|
79
|
+
validationDetails?: InvalidPayloadDetailsRead[] | null;
|
|
80
|
+
suggestedMessages: SuggestedMessage | null;
|
|
163
81
|
};
|
|
164
82
|
export type InputResponse = {
|
|
165
83
|
name: string;
|
|
166
84
|
required: boolean;
|
|
167
85
|
"default": string;
|
|
168
86
|
};
|
|
169
|
-
export type
|
|
87
|
+
export type ModuleResponse = {
|
|
170
88
|
/** Module ID */
|
|
171
89
|
id: string;
|
|
172
90
|
/** Module type */
|
|
@@ -187,10 +105,14 @@ export type ModuleResponse2 = {
|
|
|
187
105
|
tags: string[];
|
|
188
106
|
/** Module inputs */
|
|
189
107
|
inputs: InputResponse[];
|
|
108
|
+
/** Module studio */
|
|
109
|
+
constants?: {
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
} | null;
|
|
190
112
|
};
|
|
191
113
|
export type ListModuleResponse = {
|
|
192
114
|
/** List of modules */
|
|
193
|
-
items:
|
|
115
|
+
items: ModuleResponse[];
|
|
194
116
|
/** Number of modules */
|
|
195
117
|
itemsCount: number;
|
|
196
118
|
/** Last evaluated key */
|
|
@@ -213,6 +135,10 @@ export type PutModuleRequest = {
|
|
|
213
135
|
tags?: string[] | null;
|
|
214
136
|
/** Inputs of module */
|
|
215
137
|
inputs?: InputRequest[] | null;
|
|
138
|
+
/** Module studio */
|
|
139
|
+
constants?: {
|
|
140
|
+
[key: string]: any;
|
|
141
|
+
} | null;
|
|
216
142
|
};
|
|
217
143
|
export type Mode = "scan" | "fix";
|
|
218
144
|
export type ModuleDispatchRequest = {
|
|
@@ -236,8 +162,8 @@ export type DependsOnRequest = {
|
|
|
236
162
|
description: string;
|
|
237
163
|
};
|
|
238
164
|
export type IssuesRequest = {
|
|
239
|
-
ref
|
|
240
|
-
line
|
|
165
|
+
ref?: string | null;
|
|
166
|
+
line?: number | null;
|
|
241
167
|
description: string;
|
|
242
168
|
severity?: string | null;
|
|
243
169
|
recommendation?: string | null;
|
|
@@ -246,27 +172,41 @@ export type TargetFilesRequest = {
|
|
|
246
172
|
fileName: string;
|
|
247
173
|
filePath: string;
|
|
248
174
|
details?: string | null;
|
|
249
|
-
dependsOn
|
|
250
|
-
issues
|
|
175
|
+
dependsOn?: DependsOnRequest[] | null;
|
|
176
|
+
issues?: IssuesRequest[] | null;
|
|
251
177
|
};
|
|
252
178
|
export type PutReportRequest = {
|
|
253
179
|
filesCount?: number;
|
|
254
180
|
issuesCount: number;
|
|
255
181
|
totalFilesCount?: number | null;
|
|
256
182
|
analyzedFilesCount?: number | null;
|
|
183
|
+
changedFilesCount?: number | null;
|
|
257
184
|
pullRequestLink?: string | null;
|
|
258
185
|
commitHash?: string | null;
|
|
259
186
|
targetFiles: TargetFilesRequest[];
|
|
260
187
|
};
|
|
261
|
-
export type
|
|
188
|
+
export type ModuleResponse2 = {
|
|
262
189
|
id: string;
|
|
263
190
|
name: string;
|
|
264
191
|
};
|
|
265
|
-
export type
|
|
192
|
+
export type ApplicationResponse = {
|
|
266
193
|
id: string;
|
|
267
194
|
name: string;
|
|
268
195
|
url: string;
|
|
269
196
|
};
|
|
197
|
+
export type ExecutionResponse = {
|
|
198
|
+
id: string;
|
|
199
|
+
startedAt: string | null;
|
|
200
|
+
completedAt: string | null;
|
|
201
|
+
status: string | null;
|
|
202
|
+
conclusion: string | null;
|
|
203
|
+
};
|
|
204
|
+
export type UserResponse = {
|
|
205
|
+
id: string;
|
|
206
|
+
name: string;
|
|
207
|
+
email: string;
|
|
208
|
+
ip?: string | null;
|
|
209
|
+
};
|
|
270
210
|
export type ProgramGroupResponse = {
|
|
271
211
|
id: string;
|
|
272
212
|
name: string;
|
|
@@ -277,8 +217,8 @@ export type DependsOnResponse = {
|
|
|
277
217
|
description: string;
|
|
278
218
|
};
|
|
279
219
|
export type IssuesResponse = {
|
|
280
|
-
ref
|
|
281
|
-
line
|
|
220
|
+
ref?: string | null;
|
|
221
|
+
line?: number | null;
|
|
282
222
|
description: string;
|
|
283
223
|
lineLink?: string | null;
|
|
284
224
|
severity?: string | null;
|
|
@@ -288,13 +228,23 @@ export type TargetFilesResponse = {
|
|
|
288
228
|
fileName: string;
|
|
289
229
|
filePath: string;
|
|
290
230
|
details?: string | null;
|
|
291
|
-
dependsOn
|
|
292
|
-
issues
|
|
231
|
+
dependsOn?: DependsOnResponse[] | null;
|
|
232
|
+
issues?: IssuesResponse[] | null;
|
|
233
|
+
};
|
|
234
|
+
export type ReportStatus = "waiting_dispatch" | "waiting_runner" | "dispatch_failure" | "in_progress" | "suspended" | "error" | "success" | "cancelled";
|
|
235
|
+
export type PullRequestResponse = {
|
|
236
|
+
state: string | null;
|
|
237
|
+
merged: boolean | null;
|
|
238
|
+
mergedBy: string | null;
|
|
239
|
+
mergedAt: string | null;
|
|
240
|
+
createdAt: string | null;
|
|
241
|
+
updatedAt: string | null;
|
|
242
|
+
lastSyncAt: string | null;
|
|
293
243
|
};
|
|
294
244
|
export type GetReportResponse = {
|
|
295
245
|
id: string;
|
|
296
|
-
"module":
|
|
297
|
-
application:
|
|
246
|
+
"module": ModuleResponse2 | null;
|
|
247
|
+
application: ApplicationResponse | null;
|
|
298
248
|
execution: ExecutionResponse | null;
|
|
299
249
|
mode: string;
|
|
300
250
|
sourceBranch: string | null;
|
|
@@ -304,6 +254,7 @@ export type GetReportResponse = {
|
|
|
304
254
|
updatedAt: string;
|
|
305
255
|
filesCount: number | null;
|
|
306
256
|
totalFilesCount: number | null;
|
|
257
|
+
changedFilesCount: number | null;
|
|
307
258
|
analyzedFilesCount: number | null;
|
|
308
259
|
issuesFilesCount: number | null;
|
|
309
260
|
issuesCount: number | null;
|
|
@@ -312,6 +263,14 @@ export type GetReportResponse = {
|
|
|
312
263
|
programGroup: ProgramGroupResponse | null;
|
|
313
264
|
targetFiles: TargetFilesResponse[];
|
|
314
265
|
errorLog?: string | null;
|
|
266
|
+
status: ReportStatus | null;
|
|
267
|
+
scmPullRequestData: PullRequestResponse | null;
|
|
268
|
+
};
|
|
269
|
+
export type GetPullRequest = {
|
|
270
|
+
content: string;
|
|
271
|
+
};
|
|
272
|
+
export type GetPullRequest = {
|
|
273
|
+
content: string;
|
|
315
274
|
};
|
|
316
275
|
export type SearchRepoScmResponse = {
|
|
317
276
|
id: string;
|
|
@@ -321,13 +280,13 @@ export type GetStatusSearchRepoScmResponse = {
|
|
|
321
280
|
status: SearchRepositoryStatus;
|
|
322
281
|
errorLog?: string | null;
|
|
323
282
|
};
|
|
324
|
-
export type
|
|
283
|
+
export type ModuleResponse3 = {
|
|
325
284
|
id: string;
|
|
326
285
|
name: string;
|
|
327
286
|
};
|
|
328
|
-
export type
|
|
287
|
+
export type ReportResponse = {
|
|
329
288
|
id: string;
|
|
330
|
-
"module":
|
|
289
|
+
"module": ModuleResponse3;
|
|
331
290
|
execution: ExecutionResponse | null;
|
|
332
291
|
mode: string;
|
|
333
292
|
sourceBranch: string;
|
|
@@ -339,10 +298,11 @@ export type ReportResponse3 = {
|
|
|
339
298
|
issuesCount: number | null;
|
|
340
299
|
pullRequestLink?: string | null;
|
|
341
300
|
errorLog?: string | null;
|
|
301
|
+
status: ReportStatus | null;
|
|
342
302
|
};
|
|
343
303
|
export type ListRepositoryReportResponse = {
|
|
344
304
|
/** List of reports */
|
|
345
|
-
items:
|
|
305
|
+
items: ReportResponse[];
|
|
346
306
|
/** Number of reports */
|
|
347
307
|
itemsCount: number;
|
|
348
308
|
/** Last evaluated key */
|
|
@@ -356,51 +316,75 @@ export type CreateRepositoryRequest = {
|
|
|
356
316
|
defaultBranch: string;
|
|
357
317
|
tags?: string[] | null;
|
|
358
318
|
};
|
|
359
|
-
export type
|
|
319
|
+
export type ReportResponse2 = {
|
|
360
320
|
id: string;
|
|
361
321
|
execution: ExecutionResponse | null;
|
|
362
322
|
mode: string;
|
|
363
323
|
moduleId: string;
|
|
364
324
|
sourceBranch: string;
|
|
365
325
|
targetBranch?: string | null;
|
|
366
|
-
createdBy: UserResponse;
|
|
326
|
+
createdBy: UserResponse | null;
|
|
367
327
|
createdAt: string;
|
|
368
328
|
updatedAt: string;
|
|
369
329
|
filesCount: number | null;
|
|
370
330
|
issuesCount: number | null;
|
|
371
331
|
pullRequestLink?: string | null;
|
|
372
332
|
errorLog?: string | null;
|
|
333
|
+
status: ReportStatus | null;
|
|
373
334
|
};
|
|
374
|
-
export type
|
|
335
|
+
export type RepositoryResponse = {
|
|
375
336
|
/** Repository ID */
|
|
376
337
|
id: string;
|
|
377
338
|
/** Repository creation date */
|
|
378
339
|
createdAt?: string | null;
|
|
379
340
|
/** Repository creation user */
|
|
380
341
|
createdBy?: string | null;
|
|
381
|
-
lastModuleReport:
|
|
342
|
+
lastModuleReport: ReportResponse2 | null;
|
|
382
343
|
tags: string[];
|
|
383
344
|
url: string;
|
|
384
345
|
defaultBranch: string;
|
|
385
346
|
};
|
|
386
347
|
export type ListRepositoryResponse = {
|
|
387
348
|
/** List of applications */
|
|
388
|
-
items:
|
|
349
|
+
items: RepositoryResponse[];
|
|
389
350
|
/** Number of applications */
|
|
390
351
|
itemsCount: number;
|
|
391
352
|
/** Last evaluated key */
|
|
392
353
|
lastEvaluatedKey?: string | null;
|
|
393
354
|
};
|
|
355
|
+
export type ListBranchesResponse = {
|
|
356
|
+
/** List of all branches */
|
|
357
|
+
branches: string[];
|
|
358
|
+
};
|
|
394
359
|
export type PutRepositoryRequest = {
|
|
395
360
|
url?: string | null;
|
|
396
361
|
defaultBranch?: string | null;
|
|
397
362
|
tags?: string[] | null;
|
|
398
363
|
};
|
|
364
|
+
export type ValidateScmUrlRequest = {
|
|
365
|
+
url?: string | null;
|
|
366
|
+
};
|
|
399
367
|
export type GetAccountSettingsRequest = {
|
|
400
368
|
maxSimultaneousExecution: number | null;
|
|
369
|
+
createRepositoryValidateBranch: boolean | null;
|
|
370
|
+
dispatchModuleValidateBranch: boolean | null;
|
|
371
|
+
createRepositoryUrlValidate?: boolean | null;
|
|
372
|
+
dispatchRepositoryUrlValidate?: boolean | null;
|
|
373
|
+
pullRequestSync: boolean | null;
|
|
374
|
+
pullRequestSyncMinHours: number | null;
|
|
375
|
+
pullRequestSyncMaxHours: number | null;
|
|
376
|
+
pullRequestSyncReprocessTime: number | null;
|
|
401
377
|
};
|
|
402
378
|
export type CreateAccountSettingsRequest = {
|
|
403
|
-
maxSimultaneousExecution
|
|
379
|
+
maxSimultaneousExecution?: number | null;
|
|
380
|
+
createRepositoryUrlValidate?: boolean | null;
|
|
381
|
+
dispatchRepositoryUrlValidate?: boolean | null;
|
|
382
|
+
pullRequestSync?: boolean | null;
|
|
383
|
+
createRepositoryValidateBranch?: boolean | null;
|
|
384
|
+
dispatchModuleValidateBranch?: boolean | null;
|
|
385
|
+
pullRequestSyncMinHours?: number | null;
|
|
386
|
+
pullRequestSyncMaxHours?: number | null;
|
|
387
|
+
pullRequestSyncReprocessTime?: number | null;
|
|
404
388
|
};
|
|
405
389
|
export type CreateIntegrationRequest = {
|
|
406
390
|
name: string;
|
|
@@ -440,7 +424,7 @@ export type BodyCreateProgramGroupServiceV1ProgramGroupsPost = {
|
|
|
440
424
|
export type CreateProgramGroupResponse = {
|
|
441
425
|
id: string;
|
|
442
426
|
};
|
|
443
|
-
export type
|
|
427
|
+
export type ReportResponse3 = {
|
|
444
428
|
id: string;
|
|
445
429
|
execution: ExecutionResponse | null;
|
|
446
430
|
mode: string;
|
|
@@ -452,6 +436,7 @@ export type ReportResponse5 = {
|
|
|
452
436
|
issuesCount: number | null;
|
|
453
437
|
pullRequestLink?: string | null;
|
|
454
438
|
errorLog?: string | null;
|
|
439
|
+
status: ReportStatus | null;
|
|
455
440
|
};
|
|
456
441
|
export type ProgramGroupResponse2 = {
|
|
457
442
|
id: string;
|
|
@@ -460,10 +445,10 @@ export type ProgramGroupResponse2 = {
|
|
|
460
445
|
tags: string[];
|
|
461
446
|
components: any[];
|
|
462
447
|
accountId: string;
|
|
463
|
-
createdBy: string;
|
|
448
|
+
createdBy: string | null;
|
|
464
449
|
createdAt: string;
|
|
465
450
|
updatedAt: string;
|
|
466
|
-
lastModuleReport:
|
|
451
|
+
lastModuleReport: ReportResponse3 | null;
|
|
467
452
|
};
|
|
468
453
|
export type ListProgramGroupResponse = {
|
|
469
454
|
items: ProgramGroupResponse2[];
|
|
@@ -483,13 +468,18 @@ export type ProgramGroupResponse3 = {
|
|
|
483
468
|
export type BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut = {
|
|
484
469
|
file?: Blob | null;
|
|
485
470
|
};
|
|
486
|
-
export type
|
|
471
|
+
export type PutProgramGroupComponentsRequest = {
|
|
472
|
+
appl_name: string;
|
|
473
|
+
component_type: string;
|
|
474
|
+
component: string;
|
|
475
|
+
};
|
|
476
|
+
export type ModuleResponse4 = {
|
|
487
477
|
id: string;
|
|
488
478
|
name: string;
|
|
489
479
|
};
|
|
490
|
-
export type
|
|
480
|
+
export type ReportResponse4 = {
|
|
491
481
|
id: string;
|
|
492
|
-
"module":
|
|
482
|
+
"module": ModuleResponse4;
|
|
493
483
|
execution: ExecutionResponse | null;
|
|
494
484
|
mode: string;
|
|
495
485
|
createdBy: UserResponse;
|
|
@@ -499,13 +489,126 @@ export type ReportResponse6 = {
|
|
|
499
489
|
issuesCount: number | null;
|
|
500
490
|
pullRequestLink?: string | null;
|
|
501
491
|
errorLog?: string | null;
|
|
492
|
+
status: ReportStatus | null;
|
|
502
493
|
};
|
|
503
494
|
export type ListProgramGroupReportResponse = {
|
|
504
495
|
/** List of reports */
|
|
505
|
-
items:
|
|
496
|
+
items: ReportResponse4[];
|
|
506
497
|
/** Number of reports */
|
|
507
498
|
itemsCount: number;
|
|
508
499
|
};
|
|
500
|
+
export type ReportsWithErrorsResponse = {
|
|
501
|
+
user_id?: string | null;
|
|
502
|
+
user_name?: string | null;
|
|
503
|
+
user_email?: string | null;
|
|
504
|
+
account_id?: string | null;
|
|
505
|
+
account_slug?: string | null;
|
|
506
|
+
error_log?: string | null;
|
|
507
|
+
count_errors?: number | null;
|
|
508
|
+
};
|
|
509
|
+
export type GeneralReportSuccessAndErrorsResponses = {
|
|
510
|
+
success_count?: number | null;
|
|
511
|
+
error_count?: number | null;
|
|
512
|
+
reports_with_errors?: ReportsWithErrorsResponse[];
|
|
513
|
+
};
|
|
514
|
+
export type RepositoryLastReportStatusResponse = {
|
|
515
|
+
repositoryUrl: string;
|
|
516
|
+
totalFiles: number | null;
|
|
517
|
+
totalFilesAnalyzed: number | null;
|
|
518
|
+
totalFilesIssues: number | null;
|
|
519
|
+
totalFilesChanged: number | null;
|
|
520
|
+
totalIssues: number | null;
|
|
521
|
+
};
|
|
522
|
+
export type AnalyticsRepositoryLastReportStatusResponse = {
|
|
523
|
+
totalFiles?: number;
|
|
524
|
+
totalFilesAnalyzed?: number;
|
|
525
|
+
totalFilesIssues?: number;
|
|
526
|
+
totalFilesChanged?: number;
|
|
527
|
+
totalIssues?: number;
|
|
528
|
+
items: RepositoryLastReportStatusResponse[];
|
|
529
|
+
totalItems?: number;
|
|
530
|
+
};
|
|
531
|
+
export type RepositoryUsageResponse = {
|
|
532
|
+
repository_url: string;
|
|
533
|
+
createdBy: string;
|
|
534
|
+
totalScan?: number;
|
|
535
|
+
totalScanSuccess?: number;
|
|
536
|
+
totalScanFailure?: number;
|
|
537
|
+
totalFix?: number;
|
|
538
|
+
totalFixSuccess?: number;
|
|
539
|
+
totalFixFailure?: number;
|
|
540
|
+
};
|
|
541
|
+
export type AnalyticsRepositoryUsageResponse = {
|
|
542
|
+
totalScan?: number;
|
|
543
|
+
totalScanSuccess?: number;
|
|
544
|
+
totalScanFailure?: number;
|
|
545
|
+
totalFix?: number;
|
|
546
|
+
totalFixSuccess?: number;
|
|
547
|
+
totalFixFailure?: number;
|
|
548
|
+
items: RepositoryUsageResponse[];
|
|
549
|
+
totalItems?: number;
|
|
550
|
+
};
|
|
551
|
+
export type ProgramGroupLastReportStatusResponse = {
|
|
552
|
+
repositoryUrl: string;
|
|
553
|
+
createdBy: string;
|
|
554
|
+
createdAt: string;
|
|
555
|
+
totalFiles?: number;
|
|
556
|
+
totalFilesAnalyzed?: number;
|
|
557
|
+
totalFilesIssues?: number;
|
|
558
|
+
totalFilesChanged?: number;
|
|
559
|
+
totalIssues?: number;
|
|
560
|
+
};
|
|
561
|
+
export type AnalyticsProgramGroupsLastReportStatusResponse = {
|
|
562
|
+
totalUsed?: number;
|
|
563
|
+
totalFiles?: number;
|
|
564
|
+
totalFilesAnalyzed?: number;
|
|
565
|
+
totalFilesIssues?: number;
|
|
566
|
+
totalFilesChanged?: number;
|
|
567
|
+
totalIssues?: number;
|
|
568
|
+
items: ProgramGroupLastReportStatusResponse[];
|
|
569
|
+
totalItems?: number;
|
|
570
|
+
};
|
|
571
|
+
export type ProgramGroupsUsageResponse = {
|
|
572
|
+
name: string;
|
|
573
|
+
createdBy: string;
|
|
574
|
+
totalRepos?: number;
|
|
575
|
+
totalScan?: number;
|
|
576
|
+
totalScanSuccess?: number;
|
|
577
|
+
totalScanFailure?: number;
|
|
578
|
+
totalFix?: number;
|
|
579
|
+
totalFixSuccess?: number;
|
|
580
|
+
totalFixFailure?: number;
|
|
581
|
+
};
|
|
582
|
+
export type AnalyticsProgramGroupsUsageResponse = {
|
|
583
|
+
totalScan?: number;
|
|
584
|
+
totalScanSuccess?: number;
|
|
585
|
+
totalScanFailure?: number;
|
|
586
|
+
totalFix?: number;
|
|
587
|
+
totalFixSuccess?: number;
|
|
588
|
+
totalFixFailure?: number;
|
|
589
|
+
items: ProgramGroupsUsageResponse[];
|
|
590
|
+
totalItems?: number;
|
|
591
|
+
};
|
|
592
|
+
export type UserUsageResponse = {
|
|
593
|
+
name: string;
|
|
594
|
+
email: string;
|
|
595
|
+
totalScan?: number;
|
|
596
|
+
totalScanSuccess?: number;
|
|
597
|
+
totalScanFailure?: number;
|
|
598
|
+
totalFix?: number;
|
|
599
|
+
totalFixSuccess?: number;
|
|
600
|
+
totalFixFailure?: number;
|
|
601
|
+
};
|
|
602
|
+
export type AnalyticsUserUsageResponse = {
|
|
603
|
+
totalScan?: number;
|
|
604
|
+
totalScanSuccess?: number;
|
|
605
|
+
totalScanFailure?: number;
|
|
606
|
+
totalFix?: number;
|
|
607
|
+
totalFixSuccess?: number;
|
|
608
|
+
totalFixFailure?: number;
|
|
609
|
+
items: UserUsageResponse[];
|
|
610
|
+
totalItems?: number;
|
|
611
|
+
};
|
|
509
612
|
export type TagResponse = {
|
|
510
613
|
name: string;
|
|
511
614
|
};
|
|
@@ -520,63 +623,6 @@ export declare function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
|
|
|
520
623
|
role: CodeShiftRole;
|
|
521
624
|
authorization: string;
|
|
522
625
|
}, opts?: Oazapfts.RequestOpts): Promise<RolesResponse>;
|
|
523
|
-
/**
|
|
524
|
-
* List Application Report
|
|
525
|
-
*/
|
|
526
|
-
export declare function listApplicationReportV1ApplicationsApplicationIdReportsGet({ applicationId, pageSize, page, lastEvaluatedKey, authorization }: {
|
|
527
|
-
applicationId: string;
|
|
528
|
-
pageSize?: number;
|
|
529
|
-
page?: number;
|
|
530
|
-
lastEvaluatedKey?: string;
|
|
531
|
-
authorization: string;
|
|
532
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ListApplicationReportResponse>;
|
|
533
|
-
/**
|
|
534
|
-
* Create Applications Batch Service
|
|
535
|
-
*/
|
|
536
|
-
export declare function createApplicationsBatchServiceV1ApplicationsBatchPost({ authorization, bodyCreateApplicationsBatchServiceV1ApplicationsBatchPost }: {
|
|
537
|
-
authorization: string;
|
|
538
|
-
bodyCreateApplicationsBatchServiceV1ApplicationsBatchPost: BodyCreateApplicationsBatchServiceV1ApplicationsBatchPost;
|
|
539
|
-
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
540
|
-
/**
|
|
541
|
-
* Create Application Service
|
|
542
|
-
*/
|
|
543
|
-
export declare function createApplicationServiceV1ApplicationsPost({ authorization, createApplicationRequest }: {
|
|
544
|
-
authorization: string;
|
|
545
|
-
createApplicationRequest: CreateApplicationRequest;
|
|
546
|
-
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
547
|
-
/**
|
|
548
|
-
* List Application Service
|
|
549
|
-
*/
|
|
550
|
-
export declare function listApplicationServiceV1ApplicationsGet({ pageSize, page, lastEvaluatedKey, filter, moduleId, authorization }: {
|
|
551
|
-
pageSize?: number;
|
|
552
|
-
page?: number;
|
|
553
|
-
lastEvaluatedKey?: string;
|
|
554
|
-
filter?: string;
|
|
555
|
-
moduleId?: string;
|
|
556
|
-
authorization: string;
|
|
557
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ListApplicationResponse>;
|
|
558
|
-
/**
|
|
559
|
-
* Get Application By Id Service
|
|
560
|
-
*/
|
|
561
|
-
export declare function getApplicationByIdServiceV1ApplicationsApplicationIdGet({ applicationId, authorization }: {
|
|
562
|
-
applicationId: string;
|
|
563
|
-
authorization: string;
|
|
564
|
-
}, opts?: Oazapfts.RequestOpts): Promise<ApplicationResponse>;
|
|
565
|
-
/**
|
|
566
|
-
* Delete Application Service
|
|
567
|
-
*/
|
|
568
|
-
export declare function deleteApplicationServiceV1ApplicationsApplicationIdDelete({ applicationId, authorization }: {
|
|
569
|
-
applicationId: string;
|
|
570
|
-
authorization: string;
|
|
571
|
-
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
572
|
-
/**
|
|
573
|
-
* Update Application Service
|
|
574
|
-
*/
|
|
575
|
-
export declare function updateApplicationServiceV1ApplicationsApplicationIdPut({ applicationId, authorization, putApplicationRequest }: {
|
|
576
|
-
applicationId: string;
|
|
577
|
-
authorization: string;
|
|
578
|
-
putApplicationRequest: PutApplicationRequest;
|
|
579
|
-
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
580
626
|
/**
|
|
581
627
|
* Create Module Service
|
|
582
628
|
*/
|
|
@@ -589,11 +635,12 @@ export declare function createModuleServiceV1ModulesPost({ authorization, xAccou
|
|
|
589
635
|
/**
|
|
590
636
|
* List Modules Service
|
|
591
637
|
*/
|
|
592
|
-
export declare function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, lastEvaluatedKey, authorization }: {
|
|
638
|
+
export declare function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, lastEvaluatedKey, xAccountSlug, authorization }: {
|
|
593
639
|
pageSize?: number;
|
|
594
640
|
moduleType?: ModuleType | null;
|
|
595
641
|
page?: number;
|
|
596
642
|
lastEvaluatedKey?: string;
|
|
643
|
+
xAccountSlug?: any;
|
|
597
644
|
authorization: string;
|
|
598
645
|
}, opts?: Oazapfts.RequestOpts): Promise<ListModuleResponse>;
|
|
599
646
|
/**
|
|
@@ -635,6 +682,13 @@ export declare function getReportV1ReportsReportIdGet({ reportId, authorization
|
|
|
635
682
|
reportId: string;
|
|
636
683
|
authorization: string;
|
|
637
684
|
}, opts?: Oazapfts.RequestOpts): Promise<GetReportResponse>;
|
|
685
|
+
/**
|
|
686
|
+
* Get Report Pull Request Content
|
|
687
|
+
*/
|
|
688
|
+
export declare function getReportPullRequestContentV1ReportsReportIdPullRequestGet({ reportId, authorization }: {
|
|
689
|
+
reportId: string;
|
|
690
|
+
authorization: string;
|
|
691
|
+
}, opts?: Oazapfts.RequestOpts): Promise<GetPullRequest>;
|
|
638
692
|
/**
|
|
639
693
|
* Download Report
|
|
640
694
|
*/
|
|
@@ -706,13 +760,20 @@ export declare function listRepositoryServiceV1ReposGet({ pageSize, page, lastEv
|
|
|
706
760
|
tags?: string[] | null;
|
|
707
761
|
authorization: string;
|
|
708
762
|
}, opts?: Oazapfts.RequestOpts): Promise<ListRepositoryResponse>;
|
|
763
|
+
/**
|
|
764
|
+
* List Branches Service
|
|
765
|
+
*/
|
|
766
|
+
export declare function listBranchesServiceV1ReposBranchesGet({ repositoryUrl, authorization }: {
|
|
767
|
+
repositoryUrl: string;
|
|
768
|
+
authorization: string;
|
|
769
|
+
}, opts?: Oazapfts.RequestOpts): Promise<ListBranchesResponse>;
|
|
709
770
|
/**
|
|
710
771
|
* Get Repository By Id Service
|
|
711
772
|
*/
|
|
712
773
|
export declare function getRepositoryByIdServiceV1ReposRepositoryIdGet({ repositoryId, authorization }: {
|
|
713
774
|
repositoryId: string;
|
|
714
775
|
authorization: string;
|
|
715
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
776
|
+
}, opts?: Oazapfts.RequestOpts): Promise<RepositoryResponse>;
|
|
716
777
|
/**
|
|
717
778
|
* Delete Repository Service
|
|
718
779
|
*/
|
|
@@ -728,6 +789,13 @@ export declare function updateRepositoryServiceV1ReposRepositoryIdPut({ reposito
|
|
|
728
789
|
authorization: string;
|
|
729
790
|
putRepositoryRequest: PutRepositoryRequest;
|
|
730
791
|
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
792
|
+
/**
|
|
793
|
+
* Validate Scm Url Service
|
|
794
|
+
*/
|
|
795
|
+
export declare function validateScmUrlServiceV1ReposValidateScmUrlPost({ authorization, validateScmUrlRequest }: {
|
|
796
|
+
authorization: string;
|
|
797
|
+
validateScmUrlRequest: ValidateScmUrlRequest;
|
|
798
|
+
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
731
799
|
/**
|
|
732
800
|
* Get Account Settings
|
|
733
801
|
*/
|
|
@@ -830,6 +898,14 @@ export declare function deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDe
|
|
|
830
898
|
programGroupId: string;
|
|
831
899
|
authorization: string;
|
|
832
900
|
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
901
|
+
/**
|
|
902
|
+
* Update Program Group Components Service
|
|
903
|
+
*/
|
|
904
|
+
export declare function updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut({ programGroupId, authorization, body }: {
|
|
905
|
+
programGroupId: string;
|
|
906
|
+
authorization: string;
|
|
907
|
+
body: PutProgramGroupComponentsRequest[];
|
|
908
|
+
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
833
909
|
/**
|
|
834
910
|
* List Program Group Report Service
|
|
835
911
|
*/
|
|
@@ -840,6 +916,95 @@ export declare function listProgramGroupReportServiceV1ProgramGroupsProgramGroup
|
|
|
840
916
|
lastEvaluatedKey?: string;
|
|
841
917
|
authorization: string;
|
|
842
918
|
}, opts?: Oazapfts.RequestOpts): Promise<ListProgramGroupReportResponse>;
|
|
919
|
+
/**
|
|
920
|
+
* General Report Success And Errors
|
|
921
|
+
*/
|
|
922
|
+
export declare function generalReportSuccessAndErrorsV1AnalyticsReportsGeneralSuccessAndErrorsGet({ startDate, endDate, authorization }: {
|
|
923
|
+
startDate?: string;
|
|
924
|
+
endDate?: string;
|
|
925
|
+
authorization: string;
|
|
926
|
+
}, opts?: Oazapfts.RequestOpts): Promise<GeneralReportSuccessAndErrorsResponses>;
|
|
927
|
+
/**
|
|
928
|
+
* Analytics Repository Last Report Status
|
|
929
|
+
*/
|
|
930
|
+
export declare function analyticsRepositoryLastReportStatusV1AnalyticsRepositoriesLastReportStatusGet({ pageSize, page, moduleId, orderBy, orderDirection, startDate, endDate, authorization }: {
|
|
931
|
+
pageSize?: number;
|
|
932
|
+
page?: number;
|
|
933
|
+
moduleId?: string | null;
|
|
934
|
+
orderBy?: ("repositoryUrl" | "totalFiles" | "totalFilesAnalyzed" | "totalFilesIssues" | "totalFilesChanged" | "totalIssues") | null;
|
|
935
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
936
|
+
startDate?: string;
|
|
937
|
+
endDate?: string;
|
|
938
|
+
authorization: string;
|
|
939
|
+
}, opts?: Oazapfts.RequestOpts): Promise<AnalyticsRepositoryLastReportStatusResponse>;
|
|
940
|
+
/**
|
|
941
|
+
* Analytics Repository Last Report Status Download
|
|
942
|
+
*/
|
|
943
|
+
export declare function analyticsRepositoryLastReportStatusDownloadV1AnalyticsRepositoriesLastReportStatusDownloadGet({ moduleId, orderBy, orderDirection, startDate, endDate, extension, authorization }: {
|
|
944
|
+
moduleId?: string | null;
|
|
945
|
+
orderBy?: ("repositoryUrl" | "totalFiles" | "totalFilesAnalyzed" | "totalFilesIssues" | "totalFilesChanged" | "totalIssues") | null;
|
|
946
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
947
|
+
startDate?: string;
|
|
948
|
+
endDate?: string;
|
|
949
|
+
extension?: "csv" | "xlsx";
|
|
950
|
+
authorization: string;
|
|
951
|
+
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
952
|
+
/**
|
|
953
|
+
* Analytics Repository Usage
|
|
954
|
+
*/
|
|
955
|
+
export declare function analyticsRepositoryUsageV1AnalyticsRepositoriesUsageGet({ authorization }: {
|
|
956
|
+
authorization: string;
|
|
957
|
+
}, opts?: Oazapfts.RequestOpts): Promise<AnalyticsRepositoryUsageResponse>;
|
|
958
|
+
/**
|
|
959
|
+
* Analytics Program Groups Last Report Status
|
|
960
|
+
*/
|
|
961
|
+
export declare function analyticsProgramGroupsLastReportStatusV1AnalyticsProgramGroupsLastReportStatusGet({ authorization }: {
|
|
962
|
+
authorization: string;
|
|
963
|
+
}, opts?: Oazapfts.RequestOpts): Promise<AnalyticsProgramGroupsLastReportStatusResponse>;
|
|
964
|
+
/**
|
|
965
|
+
* Analytics Program Groups Usage
|
|
966
|
+
*/
|
|
967
|
+
export declare function analyticsProgramGroupsUsageV1AnalyticsProgramGroupsUsageGet({ authorization }: {
|
|
968
|
+
authorization: string;
|
|
969
|
+
}, opts?: Oazapfts.RequestOpts): Promise<AnalyticsProgramGroupsUsageResponse>;
|
|
970
|
+
/**
|
|
971
|
+
* Analytics User Usage
|
|
972
|
+
*/
|
|
973
|
+
export declare function analyticsUserUsageV1AnalyticsUsersUsageGet({ pageSize, page, moduleId, reportType, orderBy, orderDirection, startDate, endDate, authorization }: {
|
|
974
|
+
pageSize?: number;
|
|
975
|
+
page?: number;
|
|
976
|
+
moduleId?: string | null;
|
|
977
|
+
reportType?: ("repository" | "program_group") | null;
|
|
978
|
+
orderBy?: string | null;
|
|
979
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
980
|
+
startDate?: string;
|
|
981
|
+
endDate?: string;
|
|
982
|
+
authorization: string;
|
|
983
|
+
}, opts?: Oazapfts.RequestOpts): Promise<AnalyticsUserUsageResponse>;
|
|
984
|
+
/**
|
|
985
|
+
* Analytics User Usage Download
|
|
986
|
+
*/
|
|
987
|
+
export declare function analyticsUserUsageDownloadV1AnalyticsUsersUsageDownloadGet({ authorization }: {
|
|
988
|
+
authorization: string;
|
|
989
|
+
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
990
|
+
/**
|
|
991
|
+
* Analytics Repository Usage Download
|
|
992
|
+
*/
|
|
993
|
+
export declare function analyticsRepositoryUsageDownloadV1AnalyticsRepositoriesUsageDownloadGet({ authorization }: {
|
|
994
|
+
authorization: string;
|
|
995
|
+
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
996
|
+
/**
|
|
997
|
+
* Analytics Program Groups Last Report Status Download
|
|
998
|
+
*/
|
|
999
|
+
export declare function analyticsProgramGroupsLastReportStatusDownloadV1AnalyticsProgramGroupsLastReportStatusDownloadGet({ authorization }: {
|
|
1000
|
+
authorization: string;
|
|
1001
|
+
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
1002
|
+
/**
|
|
1003
|
+
* Analytics Program Groups Usage Download
|
|
1004
|
+
*/
|
|
1005
|
+
export declare function analyticsProgramGroupsUsageDownloadV1AnalyticsProgramGroupsUsageDownloadGet({ authorization }: {
|
|
1006
|
+
authorization: string;
|
|
1007
|
+
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
843
1008
|
/**
|
|
844
1009
|
* List Tags Service
|
|
845
1010
|
*/
|