@stack-spot/portal-network 0.197.0 → 0.197.1-beta.1
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.
- package/CHANGELOG.md +123 -0
- package/dist/api/agent-tools.d.ts +139 -148
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +41 -4
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/agent.d.ts +55 -55
- package/dist/api/agent.d.ts.map +1 -1
- package/dist/api/ai.d.ts +288 -19
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +196 -11
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatformHorizon.d.ts +178 -9
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +69 -1
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/api/codeShift.d.ts +316 -32
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +172 -8
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/dataIntegration.d.ts +291 -1
- package/dist/api/dataIntegration.d.ts.map +1 -1
- package/dist/api/dataIntegration.js +254 -0
- package/dist/api/dataIntegration.js.map +1 -1
- package/dist/api/discover.d.ts +95 -12
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +78 -2
- package/dist/api/discover.js.map +1 -1
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/client/account.d.ts +233 -233
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/agent-tools.d.ts +159 -126
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +35 -4
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +46 -46
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/ai.d.ts +226 -108
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +92 -2
- package/dist/client/ai.js.map +1 -1
- package/dist/client/api-management.d.ts +2 -2
- package/dist/client/cloud-account.d.ts +13 -13
- package/dist/client/cloud-platform-horizon.d.ts +38 -19
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +19 -1
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +50 -50
- package/dist/client/cloud-runtimes.d.ts +4 -4
- package/dist/client/cloud-services.d.ts +17 -17
- package/dist/client/cloud-services.d.ts.map +1 -1
- package/dist/client/code-shift.d.ts +332 -265
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +55 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/content.d.ts +127 -132
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/data-integration.d.ts +85 -55
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +22 -2
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discover.d.ts +29 -9
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +236 -1
- package/dist/client/discover.js.map +1 -1
- package/dist/client/event-bus.d.ts.map +1 -1
- package/dist/client/gen-ai-inference.d.ts +20 -20
- package/dist/client/insights.d.ts +7 -7
- package/dist/client/notification.d.ts +10 -10
- package/dist/client/runtime-manager.d.ts +8 -8
- package/dist/client/secrets.d.ts.map +1 -1
- package/dist/client/secrets.js +1 -1
- package/dist/client/secrets.js.map +1 -1
- package/dist/client/types.d.ts +14 -0
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workflow.d.ts +10 -10
- package/dist/client/workspace-ai.d.ts +53 -53
- package/dist/client/workspace-manager.d.ts +77 -77
- package/dist/client/workspace-search.d.ts +2 -2
- package/dist/client/workspace.d.ts +58 -105
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.d.ts +6 -0
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +6 -0
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/utils/StreamedJson.d.ts.map +1 -1
- package/dist/utils/StreamedJson.js +9 -1
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.json +2 -2
- package/src/api/agent-tools.ts +186 -150
- package/src/api/ai.ts +521 -24
- package/src/api/cloudPlatformHorizon.ts +412 -9
- package/src/api/codeShift.ts +631 -37
- package/src/api/dataIntegration.ts +635 -1
- package/src/api/discover.ts +180 -14
- package/src/client/agent-tools.ts +26 -4
- package/src/client/ai.ts +74 -10
- package/src/client/cloud-platform-horizon.ts +12 -4
- package/src/client/code-shift.ts +35 -1
- package/src/client/data-integration.ts +15 -1
- package/src/client/discover.ts +233 -3
- package/src/client/secrets.ts +1 -1
- package/src/client/types.ts +17 -2
- package/src/error/dictionary/cloud-platform.ts +6 -0
- package/src/utils/StreamedJson.tsx +9 -2
package/src/api/codeShift.ts
CHANGED
|
@@ -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" | "account-discovery-repos";
|
|
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,7 +24,7 @@ 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_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_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";
|
|
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
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
29
|
export type InvalidPayloadDetails = {
|
|
30
30
|
code: BadRequestExceptionTypes | ExceptionType;
|
|
@@ -66,11 +66,17 @@ export type GitAction = {
|
|
|
66
66
|
directory: string;
|
|
67
67
|
};
|
|
68
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
|
+
};
|
|
69
77
|
export type ModulePermission = "read" | "write";
|
|
70
78
|
export type SharedUserRequest = {
|
|
71
|
-
|
|
72
|
-
email: string;
|
|
73
|
-
/** Permission to grant: 'read' or 'write' */
|
|
79
|
+
user: UserRequest;
|
|
74
80
|
permission: ModulePermission;
|
|
75
81
|
};
|
|
76
82
|
export type CreateModuleRequest = {
|
|
@@ -144,6 +150,8 @@ export type ModuleResponse = {
|
|
|
144
150
|
gitAction?: GitAction2 | null;
|
|
145
151
|
/** Flag to favor modules */
|
|
146
152
|
isFavorite: boolean;
|
|
153
|
+
/** Flag to edit modules */
|
|
154
|
+
canEdit: boolean;
|
|
147
155
|
};
|
|
148
156
|
export type ListModuleResponse = {
|
|
149
157
|
/** List of modules */
|
|
@@ -187,9 +195,14 @@ export type SharedPermissionResponse = {
|
|
|
187
195
|
userId: string;
|
|
188
196
|
/** User email */
|
|
189
197
|
email: string;
|
|
198
|
+
/** User username */
|
|
199
|
+
username: string;
|
|
190
200
|
/** Permission type: 'read' (view/execute) or 'write' (edit/manage) */
|
|
191
201
|
permission: ModulePermission;
|
|
192
202
|
};
|
|
203
|
+
export type UserResponse = {
|
|
204
|
+
name: string;
|
|
205
|
+
};
|
|
193
206
|
export type GetModuleResponse = {
|
|
194
207
|
/** Module ID */
|
|
195
208
|
id: string;
|
|
@@ -222,10 +235,13 @@ export type GetModuleResponse = {
|
|
|
222
235
|
sharedWith?: SharedPermissionResponse[] | null;
|
|
223
236
|
/** Flag to favor modules */
|
|
224
237
|
isFavorite: boolean;
|
|
238
|
+
/** Flag to edit modules */
|
|
239
|
+
canEdit: boolean;
|
|
225
240
|
/** Module usage */
|
|
226
241
|
totalUsage: number;
|
|
227
242
|
/** Module users */
|
|
228
243
|
totalUsers: number;
|
|
244
|
+
createdBy: UserResponse | null;
|
|
229
245
|
};
|
|
230
246
|
export type ExternalItemsModel = {
|
|
231
247
|
source: string;
|
|
@@ -243,7 +259,7 @@ export type OutputModel = {
|
|
|
243
259
|
};
|
|
244
260
|
export type InputModel = {
|
|
245
261
|
label: string;
|
|
246
|
-
name: string;
|
|
262
|
+
name: string | null;
|
|
247
263
|
"type": string;
|
|
248
264
|
required: boolean;
|
|
249
265
|
pattern: string | null;
|
|
@@ -267,6 +283,9 @@ export type GetModuleInputsResponse = {
|
|
|
267
283
|
inputs: InputModel[];
|
|
268
284
|
computedInputs: ComputedInputModel[] | null;
|
|
269
285
|
};
|
|
286
|
+
export type GetModuleDocsResponse = {
|
|
287
|
+
content: string;
|
|
288
|
+
};
|
|
270
289
|
export type Mode = "scan" | "fix";
|
|
271
290
|
export type ModuleDispatchRequest = {
|
|
272
291
|
/** Module mode */
|
|
@@ -283,6 +302,9 @@ export type ModuleDispatchRequest = {
|
|
|
283
302
|
[key: string]: any;
|
|
284
303
|
} | null;
|
|
285
304
|
};
|
|
305
|
+
export type DispatchModuleResponse = {
|
|
306
|
+
batch_id: string;
|
|
307
|
+
};
|
|
286
308
|
export type DependsOnRequest = {
|
|
287
309
|
sourceRef: string;
|
|
288
310
|
targetRef: string;
|
|
@@ -301,6 +323,9 @@ export type TargetFilesRequest = {
|
|
|
301
323
|
details?: string | null;
|
|
302
324
|
dependsOn?: DependsOnRequest[] | null;
|
|
303
325
|
issues?: IssuesRequest[] | null;
|
|
326
|
+
totalTokenSent?: number | null;
|
|
327
|
+
totalTokenReceived?: number | null;
|
|
328
|
+
modified?: boolean | null;
|
|
304
329
|
};
|
|
305
330
|
export type LanguageInfoRequest = {
|
|
306
331
|
bytes: number;
|
|
@@ -342,7 +367,7 @@ export type ExecutionResponse = {
|
|
|
342
367
|
status: string | null;
|
|
343
368
|
conclusion: string | null;
|
|
344
369
|
};
|
|
345
|
-
export type
|
|
370
|
+
export type UserResponse2 = {
|
|
346
371
|
id: string;
|
|
347
372
|
name: string;
|
|
348
373
|
email: string;
|
|
@@ -371,6 +396,9 @@ export type TargetFilesResponse = {
|
|
|
371
396
|
details?: string | null;
|
|
372
397
|
dependsOn?: DependsOnResponse[] | null;
|
|
373
398
|
issues?: IssuesResponse[] | null;
|
|
399
|
+
totalTokenSent?: number | null;
|
|
400
|
+
totalTokenReceived?: number | null;
|
|
401
|
+
modified?: boolean | null;
|
|
374
402
|
};
|
|
375
403
|
export type ReportStatus = "waiting_dispatch" | "waiting_runner" | "dispatch_failure" | "in_progress" | "suspended" | "error" | "success" | "cancelled";
|
|
376
404
|
export type PullRequestResponse = {
|
|
@@ -387,7 +415,7 @@ export type CustomerRatingResponse = {
|
|
|
387
415
|
report_id: string;
|
|
388
416
|
score: number;
|
|
389
417
|
commentary: string | null;
|
|
390
|
-
created_by:
|
|
418
|
+
created_by: UserResponse2;
|
|
391
419
|
created_at: string;
|
|
392
420
|
};
|
|
393
421
|
export type LanguageResponse = {
|
|
@@ -405,7 +433,7 @@ export type GetReportResponse = {
|
|
|
405
433
|
mode: string;
|
|
406
434
|
sourceBranch: string | null;
|
|
407
435
|
targetBranch?: string | null;
|
|
408
|
-
createdBy:
|
|
436
|
+
createdBy: UserResponse2;
|
|
409
437
|
createdAt: string;
|
|
410
438
|
updatedAt: string;
|
|
411
439
|
filesCount: number | null;
|
|
@@ -442,7 +470,7 @@ export type GetReportResponseRead = {
|
|
|
442
470
|
mode: string;
|
|
443
471
|
sourceBranch: string | null;
|
|
444
472
|
targetBranch?: string | null;
|
|
445
|
-
createdBy:
|
|
473
|
+
createdBy: UserResponse2;
|
|
446
474
|
createdAt: string;
|
|
447
475
|
updatedAt: string;
|
|
448
476
|
filesCount: number | null;
|
|
@@ -490,7 +518,7 @@ export type ModuleResponse3 = {
|
|
|
490
518
|
id: string;
|
|
491
519
|
name: string;
|
|
492
520
|
};
|
|
493
|
-
export type
|
|
521
|
+
export type UserResponse3 = {
|
|
494
522
|
id: string;
|
|
495
523
|
name: string;
|
|
496
524
|
email: string;
|
|
@@ -503,7 +531,7 @@ export type ReportResponse = {
|
|
|
503
531
|
mode: string;
|
|
504
532
|
sourceBranch: string;
|
|
505
533
|
targetBranch?: string | null;
|
|
506
|
-
createdBy:
|
|
534
|
+
createdBy: UserResponse3;
|
|
507
535
|
createdAt: string;
|
|
508
536
|
updatedAt: string;
|
|
509
537
|
filesCount: number | null;
|
|
@@ -520,7 +548,7 @@ export type ReportResponseRead = {
|
|
|
520
548
|
mode: string;
|
|
521
549
|
sourceBranch: string;
|
|
522
550
|
targetBranch?: string | null;
|
|
523
|
-
createdBy:
|
|
551
|
+
createdBy: UserResponse3;
|
|
524
552
|
createdAt: string;
|
|
525
553
|
updatedAt: string;
|
|
526
554
|
filesCount: number | null;
|
|
@@ -554,7 +582,7 @@ export type CreateRepositoryRequest = {
|
|
|
554
582
|
defaultBranch: string;
|
|
555
583
|
tags?: string[] | null;
|
|
556
584
|
};
|
|
557
|
-
export type
|
|
585
|
+
export type UserResponse4 = {
|
|
558
586
|
id: string;
|
|
559
587
|
name: string;
|
|
560
588
|
email: string;
|
|
@@ -567,7 +595,7 @@ export type ReportResponse2 = {
|
|
|
567
595
|
moduleId: string;
|
|
568
596
|
sourceBranch: string;
|
|
569
597
|
targetBranch?: string | null;
|
|
570
|
-
createdBy:
|
|
598
|
+
createdBy: UserResponse4 | null;
|
|
571
599
|
createdAt: string;
|
|
572
600
|
updatedAt: string;
|
|
573
601
|
filesCount: number | null;
|
|
@@ -584,7 +612,7 @@ export type ReportResponseRead2 = {
|
|
|
584
612
|
moduleId: string;
|
|
585
613
|
sourceBranch: string;
|
|
586
614
|
targetBranch?: string | null;
|
|
587
|
-
createdBy:
|
|
615
|
+
createdBy: UserResponse4 | null;
|
|
588
616
|
createdAt: string;
|
|
589
617
|
updatedAt: string;
|
|
590
618
|
filesCount: number | null;
|
|
@@ -648,6 +676,15 @@ export type PutRepositoryRequest = {
|
|
|
648
676
|
export type ValidateScmUrlRequest = {
|
|
649
677
|
url?: string | null;
|
|
650
678
|
};
|
|
679
|
+
export type ValidateScmUrlResponse = {
|
|
680
|
+
url: string;
|
|
681
|
+
name: string | null;
|
|
682
|
+
id: string | null;
|
|
683
|
+
defaultBranch: string | null;
|
|
684
|
+
lastCommitDate: string | null;
|
|
685
|
+
archived: boolean | null;
|
|
686
|
+
visibility: string | null;
|
|
687
|
+
};
|
|
651
688
|
export type GetAccountSettingsRequest = {
|
|
652
689
|
maxSimultaneousExecution: number | null;
|
|
653
690
|
createRepositoryValidateBranch: boolean | null;
|
|
@@ -708,7 +745,7 @@ export type BodyCreateProgramGroupServiceV1ProgramGroupsPost = {
|
|
|
708
745
|
export type CreateProgramGroupResponse = {
|
|
709
746
|
id: string;
|
|
710
747
|
};
|
|
711
|
-
export type
|
|
748
|
+
export type UserResponse5 = {
|
|
712
749
|
id: string;
|
|
713
750
|
name: string;
|
|
714
751
|
email: string;
|
|
@@ -719,7 +756,7 @@ export type ReportResponse3 = {
|
|
|
719
756
|
execution: ExecutionResponse | null;
|
|
720
757
|
mode: string;
|
|
721
758
|
moduleId: string;
|
|
722
|
-
createdBy:
|
|
759
|
+
createdBy: UserResponse5 | null;
|
|
723
760
|
createdAt: string;
|
|
724
761
|
updatedAt: string;
|
|
725
762
|
filesCount: number | null;
|
|
@@ -734,7 +771,7 @@ export type ReportResponseRead3 = {
|
|
|
734
771
|
execution: ExecutionResponse | null;
|
|
735
772
|
mode: string;
|
|
736
773
|
moduleId: string;
|
|
737
|
-
createdBy:
|
|
774
|
+
createdBy: UserResponse5 | null;
|
|
738
775
|
createdAt: string;
|
|
739
776
|
updatedAt: string;
|
|
740
777
|
filesCount: number | null;
|
|
@@ -799,7 +836,7 @@ export type ModuleResponse4 = {
|
|
|
799
836
|
id: string;
|
|
800
837
|
name: string;
|
|
801
838
|
};
|
|
802
|
-
export type
|
|
839
|
+
export type UserResponse6 = {
|
|
803
840
|
id: string;
|
|
804
841
|
name: string;
|
|
805
842
|
email: string;
|
|
@@ -810,7 +847,7 @@ export type ReportResponse4 = {
|
|
|
810
847
|
"module": ModuleResponse4;
|
|
811
848
|
execution: ExecutionResponse | null;
|
|
812
849
|
mode: string;
|
|
813
|
-
createdBy:
|
|
850
|
+
createdBy: UserResponse6;
|
|
814
851
|
createdAt: string;
|
|
815
852
|
updatedAt: string;
|
|
816
853
|
filesCount: number | null;
|
|
@@ -825,7 +862,7 @@ export type ReportResponseRead4 = {
|
|
|
825
862
|
"module": ModuleResponse4;
|
|
826
863
|
execution: ExecutionResponse | null;
|
|
827
864
|
mode: string;
|
|
828
|
-
createdBy:
|
|
865
|
+
createdBy: UserResponse6;
|
|
829
866
|
createdAt: string;
|
|
830
867
|
updatedAt: string;
|
|
831
868
|
filesCount: number | null;
|
|
@@ -1076,6 +1113,9 @@ export type ProgramGroupsTargetDetailsResponse = {
|
|
|
1076
1113
|
[key: string]: any;
|
|
1077
1114
|
} | null;
|
|
1078
1115
|
customerScore?: number | null;
|
|
1116
|
+
totalTokenSent: number | null;
|
|
1117
|
+
totalTokenReceived: number | null;
|
|
1118
|
+
modified: boolean | null;
|
|
1079
1119
|
};
|
|
1080
1120
|
export type AnalyticsProgramGroupsTargetDetailsResponse = {
|
|
1081
1121
|
totalComponents?: number;
|
|
@@ -1096,6 +1136,9 @@ export type RepositoryTargetDetailsItemResponse = {
|
|
|
1096
1136
|
reportCreatedAt: string | null;
|
|
1097
1137
|
reportId: string | null;
|
|
1098
1138
|
customerScore?: number | null;
|
|
1139
|
+
totalTokenSent: number | null;
|
|
1140
|
+
totalTokenReceived: number | null;
|
|
1141
|
+
modified: boolean | null;
|
|
1099
1142
|
};
|
|
1100
1143
|
export type AnalyticsRepositoryTargetDetailsResponse = {
|
|
1101
1144
|
totalFiles?: number;
|
|
@@ -1103,13 +1146,51 @@ export type AnalyticsRepositoryTargetDetailsResponse = {
|
|
|
1103
1146
|
totalItems?: number;
|
|
1104
1147
|
items?: RepositoryTargetDetailsItemResponse[];
|
|
1105
1148
|
};
|
|
1106
|
-
export type
|
|
1149
|
+
export type ModuleExecutionTimesDetailsResponse = {
|
|
1150
|
+
/** Name of the module */
|
|
1151
|
+
moduleName: string;
|
|
1152
|
+
/** Version of the module */
|
|
1153
|
+
moduleVersion: string;
|
|
1154
|
+
/** Average queue time in seconds */
|
|
1155
|
+
queueTimeAvg: number;
|
|
1156
|
+
/** 95th percentile queue time in seconds */
|
|
1157
|
+
queueTimeP95: number;
|
|
1158
|
+
/** Average execution time in seconds */
|
|
1159
|
+
executionTimeAvg: number;
|
|
1160
|
+
/** 95th percentile execution time in seconds */
|
|
1161
|
+
executionTimeP95: number;
|
|
1162
|
+
/** Average total time in seconds */
|
|
1163
|
+
totalTimeAvg: number;
|
|
1164
|
+
/** 95th percentile total time in seconds */
|
|
1165
|
+
totalTimeP95: number;
|
|
1166
|
+
/** Number of executions */
|
|
1167
|
+
executionCount: number | null;
|
|
1168
|
+
};
|
|
1169
|
+
export type AnalyticsModuleExecutionTimesResponse = {
|
|
1170
|
+
/** Total number of modules analyzed */
|
|
1171
|
+
modulesCount?: number;
|
|
1172
|
+
/** Overall average queue time */
|
|
1173
|
+
queueTimeAvg: number | null;
|
|
1174
|
+
/** Overall 95th percentile queue time */
|
|
1175
|
+
queueTimeP95: number | null;
|
|
1176
|
+
/** Overall average execution time */
|
|
1177
|
+
executionTimeAvg: number | null;
|
|
1178
|
+
/** Overall 95th percentile execution time */
|
|
1179
|
+
executionTimeP95: number | null;
|
|
1180
|
+
/** Overall average total time */
|
|
1181
|
+
totalTimeAvg: number | null;
|
|
1182
|
+
/** Overall 95th percentile total time */
|
|
1183
|
+
totalTimeP95: number | null;
|
|
1184
|
+
/** Detailed metrics per module */
|
|
1185
|
+
items?: ModuleExecutionTimesDetailsResponse[];
|
|
1186
|
+
};
|
|
1187
|
+
export type UserResponse7 = {
|
|
1107
1188
|
id: string;
|
|
1108
1189
|
name: string;
|
|
1109
1190
|
email: string;
|
|
1110
1191
|
};
|
|
1111
1192
|
export type ListUserResponse = {
|
|
1112
|
-
items:
|
|
1193
|
+
items: UserResponse7[];
|
|
1113
1194
|
itemsCount: number;
|
|
1114
1195
|
};
|
|
1115
1196
|
export type SearchReposInScmRequest = {
|
|
@@ -1154,6 +1235,103 @@ export type ResponseSearchRepoByIdResponseRead = {
|
|
|
1154
1235
|
exceptions: HttpErrorResponseRead[];
|
|
1155
1236
|
items?: SearchRepoByIdResponse[];
|
|
1156
1237
|
};
|
|
1238
|
+
export type BodyCreateReposBatchServiceV2ReposBatchPost = {
|
|
1239
|
+
file: Blob;
|
|
1240
|
+
};
|
|
1241
|
+
export type CreateRepoBatchResponse = {
|
|
1242
|
+
id: string;
|
|
1243
|
+
};
|
|
1244
|
+
export type ImportStatus = "COMPLETED" | "PENDING";
|
|
1245
|
+
export type ValidateRepositoryStatus = "PENDING" | "SUCCESS" | "FAILURE" | "CONFLICT";
|
|
1246
|
+
export type BatchRepositoryResponse = {
|
|
1247
|
+
repositoryId: string | null;
|
|
1248
|
+
repositoryUrl: string;
|
|
1249
|
+
repositoryBranch: string;
|
|
1250
|
+
repositoryTags: string[];
|
|
1251
|
+
status: ValidateRepositoryStatus;
|
|
1252
|
+
line: number;
|
|
1253
|
+
repositoryName: string | null;
|
|
1254
|
+
repositoryArchived: boolean | null;
|
|
1255
|
+
repositoryPushedAt: string | null;
|
|
1256
|
+
repositoryVisibility: string | null;
|
|
1257
|
+
exceptions: HttpErrorResponse[];
|
|
1258
|
+
};
|
|
1259
|
+
export type BatchRepositoryResponseRead = {
|
|
1260
|
+
repositoryId: string | null;
|
|
1261
|
+
repositoryUrl: string;
|
|
1262
|
+
repositoryBranch: string;
|
|
1263
|
+
repositoryTags: string[];
|
|
1264
|
+
status: ValidateRepositoryStatus;
|
|
1265
|
+
line: number;
|
|
1266
|
+
repositoryName: string | null;
|
|
1267
|
+
repositoryArchived: boolean | null;
|
|
1268
|
+
repositoryPushedAt: string | null;
|
|
1269
|
+
repositoryVisibility: string | null;
|
|
1270
|
+
exceptions: HttpErrorResponseRead[];
|
|
1271
|
+
};
|
|
1272
|
+
export type GetImportResultResponse = {
|
|
1273
|
+
status: ImportStatus;
|
|
1274
|
+
totalItems: number;
|
|
1275
|
+
items: BatchRepositoryResponse[];
|
|
1276
|
+
repositoriesIds: string[];
|
|
1277
|
+
};
|
|
1278
|
+
export type GetImportResultResponseRead = {
|
|
1279
|
+
status: ImportStatus;
|
|
1280
|
+
totalItems: number;
|
|
1281
|
+
items: BatchRepositoryResponseRead[];
|
|
1282
|
+
repositoriesIds: string[];
|
|
1283
|
+
};
|
|
1284
|
+
export type RepositoryResponse2 = {
|
|
1285
|
+
id: string;
|
|
1286
|
+
repositoryUrl: string | null;
|
|
1287
|
+
repositoryDefaultBranch: string | null;
|
|
1288
|
+
reportCreatedAt: string | null;
|
|
1289
|
+
reportIssuesCount: string | null;
|
|
1290
|
+
reportStatus: ReportStatus | null;
|
|
1291
|
+
};
|
|
1292
|
+
export type ListRepositoryResponse2 = {
|
|
1293
|
+
items: RepositoryResponse2[];
|
|
1294
|
+
itemsCount: number;
|
|
1295
|
+
};
|
|
1296
|
+
export type RepositoryRequest = {
|
|
1297
|
+
url: string;
|
|
1298
|
+
defaultBranch: string;
|
|
1299
|
+
tags?: string[] | null;
|
|
1300
|
+
};
|
|
1301
|
+
export type CreateRepositoryRequest2 = {
|
|
1302
|
+
repositories: RepositoryRequest[];
|
|
1303
|
+
raiseConflict?: boolean;
|
|
1304
|
+
};
|
|
1305
|
+
export type RepositoryResponse3 = {
|
|
1306
|
+
id: string;
|
|
1307
|
+
};
|
|
1308
|
+
export type CreateRepositoryResponse = {
|
|
1309
|
+
repositories: RepositoryResponse3[];
|
|
1310
|
+
};
|
|
1311
|
+
export type ModuleExecutionBatchStatus = "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
1312
|
+
export type ExecutionBatchResponse = {
|
|
1313
|
+
id: string;
|
|
1314
|
+
name: string | null;
|
|
1315
|
+
status: ModuleExecutionBatchStatus | null;
|
|
1316
|
+
created_at: string;
|
|
1317
|
+
};
|
|
1318
|
+
export type ListModuleExecutionBatchActivitiesResponse = {
|
|
1319
|
+
items: ExecutionBatchResponse[];
|
|
1320
|
+
itemsCount: number;
|
|
1321
|
+
};
|
|
1322
|
+
export type ModuleExecution = {
|
|
1323
|
+
repositoryUrl: string | null;
|
|
1324
|
+
programGroupName: string | null;
|
|
1325
|
+
reportId: string;
|
|
1326
|
+
executionId: string | null;
|
|
1327
|
+
status: ReportStatus | null;
|
|
1328
|
+
progress: number | null;
|
|
1329
|
+
executionCreatedAt: string | null;
|
|
1330
|
+
executionCompletedAt: string | null;
|
|
1331
|
+
};
|
|
1332
|
+
export type GetModuleExecutionBatchActivitiesById = {
|
|
1333
|
+
items: ModuleExecution[];
|
|
1334
|
+
};
|
|
1157
1335
|
/**
|
|
1158
1336
|
* Check Role Route
|
|
1159
1337
|
*/
|
|
@@ -1415,9 +1593,10 @@ export function updateModuleServiceV1ModulesModuleIdPut({ moduleId, authorizatio
|
|
|
1415
1593
|
/**
|
|
1416
1594
|
* Get Module
|
|
1417
1595
|
*/
|
|
1418
|
-
export function getModuleV1ModulesModuleIdGet({ moduleId, authorization }: {
|
|
1596
|
+
export function getModuleV1ModulesModuleIdGet({ moduleId, authorization, xAccountSlug }: {
|
|
1419
1597
|
moduleId: string;
|
|
1420
1598
|
authorization: string;
|
|
1599
|
+
xAccountSlug?: string;
|
|
1421
1600
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1422
1601
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1423
1602
|
status: 200;
|
|
@@ -1442,7 +1621,8 @@ export function getModuleV1ModulesModuleIdGet({ moduleId, authorization }: {
|
|
|
1442
1621
|
}>(`/v1/modules/${encodeURIComponent(moduleId)}`, {
|
|
1443
1622
|
...opts,
|
|
1444
1623
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1445
|
-
authorization
|
|
1624
|
+
authorization,
|
|
1625
|
+
"x-account-slug": xAccountSlug
|
|
1446
1626
|
})
|
|
1447
1627
|
}));
|
|
1448
1628
|
}
|
|
@@ -1480,16 +1660,54 @@ export function getModuleInputsV1ModulesModuleIdInputsGet({ moduleId, authorizat
|
|
|
1480
1660
|
})
|
|
1481
1661
|
}));
|
|
1482
1662
|
}
|
|
1663
|
+
/**
|
|
1664
|
+
* Get Module Docs
|
|
1665
|
+
*/
|
|
1666
|
+
export function getModuleDocsV1ModulesModuleIdDocsGet({ moduleId, language, authorization }: {
|
|
1667
|
+
moduleId: string;
|
|
1668
|
+
language?: "pt-br" | "en-us";
|
|
1669
|
+
authorization: string;
|
|
1670
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1671
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1672
|
+
status: 200;
|
|
1673
|
+
data: GetModuleDocsResponse | null;
|
|
1674
|
+
} | {
|
|
1675
|
+
status: 400;
|
|
1676
|
+
data: HttpErrorResponseRead;
|
|
1677
|
+
} | {
|
|
1678
|
+
status: 401;
|
|
1679
|
+
data: HttpErrorResponseRead;
|
|
1680
|
+
} | {
|
|
1681
|
+
status: 404;
|
|
1682
|
+
data: HttpErrorResponseRead;
|
|
1683
|
+
} | {
|
|
1684
|
+
status: 422;
|
|
1685
|
+
} | {
|
|
1686
|
+
status: 500;
|
|
1687
|
+
data: HttpErrorResponseRead;
|
|
1688
|
+
} | {
|
|
1689
|
+
status: 503;
|
|
1690
|
+
data: HttpErrorResponseRead;
|
|
1691
|
+
}>(`/v1/modules/${encodeURIComponent(moduleId)}/docs${QS.query(QS.explode({
|
|
1692
|
+
language
|
|
1693
|
+
}))}`, {
|
|
1694
|
+
...opts,
|
|
1695
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1696
|
+
authorization
|
|
1697
|
+
})
|
|
1698
|
+
}));
|
|
1699
|
+
}
|
|
1483
1700
|
/**
|
|
1484
1701
|
* Dispatch Module Service
|
|
1485
1702
|
*/
|
|
1486
|
-
export function dispatchModuleServiceV1ModulesDispatchesPost({ authorization, body }: {
|
|
1703
|
+
export function dispatchModuleServiceV1ModulesDispatchesPost({ batchName, authorization, body }: {
|
|
1704
|
+
batchName?: string | null;
|
|
1487
1705
|
authorization: string;
|
|
1488
1706
|
body: ModuleDispatchRequest[];
|
|
1489
1707
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1490
1708
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1491
1709
|
status: 200;
|
|
1492
|
-
data:
|
|
1710
|
+
data: DispatchModuleResponse;
|
|
1493
1711
|
} | {
|
|
1494
1712
|
status: 400;
|
|
1495
1713
|
data: HttpErrorResponseRead;
|
|
@@ -1507,7 +1725,9 @@ export function dispatchModuleServiceV1ModulesDispatchesPost({ authorization, bo
|
|
|
1507
1725
|
} | {
|
|
1508
1726
|
status: 503;
|
|
1509
1727
|
data: HttpErrorResponseRead;
|
|
1510
|
-
}>(
|
|
1728
|
+
}>(`/v1/modules/dispatches${QS.query(QS.explode({
|
|
1729
|
+
batchName
|
|
1730
|
+
}))}`, oazapfts.json({
|
|
1511
1731
|
...opts,
|
|
1512
1732
|
method: "POST",
|
|
1513
1733
|
body,
|
|
@@ -1846,9 +2066,9 @@ export function createReposBatchServiceV1ReposBatchPost({ tags, authorization, f
|
|
|
1846
2066
|
/**
|
|
1847
2067
|
* Create Repository Service
|
|
1848
2068
|
*/
|
|
1849
|
-
export function createRepositoryServiceV1ReposPost({ authorization,
|
|
2069
|
+
export function createRepositoryServiceV1ReposPost({ authorization, srcPresentationApiRestServicesV1ReposRequestsCreateRepositoryRequestCreateRepositoryRequest }: {
|
|
1850
2070
|
authorization: string;
|
|
1851
|
-
|
|
2071
|
+
srcPresentationApiRestServicesV1ReposRequestsCreateRepositoryRequestCreateRepositoryRequest: CreateRepositoryRequest;
|
|
1852
2072
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1853
2073
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1854
2074
|
status: 200;
|
|
@@ -1873,7 +2093,7 @@ export function createRepositoryServiceV1ReposPost({ authorization, createReposi
|
|
|
1873
2093
|
}>("/v1/repos", oazapfts.json({
|
|
1874
2094
|
...opts,
|
|
1875
2095
|
method: "POST",
|
|
1876
|
-
body:
|
|
2096
|
+
body: srcPresentationApiRestServicesV1ReposRequestsCreateRepositoryRequestCreateRepositoryRequest,
|
|
1877
2097
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1878
2098
|
authorization
|
|
1879
2099
|
})
|
|
@@ -2128,13 +2348,14 @@ export function updateRepositoryServiceV1ReposRepositoryIdPut({ repositoryId, au
|
|
|
2128
2348
|
/**
|
|
2129
2349
|
* Validate Scm Url Service
|
|
2130
2350
|
*/
|
|
2131
|
-
export function validateScmUrlServiceV1ReposValidateScmUrlPost({ authorization, validateScmUrlRequest }: {
|
|
2351
|
+
export function validateScmUrlServiceV1ReposValidateScmUrlPost({ raiseConflict, authorization, validateScmUrlRequest }: {
|
|
2352
|
+
raiseConflict?: boolean;
|
|
2132
2353
|
authorization: string;
|
|
2133
2354
|
validateScmUrlRequest: ValidateScmUrlRequest;
|
|
2134
2355
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2135
2356
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2136
2357
|
status: 200;
|
|
2137
|
-
data:
|
|
2358
|
+
data: ValidateScmUrlResponse;
|
|
2138
2359
|
} | {
|
|
2139
2360
|
status: 400;
|
|
2140
2361
|
data: HttpErrorResponseRead;
|
|
@@ -2152,7 +2373,9 @@ export function validateScmUrlServiceV1ReposValidateScmUrlPost({ authorization,
|
|
|
2152
2373
|
} | {
|
|
2153
2374
|
status: 503;
|
|
2154
2375
|
data: HttpErrorResponseRead;
|
|
2155
|
-
}>(
|
|
2376
|
+
}>(`/v1/repos/validate-scm-url${QS.query(QS.explode({
|
|
2377
|
+
raiseConflict
|
|
2378
|
+
}))}`, oazapfts.json({
|
|
2156
2379
|
...opts,
|
|
2157
2380
|
method: "POST",
|
|
2158
2381
|
body: validateScmUrlRequest,
|
|
@@ -3592,6 +3815,108 @@ export function analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesT
|
|
|
3592
3815
|
})
|
|
3593
3816
|
}));
|
|
3594
3817
|
}
|
|
3818
|
+
/**
|
|
3819
|
+
* Analytics Module Execution Times Report
|
|
3820
|
+
*/
|
|
3821
|
+
export function analyticsModuleExecutionTimesReportV1AnalyticsModulesExecutionTimesGet({ pageSize, page, moduleId, version, mode, startDate, endDate, orderBy, orderDirection, authorization }: {
|
|
3822
|
+
pageSize?: number;
|
|
3823
|
+
page?: number;
|
|
3824
|
+
moduleId?: string[] | null;
|
|
3825
|
+
version?: string[] | null;
|
|
3826
|
+
mode?: ("scan" | "fix") | null;
|
|
3827
|
+
startDate?: string;
|
|
3828
|
+
endDate?: string;
|
|
3829
|
+
orderBy?: ("moduleName" | "moduleVersion" | "queueTimeAvg" | "queueTimeP95" | "executionTimeAvg" | "executionTimeP95" | "totalTimeAvg" | "totalTimeP95" | "executionCount") | null;
|
|
3830
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
3831
|
+
authorization: string;
|
|
3832
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3833
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3834
|
+
status: 200;
|
|
3835
|
+
data: AnalyticsModuleExecutionTimesResponse;
|
|
3836
|
+
} | {
|
|
3837
|
+
status: 400;
|
|
3838
|
+
data: HttpErrorResponseRead;
|
|
3839
|
+
} | {
|
|
3840
|
+
status: 401;
|
|
3841
|
+
data: HttpErrorResponseRead;
|
|
3842
|
+
} | {
|
|
3843
|
+
status: 404;
|
|
3844
|
+
data: HttpErrorResponseRead;
|
|
3845
|
+
} | {
|
|
3846
|
+
status: 422;
|
|
3847
|
+
} | {
|
|
3848
|
+
status: 500;
|
|
3849
|
+
data: HttpErrorResponseRead;
|
|
3850
|
+
} | {
|
|
3851
|
+
status: 503;
|
|
3852
|
+
data: HttpErrorResponseRead;
|
|
3853
|
+
}>(`/v1/analytics/modules/execution-times${QS.query(QS.explode({
|
|
3854
|
+
pageSize,
|
|
3855
|
+
page,
|
|
3856
|
+
moduleId,
|
|
3857
|
+
version,
|
|
3858
|
+
mode,
|
|
3859
|
+
startDate,
|
|
3860
|
+
endDate,
|
|
3861
|
+
orderBy,
|
|
3862
|
+
orderDirection
|
|
3863
|
+
}))}`, {
|
|
3864
|
+
...opts,
|
|
3865
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3866
|
+
authorization
|
|
3867
|
+
})
|
|
3868
|
+
}));
|
|
3869
|
+
}
|
|
3870
|
+
/**
|
|
3871
|
+
* Analytics Module Execution Times Download
|
|
3872
|
+
*/
|
|
3873
|
+
export function analyticsModuleExecutionTimesDownloadV1AnalyticsModulesExecutionTimesDownloadGet({ moduleId, version, mode, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
|
|
3874
|
+
moduleId?: string[] | null;
|
|
3875
|
+
version?: string[] | null;
|
|
3876
|
+
mode?: ("scan" | "fix") | null;
|
|
3877
|
+
startDate?: string;
|
|
3878
|
+
endDate?: string;
|
|
3879
|
+
orderBy?: ("moduleName" | "moduleVersion" | "queueTimeAvg" | "queueTimeP95" | "executionTimeAvg" | "executionTimeP95" | "totalTimeAvg" | "totalTimeP95" | "executionCount") | null;
|
|
3880
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
3881
|
+
extension?: "csv" | "xlsx";
|
|
3882
|
+
authorization: string;
|
|
3883
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3884
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3885
|
+
status: 200;
|
|
3886
|
+
data: any;
|
|
3887
|
+
} | {
|
|
3888
|
+
status: 400;
|
|
3889
|
+
data: HttpErrorResponseRead;
|
|
3890
|
+
} | {
|
|
3891
|
+
status: 401;
|
|
3892
|
+
data: HttpErrorResponseRead;
|
|
3893
|
+
} | {
|
|
3894
|
+
status: 404;
|
|
3895
|
+
data: HttpErrorResponseRead;
|
|
3896
|
+
} | {
|
|
3897
|
+
status: 422;
|
|
3898
|
+
} | {
|
|
3899
|
+
status: 500;
|
|
3900
|
+
data: HttpErrorResponseRead;
|
|
3901
|
+
} | {
|
|
3902
|
+
status: 503;
|
|
3903
|
+
data: HttpErrorResponseRead;
|
|
3904
|
+
}>(`/v1/analytics/modules/execution-times/download${QS.query(QS.explode({
|
|
3905
|
+
moduleId,
|
|
3906
|
+
version,
|
|
3907
|
+
mode,
|
|
3908
|
+
startDate,
|
|
3909
|
+
endDate,
|
|
3910
|
+
orderBy,
|
|
3911
|
+
orderDirection,
|
|
3912
|
+
extension
|
|
3913
|
+
}))}`, {
|
|
3914
|
+
...opts,
|
|
3915
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3916
|
+
authorization
|
|
3917
|
+
})
|
|
3918
|
+
}));
|
|
3919
|
+
}
|
|
3595
3920
|
/**
|
|
3596
3921
|
* List User Service
|
|
3597
3922
|
*/
|
|
@@ -3731,10 +4056,24 @@ export function downloadSearchReposScmV2V2ReposSearchScmSearchIdDownloadGet({ se
|
|
|
3731
4056
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3732
4057
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3733
4058
|
status: 200;
|
|
3734
|
-
data:
|
|
4059
|
+
data: any;
|
|
4060
|
+
} | {
|
|
4061
|
+
status: 400;
|
|
4062
|
+
data: HttpErrorResponseRead;
|
|
4063
|
+
} | {
|
|
4064
|
+
status: 401;
|
|
4065
|
+
data: HttpErrorResponseRead;
|
|
4066
|
+
} | {
|
|
4067
|
+
status: 404;
|
|
4068
|
+
data: HttpErrorResponseRead;
|
|
3735
4069
|
} | {
|
|
3736
4070
|
status: 422;
|
|
3737
|
-
|
|
4071
|
+
} | {
|
|
4072
|
+
status: 500;
|
|
4073
|
+
data: HttpErrorResponseRead;
|
|
4074
|
+
} | {
|
|
4075
|
+
status: 503;
|
|
4076
|
+
data: HttpErrorResponseRead;
|
|
3738
4077
|
}>(`/v2/repos/search-scm/${encodeURIComponent(searchId)}/download${QS.query(QS.explode({
|
|
3739
4078
|
extension
|
|
3740
4079
|
}))}`, {
|
|
@@ -3744,6 +4083,217 @@ export function downloadSearchReposScmV2V2ReposSearchScmSearchIdDownloadGet({ se
|
|
|
3744
4083
|
})
|
|
3745
4084
|
}));
|
|
3746
4085
|
}
|
|
4086
|
+
/**
|
|
4087
|
+
* Create Repos Batch Service
|
|
4088
|
+
*/
|
|
4089
|
+
export function createReposBatchServiceV2ReposBatchPost({ tags, authorization, fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost }: {
|
|
4090
|
+
tags?: string[] | null;
|
|
4091
|
+
authorization: string;
|
|
4092
|
+
fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost: BodyCreateReposBatchServiceV2ReposBatchPost;
|
|
4093
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4094
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4095
|
+
status: 200;
|
|
4096
|
+
data: CreateRepoBatchResponse;
|
|
4097
|
+
} | {
|
|
4098
|
+
status: 400;
|
|
4099
|
+
data: HttpErrorResponseRead;
|
|
4100
|
+
} | {
|
|
4101
|
+
status: 401;
|
|
4102
|
+
data: HttpErrorResponseRead;
|
|
4103
|
+
} | {
|
|
4104
|
+
status: 404;
|
|
4105
|
+
data: HttpErrorResponseRead;
|
|
4106
|
+
} | {
|
|
4107
|
+
status: 422;
|
|
4108
|
+
} | {
|
|
4109
|
+
status: 500;
|
|
4110
|
+
data: HttpErrorResponseRead;
|
|
4111
|
+
} | {
|
|
4112
|
+
status: 503;
|
|
4113
|
+
data: HttpErrorResponseRead;
|
|
4114
|
+
}>(`/v2/repos/batch${QS.query(QS.explode({
|
|
4115
|
+
tags
|
|
4116
|
+
}))}`, oazapfts.multipart({
|
|
4117
|
+
...opts,
|
|
4118
|
+
method: "POST",
|
|
4119
|
+
body: fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost,
|
|
4120
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4121
|
+
authorization
|
|
4122
|
+
})
|
|
4123
|
+
})));
|
|
4124
|
+
}
|
|
4125
|
+
/**
|
|
4126
|
+
* Get Import Result
|
|
4127
|
+
*/
|
|
4128
|
+
export function getImportResultV2ReposBatchImportIdGet({ importId, pageSize, page, authorization }: {
|
|
4129
|
+
importId: string;
|
|
4130
|
+
pageSize?: number;
|
|
4131
|
+
page?: number;
|
|
4132
|
+
authorization: string;
|
|
4133
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4134
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4135
|
+
status: 200;
|
|
4136
|
+
data: GetImportResultResponseRead;
|
|
4137
|
+
} | {
|
|
4138
|
+
status: 400;
|
|
4139
|
+
data: HttpErrorResponseRead;
|
|
4140
|
+
} | {
|
|
4141
|
+
status: 401;
|
|
4142
|
+
data: HttpErrorResponseRead;
|
|
4143
|
+
} | {
|
|
4144
|
+
status: 404;
|
|
4145
|
+
data: HttpErrorResponseRead;
|
|
4146
|
+
} | {
|
|
4147
|
+
status: 422;
|
|
4148
|
+
} | {
|
|
4149
|
+
status: 500;
|
|
4150
|
+
data: HttpErrorResponseRead;
|
|
4151
|
+
} | {
|
|
4152
|
+
status: 503;
|
|
4153
|
+
data: HttpErrorResponseRead;
|
|
4154
|
+
}>(`/v2/repos/batch/${encodeURIComponent(importId)}${QS.query(QS.explode({
|
|
4155
|
+
pageSize,
|
|
4156
|
+
page
|
|
4157
|
+
}))}`, {
|
|
4158
|
+
...opts,
|
|
4159
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4160
|
+
authorization
|
|
4161
|
+
})
|
|
4162
|
+
}));
|
|
4163
|
+
}
|
|
4164
|
+
/**
|
|
4165
|
+
* Download Import Result
|
|
4166
|
+
*/
|
|
4167
|
+
export function downloadImportResultV2ReposBatchImportIdDownloadGet({ importId, language, status, extension, authorization }: {
|
|
4168
|
+
importId: string;
|
|
4169
|
+
language?: "ptBr" | "enUs";
|
|
4170
|
+
status?: ValidateRepositoryStatus | null;
|
|
4171
|
+
extension?: "csv" | "xlsx";
|
|
4172
|
+
authorization: string;
|
|
4173
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4174
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4175
|
+
status: 200;
|
|
4176
|
+
data: any;
|
|
4177
|
+
} | {
|
|
4178
|
+
status: 400;
|
|
4179
|
+
data: HttpErrorResponseRead;
|
|
4180
|
+
} | {
|
|
4181
|
+
status: 401;
|
|
4182
|
+
data: HttpErrorResponseRead;
|
|
4183
|
+
} | {
|
|
4184
|
+
status: 404;
|
|
4185
|
+
data: HttpErrorResponseRead;
|
|
4186
|
+
} | {
|
|
4187
|
+
status: 422;
|
|
4188
|
+
} | {
|
|
4189
|
+
status: 500;
|
|
4190
|
+
data: HttpErrorResponseRead;
|
|
4191
|
+
} | {
|
|
4192
|
+
status: 503;
|
|
4193
|
+
data: HttpErrorResponseRead;
|
|
4194
|
+
}>(`/v2/repos/batch/${encodeURIComponent(importId)}/download${QS.query(QS.explode({
|
|
4195
|
+
language,
|
|
4196
|
+
status,
|
|
4197
|
+
extension
|
|
4198
|
+
}))}`, {
|
|
4199
|
+
...opts,
|
|
4200
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4201
|
+
authorization
|
|
4202
|
+
})
|
|
4203
|
+
}));
|
|
4204
|
+
}
|
|
4205
|
+
/**
|
|
4206
|
+
* List Repository Service
|
|
4207
|
+
*/
|
|
4208
|
+
export function listRepositoryServiceV2ReposGet({ pageSize, page, lastEvaluatedKey, filter, moduleId, createdByEmail, reportByEmail, orderBy, orderDirection, tags, onlyIds, authorization }: {
|
|
4209
|
+
pageSize?: number;
|
|
4210
|
+
page?: number;
|
|
4211
|
+
lastEvaluatedKey?: string;
|
|
4212
|
+
filter?: string;
|
|
4213
|
+
moduleId?: string;
|
|
4214
|
+
createdByEmail?: string[] | null;
|
|
4215
|
+
reportByEmail?: string[] | null;
|
|
4216
|
+
orderBy?: "repository_url" | "repository_default_branch" | "report_created_at" | "report_issues_count";
|
|
4217
|
+
orderDirection?: "asc" | "desc" | "ASC" | "DESC";
|
|
4218
|
+
tags?: string[] | null;
|
|
4219
|
+
onlyIds?: boolean;
|
|
4220
|
+
authorization: string;
|
|
4221
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4222
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4223
|
+
status: 200;
|
|
4224
|
+
data: ListRepositoryResponse2;
|
|
4225
|
+
} | {
|
|
4226
|
+
status: 400;
|
|
4227
|
+
data: HttpErrorResponseRead;
|
|
4228
|
+
} | {
|
|
4229
|
+
status: 401;
|
|
4230
|
+
data: HttpErrorResponseRead;
|
|
4231
|
+
} | {
|
|
4232
|
+
status: 404;
|
|
4233
|
+
data: HttpErrorResponseRead;
|
|
4234
|
+
} | {
|
|
4235
|
+
status: 422;
|
|
4236
|
+
} | {
|
|
4237
|
+
status: 500;
|
|
4238
|
+
data: HttpErrorResponseRead;
|
|
4239
|
+
} | {
|
|
4240
|
+
status: 503;
|
|
4241
|
+
data: HttpErrorResponseRead;
|
|
4242
|
+
}>(`/v2/repos${QS.query(QS.explode({
|
|
4243
|
+
pageSize,
|
|
4244
|
+
page,
|
|
4245
|
+
lastEvaluatedKey,
|
|
4246
|
+
filter,
|
|
4247
|
+
moduleId,
|
|
4248
|
+
createdByEmail,
|
|
4249
|
+
reportByEmail,
|
|
4250
|
+
orderBy,
|
|
4251
|
+
orderDirection,
|
|
4252
|
+
tags,
|
|
4253
|
+
onlyIds
|
|
4254
|
+
}))}`, {
|
|
4255
|
+
...opts,
|
|
4256
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4257
|
+
authorization
|
|
4258
|
+
})
|
|
4259
|
+
}));
|
|
4260
|
+
}
|
|
4261
|
+
/**
|
|
4262
|
+
* Create Repository Service
|
|
4263
|
+
*/
|
|
4264
|
+
export function createRepositoryServiceV2ReposPost({ authorization, srcPresentationApiRestServicesV2ReposRequestsCreateRepositoryRequestCreateRepositoryRequest }: {
|
|
4265
|
+
authorization: string;
|
|
4266
|
+
srcPresentationApiRestServicesV2ReposRequestsCreateRepositoryRequestCreateRepositoryRequest: CreateRepositoryRequest2;
|
|
4267
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4268
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4269
|
+
status: 200;
|
|
4270
|
+
data: CreateRepositoryResponse;
|
|
4271
|
+
} | {
|
|
4272
|
+
status: 400;
|
|
4273
|
+
data: HttpErrorResponseRead;
|
|
4274
|
+
} | {
|
|
4275
|
+
status: 401;
|
|
4276
|
+
data: HttpErrorResponseRead;
|
|
4277
|
+
} | {
|
|
4278
|
+
status: 404;
|
|
4279
|
+
data: HttpErrorResponseRead;
|
|
4280
|
+
} | {
|
|
4281
|
+
status: 422;
|
|
4282
|
+
} | {
|
|
4283
|
+
status: 500;
|
|
4284
|
+
data: HttpErrorResponseRead;
|
|
4285
|
+
} | {
|
|
4286
|
+
status: 503;
|
|
4287
|
+
data: HttpErrorResponseRead;
|
|
4288
|
+
}>("/v2/repos", oazapfts.json({
|
|
4289
|
+
...opts,
|
|
4290
|
+
method: "POST",
|
|
4291
|
+
body: srcPresentationApiRestServicesV2ReposRequestsCreateRepositoryRequestCreateRepositoryRequest,
|
|
4292
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4293
|
+
authorization
|
|
4294
|
+
})
|
|
4295
|
+
})));
|
|
4296
|
+
}
|
|
3747
4297
|
/**
|
|
3748
4298
|
* Pat Health Check
|
|
3749
4299
|
*/
|
|
@@ -3763,3 +4313,47 @@ export function patHealthCheckV1ScmPatHealthCheckGet({ authorization }: {
|
|
|
3763
4313
|
})
|
|
3764
4314
|
}));
|
|
3765
4315
|
}
|
|
4316
|
+
/**
|
|
4317
|
+
* List Module Execution Batch Activities
|
|
4318
|
+
*/
|
|
4319
|
+
export function listModuleExecutionBatchActivitiesV1ActivitiesModuleExecutionBatchGet({ pageSize, page, authorization }: {
|
|
4320
|
+
pageSize?: number;
|
|
4321
|
+
page?: number;
|
|
4322
|
+
authorization: string;
|
|
4323
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4324
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4325
|
+
status: 200;
|
|
4326
|
+
data: ListModuleExecutionBatchActivitiesResponse;
|
|
4327
|
+
} | {
|
|
4328
|
+
status: 422;
|
|
4329
|
+
data: HttpValidationError;
|
|
4330
|
+
}>(`/v1/activities/module-execution-batch${QS.query(QS.explode({
|
|
4331
|
+
pageSize,
|
|
4332
|
+
page
|
|
4333
|
+
}))}`, {
|
|
4334
|
+
...opts,
|
|
4335
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4336
|
+
authorization
|
|
4337
|
+
})
|
|
4338
|
+
}));
|
|
4339
|
+
}
|
|
4340
|
+
/**
|
|
4341
|
+
* Get Module Execution Batch Activities By Id
|
|
4342
|
+
*/
|
|
4343
|
+
export function getModuleExecutionBatchActivitiesByIdV1ActivitiesModuleExecutionBatchModuleExecutionBatchIdGet({ moduleExecutionBatchId, authorization }: {
|
|
4344
|
+
moduleExecutionBatchId: string;
|
|
4345
|
+
authorization: string;
|
|
4346
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4347
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4348
|
+
status: 200;
|
|
4349
|
+
data: GetModuleExecutionBatchActivitiesById;
|
|
4350
|
+
} | {
|
|
4351
|
+
status: 422;
|
|
4352
|
+
data: HttpValidationError;
|
|
4353
|
+
}>(`/v1/activities/module-execution-batch/${encodeURIComponent(moduleExecutionBatchId)}`, {
|
|
4354
|
+
...opts,
|
|
4355
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4356
|
+
authorization
|
|
4357
|
+
})
|
|
4358
|
+
}));
|
|
4359
|
+
}
|