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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.md +92 -1
  2. package/dist/api/codeShift.d.ts +110 -196
  3. package/dist/api/codeShift.d.ts.map +1 -1
  4. package/dist/api/codeShift.js +37 -94
  5. package/dist/api/codeShift.js.map +1 -1
  6. package/dist/client/agent-tools.d.ts +89 -3
  7. package/dist/client/agent-tools.d.ts.map +1 -1
  8. package/dist/client/agent-tools.js +133 -2
  9. package/dist/client/agent-tools.js.map +1 -1
  10. package/dist/client/agent.d.ts +5 -50
  11. package/dist/client/agent.d.ts.map +1 -1
  12. package/dist/client/agent.js +0 -64
  13. package/dist/client/agent.js.map +1 -1
  14. package/dist/client/ai.d.ts +7 -0
  15. package/dist/client/ai.d.ts.map +1 -1
  16. package/dist/client/ai.js +10 -1
  17. package/dist/client/ai.js.map +1 -1
  18. package/dist/client/code-shift.d.ts +25 -67
  19. package/dist/client/code-shift.d.ts.map +1 -1
  20. package/dist/client/code-shift.js +30 -73
  21. package/dist/client/code-shift.js.map +1 -1
  22. package/dist/client/gen-ai-inference.d.ts +9 -0
  23. package/dist/client/gen-ai-inference.d.ts.map +1 -1
  24. package/dist/client/gen-ai-inference.js +10 -1
  25. package/dist/client/gen-ai-inference.js.map +1 -1
  26. package/dist/client/types.d.ts +5 -4
  27. package/dist/client/types.d.ts.map +1 -1
  28. package/dist/error/DefaultAPIError.d.ts +1 -1
  29. package/dist/error/DefaultAPIError.d.ts.map +1 -1
  30. package/dist/error/DefaultAPIError.js +27 -12
  31. package/dist/error/DefaultAPIError.js.map +1 -1
  32. package/dist/error/types.d.ts +19 -0
  33. package/dist/error/types.d.ts.map +1 -0
  34. package/dist/error/types.js +2 -0
  35. package/dist/error/types.js.map +1 -0
  36. package/package.json +1 -1
  37. package/readme.md +1 -1
  38. package/src/api/account.ts +1 -0
  39. package/src/api/agent-tools.ts +3 -0
  40. package/src/api/agent.ts +2 -0
  41. package/src/api/codeShift.ts +257 -481
  42. package/src/api/notification.ts +2 -0
  43. package/src/client/agent-tools.ts +102 -3
  44. package/src/client/agent.ts +0 -68
  45. package/src/client/ai.ts +6 -0
  46. package/src/client/code-shift.ts +19 -57
  47. package/src/client/gen-ai-inference.ts +6 -1
  48. package/src/client/types.ts +7 -5
  49. package/src/error/DefaultAPIError.ts +35 -12
  50. package/src/error/types.ts +21 -0
@@ -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;
@@ -166,12 +50,42 @@ export type CreateModuleRequest = {
166
50
  /** Module studio */
167
51
  studio: string;
168
52
  };
53
+ 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";
54
+ 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";
55
+ export type InvalidPayloadDetails = {
56
+ code: BadRequestExceptionTypes | ExceptionType;
57
+ field: string | null;
58
+ message?: string | null;
59
+ };
60
+ export type SuggestedMessage = {
61
+ ptBr: string | null;
62
+ enUs: string | null;
63
+ };
64
+ export type InvalidPayloadDetailsRead = {
65
+ code: BadRequestExceptionTypes | ExceptionType;
66
+ field: string | null;
67
+ message?: string | null;
68
+ suggestedMessages: SuggestedMessage | null;
69
+ };
70
+ export type HttpErrorResponse = {
71
+ status: string;
72
+ code: ExceptionType;
73
+ details: string;
74
+ validationDetails?: InvalidPayloadDetails[] | null;
75
+ };
76
+ export type HttpErrorResponseRead = {
77
+ status: string;
78
+ code: ExceptionType;
79
+ details: string;
80
+ validationDetails?: InvalidPayloadDetailsRead[] | null;
81
+ suggestedMessages: SuggestedMessage | null;
82
+ };
169
83
  export type InputResponse = {
170
84
  name: string;
171
85
  required: boolean;
172
86
  "default": string;
173
87
  };
