@stack-spot/portal-network 0.194.2 → 0.195.0-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 +174 -0
- package/dist/api/agent-tools.d.ts +6 -0
- package/dist/api/agent-tools.d.ts.map +1 -1
- 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 +189 -86
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +238 -142
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatform.d.ts +70 -129
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +79 -72
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/codeShift.d.ts +315 -62
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +153 -12
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/discover.d.ts +23 -12
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +10 -0
- 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 +124 -124
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +10 -1
- 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 +123 -77
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +44 -1
- 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 +19 -19
- package/dist/client/cloud-platform.d.ts +114 -89
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +73 -46
- package/dist/client/cloud-platform.js.map +1 -1
- 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 +356 -258
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +91 -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 +55 -55
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/discover.d.ts +15 -9
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +208 -0
- 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/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 +48 -48
- 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/readme.md +2 -1
- package/src/api/account.ts +1 -0
- package/src/api/agent-tools.ts +9 -0
- package/src/api/agent.ts +2 -0
- package/src/api/ai.ts +364 -157
- package/src/api/cloudPlatform.ts +142 -216
- package/src/api/codeShift.ts +607 -69
- package/src/api/discover.ts +35 -12
- package/src/api/notification.ts +2 -0
- package/src/client/agent-tools.ts +10 -1
- package/src/client/ai.ts +37 -0
- package/src/client/cloud-platform.ts +40 -25
- package/src/client/code-shift.ts +54 -1
- package/src/client/discover.ts +220 -3
- 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,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_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";
|
|
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;
|
|
@@ -51,7 +95,7 @@ export type CreateModuleRequest = {
|
|
|
51
95
|
/** Module tags */
|
|
52
96
|
tags: string[];
|
|
53
97
|
/** Inputs of module */
|
|
54
|
-
inputs
|
|
98
|
+
inputs?: InputRequest[] | null;
|
|
55
99
|
/** Module studio */
|
|
56
100
|
studio?: string | null;
|
|
57
101
|
/** Module studio */
|
|
@@ -59,36 +103,10 @@ export type CreateModuleRequest = {
|
|
|
59
103
|
[key: string]: any;
|
|
60
104
|
} | null;
|
|
61
105
|
gitAction?: GitAction | null;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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;
|
|
@@ -121,11 +139,17 @@ export type ModuleResponse = {
|
|
|
121
139
|
tags: string[];
|
|
122
140
|
/** Module inputs */
|
|
123
141
|
inputs: InputResponse[];
|
|
142
|
+
/** Flag to internal developed modules */
|
|
143
|
+
stackspotInternal: boolean;
|
|
124
144
|
/** Module studio */
|
|
125
145
|
constants?: {
|
|
126
146
|
[key: string]: any;
|
|
127
147
|
} | null;
|
|
148
|
+
/** Module visibility */
|
|
149
|
+
visibility: ModuleVisibility;
|
|
128
150
|
gitAction?: GitAction2 | null;
|
|
151
|
+
/** Flag to favor modules */
|
|
152
|
+
isFavorite: boolean;
|
|
129
153
|
};
|
|
130
154
|
export type ListModuleResponse = {
|
|
131
155
|
/** List of modules */
|
|
@@ -159,6 +183,21 @@ export type PutModuleRequest = {
|
|
|
159
183
|
[key: string]: any;
|
|
160
184
|
} | null;
|
|
161
185
|
gitAction?: GitAction | null;
|
|
186
|
+
/** Module visibility */
|
|
187
|
+
visibility?: ModuleVisibility | null;
|
|
188
|
+
/** List of users to share the module with */
|
|
189
|
+
sharedWith?: SharedUserRequest[] | null;
|
|
190
|
+
};
|
|
191
|
+
export type SharedPermissionResponse = {
|
|
192
|
+
/** User ID */
|
|
193
|
+
userId: string;
|
|
194
|
+
/** User email */
|
|
195
|
+
email: string;
|
|
196
|
+
/** Permission type: 'read' (view/execute) or 'write' (edit/manage) */
|
|
197
|
+
permission: ModulePermission;
|
|
198
|
+
};
|
|
199
|
+
export type UserResponse = {
|
|
200
|
+
name: string;
|
|
162
201
|
};
|
|
163
202
|
export type GetModuleResponse = {
|
|
164
203
|
/** Module ID */
|
|
@@ -182,6 +221,21 @@ export type GetModuleResponse = {
|
|
|
182
221
|
[key: string]: any;
|
|
183
222
|
} | null;
|
|
184
223
|
gitAction?: GitAction2 | null;
|
|
224
|
+
/** Module tags */
|
|
225
|
+
tags?: string[] | null;
|
|
226
|
+
/** Flag to internal developed modules */
|
|
227
|
+
stackspotInternal: boolean;
|
|
228
|
+
/** Module visibility */
|
|
229
|
+
visibility: ModuleVisibility;
|
|
230
|
+
/** List of users to share the module with */
|
|
231
|
+
sharedWith?: SharedPermissionResponse[] | null;
|
|
232
|
+
/** Flag to favor modules */
|
|
233
|
+
isFavorite: boolean;
|
|
234
|
+
/** Module usage */
|
|
235
|
+
totalUsage: number;
|
|
236
|
+
/** Module users */
|
|
237
|
+
totalUsers: number;
|
|
238
|
+
createdBy: UserResponse | null;
|
|
185
239
|
};
|
|
186
240
|
export type ExternalItemsModel = {
|
|
187
241
|
source: string;
|
|
@@ -199,7 +253,7 @@ export type OutputModel = {
|
|
|
199
253
|
};
|
|
200
254
|
export type InputModel = {
|
|
201
255
|
label: string;
|
|
202
|
-
name: string;
|
|
256
|
+
name: string | null;
|
|
203
257
|
"type": string;
|
|
204
258
|
required: boolean;
|
|
205
259
|
pattern: string | null;
|
|
@@ -223,6 +277,9 @@ export type GetModuleInputsResponse = {
|
|
|
223
277
|
inputs: InputModel[];
|
|
224
278
|
computedInputs: ComputedInputModel[] | null;
|
|
225
279
|
};
|
|
280
|
+
export type GetModuleDocsResponse = {
|
|
281
|
+
content: string;
|
|
282
|
+
};
|
|
226
283
|
export type Mode = "scan" | "fix";
|
|
227
284
|
export type ModuleDispatchRequest = {
|
|
228
285
|
/** Module mode */
|
|
@@ -257,6 +314,9 @@ export type TargetFilesRequest = {
|
|
|
257
314
|
details?: string | null;
|
|
258
315
|
dependsOn?: DependsOnRequest[] | null;
|
|
259
316
|
issues?: IssuesRequest[] | null;
|
|
317
|
+
totalTokenSent?: number | null;
|
|
318
|
+
totalTokenReceived?: number | null;
|
|
319
|
+
modified?: boolean | null;
|
|
260
320
|
};
|
|
261
321
|
export type LanguageInfoRequest = {
|
|
262
322
|
bytes: number;
|
|
@@ -298,7 +358,7 @@ export type ExecutionResponse = {
|
|
|
298
358
|
status: string | null;
|
|
299
359
|
conclusion: string | null;
|
|
300
360
|
};
|
|
301
|
-
export type
|
|
361
|
+
export type UserResponse2 = {
|
|
302
362
|
id: string;
|
|
303
363
|
name: string;
|
|
304
364
|
email: string;
|
|
@@ -327,6 +387,9 @@ export type TargetFilesResponse = {
|
|
|
327
387
|
details?: string | null;
|
|
328
388
|
dependsOn?: DependsOnResponse[] | null;
|
|
329
389
|
issues?: IssuesResponse[] | null;
|
|
390
|
+
totalTokenSent?: number | null;
|
|
391
|
+
totalTokenReceived?: number | null;
|
|
392
|
+
modified?: boolean | null;
|
|
330
393
|
};
|
|
331
394
|
export type ReportStatus = "waiting_dispatch" | "waiting_runner" | "dispatch_failure" | "in_progress" | "suspended" | "error" | "success" | "cancelled";
|
|
332
395
|
export type PullRequestResponse = {
|
|
@@ -343,7 +406,7 @@ export type CustomerRatingResponse = {
|
|
|
343
406
|
report_id: string;
|
|
344
407
|
score: number;
|
|
345
408
|
commentary: string | null;
|
|
346
|
-
created_by:
|
|
409
|
+
created_by: UserResponse2;
|
|
347
410
|
created_at: string;
|
|
348
411
|
};
|
|
349
412
|
export type LanguageResponse = {
|
|
@@ -361,7 +424,7 @@ export type GetReportResponse = {
|
|
|
361
424
|
mode: string;
|
|
362
425
|
sourceBranch: string | null;
|
|
363
426
|
targetBranch?: string | null;
|
|
364
|
-
createdBy:
|
|
427
|
+
createdBy: UserResponse2;
|
|
365
428
|
createdAt: string;
|
|
366
429
|
updatedAt: string;
|
|
367
430
|
filesCount: number | null;
|
|
@@ -398,7 +461,7 @@ export type GetReportResponseRead = {
|
|
|
398
461
|
mode: string;
|
|
399
462
|
sourceBranch: string | null;
|
|
400
463
|
targetBranch?: string | null;
|
|
401
|
-
createdBy:
|
|
464
|
+
createdBy: UserResponse2;
|
|
402
465
|
createdAt: string;
|
|
403
466
|
updatedAt: string;
|
|
404
467
|
filesCount: number | null;
|
|
@@ -446,7 +509,7 @@ export type ModuleResponse3 = {
|
|
|
446
509
|
id: string;
|
|
447
510
|
name: string;
|
|
448
511
|
};
|
|
449
|
-
export type
|
|
512
|
+
export type UserResponse3 = {
|
|
450
513
|
id: string;
|
|
451
514
|
name: string;
|
|
452
515
|
email: string;
|
|
@@ -459,7 +522,7 @@ export type ReportResponse = {
|
|
|
459
522
|
mode: string;
|
|
460
523
|
sourceBranch: string;
|
|
461
524
|
targetBranch?: string | null;
|
|
462
|
-
createdBy:
|
|
525
|
+
createdBy: UserResponse3;
|
|
463
526
|
createdAt: string;
|
|
464
527
|
updatedAt: string;
|
|
465
528
|
filesCount: number | null;
|
|
@@ -476,7 +539,7 @@ export type ReportResponseRead = {
|
|
|
476
539
|
mode: string;
|
|
477
540
|
sourceBranch: string;
|
|
478
541
|
targetBranch?: string | null;
|
|
479
|
-
createdBy:
|
|
542
|
+
createdBy: UserResponse3;
|
|
480
543
|
createdAt: string;
|
|
481
544
|
updatedAt: string;
|
|
482
545
|
filesCount: number | null;
|
|
@@ -510,7 +573,7 @@ export type CreateRepositoryRequest = {
|
|
|
510
573
|
defaultBranch: string;
|
|
511
574
|
tags?: string[] | null;
|
|
512
575
|
};
|
|
513
|
-
export type
|
|
576
|
+
export type UserResponse4 = {
|
|
514
577
|
id: string;
|
|
515
578
|
name: string;
|
|
516
579
|
email: string;
|
|
@@ -523,7 +586,7 @@ export type ReportResponse2 = {
|
|
|
523
586
|
moduleId: string;
|
|
524
587
|
sourceBranch: string;
|
|
525
588
|
targetBranch?: string | null;
|
|
526
|
-
createdBy:
|
|
589
|
+
createdBy: UserResponse4 | null;
|
|
527
590
|
createdAt: string;
|
|
528
591
|
updatedAt: string;
|
|
529
592
|
filesCount: number | null;
|
|
@@ -540,7 +603,7 @@ export type ReportResponseRead2 = {
|
|
|
540
603
|
moduleId: string;
|
|
541
604
|
sourceBranch: string;
|
|
542
605
|
targetBranch?: string | null;
|
|
543
|
-
createdBy:
|
|
606
|
+
createdBy: UserResponse4 | null;
|
|
544
607
|
createdAt: string;
|
|
545
608
|
updatedAt: string;
|
|
546
609
|
filesCount: number | null;
|
|
@@ -604,6 +667,15 @@ export type PutRepositoryRequest = {
|
|
|
604
667
|
export type ValidateScmUrlRequest = {
|
|
605
668
|
url?: string | null;
|
|
606
669
|
};
|
|
670
|
+
export type ValidateScmUrlResponse = {
|
|
671
|
+
url: string;
|
|
672
|
+
name: string | null;
|
|
673
|
+
id: string | null;
|
|
674
|
+
defaultBranch: string | null;
|
|
675
|
+
lastCommitDate: string | null;
|
|
676
|
+
archived: boolean | null;
|
|
677
|
+
visibility: string | null;
|
|
678
|
+
};
|
|
607
679
|
export type GetAccountSettingsRequest = {
|
|
608
680
|
maxSimultaneousExecution: number | null;
|
|
609
681
|
createRepositoryValidateBranch: boolean | null;
|
|
@@ -664,7 +736,7 @@ export type BodyCreateProgramGroupServiceV1ProgramGroupsPost = {
|
|
|
664
736
|
export type CreateProgramGroupResponse = {
|
|
665
737
|
id: string;
|
|
666
738
|
};
|
|
667
|
-
export type
|
|
739
|
+
export type UserResponse5 = {
|
|
668
740
|
id: string;
|
|
669
741
|
name: string;
|
|
670
742
|
email: string;
|
|
@@ -675,7 +747,7 @@ export type ReportResponse3 = {
|
|
|
675
747
|
execution: ExecutionResponse | null;
|
|
676
748
|
mode: string;
|
|
677
749
|
moduleId: string;
|
|
678
|
-
createdBy:
|
|
750
|
+
createdBy: UserResponse5 | null;
|
|
679
751
|
createdAt: string;
|
|
680
752
|
updatedAt: string;
|
|
681
753
|
filesCount: number | null;
|
|
@@ -690,7 +762,7 @@ export type ReportResponseRead3 = {
|
|
|
690
762
|
execution: ExecutionResponse | null;
|
|
691
763
|
mode: string;
|
|
692
764
|
moduleId: string;
|
|
693
|
-
createdBy:
|
|
765
|
+
createdBy: UserResponse5 | null;
|
|
694
766
|
createdAt: string;
|
|
695
767
|
updatedAt: string;
|
|
696
768
|
filesCount: number | null;
|
|
@@ -755,7 +827,7 @@ export type ModuleResponse4 = {
|
|
|
755
827
|
id: string;
|
|
756
828
|
name: string;
|
|
757
829
|
};
|
|
758
|
-
export type
|
|
830
|
+
export type UserResponse6 = {
|
|
759
831
|
id: string;
|
|
760
832
|
name: string;
|
|
761
833
|
email: string;
|
|
@@ -766,7 +838,7 @@ export type ReportResponse4 = {
|
|
|
766
838
|
"module": ModuleResponse4;
|
|
767
839
|
execution: ExecutionResponse | null;
|
|
768
840
|
mode: string;
|
|
769
|
-
createdBy:
|
|
841
|
+
createdBy: UserResponse6;
|
|
770
842
|
createdAt: string;
|
|
771
843
|
updatedAt: string;
|
|
772
844
|
filesCount: number | null;
|
|
@@ -781,7 +853,7 @@ export type ReportResponseRead4 = {
|
|
|
781
853
|
"module": ModuleResponse4;
|
|
782
854
|
execution: ExecutionResponse | null;
|
|
783
855
|
mode: string;
|
|
784
|
-
createdBy:
|
|
856
|
+
createdBy: UserResponse6;
|
|
785
857
|
createdAt: string;
|
|
786
858
|
updatedAt: string;
|
|
787
859
|
filesCount: number | null;
|
|
@@ -1032,6 +1104,9 @@ export type ProgramGroupsTargetDetailsResponse = {
|
|
|
1032
1104
|
[key: string]: any;
|
|
1033
1105
|
} | null;
|
|
1034
1106
|
customerScore?: number | null;
|
|
1107
|
+
totalTokenSent: number | null;
|
|
1108
|
+
totalTokenReceived: number | null;
|
|
1109
|
+
modified: boolean | null;
|
|
1035
1110
|
};
|
|
1036
1111
|
export type AnalyticsProgramGroupsTargetDetailsResponse = {
|
|
1037
1112
|
totalComponents?: number;
|
|
@@ -1052,6 +1127,9 @@ export type RepositoryTargetDetailsItemResponse = {
|
|
|
1052
1127
|
reportCreatedAt: string | null;
|
|
1053
1128
|
reportId: string | null;
|
|
1054
1129
|
customerScore?: number | null;
|
|
1130
|
+
totalTokenSent: number | null;
|
|
1131
|
+
totalTokenReceived: number | null;
|
|
1132
|
+
modified: boolean | null;
|
|
1055
1133
|
};
|
|
1056
1134
|
export type AnalyticsRepositoryTargetDetailsResponse = {
|
|
1057
1135
|
totalFiles?: number;
|
|
@@ -1059,13 +1137,51 @@ export type AnalyticsRepositoryTargetDetailsResponse = {
|
|
|
1059
1137
|
totalItems?: number;
|
|
1060
1138
|
items?: RepositoryTargetDetailsItemResponse[];
|
|
1061
1139
|
};
|
|
1062
|
-
export type
|
|
1140
|
+
export type ModuleExecutionTimesDetailsResponse = {
|
|
1141
|
+
/** Name of the module */
|
|
1142
|
+
moduleName: string;
|
|
1143
|
+
/** Version of the module */
|
|
1144
|
+
moduleVersion: string;
|
|
1145
|
+
/** Average queue time in seconds */
|
|
1146
|
+
queueTimeAvg: number;
|
|
1147
|
+
/** 95th percentile queue time in seconds */
|
|
1148
|
+
queueTimeP95: number;
|
|
1149
|
+
/** Average execution time in seconds */
|
|
1150
|
+
executionTimeAvg: number;
|
|
1151
|
+
/** 95th percentile execution time in seconds */
|
|
1152
|
+
executionTimeP95: number;
|
|
1153
|
+
/** Average total time in seconds */
|
|
1154
|
+
totalTimeAvg: number;
|
|
1155
|
+
/** 95th percentile total time in seconds */
|
|
1156
|
+
totalTimeP95: number;
|
|
1157
|
+
/** Number of executions */
|
|
1158
|
+
executionCount: number | null;
|
|
1159
|
+
};
|
|
1160
|
+
export type AnalyticsModuleExecutionTimesResponse = {
|
|
1161
|
+
/** Total number of modules analyzed */
|
|
1162
|
+
modulesCount?: number;
|
|
1163
|
+
/** Overall average queue time */
|
|
1164
|
+
queueTimeAvg: number | null;
|
|
1165
|
+
/** Overall 95th percentile queue time */
|
|
1166
|
+
queueTimeP95: number | null;
|
|
1167
|
+
/** Overall average execution time */
|
|
1168
|
+
executionTimeAvg: number | null;
|
|
1169
|
+
/** Overall 95th percentile execution time */
|
|
1170
|
+
executionTimeP95: number | null;
|
|
1171
|
+
/** Overall average total time */
|
|
1172
|
+
totalTimeAvg: number | null;
|
|
1173
|
+
/** Overall 95th percentile total time */
|
|
1174
|
+
totalTimeP95: number | null;
|
|
1175
|
+
/** Detailed metrics per module */
|
|
1176
|
+
items?: ModuleExecutionTimesDetailsResponse[];
|
|
1177
|
+
};
|
|
1178
|
+
export type UserResponse7 = {
|
|
1063
1179
|
id: string;
|
|
1064
1180
|
name: string;
|
|
1065
1181
|
email: string;
|
|
1066
1182
|
};
|
|
1067
1183
|
export type ListUserResponse = {
|
|
1068
|
-
items:
|
|
1184
|
+
items: UserResponse7[];
|
|
1069
1185
|
itemsCount: number;
|
|
1070
1186
|
};
|
|
1071
1187
|
export type SearchReposInScmRequest = {
|
|
@@ -1110,6 +1226,52 @@ export type ResponseSearchRepoByIdResponseRead = {
|
|
|
1110
1226
|
exceptions: HttpErrorResponseRead[];
|
|
1111
1227
|
items?: SearchRepoByIdResponse[];
|
|
1112
1228
|
};
|
|
1229
|
+
export type BodyCreateReposBatchServiceV2ReposBatchPost = {
|
|
1230
|
+
file: Blob;
|
|
1231
|
+
};
|
|
1232
|
+
export type CreateRepoBatchResponse = {
|
|
1233
|
+
id: string;
|
|
1234
|
+
};
|
|
1235
|
+
export type ImportStatus = "COMPLETED" | "PENDING";
|
|
1236
|
+
export type ValidateRepositoryStatus = "PENDING" | "SUCCESS" | "FAILURE" | "CONFLICT";
|
|
1237
|
+
export type BatchRepositoryResponse = {
|
|
1238
|
+
repositoryId: string | null;
|
|
1239
|
+
repositoryUrl: string;
|
|
1240
|
+
repositoryBranch: string;
|
|
1241
|
+
repositoryTags: string[];
|
|
1242
|
+
status: ValidateRepositoryStatus;
|
|
1243
|
+
line: number;
|
|
1244
|
+
repositoryName: string | null;
|
|
1245
|
+
repositoryArchived: boolean | null;
|
|
1246
|
+
repositoryPushedAt: string | null;
|
|
1247
|
+
repositoryVisibility: string | null;
|
|
1248
|
+
exceptions: HttpErrorResponse[];
|
|
1249
|
+
};
|
|
1250
|
+
export type BatchRepositoryResponseRead = {
|
|
1251
|
+
repositoryId: string | null;
|
|
1252
|
+
repositoryUrl: string;
|
|
1253
|
+
repositoryBranch: string;
|
|
1254
|
+
repositoryTags: string[];
|
|
1255
|
+
status: ValidateRepositoryStatus;
|
|
1256
|
+
line: number;
|
|
1257
|
+
repositoryName: string | null;
|
|
1258
|
+
repositoryArchived: boolean | null;
|
|
1259
|
+
repositoryPushedAt: string | null;
|
|
1260
|
+
repositoryVisibility: string | null;
|
|
1261
|
+
exceptions: HttpErrorResponseRead[];
|
|
1262
|
+
};
|
|
1263
|
+
export type GetImportResultResponse = {
|
|
1264
|
+
status: ImportStatus;
|
|
1265
|
+
totalItems: number;
|
|
1266
|
+
items: BatchRepositoryResponse[];
|
|
1267
|
+
repositoriesIds: string[];
|
|
1268
|
+
};
|
|
1269
|
+
export type GetImportResultResponseRead = {
|
|
1270
|
+
status: ImportStatus;
|
|
1271
|
+
totalItems: number;
|
|
1272
|
+
items: BatchRepositoryResponseRead[];
|
|
1273
|
+
repositoriesIds: string[];
|
|
1274
|
+
};
|
|
1113
1275
|
/**
|
|
1114
1276
|
* Check Role Route
|
|
1115
1277
|
*/
|
|
@@ -1130,6 +1292,76 @@ export function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
|
|
|
1130
1292
|
})
|
|
1131
1293
|
}));
|
|
1132
1294
|
}
|
|
1295
|
+
/**
|
|
1296
|
+
* Module Favorite Service Add
|
|
1297
|
+
*/
|
|
1298
|
+
export function moduleFavoriteServiceAddV1ModulesModuleIdFavoritesPost({ moduleId, authorization }: {
|
|
1299
|
+
moduleId: string;
|
|
1300
|
+
authorization: string;
|
|
1301
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1302
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1303
|
+
status: 200;
|
|
1304
|
+
data: any;
|
|
1305
|
+
} | {
|
|
1306
|
+
status: 400;
|
|
1307
|
+
data: HttpErrorResponseRead;
|
|
1308
|
+
} | {
|
|
1309
|
+
status: 401;
|
|
1310
|
+
data: HttpErrorResponseRead;
|
|
1311
|
+
} | {
|
|
1312
|
+
status: 404;
|
|
1313
|
+
data: HttpErrorResponseRead;
|
|
1314
|
+
} | {
|
|
1315
|
+
status: 422;
|
|
1316
|
+
} | {
|
|
1317
|
+
status: 500;
|
|
1318
|
+
data: HttpErrorResponseRead;
|
|
1319
|
+
} | {
|
|
1320
|
+
status: 503;
|
|
1321
|
+
data: HttpErrorResponseRead;
|
|
1322
|
+
}>(`/v1/modules/${encodeURIComponent(moduleId)}/favorites`, {
|
|
1323
|
+
...opts,
|
|
1324
|
+
method: "POST",
|
|
1325
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1326
|
+
authorization
|
|
1327
|
+
})
|
|
1328
|
+
}));
|
|
1329
|
+
}
|
|
1330
|
+
/**
|
|
1331
|
+
* Module Favorite Service Delete
|
|
1332
|
+
*/
|
|
1333
|
+
export function moduleFavoriteServiceDeleteV1ModulesModuleIdFavoritesDelete({ moduleId, authorization }: {
|
|
1334
|
+
moduleId: string;
|
|
1335
|
+
authorization: string;
|
|
1336
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1337
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1338
|
+
status: 200;
|
|
1339
|
+
data: any;
|
|
1340
|
+
} | {
|
|
1341
|
+
status: 400;
|
|
1342
|
+
data: HttpErrorResponseRead;
|
|
1343
|
+
} | {
|
|
1344
|
+
status: 401;
|
|
1345
|
+
data: HttpErrorResponseRead;
|
|
1346
|
+
} | {
|
|
1347
|
+
status: 404;
|
|
1348
|
+
data: HttpErrorResponseRead;
|
|
1349
|
+
} | {
|
|
1350
|
+
status: 422;
|
|
1351
|
+
} | {
|
|
1352
|
+
status: 500;
|
|
1353
|
+
data: HttpErrorResponseRead;
|
|
1354
|
+
} | {
|
|
1355
|
+
status: 503;
|
|
1356
|
+
data: HttpErrorResponseRead;
|
|
1357
|
+
}>(`/v1/modules/${encodeURIComponent(moduleId)}/favorites`, {
|
|
1358
|
+
...opts,
|
|
1359
|
+
method: "DELETE",
|
|
1360
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1361
|
+
authorization
|
|
1362
|
+
})
|
|
1363
|
+
}));
|
|
1364
|
+
}
|
|
1133
1365
|
/**
|
|
1134
1366
|
* Create Module Service
|
|
1135
1367
|
*/
|
|
@@ -1171,11 +1403,16 @@ export function createModuleServiceV1ModulesPost({ authorization, xAccountSlug,
|
|
|
1171
1403
|
/**
|
|
1172
1404
|
* List Modules Service
|
|
1173
1405
|
*/
|
|
1174
|
-
export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, lastEvaluatedKey, xAccountSlug, authorization }: {
|
|
1406
|
+
export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, lastEvaluatedKey, sharedWith, createdBy, visibility, name, tags, xAccountSlug, authorization }: {
|
|
1175
1407
|
pageSize?: number;
|
|
1176
1408
|
moduleType?: ModuleType | null;
|
|
1177
1409
|
page?: number;
|
|
1178
1410
|
lastEvaluatedKey?: string;
|
|
1411
|
+
sharedWith?: string | null;
|
|
1412
|
+
createdBy?: string | null;
|
|
1413
|
+
visibility?: ModuleVisibility | null;
|
|
1414
|
+
name?: string | null;
|
|
1415
|
+
tags?: string[] | null;
|
|
1179
1416
|
xAccountSlug?: string;
|
|
1180
1417
|
authorization: string;
|
|
1181
1418
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1203,7 +1440,12 @@ export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, las
|
|
|
1203
1440
|
pageSize,
|
|
1204
1441
|
moduleType,
|
|
1205
1442
|
page,
|
|
1206
|
-
lastEvaluatedKey
|
|
1443
|
+
lastEvaluatedKey,
|
|
1444
|
+
sharedWith,
|
|
1445
|
+
createdBy,
|
|
1446
|
+
visibility,
|
|
1447
|
+
name,
|
|
1448
|
+
tags
|
|
1207
1449
|
}))}`, {
|
|
1208
1450
|
...opts,
|
|
1209
1451
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1356,6 +1598,43 @@ export function getModuleInputsV1ModulesModuleIdInputsGet({ moduleId, authorizat
|
|
|
1356
1598
|
})
|
|
1357
1599
|
}));
|
|
1358
1600
|
}
|
|
1601
|
+
/**
|
|
1602
|
+
* Get Module Docs
|
|
1603
|
+
*/
|
|
1604
|
+
export function getModuleDocsV1ModulesModuleIdDocsGet({ moduleId, language, authorization }: {
|
|
1605
|
+
moduleId: string;
|
|
1606
|
+
language?: "pt-br" | "en-us";
|
|
1607
|
+
authorization: string;
|
|
1608
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1609
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1610
|
+
status: 200;
|
|
1611
|
+
data: GetModuleDocsResponse | null;
|
|
1612
|
+
} | {
|
|
1613
|
+
status: 400;
|
|
1614
|
+
data: HttpErrorResponseRead;
|
|
1615
|
+
} | {
|
|
1616
|
+
status: 401;
|
|
1617
|
+
data: HttpErrorResponseRead;
|
|
1618
|
+
} | {
|
|
1619
|
+
status: 404;
|
|
1620
|
+
data: HttpErrorResponseRead;
|
|
1621
|
+
} | {
|
|
1622
|
+
status: 422;
|
|
1623
|
+
} | {
|
|
1624
|
+
status: 500;
|
|
1625
|
+
data: HttpErrorResponseRead;
|
|
1626
|
+
} | {
|
|
1627
|
+
status: 503;
|
|
1628
|
+
data: HttpErrorResponseRead;
|
|
1629
|
+
}>(`/v1/modules/${encodeURIComponent(moduleId)}/docs${QS.query(QS.explode({
|
|
1630
|
+
language
|
|
1631
|
+
}))}`, {
|
|
1632
|
+
...opts,
|
|
1633
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1634
|
+
authorization
|
|
1635
|
+
})
|
|
1636
|
+
}));
|
|
1637
|
+
}
|
|
1359
1638
|
/**
|
|
1360
1639
|
* Dispatch Module Service
|
|
1361
1640
|
*/
|
|
@@ -1680,10 +1959,10 @@ export function listRepositoryReportV1ReposRepositoryIdReportsGet({ repositoryId
|
|
|
1680
1959
|
/**
|
|
1681
1960
|
* Create Repos Batch Service
|
|
1682
1961
|
*/
|
|
1683
|
-
export function createReposBatchServiceV1ReposBatchPost({ tags, authorization,
|
|
1962
|
+
export function createReposBatchServiceV1ReposBatchPost({ tags, authorization, fastapiCompatV2BodyCreateReposBatchServiceV1ReposBatchPost }: {
|
|
1684
1963
|
tags?: string[] | null;
|
|
1685
1964
|
authorization: string;
|
|
1686
|
-
|
|
1965
|
+
fastapiCompatV2BodyCreateReposBatchServiceV1ReposBatchPost: BodyCreateReposBatchServiceV1ReposBatchPost;
|
|
1687
1966
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1688
1967
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1689
1968
|
status: 200;
|
|
@@ -1713,7 +1992,7 @@ export function createReposBatchServiceV1ReposBatchPost({ tags, authorization, b
|
|
|
1713
1992
|
}))}`, oazapfts.multipart({
|
|
1714
1993
|
...opts,
|
|
1715
1994
|
method: "POST",
|
|
1716
|
-
body:
|
|
1995
|
+
body: fastapiCompatV2BodyCreateReposBatchServiceV1ReposBatchPost,
|
|
1717
1996
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1718
1997
|
authorization
|
|
1719
1998
|
})
|
|
@@ -2004,13 +2283,14 @@ export function updateRepositoryServiceV1ReposRepositoryIdPut({ repositoryId, au
|
|
|
2004
2283
|
/**
|
|
2005
2284
|
* Validate Scm Url Service
|
|
2006
2285
|
*/
|
|
2007
|
-
export function validateScmUrlServiceV1ReposValidateScmUrlPost({ authorization, validateScmUrlRequest }: {
|
|
2286
|
+
export function validateScmUrlServiceV1ReposValidateScmUrlPost({ raiseConflict, authorization, validateScmUrlRequest }: {
|
|
2287
|
+
raiseConflict?: boolean;
|
|
2008
2288
|
authorization: string;
|
|
2009
2289
|
validateScmUrlRequest: ValidateScmUrlRequest;
|
|
2010
2290
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2011
2291
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2012
2292
|
status: 200;
|
|
2013
|
-
data:
|
|
2293
|
+
data: ValidateScmUrlResponse;
|
|
2014
2294
|
} | {
|
|
2015
2295
|
status: 400;
|
|
2016
2296
|
data: HttpErrorResponseRead;
|
|
@@ -2028,7 +2308,9 @@ export function validateScmUrlServiceV1ReposValidateScmUrlPost({ authorization,
|
|
|
2028
2308
|
} | {
|
|
2029
2309
|
status: 503;
|
|
2030
2310
|
data: HttpErrorResponseRead;
|
|
2031
|
-
}>(
|
|
2311
|
+
}>(`/v1/repos/validate-scm-url${QS.query(QS.explode({
|
|
2312
|
+
raiseConflict
|
|
2313
|
+
}))}`, oazapfts.json({
|
|
2032
2314
|
...opts,
|
|
2033
2315
|
method: "POST",
|
|
2034
2316
|
body: validateScmUrlRequest,
|
|
@@ -2193,12 +2475,12 @@ export function deleteIntegrationServiceV1IntegrationsIntegrationIdDelete({ inte
|
|
|
2193
2475
|
/**
|
|
2194
2476
|
* Create Program Group Service
|
|
2195
2477
|
*/
|
|
2196
|
-
export function createProgramGroupServiceV1ProgramGroupsPost({ name, tags, integrationId, authorization,
|
|
2478
|
+
export function createProgramGroupServiceV1ProgramGroupsPost({ name, tags, integrationId, authorization, fastapiCompatV2BodyCreateProgramGroupServiceV1ProgramGroupsPost }: {
|
|
2197
2479
|
name: string;
|
|
2198
2480
|
tags?: string[] | null;
|
|
2199
2481
|
integrationId?: string;
|
|
2200
2482
|
authorization: string;
|
|
2201
|
-
|
|
2483
|
+
fastapiCompatV2BodyCreateProgramGroupServiceV1ProgramGroupsPost?: BodyCreateProgramGroupServiceV1ProgramGroupsPost;
|
|
2202
2484
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2203
2485
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2204
2486
|
status: 200;
|
|
@@ -2213,7 +2495,7 @@ export function createProgramGroupServiceV1ProgramGroupsPost({ name, tags, integ
|
|
|
2213
2495
|
}))}`, oazapfts.multipart({
|
|
2214
2496
|
...opts,
|
|
2215
2497
|
method: "POST",
|
|
2216
|
-
body:
|
|
2498
|
+
body: fastapiCompatV2BodyCreateProgramGroupServiceV1ProgramGroupsPost,
|
|
2217
2499
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2218
2500
|
authorization
|
|
2219
2501
|
})
|
|
@@ -2320,13 +2602,13 @@ export function getProgramGroupByIdServiceV1ProgramGroupsProgramGroupIdGet({ pro
|
|
|
2320
2602
|
/**
|
|
2321
2603
|
* Update Program Group Service
|
|
2322
2604
|
*/
|
|
2323
|
-
export function updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut({ programGroupId, name, tags, integrationId, authorization,
|
|
2605
|
+
export function updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut({ programGroupId, name, tags, integrationId, authorization, fastapiCompatV2BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut }: {
|
|
2324
2606
|
programGroupId: string;
|
|
2325
2607
|
name?: string | null;
|
|
2326
2608
|
tags?: string[] | null;
|
|
2327
2609
|
integrationId?: string | null;
|
|
2328
2610
|
authorization: string;
|
|
2329
|
-
|
|
2611
|
+
fastapiCompatV2BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut?: BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut;
|
|
2330
2612
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2331
2613
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2332
2614
|
status: 200;
|
|
@@ -2341,7 +2623,7 @@ export function updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut({ prog
|
|
|
2341
2623
|
}))}`, oazapfts.multipart({
|
|
2342
2624
|
...opts,
|
|
2343
2625
|
method: "PUT",
|
|
2344
|
-
body:
|
|
2626
|
+
body: fastapiCompatV2BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut,
|
|
2345
2627
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2346
2628
|
authorization
|
|
2347
2629
|
})
|
|
@@ -2421,8 +2703,9 @@ export function listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReport
|
|
|
2421
2703
|
/**
|
|
2422
2704
|
* List Tags Service
|
|
2423
2705
|
*/
|
|
2424
|
-
export function listTagsServiceV1TagsGet({ name, authorization }: {
|
|
2706
|
+
export function listTagsServiceV1TagsGet({ name, $type, authorization }: {
|
|
2425
2707
|
name?: string | null;
|
|
2708
|
+
$type?: "Repository" | "Module";
|
|
2426
2709
|
authorization: string;
|
|
2427
2710
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2428
2711
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -2432,7 +2715,8 @@ export function listTagsServiceV1TagsGet({ name, authorization }: {
|
|
|
2432
2715
|
status: 422;
|
|
2433
2716
|
data: HttpValidationError;
|
|
2434
2717
|
}>(`/v1/tags${QS.query(QS.explode({
|
|
2435
|
-
name
|
|
2718
|
+
name,
|
|
2719
|
+
"type": $type
|
|
2436
2720
|
}))}`, {
|
|
2437
2721
|
...opts,
|
|
2438
2722
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -3466,6 +3750,108 @@ export function analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesT
|
|
|
3466
3750
|
})
|
|
3467
3751
|
}));
|
|
3468
3752
|
}
|
|
3753
|
+
/**
|
|
3754
|
+
* Analytics Module Execution Times Report
|
|
3755
|
+
*/
|
|
3756
|
+
export function analyticsModuleExecutionTimesReportV1AnalyticsModulesExecutionTimesGet({ pageSize, page, moduleId, version, mode, startDate, endDate, orderBy, orderDirection, authorization }: {
|
|
3757
|
+
pageSize?: number;
|
|
3758
|
+
page?: number;
|
|
3759
|
+
moduleId?: string[] | null;
|
|
3760
|
+
version?: string[] | null;
|
|
3761
|
+
mode?: ("scan" | "fix") | null;
|
|
3762
|
+
startDate?: string;
|
|
3763
|
+
endDate?: string;
|
|
3764
|
+
orderBy?: ("moduleName" | "moduleVersion" | "queueTimeAvg" | "queueTimeP95" | "executionTimeAvg" | "executionTimeP95" | "totalTimeAvg" | "totalTimeP95" | "executionCount") | null;
|
|
3765
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
3766
|
+
authorization: string;
|
|
3767
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3768
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3769
|
+
status: 200;
|
|
3770
|
+
data: AnalyticsModuleExecutionTimesResponse;
|
|
3771
|
+
} | {
|
|
3772
|
+
status: 400;
|
|
3773
|
+
data: HttpErrorResponseRead;
|
|
3774
|
+
} | {
|
|
3775
|
+
status: 401;
|
|
3776
|
+
data: HttpErrorResponseRead;
|
|
3777
|
+
} | {
|
|
3778
|
+
status: 404;
|
|
3779
|
+
data: HttpErrorResponseRead;
|
|
3780
|
+
} | {
|
|
3781
|
+
status: 422;
|
|
3782
|
+
} | {
|
|
3783
|
+
status: 500;
|
|
3784
|
+
data: HttpErrorResponseRead;
|
|
3785
|
+
} | {
|
|
3786
|
+
status: 503;
|
|
3787
|
+
data: HttpErrorResponseRead;
|
|
3788
|
+
}>(`/v1/analytics/modules/execution-times${QS.query(QS.explode({
|
|
3789
|
+
pageSize,
|
|
3790
|
+
page,
|
|
3791
|
+
moduleId,
|
|
3792
|
+
version,
|
|
3793
|
+
mode,
|
|
3794
|
+
startDate,
|
|
3795
|
+
endDate,
|
|
3796
|
+
orderBy,
|
|
3797
|
+
orderDirection
|
|
3798
|
+
}))}`, {
|
|
3799
|
+
...opts,
|
|
3800
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3801
|
+
authorization
|
|
3802
|
+
})
|
|
3803
|
+
}));
|
|
3804
|
+
}
|
|
3805
|
+
/**
|
|
3806
|
+
* Analytics Module Execution Times Download
|
|
3807
|
+
*/
|
|
3808
|
+
export function analyticsModuleExecutionTimesDownloadV1AnalyticsModulesExecutionTimesDownloadGet({ moduleId, version, mode, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
|
|
3809
|
+
moduleId?: string[] | null;
|
|
3810
|
+
version?: string[] | null;
|
|
3811
|
+
mode?: ("scan" | "fix") | null;
|
|
3812
|
+
startDate?: string;
|
|
3813
|
+
endDate?: string;
|
|
3814
|
+
orderBy?: ("moduleName" | "moduleVersion" | "queueTimeAvg" | "queueTimeP95" | "executionTimeAvg" | "executionTimeP95" | "totalTimeAvg" | "totalTimeP95" | "executionCount") | null;
|
|
3815
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
3816
|
+
extension?: "csv" | "xlsx";
|
|
3817
|
+
authorization: string;
|
|
3818
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3819
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3820
|
+
status: 200;
|
|
3821
|
+
data: any;
|
|
3822
|
+
} | {
|
|
3823
|
+
status: 400;
|
|
3824
|
+
data: HttpErrorResponseRead;
|
|
3825
|
+
} | {
|
|
3826
|
+
status: 401;
|
|
3827
|
+
data: HttpErrorResponseRead;
|
|
3828
|
+
} | {
|
|
3829
|
+
status: 404;
|
|
3830
|
+
data: HttpErrorResponseRead;
|
|
3831
|
+
} | {
|
|
3832
|
+
status: 422;
|
|
3833
|
+
} | {
|
|
3834
|
+
status: 500;
|
|
3835
|
+
data: HttpErrorResponseRead;
|
|
3836
|
+
} | {
|
|
3837
|
+
status: 503;
|
|
3838
|
+
data: HttpErrorResponseRead;
|
|
3839
|
+
}>(`/v1/analytics/modules/execution-times/download${QS.query(QS.explode({
|
|
3840
|
+
moduleId,
|
|
3841
|
+
version,
|
|
3842
|
+
mode,
|
|
3843
|
+
startDate,
|
|
3844
|
+
endDate,
|
|
3845
|
+
orderBy,
|
|
3846
|
+
orderDirection,
|
|
3847
|
+
extension
|
|
3848
|
+
}))}`, {
|
|
3849
|
+
...opts,
|
|
3850
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3851
|
+
authorization
|
|
3852
|
+
})
|
|
3853
|
+
}));
|
|
3854
|
+
}
|
|
3469
3855
|
/**
|
|
3470
3856
|
* List User Service
|
|
3471
3857
|
*/
|
|
@@ -3605,10 +3991,24 @@ export function downloadSearchReposScmV2V2ReposSearchScmSearchIdDownloadGet({ se
|
|
|
3605
3991
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3606
3992
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3607
3993
|
status: 200;
|
|
3608
|
-
data:
|
|
3994
|
+
data: any;
|
|
3995
|
+
} | {
|
|
3996
|
+
status: 400;
|
|
3997
|
+
data: HttpErrorResponseRead;
|
|
3998
|
+
} | {
|
|
3999
|
+
status: 401;
|
|
4000
|
+
data: HttpErrorResponseRead;
|
|
4001
|
+
} | {
|
|
4002
|
+
status: 404;
|
|
4003
|
+
data: HttpErrorResponseRead;
|
|
3609
4004
|
} | {
|
|
3610
4005
|
status: 422;
|
|
3611
|
-
|
|
4006
|
+
} | {
|
|
4007
|
+
status: 500;
|
|
4008
|
+
data: HttpErrorResponseRead;
|
|
4009
|
+
} | {
|
|
4010
|
+
status: 503;
|
|
4011
|
+
data: HttpErrorResponseRead;
|
|
3612
4012
|
}>(`/v2/repos/search-scm/${encodeURIComponent(searchId)}/download${QS.query(QS.explode({
|
|
3613
4013
|
extension
|
|
3614
4014
|
}))}`, {
|
|
@@ -3618,3 +4018,141 @@ export function downloadSearchReposScmV2V2ReposSearchScmSearchIdDownloadGet({ se
|
|
|
3618
4018
|
})
|
|
3619
4019
|
}));
|
|
3620
4020
|
}
|
|
4021
|
+
/**
|
|
4022
|
+
* Create Repos Batch Service
|
|
4023
|
+
*/
|
|
4024
|
+
export function createReposBatchServiceV2ReposBatchPost({ tags, authorization, fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost }: {
|
|
4025
|
+
tags?: string[] | null;
|
|
4026
|
+
authorization: string;
|
|
4027
|
+
fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost: BodyCreateReposBatchServiceV2ReposBatchPost;
|
|
4028
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4029
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4030
|
+
status: 200;
|
|
4031
|
+
data: CreateRepoBatchResponse;
|
|
4032
|
+
} | {
|
|
4033
|
+
status: 400;
|
|
4034
|
+
data: HttpErrorResponseRead;
|
|
4035
|
+
} | {
|
|
4036
|
+
status: 401;
|
|
4037
|
+
data: HttpErrorResponseRead;
|
|
4038
|
+
} | {
|
|
4039
|
+
status: 404;
|
|
4040
|
+
data: HttpErrorResponseRead;
|
|
4041
|
+
} | {
|
|
4042
|
+
status: 422;
|
|
4043
|
+
} | {
|
|
4044
|
+
status: 500;
|
|
4045
|
+
data: HttpErrorResponseRead;
|
|
4046
|
+
} | {
|
|
4047
|
+
status: 503;
|
|
4048
|
+
data: HttpErrorResponseRead;
|
|
4049
|
+
}>(`/v2/repos/batch${QS.query(QS.explode({
|
|
4050
|
+
tags
|
|
4051
|
+
}))}`, oazapfts.multipart({
|
|
4052
|
+
...opts,
|
|
4053
|
+
method: "POST",
|
|
4054
|
+
body: fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost,
|
|
4055
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4056
|
+
authorization
|
|
4057
|
+
})
|
|
4058
|
+
})));
|
|
4059
|
+
}
|
|
4060
|
+
/**
|
|
4061
|
+
* Get Import Result
|
|
4062
|
+
*/
|
|
4063
|
+
export function getImportResultV2ReposBatchImportIdGet({ importId, pageSize, page, authorization }: {
|
|
4064
|
+
importId: string;
|
|
4065
|
+
pageSize?: number;
|
|
4066
|
+
page?: number;
|
|
4067
|
+
authorization: string;
|
|
4068
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4069
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4070
|
+
status: 200;
|
|
4071
|
+
data: GetImportResultResponseRead;
|
|
4072
|
+
} | {
|
|
4073
|
+
status: 400;
|
|
4074
|
+
data: HttpErrorResponseRead;
|
|
4075
|
+
} | {
|
|
4076
|
+
status: 401;
|
|
4077
|
+
data: HttpErrorResponseRead;
|
|
4078
|
+
} | {
|
|
4079
|
+
status: 404;
|
|
4080
|
+
data: HttpErrorResponseRead;
|
|
4081
|
+
} | {
|
|
4082
|
+
status: 422;
|
|
4083
|
+
} | {
|
|
4084
|
+
status: 500;
|
|
4085
|
+
data: HttpErrorResponseRead;
|
|
4086
|
+
} | {
|
|
4087
|
+
status: 503;
|
|
4088
|
+
data: HttpErrorResponseRead;
|
|
4089
|
+
}>(`/v2/repos/batch/${encodeURIComponent(importId)}${QS.query(QS.explode({
|
|
4090
|
+
pageSize,
|
|
4091
|
+
page
|
|
4092
|
+
}))}`, {
|
|
4093
|
+
...opts,
|
|
4094
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4095
|
+
authorization
|
|
4096
|
+
})
|
|
4097
|
+
}));
|
|
4098
|
+
}
|
|
4099
|
+
/**
|
|
4100
|
+
* Download Import Result
|
|
4101
|
+
*/
|
|
4102
|
+
export function downloadImportResultV2ReposBatchImportIdDownloadGet({ importId, language, status, extension, authorization }: {
|
|
4103
|
+
importId: string;
|
|
4104
|
+
language?: "ptBr" | "enUs";
|
|
4105
|
+
status?: ValidateRepositoryStatus | null;
|
|
4106
|
+
extension?: "csv" | "xlsx";
|
|
4107
|
+
authorization: string;
|
|
4108
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4109
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4110
|
+
status: 200;
|
|
4111
|
+
data: any;
|
|
4112
|
+
} | {
|
|
4113
|
+
status: 400;
|
|
4114
|
+
data: HttpErrorResponseRead;
|
|
4115
|
+
} | {
|
|
4116
|
+
status: 401;
|
|
4117
|
+
data: HttpErrorResponseRead;
|
|
4118
|
+
} | {
|
|
4119
|
+
status: 404;
|
|
4120
|
+
data: HttpErrorResponseRead;
|
|
4121
|
+
} | {
|
|
4122
|
+
status: 422;
|
|
4123
|
+
} | {
|
|
4124
|
+
status: 500;
|
|
4125
|
+
data: HttpErrorResponseRead;
|
|
4126
|
+
} | {
|
|
4127
|
+
status: 503;
|
|
4128
|
+
data: HttpErrorResponseRead;
|
|
4129
|
+
}>(`/v2/repos/batch/${encodeURIComponent(importId)}/download${QS.query(QS.explode({
|
|
4130
|
+
language,
|
|
4131
|
+
status,
|
|
4132
|
+
extension
|
|
4133
|
+
}))}`, {
|
|
4134
|
+
...opts,
|
|
4135
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4136
|
+
authorization
|
|
4137
|
+
})
|
|
4138
|
+
}));
|
|
4139
|
+
}
|
|
4140
|
+
/**
|
|
4141
|
+
* Pat Health Check
|
|
4142
|
+
*/
|
|
4143
|
+
export function patHealthCheckV1ScmPatHealthCheckGet({ authorization }: {
|
|
4144
|
+
authorization: string;
|
|
4145
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4146
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4147
|
+
status: 200;
|
|
4148
|
+
data: boolean;
|
|
4149
|
+
} | {
|
|
4150
|
+
status: 422;
|
|
4151
|
+
data: HttpValidationError;
|
|
4152
|
+
}>("/v1/scm/pat/health-check", {
|
|
4153
|
+
...opts,
|
|
4154
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4155
|
+
authorization
|
|
4156
|
+
})
|
|
4157
|
+
}));
|
|
4158
|
+
}
|