@stack-spot/portal-network 0.156.0 → 0.157.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.md +68 -1
  2. package/dist/api/codeShift.d.ts +107 -196
  3. package/dist/api/codeShift.d.ts.map +1 -1
  4. package/dist/api/codeShift.js +37 -94
  5. package/dist/api/codeShift.js.map +1 -1
  6. package/dist/client/agent-tools.d.ts +89 -3
  7. package/dist/client/agent-tools.d.ts.map +1 -1
  8. package/dist/client/agent-tools.js +133 -2
  9. package/dist/client/agent-tools.js.map +1 -1
  10. package/dist/client/agent.d.ts +5 -50
  11. package/dist/client/agent.d.ts.map +1 -1
  12. package/dist/client/agent.js +0 -64
  13. package/dist/client/agent.js.map +1 -1
  14. package/dist/client/ai.d.ts +7 -0
  15. package/dist/client/ai.d.ts.map +1 -1
  16. package/dist/client/ai.js +10 -1
  17. package/dist/client/ai.js.map +1 -1
  18. package/dist/client/code-shift.d.ts +25 -67
  19. package/dist/client/code-shift.d.ts.map +1 -1
  20. package/dist/client/code-shift.js +30 -73
  21. package/dist/client/code-shift.js.map +1 -1
  22. package/dist/client/gen-ai-inference.d.ts +9 -0
  23. package/dist/client/gen-ai-inference.d.ts.map +1 -1
  24. package/dist/client/gen-ai-inference.js +10 -1
  25. package/dist/client/gen-ai-inference.js.map +1 -1
  26. package/dist/client/types.d.ts +5 -4
  27. package/dist/client/types.d.ts.map +1 -1
  28. package/dist/error/DefaultAPIError.d.ts +1 -1
  29. package/dist/error/DefaultAPIError.d.ts.map +1 -1
  30. package/dist/error/DefaultAPIError.js +7 -0
  31. package/dist/error/DefaultAPIError.js.map +1 -1
  32. package/dist/error/types.d.ts +18 -0
  33. package/dist/error/types.d.ts.map +1 -0
  34. package/dist/error/types.js +2 -0
  35. package/dist/error/types.js.map +1 -0
  36. package/package.json +1 -1
  37. package/readme.md +1 -1
  38. package/src/api/account.ts +1 -0
  39. package/src/api/agent-tools.ts +3 -0
  40. package/src/api/agent.ts +2 -0
  41. package/src/api/codeShift.ts +254 -481
  42. package/src/api/notification.ts +2 -0
  43. package/src/client/agent-tools.ts +102 -3
  44. package/src/client/agent.ts +0 -68
  45. package/src/client/ai.ts +6 -0
  46. package/src/client/code-shift.ts +19 -57
  47. package/src/client/gen-ai-inference.ts +6 -1
  48. package/src/client/types.ts +7 -5
  49. package/src/error/DefaultAPIError.ts +9 -1
  50. package/src/error/types.ts +20 -0
package/CHANGELOG.md CHANGED
@@ -1,12 +1,42 @@
1
1
  # Changelog
2
2
 
3
- ## [0.156.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.155.0...portal-network@v0.156.0) (2025-07-11)
3
+ ## [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)
4
+
5
+
6
+ ### Features
7
+
8
+ * add suggested messages beta ([#1204](https://github.com/stack-spot/portal-commons/issues/1204)) ([40b58f1](https://github.com/stack-spot/portal-commons/commit/40b58f1c0b1bd5c06d9365c8cb36ad3c53b5d114))
9
+ * 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))
10
+
11
+ ## [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)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * add sendAgentMessage ([#1198](https://github.com/stack-spot/portal-commons/issues/1198)) ([c16b103](https://github.com/stack-spot/portal-commons/commit/c16b1031155661a1ad957fb909d7c44c827137a9))
17
+
18
+ ## [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
19
 
5
20
 
6
21
  ### Features
7
22
 
