@stack-spot/portal-network 0.158.0-beta.2 → 0.159.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +6 -83
  2. package/dist/api/codeShift.d.ts +196 -110
  3. package/dist/api/codeShift.d.ts.map +1 -1
  4. package/dist/api/codeShift.js +94 -37
  5. package/dist/api/codeShift.js.map +1 -1
  6. package/dist/client/account.d.ts +7 -0
  7. package/dist/client/account.d.ts.map +1 -1
  8. package/dist/client/account.js +10 -1
  9. package/dist/client/account.js.map +1 -1
  10. package/dist/client/agent-tools.d.ts +3 -89
  11. package/dist/client/agent-tools.d.ts.map +1 -1
  12. package/dist/client/agent-tools.js +2 -133
  13. package/dist/client/agent-tools.js.map +1 -1
  14. package/dist/client/agent.d.ts +50 -5
  15. package/dist/client/agent.d.ts.map +1 -1
  16. package/dist/client/agent.js +64 -0
  17. package/dist/client/agent.js.map +1 -1
  18. package/dist/client/ai.d.ts +0 -7
  19. package/dist/client/ai.d.ts.map +1 -1
  20. package/dist/client/ai.js +1 -10
  21. package/dist/client/ai.js.map +1 -1
  22. package/dist/client/code-shift.d.ts +67 -25
  23. package/dist/client/code-shift.d.ts.map +1 -1
  24. package/dist/client/code-shift.js +73 -30
  25. package/dist/client/code-shift.js.map +1 -1
  26. package/dist/client/gen-ai-inference.d.ts +0 -9
  27. package/dist/client/gen-ai-inference.d.ts.map +1 -1
  28. package/dist/client/gen-ai-inference.js +1 -10
  29. package/dist/client/gen-ai-inference.js.map +1 -1
  30. package/dist/client/types.d.ts +4 -5
  31. package/dist/client/types.d.ts.map +1 -1
  32. package/dist/error/DefaultAPIError.d.ts +1 -1
  33. package/dist/error/DefaultAPIError.d.ts.map +1 -1
  34. package/dist/error/DefaultAPIError.js +0 -7
  35. package/dist/error/DefaultAPIError.js.map +1 -1
  36. package/package.json +1 -1
  37. package/readme.md +1 -1
  38. package/src/api/account.ts +0 -1
  39. package/src/api/agent-tools.ts +0 -3
  40. package/src/api/agent.ts +0 -2
  41. package/src/api/codeShift.ts +481 -257
  42. package/src/api/notification.ts +0 -2
  43. package/src/client/account.ts +10 -1
  44. package/src/client/agent-tools.ts +3 -102
  45. package/src/client/agent.ts +68 -0
  46. package/src/client/ai.ts +0 -6
  47. package/src/client/code-shift.ts +57 -19
  48. package/src/client/gen-ai-inference.ts +1 -6
  49. package/src/client/types.ts +5 -7
  50. package/src/error/DefaultAPIError.ts +1 -9
  51. package/dist/error/types.d.ts +0 -18
  52. package/dist/error/types.d.ts.map +0 -1
  53. package/dist/error/types.js +0 -2
  54. package/dist/error/types.js.map +0 -1
  55. package/src/error/types.ts +0 -20
package/CHANGELOG.md CHANGED
@@ -1,21 +1,19 @@
1
1
  # Changelog
2
2
 
3
- ## [0.158.0-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.157.2-beta.2...portal-network-beta@v0.158.0-beta.2) (2025-07-17)
3
+ ## [0.159.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.158.0...portal-network@v0.159.0) (2025-07-18)
4
4
 
5
5
 
6
6
  ### Features
7
7
 