174
- export type ModuleResponse2 = {
88
+ export type ModuleResponse = {
175
89
  /** Module ID */
176
90
  id: string;
177
91
  /** Module type */
@@ -195,7 +109,7 @@ export type ModuleResponse2 = {
195
109
  };
196
110
  export type ListModuleResponse = {
197
111
  /** List of modules */
198
- items: ModuleResponse2[];
112
+ items: ModuleResponse[];
199
113
  /** Number of modules */
200
114
  itemsCount: number;
201
115
  /** Last evaluated key */
@@ -259,19 +173,33 @@ export type PutReportRequest = {
259
173
  issuesCount: number;
260
174
  totalFilesCount?: number | null;
261
175
  analyzedFilesCount?: number | null;
176
+ changedFilesCount?: number | null;
262
177
  pullRequestLink?: string | null;
263
178
  commitHash?: string | null;
264
179
  targetFiles: TargetFilesRequest[];
265
180
  };
266
- export type ModuleResponse3 = {
181
+ export type ModuleResponse2 = {
267
182
  id: string;
268
183
  name: string;
269
184
  };
270
- export type ApplicationResponse2 = {
185
+ export type ApplicationResponse = {
271
186
  id: string;
272
187
  name: string;
273
188
  url: string;
274
189
  };
190
+ export type ExecutionResponse = {
191
+ id: string;
192
+ startedAt: string | null;
193
+ completedAt: string | null;
194
+ status: string | null;
195
+ conclusion: string | null;
196
+ };
197
+ export type UserResponse = {
198
+ id: string;
199
+ name: string;
200
+ email: string;
201
+ ip?: string | null;
202
+ };
275
203
  export type ProgramGroupResponse = {
276
204
  id: string;
277
205
  name: string;
@@ -296,10 +224,11 @@ export type TargetFilesResponse = {
296
224
  dependsOn: DependsOnResponse[];
297
225
  issues: IssuesResponse[];
298
226
  };
227
+ export type ReportStatus = "waiting_dispatch" | "waiting_runner" | "dispatch_failure" | "in_progress" | "suspended" | "error" | "success" | "cancelled" | "timed_out";
299
228
  export type GetReportResponse = {
300
229
  id: string;
301
- "module": ModuleResponse3 | null;
302
- application: ApplicationResponse2 | null;
230
+ "module": ModuleResponse2 | null;
231
+ application: ApplicationResponse | null;
303
232
  execution: ExecutionResponse | null;
304
233
  mode: string;
305
234
  sourceBranch: string | null;
@@ -309,6 +238,7 @@ export type GetReportResponse = {
309
238
  updatedAt: string;
310
239
  filesCount: number | null;
311
240
  totalFilesCount: number | null;
241
+ changedFilesCount: number | null;
312
242
  analyzedFilesCount: number | null;
313
243
  issuesFilesCount: number | null;
314
244
  issuesCount: number | null;
@@ -317,6 +247,13 @@ export type GetReportResponse = {
317
247
  programGroup: ProgramGroupResponse | null;
318
248
  targetFiles: TargetFilesResponse[];
319
249
  errorLog?: string | null;
250
+ status: ReportStatus | null;
251
+ };
252
+ export type GetPullRequest = {
253
+ content: string;
254
+ };
255
+ export type GetPullRequest = {
256
+ content: string;
320
257
  };
321
258
  export type SearchRepoScmResponse = {
322
259
  id: string;
@@ -326,13 +263,13 @@ export type GetStatusSearchRepoScmResponse = {
326
263
  status: SearchRepositoryStatus;
327
264
  errorLog?: string | null;
328
265
  };
329
- export type ModuleResponse4 = {
266
+ export type ModuleResponse3 = {
330
267
  id: string;
331
268
  name: string;
332
269
  };
333
- export type ReportResponse3 = {
270
+ export type ReportResponse = {
334
271
  id: string;
335
- "module": ModuleResponse4;
272
+ "module": ModuleResponse3;
336
273
  execution: ExecutionResponse | null;
337
274
  mode: string;
338
275
  sourceBranch: string;
@@ -344,10 +281,11 @@ export type ReportResponse3 = {
344
281
  issuesCount: number | null;
345
282
  pullRequestLink?: string | null;
346
283
  errorLog?: string | null;
284
+ status: ReportStatus | null;
347
285
  };
348
286
  export type ListRepositoryReportResponse = {
349
287
  /** List of reports */
350
- items: ReportResponse3[];
288
+ items: ReportResponse[];
351
289
  /** Number of reports */
352
290
  itemsCount: number;
353
291
  /** Last evaluated key */
@@ -361,36 +299,37 @@ export type CreateRepositoryRequest = {
361
299
  defaultBranch: string;
362
300
  tags?: string[] | null;
363
301
  };
364
- export type ReportResponse4 = {
302
+ export type ReportResponse2 = {
365
303
  id: string;
366
304
  execution: ExecutionResponse | null;
367
305
  mode: string;
368
306
  moduleId: string;
369
307
  sourceBranch: string;
370
308
  targetBranch?: string | null;
371
- createdBy: UserResponse;
309
+ createdBy: UserResponse | null;
372
310
  createdAt: string;
373
311
  updatedAt: string;
374
312
  filesCount: number | null;
375
313
  issuesCount: number | null;
376
314
  pullRequestLink?: string | null;
377
315
  errorLog?: string | null;
316
+ status: ReportStatus | null;
378
317
  };
379
- export type RepositoryResponse2 = {
318
+ export type RepositoryResponse = {
380
319
  /** Repository ID */
381
320
  id: string;
382
321
  /** Repository creation date */
383
322
  createdAt?: string | null;
384
323
  /** Repository creation user */
385
324
  createdBy?: string | null;
386
- lastModuleReport: ReportResponse4 | null;
325
+ lastModuleReport: ReportResponse2 | null;
387
326
  tags: string[];
388
327
  url: string;
389
328
  defaultBranch: string;
390
329
  };
391
330
  export type ListRepositoryResponse = {
392
331
  /** List of applications */
393
- items: RepositoryResponse2[];
332
+ items: RepositoryResponse[];
394
333
  /** Number of applications */
395
334
  itemsCount: number;
396
335
  /** Last evaluated key */
@@ -401,6 +340,9 @@ export type PutRepositoryRequest = {
401
340
  defaultBranch?: string | null;
402
341
  tags?: string[] | null;
403
342
  };
343
+ export type ValidateScmUrlRequest = {
344
+ url?: string | null;
345
+ };
404
346
  export type GetAccountSettingsRequest = {
405
347
  maxSimultaneousExecution: number | null;
406
348
  };
@@ -445,7 +387,7 @@ export type BodyCreateProgramGroupServiceV1ProgramGroupsPost = {
445
387
  export type CreateProgramGroupResponse = {
446
388
  id: string;
447
389
  };
448
- export type ReportResponse5 = {
390
+ export type ReportResponse3 = {
449
391
  id: string;
450
392
  execution: ExecutionResponse | null;
451
393
  mode: string;
@@ -457,6 +399,7 @@ export type ReportResponse5 = {
457
399
  issuesCount: number | null;
458
400
  pullRequestLink?: string | null;
459
401
  errorLog?: string | null;
402
+ status: ReportStatus | null;
460
403
  };
461
404
  export type ProgramGroupResponse2 = {
462
405
  id: string;
@@ -465,10 +408,10 @@ export type ProgramGroupResponse2 = {
465
408
  tags: string[];
466
409
  components: any[];
467
410
  accountId: string;
468
- createdBy: string;
411
+ createdBy: string | null;
469
412
  createdAt: string;
470
413
  updatedAt: string;
471
- lastModuleReport: ReportResponse5 | null;
414
+ lastModuleReport: ReportResponse3 | null;
472
415
  };
473
416
  export type ListProgramGroupResponse = {
474
417
  items: ProgramGroupResponse2[];
@@ -488,13 +431,18 @@ export type ProgramGroupResponse3 = {
488
431
  export type BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut = {
489
432
  file?: Blob | null;
490
433
  };
491
- export type ModuleResponse5 = {
434
+ export type PutProgramGroupComponentsRequest = {
435
+ appl_name: string;
436
+ component_type: string;
437
+ component: string;
438
+ };
439
+ export type ModuleResponse4 = {
492
440
  id: string;
493
441
  name: string;
494
442
  };
495
- export type ReportResponse6 = {
443
+ export type ReportResponse4 = {
496
444
  id: string;
497
- "module": ModuleResponse5;
445
+ "module": ModuleResponse4;
498
446
  execution: ExecutionResponse | null;
499
447
  mode: string;
500
448
  createdBy: UserResponse;
@@ -504,10 +452,11 @@ export type ReportResponse6 = {
504
452
  issuesCount: number | null;
505
453
  pullRequestLink?: string | null;
506
454
  errorLog?: string | null;
455
+ status: ReportStatus | null;
507
456
  };
508
457
  export type ListProgramGroupReportResponse = {
509
458
  /** List of reports */
510
- items: ReportResponse6[];
459
+ items: ReportResponse4[];
511
460
  /** Number of reports */
512
461
  itemsCount: number;
513
462
  };
@@ -538,272 +487,6 @@ export function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
538
487
  })
539
488
  }));
540
489
  }
541
- /**
542
- * List Application Report
543
- */
544
- export function listApplicationReportV1ApplicationsApplicationIdReportsGet({ applicationId, pageSize, page, lastEvaluatedKey, authorization }: {
545
- applicationId: string;
546
- pageSize?: number;
547
- page?: number;
548
- lastEvaluatedKey?: string;
549
- authorization: string;
550
- }, opts?: Oazapfts.RequestOpts) {
551
- return oazapfts.ok(oazapfts.fetchJson<{
552
- status: 200;
553
- data: ListApplicationReportResponse;
554
- } | {
555
- status: 400;
556
- data: HttpErrorResponse;
557
- } | {
558
- status: 401;
559
- data: HttpErrorResponse;
560
- } | {
561
- status: 404;
562
- data: HttpErrorResponse;
563
- } | {
564
- status: 422;
565
- } | {
566
- status: 500;
567
- data: HttpErrorResponse;
568
- } | {
569
- status: 503;
570
- data: HttpErrorResponse;
571
- }>(`/v1/applications/${encodeURIComponent(applicationId)}/reports${QS.query(QS.explode({
572
- pageSize,
573
- page,
574
- lastEvaluatedKey
575
- }))}`, {
576
- ...opts,
577
- headers: oazapfts.mergeHeaders(opts?.headers, {
578
- authorization
579
- })
580
- }));
581
- }
582
- /**
583
- * Create Applications Batch Service
584
- */
585
- export function createApplicationsBatchServiceV1ApplicationsBatchPost({ authorization, bodyCreateApplicationsBatchServiceV1ApplicationsBatchPost }: {
586
- authorization: string;
587
- bodyCreateApplicationsBatchServiceV1ApplicationsBatchPost: BodyCreateApplicationsBatchServiceV1ApplicationsBatchPost;
588
- }, opts?: Oazapfts.RequestOpts) {
589
- return oazapfts.ok(oazapfts.fetchJson<{
590
- status: 200;
591
- data: any;
592
- } | {
593
- status: 207;
594
- data: HttpErrorResponse;
595
- } | {
596
- status: 400;
597
- data: HttpErrorResponse;
598
- } | {
599
- status: 401;
600
- data: HttpErrorResponse;
601
- } | {
602
- status: 404;
603
- data: HttpErrorResponse;
604
- } | {
605
- status: 422;
606
- } | {
607
- status: 500;
608
- data: HttpErrorResponse;
609
- } | {
610
- status: 503;
611
- data: HttpErrorResponse;
612
- }>("/v1/applications/batch", oazapfts.multipart({
613
- ...opts,
614
- method: "POST",
615
- body: bodyCreateApplicationsBatchServiceV1ApplicationsBatchPost,
616
- headers: oazapfts.mergeHeaders(opts?.headers, {
617
- authorization
618
- })
619
- })));
620
- }
621
- /**
622
- * Create Application Service
623
- */
624
- export function createApplicationServiceV1ApplicationsPost({ authorization, createApplicationRequest }: {
625
- authorization: string;
626
- createApplicationRequest: CreateApplicationRequest;
627
- }, opts?: Oazapfts.RequestOpts) {
628
- return oazapfts.ok(oazapfts.fetchJson<{
629
- status: 200;
630
- data: any;
631
- } | {
632
- status: 400;
633
- data: HttpErrorResponse;
634
- } | {
635
- status: 401;
636
- data: HttpErrorResponse;
637
- } | {
638
- status: 404;
639
- data: HttpErrorResponse;
640
- } | {
641
- status: 422;
642
- } | {
643
- status: 500;
644
- data: HttpErrorResponse;
645
- } | {
646
- status: 503;
647
- data: HttpErrorResponse;
648
- }>("/v1/applications", oazapfts.json({
649
- ...opts,
650
- method: "POST",
651
- body: createApplicationRequest,
652
- headers: oazapfts.mergeHeaders(opts?.headers, {
653
- authorization
654
- })
655
- })));
656
- }
657
- /**
658
- * List Application Service
659
- */
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;
666
- authorization: string;
667
- }, opts?: Oazapfts.RequestOpts) {
668
- return oazapfts.ok(oazapfts.fetchJson<{
669
- status: 200;
670
- data: ListApplicationResponse;
671
- } | {
672
- status: 400;
673
- data: HttpErrorResponse;
674
- } | {
675
- status: 401;
676
- data: HttpErrorResponse;
677
- } | {
678
- status: 404;
679
- data: HttpErrorResponse;
680
- } | {
681
- status: 422;
682
- } | {
683
- status: 500;
684
- data: HttpErrorResponse;
685
- } | {
686
- status: 503;
687
- data: HttpErrorResponse;
688
- }>(`/v1/applications${QS.query(QS.explode({
689
- pageSize,
690
- page,
691
- lastEvaluatedKey,
692
- filter,
693
- moduleId
694
- }))}`, {
695
- ...opts,
696
- headers: oazapfts.mergeHeaders(opts?.headers, {
697
- authorization
698
- })
699
- }));
700
- }
701
- /**
702
- * Get Application By Id Service
703
- */
704
- export function getApplicationByIdServiceV1ApplicationsApplicationIdGet({ applicationId, authorization }: {
705
- applicationId: string;
706
- authorization: string;
707
- }, opts?: Oazapfts.RequestOpts) {
708
- return oazapfts.ok(oazapfts.fetchJson<{
709
- status: 200;
710
- data: ApplicationResponse;
711
- } | {
712
- status: 400;
713
- data: HttpErrorResponse;
714
- } | {
715
- status: 401;
716
- data: HttpErrorResponse;
717
- } | {
718
- status: 404;
719
- data: HttpErrorResponse;
720
- } | {
721
- status: 422;
722
- } | {
723
- status: 500;
724
- data: HttpErrorResponse;
725
- } | {
726
- status: 503;
727
- data: HttpErrorResponse;
728
- }>(`/v1/applications/${encodeURIComponent(applicationId)}`, {
729
- ...opts,
730
- headers: oazapfts.mergeHeaders(opts?.headers, {
731
- authorization
732
- })
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
490
  /**
808
491
  * Create Module Service
809
492
  */
@@ -818,21 +501,21 @@ export function createModuleServiceV1ModulesPost({ authorization, xAccountSlug,
818
501
  data: any;
819
502
  } | {
820
503
  status: 400;
821
- data: HttpErrorResponse;
504
+ data: HttpErrorResponseRead;
822
505
  } | {
823
506
  status: 401;
824
- data: HttpErrorResponse;
507
+ data: HttpErrorResponseRead;
825
508
  } | {
826
509
  status: 404;
827
- data: HttpErrorResponse;
510
+ data: HttpErrorResponseRead;
828
511
  } | {
829
512
  status: 422;
830
513
  } | {
831
514
  status: 500;
832
- data: HttpErrorResponse;
515
+ data: HttpErrorResponseRead;
833
516
  } | {
834
517
  status: 503;
835
- data: HttpErrorResponse;
518
+ data: HttpErrorResponseRead;
836
519
  }>("/v1/modules", oazapfts.json({
837
520
  ...opts,
838
521
  method: "POST",
@@ -859,21 +542,21 @@ export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, las
859
542
  data: ListModuleResponse;
860
543
  } | {
861
544
  status: 400;
862
- data: HttpErrorResponse;
545
+ data: HttpErrorResponseRead;
863
546
  } | {
864
547
  status: 401;
865
- data: HttpErrorResponse;
548
+ data: HttpErrorResponseRead;
866
549
  } | {
867
550
  status: 404;
868
- data: HttpErrorResponse;
551
+ data: HttpErrorResponseRead;
869
552
  } | {
870
553
  status: 422;
871
554
  } | {
872
555
  status: 500;
873
- data: HttpErrorResponse;
556
+ data: HttpErrorResponseRead;
874
557
  } | {
875
558
  status: 503;
876
- data: HttpErrorResponse;
559
+ data: HttpErrorResponseRead;
877
560
  }>(`/v1/modules${QS.query(QS.explode({
878
561
  pageSize,
879
562
  moduleType,
@@ -899,21 +582,21 @@ export function deleteModuleServiceV1ModulesModuleIdDelete({ moduleId, authoriza
899
582
  data: any;
900
583
  } | {
901
584
  status: 400;
902
- data: HttpErrorResponse;
585
+ data: HttpErrorResponseRead;
903
586
  } | {
904
587
  status: 401;
905
- data: HttpErrorResponse;
588
+ data: HttpErrorResponseRead;
906
589
  } | {
907
590
  status: 404;
908
- data: HttpErrorResponse;
591
+ data: HttpErrorResponseRead;
909
592
  } | {
910
593
  status: 422;
911
594
  } | {
912
595
  status: 500;
913
- data: HttpErrorResponse;
596
+ data: HttpErrorResponseRead;
914
597
  } | {
915
598
  status: 503;
916
- data: HttpErrorResponse;
599
+ data: HttpErrorResponseRead;
917
600
  }>(`/v1/modules/${encodeURIComponent(moduleId)}`, {
918
601
  ...opts,
919
602
  method: "DELETE",
@@ -937,21 +620,21 @@ export function updateModuleServiceV1ModulesModuleIdPut({ moduleId, authorizatio
937
620
  data: any;
938
621
  } | {
939
622
  status: 400;
940
- data: HttpErrorResponse;
623
+ data: HttpErrorResponseRead;
941
624
  } | {
942
625
  status: 401;
943
- data: HttpErrorResponse;
626
+ data: HttpErrorResponseRead;
944
627
  } | {
945
628
  status: 404;
946
- data: HttpErrorResponse;
629
+ data: HttpErrorResponseRead;
947
630
  } | {
948
631
  status: 422;
949
632
  } | {
950
633
  status: 500;
951
- data: HttpErrorResponse;
634
+ data: HttpErrorResponseRead;
952
635
  } | {
953
636
  status: 503;
954
- data: HttpErrorResponse;
637
+ data: HttpErrorResponseRead;
955
638
  }>(`/v1/modules/${encodeURIComponent(moduleId)}`, oazapfts.json({
956
639
  ...opts,
957
640
  method: "PUT",
@@ -974,21 +657,21 @@ export function dispatchModuleServiceV1ModulesDispatchesPost({ authorization, bo
974
657
  data: any;
975
658
  } | {
976
659
  status: 400;
977
- data: HttpErrorResponse;
660
+ data: HttpErrorResponseRead;
978
661
  } | {
979
662
  status: 401;
980
- data: HttpErrorResponse;
663
+ data: HttpErrorResponseRead;
981
664
  } | {
982
665
  status: 404;
983
- data: HttpErrorResponse;
666
+ data: HttpErrorResponseRead;
984
667
  } | {
985
668
  status: 422;
986
669
  } | {
987
670
  status: 500;
988
- data: HttpErrorResponse;
671
+ data: HttpErrorResponseRead;
989
672
  } | {
990
673
  status: 503;
991
- data: HttpErrorResponse;
674
+ data: HttpErrorResponseRead;
992
675
  }>("/v1/modules/dispatches", oazapfts.json({
993
676
  ...opts,
994
677
  method: "POST",
@@ -1011,21 +694,21 @@ export function putReportV1ReportsReportIdPut({ reportId, authorization, putRepo
1011
694
  data: any;
1012
695
  } | {
1013
696
  status: 400;
1014
- data: HttpErrorResponse;
697
+ data: HttpErrorResponseRead;
1015
698
  } | {
1016
699
  status: 401;
1017
- data: HttpErrorResponse;
700
+ data: HttpErrorResponseRead;
1018
701
  } | {
1019
702
  status: 404;
1020
- data: HttpErrorResponse;
703
+ data: HttpErrorResponseRead;
1021
704
  } | {
1022
705
  status: 422;
1023
706
  } | {
1024
707
  status: 500;
1025
- data: HttpErrorResponse;
708
+ data: HttpErrorResponseRead;
1026
709
  } | {
1027
710
  status: 503;
1028
- data: HttpErrorResponse;
711
+ data: HttpErrorResponseRead;
1029
712
  }>(`/v1/reports/${encodeURIComponent(reportId)}`, oazapfts.json({
1030
713
  ...opts,
1031
714
  method: "PUT",
@@ -1047,21 +730,21 @@ export function getReportV1ReportsReportIdGet({ reportId, authorization }: {
1047
730
  data: GetReportResponse;
1048
731
  } | {
1049
732
  status: 400;
1050
- data: HttpErrorResponse;
733
+ data: HttpErrorResponseRead;
1051
734
  } | {
1052
735
  status: 401;
1053
- data: HttpErrorResponse;
736
+ data: HttpErrorResponseRead;
1054
737
  } | {
1055
738
  status: 404;
1056
- data: HttpErrorResponse;
739
+ data: HttpErrorResponseRead;
1057
740
  } | {
1058
741
  status: 422;
1059
742
  } | {
1060
743
  status: 500;
1061
- data: HttpErrorResponse;
744
+ data: HttpErrorResponseRead;
1062
745
  } | {
1063
746
  status: 503;
1064
- data: HttpErrorResponse;
747
+ data: HttpErrorResponseRead;
1065
748
  }>(`/v1/reports/${encodeURIComponent(reportId)}`, {
1066
749
  ...opts,
1067
750
  headers: oazapfts.mergeHeaders(opts?.headers, {
@@ -1069,6 +752,40 @@ export function getReportV1ReportsReportIdGet({ reportId, authorization }: {
1069
752
  })
1070
753
  }));
1071
754
  }
755
+ /**
756
+ * Get Report Pull Request Content
757
+ */
758
+ export function getReportPullRequestContentV1ReportsReportIdPullRequestGet({ reportId, authorization }: {
759
+ reportId: string;
760
+ authorization: string;
761
+ }, opts?: Oazapfts.RequestOpts) {
762
+ return oazapfts.ok(oazapfts.fetchJson<{
763
+ status: 200;
764
+ data: GetPullRequest;
765
+ } | {
766
+ status: 400;
767
+ data: HttpErrorResponseRead;
768
+ } | {
769
+ status: 401;
770
+ data: HttpErrorResponseRead;
771
+ } | {
772
+ status: 404;
773
+ data: HttpErrorResponseRead;
774
+ } | {
775
+ status: 422;
776
+ } | {
777
+ status: 500;
778
+ data: HttpErrorResponseRead;
779
+ } | {
780
+ status: 503;
781
+ data: HttpErrorResponseRead;
782
+ }>(`/v1/reports/${encodeURIComponent(reportId)}/pull-request`, {
783
+ ...opts,
784
+ headers: oazapfts.mergeHeaders(opts?.headers, {
785
+ authorization
786
+ })
787
+ }));
788
+ }
1072
789
  /**
1073
790
  * Download Report
1074
791
  */
@@ -1082,21 +799,21 @@ export function downloadReportV1ReportsReportIdDownloadGet({ reportId, extension
1082
799
  data: any;
1083
800
  } | {
1084
801
  status: 400;
1085
- data: HttpErrorResponse;
802
+ data: HttpErrorResponseRead;
1086
803
  } | {
1087
804
  status: 401;
1088
- data: HttpErrorResponse;
805
+ data: HttpErrorResponseRead;
1089
806
  } | {
1090
807
  status: 404;
1091
- data: HttpErrorResponse;
808
+ data: HttpErrorResponseRead;
1092
809
  } | {
1093
810
  status: 422;
1094
811
  } | {
1095
812
  status: 500;
1096
- data: HttpErrorResponse;
813
+ data: HttpErrorResponseRead;
1097
814
  } | {
1098
815
  status: 503;
1099
- data: HttpErrorResponse;
816
+ data: HttpErrorResponseRead;
1100
817
  }>(`/v1/reports/${encodeURIComponent(reportId)}/download${QS.query(QS.explode({
1101
818
  extension
1102
819
  }))}`, {
@@ -1186,21 +903,21 @@ export function listRepositoryReportV1ReposRepositoryIdReportsGet({ repositoryId
1186
903
  data: ListRepositoryReportResponse;
1187
904
  } | {
1188
905
  status: 400;
1189
- data: HttpErrorResponse;
906
+ data: HttpErrorResponseRead;
1190
907
  } | {
1191
908
  status: 401;
1192
- data: HttpErrorResponse;
909
+ data: HttpErrorResponseRead;
1193
910
  } | {
1194
911
  status: 404;
1195
- data: HttpErrorResponse;
912
+ data: HttpErrorResponseRead;
1196
913
  } | {
1197
914
  status: 422;
1198
915
  } | {
1199
916
  status: 500;
1200
- data: HttpErrorResponse;
917
+ data: HttpErrorResponseRead;
1201
918
  } | {
1202
919
  status: 503;
1203
- data: HttpErrorResponse;
920
+ data: HttpErrorResponseRead;
1204
921
  }>(`/v1/repos/${encodeURIComponent(repositoryId)}/reports${QS.query(QS.explode({
1205
922
  pageSize,
1206
923
  page,
@@ -1225,24 +942,24 @@ export function createReposBatchServiceV1ReposBatchPost({ tags, authorization, b
1225
942
  data: any;
1226
943
  } | {
1227
944
  status: 207;
1228
- data: HttpErrorResponse;
945
+ data: HttpErrorResponseRead;
1229
946
  } | {
1230
947
  status: 400;
1231
- data: HttpErrorResponse;
948
+ data: HttpErrorResponseRead;
1232
949
  } | {
1233
950
  status: 401;
1234
- data: HttpErrorResponse;
951
+ data: HttpErrorResponseRead;
1235
952
  } | {
1236
953
  status: 404;
1237
- data: HttpErrorResponse;
954
+ data: HttpErrorResponseRead;
1238
955
  } | {
1239
956
  status: 422;
1240
957
  } | {
1241
958
  status: 500;
1242
- data: HttpErrorResponse;
959
+ data: HttpErrorResponseRead;
1243
960
  } | {
1244
961
  status: 503;
1245
- data: HttpErrorResponse;
962
+ data: HttpErrorResponseRead;
1246
963
  }>(`/v1/repos/batch${QS.query(QS.explode({
1247
964
  tags
1248
965
  }))}`, oazapfts.multipart({
@@ -1266,21 +983,21 @@ export function createRepositoryServiceV1ReposPost({ authorization, createReposi
1266
983
  data: any;
1267
984
  } | {
1268
985
  status: 400;
1269
- data: HttpErrorResponse;
986
+ data: HttpErrorResponseRead;
1270
987
  } | {
1271
988
  status: 401;
1272
- data: HttpErrorResponse;
989
+ data: HttpErrorResponseRead;
1273
990
  } | {
1274
991
  status: 404;
1275
- data: HttpErrorResponse;
992
+ data: HttpErrorResponseRead;
1276
993
  } | {
1277
994
  status: 422;
1278
995
  } | {
1279
996
  status: 500;
1280
- data: HttpErrorResponse;
997
+ data: HttpErrorResponseRead;
1281
998
  } | {
1282
999
  status: 503;
1283
- data: HttpErrorResponse;
1000
+ data: HttpErrorResponseRead;
1284
1001
  }>("/v1/repos", oazapfts.json({
1285
1002
  ...opts,
1286
1003
  method: "POST",
@@ -1311,21 +1028,21 @@ export function listRepositoryServiceV1ReposGet({ pageSize, page, lastEvaluatedK
1311
1028
  data: ListRepositoryResponse;
1312
1029
  } | {
1313
1030
  status: 400;
1314
- data: HttpErrorResponse;
1031
+ data: HttpErrorResponseRead;
1315
1032
  } | {
1316
1033
  status: 401;
1317
- data: HttpErrorResponse;
1034
+ data: HttpErrorResponseRead;
1318
1035
  } | {
1319
1036
  status: 404;
1320
- data: HttpErrorResponse;
1037
+ data: HttpErrorResponseRead;
1321
1038
  } | {
1322
1039
  status: 422;
1323
1040
  } | {
1324
1041
  status: 500;
1325
- data: HttpErrorResponse;
1042
+ data: HttpErrorResponseRead;
1326
1043
  } | {
1327
1044
  status: 503;
1328
- data: HttpErrorResponse;
1045
+ data: HttpErrorResponseRead;
1329
1046
  }>(`/v1/repos${QS.query(QS.explode({
1330
1047
  pageSize,
1331
1048
  page,
@@ -1353,24 +1070,24 @@ export function getRepositoryByIdServiceV1ReposRepositoryIdGet({ repositoryId, a
1353
1070
  }, opts?: Oazapfts.RequestOpts) {
1354
1071
  return oazapfts.ok(oazapfts.fetchJson<{
1355
1072
  status: 200;
1356
- data: RepositoryResponse2;
1073
+ data: RepositoryResponse;
1357
1074
  } | {
1358
1075
  status: 400;
1359
- data: HttpErrorResponse;
1076
+ data: HttpErrorResponseRead;
1360
1077
  } | {
1361
1078
  status: 401;
1362
- data: HttpErrorResponse;
1079
+ data: HttpErrorResponseRead;
1363
1080
  } | {
1364
1081
  status: 404;
1365
- data: HttpErrorResponse;
1082
+ data: HttpErrorResponseRead;
1366
1083
  } | {
1367
1084
  status: 422;
1368
1085
  } | {
1369
1086
  status: 500;
1370
- data: HttpErrorResponse;
1087
+ data: HttpErrorResponseRead;
1371
1088
  } | {
1372
1089
  status: 503;
1373
- data: HttpErrorResponse;
1090
+ data: HttpErrorResponseRead;
1374
1091
  }>(`/v1/repos/${encodeURIComponent(repositoryId)}`, {
1375
1092
  ...opts,
1376
1093
  headers: oazapfts.mergeHeaders(opts?.headers, {
@@ -1390,21 +1107,21 @@ export function deleteRepositoryServiceV1ReposRepositoryIdDelete({ repositoryId,
1390
1107
  data: any;
1391
1108
  } | {
1392
1109
  status: 400;
1393
- data: HttpErrorResponse;
1110
+ data: HttpErrorResponseRead;
1394
1111
  } | {
1395
1112
  status: 401;
1396
- data: HttpErrorResponse;
1113
+ data: HttpErrorResponseRead;
1397
1114
  } | {
1398
1115
  status: 404;
1399
- data: HttpErrorResponse;
1116
+ data: HttpErrorResponseRead;
1400
1117
  } | {
1401
1118
  status: 422;
1402
1119
  } | {
1403
1120
  status: 500;
1404
- data: HttpErrorResponse;
1121
+ data: HttpErrorResponseRead;
1405
1122
  } | {
1406
1123
  status: 503;
1407
- data: HttpErrorResponse;
1124
+ data: HttpErrorResponseRead;
1408
1125
  }>(`/v1/repos/${encodeURIComponent(repositoryId)}`, {
1409
1126
  ...opts,
1410
1127
  method: "DELETE",
@@ -1426,21 +1143,21 @@ export function updateRepositoryServiceV1ReposRepositoryIdPut({ repositoryId, au
1426
1143
  data: any;
1427
1144
  } | {
1428
1145
  status: 400;
1429
- data: HttpErrorResponse;
1146
+ data: HttpErrorResponseRead;
1430
1147
  } | {
1431
1148
  status: 401;
1432
- data: HttpErrorResponse;
1149
+ data: HttpErrorResponseRead;
1433
1150
  } | {
1434
1151
  status: 404;
1435
- data: HttpErrorResponse;
1152
+ data: HttpErrorResponseRead;
1436
1153
  } | {
1437
1154
  status: 422;
1438
1155
  } | {
1439
1156
  status: 500;
1440
- data: HttpErrorResponse;
1157
+ data: HttpErrorResponseRead;
1441
1158
  } | {
1442
1159
  status: 503;
1443
- data: HttpErrorResponse;
1160
+ data: HttpErrorResponseRead;
1444
1161
  }>(`/v1/repos/${encodeURIComponent(repositoryId)}`, oazapfts.json({
1445
1162
  ...opts,
1446
1163
  method: "PUT",
@@ -1450,6 +1167,42 @@ export function updateRepositoryServiceV1ReposRepositoryIdPut({ repositoryId, au
1450
1167
  })
1451
1168
  })));
1452
1169
  }
1170
+ /**
1171
+ * Validate Scm Url Service
1172
+ */
1173
+ export function validateScmUrlServiceV1ReposValidateScmUrlPost({ authorization, validateScmUrlRequest }: {
1174
+ authorization: string;
1175
+ validateScmUrlRequest: ValidateScmUrlRequest;
1176
+ }, opts?: Oazapfts.RequestOpts) {
1177
+ return oazapfts.ok(oazapfts.fetchJson<{
1178
+ status: 200;
1179
+ data: any;
1180
+ } | {
1181
+ status: 400;
1182
+ data: HttpErrorResponseRead;
1183
+ } | {
1184
+ status: 401;
1185
+ data: HttpErrorResponseRead;
1186
+ } | {
1187
+ status: 404;
1188
+ data: HttpErrorResponseRead;
1189
+ } | {
1190
+ status: 422;
1191
+ } | {
1192
+ status: 500;
1193
+ data: HttpErrorResponseRead;
1194
+ } | {
1195
+ status: 503;
1196
+ data: HttpErrorResponseRead;
1197
+ }>("/v1/repos/validate-scm-url", oazapfts.json({
1198
+ ...opts,
1199
+ method: "POST",
1200
+ body: validateScmUrlRequest,
1201
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1202
+ authorization
1203
+ })
1204
+ })));
1205
+ }
1453
1206
  /**
1454
1207
  * Get Account Settings
1455
1208
  */
@@ -1743,6 +1496,29 @@ export function deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDelete({ p
1743
1496
  })
1744
1497
  }));
1745
1498
  }
1499
+ /**
1500
+ * Update Program Group Components Service
1501
+ */
1502
+ export function updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut({ programGroupId, authorization, body }: {
1503
+ programGroupId: string;
1504
+ authorization: string;
1505
+ body: PutProgramGroupComponentsRequest[];
1506
+ }, opts?: Oazapfts.RequestOpts) {
1507
+ return oazapfts.ok(oazapfts.fetchJson<{
1508
+ status: 200;
1509
+ data: any;
1510
+ } | {
1511
+ status: 422;
1512
+ data: HttpValidationError;
1513
+ }>(`/v1/program-groups/${encodeURIComponent(programGroupId)}/components`, oazapfts.json({
1514
+ ...opts,
1515
+ method: "PUT",
1516
+ body,
1517
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1518
+ authorization
1519
+ })
1520
+ })));
1521
+ }
1746
1522
  /**
1747
1523
  * List Program Group Report Service
1748
1524
  */