@stack-spot/portal-network 0.161.0 → 0.162.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 (59) hide show
  1. package/CHANGELOG.md +171 -0
  2. package/dist/api/agent-tools.d.ts +71 -5
  3. package/dist/api/agent-tools.d.ts.map +1 -1
  4. package/dist/api/agent-tools.js +88 -6
  5. package/dist/api/agent-tools.js.map +1 -1
  6. package/dist/api/ai.d.ts +4 -0
  7. package/dist/api/ai.d.ts.map +1 -1
  8. package/dist/api/ai.js.map +1 -1
  9. package/dist/api/codeShift.d.ts +412 -209
  10. package/dist/api/codeShift.d.ts.map +1 -1
  11. package/dist/api/codeShift.js +241 -98
  12. package/dist/api/codeShift.js.map +1 -1
  13. package/dist/api/content.d.ts +140 -308
  14. package/dist/api/content.d.ts.map +1 -1
  15. package/dist/api/content.js +79 -217
  16. package/dist/api/content.js.map +1 -1
  17. package/dist/client/agent-tools.d.ts +14 -2
  18. package/dist/client/agent-tools.d.ts.map +1 -1
  19. package/dist/client/agent-tools.js +4 -4
  20. package/dist/client/agent-tools.js.map +1 -1
  21. package/dist/client/ai.d.ts.map +1 -1
  22. package/dist/client/ai.js +5 -3
  23. package/dist/client/ai.js.map +1 -1
  24. package/dist/client/code-shift.d.ts +158 -68
  25. package/dist/client/code-shift.d.ts.map +1 -1
  26. package/dist/client/code-shift.js +138 -73
  27. package/dist/client/code-shift.js.map +1 -1
  28. package/dist/client/content.d.ts +10 -4
  29. package/dist/client/content.d.ts.map +1 -1
  30. package/dist/client/content.js +10 -1
  31. package/dist/client/content.js.map +1 -1
  32. package/dist/client/gen-ai-inference.d.ts +9 -0
  33. package/dist/client/gen-ai-inference.d.ts.map +1 -1
  34. package/dist/client/gen-ai-inference.js +11 -2
  35. package/dist/client/gen-ai-inference.js.map +1 -1
  36. package/dist/error/DefaultAPIError.d.ts +1 -1
  37. package/dist/error/DefaultAPIError.d.ts.map +1 -1
  38. package/dist/error/DefaultAPIError.js +27 -12
  39. package/dist/error/DefaultAPIError.js.map +1 -1
  40. package/dist/error/types.d.ts +19 -0
  41. package/dist/error/types.d.ts.map +1 -0
  42. package/dist/error/types.js +2 -0
  43. package/dist/error/types.js.map +1 -0
  44. package/package.json +1 -1
  45. package/readme.md +1 -1
  46. package/src/api/account.ts +1 -0
  47. package/src/api/agent-tools.ts +173 -11
  48. package/src/api/agent.ts +2 -0
  49. package/src/api/ai.ts +4 -0
  50. package/src/api/codeShift.ts +995 -538
  51. package/src/api/content.ts +343 -795
  52. package/src/api/notification.ts +2 -0
  53. package/src/client/agent-tools.ts +4 -4
  54. package/src/client/ai.ts +6 -3
  55. package/src/client/code-shift.ts +93 -56
  56. package/src/client/content.ts +5 -0
  57. package/src/client/gen-ai-inference.ts +7 -2
  58. package/src/error/DefaultAPIError.ts +35 -12
  59. package/src/error/types.ts +21 -0
@@ -12,7 +12,7 @@ export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
12
12
  };
13
13
  const oazapfts = Oazapfts.runtime(defaults);
14
14
  export const servers = {};
15
- export type CodeShiftRole = "list-applications" | "create-application" | "list-repository" | "create-repository" | "delete-repository" | "dispatch-module" | "create-module" | "account-settings" | "list-integration" | "create-integration" | "delete-integration" | "list-program-group" | "create-program-group" | "delete-program-group";
15
+ export type CodeShiftRole = "list-applications" | "create-application" | "list-repository" | "create-repository" | "delete-repository" | "dispatch-module" | "create-module" | "account-settings" | "list-integration" | "create-integration" | "delete-integration" | "list-program-group" | "create-program-group" | "delete-program-group" | "view-analytics";
16
16
  export type RolesResponse = {
17
17
  result: boolean;
18
18
  };