8
23
  * 1530 refactor ks ([#1187](https://github.com/stack-spot/portal-commons/issues/1187)) ([b133ec8](https://github.com/stack-spot/portal-commons/commit/b133ec8a047623adf4db9d839017a551fae80029))
9
24
 
25
+ ## [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)
26
+
27
+
28
+ ### Features
29
+
30
+ * accordion component beta ([#1191](https://github.com/stack-spot/portal-commons/issues/1191)) ([b49a388](https://github.com/stack-spot/portal-commons/commit/b49a388660523bab21abcdb17fc92341ffd40570))
31
+ * Add calculate condition ([#1170](https://github.com/stack-spot/portal-commons/issues/1170)) ([9a4557f](https://github.com/stack-spot/portal-commons/commit/9a4557f1a5d810649f6222c5181cd8c1e53c3d54))
32
+ * 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))
33
+ * New account methods ([#1185](https://github.com/stack-spot/portal-commons/issues/1185)) ([2ada8ea](https://github.com/stack-spot/portal-commons/commit/2ada8eaaf1362bb90e43920d58d02be8cede93db))
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * Improve naming ([#1188](https://github.com/stack-spot/portal-commons/issues/1188)) ([5beeb04](https://github.com/stack-spot/portal-commons/commit/5beeb040a4adc22ba38c1dfeaf866105e4236b9d))
39
+
10
40
  ## [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
41
 
12
42
 
@@ -29,12 +59,49 @@
29
59
  * New account methods ([#1185](https://github.com/stack-spot/portal-commons/issues/1185)) ([2ada8ea](https://github.com/stack-spot/portal-commons/commit/2ada8eaaf1362bb90e43920d58d02be8cede93db))
30
60
 
31
61
  ## [0.153.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.152.0...portal-network@v0.153.0) (2025-07-10)
62
+ ## [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
63
 
33
64
 
34
65
  ### Features
35
66
 
36
67
  * 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
68
 
69
+ ## [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)
70
+
71
+
72
+ ### Features
73
+
74
+ * 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))
75
+
76
+ ## [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)
77
+
78
+
79
+ ### Features
80
+
81
+ * 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))
82
+ * add workflow error message ([#1150](https://github.com/stack-spot/portal-commons/issues/1150)) ([f6e71f8](https://github.com/stack-spot/portal-commons/commit/f6e71f825a6d97c9ef42673d1589d99cb49d2426))
83
+ * toolkit fork ([#1171](https://github.com/stack-spot/portal-commons/issues/1171)) ([73b8c4a](https://github.com/stack-spot/portal-commons/commit/73b8c4a382885fb396bc1d05e0c6bce69c1dbff0))
84
+
85
+
86
+ ### Bug Fixes
87
+
88
+ * map cnt workflow errors ([#1165](https://github.com/stack-spot/portal-commons/issues/1165)) ([4409958](https://github.com/stack-spot/portal-commons/commit/4409958fbc4e7448a128f61ccdb9dcc8fc274c30))
89
+ * merge 'feat-beta-releases' into beta-releases ([cb9e293](https://github.com/stack-spot/portal-commons/commit/cb9e2936740e3b97d4724c092c6d114e80701319))
90
+ * publish Test ([#1160](https://github.com/stack-spot/portal-commons/issues/1160)) ([4507af5](https://github.com/stack-spot/portal-commons/commit/4507af5de59d6a5603d74965c75be67216e86c2b))
91
+ * test ([e974bb4](https://github.com/stack-spot/portal-commons/commit/e974bb47ee5333bcf1d25307a92b17f2c1e93a1a))
92
+ * test ([b8ccf50](https://github.com/stack-spot/portal-commons/commit/b8ccf507a4291abf19b83b0b4ca7b1a9893764d7))
93
+ * test ([#1134](https://github.com/stack-spot/portal-commons/issues/1134)) ([e58acb9](https://github.com/stack-spot/portal-commons/commit/e58acb90919f03e99debb0ae159385bd5aaa63d6))
94
+ * test ([#1135](https://github.com/stack-spot/portal-commons/issues/1135)) ([558c524](https://github.com/stack-spot/portal-commons/commit/558c5243e599031f6bee6160614fbae9ec715d5d))
95
+ * test ([#1157](https://github.com/stack-spot/portal-commons/issues/1157)) ([2c50106](https://github.com/stack-spot/portal-commons/commit/2c5010606c2b9c2b95091370bef895727b1c36ec))
96
+ * Test ([#1162](https://github.com/stack-spot/portal-commons/issues/1162)) ([94c553d](https://github.com/stack-spot/portal-commons/commit/94c553d41ec9c3a77d3c79292fc7552938c56080))
97
+ * teste ([01ab2f6](https://github.com/stack-spot/portal-commons/commit/01ab2f6deb912cf19256bd874b33ebe266579c90))
98
+ * testing ([#1128](https://github.com/stack-spot/portal-commons/issues/1128)) ([54a3e1c](https://github.com/stack-spot/portal-commons/commit/54a3e1c49c787275646e0ac6238ae32b7338f592))
99
+ * Testing ([#1144](https://github.com/stack-spot/portal-commons/issues/1144)) ([7671400](https://github.com/stack-spot/portal-commons/commit/76714008d9ba587af41d46135e2819fc7b2b991a))
100
+ * testing ([#1146](https://github.com/stack-spot/portal-commons/issues/1146)) ([fd80eff](https://github.com/stack-spot/portal-commons/commit/fd80eff96a07182ead5ad8d5975796a558b97830))
101
+ * update 'main' into beta-release ([5205864](https://github.com/stack-spot/portal-commons/commit/5205864d2f7782035d640648c8a8554c01573936))
102
+ * update tools 'feat-1615-agent-migration' into beta-release ([d9c6b6f](https://github.com/stack-spot/portal-commons/commit/d9c6b6fccbdcaacaa5067b7e3f1251c7ffe8236a))
103
+ * update version ([#1179](https://github.com/stack-spot/portal-commons/issues/1179)) ([76e4408](https://github.com/stack-spot/portal-commons/commit/76e4408f5cfa084ab010e31f2a7cada104111d6c))
104
+
38
105
  ## [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
106
 
40
107
 
@@ -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 ModuleResponse2 = {
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: ModuleResponse2[];
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 ModuleResponse3 = {
176
+ export type ModuleResponse2 = {
262
177
  id: string;
263
178
  name: string;
264
179
  };
265
- export type ApplicationResponse2 = {
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": ModuleResponse3 | null;
297
- application: ApplicationResponse2 | null;
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;
@@ -312,6 +241,13 @@ export type GetReportResponse = {
312
241
  programGroup: ProgramGroupResponse | null;
313
242
  targetFiles: TargetFilesResponse[];
314
243
  errorLog?: string | null;
244
+ status: string | null;
245
+ };
246
+ export type GetPullRequest = {
247
+ content: string;
248
+ };
249
+ export type GetPullRequest = {
250
+ content: string;
315
251
  };
316
252
  export type SearchRepoScmResponse = {
317
253
  id: string;
@@ -321,13 +257,13 @@ export type GetStatusSearchRepoScmResponse = {
321
257
  status: SearchRepositoryStatus;
322
258
  errorLog?: string | null;
323
259
  };
324
- export type ModuleResponse4 = {
260
+ export type ModuleResponse3 = {
325
261
  id: string;
326
262
  name: string;
327
263
  };
328
- export type ReportResponse3 = {
264
+ export type ReportResponse = {
329
265
  id: string;
330
- "module": ModuleResponse4;
266
+ "module": ModuleResponse3;
331
267
  execution: ExecutionResponse | null;
332
268
  mode: string;
333
269
  sourceBranch: string;
@@ -339,10 +275,11 @@ export type ReportResponse3 = {
339
275
  issuesCount: number | null;
340
276
  pullRequestLink?: string | null;
341
277
  errorLog?: string | null;
278
+ status: string | null;
342
279
  };
343
280
  export type ListRepositoryReportResponse = {
344
281
  /** List of reports */
345
- items: ReportResponse3[];
282
+ items: ReportResponse[];
346
283
  /** Number of reports */
347
284
  itemsCount: number;
348
285
  /** Last evaluated key */
@@ -356,14 +293,14 @@ export type CreateRepositoryRequest = {
356
293
  defaultBranch: string;
357
294
  tags?: string[] | null;
358
295
  };
359
- export type ReportResponse4 = {
296
+ export type ReportResponse2 = {
360
297
  id: string;
361
298
  execution: ExecutionResponse | null;
362
299
  mode: string;
363
300
  moduleId: string;
364
301
  sourceBranch: string;
365
302
  targetBranch?: string | null;
366
- createdBy: UserResponse;
303
+ createdBy: UserResponse | null;
367
304
  createdAt: string;
368
305
  updatedAt: string;
369
306
  filesCount: number | null;
@@ -371,21 +308,21 @@ export type ReportResponse4 = {
371
308
  pullRequestLink?: string | null;
372
309
  errorLog?: string | null;
373
310
  };
374
- export type RepositoryResponse2 = {
311
+ export type RepositoryResponse = {
375
312
  /** Repository ID */
376
313
  id: string;
377
314
  /** Repository creation date */
378
315
  createdAt?: string | null;
379
316
  /** Repository creation user */
380
317
  createdBy?: string | null;
381
- lastModuleReport: ReportResponse4 | null;
318
+ lastModuleReport: ReportResponse2 | null;
382
319
  tags: string[];
383
320
  url: string;
384
321
  defaultBranch: string;
385
322
  };
386
323
  export type ListRepositoryResponse = {
387
324
  /** List of applications */
388
- items: RepositoryResponse2[];
325
+ items: RepositoryResponse[];
389
326
  /** Number of applications */
390
327
  itemsCount: number;
391
328
  /** Last evaluated key */
@@ -396,6 +333,9 @@ export type PutRepositoryRequest = {
396
333
  defaultBranch?: string | null;
397
334
  tags?: string[] | null;
398
335
  };
336
+ export type ValidateScmUrlRequest = {
337
+ url?: string | null;
338
+ };
399
339
  export type GetAccountSettingsRequest = {
400
340
  maxSimultaneousExecution: number | null;
401
341
  };
@@ -440,7 +380,7 @@ export type BodyCreateProgramGroupServiceV1ProgramGroupsPost = {
440
380
  export type CreateProgramGroupResponse = {
441
381
  id: string;
442
382
  };
443
- export type ReportResponse5 = {
383
+ export type ReportResponse3 = {
444
384
  id: string;
445
385
  execution: ExecutionResponse | null;
446
386
  mode: string;
@@ -452,6 +392,7 @@ export type ReportResponse5 = {
452
392
  issuesCount: number | null;
453
393
  pullRequestLink?: string | null;
454
394
  errorLog?: string | null;
395
+ status: string | null;
455
396
  };
456
397
  export type ProgramGroupResponse2 = {
457
398
  id: string;
@@ -460,10 +401,10 @@ export type ProgramGroupResponse2 = {
460
401
  tags: string[];
461
402
  components: any[];
462
403
  accountId: string;
463
- createdBy: string;
404
+ createdBy: string | null;
464
405
  createdAt: string;
465
406
  updatedAt: string;
466
- lastModuleReport: ReportResponse5 | null;
407
+ lastModuleReport: ReportResponse3 | null;
467
408
  };
468
409
  export type ListProgramGroupResponse = {
469
410
  items: ProgramGroupResponse2[];
@@ -483,13 +424,18 @@ export type ProgramGroupResponse3 = {
483
424
  export type BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut = {
484
425
  file?: Blob | null;
485
426
  };
486
- export type ModuleResponse5 = {
427
+ export type PutProgramGroupComponentsRequest = {
428
+ appl_name: string;
429
+ component_type: string;
430
+ component: string;
431
+ };
432
+ export type ModuleResponse4 = {
487
433
  id: string;
488
434
  name: string;
489
435
  };
490
- export type ReportResponse6 = {
436
+ export type ReportResponse4 = {
491
437
  id: string;
492
- "module": ModuleResponse5;
438
+ "module": ModuleResponse4;
493
439
  execution: ExecutionResponse | null;
494
440
  mode: string;
495
441
  createdBy: UserResponse;
@@ -502,7 +448,7 @@ export type ReportResponse6 = {
502
448
  };
503
449
  export type ListProgramGroupReportResponse = {
504
450
  /** List of reports */
505
- items: ReportResponse6[];
451
+ items: ReportResponse4[];
506
452
  /** Number of reports */
507
453
  itemsCount: number;
508
454
  };
@@ -520,63 +466,6 @@ export declare function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
520
466
  role: CodeShiftRole;
521
467
  authorization: string;
522
468
  }, 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
469
  /**
581
470
  * Create Module Service
582
471
  */
@@ -635,6 +524,13 @@ export declare function getReportV1ReportsReportIdGet({ reportId, authorization
635
524
  reportId: string;
636
525
  authorization: string;
637
526
  }, opts?: Oazapfts.RequestOpts): Promise<GetReportResponse>;
527
+ /**
528
+ * Get Report Pull Request Content
529
+ */
530
+ export declare function getReportPullRequestContentV1ReportsReportIdPullRequestGet({ reportId, authorization }: {
531
+ reportId: string;
532
+ authorization: string;
533
+ }, opts?: Oazapfts.RequestOpts): Promise<GetPullRequest>;
638
534
  /**
639
535
  * Download Report
640
536
  */
@@ -712,7 +608,7 @@ export declare function listRepositoryServiceV1ReposGet({ pageSize, page, lastEv
712
608
  export declare function getRepositoryByIdServiceV1ReposRepositoryIdGet({ repositoryId, authorization }: {
713
609
  repositoryId: string;
714
610
  authorization: string;
715
- }, opts?: Oazapfts.RequestOpts): Promise<RepositoryResponse2>;
611
+ }, opts?: Oazapfts.RequestOpts): Promise<RepositoryResponse>;
716
612
  /**
717
613
  * Delete Repository Service
718
614
  */
@@ -728,6 +624,13 @@ export declare function updateRepositoryServiceV1ReposRepositoryIdPut({ reposito
728
624
  authorization: string;
729
625
  putRepositoryRequest: PutRepositoryRequest;
730
626
  }, opts?: Oazapfts.RequestOpts): Promise<any>;
627
+ /**
628
+ * Validate Scm Url Service
629
+ */
630
+ export declare function validateScmUrlServiceV1ReposValidateScmUrlPost({ authorization, validateScmUrlRequest }: {
631
+ authorization: string;
632
+ validateScmUrlRequest: ValidateScmUrlRequest;
633
+ }, opts?: Oazapfts.RequestOpts): Promise<any>;
731
634
  /**
732
635
  * Get Account Settings
733
636
  */
@@ -830,6 +733,14 @@ export declare function deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDe
830
733
  programGroupId: string;
831
734
  authorization: string;
832
735
  }, opts?: Oazapfts.RequestOpts): Promise<any>;
736
+ /**
737
+ * Update Program Group Components Service
738
+ */
739
+ export declare function updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut({ programGroupId, authorization, body }: {
740
+ programGroupId: string;
741
+ authorization: string;
742
+ body: PutProgramGroupComponentsRequest[];
743
+ }, opts?: Oazapfts.RequestOpts): Promise<any>;
833
744
  /**
834
745
  * List Program Group Report Service
835
746
  */