@stack-spot/portal-network 0.179.0 → 0.180.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 +312 -0
- package/dist/api/agent-tools.d.ts +72 -1
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +36 -1
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/codeShift.d.ts +177 -10
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +97 -0
- package/dist/api/codeShift.js.map +1 -1
- package/dist/apis-itau.json +1 -1
- package/dist/client/agent-tools.d.ts +13 -0
- 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/ai.d.ts.map +1 -1
- package/dist/client/ai.js +69 -15
- package/dist/client/ai.js.map +1 -1
- package/dist/client/code-shift.d.ts +69 -4
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +55 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/types.d.ts +26 -6
- package/dist/client/types.d.ts.map +1 -1
- package/dist/error/DefaultAPIError.d.ts.map +1 -1
- package/dist/error/DefaultAPIError.js.map +1 -1
- package/dist/error/StackspotAPIError.d.ts +3 -4
- package/dist/error/StackspotAPIError.d.ts.map +1 -1
- package/dist/error/StackspotAPIError.js +3 -3
- package/dist/error/StackspotAPIError.js.map +1 -1
- package/package.json +2 -2
- package/readme.md +1 -1
- package/src/api/account.ts +1 -0
- package/src/api/agent-tools.ts +117 -1
- package/src/api/agent.ts +2 -0
- package/src/api/codeShift.ts +375 -12
- package/src/api/notification.ts +2 -0
- package/src/apis-itau.json +1 -1
- package/src/client/agent-tools.ts +6 -1
- package/src/client/ai.ts +72 -14
- package/src/client/code-shift.ts +36 -0
- package/src/client/types.ts +27 -6
- package/src/error/DefaultAPIError.ts +5 -5
- package/src/error/StackspotAPIError.ts +4 -4
package/src/api/codeShift.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
5
|
* See https://www.npmjs.com/package/oazapfts
|
|
6
6
|
*/
|
|
7
|
-
import * as Oazapfts from "@oazapfts/runtime"
|
|
8
|
-
import * as QS from "@oazapfts/runtime/query"
|
|
7
|
+
import * as Oazapfts from "@oazapfts/runtime"
|
|
8
|
+
import * as QS from "@oazapfts/runtime/query"
|
|
9
9
|
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
10
|
headers: {},
|
|
11
11
|
baseUrl: "/",
|
|
@@ -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" | "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"
|
|
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_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_SCORE_OUT_OF_RANGE_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_3160_SCM_GET_REPOSITORY_FILE_FAILURE" | "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,6 +264,8 @@ export type PutReportRequest = {
|
|
|
264
264
|
customOutputs?: {
|
|
265
265
|
[key: string]: any;
|
|
266
266
|
} | null;
|
|
267
|
+
totalTokenSent?: number | null;
|
|
268
|
+
totalTokenReceived?: number | null;
|
|
267
269
|
};
|
|
268
270
|
export type ModuleResponse2 = {
|
|
269
271
|
id: string;
|
|
@@ -345,6 +347,8 @@ export type GetReportResponse = {
|
|
|
345
347
|
customOutputs?: {
|
|
346
348
|
[key: string]: any;
|
|
347
349
|
} | null;
|
|
350
|
+
totalTokenSent?: number | null;
|
|
351
|
+
totalTokenReceived?: number | null;
|
|
348
352
|
targetFiles: TargetFilesResponse[];
|
|
349
353
|
errorLog?: string | null;
|
|
350
354
|
exceptions: HttpErrorResponse[];
|
|
@@ -378,6 +382,8 @@ export type GetReportResponseRead = {
|
|
|
378
382
|
customOutputs?: {
|
|
379
383
|
[key: string]: any;
|
|
380
384
|
} | null;
|
|
385
|
+
totalTokenSent?: number | null;
|
|
386
|
+
totalTokenReceived?: number | null;
|
|
381
387
|
targetFiles: TargetFilesResponse[];
|
|
382
388
|
errorLog?: string | null;
|
|
383
389
|
exceptions: HttpErrorResponseRead[];
|
|
@@ -386,10 +392,16 @@ export type GetReportResponseRead = {
|
|
|
386
392
|
inputs?: {
|
|
387
393
|
[key: string]: any;
|
|
388
394
|
} | null;
|
|
395
|
+
customerScore?: number | null
|
|
396
|
+
customerCommentary?: string | null
|
|
389
397
|
};
|
|
390
398
|
export type GetPullRequest = {
|
|
391
399
|
content: string;
|
|
392
400
|
};
|
|
401
|
+
export type PutCustomerRatingReportRequest = {
|
|
402
|
+
score: number
|
|
403
|
+
commentary?: string | null
|
|
404
|
+
}
|
|
393
405
|
export type SearchRepoScmResponse = {
|
|
394
406
|
id: string;
|
|
395
407
|
};
|
|
@@ -791,6 +803,8 @@ export type RepositoryLastReportStatusResponse = {
|
|
|
791
803
|
totalIssues: number | null;
|
|
792
804
|
pullRequestLink: string | null;
|
|
793
805
|
merged: boolean | null;
|
|
806
|
+
customerScore?: number | null
|
|
807
|
+
customerCommentary?: string | null
|
|
794
808
|
};
|
|
795
809
|
export type AnalyticsRepositoryLastReportStatusResponse = {
|
|
796
810
|
totalFiles?: number;
|
|
@@ -813,6 +827,8 @@ export type RepositoryUsageResponse = {
|
|
|
813
827
|
totalFixFailure?: number;
|
|
814
828
|
totalPullRequests?: number;
|
|
815
829
|
mergedPullRequests?: number;
|
|
830
|
+
averageRating?: number
|
|
831
|
+
totalRatings?: number
|
|
816
832
|
};
|
|
817
833
|
export type AnalyticsRepositoryUsageResponse = {
|
|
818
834
|
totalScan?: number;
|
|
@@ -823,6 +839,8 @@ export type AnalyticsRepositoryUsageResponse = {
|
|
|
823
839
|
totalFixFailure?: number;
|
|
824
840
|
totalPullRequests?: number;
|
|
825
841
|
mergedPullRequests?: number;
|
|
842
|
+
overallAverageRating?: number
|
|
843
|
+
totalRatings?: number;
|
|
826
844
|
items: RepositoryUsageResponse[];
|
|
827
845
|
totalItems?: number;
|
|
828
846
|
};
|
|
@@ -832,17 +850,25 @@ export type UserUsageResponse = {
|
|
|
832
850
|
totalScan?: number;
|
|
833
851
|
totalScanSuccess?: number;
|
|
834
852
|
totalScanFailure?: number;
|
|
853
|
+
averageScanRating?: number
|
|
854
|
+
ratedScanCount?: number;
|
|
835
855
|
totalFix?: number;
|
|
836
856
|
totalFixSuccess?: number;
|
|
837
857
|
totalFixFailure?: number;
|
|
858
|
+
averageFixRating?: number
|
|
859
|
+
ratedFixCount?: number
|
|
838
860
|
};
|
|
839
861
|
export type AnalyticsUserUsageResponse = {
|
|
840
862
|
totalScan?: number;
|
|
841
863
|
totalScanSuccess?: number;
|
|
842
864
|
totalScanFailure?: number;
|
|
865
|
+
averageScanRating?: number
|
|
866
|
+
totalRatedScans?: number;
|
|
843
867
|
totalFix?: number;
|
|
844
868
|
totalFixSuccess?: number;
|
|
845
869
|
totalFixFailure?: number;
|
|
870
|
+
averageFixRating?: number
|
|
871
|
+
totalRatedFixes?: number;
|
|
846
872
|
items: UserUsageResponse[];
|
|
847
873
|
totalItems?: number;
|
|
848
874
|
};
|
|
@@ -852,6 +878,8 @@ export type ProgramGroupLastReportStatusResponse = {
|
|
|
852
878
|
mode: string;
|
|
853
879
|
reportCreatedAt: string;
|
|
854
880
|
reportCreatedBy: string;
|
|
881
|
+
customerScore?: number | null
|
|
882
|
+
customerCommentary?: string | null;
|
|
855
883
|
totalFiles?: number;
|
|
856
884
|
totalFilesAnalyzed?: number;
|
|
857
885
|
totalFilesIssues?: number;
|
|
@@ -875,6 +903,8 @@ export type ProgramGroupsUsageResponse = {
|
|
|
875
903
|
totalFix?: number;
|
|
876
904
|
totalFixSuccess?: number;
|
|
877
905
|
totalFixFailure?: number;
|
|
906
|
+
averageRating?: number
|
|
907
|
+
totalRatings?: number
|
|
878
908
|
};
|
|
879
909
|
export type AnalyticsProgramGroupsUsageResponse = {
|
|
880
910
|
totalScan?: number;
|
|
@@ -883,6 +913,8 @@ export type AnalyticsProgramGroupsUsageResponse = {
|
|
|
883
913
|
totalFix?: number;
|
|
884
914
|
totalFixSuccess?: number;
|
|
885
915
|
totalFixFailure?: number;
|
|
916
|
+
overallAverageRating?: number
|
|
917
|
+
totalRatings?: number;
|
|
886
918
|
items: ProgramGroupsUsageResponse[];
|
|
887
919
|
totalItems?: number;
|
|
888
920
|
};
|
|
@@ -907,6 +939,9 @@ export type ProgramGroupsDetailsResponse = {
|
|
|
907
939
|
issuesFilesCount?: number;
|
|
908
940
|
changedFilesCount?: number;
|
|
909
941
|
issuesCount?: number;
|
|
942
|
+
customerScore?: number | null
|
|
943
|
+
customerCommentary?: string | null
|
|
944
|
+
customerRatingCreatedAt?: string | null
|
|
910
945
|
};
|
|
911
946
|
export type AnalyticsProgramGroupsDetailsResponse = {
|
|
912
947
|
programsCount?: number;
|
|
@@ -946,6 +981,9 @@ export type RepositoryDetailedReportItemResponse = {
|
|
|
946
981
|
targetBranch?: string | null;
|
|
947
982
|
totalFilesCount?: number;
|
|
948
983
|
status?: string | null;
|
|
984
|
+
customerScore?: number | null
|
|
985
|
+
customerCommentary?: string | null
|
|
986
|
+
customerRatingCreatedAt?: string | null
|
|
949
987
|
};
|
|
950
988
|
export type AnalyticsRepositoryDetailedReportResponse = {
|
|
951
989
|
reposCount?: number;
|
|
@@ -960,7 +998,7 @@ export type AnalyticsRepositoryDetailedReportResponse = {
|
|
|
960
998
|
};
|
|
961
999
|
export type ProgramGroupsTargetDetailsResponse = {
|
|
962
1000
|
programGroupName: string;
|
|
963
|
-
programGroupTags?: string | null;
|
|
1001
|
+
programGroupTags?: string[] | null;
|
|
964
1002
|
mode: string;
|
|
965
1003
|
moduleName: string;
|
|
966
1004
|
reportCreatedAt: string;
|
|
@@ -971,17 +1009,39 @@ export type ProgramGroupsTargetDetailsResponse = {
|
|
|
971
1009
|
componentType: string;
|
|
972
1010
|
totalIssues?: number;
|
|
973
1011
|
changedFilesCount?: number;
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
1012
|
+
customOutputs?: {
|
|
1013
|
+
[key: string]: any;
|
|
1014
|
+
} | null;
|
|
1015
|
+
customerScore?: number | null
|
|
1016
|
+
customerCommentary?: string | null
|
|
977
1017
|
};
|
|
978
1018
|
export type AnalyticsProgramGroupsTargetDetailsResponse = {
|
|
979
1019
|
totalComponents?: number;
|
|
980
1020
|
totalIssues?: number;
|
|
981
|
-
|
|
1021
|
+
totalProgramGroups?: number;
|
|
982
1022
|
totalItems?: number;
|
|
983
1023
|
items?: ProgramGroupsTargetDetailsResponse[];
|
|
984
1024
|
};
|
|
1025
|
+
export type RepositoryTargetDetailsItemResponse = {
|
|
1026
|
+
repositoryUrl: string;
|
|
1027
|
+
sourceBranch: string | null;
|
|
1028
|
+
moduleName: string | null;
|
|
1029
|
+
targetName: string | null;
|
|
1030
|
+
moduleInputs: string | null;
|
|
1031
|
+
targetPath: string | null;
|
|
1032
|
+
targetDetails: string | null;
|
|
1033
|
+
issuesCount?: number | null;
|
|
1034
|
+
reportCreatedAt: string | null;
|
|
1035
|
+
reportId: string | null;
|
|
1036
|
+
customerScore?: number | null
|
|
1037
|
+
customerCommentary?: string | null
|
|
1038
|
+
};
|
|
1039
|
+
export type AnalyticsRepositoryTargetDetailsResponse = {
|
|
1040
|
+
totalFiles?: number;
|
|
1041
|
+
totalIssues?: number;
|
|
1042
|
+
totalItems?: number;
|
|
1043
|
+
items?: RepositoryTargetDetailsItemResponse[];
|
|
1044
|
+
};
|
|
985
1045
|
export type UserResponse6 = {
|
|
986
1046
|
id: string;
|
|
987
1047
|
name: string;
|
|
@@ -991,6 +1051,48 @@ export type ListUserResponse = {
|
|
|
991
1051
|
items: UserResponse6[];
|
|
992
1052
|
itemsCount: number;
|
|
993
1053
|
};
|
|
1054
|
+
export type SearchReposInScmRequest = {
|
|
1055
|
+
repositoryName: string;
|
|
1056
|
+
codeTerm?: string | null;
|
|
1057
|
+
};
|
|
1058
|
+
export type SearchReposInScmResponse = {
|
|
1059
|
+
search_id: string;
|
|
1060
|
+
};
|
|
1061
|
+
export type RepositoryPayload = {
|
|
1062
|
+
url: string;
|
|
1063
|
+
tags: string[];
|
|
1064
|
+
};
|
|
1065
|
+
export type ImportReposScmWithTagsRequest = {
|
|
1066
|
+
repositories: RepositoryPayload[];
|
|
1067
|
+
};
|
|
1068
|
+
export type SaveSearchReposRepositoryResponse = {
|
|
1069
|
+
id: string;
|
|
1070
|
+
};
|
|
1071
|
+
export type SaveSearchReposResponse = {
|
|
1072
|
+
search_id: string;
|
|
1073
|
+
repositories: SaveSearchReposRepositoryResponse[];
|
|
1074
|
+
};
|
|
1075
|
+
export type SearchRepoByIdResponse = {
|
|
1076
|
+
url: string
|
|
1077
|
+
name: string
|
|
1078
|
+
defaultBranch: string
|
|
1079
|
+
lastCommitDate: string
|
|
1080
|
+
archived: boolean
|
|
1081
|
+
visibility?: "public" | "private" | "internal" | "unknown"
|
|
1082
|
+
alreadyCreated?: boolean | null
|
|
1083
|
+
}
|
|
1084
|
+
export type ResponseSearchRepoByIdResponse = {
|
|
1085
|
+
total: number | null
|
|
1086
|
+
status?: string
|
|
1087
|
+
exceptions: HttpErrorResponse[]
|
|
1088
|
+
items?: SearchRepoByIdResponse[]
|
|
1089
|
+
}
|
|
1090
|
+
export type ResponseSearchRepoByIdResponseRead = {
|
|
1091
|
+
total: number | null
|
|
1092
|
+
status?: string
|
|
1093
|
+
exceptions: HttpErrorResponseRead[]
|
|
1094
|
+
items?: SearchRepoByIdResponse[]
|
|
1095
|
+
};
|
|
994
1096
|
/**
|
|
995
1097
|
* Check Role Route
|
|
996
1098
|
*/
|
|
@@ -1415,6 +1517,43 @@ export function downloadReportV1ReportsReportIdDownloadGet({ reportId, extension
|
|
|
1415
1517
|
})
|
|
1416
1518
|
}));
|
|
1417
1519
|
}
|
|
1520
|
+
/**
|
|
1521
|
+
* Put Customer Rating Report
|
|
1522
|
+
*/
|
|
1523
|
+
export function putCustomerRatingReportV1ReportsReportIdCustomerRatingPut({ reportId, authorization, putCustomerRatingReportRequest }: {
|
|
1524
|
+
reportId: string
|
|
1525
|
+
authorization: string
|
|
1526
|
+
putCustomerRatingReportRequest: PutCustomerRatingReportRequest
|
|
1527
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1528
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1529
|
+
status: 200
|
|
1530
|
+
data: any
|
|
1531
|
+
} | {
|
|
1532
|
+
status: 400
|
|
1533
|
+
data: HttpErrorResponseRead
|
|
1534
|
+
} | {
|
|
1535
|
+
status: 401
|
|
1536
|
+
data: HttpErrorResponseRead
|
|
1537
|
+
} | {
|
|
1538
|
+
status: 404
|
|
1539
|
+
data: HttpErrorResponseRead
|
|
1540
|
+
} | {
|
|
1541
|
+
status: 422
|
|
1542
|
+
} | {
|
|
1543
|
+
status: 500
|
|
1544
|
+
data: HttpErrorResponseRead
|
|
1545
|
+
} | {
|
|
1546
|
+
status: 503
|
|
1547
|
+
data: HttpErrorResponseRead
|
|
1548
|
+
}>(`/v1/reports/${encodeURIComponent(reportId)}/customer-rating`, oazapfts.json({
|
|
1549
|
+
...opts,
|
|
1550
|
+
method: "PUT",
|
|
1551
|
+
body: putCustomerRatingReportRequest,
|
|
1552
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1553
|
+
authorization
|
|
1554
|
+
})
|
|
1555
|
+
})))
|
|
1556
|
+
}
|
|
1418
1557
|
/**
|
|
1419
1558
|
* Search Repos Scm Service
|
|
1420
1559
|
*/
|
|
@@ -1611,7 +1750,7 @@ export function listRepositoryServiceV1ReposGet({ pageSize, page, lastEvaluatedK
|
|
|
1611
1750
|
createdByEmail?: string | null;
|
|
1612
1751
|
reportByEmail?: string | null;
|
|
1613
1752
|
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";
|
|
1614
|
-
orderDirection?:
|
|
1753
|
+
orderDirection?: "asc" | "desc" | "ASC" | "DESC";
|
|
1615
1754
|
tags?: string[] | null;
|
|
1616
1755
|
authorization: string;
|
|
1617
1756
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1662,7 +1801,7 @@ export function listRepositoryDownloadServiceV1ReposDownloadGet({ filter, module
|
|
|
1662
1801
|
createdByEmail?: string | null;
|
|
1663
1802
|
reportByEmail?: string | null;
|
|
1664
1803
|
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";
|
|
1665
|
-
orderDirection?:
|
|
1804
|
+
orderDirection?: "asc" | "desc" | "ASC" | "DESC";
|
|
1666
1805
|
tags?: string[] | null;
|
|
1667
1806
|
extension?: "csv" | "xlsx";
|
|
1668
1807
|
authorization: string;
|
|
@@ -2075,7 +2214,7 @@ export function listProgramGroupServiceV1ProgramGroupsGet({ moduleId, createdByE
|
|
|
2075
2214
|
pageSize?: number;
|
|
2076
2215
|
page?: number;
|
|
2077
2216
|
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";
|
|
2078
|
-
orderDirection?:
|
|
2217
|
+
orderDirection?: "asc" | "desc" | "ASC" | "DESC";
|
|
2079
2218
|
integrationId?: string;
|
|
2080
2219
|
authorization: string;
|
|
2081
2220
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2113,7 +2252,7 @@ export function listProgramGroupDownloadServiceV1ProgramGroupsDownloadGet({ modu
|
|
|
2113
2252
|
tags?: string[] | null;
|
|
2114
2253
|
name?: string | null;
|
|
2115
2254
|
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";
|
|
2116
|
-
orderDirection?:
|
|
2255
|
+
orderDirection?: "asc" | "desc" | "ASC" | "DESC";
|
|
2117
2256
|
integrationId?: string;
|
|
2118
2257
|
extension?: "csv" | "xlsx";
|
|
2119
2258
|
authorization: string;
|
|
@@ -3196,6 +3335,120 @@ export function analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGro
|
|
|
3196
3335
|
})
|
|
3197
3336
|
}));
|
|
3198
3337
|
}
|
|
3338
|
+
/**
|
|
3339
|
+
* Analytics Repository Target Details
|
|
3340
|
+
*/
|
|
3341
|
+
export function analyticsRepositoryTargetDetailsV1AnalyticsRepositoriesTargetDetailsGet({ pageSize, page, repositoryUrl, targetName, tags, mode, moduleId, reportCreatedById, startDate, endDate, orderBy, orderDirection, authorization }: {
|
|
3342
|
+
pageSize?: number;
|
|
3343
|
+
page?: number;
|
|
3344
|
+
repositoryUrl?: string | null;
|
|
3345
|
+
targetName?: string | null;
|
|
3346
|
+
tags?: string[] | null;
|
|
3347
|
+
mode?: ("scan" | "fix") | null;
|
|
3348
|
+
moduleId?: string[] | null;
|
|
3349
|
+
reportCreatedById?: string[] | null;
|
|
3350
|
+
startDate?: string;
|
|
3351
|
+
endDate?: string;
|
|
3352
|
+
orderBy?: ("repositoryUrl" | "sourceBranch" | "moduleName" | "targetName" | "targetPath" | "issuesCount" | "reportCreatedAt") | null;
|
|
3353
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
3354
|
+
authorization: string;
|
|
3355
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3356
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3357
|
+
status: 200;
|
|
3358
|
+
data: AnalyticsRepositoryTargetDetailsResponse;
|
|
3359
|
+
} | {
|
|
3360
|
+
status: 400;
|
|
3361
|
+
data: HttpErrorResponseRead;
|
|
3362
|
+
} | {
|
|
3363
|
+
status: 401;
|
|
3364
|
+
data: HttpErrorResponseRead;
|
|
3365
|
+
} | {
|
|
3366
|
+
status: 404;
|
|
3367
|
+
data: HttpErrorResponseRead;
|
|
3368
|
+
} | {
|
|
3369
|
+
status: 422;
|
|
3370
|
+
} | {
|
|
3371
|
+
status: 500;
|
|
3372
|
+
data: HttpErrorResponseRead;
|
|
3373
|
+
} | {
|
|
3374
|
+
status: 503;
|
|
3375
|
+
data: HttpErrorResponseRead;
|
|
3376
|
+
}>(`/v1/analytics/repositories/target-details${QS.query(QS.explode({
|
|
3377
|
+
pageSize,
|
|
3378
|
+
page,
|
|
3379
|
+
repositoryUrl,
|
|
3380
|
+
targetName,
|
|
3381
|
+
tags,
|
|
3382
|
+
mode,
|
|
3383
|
+
moduleId,
|
|
3384
|
+
reportCreatedById,
|
|
3385
|
+
startDate,
|
|
3386
|
+
endDate,
|
|
3387
|
+
orderBy,
|
|
3388
|
+
orderDirection
|
|
3389
|
+
}))}`, {
|
|
3390
|
+
...opts,
|
|
3391
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3392
|
+
authorization
|
|
3393
|
+
})
|
|
3394
|
+
}));
|
|
3395
|
+
}
|
|
3396
|
+
/**
|
|
3397
|
+
* Analytics Repository Target Details Download
|
|
3398
|
+
*/
|
|
3399
|
+
export function analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet({ repositoryUrl, targetName, tags, mode, moduleId, reportCreatedById, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
|
|
3400
|
+
repositoryUrl?: string | null;
|
|
3401
|
+
targetName?: string | null;
|
|
3402
|
+
tags?: string[] | null;
|
|
3403
|
+
mode?: ("scan" | "fix") | null;
|
|
3404
|
+
moduleId?: string[] | null;
|
|
3405
|
+
reportCreatedById?: string[] | null;
|
|
3406
|
+
startDate?: string;
|
|
3407
|
+
endDate?: string;
|
|
3408
|
+
orderBy?: ("repositoryUrl" | "sourceBranch" | "moduleName" | "targetName" | "targetPath" | "issuesCount" | "reportCreatedAt") | null;
|
|
3409
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
3410
|
+
extension?: "csv" | "xlsx";
|
|
3411
|
+
authorization: string;
|
|
3412
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3413
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3414
|
+
status: 200;
|
|
3415
|
+
data: any;
|
|
3416
|
+
} | {
|
|
3417
|
+
status: 400;
|
|
3418
|
+
data: HttpErrorResponseRead;
|
|
3419
|
+
} | {
|
|
3420
|
+
status: 401;
|
|
3421
|
+
data: HttpErrorResponseRead;
|
|
3422
|
+
} | {
|
|
3423
|
+
status: 404;
|
|
3424
|
+
data: HttpErrorResponseRead;
|
|
3425
|
+
} | {
|
|
3426
|
+
status: 422;
|
|
3427
|
+
} | {
|
|
3428
|
+
status: 500;
|
|
3429
|
+
data: HttpErrorResponseRead;
|
|
3430
|
+
} | {
|
|
3431
|
+
status: 503;
|
|
3432
|
+
data: HttpErrorResponseRead;
|
|
3433
|
+
}>(`/v1/analytics/repositories/target-details/download${QS.query(QS.explode({
|
|
3434
|
+
repositoryUrl,
|
|
3435
|
+
targetName,
|
|
3436
|
+
tags,
|
|
3437
|
+
mode,
|
|
3438
|
+
moduleId,
|
|
3439
|
+
reportCreatedById,
|
|
3440
|
+
startDate,
|
|
3441
|
+
endDate,
|
|
3442
|
+
orderBy,
|
|
3443
|
+
orderDirection,
|
|
3444
|
+
extension
|
|
3445
|
+
}))}`, {
|
|
3446
|
+
...opts,
|
|
3447
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3448
|
+
authorization
|
|
3449
|
+
})
|
|
3450
|
+
}));
|
|
3451
|
+
}
|
|
3199
3452
|
/**
|
|
3200
3453
|
* List User Service
|
|
3201
3454
|
*/
|
|
@@ -3215,3 +3468,113 @@ export function listUserServiceV1UsersGet({ authorization }: {
|
|
|
3215
3468
|
})
|
|
3216
3469
|
}));
|
|
3217
3470
|
}
|
|
3471
|
+
/**
|
|
3472
|
+
* Search Repos Scm Service
|
|
3473
|
+
*/
|
|
3474
|
+
export function searchReposScmServiceV2ReposSearchScmPost({ authorization, searchReposInScmRequest }: {
|
|
3475
|
+
authorization: string;
|
|
3476
|
+
searchReposInScmRequest: SearchReposInScmRequest;
|
|
3477
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3478
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3479
|
+
status: 200;
|
|
3480
|
+
data: SearchReposInScmResponse;
|
|
3481
|
+
} | {
|
|
3482
|
+
status: 207;
|
|
3483
|
+
data: HttpErrorResponseRead;
|
|
3484
|
+
} | {
|
|
3485
|
+
status: 400;
|
|
3486
|
+
data: HttpErrorResponseRead;
|
|
3487
|
+
} | {
|
|
3488
|
+
status: 401;
|
|
3489
|
+
data: HttpErrorResponseRead;
|
|
3490
|
+
} | {
|
|
3491
|
+
status: 404;
|
|
3492
|
+
data: HttpErrorResponseRead;
|
|
3493
|
+
} | {
|
|
3494
|
+
status: 422;
|
|
3495
|
+
} | {
|
|
3496
|
+
status: 500;
|
|
3497
|
+
data: HttpErrorResponseRead;
|
|
3498
|
+
} | {
|
|
3499
|
+
status: 503;
|
|
3500
|
+
data: HttpErrorResponseRead;
|
|
3501
|
+
}>("/v2/repos/search-scm", oazapfts.json({
|
|
3502
|
+
...opts,
|
|
3503
|
+
method: "POST",
|
|
3504
|
+
body: searchReposInScmRequest,
|
|
3505
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3506
|
+
authorization
|
|
3507
|
+
})
|
|
3508
|
+
})));
|
|
3509
|
+
}
|
|
3510
|
+
/**
|
|
3511
|
+
* Import Repos With Tags Scm Service
|
|
3512
|
+
*/
|
|
3513
|
+
export function importReposWithTagsScmServiceV2ReposSearchScmSearchIdPost({ searchId, authorization, importReposScmWithTagsRequest }: {
|
|
3514
|
+
searchId: string;
|
|
3515
|
+
authorization: string;
|
|
3516
|
+
importReposScmWithTagsRequest: ImportReposScmWithTagsRequest;
|
|
3517
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3518
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3519
|
+
status: 200;
|
|
3520
|
+
data: SaveSearchReposResponse;
|
|
3521
|
+
} | {
|
|
3522
|
+
status: 400;
|
|
3523
|
+
data: HttpErrorResponseRead;
|
|
3524
|
+
} | {
|
|
3525
|
+
status: 401;
|
|
3526
|
+
data: HttpErrorResponseRead;
|
|
3527
|
+
} | {
|
|
3528
|
+
status: 404;
|
|
3529
|
+
data: HttpErrorResponseRead;
|
|
3530
|
+
} | {
|
|
3531
|
+
status: 422;
|
|
3532
|
+
} | {
|
|
3533
|
+
status: 500;
|
|
3534
|
+
data: HttpErrorResponseRead;
|
|
3535
|
+
} | {
|
|
3536
|
+
status: 503;
|
|
3537
|
+
data: HttpErrorResponseRead;
|
|
3538
|
+
}>(`/v2/repos/search-scm/${encodeURIComponent(searchId)}`, oazapfts.json({
|
|
3539
|
+
...opts,
|
|
3540
|
+
method: "POST",
|
|
3541
|
+
body: importReposScmWithTagsRequest,
|
|
3542
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3543
|
+
authorization
|
|
3544
|
+
})
|
|
3545
|
+
})));
|
|
3546
|
+
}
|
|
3547
|
+
/**
|
|
3548
|
+
* Search Repos Scm V2
|
|
3549
|
+
*/
|
|
3550
|
+
export function searchReposScmV2V2ReposSearchScmSearchIdGet({ searchId, authorization }: {
|
|
3551
|
+
searchId: string;
|
|
3552
|
+
authorization: string;
|
|
3553
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3554
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3555
|
+
status: 200;
|
|
3556
|
+
data: ResponseSearchRepoByIdResponseRead;
|
|
3557
|
+
} | {
|
|
3558
|
+
status: 400;
|
|
3559
|
+
data: HttpErrorResponseRead;
|
|
3560
|
+
} | {
|
|
3561
|
+
status: 401;
|
|
3562
|
+
data: HttpErrorResponseRead;
|
|
3563
|
+
} | {
|
|
3564
|
+
status: 404;
|
|
3565
|
+
data: HttpErrorResponseRead;
|
|
3566
|
+
} | {
|
|
3567
|
+
status: 422;
|
|
3568
|
+
} | {
|
|
3569
|
+
status: 500;
|
|
3570
|
+
data: HttpErrorResponseRead;
|
|
3571
|
+
} | {
|
|
3572
|
+
status: 503;
|
|
3573
|
+
data: HttpErrorResponseRead;
|
|
3574
|
+
}>(`/v2/repos/search-scm/${encodeURIComponent(searchId)}`, {
|
|
3575
|
+
...opts,
|
|
3576
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3577
|
+
authorization
|
|
3578
|
+
})
|
|
3579
|
+
}));
|
|
3580
|
+
}
|
package/src/api/notification.ts
CHANGED
package/src/apis-itau.json
CHANGED
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"url": {
|
|
211
211
|
"stg": "https://genai-inference-app.stackspot.hom.aws.cloud.ihf",
|
|
212
212
|
"dev": "https://genai-inference-app.stackspot.dev.aws.cloud.ihf",
|
|
213
|
-
"prd": "https://genai-inference-app.
|
|
213
|
+
"prd": "https://genai-inference-app.stackspot.prod.aws.cloud.ihf"
|
|
214
214
|
},
|
|
215
215
|
"docs": "/openapi.json"
|
|
216
216
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
2
|
import { getApiAddresses } from '../api-addresses'
|
|
3
|
-
import { addFavoriteV1AgentsAgentIdFavoritePost, AgentVisibilityLevelEnum, createAgentV1AgentsPost, createToolkitToolsV1ToolkitsToolkitIdToolsPost, createToolkitV1ToolkitsPost, defaults, deleteAgentV1AgentsAgentIdDelete, deleteFavoriteV1AgentsAgentIdFavoriteDelete, deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete, deleteToolkitV1ToolkitsToolkitIdDelete, editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut, forkAgentV1AgentsAgentIdForkPost, forkToolkitV1ToolkitsToolkitIdForkPost, getAgentV1AgentsAgentIdGet, getPublicToolKitsV1BuiltinToolkitGet, getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet, getToolkitV1ToolkitsToolkitIdGet, listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost, listAgentsV1AgentsGet, listMultiAgentsV1AgentsMultiAgentsGet, listToolkitsV1ToolkitsGet, publishAgentV1AgentsAgentIdPublishPost, searchAgentsV1AgentsSearchPost, shareV1AgentsAgentIdSharePost, updateAgentV1AgentsAgentIdPatch, updateToolkitV1ToolkitsToolkitIdPatch, VisibilityLevelEnum } from '../api/agent-tools'
|
|
3
|
+
import { addFavoriteV1AgentsAgentIdFavoritePost, AgentVisibilityLevelEnum, createAgentV1AgentsPost, createToolkitToolsV1ToolkitsToolkitIdToolsPost, createToolkitV1ToolkitsPost, defaults, deleteAgentV1AgentsAgentIdDelete, deleteFavoriteV1AgentsAgentIdFavoriteDelete, deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete, deleteToolkitV1ToolkitsToolkitIdDelete, editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut, forkAgentV1AgentsAgentIdForkPost, forkToolkitV1ToolkitsToolkitIdForkPost, getAgentV1AgentsAgentIdGet, getPublicToolKitsV1BuiltinToolkitGet, getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet, getToolkitV1ToolkitsToolkitIdGet, listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost, listAgentsV1AgentsGet, listAgentsV3AgentsGet, listMultiAgentsV1AgentsMultiAgentsGet, listToolkitsV1ToolkitsGet, publishAgentV1AgentsAgentIdPublishPost, searchAgentsV1AgentsSearchPost, shareV1AgentsAgentIdSharePost, updateAgentV1AgentsAgentIdPatch, updateToolkitV1ToolkitsToolkitIdPatch, VisibilityLevelEnum } from '../api/agent-tools'
|
|
4
4
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
5
|
import { agentToolsDictionary } from '../error/dictionary/agent-tools'
|
|
6
6
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
@@ -54,6 +54,11 @@ class AgentToolsClient extends ReactQueryNetworkClient {
|
|
|
54
54
|
*/
|
|
55
55
|
agents = this.infiniteQuery(removeAuthorizationParam(listAgentsV1AgentsGet))
|
|
56
56
|
|
|
57
|
+
/**
|
|
58
|
+
* List agents with support for multiple filters
|
|
59
|
+
*/
|
|
60
|
+
agentsMultipleFilters = this.infiniteQuery(removeAuthorizationParam(listAgentsV3AgentsGet), { pageParamName: 'filters.page' })
|
|
61
|
+
|
|
57
62
|
/**
|
|
58
63
|
* List agents available to be added to other agents
|
|
59
64
|
*/
|