@stack-spot/portal-network 1.0.0-betaadp.2 → 1.0.0-dev.1768422812092

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 (230) hide show
  1. package/CHANGELOG.md +633 -0
  2. package/dist/api/account.d.ts +413 -277
  3. package/dist/api/account.d.ts.map +1 -1
  4. package/dist/api/account.js +261 -176
  5. package/dist/api/account.js.map +1 -1
  6. package/dist/api/accountAssetManager.d.ts +309 -0
  7. package/dist/api/accountAssetManager.d.ts.map +1 -0
  8. package/dist/api/accountAssetManager.js +169 -0
  9. package/dist/api/accountAssetManager.js.map +1 -0
  10. package/dist/api/agent-tools.d.ts +243 -149
  11. package/dist/api/agent-tools.d.ts.map +1 -1
  12. package/dist/api/agent-tools.js +77 -5
  13. package/dist/api/agent-tools.js.map +1 -1
  14. package/dist/api/agent.d.ts +55 -55
  15. package/dist/api/agent.d.ts.map +1 -1
  16. package/dist/api/ai.d.ts +487 -98
  17. package/dist/api/ai.d.ts.map +1 -1
  18. package/dist/api/ai.js +427 -146
  19. package/dist/api/ai.js.map +1 -1
  20. package/dist/api/cloudPlatform.d.ts +374 -221
  21. package/dist/api/cloudPlatform.d.ts.map +1 -1
  22. package/dist/api/cloudPlatform.js +299 -93
  23. package/dist/api/cloudPlatform.js.map +1 -1
  24. package/dist/api/cloudPlatformHorizon.d.ts +178 -9
  25. package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
  26. package/dist/api/cloudPlatformHorizon.js +69 -1
  27. package/dist/api/cloudPlatformHorizon.js.map +1 -1
  28. package/dist/api/codeShift.d.ts +1125 -83
  29. package/dist/api/codeShift.d.ts.map +1 -1
  30. package/dist/api/codeShift.js +538 -16
  31. package/dist/api/codeShift.js.map +1 -1
  32. package/dist/api/dataIntegration.d.ts +291 -1
  33. package/dist/api/dataIntegration.d.ts.map +1 -1
  34. package/dist/api/dataIntegration.js +254 -0
  35. package/dist/api/dataIntegration.js.map +1 -1
  36. package/dist/api/discover.d.ts +380 -0
  37. package/dist/api/discover.d.ts.map +1 -0
  38. package/dist/api/discover.js +256 -0
  39. package/dist/api/discover.js.map +1 -0
  40. package/dist/api/edpBfa.d.ts +215 -0
  41. package/dist/api/edpBfa.d.ts.map +1 -0
  42. package/dist/api/edpBfa.js +87 -0
  43. package/dist/api/edpBfa.js.map +1 -0
  44. package/dist/api/genAiInference.d.ts +22 -2
  45. package/dist/api/genAiInference.d.ts.map +1 -1
  46. package/dist/api/genAiInference.js +22 -3
  47. package/dist/api/genAiInference.js.map +1 -1
  48. package/dist/api/workflows.d.ts +68 -5
  49. package/dist/api/workflows.d.ts.map +1 -1
  50. package/dist/api/workflows.js +16 -0
  51. package/dist/api/workflows.js.map +1 -1
  52. package/dist/api/workspaceManager.d.ts +16 -10
  53. package/dist/api/workspaceManager.d.ts.map +1 -1
  54. package/dist/api/workspaceManager.js +10 -0
  55. package/dist/api/workspaceManager.js.map +1 -1
  56. package/dist/api-addresses.d.ts +20 -18
  57. package/dist/api-addresses.d.ts.map +1 -1
  58. package/dist/api-addresses.js +81 -21
  59. package/dist/api-addresses.js.map +1 -1
  60. package/dist/apis-itau.json +241 -0
  61. package/dist/apis.json +18 -2
  62. package/dist/client/account-asset-manager.d.ts +112 -0
  63. package/dist/client/account-asset-manager.d.ts.map +1 -0
  64. package/dist/client/account-asset-manager.js +160 -0
  65. package/dist/client/account-asset-manager.js.map +1 -0
  66. package/dist/client/account.d.ts +265 -242
  67. package/dist/client/account.d.ts.map +1 -1
  68. package/dist/client/account.js +80 -34
  69. package/dist/client/account.js.map +1 -1
  70. package/dist/client/agent-tools.d.ts +166 -119
  71. package/dist/client/agent-tools.d.ts.map +1 -1
  72. package/dist/client/agent-tools.js +62 -11
  73. package/dist/client/agent-tools.js.map +1 -1
  74. package/dist/client/agent.d.ts +46 -46
  75. package/dist/client/agent.d.ts.map +1 -1
  76. package/dist/client/ai.d.ts +266 -79
  77. package/dist/client/ai.d.ts.map +1 -1
  78. package/dist/client/ai.js +262 -20
  79. package/dist/client/ai.js.map +1 -1
  80. package/dist/client/api-management.d.ts +10 -1
  81. package/dist/client/api-management.d.ts.map +1 -1
  82. package/dist/client/api-management.js +11 -2
  83. package/dist/client/api-management.js.map +1 -1
  84. package/dist/client/cloud-account.d.ts +13 -13
  85. package/dist/client/cloud-platform-horizon.d.ts +38 -19
  86. package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
  87. package/dist/client/cloud-platform-horizon.js +19 -1
  88. package/dist/client/cloud-platform-horizon.js.map +1 -1
  89. package/dist/client/cloud-platform.d.ts +213 -46
  90. package/dist/client/cloud-platform.d.ts.map +1 -1
  91. package/dist/client/cloud-platform.js +168 -33
  92. package/dist/client/cloud-platform.js.map +1 -1
  93. package/dist/client/cloud-runtimes.d.ts +4 -4
  94. package/dist/client/cloud-services.d.ts +17 -17
  95. package/dist/client/cloud-services.d.ts.map +1 -1
  96. package/dist/client/code-shift.d.ts +535 -162
  97. package/dist/client/code-shift.d.ts.map +1 -1
  98. package/dist/client/code-shift.js +296 -7
  99. package/dist/client/code-shift.js.map +1 -1
  100. package/dist/client/content.d.ts +127 -132
  101. package/dist/client/content.d.ts.map +1 -1
  102. package/dist/client/data-integration.d.ts +92 -53
  103. package/dist/client/data-integration.d.ts.map +1 -1
  104. package/dist/client/data-integration.js +38 -2
  105. package/dist/client/data-integration.js.map +1 -1
  106. package/dist/client/discover.d.ts +84 -0
  107. package/dist/client/discover.d.ts.map +1 -0
  108. package/dist/client/discover.js +359 -0
  109. package/dist/client/discover.js.map +1 -0
  110. package/dist/client/edp-bfa.d.ts +16 -0
  111. package/dist/client/edp-bfa.d.ts.map +1 -0
  112. package/dist/client/edp-bfa.js +24 -0
  113. package/dist/client/edp-bfa.js.map +1 -0
  114. package/dist/client/event-bus.d.ts.map +1 -1
  115. package/dist/client/gen-ai-inference.d.ts +20 -20
  116. package/dist/client/insights.d.ts +7 -7
  117. package/dist/client/notification.d.ts +17 -10
  118. package/dist/client/notification.d.ts.map +1 -1
  119. package/dist/client/notification.js +10 -1
  120. package/dist/client/notification.js.map +1 -1
  121. package/dist/client/runtime-manager.d.ts +8 -8
  122. package/dist/client/secrets.d.ts.map +1 -1
  123. package/dist/client/secrets.js +1 -1
  124. package/dist/client/secrets.js.map +1 -1
  125. package/dist/client/types.d.ts +50 -7
  126. package/dist/client/types.d.ts.map +1 -1
  127. package/dist/client/workflow.d.ts +10 -10
  128. package/dist/client/workspace-ai.d.ts +53 -53
  129. package/dist/client/workspace-ai.d.ts.map +1 -1
  130. package/dist/client/workspace-ai.js +3 -7
  131. package/dist/client/workspace-ai.js.map +1 -1
  132. package/dist/client/workspace-manager.d.ts +115 -76
  133. package/dist/client/workspace-manager.d.ts.map +1 -1
  134. package/dist/client/workspace-manager.js +47 -2
  135. package/dist/client/workspace-manager.js.map +1 -1
  136. package/dist/client/workspace-search.d.ts +2 -2
  137. package/dist/client/workspace.d.ts +58 -105
  138. package/dist/client/workspace.d.ts.map +1 -1
  139. package/dist/error/DefaultAPIError.d.ts.map +1 -1
  140. package/dist/error/DefaultAPIError.js.map +1 -1
  141. package/dist/error/StackspotAPIError.d.ts +3 -4
  142. package/dist/error/StackspotAPIError.d.ts.map +1 -1
  143. package/dist/error/StackspotAPIError.js +3 -3
  144. package/dist/error/StackspotAPIError.js.map +1 -1
  145. package/dist/error/dictionary/accountAssetManager.d.ts +11 -0
  146. package/dist/error/dictionary/accountAssetManager.d.ts.map +1 -0
  147. package/dist/error/dictionary/accountAssetManager.js +11 -0
  148. package/dist/error/dictionary/accountAssetManager.js.map +1 -0
  149. package/dist/error/dictionary/cloud-platform.d.ts +76 -8
  150. package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
  151. package/dist/error/dictionary/cloud-platform.js +80 -12
  152. package/dist/error/dictionary/cloud-platform.js.map +1 -1
  153. package/dist/error/dictionary/workspace-ai.d.ts +9 -0
  154. package/dist/error/dictionary/workspace-ai.d.ts.map +1 -0
  155. package/dist/error/dictionary/workspace-ai.js +9 -0
  156. package/dist/error/dictionary/workspace-ai.js.map +1 -0
  157. package/dist/index.d.ts +6 -4
  158. package/dist/index.d.ts.map +1 -1
  159. package/dist/index.js +5 -3
  160. package/dist/index.js.map +1 -1
  161. package/dist/network/NetworkClient.d.ts +4 -2
  162. package/dist/network/NetworkClient.d.ts.map +1 -1
  163. package/dist/network/NetworkClient.js +16 -4
  164. package/dist/network/NetworkClient.js.map +1 -1
  165. package/dist/network/types.d.ts +2 -0
  166. package/dist/network/types.d.ts.map +1 -1
  167. package/dist/utils/StreamedJson.d.ts +3 -1
  168. package/dist/utils/StreamedJson.d.ts.map +1 -1
  169. package/dist/utils/StreamedJson.js +23 -3
  170. package/dist/utils/StreamedJson.js.map +1 -1
  171. package/package.dev.json +3 -0
  172. package/package.json +10 -9
  173. package/package.stg.json +3 -0
  174. package/readme.md +40 -1
  175. package/src/api/account.ts +701 -540
  176. package/src/api/accountAssetManager.ts +771 -0
  177. package/src/api/agent-tools.ts +332 -151
  178. package/src/api/ai.ts +891 -170
  179. package/src/api/cloudPlatform.ts +667 -298
  180. package/src/api/cloudPlatformHorizon.ts +412 -9
  181. package/src/api/codeShift.ts +2088 -97
  182. package/src/api/dataIntegration.ts +635 -1
  183. package/src/api/discover.ts +601 -0
  184. package/src/api/edpBfa.ts +472 -0
  185. package/src/api/genAiInference.ts +47 -4
  186. package/src/api/workflows.ts +100 -5
  187. package/src/api/workspaceManager.ts +25 -10
  188. package/src/api-addresses.ts +113 -38
  189. package/src/apis-itau.json +241 -0
  190. package/src/apis.json +18 -2
  191. package/src/client/account-asset-manager.ts +100 -0
  192. package/src/client/account.ts +71 -40
  193. package/src/client/agent-tools.ts +57 -17
  194. package/src/client/ai.ts +232 -20
  195. package/src/client/api-management.ts +7 -2
  196. package/src/client/cloud-platform-horizon.ts +12 -4
  197. package/src/client/cloud-platform.ts +101 -27
  198. package/src/client/code-shift.ts +196 -8
  199. package/src/client/data-integration.ts +28 -1
  200. package/src/client/discover.ts +319 -0
  201. package/src/client/edp-bfa.ts +24 -0
  202. package/src/client/notification.ts +6 -1
  203. package/src/client/secrets.ts +1 -1
  204. package/src/client/types.ts +55 -9
  205. package/src/client/workspace-ai.ts +19 -23
  206. package/src/client/workspace-manager.ts +31 -2
  207. package/src/error/DefaultAPIError.ts +5 -5
  208. package/src/error/StackspotAPIError.ts +4 -4
  209. package/src/error/dictionary/accountAssetManager.ts +12 -0
  210. package/src/error/dictionary/cloud-platform.ts +80 -12
  211. package/src/error/dictionary/workspace-ai.ts +10 -0
  212. package/src/index.ts +7 -4
  213. package/src/network/NetworkClient.ts +18 -6
  214. package/src/network/types.ts +3 -0
  215. package/src/utils/StreamedJson.tsx +19 -4
  216. package/dist/api/discovery.d.ts +0 -494
  217. package/dist/api/discovery.d.ts.map +0 -1
  218. package/dist/api/discovery.js +0 -205
  219. package/dist/api/discovery.js.map +0 -1
  220. package/dist/client/adp-mock.d.ts +0 -89
  221. package/dist/client/adp-mock.d.ts.map +0 -1
  222. package/dist/client/adp-mock.js +0 -246
  223. package/dist/client/adp-mock.js.map +0 -1
  224. package/dist/client/discovery.d.ts +0 -110
  225. package/dist/client/discovery.d.ts.map +0 -1
  226. package/dist/client/discovery.js +0 -133
  227. package/dist/client/discovery.js.map +0 -1
  228. package/src/api/discovery.ts +0 -729
  229. package/src/client/adp-mock.ts +0 -244
  230. package/src/client/discovery.ts +0 -73
@@ -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" | "view-analytics";
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" | "account-discovery-repos" | "account-validate-repos";
16
16
  export type RolesResponse = {
17
17
  result: boolean;
18
18
  };
