@stack-spot/portal-network 0.156.1-beta.2 → 0.156.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 +7 -52
- package/dist/api/codeShift.d.ts +196 -101
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +94 -37
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/discovery.d.ts +222 -33
- package/dist/api/discovery.d.ts.map +1 -1
- package/dist/api/discovery.js +78 -27
- package/dist/api/discovery.js.map +1 -1
- package/dist/apis.json +1 -1
- package/dist/client/agent-tools.d.ts +3 -89
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +2 -133
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +50 -5
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/agent.js +64 -0
- package/dist/client/agent.js.map +1 -1
- package/dist/client/ai.d.ts +0 -7
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +1 -10
- package/dist/client/ai.js.map +1 -1
- package/dist/client/code-shift.d.ts +67 -25
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +73 -30
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/discovery.d.ts +6 -12
- package/dist/client/discovery.d.ts.map +1 -1
- package/dist/client/discovery.js +5 -14
- package/dist/client/discovery.js.map +1 -1
- package/dist/client/gen-ai-inference.d.ts +0 -9
- package/dist/client/gen-ai-inference.d.ts.map +1 -1
- package/dist/client/gen-ai-inference.js +1 -10
- package/dist/client/gen-ai-inference.js.map +1 -1
- package/dist/client/types.d.ts +4 -5
- package/dist/client/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/src/api/account.ts +0 -1
- package/src/api/agent-tools.ts +0 -3
- package/src/api/agent.ts +0 -2
- package/src/api/codeShift.ts +481 -248
- package/src/api/discovery.ts +309 -49
- package/src/api/notification.ts +0 -2
- package/src/apis.json +1 -1
- package/src/client/agent-tools.ts +3 -102
- package/src/client/agent.ts +68 -0
- package/src/client/ai.ts +0 -6
- package/src/client/code-shift.ts +57 -19
- package/src/client/discovery.ts +5 -9
- package/src/client/gen-ai-inference.ts +1 -6
- package/src/client/types.ts +5 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,33 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.156.
|
|
3
|
+
## [0.156.2](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.156.1...portal-network@v0.156.2) (2025-07-15)
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
### Bug Fixes
|
|
7
7
|
|
|
8
|
-
*
|
|
8
|
+
* update discover prd url ([#1218](https://github.com/stack-spot/portal-commons/issues/1218)) ([7b67606](https://github.com/stack-spot/portal-commons/commit/7b6760621ccbce2040387128d210c3a6ad7a36da))
|
|
9
9
|
|
|
10
|
-
## [0.156.
|
|
10
|
+
## [0.156.1](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.156.0...portal-network@v0.156.1) (2025-07-15)
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
###
|
|
13
|
+
### Bug Fixes
|
|
14
14
|
|
|
15
|
-
*
|
|
15
|
+
* changes in discover api ([#1215](https://github.com/stack-spot/portal-commons/issues/1215)) ([cb95a55](https://github.com/stack-spot/portal-commons/commit/cb95a550824854e268cce2b2a7e8adaf1b360e83))
|
|
16
16
|
|
|
17
|
-
## [0.
|
|
17
|
+
## [0.156.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.155.0...portal-network@v0.156.0) (2025-07-11)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
### Features
|
|
21
21
|
|
|
22
|
-
*
|
|
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))
|
|
22
|
+
* 1530 refactor ks ([#1187](https://github.com/stack-spot/portal-commons/issues/1187)) ([b133ec8](https://github.com/stack-spot/portal-commons/commit/b133ec8a047623adf4db9d839017a551fae80029))
|
|
31
23
|
|
|
32
24
|
## [0.155.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.154.1...portal-network@v0.155.0) (2025-07-10)
|
|
33
25
|
|
|
@@ -51,49 +43,12 @@
|
|
|
51
43
|
* New account methods ([#1185](https://github.com/stack-spot/portal-commons/issues/1185)) ([2ada8ea](https://github.com/stack-spot/portal-commons/commit/2ada8eaaf1362bb90e43920d58d02be8cede93db))
|
|
52
44
|
|
|
53
45
|
## [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)
|
|
55
46
|
|
|
56
47
|
|
|
57
48
|
### Features
|
|
58
49
|
|
|
59
50
|
* 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))
|
|
60
51
|
|
|
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
|
-
|
|
97
52
|
## [0.152.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.151.0...portal-network@v0.152.0) (2025-07-08)
|
|
98
53
|
|
|
99
54
|
|
package/dist/api/codeShift.d.ts
CHANGED
|
@@ -19,6 +19,122 @@ 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
|
+
};
|
|
22
138
|
export type ModuleType = "repository" | "program_group";
|
|
23
139
|
export type InputRequest = {
|
|
24
140
|
name: string;
|
|
@@ -45,42 +161,12 @@ export type CreateModuleRequest = {
|
|
|
45
161
|
/** Module studio */
|
|
46
162
|
studio: string;
|
|
47
163
|
};
|
|
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
|
-
};
|
|
78
164
|
export type InputResponse = {
|
|
79
165
|
name: string;
|
|
80
166
|
required: boolean;
|
|
81
167
|
"default": string;
|
|
82
168
|
};
|
|
83
|
-
export type
|
|
169
|
+
export type ModuleResponse2 = {
|
|
84
170
|
/** Module ID */
|
|
85
171
|
id: string;
|
|
86
172
|
/** Module type */
|
|
@@ -104,7 +190,7 @@ export type ModuleResponse = {
|
|
|
104
190
|
};
|
|
105
191
|
export type ListModuleResponse = {
|
|
106
192
|
/** List of modules */
|
|
107
|
-
items:
|
|
193
|
+
items: ModuleResponse2[];
|
|
108
194
|
/** Number of modules */
|
|
109
195
|
itemsCount: number;
|
|
110
196
|
/** Last evaluated key */
|
|
@@ -168,33 +254,19 @@ export type PutReportRequest = {
|
|
|
168
254
|
issuesCount: number;
|
|
169
255
|
totalFilesCount?: number | null;
|
|
170
256
|
analyzedFilesCount?: number | null;
|
|
171
|
-
totalFilesChanged?: number | null;
|
|
172
257
|
pullRequestLink?: string | null;
|
|
173
258
|
commitHash?: string | null;
|
|
174
259
|
targetFiles: TargetFilesRequest[];
|
|
175
260
|
};
|
|
176
|
-
export type
|
|
261
|
+
export type ModuleResponse3 = {
|
|
177
262
|
id: string;
|
|
178
263
|
name: string;
|
|
179
264
|
};
|
|
180
|
-
export type
|
|
265
|
+
export type ApplicationResponse2 = {
|
|
181
266
|
id: string;
|
|
182
267
|
name: string;
|
|
183
268
|
url: string;
|
|
184
269
|
};
|
|
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
|
-
};
|
|
198
270
|
export type ProgramGroupResponse = {
|
|
199
271
|
id: string;
|
|
200
272
|
name: string;
|
|
@@ -221,8 +293,8 @@ export type TargetFilesResponse = {
|
|
|
221
293
|
};
|
|
222
294
|
export type GetReportResponse = {
|
|
223
295
|
id: string;
|
|
224
|
-
"module":
|
|
225
|
-
application:
|
|
296
|
+
"module": ModuleResponse3 | null;
|
|
297
|
+
application: ApplicationResponse2 | null;
|
|
226
298
|
execution: ExecutionResponse | null;
|
|
227
299
|
mode: string;
|
|
228
300
|
sourceBranch: string | null;
|
|
@@ -232,7 +304,6 @@ export type GetReportResponse = {
|
|
|
232
304
|
updatedAt: string;
|
|
233
305
|
filesCount: number | null;
|
|
234
306
|
totalFilesCount: number | null;
|
|
235
|
-
totalFilesChanged: number | null;
|
|
236
307
|
analyzedFilesCount: number | null;
|
|
237
308
|
issuesFilesCount: number | null;
|
|
238
309
|
issuesCount: number | null;
|
|
@@ -242,9 +313,6 @@ export type GetReportResponse = {
|
|
|
242
313
|
targetFiles: TargetFilesResponse[];
|
|
243
314
|
errorLog?: string | null;
|
|
244
315
|
};
|
|
245
|
-
export type GetPullRequest = {
|
|
246
|
-
content: string;
|
|
247
|
-
};
|
|
248
316
|
export type SearchRepoScmResponse = {
|
|
249
317
|
id: string;
|
|
250
318
|
};
|
|
@@ -253,13 +321,13 @@ export type GetStatusSearchRepoScmResponse = {
|
|
|
253
321
|
status: SearchRepositoryStatus;
|
|
254
322
|
errorLog?: string | null;
|
|
255
323
|
};
|
|
256
|
-
export type
|
|
324
|
+
export type ModuleResponse4 = {
|
|
257
325
|
id: string;
|
|
258
326
|
name: string;
|
|
259
327
|
};
|
|
260
|
-
export type
|
|
328
|
+
export type ReportResponse3 = {
|
|
261
329
|
id: string;
|
|
262
|
-
"module":
|
|
330
|
+
"module": ModuleResponse4;
|
|
263
331
|
execution: ExecutionResponse | null;
|
|
264
332
|
mode: string;
|
|
265
333
|
sourceBranch: string;
|
|
@@ -274,7 +342,7 @@ export type ReportResponse = {
|
|
|
274
342
|
};
|
|
275
343
|
export type ListRepositoryReportResponse = {
|
|
276
344
|
/** List of reports */
|
|
277
|
-
items:
|
|
345
|
+
items: ReportResponse3[];
|
|
278
346
|
/** Number of reports */
|
|
279
347
|
itemsCount: number;
|
|
280
348
|
/** Last evaluated key */
|
|
@@ -288,14 +356,14 @@ export type CreateRepositoryRequest = {
|
|
|
288
356
|
defaultBranch: string;
|
|
289
357
|
tags?: string[] | null;
|
|
290
358
|
};
|
|
291
|
-
export type
|
|
359
|
+
export type ReportResponse4 = {
|
|
292
360
|
id: string;
|
|
293
361
|
execution: ExecutionResponse | null;
|
|
294
362
|
mode: string;
|
|
295
363
|
moduleId: string;
|
|
296
364
|
sourceBranch: string;
|
|
297
365
|
targetBranch?: string | null;
|
|
298
|
-
createdBy: UserResponse
|
|
366
|
+
createdBy: UserResponse;
|
|
299
367
|
createdAt: string;
|
|
300
368
|
updatedAt: string;
|
|
301
369
|
filesCount: number | null;
|
|
@@ -303,21 +371,21 @@ export type ReportResponse2 = {
|
|
|
303
371
|
pullRequestLink?: string | null;
|
|
304
372
|
errorLog?: string | null;
|
|
305
373
|
};
|
|
306
|
-
export type
|
|
374
|
+
export type RepositoryResponse2 = {
|
|
307
375
|
/** Repository ID */
|
|
308
376
|
id: string;
|
|
309
377
|
/** Repository creation date */
|
|
310
378
|
createdAt?: string | null;
|
|
311
379
|
/** Repository creation user */
|
|
312
380
|
createdBy?: string | null;
|
|
313
|
-
lastModuleReport:
|
|
381
|
+
lastModuleReport: ReportResponse4 | null;
|
|
314
382
|
tags: string[];
|
|
315
383
|
url: string;
|
|
316
384
|
defaultBranch: string;
|
|
317
385
|
};
|
|
318
386
|
export type ListRepositoryResponse = {
|
|
319
387
|
/** List of applications */
|
|
320
|
-
items:
|
|
388
|
+
items: RepositoryResponse2[];
|
|
321
389
|
/** Number of applications */
|
|
322
390
|
itemsCount: number;
|
|
323
391
|
/** Last evaluated key */
|
|
@@ -328,9 +396,6 @@ export type PutRepositoryRequest = {
|
|
|
328
396
|
defaultBranch?: string | null;
|
|
329
397
|
tags?: string[] | null;
|
|
330
398
|
};
|
|
331
|
-
export type ValidateScmUrlRequest = {
|
|
332
|
-
url?: string | null;
|
|
333
|
-
};
|
|
334
399
|
export type GetAccountSettingsRequest = {
|
|
335
400
|
maxSimultaneousExecution: number | null;
|
|
336
401
|
};
|
|
@@ -375,7 +440,7 @@ export type BodyCreateProgramGroupServiceV1ProgramGroupsPost = {
|
|
|
375
440
|
export type CreateProgramGroupResponse = {
|
|
376
441
|
id: string;
|
|
377
442
|
};
|
|
378
|
-
export type
|
|
443
|
+
export type ReportResponse5 = {
|
|
379
444
|
id: string;
|
|
380
445
|
execution: ExecutionResponse | null;
|
|
381
446
|
mode: string;
|
|
@@ -395,10 +460,10 @@ export type ProgramGroupResponse2 = {
|
|
|
395
460
|
tags: string[];
|
|
396
461
|
components: any[];
|
|
397
462
|
accountId: string;
|
|
398
|
-
createdBy: string
|
|
463
|
+
createdBy: string;
|
|
399
464
|
createdAt: string;
|
|
400
465
|
updatedAt: string;
|
|
401
|
-
lastModuleReport:
|
|
466
|
+
lastModuleReport: ReportResponse5 | null;
|
|
402
467
|
};
|
|
403
468
|
export type ListProgramGroupResponse = {
|
|
404
469
|
items: ProgramGroupResponse2[];
|
|
@@ -418,18 +483,13 @@ export type ProgramGroupResponse3 = {
|
|
|
418
483
|
export type BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut = {
|
|
419
484
|
file?: Blob | null;
|
|
420
485
|
};
|
|
421
|
-
export type
|
|
422
|
-
appl_name: string;
|
|
423
|
-
component_type: string;
|
|
424
|
-
component: string;
|
|
425
|
-
};
|
|
426
|
-
export type ModuleResponse4 = {
|
|
486
|
+
export type ModuleResponse5 = {
|
|
427
487
|
id: string;
|
|
428
488
|
name: string;
|
|
429
489
|
};
|
|
430
|
-
export type
|
|
490
|
+
export type ReportResponse6 = {
|
|
431
491
|
id: string;
|
|
432
|
-
"module":
|
|
492
|
+
"module": ModuleResponse5;
|
|
433
493
|
execution: ExecutionResponse | null;
|
|
434
494
|
mode: string;
|
|
435
495
|
createdBy: UserResponse;
|
|
@@ -442,7 +502,7 @@ export type ReportResponse4 = {
|
|
|
442
502
|
};
|
|
443
503
|
export type ListProgramGroupReportResponse = {
|
|
444
504
|
/** List of reports */
|
|
445
|
-
items:
|
|
505
|
+
items: ReportResponse6[];
|
|
446
506
|
/** Number of reports */
|
|
447
507
|
itemsCount: number;
|
|
448
508
|
};
|
|
@@ -460,6 +520,63 @@ export declare function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
|
|
|
460
520
|
role: CodeShiftRole;
|
|
461
521
|
authorization: string;
|
|
462
522
|
}, 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>;
|
|
463
580
|
/**
|
|
464
581
|
* Create Module Service
|
|
465
582
|
*/
|
|
@@ -518,13 +635,6 @@ export declare function getReportV1ReportsReportIdGet({ reportId, authorization
|
|
|
518
635
|
reportId: string;
|
|
519
636
|
authorization: string;
|
|
520
637
|
}, 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>;
|
|
528
638
|
/**
|
|
529
639
|
* Download Report
|
|
530
640
|
*/
|
|
@@ -602,7 +712,7 @@ export declare function listRepositoryServiceV1ReposGet({ pageSize, page, lastEv
|
|
|
602
712
|
export declare function getRepositoryByIdServiceV1ReposRepositoryIdGet({ repositoryId, authorization }: {
|
|
603
713
|
repositoryId: string;
|
|
604
714
|
authorization: string;
|
|
605
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
715
|
+
}, opts?: Oazapfts.RequestOpts): Promise<RepositoryResponse2>;
|
|
606
716
|
/**
|
|
607
717
|
* Delete Repository Service
|
|
608
718
|
*/
|
|
@@ -618,13 +728,6 @@ export declare function updateRepositoryServiceV1ReposRepositoryIdPut({ reposito
|
|
|
618
728
|
authorization: string;
|
|
619
729
|
putRepositoryRequest: PutRepositoryRequest;
|
|
620
730
|
}, 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>;
|
|
628
731
|
/**
|
|
629
732
|
* Get Account Settings
|
|
630
733
|
*/
|
|
@@ -727,14 +830,6 @@ export declare function deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDe
|
|
|
727
830
|
programGroupId: string;
|
|
728
831
|
authorization: string;
|
|
729
832
|
}, 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>;
|
|
738
833
|
/**
|
|
739
834
|
* List Program Group Report Service
|
|
740
835
|
*/
|