@stack-spot/portal-network 0.193.0 → 0.194.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 +172 -0
- package/dist/api/account.d.ts +4 -116
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +9 -95
- package/dist/api/account.js.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 +73 -126
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +82 -66
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/codeShift.d.ts +214 -42
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +108 -10
- 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/client/account.d.ts +4 -0
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +10 -1
- package/dist/client/account.js.map +1 -1
- package/dist/client/ai.d.ts +46 -0
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +47 -2
- package/dist/client/ai.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +155 -51
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +146 -47
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/code-shift.d.ts +72 -4
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +73 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/discover.d.ts +7 -1
- 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/types.d.ts +14 -0
- package/dist/client/types.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 +21 -192
- package/src/api/agent-tools.ts +3 -0
- package/src/api/agent.ts +2 -0
- package/src/api/ai.ts +364 -157
- package/src/api/cloudPlatform.ts +147 -204
- package/src/api/codeShift.ts +373 -47
- package/src/api/discover.ts +35 -12
- package/src/api/notification.ts +2 -0
- package/src/client/account.ts +5 -0
- package/src/client/ai.ts +42 -1
- package/src/client/cloud-platform.ts +84 -29
- package/src/client/code-shift.ts +40 -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,18 @@ 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;
|
|
162
198
|
};
|
|
163
199
|
export type GetModuleResponse = {
|
|
164
200
|
/** Module ID */
|
|
@@ -182,6 +218,20 @@ export type GetModuleResponse = {
|
|
|
182
218
|
[key: string]: any;
|
|
183
219
|
} | null;
|
|
184
220
|
gitAction?: GitAction2 | null;
|
|
221
|
+
/** Module tags */
|
|
222
|
+
tags?: string[] | null;
|
|
223
|
+
/** Flag to internal developed modules */
|
|
224
|
+
stackspotInternal: boolean;
|
|
225
|
+
/** Module visibility */
|
|
226
|
+
visibility: ModuleVisibility;
|
|
227
|
+
/** List of users to share the module with */
|
|
228
|
+
sharedWith?: SharedPermissionResponse[] | null;
|
|
229
|
+
/** Flag to favor modules */
|
|
230
|
+
isFavorite: boolean;
|
|
231
|
+
/** Module usage */
|
|
232
|
+
totalUsage: number;
|
|
233
|
+
/** Module users */
|
|
234
|
+
totalUsers: number;
|
|
185
235
|
};
|
|
186
236
|
export type ExternalItemsModel = {
|
|
187
237
|
source: string;
|
|
@@ -199,7 +249,7 @@ export type OutputModel = {
|
|
|
199
249
|
};
|
|
200
250
|
export type InputModel = {
|
|
201
251
|
label: string;
|
|
202
|
-
name: string;
|
|
252
|
+
name: string | null;
|
|
203
253
|
"type": string;
|
|
204
254
|
required: boolean;
|
|
205
255
|
pattern: string | null;
|
|
@@ -223,6 +273,9 @@ export type GetModuleInputsResponse = {
|
|
|
223
273
|
inputs: InputModel[];
|
|
224
274
|
computedInputs: ComputedInputModel[] | null;
|
|
225
275
|
};
|
|
276
|
+
export type GetModuleDocsResponse = {
|
|
277
|
+
content: string;
|
|
278
|
+
};
|
|
226
279
|
export type Mode = "scan" | "fix";
|
|
227
280
|
export type ModuleDispatchRequest = {
|
|
228
281
|
/** Module mode */
|
|
@@ -257,6 +310,9 @@ export type TargetFilesRequest = {
|
|
|
257
310
|
details?: string | null;
|
|
258
311
|
dependsOn?: DependsOnRequest[] | null;
|
|
259
312
|
issues?: IssuesRequest[] | null;
|
|
313
|
+
totalTokenSent?: number | null;
|
|
314
|
+
totalTokenReceived?: number | null;
|
|
315
|
+
modified?: boolean | null;
|
|
260
316
|
};
|
|
261
317
|
export type LanguageInfoRequest = {
|
|
262
318
|
bytes: number;
|
|
@@ -327,6 +383,9 @@ export type TargetFilesResponse = {
|
|
|
327
383
|
details?: string | null;
|
|
328
384
|
dependsOn?: DependsOnResponse[] | null;
|
|
329
385
|
issues?: IssuesResponse[] | null;
|
|
386
|
+
totalTokenSent?: number | null;
|
|
387
|
+
totalTokenReceived?: number | null;
|
|
388
|
+
modified?: boolean | null;
|
|
330
389
|
};
|
|
331
390
|
export type ReportStatus = "waiting_dispatch" | "waiting_runner" | "dispatch_failure" | "in_progress" | "suspended" | "error" | "success" | "cancelled";
|
|
332
391
|
export type PullRequestResponse = {
|
|
@@ -1032,6 +1091,9 @@ export type ProgramGroupsTargetDetailsResponse = {
|
|
|
1032
1091
|
[key: string]: any;
|
|
1033
1092
|
} | null;
|
|
1034
1093
|
customerScore?: number | null;
|
|
1094
|
+
totalTokenSent: number | null;
|
|
1095
|
+
totalTokenReceived: number | null;
|
|
1096
|
+
modified: boolean | null;
|
|
1035
1097
|
};
|
|
1036
1098
|
export type AnalyticsProgramGroupsTargetDetailsResponse = {
|
|
1037
1099
|
totalComponents?: number;
|
|
@@ -1052,6 +1114,9 @@ export type RepositoryTargetDetailsItemResponse = {
|
|
|
1052
1114
|
reportCreatedAt: string | null;
|
|
1053
1115
|
reportId: string | null;
|
|
1054
1116
|
customerScore?: number | null;
|
|
1117
|
+
totalTokenSent: number | null;
|
|
1118
|
+
totalTokenReceived: number | null;
|
|
1119
|
+
modified: boolean | null;
|
|
1055
1120
|
};
|
|
1056
1121
|
export type AnalyticsRepositoryTargetDetailsResponse = {
|
|
1057
1122
|
totalFiles?: number;
|
|
@@ -1110,6 +1175,52 @@ export type ResponseSearchRepoByIdResponseRead = {
|
|
|
1110
1175
|
exceptions: HttpErrorResponseRead[];
|
|
1111
1176
|
items?: SearchRepoByIdResponse[];
|
|
1112
1177
|
};
|
|
1178
|
+
export type BodyCreateReposBatchServiceV2ReposBatchPost = {
|
|
1179
|
+
file: Blob;
|
|
1180
|
+
};
|
|
1181
|
+
export type CreateRepoBatchResponse = {
|
|
1182
|
+
id: string;
|
|
1183
|
+
};
|
|
1184
|
+
export type ImportStatus = "COMPLETED" | "PENDING";
|
|
1185
|
+
export type ValidateRepositoryStatus = "PENDING" | "SUCCESS" | "FAILURE" | "CONFLICT";
|
|
1186
|
+
export type BatchRepositoryResponse = {
|
|
1187
|
+
repositoryId: string | null;
|
|
1188
|
+
repositoryUrl: string;
|
|
1189
|
+
repositoryBranch: string;
|
|
1190
|
+
repositoryTags: string[];
|
|
1191
|
+
status: ValidateRepositoryStatus;
|
|
1192
|
+
line: number;
|
|
1193
|
+
repositoryName: string | null;
|
|
1194
|
+
repositoryArchived: boolean | null;
|
|
1195
|
+
repositoryPushedAt: string | null;
|
|
1196
|
+
repositoryVisibility: string | null;
|
|
1197
|
+
exceptions: HttpErrorResponse[];
|
|
1198
|
+
};
|
|
1199
|
+
export type BatchRepositoryResponseRead = {
|
|
1200
|
+
repositoryId: string | null;
|
|
1201
|
+
repositoryUrl: string;
|
|
1202
|
+
repositoryBranch: string;
|
|
1203
|
+
repositoryTags: string[];
|
|
1204
|
+
status: ValidateRepositoryStatus;
|
|
1205
|
+
line: number;
|
|
1206
|
+
repositoryName: string | null;
|
|
1207
|
+
repositoryArchived: boolean | null;
|
|
1208
|
+
repositoryPushedAt: string | null;
|
|
1209
|
+
repositoryVisibility: string | null;
|
|
1210
|
+
exceptions: HttpErrorResponseRead[];
|
|
1211
|
+
};
|
|
1212
|
+
export type GetImportResultResponse = {
|
|
1213
|
+
status: ImportStatus;
|
|
1214
|
+
totalItems: number;
|
|
1215
|
+
items: BatchRepositoryResponse[];
|
|
1216
|
+
repositoriesIds: string[];
|
|
1217
|
+
};
|
|
1218
|
+
export type GetImportResultResponseRead = {
|
|
1219
|
+
status: ImportStatus;
|
|
1220
|
+
totalItems: number;
|
|
1221
|
+
items: BatchRepositoryResponseRead[];
|
|
1222
|
+
repositoriesIds: string[];
|
|
1223
|
+
};
|
|
1113
1224
|
/**
|
|
1114
1225
|
* Check Role Route
|
|
1115
1226
|
*/
|
|
@@ -1130,6 +1241,76 @@ export function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
|
|
|
1130
1241
|
})
|
|
1131
1242
|
}));
|
|
1132
1243
|
}
|
|
1244
|
+
/**
|
|
1245
|
+
* Module Favorite Service Add
|
|
1246
|
+
*/
|
|
1247
|
+
export function moduleFavoriteServiceAddV1ModulesModuleIdFavoritesPost({ moduleId, authorization }: {
|
|
1248
|
+
moduleId: string;
|
|
1249
|
+
authorization: string;
|
|
1250
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1251
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1252
|
+
status: 200;
|
|
1253
|
+
data: any;
|
|
1254
|
+
} | {
|
|
1255
|
+
status: 400;
|
|
1256
|
+
data: HttpErrorResponseRead;
|
|
1257
|
+
} | {
|
|
1258
|
+
status: 401;
|
|
1259
|
+
data: HttpErrorResponseRead;
|
|
1260
|
+
} | {
|
|
1261
|
+
status: 404;
|
|
1262
|
+
data: HttpErrorResponseRead;
|
|
1263
|
+
} | {
|
|
1264
|
+
status: 422;
|
|
1265
|
+
} | {
|
|
1266
|
+
status: 500;
|
|
1267
|
+
data: HttpErrorResponseRead;
|
|
1268
|
+
} | {
|
|
1269
|
+
status: 503;
|
|
1270
|
+
data: HttpErrorResponseRead;
|
|
1271
|
+
}>(`/v1/modules/${encodeURIComponent(moduleId)}/favorites`, {
|
|
1272
|
+
...opts,
|
|
1273
|
+
method: "POST",
|
|
1274
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1275
|
+
authorization
|
|
1276
|
+
})
|
|
1277
|
+
}));
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* Module Favorite Service Delete
|
|
1281
|
+
*/
|
|
1282
|
+
export function moduleFavoriteServiceDeleteV1ModulesModuleIdFavoritesDelete({ moduleId, authorization }: {
|
|
1283
|
+
moduleId: string;
|
|
1284
|
+
authorization: string;
|
|
1285
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1286
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1287
|
+
status: 200;
|
|
1288
|
+
data: any;
|
|
1289
|
+
} | {
|
|
1290
|
+
status: 400;
|
|
1291
|
+
data: HttpErrorResponseRead;
|
|
1292
|
+
} | {
|
|
1293
|
+
status: 401;
|
|
1294
|
+
data: HttpErrorResponseRead;
|
|
1295
|
+
} | {
|
|
1296
|
+
status: 404;
|
|
1297
|
+
data: HttpErrorResponseRead;
|
|
1298
|
+
} | {
|
|
1299
|
+
status: 422;
|
|
1300
|
+
} | {
|
|
1301
|
+
status: 500;
|
|
1302
|
+
data: HttpErrorResponseRead;
|
|
1303
|
+
} | {
|
|
1304
|
+
status: 503;
|
|
1305
|
+
data: HttpErrorResponseRead;
|
|
1306
|
+
}>(`/v1/modules/${encodeURIComponent(moduleId)}/favorites`, {
|
|
1307
|
+
...opts,
|
|
1308
|
+
method: "DELETE",
|
|
1309
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1310
|
+
authorization
|
|
1311
|
+
})
|
|
1312
|
+
}));
|
|
1313
|
+
}
|
|
1133
1314
|
/**
|
|
1134
1315
|
* Create Module Service
|
|
1135
1316
|
*/
|
|
@@ -1171,11 +1352,16 @@ export function createModuleServiceV1ModulesPost({ authorization, xAccountSlug,
|
|
|
1171
1352
|
/**
|
|
1172
1353
|
* List Modules Service
|
|
1173
1354
|
*/
|
|
1174
|
-
export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, lastEvaluatedKey, xAccountSlug, authorization }: {
|
|
1355
|
+
export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, lastEvaluatedKey, sharedWith, createdBy, visibility, name, tags, xAccountSlug, authorization }: {
|
|
1175
1356
|
pageSize?: number;
|
|
1176
1357
|
moduleType?: ModuleType | null;
|
|
1177
1358
|
page?: number;
|
|
1178
1359
|
lastEvaluatedKey?: string;
|
|
1360
|
+
sharedWith?: string | null;
|
|
1361
|
+
createdBy?: string | null;
|
|
1362
|
+
visibility?: ModuleVisibility | null;
|
|
1363
|
+
name?: string | null;
|
|
1364
|
+
tags?: string[] | null;
|
|
1179
1365
|
xAccountSlug?: string;
|
|
1180
1366
|
authorization: string;
|
|
1181
1367
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1203,7 +1389,12 @@ export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, las
|
|
|
1203
1389
|
pageSize,
|
|
1204
1390
|
moduleType,
|
|
1205
1391
|
page,
|
|
1206
|
-
lastEvaluatedKey
|
|
1392
|
+
lastEvaluatedKey,
|
|
1393
|
+
sharedWith,
|
|
1394
|
+
createdBy,
|
|
1395
|
+
visibility,
|
|
1396
|
+
name,
|
|
1397
|
+
tags
|
|
1207
1398
|
}))}`, {
|
|
1208
1399
|
...opts,
|
|
1209
1400
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1356,6 +1547,43 @@ export function getModuleInputsV1ModulesModuleIdInputsGet({ moduleId, authorizat
|
|
|
1356
1547
|
})
|
|
1357
1548
|
}));
|
|
1358
1549
|
}
|
|
1550
|
+
/**
|
|
1551
|
+
* Get Module Docs
|
|
1552
|
+
*/
|
|
1553
|
+
export function getModuleDocsV1ModulesModuleIdDocsGet({ moduleId, language, authorization }: {
|
|
1554
|
+
moduleId: string;
|
|
1555
|
+
language?: "pt-br" | "en-us";
|
|
1556
|
+
authorization: string;
|
|
1557
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1558
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1559
|
+
status: 200;
|
|
1560
|
+
data: GetModuleDocsResponse | null;
|
|
1561
|
+
} | {
|
|
1562
|
+
status: 400;
|
|
1563
|
+
data: HttpErrorResponseRead;
|
|
1564
|
+
} | {
|
|
1565
|
+
status: 401;
|
|
1566
|
+
data: HttpErrorResponseRead;
|
|
1567
|
+
} | {
|
|
1568
|
+
status: 404;
|
|
1569
|
+
data: HttpErrorResponseRead;
|
|
1570
|
+
} | {
|
|
1571
|
+
status: 422;
|
|
1572
|
+
} | {
|
|
1573
|
+
status: 500;
|
|
1574
|
+
data: HttpErrorResponseRead;
|
|
1575
|
+
} | {
|
|
1576
|
+
status: 503;
|
|
1577
|
+
data: HttpErrorResponseRead;
|
|
1578
|
+
}>(`/v1/modules/${encodeURIComponent(moduleId)}/docs${QS.query(QS.explode({
|
|
1579
|
+
language
|
|
1580
|
+
}))}`, {
|
|
1581
|
+
...opts,
|
|
1582
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1583
|
+
authorization
|
|
1584
|
+
})
|
|
1585
|
+
}));
|
|
1586
|
+
}
|
|
1359
1587
|
/**
|
|
1360
1588
|
* Dispatch Module Service
|
|
1361
1589
|
*/
|
|
@@ -1680,10 +1908,10 @@ export function listRepositoryReportV1ReposRepositoryIdReportsGet({ repositoryId
|
|
|
1680
1908
|
/**
|
|
1681
1909
|
* Create Repos Batch Service
|
|
1682
1910
|
*/
|
|
1683
|
-
export function createReposBatchServiceV1ReposBatchPost({ tags, authorization,
|
|
1911
|
+
export function createReposBatchServiceV1ReposBatchPost({ tags, authorization, fastapiCompatV2BodyCreateReposBatchServiceV1ReposBatchPost }: {
|
|
1684
1912
|
tags?: string[] | null;
|
|
1685
1913
|
authorization: string;
|
|
1686
|
-
|
|
1914
|
+
fastapiCompatV2BodyCreateReposBatchServiceV1ReposBatchPost: BodyCreateReposBatchServiceV1ReposBatchPost;
|
|
1687
1915
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1688
1916
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1689
1917
|
status: 200;
|
|
@@ -1713,7 +1941,7 @@ export function createReposBatchServiceV1ReposBatchPost({ tags, authorization, b
|
|
|
1713
1941
|
}))}`, oazapfts.multipart({
|
|
1714
1942
|
...opts,
|
|
1715
1943
|
method: "POST",
|
|
1716
|
-
body:
|
|
1944
|
+
body: fastapiCompatV2BodyCreateReposBatchServiceV1ReposBatchPost,
|
|
1717
1945
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1718
1946
|
authorization
|
|
1719
1947
|
})
|
|
@@ -2193,12 +2421,12 @@ export function deleteIntegrationServiceV1IntegrationsIntegrationIdDelete({ inte
|
|
|
2193
2421
|
/**
|
|
2194
2422
|
* Create Program Group Service
|
|
2195
2423
|
*/
|
|
2196
|
-
export function createProgramGroupServiceV1ProgramGroupsPost({ name, tags, integrationId, authorization,
|
|
2424
|
+
export function createProgramGroupServiceV1ProgramGroupsPost({ name, tags, integrationId, authorization, fastapiCompatV2BodyCreateProgramGroupServiceV1ProgramGroupsPost }: {
|
|
2197
2425
|
name: string;
|
|
2198
2426
|
tags?: string[] | null;
|
|
2199
2427
|
integrationId?: string;
|
|
2200
2428
|
authorization: string;
|
|
2201
|
-
|
|
2429
|
+
fastapiCompatV2BodyCreateProgramGroupServiceV1ProgramGroupsPost?: BodyCreateProgramGroupServiceV1ProgramGroupsPost;
|
|
2202
2430
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2203
2431
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2204
2432
|
status: 200;
|
|
@@ -2213,7 +2441,7 @@ export function createProgramGroupServiceV1ProgramGroupsPost({ name, tags, integ
|
|
|
2213
2441
|
}))}`, oazapfts.multipart({
|
|
2214
2442
|
...opts,
|
|
2215
2443
|
method: "POST",
|
|
2216
|
-
body:
|
|
2444
|
+
body: fastapiCompatV2BodyCreateProgramGroupServiceV1ProgramGroupsPost,
|
|
2217
2445
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2218
2446
|
authorization
|
|
2219
2447
|
})
|
|
@@ -2320,13 +2548,13 @@ export function getProgramGroupByIdServiceV1ProgramGroupsProgramGroupIdGet({ pro
|
|
|
2320
2548
|
/**
|
|
2321
2549
|
* Update Program Group Service
|
|
2322
2550
|
*/
|
|
2323
|
-
export function updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut({ programGroupId, name, tags, integrationId, authorization,
|
|
2551
|
+
export function updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut({ programGroupId, name, tags, integrationId, authorization, fastapiCompatV2BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut }: {
|
|
2324
2552
|
programGroupId: string;
|
|
2325
2553
|
name?: string | null;
|
|
2326
2554
|
tags?: string[] | null;
|
|
2327
2555
|
integrationId?: string | null;
|
|
2328
2556
|
authorization: string;
|
|
2329
|
-
|
|
2557
|
+
fastapiCompatV2BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut?: BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut;
|
|
2330
2558
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2331
2559
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2332
2560
|
status: 200;
|
|
@@ -2341,7 +2569,7 @@ export function updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut({ prog
|
|
|
2341
2569
|
}))}`, oazapfts.multipart({
|
|
2342
2570
|
...opts,
|
|
2343
2571
|
method: "PUT",
|
|
2344
|
-
body:
|
|
2572
|
+
body: fastapiCompatV2BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut,
|
|
2345
2573
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2346
2574
|
authorization
|
|
2347
2575
|
})
|
|
@@ -2421,8 +2649,9 @@ export function listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReport
|
|
|
2421
2649
|
/**
|
|
2422
2650
|
* List Tags Service
|
|
2423
2651
|
*/
|
|
2424
|
-
export function listTagsServiceV1TagsGet({ name, authorization }: {
|
|
2652
|
+
export function listTagsServiceV1TagsGet({ name, $type, authorization }: {
|
|
2425
2653
|
name?: string | null;
|
|
2654
|
+
$type?: "Repository" | "Module";
|
|
2426
2655
|
authorization: string;
|
|
2427
2656
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2428
2657
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -2432,7 +2661,8 @@ export function listTagsServiceV1TagsGet({ name, authorization }: {
|
|
|
2432
2661
|
status: 422;
|
|
2433
2662
|
data: HttpValidationError;
|
|
2434
2663
|
}>(`/v1/tags${QS.query(QS.explode({
|
|
2435
|
-
name
|
|
2664
|
+
name,
|
|
2665
|
+
"type": $type
|
|
2436
2666
|
}))}`, {
|
|
2437
2667
|
...opts,
|
|
2438
2668
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -3605,7 +3835,7 @@ export function downloadSearchReposScmV2V2ReposSearchScmSearchIdDownloadGet({ se
|
|
|
3605
3835
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3606
3836
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3607
3837
|
status: 200;
|
|
3608
|
-
data:
|
|
3838
|
+
data: any;
|
|
3609
3839
|
} | {
|
|
3610
3840
|
status: 422;
|
|
3611
3841
|
data: HttpValidationError;
|
|
@@ -3618,3 +3848,99 @@ export function downloadSearchReposScmV2V2ReposSearchScmSearchIdDownloadGet({ se
|
|
|
3618
3848
|
})
|
|
3619
3849
|
}));
|
|
3620
3850
|
}
|
|
3851
|
+
/**
|
|
3852
|
+
* Create Repos Batch Service
|
|
3853
|
+
*/
|
|
3854
|
+
export function createReposBatchServiceV2ReposBatchPost({ tags, authorization, fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost }: {
|
|
3855
|
+
tags?: string[] | null;
|
|
3856
|
+
authorization: string;
|
|
3857
|
+
fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost: BodyCreateReposBatchServiceV2ReposBatchPost;
|
|
3858
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3859
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3860
|
+
status: 200;
|
|
3861
|
+
data: CreateRepoBatchResponse;
|
|
3862
|
+
} | {
|
|
3863
|
+
status: 422;
|
|
3864
|
+
data: HttpValidationError;
|
|
3865
|
+
}>(`/v2/repos/batch${QS.query(QS.explode({
|
|
3866
|
+
tags
|
|
3867
|
+
}))}`, oazapfts.multipart({
|
|
3868
|
+
...opts,
|
|
3869
|
+
method: "POST",
|
|
3870
|
+
body: fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost,
|
|
3871
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3872
|
+
authorization
|
|
3873
|
+
})
|
|
3874
|
+
})));
|
|
3875
|
+
}
|
|
3876
|
+
/**
|
|
3877
|
+
* Get Import Result
|
|
3878
|
+
*/
|
|
3879
|
+
export function getImportResultV2ReposBatchImportIdGet({ importId, pageSize, page, authorization }: {
|
|
3880
|
+
importId: string;
|
|
3881
|
+
pageSize?: number;
|
|
3882
|
+
page?: number;
|
|
3883
|
+
authorization: string;
|
|
3884
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3885
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3886
|
+
status: 200;
|
|
3887
|
+
data: GetImportResultResponseRead;
|
|
3888
|
+
} | {
|
|
3889
|
+
status: 422;
|
|
3890
|
+
data: HttpValidationError;
|
|
3891
|
+
}>(`/v2/repos/batch/${encodeURIComponent(importId)}${QS.query(QS.explode({
|
|
3892
|
+
pageSize,
|
|
3893
|
+
page
|
|
3894
|
+
}))}`, {
|
|
3895
|
+
...opts,
|
|
3896
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3897
|
+
authorization
|
|
3898
|
+
})
|
|
3899
|
+
}));
|
|
3900
|
+
}
|
|
3901
|
+
/**
|
|
3902
|
+
* Download Import Result
|
|
3903
|
+
*/
|
|
3904
|
+
export function downloadImportResultV2ReposBatchImportIdDownloadGet({ importId, language, status, extension, authorization }: {
|
|
3905
|
+
importId: string;
|
|
3906
|
+
language?: "ptBr" | "enUs";
|
|
3907
|
+
status?: ValidateRepositoryStatus | null;
|
|
3908
|
+
extension?: "csv" | "xlsx";
|
|
3909
|
+
authorization: string;
|
|
3910
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3911
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3912
|
+
status: 200;
|
|
3913
|
+
data: any;
|
|
3914
|
+
} | {
|
|
3915
|
+
status: 422;
|
|
3916
|
+
data: HttpValidationError;
|
|
3917
|
+
}>(`/v2/repos/batch/${encodeURIComponent(importId)}/download${QS.query(QS.explode({
|
|
3918
|
+
language,
|
|
3919
|
+
status,
|
|
3920
|
+
extension
|
|
3921
|
+
}))}`, {
|
|
3922
|
+
...opts,
|
|
3923
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3924
|
+
authorization
|
|
3925
|
+
})
|
|
3926
|
+
}));
|
|
3927
|
+
}
|
|
3928
|
+
/**
|
|
3929
|
+
* Pat Health Check
|
|
3930
|
+
*/
|
|
3931
|
+
export function patHealthCheckV1ScmPatHealthCheckGet({ authorization }: {
|
|
3932
|
+
authorization: string;
|
|
3933
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3934
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3935
|
+
status: 200;
|
|
3936
|
+
data: boolean;
|
|
3937
|
+
} | {
|
|
3938
|
+
status: 422;
|
|
3939
|
+
data: HttpValidationError;
|
|
3940
|
+
}>("/v1/scm/pat/health-check", {
|
|
3941
|
+
...opts,
|
|
3942
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3943
|
+
authorization
|
|
3944
|
+
})
|
|
3945
|
+
}));
|
|
3946
|
+
}
|