@@ -24,6 +24,36 @@ export type ValidationError = {
24
24
  export type HttpValidationError = {
25
25
  detail?: ValidationError[];
26
26
  };
27
+ 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_0015_INVALID_WORKFLOW_URL_EXCEPTION" | "CODE_SHIFT_API_0016_INVALID_ACTION_YAML_EXCEPTION" | "CODE_SHIFT_API_0017_FAIL_READING_ACTION_INPUTS_EXCEPTION" | "CODE_SHIFT_API_0018_MODULE_DISPATCHER_GENERIC_EXCEPTION" | "CODE_SHIFT_API_0019_GITHUB_DISPATCH_WORKFLOW_UNAUTHORIZED_EXCEPTION" | "CODE_SHIFT_API_0020_GITHUB_SAML_EXCEPTION" | "CODE_SHIFT_API_0021_GITHUB_AUTHORIZATION_ENCODING_EXCEPTION" | "CODE_SHIFT_API_0022_GITHUB_DISPATCH_WORKFLOW_NOT_FOUND_EXCEPTION" | "CODE_SHIFT_API_0023_GENERIC_FAILURE_SEARCHING_REPOSITORY_EXCEPTION" | "CODE_SHIFT_API_0024_COMPONENTS_MAX_SIZE_ALLOWED_EXCEPTION" | "CODE_SHIFT_API_0025_INVALID_SEARCH_REPOSITORY_STATUS_SAVE_EXCEPTION" | "CODE_SHIFT_API_0026_SEARCH_REPO_EMPTY_RESULT_EXCEPTION" | "CODE_SHIFT_API_0027_ACCOUNT_SCM_CONFIG_NOT_FOUND_EXCEPTION" | "CODE_SHIFT_API_0028_USER_SCM_CONFIG_NOT_FOUND_EXCEPTION" | "CODE_SHIFT_API_0029_USER_CUSTOMER_RATING_CREATION_FORBIDDEN" | "CODE_SHIFT_API_0030_BROKEN_STACKSPOT_WORKFLOW_SCM_SETUP_BY_INVALID_TRIGGER_EXCEPTION" | "CODE_SHIFT_API_0031_GITHUB_SECONDARY_INDEX" | "CODE_SHIFT_API_0032_GITHUB_MISSING_PAT_SCOPE" | "CODE_SHIFT_API_0033_FEATURE_NOT_IMPLEMENTED_TO_SCM_YET" | "CODE_SHIFT_API_0034_FAILURE_GETTING_READING_CREDENTIALS" | "CODE_SHIFT_API_0035_SCM_MODULE_DOCUMENTATION_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_3101_SCM_GET_REPOSITORIES_NOT_FOUND" | "CODE_SHIFT_API_3102_SCM_GET_REPOSITORIES_UNAUTHORIZED" | "CODE_SHIFT_API_3103_SCM_GET_REPOSITORIES_FORBIDDEN" | "CODE_SHIFT_API_3104_SCM_GET_REPOSITORIES_SAML_ERROR" | "CODE_SHIFT_API_3110_SCM_GET_PULL_REQUEST_FAILURE" | "CODE_SHIFT_API_3111_SCM_GET_PULL_REQUEST_NOT_FOUND" | "CODE_SHIFT_API_3112_SCM_GET_PULL_REQUEST_UNAUTHORIZED" | "CODE_SHIFT_API_3113_SCM_GET_PULL_REQUEST_FORBIDDEN" | "CODE_SHIFT_API_3114_SCM_GET_PULL_REQUEST_SAML_ERROR" | "CODE_SHIFT_API_3120_SCM_GET_BRANCHES_FAILURE" | "CODE_SHIFT_API_3121_SCM_GET_BRANCHES_NOT_FOUND" | "CODE_SHIFT_API_3122_SCM_GET_BRANCHES_UNAUTHORIZED" | "CODE_SHIFT_API_3123_SCM_GET_BRANCHES_FORBIDDEN" | "CODE_SHIFT_API_3124_SCM_GET_BRANCHES_SAML_ERROR" | "CODE_SHIFT_API_3130_SCM_GET_SCM_REPOSITORY_FETCH_FAILURE" | "CODE_SHIFT_API_3131_SCM_REPOSITORY_NOT_FOUND" | "CODE_SHIFT_API_3132_SCM_REPOSITORY_UNAUTHORIZED" | "CODE_SHIFT_API_3133_SCM_REPOSITORY_FORBIDDEN" | "CODE_SHIFT_API_3134_SCM_REPOSITORY_SAML_ERROR" | "CODE_SHIFT_API_3140_SCM_GET_BRANCH_FAILURE" | "CODE_SHIFT_API_3142_SCM_GET_BRANCH_NOT_FOUND" | "CODE_SHIFT_API_3143_SCM_GET_BRANCH_UNAUTHORIZED" | "CODE_SHIFT_API_3144_SCM_GET_BRANCH_FORBIDDEN" | "CODE_SHIFT_API_3145_SCM_GET_BRANCH_SAML_ERROR" | "CODE_SHIFT_API_3150_SCM_GET_REPOSITORY_FILE_FAILURE" | "CODE_SHIFT_API_3151_SCM_GET_REPOSITORY_FILE_NOT_FOUND" | "CODE_SHIFT_API_3152_SCM_GET_REPOSITORY_FILE_UNAUTHORIZED" | "CODE_SHIFT_API_3153_SCM_GET_REPOSITORY_FILE_FORBIDDEN" | "CODE_SHIFT_API_3154_SCM_GET_REPOSITORY_FILE_SAML_ERROR" | "CODE_SHIFT_API_3160_SCM_GET_REPOSITORY_FILE_FAILURE" | "CODE_SHIFT_API_3161_SCM_GET_REPOSITORY_FILE_NOT_FOUND" | "CODE_SHIFT_API_3162_SCM_GET_REPOSITORY_FILE_UNAUTHORIZED" | "CODE_SHIFT_API_3163_SCM_GET_REPOSITORY_FILE_FORBIDDEN" | "CODE_SHIFT_API_3164_SCM_GET_REPOSITORY_FILE_SAML_ERROR" | "CODE_SHIFT_API_3170_SCM_GET_OWNER_FAILURE" | "CODE_SHIFT_API_3172_SCM_GET_OWNER_NOT_FOUND" | "CODE_SHIFT_API_3173_SCM_GET_OWNER_UNAUTHORIZED" | "CODE_SHIFT_API_3174_SCM_GET_OWNER_FORBIDDEN" | "CODE_SHIFT_API_3175_SCM_GET_OWNER_SAML_ERROR" | "CODE_SHIFT_API_3500_CONTENT_API_GET_WORKFLOW_VERSION_FAILURE" | "CODE_SHIFT_API_3501_CONTENT_API_GET_WORKFLOW_VERSION_NOT_FOUND" | "CODE_SHIFT_API_3502_CONTENT_API_GET_WORKFLOW_VERSION_FORBIDDEN" | "CODE_SHIFT_API_3503_CONTENT_API_GET_WORKFLOW_VERSION_UNAUTHORIZED" | "CODE_SHIFT_API_3510_CONTENT_API_GET_WORKFLOW_FAILURE" | "CODE_SHIFT_API_3511_CONTENT_API_GET_WORKFLOW_NOT_FOUND" | "CODE_SHIFT_API_3512_CONTENT_API_GET_WORKFLOW_FORBIDDEN" | "CODE_SHIFT_API_3513_CONTENT_API_GET_WORKFLOW_UNAUTHORIZED" | "CODE_SHIFT_API_3520_CONTENT_API_GET_WORKFLOW_INPUTS_FAILURE" | "CODE_SHIFT_API_3521_CONTENT_API_GET_WORKFLOW_INPUTS_NOT_FOUND" | "CODE_SHIFT_API_3522_CONTENT_API_GET_WORKFLOW_INPUTS_FORBIDDEN" | "CODE_SHIFT_API_3523_CONTENT_API_GET_WORKFLOW_INPUTS_UNAUTHORIZED" | "CODE_SHIFT_API_3530_CONTENT_API_GET_WORKFLOW_DOCUMENTATION_FAILURE" | "CODE_SHIFT_API_3531_CONTENT_API_GET_WORKFLOW_DOCUMENTATION_NOT_FOUND" | "CODE_SHIFT_API_3532_CONTENT_API_GET_WORKFLOW_DOCUMENTATION_FORBIDDEN" | "CODE_SHIFT_API_3533_CONTENT_API_GET_WORKFLOW_DOCUMENTATION_UNAUTHORIZED" | "CODE_SHIFT_API_4010_GET_SCM_CREDENTIALS_FAILURE" | "CODE_SHIFT_API_4011_GET_SCM_CREDENTIALS_FORBIDDEN" | "CODE_SHIFT_API_4012_GET_SCM_CREDENTIALS_NOT_FOUND" | "CODE_SHIFT_API_4019_GET_SCM_CREDENTIALS_PARSE_ERROR" | "CODE_SHIFT_API_6000_IAM_GENERATE_TOKEN_FAILURE" | "CODE_SHIFT_API_6000_IAM_INTROSPECT_TOKEN_FAILURE";
28
+ 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";
29
+ export type InvalidPayloadDetails = {
30
+ code: BadRequestExceptionTypes | ExceptionType;
31
+ field: string | null;
32
+ message?: string | null;
33
+ };
34
+ export type SuggestedMessage = {
35
+ ptBr: string | null;
36
+ enUs: string | null;
37
+ };
38
+ export type InvalidPayloadDetailsRead = {
39
+ code: BadRequestExceptionTypes | ExceptionType;
40
+ field: string | null;
41
+ message?: string | null;
42
+ suggestedMessages: SuggestedMessage | null;
43
+ };
44
+ export type HttpErrorResponse = {
45
+ status: string;
46
+ code: ExceptionType;
47
+ details: string;
48
+ validationDetails?: InvalidPayloadDetails[] | null;
49
+ };
50
+ export type HttpErrorResponseRead = {
51
+ status: string;
52
+ code: ExceptionType;
53
+ details: string;
54
+ validationDetails?: InvalidPayloadDetailsRead[] | null;
55
+ suggestedMessages: SuggestedMessage | null;
56
+ };
27
57
  export type ModuleType = "repository" | "program_group";
28
58
  export type InputRequest = {
29
59
  name: string;
@@ -35,6 +65,20 @@ export type GitAction = {
35
65
  branch: string;
36
66
  directory: string;
37
67
  };
68
+ export type ModuleVisibility = "Personal" | "Account";
69
+ export type UserRequest = {
70
+ /** User ID */
71
+ id: string;
72
+ /** User username */
73
+ username: string;
74
+ /** User email */
75
+ email: string;
76
+ };
77
+ export type ModulePermission = "read" | "write";
78
+ export type SharedUserRequest = {
79
+ user: UserRequest;
80
+ permission: ModulePermission;
81
+ };
38
82
  export type CreateModuleRequest = {
39
83
  /** Module name */
40
84
  name: string;
@@ -43,58 +87,37 @@ export type CreateModuleRequest = {
43
87
  /** Module description */
44
88
  description: string;
45
89
  /** Module workflow_name */
46
- workflowName: string;
90
+ workflowName?: string | null;
47
91
  /** Module version */
48
- version: string;
92
+ version?: string | null;
49
93
  /** Module mode */
50
94
  modes: string[];
51
95
  /** Module tags */
52
96
  tags: string[];
53
97
  /** Inputs of module */
54
- inputs: InputRequest[];
98
+ inputs?: InputRequest[] | null;
55
99
  /** Module studio */
56
- studio: string;
100
+ studio?: string | null;
57
101
  /** Module studio */
58
102
  constants?: {
59
103
  [key: string]: any;
60
104
  } | null;
61
105
  gitAction?: GitAction | null;
62
- };
63
- 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_NOT_FOUND" | "CODE_SHIFT_API_4009_ACCOUNTS_API_PAT_PARSE_ERROR" | "CODE_SHIFT_API_4010_GET_SCM_CREDENTIALS_FAILURE" | "CODE_SHIFT_API_4011_GET_SCM_CREDENTIALS_FORBIDDEN" | "CODE_SHIFT_API_4012_GET_SCM_CREDENTIALS_NOT_FOUND" | "CODE_SHIFT_API_4019_GET_SCM_CREDENTIALS_PARSE_ERROR" | "CODE_SHIFT_API_6000_IAM_GENERATE_TOKEN_FAILURE" | "CODE_SHIFT_API_6000_IAM_INTROSPECT_TOKEN_FAILURE";
64
- 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";
65
- export type InvalidPayloadDetails = {
66
- code: BadRequestExceptionTypes | ExceptionType;
67
- field: string | null;
68
- message?: string | null;
69
- };
70
- export type SuggestedMessage = {
71
- ptBr: string | null;
72
- enUs: string | null;
73
- };
74
- export type InvalidPayloadDetailsRead = {
75
- code: BadRequestExceptionTypes | ExceptionType;
76
- field: string | null;
77
- message?: string | null;
78
- suggestedMessages: SuggestedMessage | null;
79
- };
80
- export type HttpErrorResponse = {
81
- status: string;
82
- code: ExceptionType;
83
- details: string;
84
- validationDetails?: InvalidPayloadDetails[] | null;
85
- };
86
- export type HttpErrorResponseRead = {
87
- status: string;
88
- code: ExceptionType;
89
- details: string;
90
- validationDetails?: InvalidPayloadDetailsRead[] | null;
91
- suggestedMessages: SuggestedMessage | null;
106
+ /** Module visibility */
107
+ visibility?: ModuleVisibility;
108
+ /** List of users to share the module with */
109
+ sharedWith?: SharedUserRequest[] | null;
92
110
  };
93
111
  export type InputResponse = {
94
112
  name: string;
95
113
  required: boolean;
96
114
  "default": string;
97
115
  };
116
+ export type GitAction2 = {
117
+ repositoryName: string;
118
+ branch: string;
119
+ directory: string;
120
+ };
98
121
  export type ModuleResponse = {
99
122
  /** Module ID */
100
123
  id: string;
@@ -105,9 +128,9 @@ export type ModuleResponse = {
105
128
  /** Module description */
106
129
  description: string;
107
130
  /** Workflow name */
108
- workflowName: string;
131
+ workflowName: string | null;
109
132
  /** Studio */
110
- studio: string;
133
+ studio: string | null;
111
134
  /** Module modes */
112
135
  modes: string[];
113
136
  /** Module versions */
@@ -116,11 +139,19 @@ export type ModuleResponse = {
116
139
  tags: string[];
117
140
  /** Module inputs */
118
141
  inputs: InputResponse[];
142
+ /** Flag to internal developed modules */
143
+ stackspotInternal: boolean;
119
144
  /** Module studio */
120
145
  constants?: {
121
146
  [key: string]: any;
122
147
  } | null;
123
- gitAction?: GitAction | null;
148
+ /** Module visibility */
149
+ visibility: ModuleVisibility;
150
+ gitAction?: GitAction2 | null;
151
+ /** Flag to favor modules */
152
+ isFavorite: boolean;
153
+ /** Flag to edit modules */
154
+ canEdit: boolean;
124
155
  };
125
156
  export type ListModuleResponse = {
126
157
  /** List of modules */
@@ -148,10 +179,112 @@ export type PutModuleRequest = {
148
179
  /** Inputs of module */
149
180
  inputs?: InputRequest[] | null;
150
181
  /** Module studio */
182
+ studio?: string | null;
183
+ /** Module Constants */
151
184
  constants?: {
152
185
  [key: string]: any;
153
186
  } | null;
154
187
  gitAction?: GitAction | null;
188
+ /** Module visibility */
189
+ visibility?: ModuleVisibility | null;
190
+ /** List of users to share the module with */
191
+ sharedWith?: SharedUserRequest[] | null;
192
+ };
193
+ export type SharedPermissionResponse = {
194
+ /** User ID */
195
+ userId: string;
196
+ /** User email */
197
+ email: string;
198
+ /** User username */
199
+ username: string;
200
+ /** Permission type: 'read' (view/execute) or 'write' (edit/manage) */
201
+ permission: ModulePermission;
202
+ };
203
+ export type UserResponse = {
204
+ name: string;
205
+ };
206
+ export type GetModuleResponse = {
207
+ /** Module ID */
208
+ id: string;
209
+ /** Module type */
210
+ "type": ModuleType;
211
+ /** Module name */
212
+ name: string;
213
+ /** Module description */
214
+ description: string;
215
+ /** Workflow name */
216
+ workflowName: string | null;
217
+ /** Studio */
218
+ studio: string | null;
219
+ /** Module modes */
220
+ modes: string[];
221
+ /** Module versions */
222
+ version: string | null;
223
+ /** Module studio */
224
+ constants?: {
225
+ [key: string]: any;
226
+ } | null;
227
+ gitAction?: GitAction2 | null;
228
+ /** Module tags */
229
+ tags?: string[] | null;
230
+ /** Flag to internal developed modules */
231
+ stackspotInternal: boolean;
232
+ /** Module visibility */
233
+ visibility: ModuleVisibility;
234
+ /** List of users to share the module with */
235
+ sharedWith?: SharedPermissionResponse[] | null;
236
+ /** Flag to favor modules */
237
+ isFavorite: boolean;
238
+ /** Flag to edit modules */
239
+ canEdit: boolean;
240
+ /** Module usage */
241
+ totalUsage: number;
242
+ /** Module users */
243
+ totalUsers: number;
244
+ createdBy: UserResponse | null;
245
+ };
246
+ export type ExternalItemsModel = {
247
+ source: string;
248
+ value: string;
249
+ label: string;
250
+ };
251
+ export type ConditionModel = {
252
+ variable: string;
253
+ operator: string;
254
+ value: any;
255
+ };
256
+ export type OutputModel = {
257
+ "from": string;
258
+ to: string;
259
+ };
260
+ export type InputModel = {
261
+ label: string;
262
+ name: string | null;
263
+ "type": string;
264
+ required: boolean;
265
+ pattern: string | null;
266
+ help: string | null;
267
+ "default": any | null;
268
+ items: string[] | null;
269
+ externalItems: ExternalItemsModel | null;
270
+ itemsValues: string[] | null;
271
+ condition: ConditionModel | null;
272
+ connectionInterfaceType: string | null;
273
+ outputs: OutputModel[] | null;
274
+ input: InputModel | null;
275
+ inputs: InputModel[] | null;
276
+ scope: string | null;
277
+ };
278
+ export type ComputedInputModel = {
279
+ name: string;
280
+ expression: string;
281
+ };
282
+ export type GetModuleInputsResponse = {
283
+ inputs: InputModel[];
284
+ computedInputs: ComputedInputModel[] | null;
285
+ };
286
+ export type GetModuleDocsResponse = {
287
+ content: string;
155
288
  };
156
289
  export type Mode = "scan" | "fix";
157
290
  export type ModuleDispatchRequest = {
@@ -169,6 +302,9 @@ export type ModuleDispatchRequest = {
169
302
  [key: string]: any;
170
303
  } | null;
171
304
  };
305
+ export type DispatchModuleResponse = {
306
+ batch_id: string;
307
+ };
172
308
  export type DependsOnRequest = {
173
309
  sourceRef: string;
174
310
  targetRef: string;
@@ -183,24 +319,45 @@ export type IssuesRequest = {
183
319
  };
184
320
  export type TargetFilesRequest = {
185
321
  fileName: string;
186
- filePath: string;
322
+ filePath?: string | null;
187
323
  details?: string | null;
188
324
  dependsOn?: DependsOnRequest[] | null;
189
325
  issues?: IssuesRequest[] | null;
326
+ totalTokenSent?: number | null;
327
+ totalTokenReceived?: number | null;
328
+ modified?: boolean | null;
329
+ customOutputs?: {
330
+ [key: string]: any;
331
+ } | null;
332
+ };
333
+ export type LanguageInfoRequest = {
334
+ bytes: number;
335
+ absolutePercentage: number;
336
+ relativePercentage: number;
337
+ };
338
+ export type CustomHeadersRequest = {
339
+ label: string;
340
+ value: any | null;
190
341
  };
191
342
  export type PutReportRequest = {
192
343
  filesCount?: number;
193
- issuesCount: number;
344
+ issuesCount?: number | null;
194
345
  totalFilesCount?: number | null;
195
346
  analyzedFilesCount?: number | null;
196
347
  changedFilesCount?: number | null;
197
348
  pullRequestLink?: string | null;
198
349
  commitHash?: string | null;
199
- targetFiles: TargetFilesRequest[];
350
+ targetFiles?: TargetFilesRequest[];
200
351
  moduleVersion?: string | null;
201
352
  customOutputs?: {
202
353
  [key: string]: any;
203
354
  } | null;
355
+ totalTokenSent?: number | null;
356
+ totalTokenReceived?: number | null;
357
+ languageBreakdown?: {
358
+ [key: string]: LanguageInfoRequest;
359
+ } | null;
360
+ customHeaders?: CustomHeadersRequest[] | null;
204
361
  };
205
362
  export type ModuleResponse2 = {
206
363
  id: string;
@@ -218,7 +375,7 @@ export type ExecutionResponse = {
218
375
  status: string | null;
219
376
  conclusion: string | null;
220
377
  };
221
- export type UserResponse = {
378
+ export type UserResponse2 = {
222
379
  id: string;
223
380
  name: string;
224
381
  email: string;
@@ -247,6 +404,12 @@ export type TargetFilesResponse = {
247
404
  details?: string | null;
248
405
  dependsOn?: DependsOnResponse[] | null;
249
406
  issues?: IssuesResponse[] | null;
407
+ totalTokenSent?: number | null;
408
+ totalTokenReceived?: number | null;
409
+ modified?: boolean | null;
410
+ customOutputs?: {
411
+ [key: string]: any;
412
+ } | null;
250
413
  };
251
414
  export type ReportStatus = "waiting_dispatch" | "waiting_runner" | "dispatch_failure" | "in_progress" | "suspended" | "error" | "success" | "cancelled";
252
415
  export type PullRequestResponse = {
@@ -258,6 +421,25 @@ export type PullRequestResponse = {
258
421
  updatedAt: string | null;
259
422
  lastSyncAt: string | null;
260
423
  };
424
+ export type CustomerRatingResponse = {
425
+ id: string;
426
+ report_id: string;
427
+ score: number;
428
+ commentary: string | null;
429
+ created_by: UserResponse2;
430
+ created_at: string;
431
+ };
432
+ export type LanguageResponse = {
433
+ name: string;
434
+ extensions: string[];
435
+ bytes: number;
436
+ relativePercentage: number;
437
+ absolutePercentage: number;
438
+ };
439
+ export type CustomHeadersResponse = {
440
+ label: string;
441
+ value: any | null;
442
+ };
261
443
  export type GetReportResponse = {
262
444
  id: string;
263
445
  "module": ModuleResponse2 | null;
@@ -266,7 +448,45 @@ export type GetReportResponse = {
266
448
  mode: string;
267
449
  sourceBranch: string | null;
268
450
  targetBranch?: string | null;
269
- createdBy: UserResponse;
451
+ createdBy: UserResponse2;
452
+ createdAt: string;
453
+ updatedAt: string;
454
+ filesCount: number | null;
455
+ totalFilesCount: number | null;
456
+ changedFilesCount: number | null;
457
+ analyzedFilesCount: number | null;
458
+ issuesFilesCount: number | null;
459
+ issuesCount: number | null;
460
+ commitHash: string | null;
461
+ pullRequestLink?: string | null;
462
+ programGroup: ProgramGroupResponse | null;
463
+ moduleVersion?: string | null;
464
+ customOutputs?: {
465
+ [key: string]: any;
466
+ } | null;
467
+ totalTokenSent?: number | null;
468
+ totalTokenReceived?: number | null;
469
+ targetFiles: TargetFilesResponse[];
470
+ errorLog?: string | null;
471
+ exceptions: HttpErrorResponse[];
472
+ status: ReportStatus | null;
473
+ scmPullRequestData: PullRequestResponse | null;
474
+ inputs?: {
475
+ [key: string]: any;
476
+ } | null;
477
+ customer_rating?: CustomerRatingResponse | null;
478
+ languages?: LanguageResponse[] | null;
479
+ customHeaders?: CustomHeadersResponse[] | null;
480
+ };
481
+ export type GetReportResponseRead = {
482
+ id: string;
483
+ "module": ModuleResponse2 | null;
484
+ application: ApplicationResponse | null;
485
+ execution: ExecutionResponse | null;
486
+ mode: string;
487
+ sourceBranch: string | null;
488
+ targetBranch?: string | null;
489
+ createdBy: UserResponse2;
270
490
  createdAt: string;
271
491
  updatedAt: string;
272
492
  filesCount: number | null;
@@ -282,17 +502,27 @@ export type GetReportResponse = {
282
502
  customOutputs?: {
283
503
  [key: string]: any;
284
504
  } | null;
505
+ totalTokenSent?: number | null;
506
+ totalTokenReceived?: number | null;
285
507
  targetFiles: TargetFilesResponse[];
286
508
  errorLog?: string | null;
509
+ exceptions: HttpErrorResponseRead[];
287
510
  status: ReportStatus | null;
288
511
  scmPullRequestData: PullRequestResponse | null;
289
512
  inputs?: {
290
513
  [key: string]: any;
291
514
  } | null;
515
+ customer_rating?: CustomerRatingResponse | null;
516
+ languages?: LanguageResponse[] | null;
517
+ customHeaders?: CustomHeadersResponse[] | null;
292
518
  };
293
519
  export type GetPullRequest = {
294
520
  content: string;
295
521
  };
522
+ export type PutCustomerRatingReportRequest = {
523
+ score: number;
524
+ commentary?: string | null;
525
+ };
296
526
  export type SearchRepoScmResponse = {
297
527
  id: string;
298
528
  };
@@ -305,7 +535,7 @@ export type ModuleResponse3 = {
305
535
  id: string;
306
536
  name: string;
307
537
  };
308
- export type UserResponse2 = {
538
+ export type UserResponse3 = {
309
539
  id: string;
310
540
  name: string;
311
541
  email: string;
@@ -318,13 +548,31 @@ export type ReportResponse = {
318
548
  mode: string;
319
549
  sourceBranch: string;
320
550
  targetBranch?: string | null;
321
- createdBy: UserResponse2;
551
+ createdBy: UserResponse3;
552
+ createdAt: string;
553
+ updatedAt: string;
554
+ filesCount: number | null;
555
+ issuesCount: number | null;
556
+ pullRequestLink?: string | null;
557
+ errorLog?: string | null;
558
+ exceptions: HttpErrorResponse[];
559
+ status: ReportStatus | null;
560
+ };
561
+ export type ReportResponseRead = {
562
+ id: string;
563
+ "module": ModuleResponse3;
564
+ execution: ExecutionResponse | null;
565
+ mode: string;
566
+ sourceBranch: string;
567
+ targetBranch?: string | null;
568
+ createdBy: UserResponse3;
322
569
  createdAt: string;
323
570
  updatedAt: string;
324
571
  filesCount: number | null;
325
572
  issuesCount: number | null;
326
573
  pullRequestLink?: string | null;
327
574
  errorLog?: string | null;
575
+ exceptions: HttpErrorResponseRead[];
328
576
  status: ReportStatus | null;
329
577
  };
330
578
  export type ListRepositoryReportResponse = {
@@ -335,6 +583,14 @@ export type ListRepositoryReportResponse = {
335
583
  /** Last evaluated key */
336
584
  lastEvaluatedKey: string | null;
337
585
  };
586
+ export type ListRepositoryReportResponseRead = {
587
+ /** List of reports */
588
+ items: ReportResponseRead[];
589
+ /** Number of reports */
590
+ itemsCount: number;
591
+ /** Last evaluated key */
592
+ lastEvaluatedKey: string | null;
593
+ };
338
594
  export type BodyCreateReposBatchServiceV1ReposBatchPost = {
339
595
  file: Blob;
340
596
  };
@@ -343,7 +599,7 @@ export type CreateRepositoryRequest = {
343
599
  defaultBranch: string;
344
600
  tags?: string[] | null;
345
601
  };
346
- export type UserResponse3 = {
602
+ export type UserResponse4 = {
347
603
  id: string;
348
604
  name: string;
349
605
  email: string;
@@ -356,13 +612,31 @@ export type ReportResponse2 = {
356
612
  moduleId: string;
357
613
  sourceBranch: string;
358
614
  targetBranch?: string | null;
359
- createdBy: UserResponse3 | null;
615
+ createdBy: UserResponse4 | null;
616
+ createdAt: string;
617
+ updatedAt: string;
618
+ filesCount: number | null;
619
+ issuesCount: number | null;
620
+ pullRequestLink?: string | null;
621
+ errorLog?: string | null;
622
+ exceptions: HttpErrorResponse[];
623
+ status: ReportStatus | null;
624
+ };
625
+ export type ReportResponseRead2 = {
626
+ id: string;
627
+ execution: ExecutionResponse | null;
628
+ mode: string;
629
+ moduleId: string;
630
+ sourceBranch: string;
631
+ targetBranch?: string | null;
632
+ createdBy: UserResponse4 | null;
360
633
  createdAt: string;
361
634
  updatedAt: string;
362
635
  filesCount: number | null;
363
636
  issuesCount: number | null;
364
637
  pullRequestLink?: string | null;
365
638
  errorLog?: string | null;
639
+ exceptions: HttpErrorResponseRead[];
366
640
  status: ReportStatus | null;
367
641
  };
368
642
  export type RepositoryResponse = {
@@ -376,6 +650,20 @@ export type RepositoryResponse = {
376
650
  tags: string[];
377
651
  url: string;
378
652
  defaultBranch: string;
653
+ languages?: LanguageResponse[] | null;
654
+ };
655
+ export type RepositoryResponseRead = {
656
+ /** Repository ID */
657
+ id: string;
658
+ /** Repository creation date */
659
+ createdAt?: string | null;
660
+ /** Repository creation user */
661
+ createdBy?: string | null;
662
+ lastModuleReport: ReportResponseRead2 | null;
663
+ tags: string[];
664
+ url: string;
665
+ defaultBranch: string;
666
+ languages?: LanguageResponse[] | null;
379
667
  };
380
668
  export type ListRepositoryResponse = {
381
669
  /** List of applications */
@@ -385,6 +673,14 @@ export type ListRepositoryResponse = {
385
673
  /** Last evaluated key */
386
674
  lastEvaluatedKey?: string | null;
387
675
  };
676
+ export type ListRepositoryResponseRead = {
677
+ /** List of applications */
678
+ items: RepositoryResponseRead[];
679
+ /** Number of applications */
680
+ itemsCount: number;
681
+ /** Last evaluated key */
682
+ lastEvaluatedKey?: string | null;
683
+ };
388
684
  export type ListBranchesResponse = {
389
685
  /** List of all branches */
390
686
  branches: string[];
@@ -397,6 +693,15 @@ export type PutRepositoryRequest = {
397
693
  export type ValidateScmUrlRequest = {
398
694
  url?: string | null;
399
695
  };
696
+ export type ValidateScmUrlResponse = {
697
+ url: string;
698
+ name: string | null;
699
+ id: string | null;
700
+ defaultBranch: string | null;
701
+ lastCommitDate: string | null;
702
+ archived: boolean | null;
703
+ visibility: string | null;
704
+ };
400
705
  export type GetAccountSettingsRequest = {
401
706
  maxSimultaneousExecution: number | null;
402
707
  createRepositoryValidateBranch: boolean | null;
@@ -457,7 +762,7 @@ export type BodyCreateProgramGroupServiceV1ProgramGroupsPost = {
457
762
  export type CreateProgramGroupResponse = {
458
763
  id: string;
459
764
  };
460
- export type UserResponse4 = {
765
+ export type UserResponse5 = {
461
766
  id: string;
462
767
  name: string;
463
768
  email: string;
@@ -468,13 +773,29 @@ export type ReportResponse3 = {
468
773
  execution: ExecutionResponse | null;
469
774
  mode: string;
470
775
  moduleId: string;
471
- createdBy: UserResponse4 | null;
776
+ createdBy: UserResponse5 | null;
777
+ createdAt: string;
778
+ updatedAt: string;
779
+ filesCount: number | null;
780
+ issuesCount: number | null;
781
+ pullRequestLink?: string | null;
782
+ errorLog?: string | null;
783
+ exceptions: HttpErrorResponse[];
784
+ status: ReportStatus | null;
785
+ };
786
+ export type ReportResponseRead3 = {
787
+ id: string;
788
+ execution: ExecutionResponse | null;
789
+ mode: string;
790
+ moduleId: string;
791
+ createdBy: UserResponse5 | null;
472
792
  createdAt: string;
473
793
  updatedAt: string;
474
794
  filesCount: number | null;
475
795
  issuesCount: number | null;
476
796
  pullRequestLink?: string | null;
477
797
  errorLog?: string | null;
798
+ exceptions: HttpErrorResponseRead[];
478
799
  status: ReportStatus | null;
479
800
  };
480
801
  export type ProgramGroupResponse2 = {
@@ -489,10 +810,26 @@ export type ProgramGroupResponse2 = {
489
810
  updatedAt: string;
490
811
  lastModuleReport: ReportResponse3 | null;
491
812
  };
813
+ export type ProgramGroupResponseRead = {
814
+ id: string;
815
+ name: string;
816
+ integrationId: string | null;
817
+ tags: string[];
818
+ components: any[];
819
+ accountId: string;
820
+ createdBy: string | null;
821
+ createdAt: string;
822
+ updatedAt: string;
823
+ lastModuleReport: ReportResponseRead3 | null;
824
+ };
492
825
  export type ListProgramGroupResponse = {
493
826
  items: ProgramGroupResponse2[];
494
827
  itemsCount: number;
495
828
  };
829
+ export type ListProgramGroupResponseRead = {
830
+ items: ProgramGroupResponseRead[];
831
+ itemsCount: number;
832
+ };
496
833
  export type ProgramGroupResponse3 = {
497
834
  id: string;
498
835
  name: string;
@@ -516,7 +853,7 @@ export type ModuleResponse4 = {
516
853
  id: string;
517
854
  name: string;
518
855
  };
519
- export type UserResponse5 = {
856
+ export type UserResponse6 = {
520
857
  id: string;
521
858
  name: string;
522
859
  email: string;
@@ -527,13 +864,29 @@ export type ReportResponse4 = {
527
864
  "module": ModuleResponse4;
528
865
  execution: ExecutionResponse | null;
529
866
  mode: string;
530
- createdBy: UserResponse5;
867
+ createdBy: UserResponse6;
868
+ createdAt: string;
869
+ updatedAt: string;
870
+ filesCount: number | null;
871
+ issuesCount: number | null;
872
+ pullRequestLink?: string | null;
873
+ errorLog?: string | null;
874
+ exceptions: HttpErrorResponse[];
875
+ status: ReportStatus | null;
876
+ };
877
+ export type ReportResponseRead4 = {
878
+ id: string;
879
+ "module": ModuleResponse4;
880
+ execution: ExecutionResponse | null;
881
+ mode: string;
882
+ createdBy: UserResponse6;
531
883
  createdAt: string;
532
884
  updatedAt: string;
533
885
  filesCount: number | null;
534
886
  issuesCount: number | null;
535
887
  pullRequestLink?: string | null;
536
888
  errorLog?: string | null;
889
+ exceptions: HttpErrorResponseRead[];
537
890
  status: ReportStatus | null;
538
891
  };
539
892
  export type ListProgramGroupReportResponse = {
@@ -542,6 +895,12 @@ export type ListProgramGroupReportResponse = {
542
895
  /** Number of reports */
543
896
  itemsCount: number;
544
897
  };
898
+ export type ListProgramGroupReportResponseRead = {
899
+ /** List of reports */
900
+ items: ReportResponseRead4[];
901
+ /** Number of reports */
902
+ itemsCount: number;
903
+ };
545
904
  export type TagResponse = {
546
905
  name: string;
547
906
  };
@@ -574,6 +933,10 @@ export type RepositoryLastReportStatusResponse = {
574
933
  totalFilesIssues: number | null;
575
934
  totalFilesChanged: number | null;
576
935
  totalIssues: number | null;
936
+ pullRequestLink: string | null;
937
+ merged?: boolean | null;
938
+ customerScore?: number | null;
939
+ languages?: string | null;
577
940
  };
578
941
  export type AnalyticsRepositoryLastReportStatusResponse = {
579
942
  totalFiles?: number;
@@ -582,6 +945,8 @@ export type AnalyticsRepositoryLastReportStatusResponse = {
582
945
  totalFilesChanged?: number;
583
946
  totalIssues?: number;
584
947
  items: RepositoryLastReportStatusResponse[];
948
+ totalPullRequests?: number;
949
+ totalMergedPullRequests?: number;
585
950
  totalItems?: number;
586
951
  };
587
952
  export type RepositoryUsageResponse = {
@@ -592,6 +957,9 @@ export type RepositoryUsageResponse = {
592
957
  totalFix?: number;
593
958
  totalFixSuccess?: number;
594
959
  totalFixFailure?: number;
960
+ totalPullRequests?: number;
961
+ mergedPullRequests?: number;
962
+ customerScore?: number | null;
595
963
  };
596
964
  export type AnalyticsRepositoryUsageResponse = {
597
965
  totalScan?: number;
@@ -600,6 +968,8 @@ export type AnalyticsRepositoryUsageResponse = {
600
968
  totalFix?: number;
601
969
  totalFixSuccess?: number;
602
970
  totalFixFailure?: number;
971
+ totalPullRequests?: number;
972
+ mergedPullRequests?: number;
603
973
  items: RepositoryUsageResponse[];
604
974
  totalItems?: number;
605
975
  };
@@ -634,6 +1004,7 @@ export type ProgramGroupLastReportStatusResponse = {
634
1004
  totalFilesIssues?: number;
635
1005
  totalFilesChanged?: number;
636
1006
  totalIssues?: number;
1007
+ customerScore?: number | null;
637
1008
  };
638
1009
  export type AnalyticsProgramGroupsLastReportStatusResponse = {
639
1010
  totalFiles?: number;
@@ -652,6 +1023,7 @@ export type ProgramGroupsUsageResponse = {
652
1023
  totalFix?: number;
653
1024
  totalFixSuccess?: number;
654
1025
  totalFixFailure?: number;
1026
+ customerScore?: number | null;
655
1027
  };
656
1028
  export type AnalyticsProgramGroupsUsageResponse = {
657
1029
  totalScan?: number;
@@ -663,14 +1035,329 @@ export type AnalyticsProgramGroupsUsageResponse = {
663
1035
  items: ProgramGroupsUsageResponse[];
664
1036
  totalItems?: number;
665
1037
  };
666
- export type UserResponse6 = {
1038
+ export type ProgramGroupsDetailsResponse = {
1039
+ programGroupName: string;
1040
+ programGroupTags?: string | null;
1041
+ integrationName?: string | null;
1042
+ programGroupCreatedByName?: string | null;
1043
+ programGroupCreatedByEmail?: string | null;
1044
+ moduleName: string;
1045
+ reportInputs?: string | null;
1046
+ mode: string;
1047
+ reportCreatedAt: string;
1048
+ reportCreatedByName?: string | null;
1049
+ reportCreatedByEmail?: string | null;
1050
+ reportOutputs?: string | null;
1051
+ executionStartedAt?: string | null;
1052
+ executionCompletedAt?: string | null;
1053
+ processingTimeSeconds?: number | null;
1054
+ totalFilesCount?: number;
1055
+ analyzedFilesCount?: number;
1056
+ issuesFilesCount?: number;
1057
+ changedFilesCount?: number;
1058
+ issuesCount?: number;
1059
+ status?: string;
1060
+ customerScore?: number | null;
1061
+ };
1062
+ export type AnalyticsProgramGroupsDetailsResponse = {
1063
+ programsCount?: number;
1064
+ totalFilesCount?: number;
1065
+ analyzedFilesCount?: number;
1066
+ issuesFilesCount?: number;
1067
+ changedFilesCount?: number;
1068
+ issuesCount?: number;
1069
+ processingTime95Percentile?: number | null;
1070
+ totalItems?: number;
1071
+ items?: ProgramGroupsDetailsResponse[];
1072
+ };
1073
+ export type RepositoryDetailedReportItemResponse = {
1074
+ analyzedFilesCount?: number;
1075
+ changedFilesCount?: number;
1076
+ errorLog?: string | null;
1077
+ executionCompletedAt?: string | null;
1078
+ executionConclusion?: string | null;
1079
+ executionStartedAt?: string | null;
1080
+ executionStatus?: string | null;
1081
+ inputs?: string;
1082
+ issuesCount?: number;
1083
+ issuesFilesCount?: number;
1084
+ mode?: string | null;
1085
+ moduleName?: string | null;
1086
+ moduleVersion?: string | null;
1087
+ processingTimeSeconds?: number | null;
1088
+ pullRequestLink?: string | null;
1089
+ merged?: boolean | null;
1090
+ reportCreatedAt?: string | null;
1091
+ reportCreatedByEmail?: string | null;
1092
+ reportCreatedByName?: string | null;
1093
+ repositoryCreatedByEmail?: string | null;
1094
+ repositoryCreatedByName?: string | null;
1095
+ repositoryTags?: string;
1096
+ repositoryUrl: string;
1097
+ sourceBranch?: string | null;
1098
+ targetBranch?: string | null;
1099
+ totalFilesCount?: number;
1100
+ status?: string | null;
1101
+ customerScore?: number | null;
1102
+ languages?: string | null;
1103
+ };
1104
+ export type AnalyticsRepositoryDetailedReportResponse = {
1105
+ reposCount?: number;
1106
+ totalFilesCount?: number;
1107
+ analyzedFilesCount?: number;
1108
+ issuesFilesCount?: number;
1109
+ changedFilesCount?: number;
1110
+ issuesCount?: number;
1111
+ processingTime95Percentile?: number | null;
1112
+ totalMergedPullRequests?: number;
1113
+ totalItems?: number;
1114
+ items?: RepositoryDetailedReportItemResponse[];
1115
+ };
1116
+ export type ProgramGroupsTargetDetailsResponse = {
1117
+ programGroupName: string;
1118
+ programGroupTags?: string[] | null;
1119
+ mode: string;
1120
+ moduleName: string;
1121
+ reportCreatedAt: string;
1122
+ executionStartedAt?: string | null;
1123
+ executionCompletedAt?: string | null;
1124
+ componentAppName: string;
1125
+ componentName: string;
1126
+ componentType: string;
1127
+ totalIssues?: number;
1128
+ changedFilesCount?: number;
1129
+ customOutputs?: {
1130
+ [key: string]: any;
1131
+ } | null;
1132
+ targetCustomOutputs?: {
1133
+ [key: string]: any;
1134
+ } | null;
1135
+ customerScore?: number | null;
1136
+ totalTokenSent: number | null;
1137
+ totalTokenReceived: number | null;
1138
+ modified: boolean | null;
1139
+ };
1140
+ export type AnalyticsProgramGroupsTargetDetailsResponse = {
1141
+ totalComponents?: number;
1142
+ totalIssues?: number;
1143
+ totalProgramGroups?: number;
1144
+ totalItems?: number;
1145
+ items?: ProgramGroupsTargetDetailsResponse[];
1146
+ };
1147
+ export type RepositoryTargetDetailsItemResponse = {
1148
+ repositoryUrl: string;
1149
+ sourceBranch: string | null;
1150
+ moduleName: string | null;
1151
+ targetName: string | null;
1152
+ moduleInputs: string | null;
1153
+ targetPath: string | null;
1154
+ targetDetails: string | null;
1155
+ issuesCount?: number | null;
1156
+ reportCreatedAt: string | null;
1157
+ reportId: string | null;
1158
+ customerScore?: number | null;
1159
+ totalTokenSent: number | null;
1160
+ totalTokenReceived: number | null;
1161
+ modified: boolean | null;
1162
+ targetCustomOutputs?: {
1163
+ [key: string]: any;
1164
+ } | null;
1165
+ };
1166
+ export type AnalyticsRepositoryTargetDetailsResponse = {
1167
+ totalFiles?: number;
1168
+ totalIssues?: number;
1169
+ totalItems?: number;
1170
+ items?: RepositoryTargetDetailsItemResponse[];
1171
+ };
1172
+ export type ModuleExecutionTimesDetailsResponse = {
1173
+ /** Name of the module */
1174
+ moduleName: string;
1175
+ /** Version of the module */
1176
+ moduleVersion: string;
1177
+ /** Average queue time in seconds */
1178
+ queueTimeAvg: number;
1179
+ /** 95th percentile queue time in seconds */
1180
+ queueTimeP95: number;
1181
+ /** Average execution time in seconds */
1182
+ executionTimeAvg: number;
1183
+ /** 95th percentile execution time in seconds */
1184
+ executionTimeP95: number;
1185
+ /** Average total time in seconds */
1186
+ totalTimeAvg: number;
1187
+ /** 95th percentile total time in seconds */
1188
+ totalTimeP95: number;
1189
+ /** Number of executions */
1190
+ executionCount: number | null;
1191
+ };
1192
+ export type AnalyticsModuleExecutionTimesResponse = {
1193
+ /** Total number of modules analyzed */
1194
+ modulesCount?: number;
1195
+ /** Overall average queue time */
1196
+ queueTimeAvg: number | null;
1197
+ /** Overall 95th percentile queue time */
1198
+ queueTimeP95: number | null;
1199
+ /** Overall average execution time */
1200
+ executionTimeAvg: number | null;
1201
+ /** Overall 95th percentile execution time */
1202
+ executionTimeP95: number | null;
1203
+ /** Overall average total time */
1204
+ totalTimeAvg: number | null;
1205
+ /** Overall 95th percentile total time */
1206
+ totalTimeP95: number | null;
1207
+ /** Detailed metrics per module */
1208
+ items?: ModuleExecutionTimesDetailsResponse[];
1209
+ };
1210
+ export type UserResponse7 = {
667
1211
  id: string;
668
1212
  name: string;
669
1213
  email: string;
670
1214
  };
671
1215
  export type ListUserResponse = {
672
- items: UserResponse6[];
1216
+ items: UserResponse7[];
1217
+ itemsCount: number;
1218
+ };
1219
+ export type SearchReposInScmRequest = {
1220
+ repositoryName?: string | null;
1221
+ codeTerm?: string | null;
1222
+ };
1223
+ export type SearchReposInScmResponse = {
1224
+ search_id: string;
1225
+ };
1226
+ export type RepositoryPayload = {
1227
+ url: string;
1228
+ tags: string[];
1229
+ };
1230
+ export type ImportReposScmWithTagsRequest = {
1231
+ repositories: RepositoryPayload[];
1232
+ };
1233
+ export type SaveSearchReposRepositoryResponse = {
1234
+ id: string;
1235
+ };
1236
+ export type SaveSearchReposResponse = {
1237
+ search_id: string;
1238
+ repositories: SaveSearchReposRepositoryResponse[];
1239
+ };
1240
+ export type SearchRepoByIdResponse = {
1241
+ url: string;
1242
+ name: string | null;
1243
+ defaultBranch: string;
1244
+ lastCommitDate: string | null;
1245
+ archived: boolean | null;
1246
+ visibility?: ("public" | "private" | "internal") | null;
1247
+ alreadyCreated?: boolean;
1248
+ };
1249
+ export type ResponseSearchRepoByIdResponse = {
1250
+ total: number | null;
1251
+ status?: string;
1252
+ exceptions: HttpErrorResponse[];
1253
+ items?: SearchRepoByIdResponse[];
1254
+ };
1255
+ export type ResponseSearchRepoByIdResponseRead = {
1256
+ total: number | null;
1257
+ status?: string;
1258
+ exceptions: HttpErrorResponseRead[];
1259
+ items?: SearchRepoByIdResponse[];
1260
+ };
1261
+ export type BodyCreateReposBatchServiceV2ReposBatchPost = {
1262
+ file: Blob;
1263
+ };
1264
+ export type CreateRepoBatchResponse = {
1265
+ id: string;
1266
+ };
1267
+ export type ImportStatus = "COMPLETED" | "PENDING";
1268
+ export type ValidateRepositoryStatus = "PENDING" | "SUCCESS" | "FAILURE" | "CONFLICT";
1269
+ export type BatchRepositoryResponse = {
1270
+ repositoryId: string | null;
1271
+ repositoryUrl: string;
1272
+ repositoryBranch: string | null;
1273
+ repositoryTags: string[];
1274
+ status: ValidateRepositoryStatus;
1275
+ line: number;
1276
+ repositoryName: string | null;
1277
+ repositoryArchived: boolean | null;
1278
+ repositoryPushedAt: string | null;
1279
+ repositoryVisibility: string | null;
1280
+ exceptions: HttpErrorResponse[];
1281
+ };
1282
+ export type BatchRepositoryResponseRead = {
1283
+ repositoryId: string | null;
1284
+ repositoryUrl: string;
1285
+ repositoryBranch: string | null;
1286
+ repositoryTags: string[];
1287
+ status: ValidateRepositoryStatus;
1288
+ line: number;
1289
+ repositoryName: string | null;
1290
+ repositoryArchived: boolean | null;
1291
+ repositoryPushedAt: string | null;
1292
+ repositoryVisibility: string | null;
1293
+ exceptions: HttpErrorResponseRead[];
1294
+ };
1295
+ export type GetImportResultResponse = {
1296
+ status: ImportStatus;
1297
+ totalItems: number;
1298
+ items: BatchRepositoryResponse[];
1299
+ repositoriesIds: string[];
1300
+ };
1301
+ export type GetImportResultResponseRead = {
1302
+ status: ImportStatus;
1303
+ totalItems: number;
1304
+ items: BatchRepositoryResponseRead[];
1305
+ repositoriesIds: string[];
1306
+ };
1307
+ export type RepositoryResponse2 = {
1308
+ id: string;
1309
+ repositoryUrl: string | null;
1310
+ repositoryDefaultBranch: string | null;
1311
+ reportCreatedAt: string | null;
1312
+ reportIssuesCount: string | null;
1313
+ reportStatus: ReportStatus | null;
1314
+ };
1315
+ export type ListRepositoryResponse2 = {
1316
+ items: RepositoryResponse2[];
1317
+ itemsCount: number;
1318
+ };
1319
+ export type RepositoryRequest = {
1320
+ url: string;
1321
+ defaultBranch: string;
1322
+ tags?: string[] | null;
1323
+ };
1324
+ export type CreateRepositoryRequest2 = {
1325
+ repositories: RepositoryRequest[];
1326
+ raiseConflict?: boolean;
1327
+ };
1328
+ export type RepositoryResponse3 = {
1329
+ id: string;
1330
+ };
1331
+ export type CreateRepositoryResponse = {
1332
+ repositories: RepositoryResponse3[];
1333
+ };
1334
+ export type ModuleExecutionBatchStatus = "PENDING" | "IN_PROGRESS" | "COMPLETED";
1335
+ export type ExecutionBatchResponse = {
1336
+ id: string;
1337
+ name: string | null;
1338
+ status: ModuleExecutionBatchStatus | null;
1339
+ created_at: string;
1340
+ };
1341
+ export type ListModuleExecutionBatchActivitiesResponse = {
1342
+ items: ExecutionBatchResponse[];
1343
+ itemsCount: number;
1344
+ };
1345
+ export type ModuleExecution = {
1346
+ repositoryUrl: string | null;
1347
+ programGroupName: string | null;
1348
+ reportId: string;
1349
+ executionId: string | null;
1350
+ status: ReportStatus | null;
1351
+ progress: number | null;
1352
+ executionCreatedAt: string | null;
1353
+ executionCompletedAt: string | null;
1354
+ };
1355
+ export type GetModuleExecutionBatchActivitiesById = {
1356
+ items: ModuleExecution[];
673
1357
  itemsCount: number;
1358
+ batchName?: string | null;
1359
+ batchStatus?: ModuleExecutionBatchStatus | null;
1360
+ batchCreatedAt?: string | null;
674
1361
  };
675
1362
  /**
676
1363
  * Check Role Route
@@ -692,12 +1379,82 @@ export function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
692
1379
  })
693
1380
  }));
694
1381
  }
1382
+ /**
1383
+ * Module Favorite Service Add
1384
+ */
1385
+ export function moduleFavoriteServiceAddV1ModulesModuleIdFavoritesPost({ moduleId, authorization }: {
1386
+ moduleId: string;
1387
+ authorization: string;
1388
+ }, opts?: Oazapfts.RequestOpts) {
1389
+ return oazapfts.ok(oazapfts.fetchJson<{
1390
+ status: 200;
1391
+ data: any;
1392
+ } | {
1393
+ status: 400;
1394
+ data: HttpErrorResponseRead;
1395
+ } | {
1396
+ status: 401;
1397
+ data: HttpErrorResponseRead;
1398
+ } | {
1399
+ status: 404;
1400
+ data: HttpErrorResponseRead;
1401
+ } | {
1402
+ status: 422;
1403
+ } | {
1404
+ status: 500;
1405
+ data: HttpErrorResponseRead;
1406
+ } | {
1407
+ status: 503;
1408
+ data: HttpErrorResponseRead;
1409
+ }>(`/v1/modules/${encodeURIComponent(moduleId)}/favorites`, {
1410
+ ...opts,
1411
+ method: "POST",
1412
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1413
+ authorization
1414
+ })
1415
+ }));
1416
+ }
1417
+ /**
1418
+ * Module Favorite Service Delete
1419
+ */
1420
+ export function moduleFavoriteServiceDeleteV1ModulesModuleIdFavoritesDelete({ moduleId, authorization }: {
1421
+ moduleId: string;
1422
+ authorization: string;
1423
+ }, opts?: Oazapfts.RequestOpts) {
1424
+ return oazapfts.ok(oazapfts.fetchJson<{
1425
+ status: 200;
1426
+ data: any;
1427
+ } | {
1428
+ status: 400;
1429
+ data: HttpErrorResponseRead;
1430
+ } | {
1431
+ status: 401;
1432
+ data: HttpErrorResponseRead;
1433
+ } | {
1434
+ status: 404;
1435
+ data: HttpErrorResponseRead;
1436
+ } | {
1437
+ status: 422;
1438
+ } | {
1439
+ status: 500;
1440
+ data: HttpErrorResponseRead;
1441
+ } | {
1442
+ status: 503;
1443
+ data: HttpErrorResponseRead;
1444
+ }>(`/v1/modules/${encodeURIComponent(moduleId)}/favorites`, {
1445
+ ...opts,
1446
+ method: "DELETE",
1447
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1448
+ authorization
1449
+ })
1450
+ }));
1451
+ }
695
1452
  /**
696
1453
  * Create Module Service
697
1454
  */
698
1455
  export function createModuleServiceV1ModulesPost({ authorization, xAccountSlug, createModuleRequest }: {
699
1456
  authorization: string;
700
- xAccountSlug?: any;
1457
+ xAccountSlug?: string;
701
1458
  createModuleRequest: CreateModuleRequest;
702
1459
  }, opts?: Oazapfts.RequestOpts) {
703
1460
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -733,12 +1490,17 @@ export function createModuleServiceV1ModulesPost({ authorization, xAccountSlug,
733
1490
  /**
734
1491
  * List Modules Service
735
1492
  */
736
- export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, lastEvaluatedKey, xAccountSlug, authorization }: {
1493
+ export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, lastEvaluatedKey, sharedWith, createdBy, visibility, name, tags, xAccountSlug, authorization }: {
737
1494
  pageSize?: number;
738
1495
  moduleType?: ModuleType | null;
739
1496
  page?: number;
740
1497
  lastEvaluatedKey?: string;
741
- xAccountSlug?: any;
1498
+ sharedWith?: string | null;
1499
+ createdBy?: string | null;
1500
+ visibility?: ModuleVisibility | null;
1501
+ name?: string | null;
1502
+ tags?: string[] | null;
1503
+ xAccountSlug?: string;
742
1504
  authorization: string;
743
1505
  }, opts?: Oazapfts.RequestOpts) {
744
1506
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -765,7 +1527,12 @@ export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, las
765
1527
  pageSize,
766
1528
  moduleType,
767
1529
  page,
768
- lastEvaluatedKey
1530
+ lastEvaluatedKey,
1531
+ sharedWith,
1532
+ createdBy,
1533
+ visibility,
1534
+ name,
1535
+ tags
769
1536
  }))}`, {
770
1537
  ...opts,
771
1538
  headers: oazapfts.mergeHeaders(opts?.headers, {
@@ -780,7 +1547,7 @@ export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, las
780
1547
  export function deleteModuleServiceV1ModulesModuleIdDelete({ moduleId, authorization, xAccountSlug }: {
781
1548
  moduleId: string;
782
1549
  authorization: string;
783
- xAccountSlug?: any;
1550
+ xAccountSlug?: string;
784
1551
  }, opts?: Oazapfts.RequestOpts) {
785
1552
  return oazapfts.ok(oazapfts.fetchJson<{
786
1553
  status: 200;
@@ -817,7 +1584,7 @@ export function deleteModuleServiceV1ModulesModuleIdDelete({ moduleId, authoriza
817
1584
  export function updateModuleServiceV1ModulesModuleIdPut({ moduleId, authorization, xAccountSlug, putModuleRequest }: {
818
1585
  moduleId: string;
819
1586
  authorization: string;
820
- xAccountSlug?: any;
1587
+ xAccountSlug?: string;
821
1588
  putModuleRequest: PutModuleRequest;
822
1589
  }, opts?: Oazapfts.RequestOpts) {
823
1590
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -850,16 +1617,124 @@ export function updateModuleServiceV1ModulesModuleIdPut({ moduleId, authorizatio
850
1617
  })
851
1618
  })));
852
1619
  }
1620
+ /**
1621
+ * Get Module
1622
+ */
1623
+ export function getModuleV1ModulesModuleIdGet({ moduleId, authorization, xAccountSlug }: {
1624
+ moduleId: string;
1625
+ authorization: string;
1626
+ xAccountSlug?: string;
1627
+ }, opts?: Oazapfts.RequestOpts) {
1628
+ return oazapfts.ok(oazapfts.fetchJson<{
1629
+ status: 200;
1630
+ data: GetModuleResponse;
1631
+ } | {
1632
+ status: 400;
1633
+ data: HttpErrorResponseRead;
1634
+ } | {
1635
+ status: 401;
1636
+ data: HttpErrorResponseRead;
1637
+ } | {
1638
+ status: 404;
1639
+ data: HttpErrorResponseRead;
1640
+ } | {
1641
+ status: 422;
1642
+ } | {
1643
+ status: 500;
1644
+ data: HttpErrorResponseRead;
1645
+ } | {
1646
+ status: 503;
1647
+ data: HttpErrorResponseRead;
1648
+ }>(`/v1/modules/${encodeURIComponent(moduleId)}`, {
1649
+ ...opts,
1650
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1651
+ authorization,
1652
+ "x-account-slug": xAccountSlug
1653
+ })
1654
+ }));
1655
+ }
1656
+ /**
1657
+ * Get Module Inputs
1658
+ */
1659
+ export function getModuleInputsV1ModulesModuleIdInputsGet({ moduleId, authorization }: {
1660
+ moduleId: string;
1661
+ authorization: string;
1662
+ }, opts?: Oazapfts.RequestOpts) {
1663
+ return oazapfts.ok(oazapfts.fetchJson<{
1664
+ status: 200;
1665
+ data: GetModuleInputsResponse | null;
1666
+ } | {
1667
+ status: 400;
1668
+ data: HttpErrorResponseRead;
1669
+ } | {
1670
+ status: 401;
1671
+ data: HttpErrorResponseRead;
1672
+ } | {
1673
+ status: 404;
1674
+ data: HttpErrorResponseRead;
1675
+ } | {
1676
+ status: 422;
1677
+ } | {
1678
+ status: 500;
1679
+ data: HttpErrorResponseRead;
1680
+ } | {
1681
+ status: 503;
1682
+ data: HttpErrorResponseRead;
1683
+ }>(`/v1/modules/${encodeURIComponent(moduleId)}/inputs`, {
1684
+ ...opts,
1685
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1686
+ authorization
1687
+ })
1688
+ }));
1689
+ }
1690
+ /**
1691
+ * Get Module Docs
1692
+ */
1693
+ export function getModuleDocsV1ModulesModuleIdDocsGet({ moduleId, language, authorization }: {
1694
+ moduleId: string;
1695
+ language?: "pt-br" | "en-us";
1696
+ authorization: string;
1697
+ }, opts?: Oazapfts.RequestOpts) {
1698
+ return oazapfts.ok(oazapfts.fetchJson<{
1699
+ status: 200;
1700
+ data: GetModuleDocsResponse | null;
1701
+ } | {
1702
+ status: 400;
1703
+ data: HttpErrorResponseRead;
1704
+ } | {
1705
+ status: 401;
1706
+ data: HttpErrorResponseRead;
1707
+ } | {
1708
+ status: 404;
1709
+ data: HttpErrorResponseRead;
1710
+ } | {
1711
+ status: 422;
1712
+ } | {
1713
+ status: 500;
1714
+ data: HttpErrorResponseRead;
1715
+ } | {
1716
+ status: 503;
1717
+ data: HttpErrorResponseRead;
1718
+ }>(`/v1/modules/${encodeURIComponent(moduleId)}/docs${QS.query(QS.explode({
1719
+ language
1720
+ }))}`, {
1721
+ ...opts,
1722
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1723
+ authorization
1724
+ })
1725
+ }));
1726
+ }
853
1727
  /**
854
1728
  * Dispatch Module Service
855
1729
  */
856
- export function dispatchModuleServiceV1ModulesDispatchesPost({ authorization, body }: {
1730
+ export function dispatchModuleServiceV1ModulesDispatchesPost({ batchName, authorization, body }: {
1731
+ batchName?: string | null;
857
1732
  authorization: string;
858
1733
  body: ModuleDispatchRequest[];
859
1734
  }, opts?: Oazapfts.RequestOpts) {
860
1735
  return oazapfts.ok(oazapfts.fetchJson<{
861
1736
  status: 200;
862
- data: any;
1737
+ data: DispatchModuleResponse;
863
1738
  } | {
864
1739
  status: 400;
865
1740
  data: HttpErrorResponseRead;
@@ -877,7 +1752,9 @@ export function dispatchModuleServiceV1ModulesDispatchesPost({ authorization, bo
877
1752
  } | {
878
1753
  status: 503;
879
1754
  data: HttpErrorResponseRead;
880
- }>("/v1/modules/dispatches", oazapfts.json({
1755
+ }>(`/v1/modules/dispatches${QS.query(QS.explode({
1756
+ batchName
1757
+ }))}`, oazapfts.json({
881
1758
  ...opts,
882
1759
  method: "POST",
883
1760
  body,
@@ -932,7 +1809,7 @@ export function getReportV1ReportsReportIdGet({ reportId, authorization }: {
932
1809
  }, opts?: Oazapfts.RequestOpts) {
933
1810
  return oazapfts.ok(oazapfts.fetchJson<{
934
1811
  status: 200;
935
- data: GetReportResponse;
1812
+ data: GetReportResponseRead;
936
1813
  } | {
937
1814
  status: 400;
938
1815
  data: HttpErrorResponseRead;
@@ -1029,9 +1906,46 @@ export function downloadReportV1ReportsReportIdDownloadGet({ reportId, extension
1029
1906
  }));
1030
1907
  }
1031
1908
  /**
1032
- * Search Repos Scm Service
1909
+ * Put Customer Rating Report
1033
1910
  */
1034
- export function searchReposScmServiceV1ReposSearchScmGet({ repoName, authorization }: {
1911
+ export function putCustomerRatingReportV1ReportsReportIdCustomerRatingPut({ reportId, authorization, putCustomerRatingReportRequest }: {
1912
+ reportId: string;
1913
+ authorization: string;
1914
+ putCustomerRatingReportRequest: PutCustomerRatingReportRequest;
1915
+ }, opts?: Oazapfts.RequestOpts) {
1916
+ return oazapfts.ok(oazapfts.fetchJson<{
1917
+ status: 200;
1918
+ data: any;
1919
+ } | {
1920
+ status: 400;
1921
+ data: HttpErrorResponseRead;
1922
+ } | {
1923
+ status: 401;
1924
+ data: HttpErrorResponseRead;
1925
+ } | {
1926
+ status: 404;
1927
+ data: HttpErrorResponseRead;
1928
+ } | {
1929
+ status: 422;
1930
+ } | {
1931
+ status: 500;
1932
+ data: HttpErrorResponseRead;
1933
+ } | {
1934
+ status: 503;
1935
+ data: HttpErrorResponseRead;
1936
+ }>(`/v1/reports/${encodeURIComponent(reportId)}/customer-rating`, oazapfts.json({
1937
+ ...opts,
1938
+ method: "PUT",
1939
+ body: putCustomerRatingReportRequest,
1940
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1941
+ authorization
1942
+ })
1943
+ })));
1944
+ }
1945
+ /**
1946
+ * Search Repos Scm Service
1947
+ */
1948
+ export function searchReposScmServiceV1ReposSearchScmGet({ repoName, authorization }: {
1035
1949
  repoName: string;
1036
1950
  authorization: string;
1037
1951
  }, opts?: Oazapfts.RequestOpts) {
@@ -1105,7 +2019,7 @@ export function listRepositoryReportV1ReposRepositoryIdReportsGet({ repositoryId
1105
2019
  }, opts?: Oazapfts.RequestOpts) {
1106
2020
  return oazapfts.ok(oazapfts.fetchJson<{
1107
2021
  status: 200;
1108
- data: ListRepositoryReportResponse;
2022
+ data: ListRepositoryReportResponseRead;
1109
2023
  } | {
1110
2024
  status: 400;
1111
2025
  data: HttpErrorResponseRead;
@@ -1137,10 +2051,10 @@ export function listRepositoryReportV1ReposRepositoryIdReportsGet({ repositoryId
1137
2051
  /**
1138
2052
  * Create Repos Batch Service
1139
2053
  */
1140
- export function createReposBatchServiceV1ReposBatchPost({ tags, authorization, bodyCreateReposBatchServiceV1ReposBatchPost }: {
2054
+ export function createReposBatchServiceV1ReposBatchPost({ tags, authorization, fastapiCompatV2BodyCreateReposBatchServiceV1ReposBatchPost }: {
1141
2055
  tags?: string[] | null;
1142
2056
  authorization: string;
1143
- bodyCreateReposBatchServiceV1ReposBatchPost: BodyCreateReposBatchServiceV1ReposBatchPost;
2057
+ fastapiCompatV2BodyCreateReposBatchServiceV1ReposBatchPost: BodyCreateReposBatchServiceV1ReposBatchPost;
1144
2058
  }, opts?: Oazapfts.RequestOpts) {
1145
2059
  return oazapfts.ok(oazapfts.fetchJson<{
1146
2060
  status: 200;
@@ -1170,7 +2084,7 @@ export function createReposBatchServiceV1ReposBatchPost({ tags, authorization, b
1170
2084
  }))}`, oazapfts.multipart({
1171
2085
  ...opts,
1172
2086
  method: "POST",
1173
- body: bodyCreateReposBatchServiceV1ReposBatchPost,
2087
+ body: fastapiCompatV2BodyCreateReposBatchServiceV1ReposBatchPost,
1174
2088
  headers: oazapfts.mergeHeaders(opts?.headers, {
1175
2089
  authorization
1176
2090
  })
@@ -1179,9 +2093,9 @@ export function createReposBatchServiceV1ReposBatchPost({ tags, authorization, b
1179
2093
  /**
1180
2094
  * Create Repository Service
1181
2095
  */
1182
- export function createRepositoryServiceV1ReposPost({ authorization, createRepositoryRequest }: {
2096
+ export function createRepositoryServiceV1ReposPost({ authorization, srcPresentationApiRestServicesV1ReposRequestsCreateRepositoryRequestCreateRepositoryRequest }: {
1183
2097
  authorization: string;
1184
- createRepositoryRequest: CreateRepositoryRequest;
2098
+ srcPresentationApiRestServicesV1ReposRequestsCreateRepositoryRequestCreateRepositoryRequest: CreateRepositoryRequest;
1185
2099
  }, opts?: Oazapfts.RequestOpts) {
1186
2100
  return oazapfts.ok(oazapfts.fetchJson<{
1187
2101
  status: 200;
@@ -1206,7 +2120,7 @@ export function createRepositoryServiceV1ReposPost({ authorization, createReposi
1206
2120
  }>("/v1/repos", oazapfts.json({
1207
2121
  ...opts,
1208
2122
  method: "POST",
1209
- body: createRepositoryRequest,
2123
+ body: srcPresentationApiRestServicesV1ReposRequestsCreateRepositoryRequestCreateRepositoryRequest,
1210
2124
  headers: oazapfts.mergeHeaders(opts?.headers, {
1211
2125
  authorization
1212
2126
  })
@@ -1223,14 +2137,14 @@ export function listRepositoryServiceV1ReposGet({ pageSize, page, lastEvaluatedK
1223
2137
  moduleId?: string;
1224
2138
  createdByEmail?: string | null;
1225
2139
  reportByEmail?: string | null;
1226
- orderBy?: string;
1227
- orderDirection?: string;
2140
+ orderBy?: "repository.url" | "repository.created_at" | "repository.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
2141
+ orderDirection?: "asc" | "desc" | "ASC" | "DESC";
1228
2142
  tags?: string[] | null;
1229
2143
  authorization: string;
1230
2144
  }, opts?: Oazapfts.RequestOpts) {
1231
2145
  return oazapfts.ok(oazapfts.fetchJson<{
1232
2146
  status: 200;
1233
- data: ListRepositoryResponse;
2147
+ data: ListRepositoryResponseRead;
1234
2148
  } | {
1235
2149
  status: 400;
1236
2150
  data: HttpErrorResponseRead;
@@ -1266,6 +2180,56 @@ export function listRepositoryServiceV1ReposGet({ pageSize, page, lastEvaluatedK
1266
2180
  })
1267
2181
  }));
1268
2182
  }
2183
+ /**
2184
+ * List Repository Download Service
2185
+ */
2186
+ export function listRepositoryDownloadServiceV1ReposDownloadGet({ filter, moduleId, createdByEmail, reportByEmail, orderBy, orderDirection, tags, extension, authorization }: {
2187
+ filter?: string;
2188
+ moduleId?: string;
2189
+ createdByEmail?: string | null;
2190
+ reportByEmail?: string | null;
2191
+ orderBy?: "repository.url" | "repository.created_at" | "repository.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
2192
+ orderDirection?: "asc" | "desc" | "ASC" | "DESC";
2193
+ tags?: string[] | null;
2194
+ extension?: "csv" | "xlsx";
2195
+ authorization: string;
2196
+ }, opts?: Oazapfts.RequestOpts) {
2197
+ return oazapfts.ok(oazapfts.fetchJson<{
2198
+ status: 200;
2199
+ data: any;
2200
+ } | {
2201
+ status: 400;
2202
+ data: HttpErrorResponseRead;
2203
+ } | {
2204
+ status: 401;
2205
+ data: HttpErrorResponseRead;
2206
+ } | {
2207
+ status: 404;
2208
+ data: HttpErrorResponseRead;
2209
+ } | {
2210
+ status: 422;
2211
+ } | {
2212
+ status: 500;
2213
+ data: HttpErrorResponseRead;
2214
+ } | {
2215
+ status: 503;
2216
+ data: HttpErrorResponseRead;
2217
+ }>(`/v1/repos/download${QS.query(QS.explode({
2218
+ filter,
2219
+ moduleId,
2220
+ createdByEmail,
2221
+ reportByEmail,
2222
+ orderBy,
2223
+ orderDirection,
2224
+ tags,
2225
+ extension
2226
+ }))}`, {
2227
+ ...opts,
2228
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2229
+ authorization
2230
+ })
2231
+ }));
2232
+ }
1269
2233
  /**
1270
2234
  * List Branches Service
1271
2235
  */
@@ -1311,7 +2275,7 @@ export function getRepositoryByIdServiceV1ReposRepositoryIdGet({ repositoryId, a
1311
2275
  }, opts?: Oazapfts.RequestOpts) {
1312
2276
  return oazapfts.ok(oazapfts.fetchJson<{
1313
2277
  status: 200;
1314
- data: RepositoryResponse;
2278
+ data: RepositoryResponseRead;
1315
2279
  } | {
1316
2280
  status: 400;
1317
2281
  data: HttpErrorResponseRead;
@@ -1411,13 +2375,14 @@ export function updateRepositoryServiceV1ReposRepositoryIdPut({ repositoryId, au
1411
2375
  /**
1412
2376
  * Validate Scm Url Service
1413
2377
  */
1414
- export function validateScmUrlServiceV1ReposValidateScmUrlPost({ authorization, validateScmUrlRequest }: {
2378
+ export function validateScmUrlServiceV1ReposValidateScmUrlPost({ raiseConflict, authorization, validateScmUrlRequest }: {
2379
+ raiseConflict?: boolean;
1415
2380
  authorization: string;
1416
2381
  validateScmUrlRequest: ValidateScmUrlRequest;
1417
2382
  }, opts?: Oazapfts.RequestOpts) {
1418
2383
  return oazapfts.ok(oazapfts.fetchJson<{
1419
2384
  status: 200;
1420
- data: any;
2385
+ data: ValidateScmUrlResponse;
1421
2386
  } | {
1422
2387
  status: 400;
1423
2388
  data: HttpErrorResponseRead;
@@ -1435,7 +2400,9 @@ export function validateScmUrlServiceV1ReposValidateScmUrlPost({ authorization,
1435
2400
  } | {
1436
2401
  status: 503;
1437
2402
  data: HttpErrorResponseRead;
1438
- }>("/v1/repos/validate-scm-url", oazapfts.json({
2403
+ }>(`/v1/repos/validate-scm-url${QS.query(QS.explode({
2404
+ raiseConflict
2405
+ }))}`, oazapfts.json({
1439
2406
  ...opts,
1440
2407
  method: "POST",
1441
2408
  body: validateScmUrlRequest,
@@ -1600,12 +2567,12 @@ export function deleteIntegrationServiceV1IntegrationsIntegrationIdDelete({ inte
1600
2567
  /**
1601
2568
  * Create Program Group Service
1602
2569
  */
1603
- export function createProgramGroupServiceV1ProgramGroupsPost({ name, tags, integrationId, authorization, bodyCreateProgramGroupServiceV1ProgramGroupsPost }: {
2570
+ export function createProgramGroupServiceV1ProgramGroupsPost({ name, tags, integrationId, authorization, fastapiCompatV2BodyCreateProgramGroupServiceV1ProgramGroupsPost }: {
1604
2571
  name: string;
1605
2572
  tags?: string[] | null;
1606
2573
  integrationId?: string;
1607
2574
  authorization: string;
1608
- bodyCreateProgramGroupServiceV1ProgramGroupsPost?: BodyCreateProgramGroupServiceV1ProgramGroupsPost;
2575
+ fastapiCompatV2BodyCreateProgramGroupServiceV1ProgramGroupsPost?: BodyCreateProgramGroupServiceV1ProgramGroupsPost;
1609
2576
  }, opts?: Oazapfts.RequestOpts) {
1610
2577
  return oazapfts.ok(oazapfts.fetchJson<{
1611
2578
  status: 200;
@@ -1620,7 +2587,7 @@ export function createProgramGroupServiceV1ProgramGroupsPost({ name, tags, integ
1620
2587
  }))}`, oazapfts.multipart({
1621
2588
  ...opts,
1622
2589
  method: "POST",
1623
- body: bodyCreateProgramGroupServiceV1ProgramGroupsPost,
2590
+ body: fastapiCompatV2BodyCreateProgramGroupServiceV1ProgramGroupsPost,
1624
2591
  headers: oazapfts.mergeHeaders(opts?.headers, {
1625
2592
  authorization
1626
2593
  })
@@ -1637,14 +2604,14 @@ export function listProgramGroupServiceV1ProgramGroupsGet({ moduleId, createdByE
1637
2604
  name?: string | null;
1638
2605
  pageSize?: number;
1639
2606
  page?: number;
1640
- orderBy?: string;
1641
- orderDirection?: string;
2607
+ orderBy?: "program_group.name" | "program_group.created_at" | "program_group.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
2608
+ orderDirection?: "asc" | "desc" | "ASC" | "DESC";
1642
2609
  integrationId?: string;
1643
2610
  authorization: string;
1644
2611
  }, opts?: Oazapfts.RequestOpts) {
1645
2612
  return oazapfts.ok(oazapfts.fetchJson<{
1646
2613
  status: 200;
1647
- data: ListProgramGroupResponse;
2614
+ data: ListProgramGroupResponseRead;
1648
2615
  } | {
1649
2616
  status: 422;
1650
2617
  data: HttpValidationError;
@@ -1666,6 +2633,44 @@ export function listProgramGroupServiceV1ProgramGroupsGet({ moduleId, createdByE
1666
2633
  })
1667
2634
  }));
1668
2635
  }
2636
+ /**
2637
+ * List Program Group Download Service
2638
+ */
2639
+ export function listProgramGroupDownloadServiceV1ProgramGroupsDownloadGet({ moduleId, createdByEmail, reportByEmail, tags, name, orderBy, orderDirection, integrationId, extension, authorization }: {
2640
+ moduleId?: string | null;
2641
+ createdByEmail?: string | null;
2642
+ reportByEmail?: string | null;
2643
+ tags?: string[] | null;
2644
+ name?: string | null;
2645
+ orderBy?: "program_group.name" | "program_group.created_at" | "program_group.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
2646
+ orderDirection?: "asc" | "desc" | "ASC" | "DESC";
2647
+ integrationId?: string;
2648
+ extension?: "csv" | "xlsx";
2649
+ authorization: string;
2650
+ }, opts?: Oazapfts.RequestOpts) {
2651
+ return oazapfts.ok(oazapfts.fetchJson<{
2652
+ status: 200;
2653
+ data: any;
2654
+ } | {
2655
+ status: 422;
2656
+ data: HttpValidationError;
2657
+ }>(`/v1/program-groups/download${QS.query(QS.explode({
2658
+ moduleId,
2659
+ createdByEmail,
2660
+ reportByEmail,
2661
+ tags,
2662
+ name,
2663
+ orderBy,
2664
+ orderDirection,
2665
+ integrationId,
2666
+ extension
2667
+ }))}`, {
2668
+ ...opts,
2669
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2670
+ authorization
2671
+ })
2672
+ }));
2673
+ }
1669
2674
  /**
1670
2675
  * Get Program Group By Id Service
1671
2676
  */
@@ -1689,13 +2694,13 @@ export function getProgramGroupByIdServiceV1ProgramGroupsProgramGroupIdGet({ pro
1689
2694
  /**
1690
2695
  * Update Program Group Service
1691
2696
  */
1692
- export function updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut({ programGroupId, name, tags, integrationId, authorization, bodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut }: {
2697
+ export function updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut({ programGroupId, name, tags, integrationId, authorization, fastapiCompatV2BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut }: {
1693
2698
  programGroupId: string;
1694
2699
  name?: string | null;
1695
2700
  tags?: string[] | null;
1696
2701
  integrationId?: string | null;
1697
2702
  authorization: string;
1698
- bodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut?: BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut;
2703
+ fastapiCompatV2BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut?: BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut;
1699
2704
  }, opts?: Oazapfts.RequestOpts) {
1700
2705
  return oazapfts.ok(oazapfts.fetchJson<{
1701
2706
  status: 200;
@@ -1710,7 +2715,7 @@ export function updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut({ prog
1710
2715
  }))}`, oazapfts.multipart({
1711
2716
  ...opts,
1712
2717
  method: "PUT",
1713
- body: bodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut,
2718
+ body: fastapiCompatV2BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut,
1714
2719
  headers: oazapfts.mergeHeaders(opts?.headers, {
1715
2720
  authorization
1716
2721
  })
@@ -1772,7 +2777,7 @@ export function listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReport
1772
2777
  }, opts?: Oazapfts.RequestOpts) {
1773
2778
  return oazapfts.ok(oazapfts.fetchJson<{
1774
2779
  status: 200;
1775
- data: ListProgramGroupReportResponse;
2780
+ data: ListProgramGroupReportResponseRead;
1776
2781
  } | {
1777
2782
  status: 422;
1778
2783
  data: HttpValidationError;
@@ -1790,8 +2795,9 @@ export function listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReport
1790
2795
  /**
1791
2796
  * List Tags Service
1792
2797
  */
1793
- export function listTagsServiceV1TagsGet({ name, authorization }: {
2798
+ export function listTagsServiceV1TagsGet({ name, $type, authorization }: {
1794
2799
  name?: string | null;
2800
+ $type?: "Repository" | "Module";
1795
2801
  authorization: string;
1796
2802
  }, opts?: Oazapfts.RequestOpts) {
1797
2803
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1801,7 +2807,8 @@ export function listTagsServiceV1TagsGet({ name, authorization }: {
1801
2807
  status: 422;
1802
2808
  data: HttpValidationError;
1803
2809
  }>(`/v1/tags${QS.query(QS.explode({
1804
- name
2810
+ name,
2811
+ "type": $type
1805
2812
  }))}`, {
1806
2813
  ...opts,
1807
2814
  headers: oazapfts.mergeHeaders(opts?.headers, {
@@ -1857,7 +2864,7 @@ export function analyticsRepositoryLastReportStatusV1AnalyticsRepositoriesLastRe
1857
2864
  executedBy?: string[] | null;
1858
2865
  repositoryUrl?: string | null;
1859
2866
  tags?: string[] | null;
1860
- orderBy?: ("repositoryUrl" | "moduleName" | "mode" | "reportCreatedAt" | "reportCreatedBy" | "totalFiles" | "totalFilesAnalyzed" | "totalFilesIssues" | "totalFilesChanged" | "totalIssues") | null;
2867
+ orderBy?: ("repositoryUrl" | "moduleName" | "merged" | "mode" | "reportCreatedAt" | "reportCreatedBy" | "totalFiles" | "totalFilesAnalyzed" | "totalFilesIssues" | "totalFilesChanged" | "totalIssues") | null;
1861
2868
  orderDirection?: ("ASC" | "DESC") | null;
1862
2869
  startDate?: string | null;
1863
2870
  endDate?: string | null;
@@ -2380,18 +3387,1002 @@ export function analyticsProgramGroupsUsageDownloadV1AnalyticsProgramGroupsUsage
2380
3387
  }));
2381
3388
  }
2382
3389
  /**
2383
- * List User Service
3390
+ * Analytics Program Groups Details
2384
3391
  */
2385
- export function listUserServiceV1UsersGet({ authorization }: {
3392
+ export function analyticsProgramGroupsDetailsV1AnalyticsProgramGroupsDetailsGet({ pageSize, page, programName, tags, mode, moduleId, programCreatedById, reportCreatedById, startDate, endDate, orderBy, orderDirection, authorization }: {
3393
+ pageSize?: number;
3394
+ page?: number;
3395
+ programName?: string | null;
3396
+ tags?: string[] | null;
3397
+ mode?: ("scan" | "fix") | null;
3398
+ moduleId?: string[] | null;
3399
+ programCreatedById?: string[] | null;
3400
+ reportCreatedById?: string[] | null;
3401
+ startDate?: string;
3402
+ endDate?: string;
3403
+ orderBy?: ("programGroupName" | "moduleName" | "mode" | "reportCreatedAt" | "reportCreatedByName" | "executionStartedAt" | "executionCompletedAt" | "totalFilesCount" | "analyzedFilesCount" | "issuesFilesCount" | "changedFilesCount" | "issuesCount" | "processingTimeSeconds") | null;
3404
+ orderDirection?: ("ASC" | "DESC") | null;
2386
3405
  authorization: string;
2387
3406
  }, opts?: Oazapfts.RequestOpts) {
2388
3407
  return oazapfts.ok(oazapfts.fetchJson<{
2389
3408
  status: 200;
2390
- data: ListUserResponse;
3409
+ data: AnalyticsProgramGroupsDetailsResponse;
3410
+ } | {
3411
+ status: 400;
3412
+ data: HttpErrorResponseRead;
3413
+ } | {
3414
+ status: 401;
3415
+ data: HttpErrorResponseRead;
3416
+ } | {
3417
+ status: 404;
3418
+ data: HttpErrorResponseRead;
2391
3419
  } | {
2392
3420
  status: 422;
2393
- data: HttpValidationError;
2394
- }>("/v1/users", {
3421
+ } | {
3422
+ status: 500;
3423
+ data: HttpErrorResponseRead;
3424
+ } | {
3425
+ status: 503;
3426
+ data: HttpErrorResponseRead;
3427
+ }>(`/v1/analytics/program-groups/details${QS.query(QS.explode({
3428
+ pageSize,
3429
+ page,
3430
+ programName,
3431
+ tags,
3432
+ mode,
3433
+ moduleId,
3434
+ programCreatedById,
3435
+ reportCreatedById,
3436
+ startDate,
3437
+ endDate,
3438
+ orderBy,
3439
+ orderDirection
3440
+ }))}`, {
3441
+ ...opts,
3442
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3443
+ authorization
3444
+ })
3445
+ }));
3446
+ }
3447
+ /**
3448
+ * Analytics Program Groups Details Download
3449
+ */
3450
+ export function analyticsProgramGroupsDetailsDownloadV1AnalyticsProgramGroupsDetailsDownloadGet({ programName, tags, mode, moduleId, programCreatedById, reportCreatedById, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
3451
+ programName?: string | null;
3452
+ tags?: string[] | null;
3453
+ mode?: ("scan" | "fix") | null;
3454
+ moduleId?: string[] | null;
3455
+ programCreatedById?: string[] | null;
3456
+ reportCreatedById?: string[] | null;
3457
+ startDate?: string;
3458
+ endDate?: string;
3459
+ orderBy?: ("programGroupName" | "moduleName" | "mode" | "reportCreatedAt" | "reportCreatedByName" | "executionStartedAt" | "executionCompletedAt" | "totalFilesCount" | "analyzedFilesCount" | "issuesFilesCount" | "changedFilesCount" | "issuesCount" | "processingTimeSeconds") | null;
3460
+ orderDirection?: ("ASC" | "DESC") | null;
3461
+ extension?: "csv" | "xlsx";
3462
+ authorization: string;
3463
+ }, opts?: Oazapfts.RequestOpts) {
3464
+ return oazapfts.ok(oazapfts.fetchJson<{
3465
+ status: 200;
3466
+ data: any;
3467
+ } | {
3468
+ status: 400;
3469
+ data: HttpErrorResponseRead;
3470
+ } | {
3471
+ status: 401;
3472
+ data: HttpErrorResponseRead;
3473
+ } | {
3474
+ status: 404;
3475
+ data: HttpErrorResponseRead;
3476
+ } | {
3477
+ status: 422;
3478
+ } | {
3479
+ status: 500;
3480
+ data: HttpErrorResponseRead;
3481
+ } | {
3482
+ status: 503;
3483
+ data: HttpErrorResponseRead;
3484
+ }>(`/v1/analytics/program-groups/details/download${QS.query(QS.explode({
3485
+ programName,
3486
+ tags,
3487
+ mode,
3488
+ moduleId,
3489
+ programCreatedById,
3490
+ reportCreatedById,
3491
+ startDate,
3492
+ endDate,
3493
+ orderBy,
3494
+ orderDirection,
3495
+ extension
3496
+ }))}`, {
3497
+ ...opts,
3498
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3499
+ authorization
3500
+ })
3501
+ }));
3502
+ }
3503
+ /**
3504
+ * Analytics Repository Detailed Report
3505
+ */
3506
+ export function analyticsRepositoryDetailedReportV1AnalyticsRepositoriesDetailsGet({ pageSize, page, repositoryUrl, tags, mode, moduleId, repositoryCreatedById, executedBy, startDate, endDate, orderBy, orderDirection, authorization }: {
3507
+ pageSize?: number;
3508
+ page?: number;
3509
+ repositoryUrl?: string | null;
3510
+ tags?: string[] | null;
3511
+ mode?: ("scan" | "fix") | null;
3512
+ moduleId?: string[] | null;
3513
+ repositoryCreatedById?: string[] | null;
3514
+ executedBy?: string[] | null;
3515
+ startDate?: string;
3516
+ endDate?: string;
3517
+ orderBy?: ("totalFilesCount" | "analyzedFilesCount" | "changedFilesCount" | "issuesCount" | "issuesFilesCount" | "reportCreatedAt" | "repositoryUrl" | "sourceBranch" | "targetBranch" | "executionCompletedAt" | "executionStartedAt" | "moduleName" | "moduleVersion" | "processingTimeSeconds" | "pullRequestLink" | "reportCreatedByEmail" | "reportCreatedByName" | "repositoryCreatedByEmail" | "repositoryCreatedByName") | null;
3518
+ orderDirection?: ("ASC" | "DESC") | null;
3519
+ authorization: string;
3520
+ }, opts?: Oazapfts.RequestOpts) {
3521
+ return oazapfts.ok(oazapfts.fetchJson<{
3522
+ status: 200;
3523
+ data: AnalyticsRepositoryDetailedReportResponse;
3524
+ } | {
3525
+ status: 400;
3526
+ data: HttpErrorResponseRead;
3527
+ } | {
3528
+ status: 401;
3529
+ data: HttpErrorResponseRead;
3530
+ } | {
3531
+ status: 404;
3532
+ data: HttpErrorResponseRead;
3533
+ } | {
3534
+ status: 422;
3535
+ } | {
3536
+ status: 500;
3537
+ data: HttpErrorResponseRead;
3538
+ } | {
3539
+ status: 503;
3540
+ data: HttpErrorResponseRead;
3541
+ }>(`/v1/analytics/repositories/details${QS.query(QS.explode({
3542
+ pageSize,
3543
+ page,
3544
+ repositoryUrl,
3545
+ tags,
3546
+ mode,
3547
+ moduleId,
3548
+ repositoryCreatedById,
3549
+ executedBy,
3550
+ startDate,
3551
+ endDate,
3552
+ orderBy,
3553
+ orderDirection
3554
+ }))}`, {
3555
+ ...opts,
3556
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3557
+ authorization
3558
+ })
3559
+ }));
3560
+ }
3561
+ /**
3562
+ * Analytics Repository Detailed Report Download
3563
+ */
3564
+ export function analyticsRepositoryDetailedReportDownloadV1AnalyticsRepositoriesDetailsDownloadGet({ repositoryUrl, tags, mode, moduleId, repositoryCreatedById, reportCreatedById, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
3565
+ repositoryUrl?: string | null;
3566
+ tags?: string[] | null;
3567
+ mode?: ("scan" | "fix") | null;
3568
+ moduleId?: string[] | null;
3569
+ repositoryCreatedById?: string[] | null;
3570
+ reportCreatedById?: string[] | null;
3571
+ startDate?: string;
3572
+ endDate?: string;
3573
+ orderBy?: ("totalFilesCount" | "analyzedFilesCount" | "changedFilesCount" | "issuesCount" | "issuesFilesCount" | "reportCreatedAt" | "repositoryUrl" | "sourceBranch" | "targetBranch" | "executionCompletedAt" | "executionStartedAt" | "moduleName" | "moduleVersion" | "processingTimeSeconds" | "pullRequestLink" | "reportCreatedByEmail" | "reportCreatedByName" | "repositoryCreatedByEmail" | "repositoryCreatedByName") | null;
3574
+ orderDirection?: ("ASC" | "DESC") | null;
3575
+ extension?: "csv" | "xlsx";
3576
+ authorization: string;
3577
+ }, opts?: Oazapfts.RequestOpts) {
3578
+ return oazapfts.ok(oazapfts.fetchJson<{
3579
+ status: 200;
3580
+ data: AnalyticsRepositoryDetailedReportResponse;
3581
+ } | {
3582
+ status: 400;
3583
+ data: HttpErrorResponseRead;
3584
+ } | {
3585
+ status: 401;
3586
+ data: HttpErrorResponseRead;
3587
+ } | {
3588
+ status: 404;
3589
+ data: HttpErrorResponseRead;
3590
+ } | {
3591
+ status: 422;
3592
+ } | {
3593
+ status: 500;
3594
+ data: HttpErrorResponseRead;
3595
+ } | {
3596
+ status: 503;
3597
+ data: HttpErrorResponseRead;
3598
+ }>(`/v1/analytics/repositories/details/download${QS.query(QS.explode({
3599
+ repositoryUrl,
3600
+ tags,
3601
+ mode,
3602
+ moduleId,
3603
+ repositoryCreatedById,
3604
+ reportCreatedById,
3605
+ startDate,
3606
+ endDate,
3607
+ orderBy,
3608
+ orderDirection,
3609
+ extension
3610
+ }))}`, {
3611
+ ...opts,
3612
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3613
+ authorization
3614
+ })
3615
+ }));
3616
+ }
3617
+ /**
3618
+ * Analytics Program Groups Target Details
3619
+ */
3620
+ export function analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet({ pageSize, page, programName, componentName, tags, mode, moduleId, reportCreatedById, startDate, endDate, orderBy, orderDirection, authorization }: {
3621
+ pageSize?: number;
3622
+ page?: number;
3623
+ programName?: string | null;
3624
+ componentName?: string | null;
3625
+ tags?: string[] | null;
3626
+ mode?: ("scan" | "fix") | null;
3627
+ moduleId?: string[] | null;
3628
+ reportCreatedById?: string[] | null;
3629
+ startDate?: string;
3630
+ endDate?: string;
3631
+ orderBy?: ("programGroupName" | "moduleName" | "mode" | "reportCreatedAt" | "executionStartedAt" | "executionCompletedAt" | "componentAppName" | "componentName" | "componentType" | "totalIssues" | "changedFilesCount") | null;
3632
+ orderDirection?: ("ASC" | "DESC") | null;
3633
+ authorization: string;
3634
+ }, opts?: Oazapfts.RequestOpts) {
3635
+ return oazapfts.ok(oazapfts.fetchJson<{
3636
+ status: 200;
3637
+ data: AnalyticsProgramGroupsTargetDetailsResponse;
3638
+ } | {
3639
+ status: 400;
3640
+ data: HttpErrorResponseRead;
3641
+ } | {
3642
+ status: 401;
3643
+ data: HttpErrorResponseRead;
3644
+ } | {
3645
+ status: 404;
3646
+ data: HttpErrorResponseRead;
3647
+ } | {
3648
+ status: 422;
3649
+ } | {
3650
+ status: 500;
3651
+ data: HttpErrorResponseRead;
3652
+ } | {
3653
+ status: 503;
3654
+ data: HttpErrorResponseRead;
3655
+ }>(`/v1/analytics/program-groups/target-details${QS.query(QS.explode({
3656
+ pageSize,
3657
+ page,
3658
+ programName,
3659
+ componentName,
3660
+ tags,
3661
+ mode,
3662
+ moduleId,
3663
+ reportCreatedById,
3664
+ startDate,
3665
+ endDate,
3666
+ orderBy,
3667
+ orderDirection
3668
+ }))}`, {
3669
+ ...opts,
3670
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3671
+ authorization
3672
+ })
3673
+ }));
3674
+ }
3675
+ /**
3676
+ * Analytics Program Groups Target Details Download
3677
+ */
3678
+ export function analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet({ programName, tags, mode, moduleId, componentName, reportCreatedById, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
3679
+ programName?: string | null;
3680
+ tags?: string[] | null;
3681
+ mode?: ("scan" | "fix") | null;
3682
+ moduleId?: string[] | null;
3683
+ componentName?: string | null;
3684
+ reportCreatedById?: string[] | null;
3685
+ startDate?: string;
3686
+ endDate?: string;
3687
+ orderBy?: ("programGroupName" | "moduleName" | "mode" | "reportCreatedAt" | "executionStartedAt" | "executionCompletedAt" | "componentAppName" | "componentName" | "componentType" | "totalIssues" | "changedFilesCount") | null;
3688
+ orderDirection?: ("ASC" | "DESC") | null;
3689
+ extension?: "csv" | "xlsx";
3690
+ authorization: string;
3691
+ }, opts?: Oazapfts.RequestOpts) {
3692
+ return oazapfts.ok(oazapfts.fetchJson<{
3693
+ status: 200;
3694
+ data: any;
3695
+ } | {
3696
+ status: 400;
3697
+ data: HttpErrorResponseRead;
3698
+ } | {
3699
+ status: 401;
3700
+ data: HttpErrorResponseRead;
3701
+ } | {
3702
+ status: 404;
3703
+ data: HttpErrorResponseRead;
3704
+ } | {
3705
+ status: 422;
3706
+ } | {
3707
+ status: 500;
3708
+ data: HttpErrorResponseRead;
3709
+ } | {
3710
+ status: 503;
3711
+ data: HttpErrorResponseRead;
3712
+ }>(`/v1/analytics/program-groups/target-details/download${QS.query(QS.explode({
3713
+ programName,
3714
+ tags,
3715
+ mode,
3716
+ moduleId,
3717
+ componentName,
3718
+ reportCreatedById,
3719
+ startDate,
3720
+ endDate,
3721
+ orderBy,
3722
+ orderDirection,
3723
+ extension
3724
+ }))}`, {
3725
+ ...opts,
3726
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3727
+ authorization
3728
+ })
3729
+ }));
3730
+ }
3731
+ /**
3732
+ * Analytics Repository Target Details
3733
+ */
3734
+ export function analyticsRepositoryTargetDetailsV1AnalyticsRepositoriesTargetDetailsGet({ pageSize, page, repositoryUrl, targetName, tags, mode, moduleId, reportCreatedById, startDate, endDate, orderBy, orderDirection, authorization }: {
3735
+ pageSize?: number;
3736
+ page?: number;
3737
+ repositoryUrl?: string | null;
3738
+ targetName?: string | null;
3739
+ tags?: string[] | null;
3740
+ mode?: ("scan" | "fix") | null;
3741
+ moduleId?: string[] | null;
3742
+ reportCreatedById?: string[] | null;
3743
+ startDate?: string;
3744
+ endDate?: string;
3745
+ orderBy?: ("repositoryUrl" | "sourceBranch" | "moduleName" | "targetName" | "targetPath" | "issuesCount" | "reportCreatedAt") | null;
3746
+ orderDirection?: ("ASC" | "DESC") | null;
3747
+ authorization: string;
3748
+ }, opts?: Oazapfts.RequestOpts) {
3749
+ return oazapfts.ok(oazapfts.fetchJson<{
3750
+ status: 200;
3751
+ data: AnalyticsRepositoryTargetDetailsResponse;
3752
+ } | {
3753
+ status: 400;
3754
+ data: HttpErrorResponseRead;
3755
+ } | {
3756
+ status: 401;
3757
+ data: HttpErrorResponseRead;
3758
+ } | {
3759
+ status: 404;
3760
+ data: HttpErrorResponseRead;
3761
+ } | {
3762
+ status: 422;
3763
+ } | {
3764
+ status: 500;
3765
+ data: HttpErrorResponseRead;
3766
+ } | {
3767
+ status: 503;
3768
+ data: HttpErrorResponseRead;
3769
+ }>(`/v1/analytics/repositories/target-details${QS.query(QS.explode({
3770
+ pageSize,
3771
+ page,
3772
+ repositoryUrl,
3773
+ targetName,
3774
+ tags,
3775
+ mode,
3776
+ moduleId,
3777
+ reportCreatedById,
3778
+ startDate,
3779
+ endDate,
3780
+ orderBy,
3781
+ orderDirection
3782
+ }))}`, {
3783
+ ...opts,
3784
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3785
+ authorization
3786
+ })
3787
+ }));
3788
+ }
3789
+ /**
3790
+ * Analytics Repository Target Details Download
3791
+ */
3792
+ export function analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet({ repositoryUrl, targetName, tags, mode, moduleId, reportCreatedById, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
3793
+ repositoryUrl?: string | null;
3794
+ targetName?: string | null;
3795
+ tags?: string[] | null;
3796
+ mode?: ("scan" | "fix") | null;
3797
+ moduleId?: string[] | null;
3798
+ reportCreatedById?: string[] | null;
3799
+ startDate?: string;
3800
+ endDate?: string;
3801
+ orderBy?: ("repositoryUrl" | "sourceBranch" | "moduleName" | "targetName" | "targetPath" | "issuesCount" | "reportCreatedAt") | null;
3802
+ orderDirection?: ("ASC" | "DESC") | null;
3803
+ extension?: "csv" | "xlsx";
3804
+ authorization: string;
3805
+ }, opts?: Oazapfts.RequestOpts) {
3806
+ return oazapfts.ok(oazapfts.fetchJson<{
3807
+ status: 200;
3808
+ data: any;
3809
+ } | {
3810
+ status: 400;
3811
+ data: HttpErrorResponseRead;
3812
+ } | {
3813
+ status: 401;
3814
+ data: HttpErrorResponseRead;
3815
+ } | {
3816
+ status: 404;
3817
+ data: HttpErrorResponseRead;
3818
+ } | {
3819
+ status: 422;
3820
+ } | {
3821
+ status: 500;
3822
+ data: HttpErrorResponseRead;
3823
+ } | {
3824
+ status: 503;
3825
+ data: HttpErrorResponseRead;
3826
+ }>(`/v1/analytics/repositories/target-details/download${QS.query(QS.explode({
3827
+ repositoryUrl,
3828
+ targetName,
3829
+ tags,
3830
+ mode,
3831
+ moduleId,
3832
+ reportCreatedById,
3833
+ startDate,
3834
+ endDate,
3835
+ orderBy,
3836
+ orderDirection,
3837
+ extension
3838
+ }))}`, {
3839
+ ...opts,
3840
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3841
+ authorization
3842
+ })
3843
+ }));
3844
+ }
3845
+ /**
3846
+ * Analytics Module Execution Times Report
3847
+ */
3848
+ export function analyticsModuleExecutionTimesReportV1AnalyticsModulesExecutionTimesGet({ pageSize, page, moduleId, version, mode, startDate, endDate, orderBy, orderDirection, authorization }: {
3849
+ pageSize?: number;
3850
+ page?: number;
3851
+ moduleId?: string[] | null;
3852
+ version?: string[] | null;
3853
+ mode?: ("scan" | "fix") | null;
3854
+ startDate?: string;
3855
+ endDate?: string;
3856
+ orderBy?: ("moduleName" | "moduleVersion" | "queueTimeAvg" | "queueTimeP95" | "executionTimeAvg" | "executionTimeP95" | "totalTimeAvg" | "totalTimeP95" | "executionCount") | null;
3857
+ orderDirection?: ("ASC" | "DESC") | null;
3858
+ authorization: string;
3859
+ }, opts?: Oazapfts.RequestOpts) {
3860
+ return oazapfts.ok(oazapfts.fetchJson<{
3861
+ status: 200;
3862
+ data: AnalyticsModuleExecutionTimesResponse;
3863
+ } | {
3864
+ status: 400;
3865
+ data: HttpErrorResponseRead;
3866
+ } | {
3867
+ status: 401;
3868
+ data: HttpErrorResponseRead;
3869
+ } | {
3870
+ status: 404;
3871
+ data: HttpErrorResponseRead;
3872
+ } | {
3873
+ status: 422;
3874
+ } | {
3875
+ status: 500;
3876
+ data: HttpErrorResponseRead;
3877
+ } | {
3878
+ status: 503;
3879
+ data: HttpErrorResponseRead;
3880
+ }>(`/v1/analytics/modules/execution-times${QS.query(QS.explode({
3881
+ pageSize,
3882
+ page,
3883
+ moduleId,
3884
+ version,
3885
+ mode,
3886
+ startDate,
3887
+ endDate,
3888
+ orderBy,
3889
+ orderDirection
3890
+ }))}`, {
3891
+ ...opts,
3892
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3893
+ authorization
3894
+ })
3895
+ }));
3896
+ }
3897
+ /**
3898
+ * Analytics Module Execution Times Download
3899
+ */
3900
+ export function analyticsModuleExecutionTimesDownloadV1AnalyticsModulesExecutionTimesDownloadGet({ moduleId, version, mode, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
3901
+ moduleId?: string[] | null;
3902
+ version?: string[] | null;
3903
+ mode?: ("scan" | "fix") | null;
3904
+ startDate?: string;
3905
+ endDate?: string;
3906
+ orderBy?: ("moduleName" | "moduleVersion" | "queueTimeAvg" | "queueTimeP95" | "executionTimeAvg" | "executionTimeP95" | "totalTimeAvg" | "totalTimeP95" | "executionCount") | null;
3907
+ orderDirection?: ("ASC" | "DESC") | null;
3908
+ extension?: "csv" | "xlsx";
3909
+ authorization: string;
3910
+ }, opts?: Oazapfts.RequestOpts) {
3911
+ return oazapfts.ok(oazapfts.fetchJson<{
3912
+ status: 200;
3913
+ data: any;
3914
+ } | {
3915
+ status: 400;
3916
+ data: HttpErrorResponseRead;
3917
+ } | {
3918
+ status: 401;
3919
+ data: HttpErrorResponseRead;
3920
+ } | {
3921
+ status: 404;
3922
+ data: HttpErrorResponseRead;
3923
+ } | {
3924
+ status: 422;
3925
+ } | {
3926
+ status: 500;
3927
+ data: HttpErrorResponseRead;
3928
+ } | {
3929
+ status: 503;
3930
+ data: HttpErrorResponseRead;
3931
+ }>(`/v1/analytics/modules/execution-times/download${QS.query(QS.explode({
3932
+ moduleId,
3933
+ version,
3934
+ mode,
3935
+ startDate,
3936
+ endDate,
3937
+ orderBy,
3938
+ orderDirection,
3939
+ extension
3940
+ }))}`, {
3941
+ ...opts,
3942
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3943
+ authorization
3944
+ })
3945
+ }));
3946
+ }
3947
+ /**
3948
+ * List User Service
3949
+ */
3950
+ export function listUserServiceV1UsersGet({ authorization }: {
3951
+ authorization: string;
3952
+ }, opts?: Oazapfts.RequestOpts) {
3953
+ return oazapfts.ok(oazapfts.fetchJson<{
3954
+ status: 200;
3955
+ data: ListUserResponse;
3956
+ } | {
3957
+ status: 422;
3958
+ data: HttpValidationError;
3959
+ }>("/v1/users", {
3960
+ ...opts,
3961
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3962
+ authorization
3963
+ })
3964
+ }));
3965
+ }
3966
+ /**
3967
+ * Search Repos Scm Service
3968
+ */
3969
+ export function searchReposScmServiceV2ReposSearchScmPost({ authorization, searchReposInScmRequest }: {
3970
+ authorization: string;
3971
+ searchReposInScmRequest: SearchReposInScmRequest;
3972
+ }, opts?: Oazapfts.RequestOpts) {
3973
+ return oazapfts.ok(oazapfts.fetchJson<{
3974
+ status: 200;
3975
+ data: SearchReposInScmResponse;
3976
+ } | {
3977
+ status: 207;
3978
+ data: HttpErrorResponseRead;
3979
+ } | {
3980
+ status: 400;
3981
+ data: HttpErrorResponseRead;
3982
+ } | {
3983
+ status: 401;
3984
+ data: HttpErrorResponseRead;
3985
+ } | {
3986
+ status: 404;
3987
+ data: HttpErrorResponseRead;
3988
+ } | {
3989
+ status: 422;
3990
+ } | {
3991
+ status: 500;
3992
+ data: HttpErrorResponseRead;
3993
+ } | {
3994
+ status: 503;
3995
+ data: HttpErrorResponseRead;
3996
+ }>("/v2/repos/search-scm", oazapfts.json({
3997
+ ...opts,
3998
+ method: "POST",
3999
+ body: searchReposInScmRequest,
4000
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4001
+ authorization
4002
+ })
4003
+ })));
4004
+ }
4005
+ /**
4006
+ * Import Repos With Tags Scm Service
4007
+ */
4008
+ export function importReposWithTagsScmServiceV2ReposSearchScmSearchIdPost({ searchId, authorization, importReposScmWithTagsRequest }: {
4009
+ searchId: string;
4010
+ authorization: string;
4011
+ importReposScmWithTagsRequest: ImportReposScmWithTagsRequest;
4012
+ }, opts?: Oazapfts.RequestOpts) {
4013
+ return oazapfts.ok(oazapfts.fetchJson<{
4014
+ status: 200;
4015
+ data: SaveSearchReposResponse;
4016
+ } | {
4017
+ status: 400;
4018
+ data: HttpErrorResponseRead;
4019
+ } | {
4020
+ status: 401;
4021
+ data: HttpErrorResponseRead;
4022
+ } | {
4023
+ status: 404;
4024
+ data: HttpErrorResponseRead;
4025
+ } | {
4026
+ status: 422;
4027
+ } | {
4028
+ status: 500;
4029
+ data: HttpErrorResponseRead;
4030
+ } | {
4031
+ status: 503;
4032
+ data: HttpErrorResponseRead;
4033
+ }>(`/v2/repos/search-scm/${encodeURIComponent(searchId)}`, oazapfts.json({
4034
+ ...opts,
4035
+ method: "POST",
4036
+ body: importReposScmWithTagsRequest,
4037
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4038
+ authorization
4039
+ })
4040
+ })));
4041
+ }
4042
+ /**
4043
+ * Search Repos Scm V2
4044
+ */
4045
+ export function searchReposScmV2V2ReposSearchScmSearchIdGet({ searchId, authorization }: {
4046
+ searchId: string;
4047
+ authorization: string;
4048
+ }, opts?: Oazapfts.RequestOpts) {
4049
+ return oazapfts.ok(oazapfts.fetchJson<{
4050
+ status: 200;
4051
+ data: ResponseSearchRepoByIdResponseRead;
4052
+ } | {
4053
+ status: 400;
4054
+ data: HttpErrorResponseRead;
4055
+ } | {
4056
+ status: 401;
4057
+ data: HttpErrorResponseRead;
4058
+ } | {
4059
+ status: 404;
4060
+ data: HttpErrorResponseRead;
4061
+ } | {
4062
+ status: 422;
4063
+ } | {
4064
+ status: 500;
4065
+ data: HttpErrorResponseRead;
4066
+ } | {
4067
+ status: 503;
4068
+ data: HttpErrorResponseRead;
4069
+ }>(`/v2/repos/search-scm/${encodeURIComponent(searchId)}`, {
4070
+ ...opts,
4071
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4072
+ authorization
4073
+ })
4074
+ }));
4075
+ }
4076
+ /**
4077
+ * Download Search Repos Scm V2
4078
+ */
4079
+ export function downloadSearchReposScmV2V2ReposSearchScmSearchIdDownloadGet({ searchId, extension, authorization }: {
4080
+ searchId: string;
4081
+ extension?: "csv" | "xlsx";
4082
+ authorization: string;
4083
+ }, opts?: Oazapfts.RequestOpts) {
4084
+ return oazapfts.ok(oazapfts.fetchJson<{
4085
+ status: 200;
4086
+ data: any;
4087
+ } | {
4088
+ status: 400;
4089
+ data: HttpErrorResponseRead;
4090
+ } | {
4091
+ status: 401;
4092
+ data: HttpErrorResponseRead;
4093
+ } | {
4094
+ status: 404;
4095
+ data: HttpErrorResponseRead;
4096
+ } | {
4097
+ status: 422;
4098
+ } | {
4099
+ status: 500;
4100
+ data: HttpErrorResponseRead;
4101
+ } | {
4102
+ status: 503;
4103
+ data: HttpErrorResponseRead;
4104
+ }>(`/v2/repos/search-scm/${encodeURIComponent(searchId)}/download${QS.query(QS.explode({
4105
+ extension
4106
+ }))}`, {
4107
+ ...opts,
4108
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4109
+ authorization
4110
+ })
4111
+ }));
4112
+ }
4113
+ /**
4114
+ * Create Repos Batch Service
4115
+ */
4116
+ export function createReposBatchServiceV2ReposBatchPost({ tags, authorization, fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost }: {
4117
+ tags?: string[] | null;
4118
+ authorization: string;
4119
+ fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost: BodyCreateReposBatchServiceV2ReposBatchPost;
4120
+ }, opts?: Oazapfts.RequestOpts) {
4121
+ return oazapfts.ok(oazapfts.fetchJson<{
4122
+ status: 200;
4123
+ data: CreateRepoBatchResponse;
4124
+ } | {
4125
+ status: 400;
4126
+ data: HttpErrorResponseRead;
4127
+ } | {
4128
+ status: 401;
4129
+ data: HttpErrorResponseRead;
4130
+ } | {
4131
+ status: 404;
4132
+ data: HttpErrorResponseRead;
4133
+ } | {
4134
+ status: 422;
4135
+ } | {
4136
+ status: 500;
4137
+ data: HttpErrorResponseRead;
4138
+ } | {
4139
+ status: 503;
4140
+ data: HttpErrorResponseRead;
4141
+ }>(`/v2/repos/batch${QS.query(QS.explode({
4142
+ tags
4143
+ }))}`, oazapfts.multipart({
4144
+ ...opts,
4145
+ method: "POST",
4146
+ body: fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost,
4147
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4148
+ authorization
4149
+ })
4150
+ })));
4151
+ }
4152
+ /**
4153
+ * Get Import Result
4154
+ */
4155
+ export function getImportResultV2ReposBatchImportIdGet({ importId, pageSize, page, authorization }: {
4156
+ importId: string;
4157
+ pageSize?: number;
4158
+ page?: number;
4159
+ authorization: string;
4160
+ }, opts?: Oazapfts.RequestOpts) {
4161
+ return oazapfts.ok(oazapfts.fetchJson<{
4162
+ status: 200;
4163
+ data: GetImportResultResponseRead;
4164
+ } | {
4165
+ status: 400;
4166
+ data: HttpErrorResponseRead;
4167
+ } | {
4168
+ status: 401;
4169
+ data: HttpErrorResponseRead;
4170
+ } | {
4171
+ status: 404;
4172
+ data: HttpErrorResponseRead;
4173
+ } | {
4174
+ status: 422;
4175
+ } | {
4176
+ status: 500;
4177
+ data: HttpErrorResponseRead;
4178
+ } | {
4179
+ status: 503;
4180
+ data: HttpErrorResponseRead;
4181
+ }>(`/v2/repos/batch/${encodeURIComponent(importId)}${QS.query(QS.explode({
4182
+ pageSize,
4183
+ page
4184
+ }))}`, {
4185
+ ...opts,
4186
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4187
+ authorization
4188
+ })
4189
+ }));
4190
+ }
4191
+ /**
4192
+ * Download Import Result
4193
+ */
4194
+ export function downloadImportResultV2ReposBatchImportIdDownloadGet({ importId, language, status, extension, authorization }: {
4195
+ importId: string;
4196
+ language?: "ptBr" | "enUs";
4197
+ status?: ValidateRepositoryStatus | null;
4198
+ extension?: "csv" | "xlsx";
4199
+ authorization: string;
4200
+ }, opts?: Oazapfts.RequestOpts) {
4201
+ return oazapfts.ok(oazapfts.fetchJson<{
4202
+ status: 200;
4203
+ data: any;
4204
+ } | {
4205
+ status: 400;
4206
+ data: HttpErrorResponseRead;
4207
+ } | {
4208
+ status: 401;
4209
+ data: HttpErrorResponseRead;
4210
+ } | {
4211
+ status: 404;
4212
+ data: HttpErrorResponseRead;
4213
+ } | {
4214
+ status: 422;
4215
+ } | {
4216
+ status: 500;
4217
+ data: HttpErrorResponseRead;
4218
+ } | {
4219
+ status: 503;
4220
+ data: HttpErrorResponseRead;
4221
+ }>(`/v2/repos/batch/${encodeURIComponent(importId)}/download${QS.query(QS.explode({
4222
+ language,
4223
+ status,
4224
+ extension
4225
+ }))}`, {
4226
+ ...opts,
4227
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4228
+ authorization
4229
+ })
4230
+ }));
4231
+ }
4232
+ /**
4233
+ * List Repository Service
4234
+ */
4235
+ export function listRepositoryServiceV2ReposGet({ pageSize, page, lastEvaluatedKey, filter, moduleId, createdByEmail, reportByEmail, orderBy, orderDirection, tags, onlyIds, authorization }: {
4236
+ pageSize?: number;
4237
+ page?: number;
4238
+ lastEvaluatedKey?: string;
4239
+ filter?: string;
4240
+ moduleId?: string;
4241
+ createdByEmail?: string[] | null;
4242
+ reportByEmail?: string[] | null;
4243
+ orderBy?: "repository_url" | "repository_default_branch" | "report_created_at" | "report_issues_count";
4244
+ orderDirection?: "asc" | "desc" | "ASC" | "DESC";
4245
+ tags?: string[] | null;
4246
+ onlyIds?: boolean;
4247
+ authorization: string;
4248
+ }, opts?: Oazapfts.RequestOpts) {
4249
+ return oazapfts.ok(oazapfts.fetchJson<{
4250
+ status: 200;
4251
+ data: ListRepositoryResponse2;
4252
+ } | {
4253
+ status: 400;
4254
+ data: HttpErrorResponseRead;
4255
+ } | {
4256
+ status: 401;
4257
+ data: HttpErrorResponseRead;
4258
+ } | {
4259
+ status: 404;
4260
+ data: HttpErrorResponseRead;
4261
+ } | {
4262
+ status: 422;
4263
+ } | {
4264
+ status: 500;
4265
+ data: HttpErrorResponseRead;
4266
+ } | {
4267
+ status: 503;
4268
+ data: HttpErrorResponseRead;
4269
+ }>(`/v2/repos${QS.query(QS.explode({
4270
+ pageSize,
4271
+ page,
4272
+ lastEvaluatedKey,
4273
+ filter,
4274
+ moduleId,
4275
+ createdByEmail,
4276
+ reportByEmail,
4277
+ orderBy,
4278
+ orderDirection,
4279
+ tags,
4280
+ onlyIds
4281
+ }))}`, {
4282
+ ...opts,
4283
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4284
+ authorization
4285
+ })
4286
+ }));
4287
+ }
4288
+ /**
4289
+ * Create Repository Service
4290
+ */
4291
+ export function createRepositoryServiceV2ReposPost({ authorization, srcPresentationApiRestServicesV2ReposRequestsCreateRepositoryRequestCreateRepositoryRequest }: {
4292
+ authorization: string;
4293
+ srcPresentationApiRestServicesV2ReposRequestsCreateRepositoryRequestCreateRepositoryRequest: CreateRepositoryRequest2;
4294
+ }, opts?: Oazapfts.RequestOpts) {
4295
+ return oazapfts.ok(oazapfts.fetchJson<{
4296
+ status: 200;
4297
+ data: CreateRepositoryResponse;
4298
+ } | {
4299
+ status: 400;
4300
+ data: HttpErrorResponseRead;
4301
+ } | {
4302
+ status: 401;
4303
+ data: HttpErrorResponseRead;
4304
+ } | {
4305
+ status: 404;
4306
+ data: HttpErrorResponseRead;
4307
+ } | {
4308
+ status: 422;
4309
+ } | {
4310
+ status: 500;
4311
+ data: HttpErrorResponseRead;
4312
+ } | {
4313
+ status: 503;
4314
+ data: HttpErrorResponseRead;
4315
+ }>("/v2/repos", oazapfts.json({
4316
+ ...opts,
4317
+ method: "POST",
4318
+ body: srcPresentationApiRestServicesV2ReposRequestsCreateRepositoryRequestCreateRepositoryRequest,
4319
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4320
+ authorization
4321
+ })
4322
+ })));
4323
+ }
4324
+ /**
4325
+ * Pat Health Check
4326
+ */
4327
+ export function patHealthCheckV1ScmPatHealthCheckGet({ authorization }: {
4328
+ authorization: string;
4329
+ }, opts?: Oazapfts.RequestOpts) {
4330
+ return oazapfts.ok(oazapfts.fetchJson<{
4331
+ status: 200;
4332
+ data: true;
4333
+ } | {
4334
+ status: 422;
4335
+ data: HttpValidationError;
4336
+ }>("/v1/scm/pat/health-check", {
4337
+ ...opts,
4338
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4339
+ authorization
4340
+ })
4341
+ }));
4342
+ }
4343
+ /**
4344
+ * List Module Execution Batch Activities
4345
+ */
4346
+ export function listModuleExecutionBatchActivitiesV1ActivitiesModuleExecutionBatchGet({ pageSize, page, authorization }: {
4347
+ pageSize?: number;
4348
+ page?: number;
4349
+ authorization: string;
4350
+ }, opts?: Oazapfts.RequestOpts) {
4351
+ return oazapfts.ok(oazapfts.fetchJson<{
4352
+ status: 200;
4353
+ data: ListModuleExecutionBatchActivitiesResponse;
4354
+ } | {
4355
+ status: 422;
4356
+ data: HttpValidationError;
4357
+ }>(`/v1/activities/module-execution-batch${QS.query(QS.explode({
4358
+ pageSize,
4359
+ page
4360
+ }))}`, {
4361
+ ...opts,
4362
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4363
+ authorization
4364
+ })
4365
+ }));
4366
+ }
4367
+ /**
4368
+ * Get Module Execution Batch Activities By Id
4369
+ */
4370
+ export function getModuleExecutionBatchActivitiesByIdV1ActivitiesModuleExecutionBatchModuleExecutionBatchIdGet({ moduleExecutionBatchId, pageSize, page, authorization }: {
4371
+ moduleExecutionBatchId: string;
4372
+ pageSize?: number;
4373
+ page?: number;
4374
+ authorization: string;
4375
+ }, opts?: Oazapfts.RequestOpts) {
4376
+ return oazapfts.ok(oazapfts.fetchJson<{
4377
+ status: 200;
4378
+ data: GetModuleExecutionBatchActivitiesById;
4379
+ } | {
4380
+ status: 422;
4381
+ data: HttpValidationError;
4382
+ }>(`/v1/activities/module-execution-batch/${encodeURIComponent(moduleExecutionBatchId)}${QS.query(QS.explode({
4383
+ pageSize,
4384
+ page
4385
+ }))}`, {
2395
4386
  ...opts,
2396
4387
  headers: oazapfts.mergeHeaders(opts?.headers, {
2397
4388
  authorization