@stack-spot/portal-network 0.177.1-beta.1 → 0.177.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -245
- package/dist/api/agent-tools.d.ts +6 -33
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +6 -19
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/codeShift.d.ts +10 -126
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +0 -84
- package/dist/api/codeShift.js.map +1 -1
- package/dist/client/agent-tools.d.ts +6 -3
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +3 -3
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/code-shift.d.ts +4 -61
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +1 -46
- package/dist/client/code-shift.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/src/api/account.ts +0 -1
- package/src/api/agent-tools.ts +11 -57
- package/src/api/agent.ts +0 -2
- package/src/api/codeShift.ts +10 -293
- package/src/api/notification.ts +0 -2
- package/src/client/agent-tools.ts +3 -3
- package/src/client/ai.ts +0 -1
- package/src/client/code-shift.ts +0 -29
package/src/api/codeShift.ts
CHANGED
|
@@ -60,7 +60,7 @@ export type CreateModuleRequest = {
|
|
|
60
60
|
} | null;
|
|
61
61
|
gitAction?: GitAction | null;
|
|
62
62
|
};
|
|
63
|
-
export type ExceptionType = "CODE_SHIFT_API_0000_UNEXPECTED_ERROR" | "CODE_SHIFT_API_0001_INVALID_VALUE" | "CODE_SHIFT_API_0002_NOT_IMPLEMENTED" | "CODE_SHIFT_API_0003_NOT_FOUND" | "CODE_SHIFT_API_0004_VALIDATION_ERROR" | "CODE_SHIFT_API_0005_CONFLICT" | "CODE_SHIFT_API_0006_INVALID_REPO_URL" | "CODE_SHIFT_API_0007_FORBIDDEN" | "CODE_SHIFT_API_0008_DEFAULT_BRANCH" | "CODE_SHIFT_API_0009_INVALID_SPREADSHEET" | "CODE_SHIFT_API_0010_PR_LINK_NOT_EXISTS" | "CODE_SHIFT_API_0011_EMPTY_SPREADSHEET" | "CODE_SHIFT_API_0012_REPOSITORY_NOT_EXISTS_IN_SCM" | "CODE_SHIFT_API_0013_SCM_BRANCH_NOT_EXISTS_EXCEPTION" | "CODE_SHIFT_API_0014_ACCOUNT_NOT_FOUND_EXCEPTION" | "CODE_SHIFT_API_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" | "
|
|
63
|
+
export type ExceptionType = "CODE_SHIFT_API_0000_UNEXPECTED_ERROR" | "CODE_SHIFT_API_0001_INVALID_VALUE" | "CODE_SHIFT_API_0002_NOT_IMPLEMENTED" | "CODE_SHIFT_API_0003_NOT_FOUND" | "CODE_SHIFT_API_0004_VALIDATION_ERROR" | "CODE_SHIFT_API_0005_CONFLICT" | "CODE_SHIFT_API_0006_INVALID_REPO_URL" | "CODE_SHIFT_API_0007_FORBIDDEN" | "CODE_SHIFT_API_0008_DEFAULT_BRANCH" | "CODE_SHIFT_API_0009_INVALID_SPREADSHEET" | "CODE_SHIFT_API_0010_PR_LINK_NOT_EXISTS" | "CODE_SHIFT_API_0011_EMPTY_SPREADSHEET" | "CODE_SHIFT_API_0012_REPOSITORY_NOT_EXISTS_IN_SCM" | "CODE_SHIFT_API_0013_SCM_BRANCH_NOT_EXISTS_EXCEPTION" | "CODE_SHIFT_API_0014_ACCOUNT_NOT_FOUND_EXCEPTION" | "CODE_SHIFT_API_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_3000_WORKFLOW_API_DISPATCH_FAILURE" | "CODE_SHIFT_API_3001_WORKFLOW_API_DISPATCH_FORBIDDEN" | "CODE_SHIFT_API_3009_WORKFLOW_API_DISPATCH_PARSE_ERROR" | "CODE_SHIFT_API_3010_AWS_SECRET_MANAGER_GET_SECRET_FAILURE" | "CODE_SHIFT_API_3011_AWS_SECRET_MANAGER_PARSE_SECRET_ERROR" | "CODE_SHIFT_API_3100_SCM_GET_REPOSITORIES_FAILURE" | "CODE_SHIFT_API_3110_SCM_GET_PULL_REQUEST_FAILURE" | "CODE_SHIFT_API_3120_SCM_GET_BRANCHES_FAILURE" | "CODE_SHIFT_API_3130_SCM_GET_SCM_REPOSITORY_FETCH_FAILURE" | "CODE_SHIFT_API_3131_SCM_REPOSITORY_NOT_FOUND" | "CODE_SHIFT_API_3140_SCM_GET_BRANCH_FAILURE" | "CODE_SHIFT_API_3142_SCM_GET_BRANCHES_NOT_FOUND" | "CODE_SHIFT_API_3150_SCM_GET_REPOSITORY_FILE_FAILURE" | "CODE_SHIFT_API_3151_SCM_GET_REPOSITORY_FILE_NOT_FOUND" | "CODE_SHIFT_API_3500_CONTENT_API_GET_WORKFLOW_VERSION_FAILURE" | "CODE_SHIFT_API_4000_ACCOUNTS_API_PAT_FAILURE" | "CODE_SHIFT_API_4001_ACCOUNTS_API_PAT_FORBIDDEN" | "CODE_SHIFT_API_4002_ACCOUNTS_API_PAT_NOT_FOUND" | "CODE_SHIFT_API_4009_ACCOUNTS_API_PAT_PARSE_ERROR" | "CODE_SHIFT_API_4010_GET_SCM_CREDENTIALS_FAILURE" | "CODE_SHIFT_API_4011_GET_SCM_CREDENTIALS_FORBIDDEN" | "CODE_SHIFT_API_4012_GET_SCM_CREDENTIALS_NOT_FOUND" | "CODE_SHIFT_API_4019_GET_SCM_CREDENTIALS_PARSE_ERROR" | "CODE_SHIFT_API_6000_IAM_GENERATE_TOKEN_FAILURE" | "CODE_SHIFT_API_6000_IAM_INTROSPECT_TOKEN_FAILURE";
|
|
64
64
|
export type BadRequestExceptionTypes = "CODE_SHIFT_API_1001_DECODE_JWT_ERROR" | "CODE_SHIFT_API_2001_BAD_REQUEST_REQUIRED_FIELD" | "CODE_SHIFT_API_2002_BAD_REQUEST_EMPTY_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2003_BAD_REQUEST_TYPE_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2004_BAD_REQUEST_VALUE_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2005_BAD_REQUEST_VALUE_FIELD_MAX_LENGTH" | "CODE_SHIFT_API_2006_BAD_REQUEST_VALUE_FIELD_MIN_LENGTH" | "CODE_SHIFT_API_2007_BAD_REQUEST_VALUE_REGEX_DOESNT_MATCH" | "CODE_SHIFT_API_2008_BAD_REQUEST_VALUE_FIELD_NUMBER_NOT_LT" | "CODE_SHIFT_API_2100_CREATE_BODY_REPO_AND_REPO_CREATE_ACTION" | "CODE_SHIFT_API_2101_CREATE_BODY_NOT_REPO_AND_NOT_REPO_CREATE_ACTION" | "CODE_SHIFT_API_2102_BAD_REQUEST_DATE_MAX_INTERVAL" | "CODE_SHIFT_API_2103_BAD_REQUEST_INVALID_PAGE" | "CODE_SHIFT_API_2104_BAD_REQUEST_DUPLICATED_ALIAS" | "CODE_SHIFT_API_2105_BAD_REQUEST_INVALID_REPO_URL" | "CODE_SHIFT_API_2110_BAD_REQUEST_PUT_STEP_STATUS_COMPLETED_WITHOUT_CONCLUSION" | "CODE_SHIFT_API_2112_BAD_REQUEST_PUT_STEP_STATUS_NOT_COMPLETED_AND_CONCLUSION_DEFINED" | "CODE_SHIFT_API_2113_BAD_REQUEST_PUT_STEP_STATUS_COMPLETED_AND_COMPLETED_AT_NOT_DEFINED" | "CODE_SHIFT_API_2114_BAD_REQUEST_PUT_STEP_STATUS_IN_PROGRESS_AND_STARTED_AT_NOT_DEFINED" | "CODE_SHIFT_API_2115_BAD_REQUEST_PUT_STEP_COMPLETED_AT_DEFINED_AND_STATUS_NOT_COMPLETED" | "CODE_SHIFT_API_2116_BAD_REQUEST_PUT_STEP_STARTED_AT_DEFINED_AND_STATUS_PENDING" | "CODE_SHIFT_API_2117_BAD_REQUEST_PUT_STEP_LOG_DEFINED_AND_CONCLUSION_IS_NOT_FAILURE" | "CODE_SHIFT_API_2120_BAD_REQUEST_MULTIPLE_INTEGRATION" | "CODE_SHIFT_API_2121_BAD_REQUEST_EMPTY_INTEGRATION" | "CODE_SHIFT_API_2121_BAD_REQUEST_EMPTY_TARGET" | "CODE_SHIFT_API_2121_BAD_REQUEST_FILLED_TARGET" | "CODE_SHIFT_API_2999_BAD_REQUEST_UNMAPPED";
|
|
65
65
|
export type InvalidPayloadDetails = {
|
|
66
66
|
code: BadRequestExceptionTypes | ExceptionType;
|
|
@@ -264,8 +264,6 @@ export type PutReportRequest = {
|
|
|
264
264
|
customOutputs?: {
|
|
265
265
|
[key: string]: any;
|
|
266
266
|
} | null;
|
|
267
|
-
totalTokenSent?: number | null;
|
|
268
|
-
totalTokenReceived?: number | null;
|
|
269
267
|
};
|
|
270
268
|
export type ModuleResponse2 = {
|
|
271
269
|
id: string;
|
|
@@ -347,8 +345,6 @@ export type GetReportResponse = {
|
|
|
347
345
|
customOutputs?: {
|
|
348
346
|
[key: string]: any;
|
|
349
347
|
} | null;
|
|
350
|
-
totalTokenSent?: number | null;
|
|
351
|
-
totalTokenReceived?: number | null;
|
|
352
348
|
targetFiles: TargetFilesResponse[];
|
|
353
349
|
errorLog?: string | null;
|
|
354
350
|
exceptions: HttpErrorResponse[];
|
|
@@ -382,8 +378,6 @@ export type GetReportResponseRead = {
|
|
|
382
378
|
customOutputs?: {
|
|
383
379
|
[key: string]: any;
|
|
384
380
|
} | null;
|
|
385
|
-
totalTokenSent?: number | null;
|
|
386
|
-
totalTokenReceived?: number | null;
|
|
387
381
|
targetFiles: TargetFilesResponse[];
|
|
388
382
|
errorLog?: string | null;
|
|
389
383
|
exceptions: HttpErrorResponseRead[];
|
|
@@ -966,7 +960,7 @@ export type AnalyticsRepositoryDetailedReportResponse = {
|
|
|
966
960
|
};
|
|
967
961
|
export type ProgramGroupsTargetDetailsResponse = {
|
|
968
962
|
programGroupName: string;
|
|
969
|
-
programGroupTags?: string
|
|
963
|
+
programGroupTags?: string | null;
|
|
970
964
|
mode: string;
|
|
971
965
|
moduleName: string;
|
|
972
966
|
reportCreatedAt: string;
|
|
@@ -977,35 +971,17 @@ export type ProgramGroupsTargetDetailsResponse = {
|
|
|
977
971
|
componentType: string;
|
|
978
972
|
totalIssues?: number;
|
|
979
973
|
changedFilesCount?: number;
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
974
|
+
reportOutputs?: string | null;
|
|
975
|
+
aiAdjusted?: string | null;
|
|
976
|
+
changemanPackage?: string | null;
|
|
983
977
|
};
|
|
984
978
|
export type AnalyticsProgramGroupsTargetDetailsResponse = {
|
|
985
979
|
totalComponents?: number;
|
|
986
980
|
totalIssues?: number;
|
|
987
|
-
|
|
981
|
+
totalChangedFiles?: number;
|
|
988
982
|
totalItems?: number;
|
|
989
983
|
items?: ProgramGroupsTargetDetailsResponse[];
|
|
990
984
|
};
|
|
991
|
-
export type RepositoryTargetDetailsItemResponse = {
|
|
992
|
-
repositoryUrl: string;
|
|
993
|
-
sourceBranch: string | null;
|
|
994
|
-
moduleName: string | null;
|
|
995
|
-
targetName: string | null;
|
|
996
|
-
moduleInputs: string | null;
|
|
997
|
-
targetPath: string | null;
|
|
998
|
-
targetDetails: string | null;
|
|
999
|
-
issuesCount?: number | null;
|
|
1000
|
-
reportCreatedAt: string | null;
|
|
1001
|
-
reportId: string | null;
|
|
1002
|
-
};
|
|
1003
|
-
export type AnalyticsRepositoryTargetDetailsResponse = {
|
|
1004
|
-
totalFiles?: number;
|
|
1005
|
-
totalIssues?: number;
|
|
1006
|
-
totalItems?: number;
|
|
1007
|
-
items?: RepositoryTargetDetailsItemResponse[];
|
|
1008
|
-
};
|
|
1009
985
|
export type UserResponse6 = {
|
|
1010
986
|
id: string;
|
|
1011
987
|
name: string;
|
|
@@ -1015,41 +991,6 @@ export type ListUserResponse = {
|
|
|
1015
991
|
items: UserResponse6[];
|
|
1016
992
|
itemsCount: number;
|
|
1017
993
|
};
|
|
1018
|
-
export type SearchReposInScmRequest = {
|
|
1019
|
-
repositoryName: string;
|
|
1020
|
-
codeTerm?: string | null;
|
|
1021
|
-
};
|
|
1022
|
-
export type SearchReposInScmResponse = {
|
|
1023
|
-
search_id: string;
|
|
1024
|
-
};
|
|
1025
|
-
export type RepositoryPayload = {
|
|
1026
|
-
url: string;
|
|
1027
|
-
tags: string[];
|
|
1028
|
-
};
|
|
1029
|
-
export type ImportReposScmWithTagsRequest = {
|
|
1030
|
-
repositories: RepositoryPayload[];
|
|
1031
|
-
};
|
|
1032
|
-
export type SearchRepoByIdResponse = {
|
|
1033
|
-
url: string;
|
|
1034
|
-
name: string;
|
|
1035
|
-
defaultBranch: string;
|
|
1036
|
-
lastCommitDate: string;
|
|
1037
|
-
archived: boolean;
|
|
1038
|
-
visibility?: "public" | "private" | "internal";
|
|
1039
|
-
alreadyCreated?: boolean;
|
|
1040
|
-
};
|
|
1041
|
-
export type ResponseSearchRepoByIdResponse = {
|
|
1042
|
-
total: number | null;
|
|
1043
|
-
status?: string;
|
|
1044
|
-
exceptions: HttpErrorResponse[];
|
|
1045
|
-
items?: SearchRepoByIdResponse[];
|
|
1046
|
-
};
|
|
1047
|
-
export type ResponseSearchRepoByIdResponseRead = {
|
|
1048
|
-
total: number | null;
|
|
1049
|
-
status?: string;
|
|
1050
|
-
exceptions: HttpErrorResponseRead[];
|
|
1051
|
-
items?: SearchRepoByIdResponse[];
|
|
1052
|
-
};
|
|
1053
994
|
/**
|
|
1054
995
|
* Check Role Route
|
|
1055
996
|
*/
|
|
@@ -1670,7 +1611,7 @@ export function listRepositoryServiceV1ReposGet({ pageSize, page, lastEvaluatedK
|
|
|
1670
1611
|
createdByEmail?: string | null;
|
|
1671
1612
|
reportByEmail?: string | null;
|
|
1672
1613
|
orderBy?: "repository.url" | "repository.created_at" | "repository.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
|
|
1673
|
-
orderDirection?:
|
|
1614
|
+
orderDirection?: string;
|
|
1674
1615
|
tags?: string[] | null;
|
|
1675
1616
|
authorization: string;
|
|
1676
1617
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1721,7 +1662,7 @@ export function listRepositoryDownloadServiceV1ReposDownloadGet({ filter, module
|
|
|
1721
1662
|
createdByEmail?: string | null;
|
|
1722
1663
|
reportByEmail?: string | null;
|
|
1723
1664
|
orderBy?: "repository.url" | "repository.created_at" | "repository.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
|
|
1724
|
-
orderDirection?:
|
|
1665
|
+
orderDirection?: string;
|
|
1725
1666
|
tags?: string[] | null;
|
|
1726
1667
|
extension?: "csv" | "xlsx";
|
|
1727
1668
|
authorization: string;
|
|
@@ -2134,7 +2075,7 @@ export function listProgramGroupServiceV1ProgramGroupsGet({ moduleId, createdByE
|
|
|
2134
2075
|
pageSize?: number;
|
|
2135
2076
|
page?: number;
|
|
2136
2077
|
orderBy?: "program_group.name" | "program_group.created_at" | "program_group.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
|
|
2137
|
-
orderDirection?:
|
|
2078
|
+
orderDirection?: string;
|
|
2138
2079
|
integrationId?: string;
|
|
2139
2080
|
authorization: string;
|
|
2140
2081
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2172,7 +2113,7 @@ export function listProgramGroupDownloadServiceV1ProgramGroupsDownloadGet({ modu
|
|
|
2172
2113
|
tags?: string[] | null;
|
|
2173
2114
|
name?: string | null;
|
|
2174
2115
|
orderBy?: "program_group.name" | "program_group.created_at" | "program_group.updated_at" | "report.issues_count" | "report.total_files_count" | "report.analyzed_files_count" | "report.issues_files_count" | "report.created_at" | "report.updated_at" | "execution.status";
|
|
2175
|
-
orderDirection?:
|
|
2116
|
+
orderDirection?: string;
|
|
2176
2117
|
integrationId?: string;
|
|
2177
2118
|
extension?: "csv" | "xlsx";
|
|
2178
2119
|
authorization: string;
|
|
@@ -3255,120 +3196,6 @@ export function analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGro
|
|
|
3255
3196
|
})
|
|
3256
3197
|
}));
|
|
3257
3198
|
}
|
|
3258
|
-
/**
|
|
3259
|
-
* Analytics Repository Target Details
|
|
3260
|
-
*/
|
|
3261
|
-
export function analyticsRepositoryTargetDetailsV1AnalyticsRepositoriesTargetDetailsGet({ pageSize, page, repositoryUrl, targetName, tags, mode, moduleId, reportCreatedById, startDate, endDate, orderBy, orderDirection, authorization }: {
|
|
3262
|
-
pageSize?: number;
|
|
3263
|
-
page?: number;
|
|
3264
|
-
repositoryUrl?: string | null;
|
|
3265
|
-
targetName?: string | null;
|
|
3266
|
-
tags?: string[] | null;
|
|
3267
|
-
mode?: ("scan" | "fix") | null;
|
|
3268
|
-
moduleId?: string[] | null;
|
|
3269
|
-
reportCreatedById?: string[] | null;
|
|
3270
|
-
startDate?: string;
|
|
3271
|
-
endDate?: string;
|
|
3272
|
-
orderBy?: ("repositoryUrl" | "sourceBranch" | "moduleName" | "targetName" | "targetPath" | "issuesCount" | "reportCreatedAt") | null;
|
|
3273
|
-
orderDirection?: ("ASC" | "DESC") | null;
|
|
3274
|
-
authorization: string;
|
|
3275
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
3276
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3277
|
-
status: 200;
|
|
3278
|
-
data: AnalyticsRepositoryTargetDetailsResponse;
|
|
3279
|
-
} | {
|
|
3280
|
-
status: 400;
|
|
3281
|
-
data: HttpErrorResponseRead;
|
|
3282
|
-
} | {
|
|
3283
|
-
status: 401;
|
|
3284
|
-
data: HttpErrorResponseRead;
|
|
3285
|
-
} | {
|
|
3286
|
-
status: 404;
|
|
3287
|
-
data: HttpErrorResponseRead;
|
|
3288
|
-
} | {
|
|
3289
|
-
status: 422;
|
|
3290
|
-
} | {
|
|
3291
|
-
status: 500;
|
|
3292
|
-
data: HttpErrorResponseRead;
|
|
3293
|
-
} | {
|
|
3294
|
-
status: 503;
|
|
3295
|
-
data: HttpErrorResponseRead;
|
|
3296
|
-
}>(`/v1/analytics/repositories/target-details${QS.query(QS.explode({
|
|
3297
|
-
pageSize,
|
|
3298
|
-
page,
|
|
3299
|
-
repositoryUrl,
|
|
3300
|
-
targetName,
|
|
3301
|
-
tags,
|
|
3302
|
-
mode,
|
|
3303
|
-
moduleId,
|
|
3304
|
-
reportCreatedById,
|
|
3305
|
-
startDate,
|
|
3306
|
-
endDate,
|
|
3307
|
-
orderBy,
|
|
3308
|
-
orderDirection
|
|
3309
|
-
}))}`, {
|
|
3310
|
-
...opts,
|
|
3311
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3312
|
-
authorization
|
|
3313
|
-
})
|
|
3314
|
-
}));
|
|
3315
|
-
}
|
|
3316
|
-
/**
|
|
3317
|
-
* Analytics Repository Target Details Download
|
|
3318
|
-
*/
|
|
3319
|
-
export function analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet({ repositoryUrl, targetName, tags, mode, moduleId, reportCreatedById, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
|
|
3320
|
-
repositoryUrl?: string | null;
|
|
3321
|
-
targetName?: string | null;
|
|
3322
|
-
tags?: string[] | null;
|
|
3323
|
-
mode?: ("scan" | "fix") | null;
|
|
3324
|
-
moduleId?: string[] | null;
|
|
3325
|
-
reportCreatedById?: string[] | null;
|
|
3326
|
-
startDate?: string;
|
|
3327
|
-
endDate?: string;
|
|
3328
|
-
orderBy?: ("repositoryUrl" | "sourceBranch" | "moduleName" | "targetName" | "targetPath" | "issuesCount" | "reportCreatedAt") | null;
|
|
3329
|
-
orderDirection?: ("ASC" | "DESC") | null;
|
|
3330
|
-
extension?: "csv" | "xlsx";
|
|
3331
|
-
authorization: string;
|
|
3332
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
3333
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3334
|
-
status: 200;
|
|
3335
|
-
data: any;
|
|
3336
|
-
} | {
|
|
3337
|
-
status: 400;
|
|
3338
|
-
data: HttpErrorResponseRead;
|
|
3339
|
-
} | {
|
|
3340
|
-
status: 401;
|
|
3341
|
-
data: HttpErrorResponseRead;
|
|
3342
|
-
} | {
|
|
3343
|
-
status: 404;
|
|
3344
|
-
data: HttpErrorResponseRead;
|
|
3345
|
-
} | {
|
|
3346
|
-
status: 422;
|
|
3347
|
-
} | {
|
|
3348
|
-
status: 500;
|
|
3349
|
-
data: HttpErrorResponseRead;
|
|
3350
|
-
} | {
|
|
3351
|
-
status: 503;
|
|
3352
|
-
data: HttpErrorResponseRead;
|
|
3353
|
-
}>(`/v1/analytics/repositories/target-details/download${QS.query(QS.explode({
|
|
3354
|
-
repositoryUrl,
|
|
3355
|
-
targetName,
|
|
3356
|
-
tags,
|
|
3357
|
-
mode,
|
|
3358
|
-
moduleId,
|
|
3359
|
-
reportCreatedById,
|
|
3360
|
-
startDate,
|
|
3361
|
-
endDate,
|
|
3362
|
-
orderBy,
|
|
3363
|
-
orderDirection,
|
|
3364
|
-
extension
|
|
3365
|
-
}))}`, {
|
|
3366
|
-
...opts,
|
|
3367
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3368
|
-
authorization
|
|
3369
|
-
})
|
|
3370
|
-
}));
|
|
3371
|
-
}
|
|
3372
3199
|
/**
|
|
3373
3200
|
* List User Service
|
|
3374
3201
|
*/
|
|
@@ -3388,113 +3215,3 @@ export function listUserServiceV1UsersGet({ authorization }: {
|
|
|
3388
3215
|
})
|
|
3389
3216
|
}));
|
|
3390
3217
|
}
|
|
3391
|
-
/**
|
|
3392
|
-
* Search Repos Scm Service
|
|
3393
|
-
*/
|
|
3394
|
-
export function searchReposScmServiceV2ReposSearchScmPost({ authorization, searchReposInScmRequest }: {
|
|
3395
|
-
authorization: string;
|
|
3396
|
-
searchReposInScmRequest: SearchReposInScmRequest;
|
|
3397
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
3398
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3399
|
-
status: 200;
|
|
3400
|
-
data: SearchReposInScmResponse;
|
|
3401
|
-
} | {
|
|
3402
|
-
status: 207;
|
|
3403
|
-
data: HttpErrorResponseRead;
|
|
3404
|
-
} | {
|
|
3405
|
-
status: 400;
|
|
3406
|
-
data: HttpErrorResponseRead;
|
|
3407
|
-
} | {
|
|
3408
|
-
status: 401;
|
|
3409
|
-
data: HttpErrorResponseRead;
|
|
3410
|
-
} | {
|
|
3411
|
-
status: 404;
|
|
3412
|
-
data: HttpErrorResponseRead;
|
|
3413
|
-
} | {
|
|
3414
|
-
status: 422;
|
|
3415
|
-
} | {
|
|
3416
|
-
status: 500;
|
|
3417
|
-
data: HttpErrorResponseRead;
|
|
3418
|
-
} | {
|
|
3419
|
-
status: 503;
|
|
3420
|
-
data: HttpErrorResponseRead;
|
|
3421
|
-
}>("/v2/repos/search-scm", oazapfts.json({
|
|
3422
|
-
...opts,
|
|
3423
|
-
method: "POST",
|
|
3424
|
-
body: searchReposInScmRequest,
|
|
3425
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3426
|
-
authorization
|
|
3427
|
-
})
|
|
3428
|
-
})));
|
|
3429
|
-
}
|
|
3430
|
-
/**
|
|
3431
|
-
* Import Repos With Tags Scm Service
|
|
3432
|
-
*/
|
|
3433
|
-
export function importReposWithTagsScmServiceV2ReposSearchScmSearchIdPost({ searchId, authorization, importReposScmWithTagsRequest }: {
|
|
3434
|
-
searchId: string;
|
|
3435
|
-
authorization: string;
|
|
3436
|
-
importReposScmWithTagsRequest: ImportReposScmWithTagsRequest;
|
|
3437
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
3438
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3439
|
-
status: 200;
|
|
3440
|
-
data: SearchReposInScmResponse;
|
|
3441
|
-
} | {
|
|
3442
|
-
status: 400;
|
|
3443
|
-
data: HttpErrorResponseRead;
|
|
3444
|
-
} | {
|
|
3445
|
-
status: 401;
|
|
3446
|
-
data: HttpErrorResponseRead;
|
|
3447
|
-
} | {
|
|
3448
|
-
status: 404;
|
|
3449
|
-
data: HttpErrorResponseRead;
|
|
3450
|
-
} | {
|
|
3451
|
-
status: 422;
|
|
3452
|
-
} | {
|
|
3453
|
-
status: 500;
|
|
3454
|
-
data: HttpErrorResponseRead;
|
|
3455
|
-
} | {
|
|
3456
|
-
status: 503;
|
|
3457
|
-
data: HttpErrorResponseRead;
|
|
3458
|
-
}>(`/v2/repos/search-scm/${encodeURIComponent(searchId)}`, oazapfts.json({
|
|
3459
|
-
...opts,
|
|
3460
|
-
method: "POST",
|
|
3461
|
-
body: importReposScmWithTagsRequest,
|
|
3462
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3463
|
-
authorization
|
|
3464
|
-
})
|
|
3465
|
-
})));
|
|
3466
|
-
}
|
|
3467
|
-
/**
|
|
3468
|
-
* Search Repos Scm V2
|
|
3469
|
-
*/
|
|
3470
|
-
export function searchReposScmV2V2ReposSearchScmSearchIdGet({ searchId, authorization }: {
|
|
3471
|
-
searchId: string;
|
|
3472
|
-
authorization: string;
|
|
3473
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
3474
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3475
|
-
status: 200;
|
|
3476
|
-
data: ResponseSearchRepoByIdResponseRead;
|
|
3477
|
-
} | {
|
|
3478
|
-
status: 400;
|
|
3479
|
-
data: HttpErrorResponseRead;
|
|
3480
|
-
} | {
|
|
3481
|
-
status: 401;
|
|
3482
|
-
data: HttpErrorResponseRead;
|
|
3483
|
-
} | {
|
|
3484
|
-
status: 404;
|
|
3485
|
-
data: HttpErrorResponseRead;
|
|
3486
|
-
} | {
|
|
3487
|
-
status: 422;
|
|
3488
|
-
} | {
|
|
3489
|
-
status: 500;
|
|
3490
|
-
data: HttpErrorResponseRead;
|
|
3491
|
-
} | {
|
|
3492
|
-
status: 503;
|
|
3493
|
-
data: HttpErrorResponseRead;
|
|
3494
|
-
}>(`/v2/repos/search-scm/${encodeURIComponent(searchId)}`, {
|
|
3495
|
-
...opts,
|
|
3496
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3497
|
-
authorization
|
|
3498
|
-
})
|
|
3499
|
-
}));
|
|
3500
|
-
}
|
package/src/api/notification.ts
CHANGED
|
@@ -52,7 +52,7 @@ class AgentToolsClient extends ReactQueryNetworkClient {
|
|
|
52
52
|
/**
|
|
53
53
|
* List agents
|
|
54
54
|
*/
|
|
55
|
-
agents = this.infiniteQuery(removeAuthorizationParam(listAgentsV1AgentsGet)
|
|
55
|
+
agents = this.infiniteQuery(removeAuthorizationParam(listAgentsV1AgentsGet))
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
58
|
* List agents available to be added to other agents
|
|
@@ -81,7 +81,7 @@ class AgentToolsClient extends ReactQueryNetworkClient {
|
|
|
81
81
|
name: 'agentDefault',
|
|
82
82
|
request: async (signal) => {
|
|
83
83
|
const agentDefault = await listAgentsV1AgentsGet(
|
|
84
|
-
{
|
|
84
|
+
{ visibility: 'built_in', slug: this.agentDefaultSlug, authorization: '' }, { signal },
|
|
85
85
|
)
|
|
86
86
|
|
|
87
87
|
const agentId = agentDefault?.find((agent) => agent.slug === this.agentDefaultSlug)?.id
|
|
@@ -109,7 +109,7 @@ class AgentToolsClient extends ReactQueryNetworkClient {
|
|
|
109
109
|
|
|
110
110
|
const [workspaceAgents, ...agentsByVisibility] = await Promise.all([
|
|
111
111
|
workspaceAgentsPromise,
|
|
112
|
-
...visibilities.map((visibility) => listAgentsV1AgentsGet({
|
|
112
|
+
...visibilities.map((visibility) => listAgentsV1AgentsGet({ visibility, authorization: '' }, { signal })),
|
|
113
113
|
])
|
|
114
114
|
|
|
115
115
|
const workspaceAgentsWithSpaceName = workspaceAgents.flatMap(({ agents, space_name }) =>
|
package/src/client/ai.ts
CHANGED
package/src/client/code-shift.ts
CHANGED
|
@@ -58,11 +58,6 @@ import {
|
|
|
58
58
|
getModuleV1ModulesModuleIdGet,
|
|
59
59
|
analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet,
|
|
60
60
|
analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet,
|
|
61
|
-
analyticsRepositoryTargetDetailsV1AnalyticsRepositoriesTargetDetailsGet,
|
|
62
|
-
analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet,
|
|
63
|
-
searchReposScmServiceV2ReposSearchScmPost,
|
|
64
|
-
importReposWithTagsScmServiceV2ReposSearchScmSearchIdPost,
|
|
65
|
-
searchReposScmV2V2ReposSearchScmSearchIdGet,
|
|
66
61
|
} from '../api/codeShift'
|
|
67
62
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
68
63
|
import { codeShiftDictionary } from '../error/dictionary/code-shift'
|
|
@@ -164,18 +159,6 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
164
159
|
* Downloads file with found repositories
|
|
165
160
|
*/
|
|
166
161
|
downloadSearchRepository = this.mutation(removeAuthorizationParam(downloadSearchReposScmServiceV1ReposSearchScmSearchRepoIdDownloadGet))
|
|
167
|
-
/**
|
|
168
|
-
* Searches for repositories (v2)
|
|
169
|
-
*/
|
|
170
|
-
searchRepositoryV2 = this.mutation(removeAuthorizationParam(searchReposScmServiceV2ReposSearchScmPost))
|
|
171
|
-
/**
|
|
172
|
-
* Imports repositories (v2)
|
|
173
|
-
*/
|
|
174
|
-
importRepositories = this.mutation(removeAuthorizationParam(importReposWithTagsScmServiceV2ReposSearchScmSearchIdPost))
|
|
175
|
-
/**
|
|
176
|
-
* Gets repositories search by id (v2)
|
|
177
|
-
*/
|
|
178
|
-
getRepositoriesBySearchId = this.query(removeAuthorizationParam(searchReposScmV2V2ReposSearchScmSearchIdGet))
|
|
179
162
|
/**
|
|
180
163
|
* Validate if the user has permission.
|
|
181
164
|
* We do not use opa in this api, so this is the fn needed to check permissions.
|
|
@@ -347,18 +330,6 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
347
330
|
analyticsProgramGroupsTargetDetailsDownload = this.query(
|
|
348
331
|
removeAuthorizationParam(analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet),
|
|
349
332
|
)
|
|
350
|
-
/**
|
|
351
|
-
* Analytics Repository Target Details
|
|
352
|
-
*/
|
|
353
|
-
analyticsRepositoryTargetDetails = this.query(
|
|
354
|
-
removeAuthorizationParam(analyticsRepositoryTargetDetailsV1AnalyticsRepositoriesTargetDetailsGet),
|
|
355
|
-
)
|
|
356
|
-
/**
|
|
357
|
-
* Analytics Repository Target Details Download
|
|
358
|
-
*/
|
|
359
|
-
analyticsRepositoryTargetDetailsDownload = this.query(
|
|
360
|
-
removeAuthorizationParam(analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet),
|
|
361
|
-
)
|
|
362
333
|
}
|
|
363
334
|
|
|
364
335
|
export const codeShiftClient = new CodeShift()
|