@stack-spot/portal-network 0.157.0-beta.2 → 0.157.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 (72) hide show
  1. package/CHANGELOG.md +9 -55
  2. package/dist/api/codeShift.d.ts +196 -107
  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/api/discovery.d.ts +222 -33
  7. package/dist/api/discovery.d.ts.map +1 -1
  8. package/dist/api/discovery.js +78 -27
  9. package/dist/api/discovery.js.map +1 -1
  10. package/dist/api/workspaceManager.d.ts +380 -48
  11. package/dist/api/workspaceManager.d.ts.map +1 -1
  12. package/dist/api/workspaceManager.js +334 -2
  13. package/dist/api/workspaceManager.js.map +1 -1
  14. package/dist/apis.json +1 -1
  15. package/dist/client/agent-tools.d.ts +3 -89
  16. package/dist/client/agent-tools.d.ts.map +1 -1
  17. package/dist/client/agent-tools.js +2 -133
  18. package/dist/client/agent-tools.js.map +1 -1
  19. package/dist/client/agent.d.ts +50 -5
  20. package/dist/client/agent.d.ts.map +1 -1
  21. package/dist/client/agent.js +64 -0
  22. package/dist/client/agent.js.map +1 -1
  23. package/dist/client/ai.d.ts +0 -7
  24. package/dist/client/ai.d.ts.map +1 -1
  25. package/dist/client/ai.js +1 -10
  26. package/dist/client/ai.js.map +1 -1
  27. package/dist/client/code-shift.d.ts +67 -25
  28. package/dist/client/code-shift.d.ts.map +1 -1
  29. package/dist/client/code-shift.js +73 -30
  30. package/dist/client/code-shift.js.map +1 -1
  31. package/dist/client/discovery.d.ts +6 -12
  32. package/dist/client/discovery.d.ts.map +1 -1
  33. package/dist/client/discovery.js +5 -14
  34. package/dist/client/discovery.js.map +1 -1
  35. package/dist/client/gen-ai-inference.d.ts +0 -9
  36. package/dist/client/gen-ai-inference.d.ts.map +1 -1
  37. package/dist/client/gen-ai-inference.js +1 -10
  38. package/dist/client/gen-ai-inference.js.map +1 -1
  39. package/dist/client/types.d.ts +4 -5
  40. package/dist/client/types.d.ts.map +1 -1
  41. package/dist/client/workspace-manager.d.ts +6 -0
  42. package/dist/client/workspace-manager.d.ts.map +1 -1
  43. package/dist/client/workspace-manager.js +10 -1
  44. package/dist/client/workspace-manager.js.map +1 -1
  45. package/dist/error/DefaultAPIError.d.ts +1 -1
  46. package/dist/error/DefaultAPIError.d.ts.map +1 -1
  47. package/dist/error/DefaultAPIError.js +0 -7
  48. package/dist/error/DefaultAPIError.js.map +1 -1
  49. package/package.json +1 -1
  50. package/readme.md +1 -1
  51. package/src/api/account.ts +0 -1
  52. package/src/api/agent-tools.ts +0 -3
  53. package/src/api/agent.ts +0 -2
  54. package/src/api/codeShift.ts +481 -254
  55. package/src/api/discovery.ts +309 -49
  56. package/src/api/notification.ts +0 -2
  57. package/src/api/workspaceManager.ts +402 -50
  58. package/src/apis.json +1 -1
  59. package/src/client/agent-tools.ts +3 -102
  60. package/src/client/agent.ts +68 -0
  61. package/src/client/ai.ts +0 -6
  62. package/src/client/code-shift.ts +57 -19
  63. package/src/client/discovery.ts +5 -9
  64. package/src/client/gen-ai-inference.ts +1 -6
  65. package/src/client/types.ts +5 -7
  66. package/src/client/workspace-manager.ts +5 -0
  67. package/src/error/DefaultAPIError.ts +1 -9
  68. package/dist/error/types.d.ts +0 -18
  69. package/dist/error/types.d.ts.map +0 -1
  70. package/dist/error/types.js +0 -2
  71. package/dist/error/types.js.map +0 -1
  72. package/src/error/types.ts +0 -20
package/CHANGELOG.md CHANGED
@@ -1,41 +1,32 @@
1
1
  # Changelog
2
2
 
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)
3
+ ## [0.157.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.156.2...portal-network@v0.157.0) (2025-07-16)
4
4
 
5
5
 
6
6
  ### Features
7
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))
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))
10
9
 
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)
10
+ ## [0.156.2](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.156.1...portal-network@v0.156.2) (2025-07-15)
12
11
 
13
12
 
14
13
  ### Bug Fixes
15
14
 