8
- * add query in workspace manager ([#1232](https://github.com/stack-spot/portal-commons/issues/1232)) ([17c617f](https://github.com/stack-spot/portal-commons/commit/17c617fbde32035f4d2ed677ebcec55b1463a3d2))
9
- * workflow extensions ([#1234](https://github.com/stack-spot/portal-commons/issues/1234)) ([3b320ab](https://github.com/stack-spot/portal-commons/commit/3b320ab7ecff15c3af48625d1ba22396b36dcffc))
8
+ * Feat magic link for fido ([#1243](https://github.com/stack-spot/portal-commons/issues/1243)) ([01db6fc](https://github.com/stack-spot/portal-commons/commit/01db6fc16112e5d5718819f1bcb149442db98982))
10
9
 
10
+ ## [0.158.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.157.0...portal-network@v0.158.0) (2025-07-17)
11
11
 
12
- ### Bug Fixes
13
12
 
14
- * add suggested messages beta ([#1236](https://github.com/stack-spot/portal-commons/issues/1236)) ([8910f4f](https://github.com/stack-spot/portal-commons/commit/8910f4f3f5b33980241f977f975c060f6595887f))
15
- * handle optional suggestedMessages in createMessage function ([3049fee](https://github.com/stack-spot/portal-commons/commit/3049fee91717120f52bc3a3f91428ad47af1ebfe))
16
- * update discover prd url ([#1218](https://github.com/stack-spot/portal-commons/issues/1218)) ([7b67606](https://github.com/stack-spot/portal-commons/commit/7b6760621ccbce2040387128d210c3a6ad7a36da))
13
+ ### Features
14
+
15
+ * workflow extensions ([#1234](https://github.com/stack-spot/portal-commons/issues/1234)) ([3b320ab](https://github.com/stack-spot/portal-commons/commit/3b320ab7ecff15c3af48625d1ba22396b36dcffc))
17
16
 
18
- ## [0.157.2-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.157.1-beta.2...portal-network-beta@v0.157.2-beta.2) (2025-07-15)
19
17
  ## [0.157.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.156.2...portal-network@v0.157.0) (2025-07-16)
20
18
 
21
19
 
@@ -37,29 +35,6 @@
37
35
 
38
36
  * changes in discover api ([#1215](https://github.com/stack-spot/portal-commons/issues/1215)) ([cb95a55](https://github.com/stack-spot/portal-commons/commit/cb95a550824854e268cce2b2a7e8adaf1b360e83))
39
37
 
40
- ## [0.157.1-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.157.0-beta.2...portal-network-beta@v0.157.1-beta.2) (2025-07-14)
41
-
42
-
43
- ### Bug Fixes
44
-
45
- * Refactors report types and adds `ReportStatus` enum ([#1209](https://github.com/stack-spot/portal-commons/issues/1209)) ([7132382](https://github.com/stack-spot/portal-commons/commit/7132382a337d3f521153ad43e529764082b81b68))
46
-
47
- ## [0.157.0-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.156.1-beta.2...portal-network-beta@v0.157.0-beta.2) (2025-07-14)
48
-
49
-
50
- ### Features
51
-
52
- * add suggested messages beta ([#1204](https://github.com/stack-spot/portal-commons/issues/1204)) ([40b58f1](https://github.com/stack-spot/portal-commons/commit/40b58f1c0b1bd5c06d9365c8cb36ad3c53b5d114))
53
- * code shift validate scm url beta ([#1205](https://github.com/stack-spot/portal-commons/issues/1205)) ([bdf9984](https://github.com/stack-spot/portal-commons/commit/bdf9984d304f90197b734d4aba8eb12528a74e1d))
54
-
55
- ## [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)
56
-
57
-
58
- ### Bug Fixes
59
-
60
- * add sendAgentMessage ([#1198](https://github.com/stack-spot/portal-commons/issues/1198)) ([c16b103](https://github.com/stack-spot/portal-commons/commit/c16b1031155661a1ad957fb909d7c44c827137a9))
61
-
62
- ## [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)
63
38
  ## [0.156.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.155.0...portal-network@v0.156.0) (2025-07-11)
64
39
 
65
40
 
@@ -67,21 +42,6 @@
67
42
 
68
43
  * 1530 refactor ks ([#1187](https://github.com/stack-spot/portal-commons/issues/1187)) ([b133ec8](https://github.com/stack-spot/portal-commons/commit/b133ec8a047623adf4db9d839017a551fae80029))
69
44
 
70
- ## [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)
71
-
72
-
73
- ### Features
74
-
75
- * accordion component beta ([#1191](https://github.com/stack-spot/portal-commons/issues/1191)) ([b49a388](https://github.com/stack-spot/portal-commons/commit/b49a388660523bab21abcdb17fc92341ffd40570))
76
- * Add calculate condition ([#1170](https://github.com/stack-spot/portal-commons/issues/1170)) ([9a4557f](https://github.com/stack-spot/portal-commons/commit/9a4557f1a5d810649f6222c5181cd8c1e53c3d54))
77
- * 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))
78
- * New account methods ([#1185](https://github.com/stack-spot/portal-commons/issues/1185)) ([2ada8ea](https://github.com/stack-spot/portal-commons/commit/2ada8eaaf1362bb90e43920d58d02be8cede93db))
79
-
80
-
81
- ### Bug Fixes
82
-
83
- * Improve naming ([#1188](https://github.com/stack-spot/portal-commons/issues/1188)) ([5beeb04](https://github.com/stack-spot/portal-commons/commit/5beeb040a4adc22ba38c1dfeaf866105e4236b9d))
84
-
85
45
  ## [0.155.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.154.1...portal-network@v0.155.0) (2025-07-10)
86
46
 
87
47
 
@@ -104,49 +64,12 @@
104
64
  * New account methods ([#1185](https://github.com/stack-spot/portal-commons/issues/1185)) ([2ada8ea](https://github.com/stack-spot/portal-commons/commit/2ada8eaaf1362bb90e43920d58d02be8cede93db))
105
65
 
106
66
  ## [0.153.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.152.0...portal-network@v0.153.0) (2025-07-10)
107
- ## [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)
108
67
 
109
68
 
110
69
  ### Features
111
70
 
112
71
  * 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))
113
72
 
114
- ## [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)
115
-
116
-
117
- ### Features
118
-
119
- * 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))
120
-
121
- ## [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)
122
-
123
-
124
- ### Features
125
-
126
- * 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))
127
- * add workflow error message ([#1150](https://github.com/stack-spot/portal-commons/issues/1150)) ([f6e71f8](https://github.com/stack-spot/portal-commons/commit/f6e71f825a6d97c9ef42673d1589d99cb49d2426))
128
- * toolkit fork ([#1171](https://github.com/stack-spot/portal-commons/issues/1171)) ([73b8c4a](https://github.com/stack-spot/portal-commons/commit/73b8c4a382885fb396bc1d05e0c6bce69c1dbff0))
129
-
130
-
131
- ### Bug Fixes
132
-
133
- * map cnt workflow errors ([#1165](https://github.com/stack-spot/portal-commons/issues/1165)) ([4409958](https://github.com/stack-spot/portal-commons/commit/4409958fbc4e7448a128f61ccdb9dcc8fc274c30))
134
- * merge 'feat-beta-releases' into beta-releases ([cb9e293](https://github.com/stack-spot/portal-commons/commit/cb9e2936740e3b97d4724c092c6d114e80701319))
135
- * publish Test ([#1160](https://github.com/stack-spot/portal-commons/issues/1160)) ([4507af5](https://github.com/stack-spot/portal-commons/commit/4507af5de59d6a5603d74965c75be67216e86c2b))
136
- * test ([e974bb4](https://github.com/stack-spot/portal-commons/commit/e974bb47ee5333bcf1d25307a92b17f2c1e93a1a))
137
- * test ([b8ccf50](https://github.com/stack-spot/portal-commons/commit/b8ccf507a4291abf19b83b0b4ca7b1a9893764d7))
138
- * test ([#1134](https://github.com/stack-spot/portal-commons/issues/1134)) ([e58acb9](https://github.com/stack-spot/portal-commons/commit/e58acb90919f03e99debb0ae159385bd5aaa63d6))
139
- * test ([#1135](https://github.com/stack-spot/portal-commons/issues/1135)) ([558c524](https://github.com/stack-spot/portal-commons/commit/558c5243e599031f6bee6160614fbae9ec715d5d))
140
- * test ([#1157](https://github.com/stack-spot/portal-commons/issues/1157)) ([2c50106](https://github.com/stack-spot/portal-commons/commit/2c5010606c2b9c2b95091370bef895727b1c36ec))
141
- * Test ([#1162](https://github.com/stack-spot/portal-commons/issues/1162)) ([94c553d](https://github.com/stack-spot/portal-commons/commit/94c553d41ec9c3a77d3c79292fc7552938c56080))
142
- * teste ([01ab2f6](https://github.com/stack-spot/portal-commons/commit/01ab2f6deb912cf19256bd874b33ebe266579c90))
143
- * testing ([#1128](https://github.com/stack-spot/portal-commons/issues/1128)) ([54a3e1c](https://github.com/stack-spot/portal-commons/commit/54a3e1c49c787275646e0ac6238ae32b7338f592))
144
- * Testing ([#1144](https://github.com/stack-spot/portal-commons/issues/1144)) ([7671400](https://github.com/stack-spot/portal-commons/commit/76714008d9ba587af41d46135e2819fc7b2b991a))
145
- * testing ([#1146](https://github.com/stack-spot/portal-commons/issues/1146)) ([fd80eff](https://github.com/stack-spot/portal-commons/commit/fd80eff96a07182ead5ad8d5975796a558b97830))
146
- * update 'main' into beta-release ([5205864](https://github.com/stack-spot/portal-commons/commit/5205864d2f7782035d640648c8a8554c01573936))
147
- * update tools 'feat-1615-agent-migration' into beta-release ([d9c6b6f](https://github.com/stack-spot/portal-commons/commit/d9c6b6fccbdcaacaa5067b7e3f1251c7ffe8236a))
148
- * update version ([#1179](https://github.com/stack-spot/portal-commons/issues/1179)) ([76e4408](https://github.com/stack-spot/portal-commons/commit/76e4408f5cfa084ab010e31f2a7cada104111d6c))
149
-
150
73
  ## [0.152.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.151.0...portal-network@v0.152.0) (2025-07-08)
151
74
 
152
75
 
@@ -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 ModuleResponse = {
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: ModuleResponse[];
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
- changedFilesCount?: number | null;
172
257
  pullRequestLink?: string | null;
173
258
  commitHash?: string | null;
174
259
  targetFiles: TargetFilesRequest[];
175
260
  };
176
- export type ModuleResponse2 = {
261
+ export type ModuleResponse3 = {
177
262
  id: string;
178
263
  name: string;
179
264
  };
180
- export type ApplicationResponse = {
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;
@@ -219,11 +291,10 @@ export type TargetFilesResponse = {
219
291
  dependsOn: DependsOnResponse[];
220
292
  issues: IssuesResponse[];
221
293
  };
222
- export type ReportStatus = "waiting_dispatch" | "waiting_runner" | "dispatch_failure" | "in_progress" | "suspended" | "error" | "success" | "cancelled" | "timed_out";
223
294
  export type GetReportResponse = {
224
295
  id: string;
225
- "module": ModuleResponse2 | null;
226
- application: ApplicationResponse | null;
296
+ "module": ModuleResponse3 | null;
297
+ application: ApplicationResponse2 | null;
227
298
  execution: ExecutionResponse | null;
228
299
  mode: string;
229
300
  sourceBranch: string | null;
@@ -233,7 +304,6 @@ export type GetReportResponse = {
233
304
  updatedAt: string;
234
305
  filesCount: number | null;
235
306
  totalFilesCount: number | null;
236
- changedFilesCount: number | null;
237
307
  analyzedFilesCount: number | null;
238
308
  issuesFilesCount: number | null;
239
309
  issuesCount: number | null;
@@ -242,13 +312,6 @@ export type GetReportResponse = {
242
312
  programGroup: ProgramGroupResponse | null;
243
313
  targetFiles: TargetFilesResponse[];
244
314
  errorLog?: string | null;
245
- status: ReportStatus | null;
246
- };
247
- export type GetPullRequest = {
248
- content: string;
249
- };
250
- export type GetPullRequest = {
251
- content: string;
252
315
  };
253
316
  export type SearchRepoScmResponse = {
254
317
  id: string;
@@ -258,13 +321,13 @@ export type GetStatusSearchRepoScmResponse = {
258
321
  status: SearchRepositoryStatus;
259
322
  errorLog?: string | null;
260
323
  };
261
- export type ModuleResponse3 = {
324
+ export type ModuleResponse4 = {
262
325
  id: string;
263
326
  name: string;
264
327
  };
265
- export type ReportResponse = {
328
+ export type ReportResponse3 = {
266
329
  id: string;
267
- "module": ModuleResponse3;
330
+ "module": ModuleResponse4;
268
331
  execution: ExecutionResponse | null;
269
332
  mode: string;
270
333
  sourceBranch: string;
@@ -276,11 +339,10 @@ export type ReportResponse = {
276
339
  issuesCount: number | null;
277
340
  pullRequestLink?: string | null;
278
341
  errorLog?: string | null;
279
- status: ReportStatus | null;
280
342
  };
281
343
  export type ListRepositoryReportResponse = {
282
344
  /** List of reports */
283
- items: ReportResponse[];
345
+ items: ReportResponse3[];
284
346
  /** Number of reports */
285
347
  itemsCount: number;
286
348
  /** Last evaluated key */
@@ -294,37 +356,36 @@ export type CreateRepositoryRequest = {
294
356
  defaultBranch: string;
295
357
  tags?: string[] | null;
296
358
  };
297
- export type ReportResponse2 = {
359
+ export type ReportResponse4 = {
298
360
  id: string;
299
361
  execution: ExecutionResponse | null;
300
362
  mode: string;
301
363
  moduleId: string;
302
364
  sourceBranch: string;
303
365
  targetBranch?: string | null;
304
- createdBy: UserResponse | null;
366
+ createdBy: UserResponse;
305
367
  createdAt: string;
306
368
  updatedAt: string;
307
369
  filesCount: number | null;
308
370
  issuesCount: number | null;
309
371
  pullRequestLink?: string | null;
310
372
  errorLog?: string | null;
311
- status: ReportStatus | null;
312
373
  };
313
- export type RepositoryResponse = {
374
+ export type RepositoryResponse2 = {
314
375
  /** Repository ID */
315
376
  id: string;
316
377
  /** Repository creation date */
317
378
  createdAt?: string | null;
318
379
  /** Repository creation user */
319
380
  createdBy?: string | null;
320
- lastModuleReport: ReportResponse2 | null;
381
+ lastModuleReport: ReportResponse4 | null;
321
382
  tags: string[];
322
383
  url: string;
323
384
  defaultBranch: string;
324
385
  };
325
386
  export type ListRepositoryResponse = {
326
387
  /** List of applications */
327
- items: RepositoryResponse[];
388
+ items: RepositoryResponse2[];
328
389
  /** Number of applications */
329
390
  itemsCount: number;
330
391
  /** Last evaluated key */
@@ -335,9 +396,6 @@ export type PutRepositoryRequest = {
335
396
  defaultBranch?: string | null;
336
397
  tags?: string[] | null;
337
398
  };
338
- export type ValidateScmUrlRequest = {
339
- url?: string | null;
340
- };
341
399
  export type GetAccountSettingsRequest = {
342
400
  maxSimultaneousExecution: number | null;
343
401
  };
@@ -382,7 +440,7 @@ export type BodyCreateProgramGroupServiceV1ProgramGroupsPost = {
382
440
  export type CreateProgramGroupResponse = {
383
441
  id: string;
384
442
  };
385
- export type ReportResponse3 = {
443
+ export type ReportResponse5 = {
386
444
  id: string;
387
445
  execution: ExecutionResponse | null;
388
446
  mode: string;
@@ -394,7 +452,6 @@ export type ReportResponse3 = {
394
452
  issuesCount: number | null;
395
453
  pullRequestLink?: string | null;
396
454
  errorLog?: string | null;
397
- status: ReportStatus | null;
398
455
  };
399
456
  export type ProgramGroupResponse2 = {
400
457
  id: string;
@@ -403,10 +460,10 @@ export type ProgramGroupResponse2 = {
403
460
  tags: string[];
404
461
  components: any[];
405
462
  accountId: string;
406
- createdBy: string | null;
463
+ createdBy: string;
407
464
  createdAt: string;
408
465
  updatedAt: string;
409
- lastModuleReport: ReportResponse3 | null;
466
+ lastModuleReport: ReportResponse5 | null;
410
467
  };
411
468
  export type ListProgramGroupResponse = {
412
469
  items: ProgramGroupResponse2[];
@@ -426,18 +483,13 @@ export type ProgramGroupResponse3 = {
426
483
  export type BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut = {
427
484
  file?: Blob | null;
428
485
  };
429
- export type PutProgramGroupComponentsRequest = {
430
- appl_name: string;
431
- component_type: string;
432
- component: string;
433
- };
434
- export type ModuleResponse4 = {
486
+ export type ModuleResponse5 = {
435
487
  id: string;
436
488
  name: string;
437
489
  };
438
- export type ReportResponse4 = {
490
+ export type ReportResponse6 = {
439
491
  id: string;
440
- "module": ModuleResponse4;
492
+ "module": ModuleResponse5;
441
493
  execution: ExecutionResponse | null;
442
494
  mode: string;
443
495
  createdBy: UserResponse;
@@ -447,11 +499,10 @@ export type ReportResponse4 = {
447
499
  issuesCount: number | null;
448
500
  pullRequestLink?: string | null;
449
501
  errorLog?: string | null;
450
- status: ReportStatus | null;
451
502
  };
452
503
  export type ListProgramGroupReportResponse = {
453
504
  /** List of reports */
454
- items: ReportResponse4[];
505
+ items: ReportResponse6[];
455
506
  /** Number of reports */
456
507
  itemsCount: number;
457
508
  };
@@ -469,6 +520,63 @@ export declare function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
469
520
  role: CodeShiftRole;
470
521
  authorization: string;
471
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>;
472
580
  /**
473
581
  * Create Module Service
474
582
  */
@@ -527,13 +635,6 @@ export declare function getReportV1ReportsReportIdGet({ reportId, authorization
527
635
  reportId: string;
528
636
  authorization: string;
529
637
  }, opts?: Oazapfts.RequestOpts): Promise<GetReportResponse>;
530
- /**
531
- * Get Report Pull Request Content
532
- */
533
- export declare function getReportPullRequestContentV1ReportsReportIdPullRequestGet({ reportId, authorization }: {
534
- reportId: string;
535
- authorization: string;
536
- }, opts?: Oazapfts.RequestOpts): Promise<GetPullRequest>;
537
638
  /**
538
639
  * Download Report
539
640
  */
@@ -611,7 +712,7 @@ export declare function listRepositoryServiceV1ReposGet({ pageSize, page, lastEv
611
712
  export declare function getRepositoryByIdServiceV1ReposRepositoryIdGet({ repositoryId, authorization }: {
612
713
  repositoryId: string;
613
714
  authorization: string;
614
- }, opts?: Oazapfts.RequestOpts): Promise<RepositoryResponse>;
715
+ }, opts?: Oazapfts.RequestOpts): Promise<RepositoryResponse2>;
615
716
  /**
616
717
  * Delete Repository Service
617
718
  */
@@ -627,13 +728,6 @@ export declare function updateRepositoryServiceV1ReposRepositoryIdPut({ reposito
627
728
  authorization: string;
628
729
  putRepositoryRequest: PutRepositoryRequest;
629
730
  }, opts?: Oazapfts.RequestOpts): Promise<any>;
630
- /**
631
- * Validate Scm Url Service
632
- */
633
- export declare function validateScmUrlServiceV1ReposValidateScmUrlPost({ authorization, validateScmUrlRequest }: {
634
- authorization: string;
635
- validateScmUrlRequest: ValidateScmUrlRequest;
636
- }, opts?: Oazapfts.RequestOpts): Promise<any>;
637
731
  /**
638
732
  * Get Account Settings
639
733
  */
@@ -736,14 +830,6 @@ export declare function deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDe
736
830
  programGroupId: string;
737
831
  authorization: string;
738
832
  }, opts?: Oazapfts.RequestOpts): Promise<any>;
739
- /**
740
- * Update Program Group Components Service
741
- */
742
- export declare function updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut({ programGroupId, authorization, body }: {
743
- programGroupId: string;
744
- authorization: string;
745
- body: PutProgramGroupComponentsRequest[];
746
- }, opts?: Oazapfts.RequestOpts): Promise<any>;
747
833
  /**
748
834
  * List Program Group Report Service
749
835
  */