@@ -24,122 +24,6 @@ export type ValidationError = {
24
24
  export type HttpValidationError = {
25
25
  detail?: ValidationError[];
26
26
  };
27
- export type ModuleResponse = {
28
- id: string;
29
- name: string;
30
- };
31
- export type ExecutionResponse = {
32
- id: string;
33
- startedAt: string | null;
34
- completedAt: string | null;
35
- status: string | null;
36
- conclusion: string | null;
37
- };
38
- export type UserResponse = {
39
- id: string;
40
- name: string;
41
- email: string;
42
- ip?: string | null;
43
- };
44
- export type ReportResponse = {
45
- id: string;
46
- "module": ModuleResponse | null;
47
- execution: ExecutionResponse | null;
48
- mode: string;
49
- sourceBranch: string;
50
- targetBranch?: string | null;
51
- createdBy: UserResponse;
52
- createdAt: string;
53
- updatedAt: string;
54
- filesCount: number | null;
55
- issuesCount: number | null;
56
- pullRequestLink?: string | null;
57
- errorLog?: string | null;
58
- };
59
- export type ListApplicationReportResponse = {
60
- /** List of reports */
61
- items: ReportResponse[];
62
- /** Number of reports */
63
- itemsCount: number;
64
- /** Last evaluated key */
65
- lastEvaluatedKey: string | null;
66
- };
67
- 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";
68
- 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";
69
- export type InvalidPayloadDetails = {
70
- code: BadRequestExceptionTypes | ExceptionType;
71
- field: string | null;
72
- message?: string | null;
73
- };
74
- export type HttpErrorResponse = {
75
- status: string;
76
- code: ExceptionType;
77
- details: string;
78
- validationDetails?: InvalidPayloadDetails[] | null;
79
- };
80
- export type BodyCreateApplicationsBatchServiceV1ApplicationsBatchPost = {
81
- file: Blob;
82
- };
83
- export type RepositoryRequest = {
84
- url: string;
85
- defaultBranch: string;
86
- };
87
- export type CreateApplicationRequest = {
88
- /** Application name */
89
- name?: string | null;
90
- /** Repository */
91
- repository: RepositoryRequest;
92
- };
93
- export type RepositoryResponse = {
94
- url: string;
95
- defaultBranch: string;
96
- };
97
- export type ReportResponse2 = {
98
- id: string;
99
- execution: ExecutionResponse | null;
100
- mode: string;
101
- moduleId: string | null;
102
- sourceBranch: string;
103
- targetBranch?: string | null;
104
- createdBy: UserResponse;
105
- createdAt: string;
106
- updatedAt: string;
107
- filesCount: number | null;
108
- issuesCount: number | null;
109
- pullRequestLink?: string | null;
110
- errorLog?: string | null;
111
- };
112
- export type ApplicationResponse = {
113
- /** Application ID */
114
- id: string;
115
- /** Application name */
116
- name: string;
117
- /** Application creation date */
118
- createdAt?: string | null;
119
- /** Application creation user */
120
- createdBy?: string | null;
121
- /** Repository */
122
- repository: RepositoryResponse | null;
123
- lastModuleReport: ReportResponse2 | null;
124
- };
125
- export type ListApplicationResponse = {
126
- /** List of applications */
127
- items: ApplicationResponse[];
128
- /** Number of applications */
129
- itemsCount: number;
130
- /** Last evaluated key */
131
- lastEvaluatedKey: string | null;
132
- };
133
- export type RepositoryRequest2 = {
134
- url?: string | null;
135
- defaultBranch?: string | null;
136
- };
137
- export type PutApplicationRequest = {
138
- /** Application name */
139
- name?: string | null;
140
- /** Repository */
141
- repository?: RepositoryRequest2 | null;
142
- };
143
27
  export type ModuleType = "repository" | "program_group";
144
28
  export type InputRequest = {
145
29
  name: string;
@@ -165,13 +49,47 @@ export type CreateModuleRequest = {
165
49
  inputs: InputRequest[];
166
50
  /** Module studio */
167
51
  studio: string;
52
+ /** Module studio */
53
+ constants?: {
54
+ [key: string]: any;
55
+ } | null;
56
+ };
57
+ 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_0011_EMPTY_SPREADSHEET" | "CODE_SHIFT_API_0012_REPOSITORY_NOT_EXISTS_IN_SCM" | "CODE_SHIFT_API_0013_SCM_BRANCH_NOT_EXISTS_EXCEPTION" | "CODE_SHIFT_API_0014_ACCOUNT_NOT_FOUND_EXCEPTION" | "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_3120_SCM_GET_BRANCHES_FAILURE" | "CODE_SHIFT_API_3130_SCM_GET_SCM_REPOSITORY_FETCH_FAILURE" | "CODE_SHIFT_API_3131_SCM_REPOSITORY_NOT_FOUND" | "CODE_SHIFT_API_3140_SCM_GET_BRANCH_FAILURE" | "CODE_SHIFT_API_3142_SCM_GET_BRANCHES_NOT_FOUND" | "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";
58
+ 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";
59
+ export type InvalidPayloadDetails = {
60
+ code: BadRequestExceptionTypes | ExceptionType;
61
+ field: string | null;
62
+ message?: string | null;
63
+ };
64
+ export type SuggestedMessage = {
65
+ ptBr: string | null;
66
+ enUs: string | null;
67
+ };
68
+ export type InvalidPayloadDetailsRead = {
69
+ code: BadRequestExceptionTypes | ExceptionType;
70
+ field: string | null;
71
+ message?: string | null;
72
+ suggestedMessages: SuggestedMessage | null;
73
+ };
74
+ export type HttpErrorResponse = {
75
+ status: string;
76
+ code: ExceptionType;
77
+ details: string;
78
+ validationDetails?: InvalidPayloadDetails[] | null;
79
+ };
80
+ export type HttpErrorResponseRead = {
81
+ status: string;
82
+ code: ExceptionType;
83
+ details: string;
84
+ validationDetails?: InvalidPayloadDetailsRead[] | null;
85
+ suggestedMessages: SuggestedMessage | null;
168
86
  };
169
87
  export type InputResponse = {
170
88
  name: string;
171
89
  required: boolean;
172
90
  "default": string;
173
91
  };
174
- export type ModuleResponse2 = {
92
+ export type ModuleResponse = {
175
93
  /** Module ID */
176
94
  id: string;
177
95
  /** Module type */
@@ -192,10 +110,14 @@ export type ModuleResponse2 = {
192
110
  tags: string[];
193
111
  /** Module inputs */
194
112
  inputs: InputResponse[];
113
+ /** Module studio */
114
+ constants?: {
115
+ [key: string]: any;
116
+ } | null;
195
117
  };
196
118
  export type ListModuleResponse = {
197
119
  /** List of modules */
198
- items: ModuleResponse2[];
120
+ items: ModuleResponse[];
199
121
  /** Number of modules */
200
122
  itemsCount: number;
201
123
  /** Last evaluated key */
@@ -218,6 +140,10 @@ export type PutModuleRequest = {
218
140
  tags?: string[] | null;
219
141
  /** Inputs of module */
220
142
  inputs?: InputRequest[] | null;
143
+ /** Module studio */
144
+ constants?: {
145
+ [key: string]: any;
146
+ } | null;
221
147
  };
222
148
  export type Mode = "scan" | "fix";
223
149
  export type ModuleDispatchRequest = {
@@ -241,8 +167,8 @@ export type DependsOnRequest = {
241
167
  description: string;
242
168
  };
243
169
  export type IssuesRequest = {
244
- ref: string;
245
- line: number;
170
+ ref?: string | null;
171
+ line?: number | null;
246
172
  description: string;
247
173
  severity?: string | null;
248
174
  recommendation?: string | null;
@@ -251,27 +177,41 @@ export type TargetFilesRequest = {
251
177
  fileName: string;
252
178
  filePath: string;
253
179
  details?: string | null;
254
- dependsOn: DependsOnRequest[];
255
- issues: IssuesRequest[];
180
+ dependsOn?: DependsOnRequest[] | null;
181
+ issues?: IssuesRequest[] | null;
256
182
  };
257
183
  export type PutReportRequest = {
258
184
  filesCount?: number;
259
185
  issuesCount: number;
260
186
  totalFilesCount?: number | null;
261
187
  analyzedFilesCount?: number | null;
188
+ changedFilesCount?: number | null;
262
189
  pullRequestLink?: string | null;
263
190
  commitHash?: string | null;
264
191
  targetFiles: TargetFilesRequest[];
265
192
  };
266
- export type ModuleResponse3 = {
193
+ export type ModuleResponse2 = {
267
194
  id: string;
268
195
  name: string;
269
196
  };
270
- export type ApplicationResponse2 = {
197
+ export type ApplicationResponse = {
271
198
  id: string;
272
199
  name: string;
273
200
  url: string;
274
201
  };
202
+ export type ExecutionResponse = {
203
+ id: string;
204
+ startedAt: string | null;
205
+ completedAt: string | null;
206
+ status: string | null;
207
+ conclusion: string | null;
208
+ };
209
+ export type UserResponse = {
210
+ id: string;
211
+ name: string;
212
+ email: string;
213
+ ip?: string | null;
214
+ };
275
215
  export type ProgramGroupResponse = {
276
216
  id: string;
277
217
  name: string;
@@ -282,8 +222,8 @@ export type DependsOnResponse = {
282
222
  description: string;
283
223
  };
284
224
  export type IssuesResponse = {
285
- ref: string;
286
- line: number;
225
+ ref?: string | null;
226
+ line?: number | null;
287
227
  description: string;
288
228
  lineLink?: string | null;
289
229
  severity?: string | null;
@@ -293,13 +233,23 @@ export type TargetFilesResponse = {
293
233
  fileName: string;
294
234
  filePath: string;
295
235
  details?: string | null;
296
- dependsOn: DependsOnResponse[];
297
- issues: IssuesResponse[];
236
+ dependsOn?: DependsOnResponse[] | null;
237
+ issues?: IssuesResponse[] | null;
238
+ };
239
+ export type ReportStatus = "waiting_dispatch" | "waiting_runner" | "dispatch_failure" | "in_progress" | "suspended" | "error" | "success" | "cancelled";
240
+ export type PullRequestResponse = {
241
+ state: string | null;
242
+ merged: boolean | null;
243
+ mergedBy: string | null;
244
+ mergedAt: string | null;
245
+ createdAt: string | null;
246
+ updatedAt: string | null;
247
+ lastSyncAt: string | null;
298
248
  };
299
249
  export type GetReportResponse = {
300
250
  id: string;
301
- "module": ModuleResponse3 | null;
302
- application: ApplicationResponse2 | null;
251
+ "module": ModuleResponse2 | null;
252
+ application: ApplicationResponse | null;
303
253
  execution: ExecutionResponse | null;
304
254
  mode: string;
305
255
  sourceBranch: string | null;
@@ -309,6 +259,7 @@ export type GetReportResponse = {
309
259
  updatedAt: string;
310
260
  filesCount: number | null;
311
261
  totalFilesCount: number | null;
262
+ changedFilesCount: number | null;
312
263
  analyzedFilesCount: number | null;
313
264
  issuesFilesCount: number | null;
314
265
  issuesCount: number | null;
@@ -317,6 +268,14 @@ export type GetReportResponse = {
317
268
  programGroup: ProgramGroupResponse | null;
318
269
  targetFiles: TargetFilesResponse[];
319
270
  errorLog?: string | null;
271
+ status: ReportStatus | null;
272
+ scmPullRequestData: PullRequestResponse | null;
273
+ };
274
+ export type GetPullRequest = {
275
+ content: string;
276
+ };
277
+ export type GetPullRequest = {
278
+ content: string;
320
279
  };
321
280
  export type SearchRepoScmResponse = {
322
281
  id: string;
@@ -326,13 +285,13 @@ export type GetStatusSearchRepoScmResponse = {
326
285
  status: SearchRepositoryStatus;
327
286
  errorLog?: string | null;
328
287
  };
329
- export type ModuleResponse4 = {
288
+ export type ModuleResponse3 = {
330
289
  id: string;
331
290
  name: string;
332
291
  };
333
- export type ReportResponse3 = {
292
+ export type ReportResponse = {
334
293
  id: string;
335
- "module": ModuleResponse4;
294
+ "module": ModuleResponse3;
336
295
  execution: ExecutionResponse | null;
337
296
  mode: string;
338
297
  sourceBranch: string;
@@ -344,10 +303,11 @@ export type ReportResponse3 = {
344
303
  issuesCount: number | null;
345
304
  pullRequestLink?: string | null;
346
305
  errorLog?: string | null;
306
+ status: ReportStatus | null;
347
307
  };
348
308
  export type ListRepositoryReportResponse = {
349
309
  /** List of reports */
350
- items: ReportResponse3[];
310
+ items: ReportResponse[];
351
311
  /** Number of reports */
352
312
  itemsCount: number;
353
313
  /** Last evaluated key */
@@ -361,51 +321,75 @@ export type CreateRepositoryRequest = {
361
321
  defaultBranch: string;
362
322
  tags?: string[] | null;
363
323
  };
364
- export type ReportResponse4 = {
324
+ export type ReportResponse2 = {
365
325
  id: string;
366
326
  execution: ExecutionResponse | null;
367
327
  mode: string;
368
328
  moduleId: string;
369
329
  sourceBranch: string;
370
330
  targetBranch?: string | null;
371
- createdBy: UserResponse;
331
+ createdBy: UserResponse | null;
372
332
  createdAt: string;
373
333
  updatedAt: string;
374
334
  filesCount: number | null;
375
335
  issuesCount: number | null;
376
336
  pullRequestLink?: string | null;
377
337
  errorLog?: string | null;
338
+ status: ReportStatus | null;
378
339
  };
379
- export type RepositoryResponse2 = {
340
+ export type RepositoryResponse = {
380
341
  /** Repository ID */
381
342
  id: string;
382
343
  /** Repository creation date */
383
344
  createdAt?: string | null;
384
345
  /** Repository creation user */
385
346
  createdBy?: string | null;
386
- lastModuleReport: ReportResponse4 | null;
347
+ lastModuleReport: ReportResponse2 | null;
387
348
  tags: string[];
388
349
  url: string;
389
350
  defaultBranch: string;
390
351
  };
391
352
  export type ListRepositoryResponse = {
392
353
  /** List of applications */
393
- items: RepositoryResponse2[];
354
+ items: RepositoryResponse[];
394
355
  /** Number of applications */
395
356
  itemsCount: number;
396
357
  /** Last evaluated key */
397
358
  lastEvaluatedKey?: string | null;
398
359
  };
360
+ export type ListBranchesResponse = {
361
+ /** List of all branches */
362
+ branches: string[];
363
+ };
399
364
  export type PutRepositoryRequest = {
400
365
  url?: string | null;
401
366
  defaultBranch?: string | null;
402
367
  tags?: string[] | null;
403
368
  };
369
+ export type ValidateScmUrlRequest = {
370
+ url?: string | null;
371
+ };
404
372
  export type GetAccountSettingsRequest = {
405
373
  maxSimultaneousExecution: number | null;
374
+ createRepositoryValidateBranch: boolean | null;
375
+ dispatchModuleValidateBranch: boolean | null;
376
+ createRepositoryUrlValidate?: boolean | null;
377
+ dispatchRepositoryUrlValidate?: boolean | null;
378
+ pullRequestSync: boolean | null;
379
+ pullRequestSyncMinHours: number | null;
380
+ pullRequestSyncMaxHours: number | null;
381
+ pullRequestSyncReprocessTime: number | null;
406
382
  };
407
383
  export type CreateAccountSettingsRequest = {
408
- maxSimultaneousExecution: number;
384
+ maxSimultaneousExecution?: number | null;
385
+ createRepositoryUrlValidate?: boolean | null;
386
+ dispatchRepositoryUrlValidate?: boolean | null;
387
+ pullRequestSync?: boolean | null;
388
+ createRepositoryValidateBranch?: boolean | null;
389
+ dispatchModuleValidateBranch?: boolean | null;
390
+ pullRequestSyncMinHours?: number | null;
391
+ pullRequestSyncMaxHours?: number | null;
392
+ pullRequestSyncReprocessTime?: number | null;
409
393
  };
410
394
  export type CreateIntegrationRequest = {
411
395
  name: string;
@@ -445,7 +429,7 @@ export type BodyCreateProgramGroupServiceV1ProgramGroupsPost = {
445
429
  export type CreateProgramGroupResponse = {
446
430
  id: string;
447
431
  };
448
- export type ReportResponse5 = {
432
+ export type ReportResponse3 = {
449
433
  id: string;
450
434
  execution: ExecutionResponse | null;
451
435
  mode: string;
@@ -457,6 +441,7 @@ export type ReportResponse5 = {
457
441
  issuesCount: number | null;
458
442
  pullRequestLink?: string | null;
459
443
  errorLog?: string | null;
444
+ status: ReportStatus | null;
460
445
  };
461
446
  export type ProgramGroupResponse2 = {
462
447
  id: string;
@@ -465,10 +450,10 @@ export type ProgramGroupResponse2 = {
465
450
  tags: string[];
466
451
  components: any[];
467
452
  accountId: string;
468
- createdBy: string;
453
+ createdBy: string | null;
469
454
  createdAt: string;
470
455
  updatedAt: string;
471
- lastModuleReport: ReportResponse5 | null;
456
+ lastModuleReport: ReportResponse3 | null;
472
457
  };
473
458
  export type ListProgramGroupResponse = {
474
459
  items: ProgramGroupResponse2[];
@@ -488,13 +473,18 @@ export type ProgramGroupResponse3 = {
488
473
  export type BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut = {
489
474
  file?: Blob | null;
490
475
  };
491
- export type ModuleResponse5 = {
476
+ export type PutProgramGroupComponentsRequest = {
477
+ appl_name: string;
478
+ component_type: string;
479
+ component: string;
480
+ };
481
+ export type ModuleResponse4 = {
492
482
  id: string;
493
483
  name: string;
494
484
  };
495
- export type ReportResponse6 = {
485
+ export type ReportResponse4 = {
496
486
  id: string;
497
- "module": ModuleResponse5;
487
+ "module": ModuleResponse4;
498
488
  execution: ExecutionResponse | null;
499
489
  mode: string;
500
490
  createdBy: UserResponse;
@@ -504,13 +494,129 @@ export type ReportResponse6 = {
504
494
  issuesCount: number | null;
505
495
  pullRequestLink?: string | null;
506
496
  errorLog?: string | null;
497
+ status: ReportStatus | null;
507
498
  };
508
499
  export type ListProgramGroupReportResponse = {
509
500
  /** List of reports */
510
- items: ReportResponse6[];
501
+ items: ReportResponse4[];
511
502
  /** Number of reports */
512
503
  itemsCount: number;
513
504
  };
505
+ export type ReportsWithErrorsResponse = {
506
+ user_id?: string | null;
507
+ user_name?: string | null;
508
+ user_email?: string | null;
509
+ account_id?: string | null;
510
+ account_slug?: string | null;
511
+ error_log?: string | null;
512
+ count_errors?: number | null;
513
+ };
514
+ export type GeneralReportSuccessAndErrorsResponses = {
515
+ success_count?: number | null;
516
+ error_count?: number | null;
517
+ reports_with_errors?: ReportsWithErrorsResponse[];
518
+ };
519
+ export type RepositoryLastReportStatusResponse = {
520
+ repositoryUrl: string;
521
+ moduleName: string;
522
+ mode: string;
523
+ reportCreatedAt: string;
524
+ reportCreatedBy: string;
525
+ totalFiles: number | null;
526
+ totalFilesAnalyzed: number | null;
527
+ totalFilesIssues: number | null;
528
+ totalFilesChanged: number | null;
529
+ totalIssues: number | null;
530
+ };
531
+ export type AnalyticsRepositoryLastReportStatusResponse = {
532
+ totalFiles?: number;
533
+ totalFilesAnalyzed?: number;
534
+ totalFilesIssues?: number;
535
+ totalFilesChanged?: number;
536
+ totalIssues?: number;
537
+ items: RepositoryLastReportStatusResponse[];
538
+ totalItems?: number;
539
+ };
540
+ export type RepositoryUsageResponse = {
541
+ repositoryUrl: string;
542
+ totalScan?: number;
543
+ totalScanSuccess?: number;
544
+ totalScanFailure?: number;
545
+ totalFix?: number;
546
+ totalFixSuccess?: number;
547
+ totalFixFailure?: number;
548
+ };
549
+ export type AnalyticsRepositoryUsageResponse = {
550
+ totalScan?: number;
551
+ totalScanSuccess?: number;
552
+ totalScanFailure?: number;
553
+ totalFix?: number;
554
+ totalFixSuccess?: number;
555
+ totalFixFailure?: number;
556
+ items: RepositoryUsageResponse[];
557
+ totalItems?: number;
558
+ };
559
+ export type UserUsageResponse = {
560
+ name: string;
561
+ email: string;
562
+ totalScan?: number;
563
+ totalScanSuccess?: number;
564
+ totalScanFailure?: number;
565
+ totalFix?: number;
566
+ totalFixSuccess?: number;
567
+ totalFixFailure?: number;
568
+ };
569
+ export type AnalyticsUserUsageResponse = {
570
+ totalScan?: number;
571
+ totalScanSuccess?: number;
572
+ totalScanFailure?: number;
573
+ totalFix?: number;
574
+ totalFixSuccess?: number;
575
+ totalFixFailure?: number;
576
+ items: UserUsageResponse[];
577
+ totalItems?: number;
578
+ };
579
+ export type ProgramGroupLastReportStatusResponse = {
580
+ repositoryUrl: string;
581
+ createdBy: string;
582
+ createdAt: string;
583
+ totalFiles?: number;
584
+ totalFilesAnalyzed?: number;
585
+ totalFilesIssues?: number;
586
+ totalFilesChanged?: number;
587
+ totalIssues?: number;
588
+ };
589
+ export type AnalyticsProgramGroupsLastReportStatusResponse = {
590
+ totalUsed?: number;
591
+ totalFiles?: number;
592
+ totalFilesAnalyzed?: number;
593
+ totalFilesIssues?: number;
594
+ totalFilesChanged?: number;
595
+ totalIssues?: number;
596
+ items: ProgramGroupLastReportStatusResponse[];
597
+ totalItems?: number;
598
+ };
599
+ export type ProgramGroupsUsageResponse = {
600
+ name: string;
601
+ createdBy: string;
602
+ totalRepos?: number;
603
+ totalScan?: number;
604
+ totalScanSuccess?: number;
605
+ totalScanFailure?: number;
606
+ totalFix?: number;
607
+ totalFixSuccess?: number;
608
+ totalFixFailure?: number;
609
+ };
610
+ export type AnalyticsProgramGroupsUsageResponse = {
611
+ totalScan?: number;
612
+ totalScanSuccess?: number;
613
+ totalScanFailure?: number;
614
+ totalFix?: number;
615
+ totalFixSuccess?: number;
616
+ totalFixFailure?: number;
617
+ items: ProgramGroupsUsageResponse[];
618
+ totalItems?: number;
619
+ };
514
620
  export type TagResponse = {
515
621
  name: string;
516
622
  };
@@ -539,530 +645,298 @@ export function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
539
645
  }));
540
646
  }
541
647
  /**
542
- * List Application Report
648
+ * Create Module Service
543
649
  */
544
- export function listApplicationReportV1ApplicationsApplicationIdReportsGet({ applicationId, pageSize, page, lastEvaluatedKey, authorization }: {
545
- applicationId: string;
546
- pageSize?: number;
547
- page?: number;
548
- lastEvaluatedKey?: string;
650
+ export function createModuleServiceV1ModulesPost({ authorization, xAccountSlug, createModuleRequest }: {
549
651
  authorization: string;
652
+ xAccountSlug?: any;
653
+ createModuleRequest: CreateModuleRequest;
550
654
  }, opts?: Oazapfts.RequestOpts) {
551
655
  return oazapfts.ok(oazapfts.fetchJson<{
552
656
  status: 200;
553
- data: ListApplicationReportResponse;
657
+ data: any;
554
658
  } | {
555
659
  status: 400;
556
- data: HttpErrorResponse;
660
+ data: HttpErrorResponseRead;
557
661
  } | {
558
662
  status: 401;
559
- data: HttpErrorResponse;
663
+ data: HttpErrorResponseRead;
560
664
  } | {
561
665
  status: 404;
562
- data: HttpErrorResponse;
666
+ data: HttpErrorResponseRead;
563
667
  } | {
564
668
  status: 422;
565
669
  } | {
566
670
  status: 500;
567
- data: HttpErrorResponse;
671
+ data: HttpErrorResponseRead;
568
672
  } | {
569
673
  status: 503;
570
- data: HttpErrorResponse;
571
- }>(`/v1/applications/${encodeURIComponent(applicationId)}/reports${QS.query(QS.explode({
572
- pageSize,
573
- page,
574
- lastEvaluatedKey
575
- }))}`, {
674
+ data: HttpErrorResponseRead;
675
+ }>("/v1/modules", oazapfts.json({
576
676
  ...opts,
677
+ method: "POST",
678
+ body: createModuleRequest,
577
679
  headers: oazapfts.mergeHeaders(opts?.headers, {
578
- authorization
680
+ authorization,
681
+ "x-account-slug": xAccountSlug
579
682
  })
580
- }));
683
+ })));
581
684
  }
582
685
  /**
583
- * Create Applications Batch Service
686
+ * List Modules Service
584
687
  */
585
- export function createApplicationsBatchServiceV1ApplicationsBatchPost({ authorization, bodyCreateApplicationsBatchServiceV1ApplicationsBatchPost }: {
688
+ export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, lastEvaluatedKey, xAccountSlug, authorization }: {
689
+ pageSize?: number;
690
+ moduleType?: ModuleType | null;
691
+ page?: number;
692
+ lastEvaluatedKey?: string;
693
+ xAccountSlug?: any;
586
694
  authorization: string;
587
- bodyCreateApplicationsBatchServiceV1ApplicationsBatchPost: BodyCreateApplicationsBatchServiceV1ApplicationsBatchPost;
588
695
  }, opts?: Oazapfts.RequestOpts) {
589
696
  return oazapfts.ok(oazapfts.fetchJson<{
590
697
  status: 200;
591
- data: any;
592
- } | {
593
- status: 207;
594
- data: HttpErrorResponse;
698
+ data: ListModuleResponse;
595
699
  } | {
596
700
  status: 400;
597
- data: HttpErrorResponse;
701
+ data: HttpErrorResponseRead;
598
702
  } | {
599
703
  status: 401;
600
- data: HttpErrorResponse;
704
+ data: HttpErrorResponseRead;
601
705
  } | {
602
706
  status: 404;
603
- data: HttpErrorResponse;
707
+ data: HttpErrorResponseRead;
604
708
  } | {
605
709
  status: 422;
606
710
  } | {
607
711
  status: 500;
608
- data: HttpErrorResponse;
712
+ data: HttpErrorResponseRead;
609
713
  } | {
610
714
  status: 503;
611
- data: HttpErrorResponse;
612
- }>("/v1/applications/batch", oazapfts.multipart({
715
+ data: HttpErrorResponseRead;
716
+ }>(`/v1/modules${QS.query(QS.explode({
717
+ pageSize,
718
+ moduleType,
719
+ page,
720
+ lastEvaluatedKey
721
+ }))}`, {
613
722
  ...opts,
614
- method: "POST",
615
- body: bodyCreateApplicationsBatchServiceV1ApplicationsBatchPost,
616
723
  headers: oazapfts.mergeHeaders(opts?.headers, {
724
+ "x-account-slug": xAccountSlug,
617
725
  authorization
618
726
  })
619
- })));
727
+ }));
620
728
  }
621
729
  /**
622
- * Create Application Service
730
+ * Delete Module Service
623
731
  */
624
- export function createApplicationServiceV1ApplicationsPost({ authorization, createApplicationRequest }: {
732
+ export function deleteModuleServiceV1ModulesModuleIdDelete({ moduleId, authorization, xAccountSlug }: {
733
+ moduleId: string;
625
734
  authorization: string;
626
- createApplicationRequest: CreateApplicationRequest;
735
+ xAccountSlug?: any;
627
736
  }, opts?: Oazapfts.RequestOpts) {
628
737
  return oazapfts.ok(oazapfts.fetchJson<{
629
738
  status: 200;
630
739
  data: any;
631
740
  } | {
632
741
  status: 400;
633
- data: HttpErrorResponse;
742
+ data: HttpErrorResponseRead;
634
743
  } | {
635
744
  status: 401;
636
- data: HttpErrorResponse;
745
+ data: HttpErrorResponseRead;
637
746
  } | {
638
747
  status: 404;
639
- data: HttpErrorResponse;
748
+ data: HttpErrorResponseRead;
640
749
  } | {
641
750
  status: 422;
642
751
  } | {
643
752
  status: 500;
644
- data: HttpErrorResponse;
753
+ data: HttpErrorResponseRead;
645
754
  } | {
646
755
  status: 503;
647
- data: HttpErrorResponse;
648
- }>("/v1/applications", oazapfts.json({
756
+ data: HttpErrorResponseRead;
757
+ }>(`/v1/modules/${encodeURIComponent(moduleId)}`, {
649
758
  ...opts,
650
- method: "POST",
651
- body: createApplicationRequest,
759
+ method: "DELETE",
652
760
  headers: oazapfts.mergeHeaders(opts?.headers, {
653
- authorization
761
+ authorization,
762
+ "x-account-slug": xAccountSlug
654
763
  })
655
- })));
764
+ }));
656
765
  }
657
766
  /**
658
- * List Application Service
767
+ * Update Module Service
659
768
  */
660
- export function listApplicationServiceV1ApplicationsGet({ pageSize, page, lastEvaluatedKey, filter, moduleId, authorization }: {
661
- pageSize?: number;
662
- page?: number;
663
- lastEvaluatedKey?: string;
664
- filter?: string;
665
- moduleId?: string;
769
+ export function updateModuleServiceV1ModulesModuleIdPut({ moduleId, authorization, xAccountSlug, putModuleRequest }: {
770
+ moduleId: string;
666
771
  authorization: string;
772
+ xAccountSlug?: any;
773
+ putModuleRequest: PutModuleRequest;
667
774
  }, opts?: Oazapfts.RequestOpts) {
668
775
  return oazapfts.ok(oazapfts.fetchJson<{
669
776
  status: 200;
670
- data: ListApplicationResponse;
777
+ data: any;
671
778
  } | {
672
779
  status: 400;
673
- data: HttpErrorResponse;
780
+ data: HttpErrorResponseRead;
674
781
  } | {
675
782
  status: 401;
676
- data: HttpErrorResponse;
783
+ data: HttpErrorResponseRead;
677
784
  } | {
678
785
  status: 404;
679
- data: HttpErrorResponse;
786
+ data: HttpErrorResponseRead;
680
787
  } | {
681
788
  status: 422;
682
789
  } | {
683
790
  status: 500;
684
- data: HttpErrorResponse;
791
+ data: HttpErrorResponseRead;
685
792
  } | {
686
793
  status: 503;
687
- data: HttpErrorResponse;
688
- }>(`/v1/applications${QS.query(QS.explode({
689
- pageSize,
690
- page,
691
- lastEvaluatedKey,
692
- filter,
693
- moduleId
694
- }))}`, {
794
+ data: HttpErrorResponseRead;
795
+ }>(`/v1/modules/${encodeURIComponent(moduleId)}`, oazapfts.json({
695
796
  ...opts,
797
+ method: "PUT",
798
+ body: putModuleRequest,
696
799
  headers: oazapfts.mergeHeaders(opts?.headers, {
697
- authorization
800
+ authorization,
801
+ "x-account-slug": xAccountSlug
698
802
  })
699
- }));
803
+ })));
700
804
  }
701
805
  /**
702
- * Get Application By Id Service
806
+ * Dispatch Module Service
703
807
  */
704
- export function getApplicationByIdServiceV1ApplicationsApplicationIdGet({ applicationId, authorization }: {
705
- applicationId: string;
808
+ export function dispatchModuleServiceV1ModulesDispatchesPost({ authorization, body }: {
706
809
  authorization: string;
810
+ body: ModuleDispatchRequest[];
707
811
  }, opts?: Oazapfts.RequestOpts) {
708
812
  return oazapfts.ok(oazapfts.fetchJson<{
709
813
  status: 200;
710
- data: ApplicationResponse;
814
+ data: any;
711
815
  } | {
712
816
  status: 400;
713
- data: HttpErrorResponse;
817
+ data: HttpErrorResponseRead;
714
818
  } | {
715
819
  status: 401;
716
- data: HttpErrorResponse;
820
+ data: HttpErrorResponseRead;
717
821
  } | {
718
822
  status: 404;
719
- data: HttpErrorResponse;
823
+ data: HttpErrorResponseRead;
720
824
  } | {
721
825
  status: 422;
722
826
  } | {
723
827
  status: 500;
724
- data: HttpErrorResponse;
828
+ data: HttpErrorResponseRead;
725
829
  } | {
726
830
  status: 503;
727
- data: HttpErrorResponse;
728
- }>(`/v1/applications/${encodeURIComponent(applicationId)}`, {
831
+ data: HttpErrorResponseRead;
832
+ }>("/v1/modules/dispatches", oazapfts.json({
729
833
  ...opts,
834
+ method: "POST",
835
+ body,
730
836
  headers: oazapfts.mergeHeaders(opts?.headers, {
731
837
  authorization
732
838
  })
733
- }));
734
- }
735
- /**
736
- * Delete Application Service
737
- */
738
- export function deleteApplicationServiceV1ApplicationsApplicationIdDelete({ applicationId, authorization }: {
739
- applicationId: string;
740
- authorization: string;
741
- }, opts?: Oazapfts.RequestOpts) {
742
- return oazapfts.ok(oazapfts.fetchJson<{
743
- status: 200;
744
- data: any;
745
- } | {
746
- status: 400;
747
- data: HttpErrorResponse;
748
- } | {
749
- status: 401;
750
- data: HttpErrorResponse;
751
- } | {
752
- status: 404;
753
- data: HttpErrorResponse;
754
- } | {
755
- status: 422;
756
- } | {
757
- status: 500;
758
- data: HttpErrorResponse;
759
- } | {
760
- status: 503;
761
- data: HttpErrorResponse;
762
- }>(`/v1/applications/${encodeURIComponent(applicationId)}`, {
763
- ...opts,
764
- method: "DELETE",
765
- headers: oazapfts.mergeHeaders(opts?.headers, {
766
- authorization
767
- })
768
- }));
769
- }
770
- /**
771
- * Update Application Service
772
- */
773
- export function updateApplicationServiceV1ApplicationsApplicationIdPut({ applicationId, authorization, putApplicationRequest }: {
774
- applicationId: string;
775
- authorization: string;
776
- putApplicationRequest: PutApplicationRequest;
777
- }, opts?: Oazapfts.RequestOpts) {
778
- return oazapfts.ok(oazapfts.fetchJson<{
779
- status: 200;
780
- data: any;
781
- } | {
782
- status: 400;
783
- data: HttpErrorResponse;
784
- } | {
785
- status: 401;
786
- data: HttpErrorResponse;
787
- } | {
788
- status: 404;
789
- data: HttpErrorResponse;
790
- } | {
791
- status: 422;
792
- } | {
793
- status: 500;
794
- data: HttpErrorResponse;
795
- } | {
796
- status: 503;
797
- data: HttpErrorResponse;
798
- }>(`/v1/applications/${encodeURIComponent(applicationId)}`, oazapfts.json({
799
- ...opts,
800
- method: "PUT",
801
- body: putApplicationRequest,
802
- headers: oazapfts.mergeHeaders(opts?.headers, {
803
- authorization
804
- })
805
- })));
806
- }
807
- /**
808
- * Create Module Service
809
- */
810
- export function createModuleServiceV1ModulesPost({ authorization, xAccountSlug, xAccountId, createModuleRequest }: {
811
- authorization: string;
812
- xAccountSlug?: any;
813
- xAccountId?: any;
814
- createModuleRequest: CreateModuleRequest;
815
- }, opts?: Oazapfts.RequestOpts) {
816
- return oazapfts.ok(oazapfts.fetchJson<{
817
- status: 200;
818
- data: any;
819
- } | {
820
- status: 400;
821
- data: HttpErrorResponse;
822
- } | {
823
- status: 401;
824
- data: HttpErrorResponse;
825
- } | {
826
- status: 404;
827
- data: HttpErrorResponse;
828
- } | {
829
- status: 422;
830
- } | {
831
- status: 500;
832
- data: HttpErrorResponse;
833
- } | {
834
- status: 503;
835
- data: HttpErrorResponse;
836
- }>("/v1/modules", oazapfts.json({
837
- ...opts,
838
- method: "POST",
839
- body: createModuleRequest,
840
- headers: oazapfts.mergeHeaders(opts?.headers, {
841
- authorization,
842
- "x-account-slug": xAccountSlug,
843
- "x-account-id": xAccountId
844
- })
845
839
  })));
846
840
  }
847
841
  /**
848
- * List Modules Service
849
- */
850
- export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, lastEvaluatedKey, authorization }: {
851
- pageSize?: number;
852
- moduleType?: ModuleType | null;
853
- page?: number;
854
- lastEvaluatedKey?: string;
855
- authorization: string;
856
- }, opts?: Oazapfts.RequestOpts) {
857
- return oazapfts.ok(oazapfts.fetchJson<{
858
- status: 200;
859
- data: ListModuleResponse;
860
- } | {
861
- status: 400;
862
- data: HttpErrorResponse;
863
- } | {
864
- status: 401;
865
- data: HttpErrorResponse;
866
- } | {
867
- status: 404;
868
- data: HttpErrorResponse;
869
- } | {
870
- status: 422;
871
- } | {
872
- status: 500;
873
- data: HttpErrorResponse;
874
- } | {
875
- status: 503;
876
- data: HttpErrorResponse;
877
- }>(`/v1/modules${QS.query(QS.explode({
878
- pageSize,
879
- moduleType,
880
- page,
881
- lastEvaluatedKey
882
- }))}`, {
883
- ...opts,
884
- headers: oazapfts.mergeHeaders(opts?.headers, {
885
- authorization
886
- })
887
- }));
888
- }
889
- /**
890
- * Delete Module Service
891
- */
892
- export function deleteModuleServiceV1ModulesModuleIdDelete({ moduleId, authorization, xAccountSlug }: {
893
- moduleId: string;
894
- authorization: string;
895
- xAccountSlug?: any;
896
- }, opts?: Oazapfts.RequestOpts) {
897
- return oazapfts.ok(oazapfts.fetchJson<{
898
- status: 200;
899
- data: any;
900
- } | {
901
- status: 400;
902
- data: HttpErrorResponse;
903
- } | {
904
- status: 401;
905
- data: HttpErrorResponse;
906
- } | {
907
- status: 404;
908
- data: HttpErrorResponse;
909
- } | {
910
- status: 422;
911
- } | {
912
- status: 500;
913
- data: HttpErrorResponse;
914
- } | {
915
- status: 503;
916
- data: HttpErrorResponse;
917
- }>(`/v1/modules/${encodeURIComponent(moduleId)}`, {
918
- ...opts,
919
- method: "DELETE",
920
- headers: oazapfts.mergeHeaders(opts?.headers, {
921
- authorization,
922
- "x-account-slug": xAccountSlug
923
- })
924
- }));
925
- }
926
- /**
927
- * Update Module Service
842
+ * Put Report
928
843
  */
929
- export function updateModuleServiceV1ModulesModuleIdPut({ moduleId, authorization, xAccountSlug, putModuleRequest }: {
930
- moduleId: string;
844
+ export function putReportV1ReportsReportIdPut({ reportId, authorization, putReportRequest }: {
845
+ reportId: string;
931
846
  authorization: string;
932
- xAccountSlug?: any;
933
- putModuleRequest: PutModuleRequest;
847
+ putReportRequest: PutReportRequest;
934
848
  }, opts?: Oazapfts.RequestOpts) {
935
849
  return oazapfts.ok(oazapfts.fetchJson<{
936
850
  status: 200;
937
851
  data: any;
938
852
  } | {
939
853
  status: 400;
940
- data: HttpErrorResponse;
854
+ data: HttpErrorResponseRead;
941
855
  } | {
942
856
  status: 401;
943
- data: HttpErrorResponse;
857
+ data: HttpErrorResponseRead;
944
858
  } | {
945
859
  status: 404;
946
- data: HttpErrorResponse;
860
+ data: HttpErrorResponseRead;
947
861
  } | {
948
862
  status: 422;
949
863
  } | {
950
864
  status: 500;
951
- data: HttpErrorResponse;
865
+ data: HttpErrorResponseRead;
952
866
  } | {
953
867
  status: 503;
954
- data: HttpErrorResponse;
955
- }>(`/v1/modules/${encodeURIComponent(moduleId)}`, oazapfts.json({
868
+ data: HttpErrorResponseRead;
869
+ }>(`/v1/reports/${encodeURIComponent(reportId)}`, oazapfts.json({
956
870
  ...opts,
957
871
  method: "PUT",
958
- body: putModuleRequest,
959
- headers: oazapfts.mergeHeaders(opts?.headers, {
960
- authorization,
961
- "x-account-slug": xAccountSlug
962
- })
963
- })));
964
- }
965
- /**
966
- * Dispatch Module Service
967
- */
968
- export function dispatchModuleServiceV1ModulesDispatchesPost({ authorization, body }: {
969
- authorization: string;
970
- body: ModuleDispatchRequest[];
971
- }, opts?: Oazapfts.RequestOpts) {
972
- return oazapfts.ok(oazapfts.fetchJson<{
973
- status: 200;
974
- data: any;
975
- } | {
976
- status: 400;
977
- data: HttpErrorResponse;
978
- } | {
979
- status: 401;
980
- data: HttpErrorResponse;
981
- } | {
982
- status: 404;
983
- data: HttpErrorResponse;
984
- } | {
985
- status: 422;
986
- } | {
987
- status: 500;
988
- data: HttpErrorResponse;
989
- } | {
990
- status: 503;
991
- data: HttpErrorResponse;
992
- }>("/v1/modules/dispatches", oazapfts.json({
993
- ...opts,
994
- method: "POST",
995
- body,
872
+ body: putReportRequest,
996
873
  headers: oazapfts.mergeHeaders(opts?.headers, {
997
874
  authorization
998
875
  })
999
876
  })));
1000
877
  }
1001
878
  /**
1002
- * Put Report
879
+ * Get Report
1003
880
  */
1004
- export function putReportV1ReportsReportIdPut({ reportId, authorization, putReportRequest }: {
881
+ export function getReportV1ReportsReportIdGet({ reportId, authorization }: {
1005
882
  reportId: string;
1006
883
  authorization: string;
1007
- putReportRequest: PutReportRequest;
1008
884
  }, opts?: Oazapfts.RequestOpts) {
1009
885
  return oazapfts.ok(oazapfts.fetchJson<{
1010
886
  status: 200;
1011
- data: any;
887
+ data: GetReportResponse;
1012
888
  } | {
1013
889
  status: 400;
1014
- data: HttpErrorResponse;
890
+ data: HttpErrorResponseRead;
1015
891
  } | {
1016
892
  status: 401;
1017
- data: HttpErrorResponse;
893
+ data: HttpErrorResponseRead;
1018
894
  } | {
1019
895
  status: 404;
1020
- data: HttpErrorResponse;
896
+ data: HttpErrorResponseRead;
1021
897
  } | {
1022
898
  status: 422;
1023
899
  } | {
1024
900
  status: 500;
1025
- data: HttpErrorResponse;
901
+ data: HttpErrorResponseRead;
1026
902
  } | {
1027
903
  status: 503;
1028
- data: HttpErrorResponse;
1029
- }>(`/v1/reports/${encodeURIComponent(reportId)}`, oazapfts.json({
904
+ data: HttpErrorResponseRead;
905
+ }>(`/v1/reports/${encodeURIComponent(reportId)}`, {
1030
906
  ...opts,
1031
- method: "PUT",
1032
- body: putReportRequest,
1033
907
  headers: oazapfts.mergeHeaders(opts?.headers, {
1034
908
  authorization
1035
909
  })
1036
- })));
910
+ }));
1037
911
  }
1038
912
  /**
1039
- * Get Report
913
+ * Get Report Pull Request Content
1040
914
  */
1041
- export function getReportV1ReportsReportIdGet({ reportId, authorization }: {
915
+ export function getReportPullRequestContentV1ReportsReportIdPullRequestGet({ reportId, authorization }: {
1042
916
  reportId: string;
1043
917
  authorization: string;
1044
918
  }, opts?: Oazapfts.RequestOpts) {
1045
919
  return oazapfts.ok(oazapfts.fetchJson<{
1046
920
  status: 200;
1047
- data: GetReportResponse;
921
+ data: GetPullRequest;
1048
922
  } | {
1049
923
  status: 400;
1050
- data: HttpErrorResponse;
924
+ data: HttpErrorResponseRead;
1051
925
  } | {
1052
926
  status: 401;
1053
- data: HttpErrorResponse;
927
+ data: HttpErrorResponseRead;
1054
928
  } | {
1055
929
  status: 404;
1056
- data: HttpErrorResponse;
930
+ data: HttpErrorResponseRead;
1057
931
  } | {
1058
932
  status: 422;
1059
933
  } | {
1060
934
  status: 500;
1061
- data: HttpErrorResponse;
935
+ data: HttpErrorResponseRead;
1062
936
  } | {
1063
937
  status: 503;
1064
- data: HttpErrorResponse;
1065
- }>(`/v1/reports/${encodeURIComponent(reportId)}`, {
938
+ data: HttpErrorResponseRead;
939
+ }>(`/v1/reports/${encodeURIComponent(reportId)}/pull-request`, {
1066
940
  ...opts,
1067
941
  headers: oazapfts.mergeHeaders(opts?.headers, {
1068
942
  authorization
@@ -1082,21 +956,21 @@ export function downloadReportV1ReportsReportIdDownloadGet({ reportId, extension
1082
956
  data: any;
1083
957
  } | {
1084
958
  status: 400;
1085
- data: HttpErrorResponse;
959
+ data: HttpErrorResponseRead;
1086
960
  } | {
1087
961
  status: 401;
1088
- data: HttpErrorResponse;
962
+ data: HttpErrorResponseRead;
1089
963
  } | {
1090
964
  status: 404;
1091
- data: HttpErrorResponse;
965
+ data: HttpErrorResponseRead;
1092
966
  } | {
1093
967
  status: 422;
1094
968
  } | {
1095
969
  status: 500;
1096
- data: HttpErrorResponse;
970
+ data: HttpErrorResponseRead;
1097
971
  } | {
1098
972
  status: 503;
1099
- data: HttpErrorResponse;
973
+ data: HttpErrorResponseRead;
1100
974
  }>(`/v1/reports/${encodeURIComponent(reportId)}/download${QS.query(QS.explode({
1101
975
  extension
1102
976
  }))}`, {
@@ -1186,21 +1060,21 @@ export function listRepositoryReportV1ReposRepositoryIdReportsGet({ repositoryId
1186
1060
  data: ListRepositoryReportResponse;
1187
1061
  } | {
1188
1062
  status: 400;
1189
- data: HttpErrorResponse;
1063
+ data: HttpErrorResponseRead;
1190
1064
  } | {
1191
1065
  status: 401;
1192
- data: HttpErrorResponse;
1066
+ data: HttpErrorResponseRead;
1193
1067
  } | {
1194
1068
  status: 404;
1195
- data: HttpErrorResponse;
1069
+ data: HttpErrorResponseRead;
1196
1070
  } | {
1197
1071
  status: 422;
1198
1072
  } | {
1199
1073
  status: 500;
1200
- data: HttpErrorResponse;
1074
+ data: HttpErrorResponseRead;
1201
1075
  } | {
1202
1076
  status: 503;
1203
- data: HttpErrorResponse;
1077
+ data: HttpErrorResponseRead;
1204
1078
  }>(`/v1/repos/${encodeURIComponent(repositoryId)}/reports${QS.query(QS.explode({
1205
1079
  pageSize,
1206
1080
  page,
@@ -1225,24 +1099,24 @@ export function createReposBatchServiceV1ReposBatchPost({ tags, authorization, b
1225
1099
  data: any;
1226
1100
  } | {
1227
1101
  status: 207;
1228
- data: HttpErrorResponse;
1102
+ data: HttpErrorResponseRead;
1229
1103
  } | {
1230
1104
  status: 400;
1231
- data: HttpErrorResponse;
1105
+ data: HttpErrorResponseRead;
1232
1106
  } | {
1233
1107
  status: 401;
1234
- data: HttpErrorResponse;
1108
+ data: HttpErrorResponseRead;
1235
1109
  } | {
1236
1110
  status: 404;
1237
- data: HttpErrorResponse;
1111
+ data: HttpErrorResponseRead;
1238
1112
  } | {
1239
1113
  status: 422;
1240
1114
  } | {
1241
1115
  status: 500;
1242
- data: HttpErrorResponse;
1116
+ data: HttpErrorResponseRead;
1243
1117
  } | {
1244
1118
  status: 503;
1245
- data: HttpErrorResponse;
1119
+ data: HttpErrorResponseRead;
1246
1120
  }>(`/v1/repos/batch${QS.query(QS.explode({
1247
1121
  tags
1248
1122
  }))}`, oazapfts.multipart({
@@ -1266,21 +1140,21 @@ export function createRepositoryServiceV1ReposPost({ authorization, createReposi
1266
1140
  data: any;
1267
1141
  } | {
1268
1142
  status: 400;
1269
- data: HttpErrorResponse;
1143
+ data: HttpErrorResponseRead;
1270
1144
  } | {
1271
1145
  status: 401;
1272
- data: HttpErrorResponse;
1146
+ data: HttpErrorResponseRead;
1273
1147
  } | {
1274
1148
  status: 404;
1275
- data: HttpErrorResponse;
1149
+ data: HttpErrorResponseRead;
1276
1150
  } | {
1277
1151
  status: 422;
1278
1152
  } | {
1279
1153
  status: 500;
1280
- data: HttpErrorResponse;
1154
+ data: HttpErrorResponseRead;
1281
1155
  } | {
1282
1156
  status: 503;
1283
- data: HttpErrorResponse;
1157
+ data: HttpErrorResponseRead;
1284
1158
  }>("/v1/repos", oazapfts.json({
1285
1159
  ...opts,
1286
1160
  method: "POST",
@@ -1311,21 +1185,21 @@ export function listRepositoryServiceV1ReposGet({ pageSize, page, lastEvaluatedK
1311
1185
  data: ListRepositoryResponse;
1312
1186
  } | {
1313
1187
  status: 400;
1314
- data: HttpErrorResponse;
1188
+ data: HttpErrorResponseRead;
1315
1189
  } | {
1316
1190
  status: 401;
1317
- data: HttpErrorResponse;
1191
+ data: HttpErrorResponseRead;
1318
1192
  } | {
1319
1193
  status: 404;
1320
- data: HttpErrorResponse;
1194
+ data: HttpErrorResponseRead;
1321
1195
  } | {
1322
1196
  status: 422;
1323
1197
  } | {
1324
1198
  status: 500;
1325
- data: HttpErrorResponse;
1199
+ data: HttpErrorResponseRead;
1326
1200
  } | {
1327
1201
  status: 503;
1328
- data: HttpErrorResponse;
1202
+ data: HttpErrorResponseRead;
1329
1203
  }>(`/v1/repos${QS.query(QS.explode({
1330
1204
  pageSize,
1331
1205
  page,
@@ -1344,6 +1218,42 @@ export function listRepositoryServiceV1ReposGet({ pageSize, page, lastEvaluatedK
1344
1218
  })
1345
1219
  }));
1346
1220
  }
1221
+ /**
1222
+ * List Branches Service
1223
+ */
1224
+ export function listBranchesServiceV1ReposBranchesGet({ repositoryUrl, authorization }: {
1225
+ repositoryUrl: string;
1226
+ authorization: string;
1227
+ }, opts?: Oazapfts.RequestOpts) {
1228
+ return oazapfts.ok(oazapfts.fetchJson<{
1229
+ status: 200;
1230
+ data: ListBranchesResponse;
1231
+ } | {
1232
+ status: 400;
1233
+ data: HttpErrorResponseRead;
1234
+ } | {
1235
+ status: 401;
1236
+ data: HttpErrorResponseRead;
1237
+ } | {
1238
+ status: 404;
1239
+ data: HttpErrorResponseRead;
1240
+ } | {
1241
+ status: 422;
1242
+ } | {
1243
+ status: 500;
1244
+ data: HttpErrorResponseRead;
1245
+ } | {
1246
+ status: 503;
1247
+ data: HttpErrorResponseRead;
1248
+ }>(`/v1/repos/branches${QS.query(QS.explode({
1249
+ repositoryUrl
1250
+ }))}`, {
1251
+ ...opts,
1252
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1253
+ authorization
1254
+ })
1255
+ }));
1256
+ }
1347
1257
  /**
1348
1258
  * Get Repository By Id Service
1349
1259
  */
@@ -1353,24 +1263,24 @@ export function getRepositoryByIdServiceV1ReposRepositoryIdGet({ repositoryId, a
1353
1263
  }, opts?: Oazapfts.RequestOpts) {
1354
1264
  return oazapfts.ok(oazapfts.fetchJson<{
1355
1265
  status: 200;
1356
- data: RepositoryResponse2;
1266
+ data: RepositoryResponse;
1357
1267
  } | {
1358
1268
  status: 400;
1359
- data: HttpErrorResponse;
1269
+ data: HttpErrorResponseRead;
1360
1270
  } | {
1361
1271
  status: 401;
1362
- data: HttpErrorResponse;
1272
+ data: HttpErrorResponseRead;
1363
1273
  } | {
1364
1274
  status: 404;
1365
- data: HttpErrorResponse;
1275
+ data: HttpErrorResponseRead;
1366
1276
  } | {
1367
1277
  status: 422;
1368
1278
  } | {
1369
1279
  status: 500;
1370
- data: HttpErrorResponse;
1280
+ data: HttpErrorResponseRead;
1371
1281
  } | {
1372
1282
  status: 503;
1373
- data: HttpErrorResponse;
1283
+ data: HttpErrorResponseRead;
1374
1284
  }>(`/v1/repos/${encodeURIComponent(repositoryId)}`, {
1375
1285
  ...opts,
1376
1286
  headers: oazapfts.mergeHeaders(opts?.headers, {
@@ -1390,21 +1300,21 @@ export function deleteRepositoryServiceV1ReposRepositoryIdDelete({ repositoryId,
1390
1300
  data: any;
1391
1301
  } | {
1392
1302
  status: 400;
1393
- data: HttpErrorResponse;
1303
+ data: HttpErrorResponseRead;
1394
1304
  } | {
1395
1305
  status: 401;
1396
- data: HttpErrorResponse;
1306
+ data: HttpErrorResponseRead;
1397
1307
  } | {
1398
1308
  status: 404;
1399
- data: HttpErrorResponse;
1309
+ data: HttpErrorResponseRead;
1400
1310
  } | {
1401
1311
  status: 422;
1402
1312
  } | {
1403
1313
  status: 500;
1404
- data: HttpErrorResponse;
1314
+ data: HttpErrorResponseRead;
1405
1315
  } | {
1406
1316
  status: 503;
1407
- data: HttpErrorResponse;
1317
+ data: HttpErrorResponseRead;
1408
1318
  }>(`/v1/repos/${encodeURIComponent(repositoryId)}`, {
1409
1319
  ...opts,
1410
1320
  method: "DELETE",
@@ -1426,21 +1336,21 @@ export function updateRepositoryServiceV1ReposRepositoryIdPut({ repositoryId, au
1426
1336
  data: any;
1427
1337
  } | {
1428
1338
  status: 400;
1429
- data: HttpErrorResponse;
1339
+ data: HttpErrorResponseRead;
1430
1340
  } | {
1431
1341
  status: 401;
1432
- data: HttpErrorResponse;
1342
+ data: HttpErrorResponseRead;
1433
1343
  } | {
1434
1344
  status: 404;
1435
- data: HttpErrorResponse;
1345
+ data: HttpErrorResponseRead;
1436
1346
  } | {
1437
1347
  status: 422;
1438
1348
  } | {
1439
1349
  status: 500;
1440
- data: HttpErrorResponse;
1350
+ data: HttpErrorResponseRead;
1441
1351
  } | {
1442
1352
  status: 503;
1443
- data: HttpErrorResponse;
1353
+ data: HttpErrorResponseRead;
1444
1354
  }>(`/v1/repos/${encodeURIComponent(repositoryId)}`, oazapfts.json({
1445
1355
  ...opts,
1446
1356
  method: "PUT",
@@ -1451,23 +1361,59 @@ export function updateRepositoryServiceV1ReposRepositoryIdPut({ repositoryId, au
1451
1361
  })));
1452
1362
  }
1453
1363
  /**
1454
- * Get Account Settings
1364
+ * Validate Scm Url Service
1455
1365
  */
1456
- export function getAccountSettingsV1SettingsGet({ authorization }: {
1366
+ export function validateScmUrlServiceV1ReposValidateScmUrlPost({ authorization, validateScmUrlRequest }: {
1457
1367
  authorization: string;
1368
+ validateScmUrlRequest: ValidateScmUrlRequest;
1458
1369
  }, opts?: Oazapfts.RequestOpts) {
1459
1370
  return oazapfts.ok(oazapfts.fetchJson<{
1460
1371
  status: 200;
1461
- data: GetAccountSettingsRequest;
1372
+ data: any;
1373
+ } | {
1374
+ status: 400;
1375
+ data: HttpErrorResponseRead;
1376
+ } | {
1377
+ status: 401;
1378
+ data: HttpErrorResponseRead;
1379
+ } | {
1380
+ status: 404;
1381
+ data: HttpErrorResponseRead;
1462
1382
  } | {
1463
1383
  status: 422;
1464
- data: HttpValidationError;
1465
- }>("/v1/settings", {
1384
+ } | {
1385
+ status: 500;
1386
+ data: HttpErrorResponseRead;
1387
+ } | {
1388
+ status: 503;
1389
+ data: HttpErrorResponseRead;
1390
+ }>("/v1/repos/validate-scm-url", oazapfts.json({
1466
1391
  ...opts,
1392
+ method: "POST",
1393
+ body: validateScmUrlRequest,
1467
1394
  headers: oazapfts.mergeHeaders(opts?.headers, {
1468
1395
  authorization
1469
1396
  })
1470
- }));
1397
+ })));
1398
+ }
1399
+ /**
1400
+ * Get Account Settings
1401
+ */
1402
+ export function getAccountSettingsV1SettingsGet({ authorization }: {
1403
+ authorization: string;
1404
+ }, opts?: Oazapfts.RequestOpts) {
1405
+ return oazapfts.ok(oazapfts.fetchJson<{
1406
+ status: 200;
1407
+ data: GetAccountSettingsRequest;
1408
+ } | {
1409
+ status: 422;
1410
+ data: HttpValidationError;
1411
+ }>("/v1/settings", {
1412
+ ...opts,
1413
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1414
+ authorization
1415
+ })
1416
+ }));
1471
1417
  }
1472
1418
  /**
1473
1419
  * Create Account Settings
@@ -1743,6 +1689,29 @@ export function deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDelete({ p
1743
1689
  })
1744
1690
  }));
1745
1691
  }
1692
+ /**
1693
+ * Update Program Group Components Service
1694
+ */
1695
+ export function updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut({ programGroupId, authorization, body }: {
1696
+ programGroupId: string;
1697
+ authorization: string;
1698
+ body: PutProgramGroupComponentsRequest[];
1699
+ }, opts?: Oazapfts.RequestOpts) {
1700
+ return oazapfts.ok(oazapfts.fetchJson<{
1701
+ status: 200;
1702
+ data: any;
1703
+ } | {
1704
+ status: 422;
1705
+ data: HttpValidationError;
1706
+ }>(`/v1/program-groups/${encodeURIComponent(programGroupId)}/components`, oazapfts.json({
1707
+ ...opts,
1708
+ method: "PUT",
1709
+ body,
1710
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1711
+ authorization
1712
+ })
1713
+ })));
1714
+ }
1746
1715
  /**
1747
1716
  * List Program Group Report Service
1748
1717
  */
@@ -1770,6 +1739,494 @@ export function listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReport
1770
1739
  })
1771
1740
  }));
1772
1741
  }
1742
+ /**
1743
+ * General Report Success And Errors
1744
+ */
1745
+ export function generalReportSuccessAndErrorsV1AnalyticsReportsGeneralSuccessAndErrorsGet({ startDate, endDate, authorization }: {
1746
+ startDate?: string;
1747
+ endDate?: string;
1748
+ authorization: string;
1749
+ }, opts?: Oazapfts.RequestOpts) {
1750
+ return oazapfts.ok(oazapfts.fetchJson<{
1751
+ status: 200;
1752
+ data: GeneralReportSuccessAndErrorsResponses;
1753
+ } | {
1754
+ status: 400;
1755
+ data: HttpErrorResponseRead;
1756
+ } | {
1757
+ status: 401;
1758
+ data: HttpErrorResponseRead;
1759
+ } | {
1760
+ status: 404;
1761
+ data: HttpErrorResponseRead;
1762
+ } | {
1763
+ status: 422;
1764
+ } | {
1765
+ status: 500;
1766
+ data: HttpErrorResponseRead;
1767
+ } | {
1768
+ status: 503;
1769
+ data: HttpErrorResponseRead;
1770
+ }>(`/v1/analytics/reports/general/success-and-errors${QS.query(QS.explode({
1771
+ startDate,
1772
+ endDate
1773
+ }))}`, {
1774
+ ...opts,
1775
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1776
+ authorization
1777
+ })
1778
+ }));
1779
+ }
1780
+ /**
1781
+ * Analytics Repository Last Report Status
1782
+ */
1783
+ export function analyticsRepositoryLastReportStatusV1AnalyticsRepositoriesLastReportStatusGet({ pageSize, page, moduleId, executedBy, repositoryUrl, tags, orderBy, orderDirection, startDate, endDate, mode, authorization }: {
1784
+ pageSize?: number;
1785
+ page?: number;
1786
+ moduleId?: string[] | null;
1787
+ executedBy?: string[] | null;
1788
+ repositoryUrl?: string | null;
1789
+ tags?: string[] | null;
1790
+ orderBy?: ("repositoryUrl" | "moduleName" | "mode" | "reportCreatedAt" | "reportCreatedBy" | "totalFiles" | "totalFilesAnalyzed" | "totalFilesIssues" | "totalFilesChanged" | "totalIssues") | null;
1791
+ orderDirection?: ("ASC" | "DESC") | null;
1792
+ startDate?: string;
1793
+ endDate?: string;
1794
+ mode?: ("scan" | "fix") | null;
1795
+ authorization: string;
1796
+ }, opts?: Oazapfts.RequestOpts) {
1797
+ return oazapfts.ok(oazapfts.fetchJson<{
1798
+ status: 200;
1799
+ data: AnalyticsRepositoryLastReportStatusResponse;
1800
+ } | {
1801
+ status: 400;
1802
+ data: HttpErrorResponseRead;
1803
+ } | {
1804
+ status: 401;
1805
+ data: HttpErrorResponseRead;
1806
+ } | {
1807
+ status: 404;
1808
+ data: HttpErrorResponseRead;
1809
+ } | {
1810
+ status: 422;
1811
+ } | {
1812
+ status: 500;
1813
+ data: HttpErrorResponseRead;
1814
+ } | {
1815
+ status: 503;
1816
+ data: HttpErrorResponseRead;
1817
+ }>(`/v1/analytics/repositories/last-report-status${QS.query(QS.explode({
1818
+ pageSize,
1819
+ page,
1820
+ moduleId,
1821
+ executedBy,
1822
+ repositoryUrl,
1823
+ tags,
1824
+ orderBy,
1825
+ orderDirection,
1826
+ startDate,
1827
+ endDate,
1828
+ mode
1829
+ }))}`, {
1830
+ ...opts,
1831
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1832
+ authorization
1833
+ })
1834
+ }));
1835
+ }
1836
+ /**
1837
+ * Analytics Repository Last Report Status Download
1838
+ */
1839
+ export function analyticsRepositoryLastReportStatusDownloadV1AnalyticsRepositoriesLastReportStatusDownloadGet({ moduleId, orderBy, tags, executedBy, repositoryUrl, orderDirection, startDate, endDate, extension, mode, authorization }: {
1840
+ moduleId?: string[] | null;
1841
+ orderBy?: ("repositoryUrl" | "moduleName" | "mode" | "reportCreatedAt" | "reportCreatedBy" | "totalFiles" | "totalFilesAnalyzed" | "totalFilesIssues" | "totalFilesChanged" | "totalIssues") | null;
1842
+ tags?: string[] | null;
1843
+ executedBy?: string[] | null;
1844
+ repositoryUrl?: string | null;
1845
+ orderDirection?: ("ASC" | "DESC") | null;
1846
+ startDate?: string;
1847
+ endDate?: string;
1848
+ extension?: "csv" | "xlsx";
1849
+ mode?: ("scan" | "fix") | null;
1850
+ authorization: string;
1851
+ }, opts?: Oazapfts.RequestOpts) {
1852
+ return oazapfts.ok(oazapfts.fetchJson<{
1853
+ status: 200;
1854
+ data: any;
1855
+ } | {
1856
+ status: 400;
1857
+ data: HttpErrorResponseRead;
1858
+ } | {
1859
+ status: 401;
1860
+ data: HttpErrorResponseRead;
1861
+ } | {
1862
+ status: 404;
1863
+ data: HttpErrorResponseRead;
1864
+ } | {
1865
+ status: 422;
1866
+ } | {
1867
+ status: 500;
1868
+ data: HttpErrorResponseRead;
1869
+ } | {
1870
+ status: 503;
1871
+ data: HttpErrorResponseRead;
1872
+ }>(`/v1/analytics/repositories/last-report-status/download${QS.query(QS.explode({
1873
+ moduleId,
1874
+ orderBy,
1875
+ tags,
1876
+ executedBy,
1877
+ repositoryUrl,
1878
+ orderDirection,
1879
+ startDate,
1880
+ endDate,
1881
+ extension,
1882
+ mode
1883
+ }))}`, {
1884
+ ...opts,
1885
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1886
+ authorization
1887
+ })
1888
+ }));
1889
+ }
1890
+ /**
1891
+ * Analytics Repository Usage
1892
+ */
1893
+ export function analyticsRepositoryUsageV1AnalyticsRepositoriesUsageGet({ pageSize, page, moduleId, userId, tags, orderBy, executedBy, repositoryUrl, orderDirection, startDate, endDate, authorization }: {
1894
+ pageSize?: number;
1895
+ page?: number;
1896
+ moduleId?: string[] | null;
1897
+ userId?: string | null;
1898
+ tags?: string[] | null;
1899
+ orderBy?: ("repositoryUrl" | "totalScan" | "totalScanFailure" | "totalScanSuccess" | "totalFix" | "totalFixFailure" | "totalFixSuccess") | null;
1900
+ executedBy?: string[] | null;
1901
+ repositoryUrl?: string | null;
1902
+ orderDirection?: ("ASC" | "DESC") | null;
1903
+ startDate?: string;
1904
+ endDate?: string;
1905
+ authorization: string;
1906
+ }, opts?: Oazapfts.RequestOpts) {
1907
+ return oazapfts.ok(oazapfts.fetchJson<{
1908
+ status: 200;
1909
+ data: AnalyticsRepositoryUsageResponse;
1910
+ } | {
1911
+ status: 400;
1912
+ data: HttpErrorResponseRead;
1913
+ } | {
1914
+ status: 401;
1915
+ data: HttpErrorResponseRead;
1916
+ } | {
1917
+ status: 404;
1918
+ data: HttpErrorResponseRead;
1919
+ } | {
1920
+ status: 422;
1921
+ } | {
1922
+ status: 500;
1923
+ data: HttpErrorResponseRead;
1924
+ } | {
1925
+ status: 503;
1926
+ data: HttpErrorResponseRead;
1927
+ }>(`/v1/analytics/repositories/usage${QS.query(QS.explode({
1928
+ pageSize,
1929
+ page,
1930
+ moduleId,
1931
+ user_id: userId,
1932
+ tags,
1933
+ orderBy,
1934
+ executedBy,
1935
+ repositoryUrl,
1936
+ orderDirection,
1937
+ startDate,
1938
+ endDate
1939
+ }))}`, {
1940
+ ...opts,
1941
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1942
+ authorization
1943
+ })
1944
+ }));
1945
+ }
1946
+ /**
1947
+ * Analytics Repository Usage Download
1948
+ */
1949
+ export function analyticsRepositoryUsageDownloadV1AnalyticsRepositoriesUsageDownloadGet({ moduleId, userId, orderBy, tags, executedBy, repositoryUrl, orderDirection, startDate, endDate, extension, authorization }: {
1950
+ moduleId?: string[] | null;
1951
+ userId?: string | null;
1952
+ orderBy?: ("repositoryUrl" | "totalScan" | "totalScanFailure" | "totalScanSuccess" | "totalFix" | "totalFixFailure" | "totalFixSuccess") | null;
1953
+ tags?: string[] | null;
1954
+ executedBy?: string[] | null;
1955
+ repositoryUrl?: string | null;
1956
+ orderDirection?: ("ASC" | "DESC") | null;
1957
+ startDate?: string;
1958
+ endDate?: string;
1959
+ extension?: "csv" | "xlsx";
1960
+ authorization: string;
1961
+ }, opts?: Oazapfts.RequestOpts) {
1962
+ return oazapfts.ok(oazapfts.fetchJson<{
1963
+ status: 200;
1964
+ data: any;
1965
+ } | {
1966
+ status: 400;
1967
+ data: HttpErrorResponseRead;
1968
+ } | {
1969
+ status: 401;
1970
+ data: HttpErrorResponseRead;
1971
+ } | {
1972
+ status: 404;
1973
+ data: HttpErrorResponseRead;
1974
+ } | {
1975
+ status: 422;
1976
+ } | {
1977
+ status: 500;
1978
+ data: HttpErrorResponseRead;
1979
+ } | {
1980
+ status: 503;
1981
+ data: HttpErrorResponseRead;
1982
+ }>(`/v1/analytics/repositories/usage/download${QS.query(QS.explode({
1983
+ moduleId,
1984
+ user_id: userId,
1985
+ orderBy,
1986
+ tags,
1987
+ executedBy,
1988
+ repositoryUrl,
1989
+ orderDirection,
1990
+ startDate,
1991
+ endDate,
1992
+ extension
1993
+ }))}`, {
1994
+ ...opts,
1995
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1996
+ authorization
1997
+ })
1998
+ }));
1999
+ }
2000
+ /**
2001
+ * Analytics User Usage
2002
+ */
2003
+ export function analyticsUserUsageV1AnalyticsUsersUsageGet({ pageSize, page, moduleId, reportType, orderBy, orderDirection, startDate, endDate, authorization }: {
2004
+ pageSize?: number;
2005
+ page?: number;
2006
+ moduleId?: string[] | null;
2007
+ reportType?: ("repository" | "program_group") | null;
2008
+ orderBy?: ("name" | "email" | "totalScan" | "totalScanFailure" | "totalScanSuccess" | "totalFix" | "totalFixFailure" | "totalFixSuccess") | null;
2009
+ orderDirection?: ("ASC" | "DESC") | null;
2010
+ startDate?: string;
2011
+ endDate?: string;
2012
+ authorization: string;
2013
+ }, opts?: Oazapfts.RequestOpts) {
2014
+ return oazapfts.ok(oazapfts.fetchJson<{
2015
+ status: 200;
2016
+ data: AnalyticsUserUsageResponse;
2017
+ } | {
2018
+ status: 400;
2019
+ data: HttpErrorResponseRead;
2020
+ } | {
2021
+ status: 401;
2022
+ data: HttpErrorResponseRead;
2023
+ } | {
2024
+ status: 404;
2025
+ data: HttpErrorResponseRead;
2026
+ } | {
2027
+ status: 422;
2028
+ } | {
2029
+ status: 500;
2030
+ data: HttpErrorResponseRead;
2031
+ } | {
2032
+ status: 503;
2033
+ data: HttpErrorResponseRead;
2034
+ }>(`/v1/analytics/users/usage${QS.query(QS.explode({
2035
+ pageSize,
2036
+ page,
2037
+ moduleId,
2038
+ report_type: reportType,
2039
+ orderBy,
2040
+ orderDirection,
2041
+ startDate,
2042
+ endDate
2043
+ }))}`, {
2044
+ ...opts,
2045
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2046
+ authorization
2047
+ })
2048
+ }));
2049
+ }
2050
+ /**
2051
+ * Analytics User Usage Download
2052
+ */
2053
+ export function analyticsUserUsageDownloadV1AnalyticsUsersUsageDownloadGet({ moduleId, reportType, orderBy, orderDirection, startDate, endDate, extension, authorization }: {
2054
+ moduleId?: string[] | null;
2055
+ reportType?: ("repository" | "program_group") | null;
2056
+ orderBy?: ("name" | "email" | "totalScan" | "totalScanFailure" | "totalScanSuccess" | "totalFix" | "totalFixFailure" | "totalFixSuccess") | null;
2057
+ orderDirection?: ("ASC" | "DESC") | null;
2058
+ startDate?: string;
2059
+ endDate?: string;
2060
+ extension?: "csv" | "xlsx";
2061
+ authorization: string;
2062
+ }, opts?: Oazapfts.RequestOpts) {
2063
+ return oazapfts.ok(oazapfts.fetchJson<{
2064
+ status: 200;
2065
+ data: any;
2066
+ } | {
2067
+ status: 400;
2068
+ data: HttpErrorResponseRead;
2069
+ } | {
2070
+ status: 401;
2071
+ data: HttpErrorResponseRead;
2072
+ } | {
2073
+ status: 404;
2074
+ data: HttpErrorResponseRead;
2075
+ } | {
2076
+ status: 422;
2077
+ } | {
2078
+ status: 500;
2079
+ data: HttpErrorResponseRead;
2080
+ } | {
2081
+ status: 503;
2082
+ data: HttpErrorResponseRead;
2083
+ }>(`/v1/analytics/users/usage/download${QS.query(QS.explode({
2084
+ moduleId,
2085
+ report_type: reportType,
2086
+ orderBy,
2087
+ orderDirection,
2088
+ startDate,
2089
+ endDate,
2090
+ extension
2091
+ }))}`, {
2092
+ ...opts,
2093
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2094
+ authorization
2095
+ })
2096
+ }));
2097
+ }
2098
+ /**
2099
+ * Analytics Program Groups Last Report Status Download
2100
+ */
2101
+ export function analyticsProgramGroupsLastReportStatusDownloadV1AnalyticsProgramGroupsLastReportStatusDownloadGet({ authorization }: {
2102
+ authorization: string;
2103
+ }, opts?: Oazapfts.RequestOpts) {
2104
+ return oazapfts.ok(oazapfts.fetchJson<{
2105
+ status: 200;
2106
+ data: any;
2107
+ } | {
2108
+ status: 400;
2109
+ data: HttpErrorResponseRead;
2110
+ } | {
2111
+ status: 401;
2112
+ data: HttpErrorResponseRead;
2113
+ } | {
2114
+ status: 404;
2115
+ data: HttpErrorResponseRead;
2116
+ } | {
2117
+ status: 422;
2118
+ } | {
2119
+ status: 500;
2120
+ data: HttpErrorResponseRead;
2121
+ } | {
2122
+ status: 503;
2123
+ data: HttpErrorResponseRead;
2124
+ }>("/v1/analytics/program-groups/last-report-status/download", {
2125
+ ...opts,
2126
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2127
+ authorization
2128
+ })
2129
+ }));
2130
+ }
2131
+ /**
2132
+ * Analytics Program Groups Usage Download
2133
+ */
2134
+ export function analyticsProgramGroupsUsageDownloadV1AnalyticsProgramGroupsUsageDownloadGet({ authorization }: {
2135
+ authorization: string;
2136
+ }, opts?: Oazapfts.RequestOpts) {
2137
+ return oazapfts.ok(oazapfts.fetchJson<{
2138
+ status: 200;
2139
+ data: any;
2140
+ } | {
2141
+ status: 400;
2142
+ data: HttpErrorResponseRead;
2143
+ } | {
2144
+ status: 401;
2145
+ data: HttpErrorResponseRead;
2146
+ } | {
2147
+ status: 404;
2148
+ data: HttpErrorResponseRead;
2149
+ } | {
2150
+ status: 422;
2151
+ } | {
2152
+ status: 500;
2153
+ data: HttpErrorResponseRead;
2154
+ } | {
2155
+ status: 503;
2156
+ data: HttpErrorResponseRead;
2157
+ }>("/v1/analytics/program-groups/usage/download", {
2158
+ ...opts,
2159
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2160
+ authorization
2161
+ })
2162
+ }));
2163
+ }
2164
+ /**
2165
+ * Analytics Program Groups Last Report Status
2166
+ */
2167
+ export function analyticsProgramGroupsLastReportStatusV1AnalyticsProgramGroupsLastReportStatusGet({ authorization }: {
2168
+ authorization: string;
2169
+ }, opts?: Oazapfts.RequestOpts) {
2170
+ return oazapfts.ok(oazapfts.fetchJson<{
2171
+ status: 200;
2172
+ data: AnalyticsProgramGroupsLastReportStatusResponse;
2173
+ } | {
2174
+ status: 400;
2175
+ data: HttpErrorResponseRead;
2176
+ } | {
2177
+ status: 401;
2178
+ data: HttpErrorResponseRead;
2179
+ } | {
2180
+ status: 404;
2181
+ data: HttpErrorResponseRead;
2182
+ } | {
2183
+ status: 422;
2184
+ } | {
2185
+ status: 500;
2186
+ data: HttpErrorResponseRead;
2187
+ } | {
2188
+ status: 503;
2189
+ data: HttpErrorResponseRead;
2190
+ }>("/v1/analytics/program-groups/last-report-status", {
2191
+ ...opts,
2192
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2193
+ authorization
2194
+ })
2195
+ }));
2196
+ }
2197
+ /**
2198
+ * Analytics Program Groups Usage
2199
+ */
2200
+ export function analyticsProgramGroupsUsageV1AnalyticsProgramGroupsUsageGet({ authorization }: {
2201
+ authorization: string;
2202
+ }, opts?: Oazapfts.RequestOpts) {
2203
+ return oazapfts.ok(oazapfts.fetchJson<{
2204
+ status: 200;
2205
+ data: AnalyticsProgramGroupsUsageResponse;
2206
+ } | {
2207
+ status: 400;
2208
+ data: HttpErrorResponseRead;
2209
+ } | {
2210
+ status: 401;
2211
+ data: HttpErrorResponseRead;
2212
+ } | {
2213
+ status: 404;
2214
+ data: HttpErrorResponseRead;
2215
+ } | {
2216
+ status: 422;
2217
+ } | {
2218
+ status: 500;
2219
+ data: HttpErrorResponseRead;
2220
+ } | {
2221
+ status: 503;
2222
+ data: HttpErrorResponseRead;
2223
+ }>("/v1/analytics/program-groups/usage", {
2224
+ ...opts,
2225
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2226
+ authorization
2227
+ })
2228
+ }));
2229
+ }
1773
2230
  /**
1774
2231
  * List Tags Service
1775
2232
  */