16
- * add sendAgentMessage ([#1198](https://github.com/stack-spot/portal-commons/issues/1198)) ([c16b103](https://github.com/stack-spot/portal-commons/commit/c16b1031155661a1ad957fb909d7c44c827137a9))
15
+ * update discover prd url ([#1218](https://github.com/stack-spot/portal-commons/issues/1218)) ([7b67606](https://github.com/stack-spot/portal-commons/commit/7b6760621ccbce2040387128d210c3a6ad7a36da))
17
16
 
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)
17
+ ## [0.156.1](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.156.0...portal-network@v0.156.1) (2025-07-15)
19
18
 
20
19
 
21
- ### Features
20
+ ### Bug Fixes
22
21
 
23
- * 1530 refactor ks ([#1187](https://github.com/stack-spot/portal-commons/issues/1187)) ([b133ec8](https://github.com/stack-spot/portal-commons/commit/b133ec8a047623adf4db9d839017a551fae80029))
22
+ * changes in discover api ([#1215](https://github.com/stack-spot/portal-commons/issues/1215)) ([cb95a55](https://github.com/stack-spot/portal-commons/commit/cb95a550824854e268cce2b2a7e8adaf1b360e83))
24
23
 
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)
24
+ ## [0.156.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.155.0...portal-network@v0.156.0) (2025-07-11)
26
25
 
27
26
 
28
27
  ### Features
29
28
 
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))
29
+ * 1530 refactor ks ([#1187](https://github.com/stack-spot/portal-commons/issues/1187)) ([b133ec8](https://github.com/stack-spot/portal-commons/commit/b133ec8a047623adf4db9d839017a551fae80029))
39
30
 
40
31
  ## [0.155.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.154.1...portal-network@v0.155.0) (2025-07-10)
41
32
 
@@ -59,49 +50,12 @@
59
50
  * New account methods ([#1185](https://github.com/stack-spot/portal-commons/issues/1185)) ([2ada8ea](https://github.com/stack-spot/portal-commons/commit/2ada8eaaf1362bb90e43920d58d02be8cede93db))
60
51
 
61
52
  ## [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)
63
53
 
64
54
 
65
55
  ### Features
66
56
 
67
57
  * 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))
68
58
 
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
-
105
59
  ## [0.152.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.151.0...portal-network@v0.152.0) (2025-07-08)
106
60
 
107
61
 
@@ -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
- totalFilesChanged?: 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;
@@ -221,8 +293,8 @@ export type TargetFilesResponse = {
221
293
  };
222
294
  export type GetReportResponse = {
223
295
  id: string;
224
- "module": ModuleResponse2 | null;
225
- application: ApplicationResponse | null;
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;
@@ -241,13 +312,6 @@ export type GetReportResponse = {
241
312
  programGroup: ProgramGroupResponse | null;
242
313
  targetFiles: TargetFilesResponse[];
243
314
  errorLog?: string | null;
244
- status: string | null;
245
- };
246
- export type GetPullRequest = {
247
- content: string;
248
- };
249
- export type GetPullRequest = {
250
- content: string;
251
315
  };
252
316
  export type SearchRepoScmResponse = {
253
317
  id: string;
@@ -257,13 +321,13 @@ export type GetStatusSearchRepoScmResponse = {
257
321
  status: SearchRepositoryStatus;
258
322
  errorLog?: string | null;
259
323
  };
260
- export type ModuleResponse3 = {
324
+ export type ModuleResponse4 = {
261
325
  id: string;
262
326
  name: string;
263
327
  };
264
- export type ReportResponse = {
328
+ export type ReportResponse3 = {
265
329
  id: string;
266
- "module": ModuleResponse3;
330
+ "module": ModuleResponse4;
267
331
  execution: ExecutionResponse | null;
268
332
  mode: string;
269
333
  sourceBranch: string;
@@ -275,11 +339,10 @@ export type ReportResponse = {
275
339
  issuesCount: number | null;
276
340
  pullRequestLink?: string | null;
277
341
  errorLog?: string | null;
278
- status: string | null;
279
342
  };
280
343
  export type ListRepositoryReportResponse = {
281
344
  /** List of reports */
282
- items: ReportResponse[];
345
+ items: ReportResponse3[];
283
346
  /** Number of reports */
284
347
  itemsCount: number;
285
348
  /** Last evaluated key */
@@ -293,14 +356,14 @@ export type CreateRepositoryRequest = {
293
356
  defaultBranch: string;
294
357
  tags?: string[] | null;
295
358
  };
296
- export type ReportResponse2 = {
359
+ export type ReportResponse4 = {
297
360
  id: string;
298
361
  execution: ExecutionResponse | null;
299
362
  mode: string;
300
363
  moduleId: string;
301
364
  sourceBranch: string;
302
365
  targetBranch?: string | null;
303
- createdBy: UserResponse | null;
366
+ createdBy: UserResponse;
304
367
  createdAt: string;
305
368
  updatedAt: string;
306
369
  filesCount: number | null;
@@ -308,21 +371,21 @@ export type ReportResponse2 = {
308
371
  pullRequestLink?: string | null;
309
372
  errorLog?: string | null;
310
373
  };
311
- export type RepositoryResponse = {
374
+ export type RepositoryResponse2 = {
312
375
  /** Repository ID */
313
376
  id: string;
314
377
  /** Repository creation date */
315
378
  createdAt?: string | null;
316
379
  /** Repository creation user */
317
380
  createdBy?: string | null;
318
- lastModuleReport: ReportResponse2 | null;
381
+ lastModuleReport: ReportResponse4 | null;
319
382
  tags: string[];
320
383
  url: string;
321
384
  defaultBranch: string;
322
385
  };
323
386
  export type ListRepositoryResponse = {
324
387
  /** List of applications */
325
- items: RepositoryResponse[];
388
+ items: RepositoryResponse2[];
326
389
  /** Number of applications */
327
390
  itemsCount: number;
328
391
  /** Last evaluated key */
@@ -333,9 +396,6 @@ export type PutRepositoryRequest = {
333
396
  defaultBranch?: string | null;
334
397
  tags?: string[] | null;
335
398
  };
336
- export type ValidateScmUrlRequest = {
337
- url?: string | null;
338
- };
339
399
  export type GetAccountSettingsRequest = {
340
400
  maxSimultaneousExecution: number | null;
341
401
  };
@@ -380,7 +440,7 @@ export type BodyCreateProgramGroupServiceV1ProgramGroupsPost = {
380
440
  export type CreateProgramGroupResponse = {
381
441
  id: string;
382
442
  };
383
- export type ReportResponse3 = {
443
+ export type ReportResponse5 = {
384
444
  id: string;
385
445
  execution: ExecutionResponse | null;
386
446
  mode: string;
@@ -392,7 +452,6 @@ export type ReportResponse3 = {
392
452
  issuesCount: number | null;
393
453
  pullRequestLink?: string | null;
394
454
  errorLog?: string | null;
395
- status: string | null;
396
455
  };
397
456
  export type ProgramGroupResponse2 = {
398
457
  id: string;
@@ -401,10 +460,10 @@ export type ProgramGroupResponse2 = {
401
460
  tags: string[];
402
461
  components: any[];
403
462
  accountId: string;
404
- createdBy: string | null;
463
+ createdBy: string;
405
464
  createdAt: string;
406
465
  updatedAt: string;
407
- lastModuleReport: ReportResponse3 | null;
466
+ lastModuleReport: ReportResponse5 | null;
408
467
  };
409
468
  export type ListProgramGroupResponse = {
410
469
  items: ProgramGroupResponse2[];
@@ -424,18 +483,13 @@ export type ProgramGroupResponse3 = {
424
483
  export type BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut = {
425
484
  file?: Blob | null;
426
485
  };
427
- export type PutProgramGroupComponentsRequest = {
428
- appl_name: string;
429
- component_type: string;
430
- component: string;
431
- };
432
- export type ModuleResponse4 = {
486
+ export type ModuleResponse5 = {
433
487
  id: string;
434
488
  name: string;
435
489
  };
436
- export type ReportResponse4 = {
490
+ export type ReportResponse6 = {
437
491
  id: string;
438
- "module": ModuleResponse4;
492
+ "module": ModuleResponse5;
439
493
  execution: ExecutionResponse | null;
440
494
  mode: string;
441
495
  createdBy: UserResponse;
@@ -448,7 +502,7 @@ export type ReportResponse4 = {
448
502
  };
449
503
  export type ListProgramGroupReportResponse = {
450
504
  /** List of reports */
451
- items: ReportResponse4[];
505
+ items: ReportResponse6[];
452
506
  /** Number of reports */
453
507
  itemsCount: number;
454
508
  };
@@ -466,6 +520,63 @@ export declare function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
466
520
  role: CodeShiftRole;
467
521
  authorization: string;
468
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>;
469
580
  /**
470
581
  * Create Module Service
471
582
  */
@@ -524,13 +635,6 @@ export declare function getReportV1ReportsReportIdGet({ reportId, authorization
524
635
  reportId: string;
525
636
  authorization: string;
526
637
  }, 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>;
534
638
  /**
535
639
  * Download Report
536
640
  */
@@ -608,7 +712,7 @@ export declare function listRepositoryServiceV1ReposGet({ pageSize, page, lastEv
608
712
  export declare function getRepositoryByIdServiceV1ReposRepositoryIdGet({ repositoryId, authorization }: {
609
713
  repositoryId: string;
610
714
  authorization: string;
611
- }, opts?: Oazapfts.RequestOpts): Promise<RepositoryResponse>;
715
+ }, opts?: Oazapfts.RequestOpts): Promise<RepositoryResponse2>;
612
716
  /**
613
717
  * Delete Repository Service
614
718
  */
@@ -624,13 +728,6 @@ export declare function updateRepositoryServiceV1ReposRepositoryIdPut({ reposito
624
728
  authorization: string;
625
729
  putRepositoryRequest: PutRepositoryRequest;
626
730
  }, 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>;
634
731
  /**
635
732
  * Get Account Settings
636
733
  */
@@ -733,14 +830,6 @@ export declare function deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDe
733
830
  programGroupId: string;
734
831
  authorization: string;
735
832
  }, 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>;
744
833
  /**
745
834
  * List Program Group Report Service
746
835
  */