@stack-spot/portal-network 0.156.0 → 0.156.1-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 +60 -1
- package/dist/api/codeShift.d.ts +101 -196
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +37 -94
- package/dist/api/codeShift.js.map +1 -1
- package/dist/client/agent-tools.d.ts +89 -3
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +133 -2
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +5 -50
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/agent.js +0 -64
- package/dist/client/agent.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 +25 -67
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +30 -73
- package/dist/client/code-shift.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 +10 -1
- package/dist/client/gen-ai-inference.js.map +1 -1
- package/dist/client/types.d.ts +5 -4
- package/dist/client/types.d.ts.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 +3 -0
- package/src/api/agent.ts +2 -0
- package/src/api/codeShift.ts +248 -481
- package/src/api/notification.ts +2 -0
- package/src/client/agent-tools.ts +102 -3
- package/src/client/agent.ts +0 -68
- package/src/client/ai.ts +6 -0
- package/src/client/code-shift.ts +19 -57
- package/src/client/gen-ai-inference.ts +6 -1
- package/src/client/types.ts +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.156.
|
|
3
|
+
## [0.156.1-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.156.0-beta.2...portal-network-beta@v0.156.1-beta.2) (2025-07-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* add sendAgentMessage ([#1198](https://github.com/stack-spot/portal-commons/issues/1198)) ([c16b103](https://github.com/stack-spot/portal-commons/commit/c16b1031155661a1ad957fb909d7c44c827137a9))
|
|
9
|
+
|
|
10
|
+
## [0.156.0-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.155.0-beta.2...portal-network-beta@v0.156.0-beta.2) (2025-07-11)
|
|
4
11
|
|
|
5
12
|
|
|
6
13
|
### Features
|
|
7
14
|
|
|
8
15
|
* 1530 refactor ks ([#1187](https://github.com/stack-spot/portal-commons/issues/1187)) ([b133ec8](https://github.com/stack-spot/portal-commons/commit/b133ec8a047623adf4db9d839017a551fae80029))
|
|
9
16
|
|
|
17
|
+
## [0.155.0-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.154.0-beta.2...portal-network-beta@v0.155.0-beta.2) (2025-07-11)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* accordion component beta ([#1191](https://github.com/stack-spot/portal-commons/issues/1191)) ([b49a388](https://github.com/stack-spot/portal-commons/commit/b49a388660523bab21abcdb17fc92341ffd40570))
|
|
23
|
+
* Add calculate condition ([#1170](https://github.com/stack-spot/portal-commons/issues/1170)) ([9a4557f](https://github.com/stack-spot/portal-commons/commit/9a4557f1a5d810649f6222c5181cd8c1e53c3d54))
|
|
24
|
+
* code shift validate scm url ([#1195](https://github.com/stack-spot/portal-commons/issues/1195)) ([53ecdd0](https://github.com/stack-spot/portal-commons/commit/53ecdd0805494cdb072c25f05f26303b7049e874))
|
|
25
|
+
* New account methods ([#1185](https://github.com/stack-spot/portal-commons/issues/1185)) ([2ada8ea](https://github.com/stack-spot/portal-commons/commit/2ada8eaaf1362bb90e43920d58d02be8cede93db))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* Improve naming ([#1188](https://github.com/stack-spot/portal-commons/issues/1188)) ([5beeb04](https://github.com/stack-spot/portal-commons/commit/5beeb040a4adc22ba38c1dfeaf866105e4236b9d))
|
|
31
|
+
|
|
10
32
|
## [0.155.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.154.1...portal-network@v0.155.0) (2025-07-10)
|
|
11
33
|
|
|
12
34
|
|
|
@@ -29,12 +51,49 @@
|
|
|
29
51
|
* New account methods ([#1185](https://github.com/stack-spot/portal-commons/issues/1185)) ([2ada8ea](https://github.com/stack-spot/portal-commons/commit/2ada8eaaf1362bb90e43920d58d02be8cede93db))
|
|
30
52
|
|
|
31
53
|
## [0.153.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.152.0...portal-network@v0.153.0) (2025-07-10)
|
|
54
|
+
## [0.154.0-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.153.0-beta.2...portal-network-beta@v0.154.0-beta.2) (2025-07-10)
|
|
32
55
|
|
|
33
56
|
|
|
34
57
|
### Features
|
|
35
58
|
|
|
36
59
|
* add new requests in data integration api ([#1180](https://github.com/stack-spot/portal-commons/issues/1180)) ([c72662b](https://github.com/stack-spot/portal-commons/commit/c72662bef9f71a6fa166838e669d79987428b026))
|
|
37
60
|
|
|
61
|
+
## [0.153.0-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.152.0-beta.2...portal-network-beta@v0.153.0-beta.2) (2025-07-09)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Features
|
|
65
|
+
|
|
66
|
+
* code shift validate scm url ([#1181](https://github.com/stack-spot/portal-commons/issues/1181)) ([0286404](https://github.com/stack-spot/portal-commons/commit/0286404be9c40b273afde21fc096bd309159da22))
|
|
67
|
+
|
|
68
|
+
## [0.152.0-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.151.0-beta.2...portal-network-beta@v0.152.0-beta.2) (2025-07-08)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Features
|
|
72
|
+
|
|
73
|
+
* add new requests in workspace ai ([#1177](https://github.com/stack-spot/portal-commons/issues/1177)) ([02a1c3b](https://github.com/stack-spot/portal-commons/commit/02a1c3bec4dbbe012a558159dcc6df8137396ba9))
|
|
74
|
+
* add workflow error message ([#1150](https://github.com/stack-spot/portal-commons/issues/1150)) ([f6e71f8](https://github.com/stack-spot/portal-commons/commit/f6e71f825a6d97c9ef42673d1589d99cb49d2426))
|
|
75
|
+
* toolkit fork ([#1171](https://github.com/stack-spot/portal-commons/issues/1171)) ([73b8c4a](https://github.com/stack-spot/portal-commons/commit/73b8c4a382885fb396bc1d05e0c6bce69c1dbff0))
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Bug Fixes
|
|
79
|
+
|
|
80
|
+
* map cnt workflow errors ([#1165](https://github.com/stack-spot/portal-commons/issues/1165)) ([4409958](https://github.com/stack-spot/portal-commons/commit/4409958fbc4e7448a128f61ccdb9dcc8fc274c30))
|
|
81
|
+
* merge 'feat-beta-releases' into beta-releases ([cb9e293](https://github.com/stack-spot/portal-commons/commit/cb9e2936740e3b97d4724c092c6d114e80701319))
|
|
82
|
+
* publish Test ([#1160](https://github.com/stack-spot/portal-commons/issues/1160)) ([4507af5](https://github.com/stack-spot/portal-commons/commit/4507af5de59d6a5603d74965c75be67216e86c2b))
|
|
83
|
+
* test ([e974bb4](https://github.com/stack-spot/portal-commons/commit/e974bb47ee5333bcf1d25307a92b17f2c1e93a1a))
|
|
84
|
+
* test ([b8ccf50](https://github.com/stack-spot/portal-commons/commit/b8ccf507a4291abf19b83b0b4ca7b1a9893764d7))
|
|
85
|
+
* test ([#1134](https://github.com/stack-spot/portal-commons/issues/1134)) ([e58acb9](https://github.com/stack-spot/portal-commons/commit/e58acb90919f03e99debb0ae159385bd5aaa63d6))
|
|
86
|
+
* test ([#1135](https://github.com/stack-spot/portal-commons/issues/1135)) ([558c524](https://github.com/stack-spot/portal-commons/commit/558c5243e599031f6bee6160614fbae9ec715d5d))
|
|
87
|
+
* test ([#1157](https://github.com/stack-spot/portal-commons/issues/1157)) ([2c50106](https://github.com/stack-spot/portal-commons/commit/2c5010606c2b9c2b95091370bef895727b1c36ec))
|
|
88
|
+
* Test ([#1162](https://github.com/stack-spot/portal-commons/issues/1162)) ([94c553d](https://github.com/stack-spot/portal-commons/commit/94c553d41ec9c3a77d3c79292fc7552938c56080))
|
|
89
|
+
* teste ([01ab2f6](https://github.com/stack-spot/portal-commons/commit/01ab2f6deb912cf19256bd874b33ebe266579c90))
|
|
90
|
+
* testing ([#1128](https://github.com/stack-spot/portal-commons/issues/1128)) ([54a3e1c](https://github.com/stack-spot/portal-commons/commit/54a3e1c49c787275646e0ac6238ae32b7338f592))
|
|
91
|
+
* Testing ([#1144](https://github.com/stack-spot/portal-commons/issues/1144)) ([7671400](https://github.com/stack-spot/portal-commons/commit/76714008d9ba587af41d46135e2819fc7b2b991a))
|
|
92
|
+
* testing ([#1146](https://github.com/stack-spot/portal-commons/issues/1146)) ([fd80eff](https://github.com/stack-spot/portal-commons/commit/fd80eff96a07182ead5ad8d5975796a558b97830))
|
|
93
|
+
* update 'main' into beta-release ([5205864](https://github.com/stack-spot/portal-commons/commit/5205864d2f7782035d640648c8a8554c01573936))
|
|
94
|
+
* update tools 'feat-1615-agent-migration' into beta-release ([d9c6b6f](https://github.com/stack-spot/portal-commons/commit/d9c6b6fccbdcaacaa5067b7e3f1251c7ffe8236a))
|
|
95
|
+
* update version ([#1179](https://github.com/stack-spot/portal-commons/issues/1179)) ([76e4408](https://github.com/stack-spot/portal-commons/commit/76e4408f5cfa084ab010e31f2a7cada104111d6c))
|
|
96
|
+
|
|
38
97
|
## [0.152.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.151.0...portal-network@v0.152.0) (2025-07-08)
|
|
39
98
|
|
|
40
99
|
|
package/dist/api/codeShift.d.ts
CHANGED
|
@@ -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;
|
|
@@ -161,12 +45,42 @@ export type CreateModuleRequest = {
|
|
|
161
45
|
/** Module studio */
|
|
162
46
|
studio: string;
|
|
163
47
|
};
|
|
48
|
+
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_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_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";
|
|
49
|
+
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";
|
|
50
|
+
export type InvalidPayloadDetails = {
|
|
51
|
+
code: BadRequestExceptionTypes | ExceptionType;
|
|
52
|
+
field: string | null;
|
|
53
|
+
message?: string | null;
|
|
54
|
+
};
|
|
55
|
+
export type SuggestedMessage = {
|
|
56
|
+
ptBr: string | null;
|
|
57
|
+
enUs: string | null;
|
|
58
|
+
};
|
|
59
|
+
export type InvalidPayloadDetailsRead = {
|
|
60
|
+
code: BadRequestExceptionTypes | ExceptionType;
|
|
61
|
+
field: string | null;
|
|
62
|
+
message?: string | null;
|
|
63
|
+
suggestedMessages: SuggestedMessage | null;
|
|
64
|
+
};
|
|
65
|
+
export type HttpErrorResponse = {
|
|
66
|
+
status: string;
|
|
67
|
+
code: ExceptionType;
|
|
68
|
+
details: string;
|
|
69
|
+
validationDetails?: InvalidPayloadDetails[] | null;
|
|
70
|
+
};
|
|
71
|
+
export type HttpErrorResponseRead = {
|
|
72
|
+
status: string;
|
|
73
|
+
code: ExceptionType;
|
|
74
|
+
details: string;
|
|
75
|
+
validationDetails?: InvalidPayloadDetailsRead[] | null;
|
|
76
|
+
suggestedMessages: SuggestedMessage | null;
|
|
77
|
+
};
|
|
164
78
|
export type InputResponse = {
|
|
165
79
|
name: string;
|
|
166
80
|
required: boolean;
|
|
167
81
|
"default": string;
|
|
168
82
|
};
|
|
169
|
-
export type
|
|
83
|
+
export type ModuleResponse = {
|
|
170
84
|
/** Module ID */
|
|
171
85
|
id: string;
|
|
172
86
|
/** Module type */
|
|
@@ -190,7 +104,7 @@ export type ModuleResponse2 = {
|
|
|
190
104
|
};
|
|
191
105
|
export type ListModuleResponse = {
|
|
192
106
|
/** List of modules */
|
|
193
|
-
items:
|
|
107
|
+
items: ModuleResponse[];
|
|
194
108
|
/** Number of modules */
|
|
195
109
|
itemsCount: number;
|
|
196
110
|
/** Last evaluated key */
|
|
@@ -254,19 +168,33 @@ export type PutReportRequest = {
|
|
|
254
168
|
issuesCount: number;
|
|
255
169
|
totalFilesCount?: number | null;
|
|
256
170
|
analyzedFilesCount?: number | null;
|
|
171
|
+
totalFilesChanged?: number | null;
|
|
257
172
|
pullRequestLink?: string | null;
|
|
258
173
|
commitHash?: string | null;
|
|
259
174
|
targetFiles: TargetFilesRequest[];
|
|
260
175
|
};
|
|
261
|
-
export type
|
|
176
|
+
export type ModuleResponse2 = {
|
|
262
177
|
id: string;
|
|
263
178
|
name: string;
|
|
264
179
|
};
|
|
265
|
-
export type
|
|
180
|
+
export type ApplicationResponse = {
|
|
266
181
|
id: string;
|
|
267
182
|
name: string;
|
|
268
183
|
url: string;
|
|
269
184
|
};
|
|
185
|
+
export type ExecutionResponse = {
|
|
186
|
+
id: string;
|
|
187
|
+
startedAt: string | null;
|
|
188
|
+
completedAt: string | null;
|
|
189
|
+
status: string | null;
|
|
190
|
+
conclusion: string | null;
|
|
191
|
+
};
|
|
192
|
+
export type UserResponse = {
|
|
193
|
+
id: string;
|
|
194
|
+
name: string;
|
|
195
|
+
email: string;
|
|
196
|
+
ip?: string | null;
|
|
197
|
+
};
|
|
270
198
|
export type ProgramGroupResponse = {
|
|
271
199
|
id: string;
|
|
272
200
|
name: string;
|
|
@@ -293,8 +221,8 @@ export type TargetFilesResponse = {
|
|
|
293
221
|
};
|
|
294
222
|
export type GetReportResponse = {
|
|
295
223
|
id: string;
|
|
296
|
-
"module":
|
|
297
|
-
application:
|
|
224
|
+
"module": ModuleResponse2 | null;
|
|
225
|
+
application: ApplicationResponse | null;
|
|
298
226
|
execution: ExecutionResponse | null;
|
|
299
227
|
mode: string;
|
|
300
228
|
sourceBranch: string | null;
|
|
@@ -304,6 +232,7 @@ export type GetReportResponse = {
|
|
|
304
232
|
updatedAt: string;
|
|
305
233
|
filesCount: number | null;
|
|
306
234
|
totalFilesCount: number | null;
|
|
235
|
+
totalFilesChanged: number | null;
|
|
307
236
|
analyzedFilesCount: number | null;
|
|
308
237
|
issuesFilesCount: number | null;
|
|
309
238
|
issuesCount: number | null;
|
|
@@ -313,6 +242,9 @@ export type GetReportResponse = {
|
|
|
313
242
|
targetFiles: TargetFilesResponse[];
|
|
314
243
|
errorLog?: string | null;
|
|
315
244
|
};
|
|
245
|
+
export type GetPullRequest = {
|
|
246
|
+
content: string;
|
|
247
|
+
};
|
|
316
248
|
export type SearchRepoScmResponse = {
|
|
317
249
|
id: string;
|
|
318
250
|
};
|
|
@@ -321,13 +253,13 @@ export type GetStatusSearchRepoScmResponse = {
|
|
|
321
253
|
status: SearchRepositoryStatus;
|
|
322
254
|
errorLog?: string | null;
|
|
323
255
|
};
|
|
324
|
-
export type
|
|
256
|
+
export type ModuleResponse3 = {
|
|
325
257
|
id: string;
|
|
326
258
|
name: string;
|
|
327
259
|
};
|
|
328
|
-
export type
|
|
260
|
+
export type ReportResponse = {
|
|
329
261
|
id: string;
|
|
330
|
-
"module":
|
|
262
|
+
"module": ModuleResponse3;
|
|
331
263
|
execution: ExecutionResponse | null;
|
|
332
264
|
mode: string;
|
|
333
265
|
sourceBranch: string;
|
|
@@ -342,7 +274,7 @@ export type ReportResponse3 = {
|
|
|
342
274
|
};
|
|
343
275
|
export type ListRepositoryReportResponse = {
|
|
344
276
|
/** List of reports */
|
|
345
|
-
items:
|
|
277
|
+
items: ReportResponse[];
|
|
346
278
|
/** Number of reports */
|
|
347
279
|
itemsCount: number;
|
|
348
280
|
/** Last evaluated key */
|
|
@@ -356,14 +288,14 @@ export type CreateRepositoryRequest = {
|
|
|
356
288
|
defaultBranch: string;
|
|
357
289
|
tags?: string[] | null;
|
|
358
290
|
};
|
|
359
|
-
export type
|
|
291
|
+
export type ReportResponse2 = {
|
|
360
292
|
id: string;
|
|
361
293
|
execution: ExecutionResponse | null;
|
|
362
294
|
mode: string;
|
|
363
295
|
moduleId: string;
|
|
364
296
|
sourceBranch: string;
|
|
365
297
|
targetBranch?: string | null;
|
|
366
|
-
createdBy: UserResponse;
|
|
298
|
+
createdBy: UserResponse | null;
|
|
367
299
|
createdAt: string;
|
|
368
300
|
updatedAt: string;
|
|
369
301
|
filesCount: number | null;
|
|
@@ -371,21 +303,21 @@ export type ReportResponse4 = {
|
|
|
371
303
|
pullRequestLink?: string | null;
|
|
372
304
|
errorLog?: string | null;
|
|
373
305
|
};
|
|
374
|
-
export type
|
|
306
|
+
export type RepositoryResponse = {
|
|
375
307
|
/** Repository ID */
|
|
376
308
|
id: string;
|
|
377
309
|
/** Repository creation date */
|
|
378
310
|
createdAt?: string | null;
|
|
379
311
|
/** Repository creation user */
|
|
380
312
|
createdBy?: string | null;
|
|
381
|
-
lastModuleReport:
|
|
313
|
+
lastModuleReport: ReportResponse2 | null;
|
|
382
314
|
tags: string[];
|
|
383
315
|
url: string;
|
|
384
316
|
defaultBranch: string;
|
|
385
317
|
};
|
|
386
318
|
export type ListRepositoryResponse = {
|
|
387
319
|
/** List of applications */
|
|
388
|
-
items:
|
|
320
|
+
items: RepositoryResponse[];
|
|
389
321
|
/** Number of applications */
|
|
390
322
|
itemsCount: number;
|
|
391
323
|
/** Last evaluated key */
|
|
@@ -396,6 +328,9 @@ export type PutRepositoryRequest = {
|
|
|
396
328
|
defaultBranch?: string | null;
|
|
397
329
|
tags?: string[] | null;
|
|
398
330
|
};
|
|
331
|
+
export type ValidateScmUrlRequest = {
|
|
332
|
+
url?: string | null;
|
|
333
|
+
};
|
|
399
334
|
export type GetAccountSettingsRequest = {
|
|
400
335
|
maxSimultaneousExecution: number | null;
|
|
401
336
|
};
|
|
@@ -440,7 +375,7 @@ export type BodyCreateProgramGroupServiceV1ProgramGroupsPost = {
|
|
|
440
375
|
export type CreateProgramGroupResponse = {
|
|
441
376
|
id: string;
|
|
442
377
|
};
|
|
443
|
-
export type
|
|
378
|
+
export type ReportResponse3 = {
|
|
444
379
|
id: string;
|
|
445
380
|
execution: ExecutionResponse | null;
|
|
446
381
|
mode: string;
|
|
@@ -460,10 +395,10 @@ export type ProgramGroupResponse2 = {
|
|
|
460
395
|
tags: string[];
|
|
461
396
|
components: any[];
|
|
462
397
|
accountId: string;
|
|
463
|
-
createdBy: string;
|
|
398
|
+
createdBy: string | null;
|
|
464
399
|
createdAt: string;
|
|
465
400
|
updatedAt: string;
|
|
466
|
-
lastModuleReport:
|
|
401
|
+
lastModuleReport: ReportResponse3 | null;
|
|
467
402
|
};
|
|
468
403
|
export type ListProgramGroupResponse = {
|
|
469
404
|
items: ProgramGroupResponse2[];
|
|
@@ -483,13 +418,18 @@ export type ProgramGroupResponse3 = {
|
|
|
483
418
|
export type BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut = {
|
|
484
419
|
file?: Blob | null;
|
|
485
420
|
};
|
|
486
|
-
export type
|
|
421
|
+
export type PutProgramGroupComponentsRequest = {
|
|
422
|
+
appl_name: string;
|
|
423
|
+
component_type: string;
|
|
424
|
+
component: string;
|
|
425
|
+
};
|
|
426
|
+
export type ModuleResponse4 = {
|
|
487
427
|
id: string;
|
|
488
428
|
name: string;
|
|
489
429
|
};
|
|
490
|
-
export type
|
|
430
|
+
export type ReportResponse4 = {
|
|
491
431
|
id: string;
|
|
492
|
-
"module":
|
|
432
|
+
"module": ModuleResponse4;
|
|
493
433
|
execution: ExecutionResponse | null;
|
|
494
434
|
mode: string;
|
|
495
435
|
createdBy: UserResponse;
|
|
@@ -502,7 +442,7 @@ export type ReportResponse6 = {
|
|
|
502
442
|
};
|
|
503
443
|
export type ListProgramGroupReportResponse = {
|
|
504
444
|
/** List of reports */
|
|
505
|
-
items:
|
|
445
|
+
items: ReportResponse4[];
|
|
506
446
|
/** Number of reports */
|
|
507
447
|
itemsCount: number;
|
|
508
448
|
};
|
|
@@ -520,63 +460,6 @@ export declare function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
|
|
|
520
460
|
role: CodeShiftRole;
|
|
521
461
|
authorization: string;
|
|
522
462
|
}, 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
463
|
/**
|
|
581
464
|
* Create Module Service
|
|
582
465
|
*/
|
|
@@ -635,6 +518,13 @@ export declare function getReportV1ReportsReportIdGet({ reportId, authorization
|
|
|
635
518
|
reportId: string;
|
|
636
519
|
authorization: string;
|
|
637
520
|
}, opts?: Oazapfts.RequestOpts): Promise<GetReportResponse>;
|
|
521
|
+
/**
|
|
522
|
+
* Get Report Pull Request Content
|
|
523
|
+
*/
|
|
524
|
+
export declare function getReportPullRequestContentV1ReportsReportIdPullRequestGet({ reportId, authorization }: {
|
|
525
|
+
reportId: string;
|
|
526
|
+
authorization: string;
|
|
527
|
+
}, opts?: Oazapfts.RequestOpts): Promise<GetPullRequest>;
|
|
638
528
|
/**
|
|
639
529
|
* Download Report
|
|
640
530
|
*/
|
|
@@ -712,7 +602,7 @@ export declare function listRepositoryServiceV1ReposGet({ pageSize, page, lastEv
|
|
|
712
602
|
export declare function getRepositoryByIdServiceV1ReposRepositoryIdGet({ repositoryId, authorization }: {
|
|
713
603
|
repositoryId: string;
|
|
714
604
|
authorization: string;
|
|
715
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
605
|
+
}, opts?: Oazapfts.RequestOpts): Promise<RepositoryResponse>;
|
|
716
606
|
/**
|
|
717
607
|
* Delete Repository Service
|
|
718
608
|
*/
|
|
@@ -728,6 +618,13 @@ export declare function updateRepositoryServiceV1ReposRepositoryIdPut({ reposito
|
|
|
728
618
|
authorization: string;
|
|
729
619
|
putRepositoryRequest: PutRepositoryRequest;
|
|
730
620
|
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
621
|
+
/**
|
|
622
|
+
* Validate Scm Url Service
|
|
623
|
+
*/
|
|
624
|
+
export declare function validateScmUrlServiceV1ReposValidateScmUrlPost({ authorization, validateScmUrlRequest }: {
|
|
625
|
+
authorization: string;
|
|
626
|
+
validateScmUrlRequest: ValidateScmUrlRequest;
|
|
627
|
+
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
731
628
|
/**
|
|
732
629
|
* Get Account Settings
|
|
733
630
|
*/
|
|
@@ -830,6 +727,14 @@ export declare function deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDe
|
|
|
830
727
|
programGroupId: string;
|
|
831
728
|
authorization: string;
|
|
832
729
|
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
730
|
+
/**
|
|
731
|
+
* Update Program Group Components Service
|
|
732
|
+
*/
|
|
733
|
+
export declare function updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut({ programGroupId, authorization, body }: {
|
|
734
|
+
programGroupId: string;
|
|
735
|
+
authorization: string;
|
|
736
|
+
body: PutProgramGroupComponentsRequest[];
|
|
737
|
+
}, opts?: Oazapfts.RequestOpts): Promise<any>;
|
|
833
738
|
/**
|
|
834
739
|
* List Program Group Report Service
|
|
835
740
|
*/
|