@stack-spot/portal-network 0.178.0 → 0.179.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 +305 -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 +170 -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 +14 -1
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +11 -2
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/api-management.d.ts +9 -0
- package/dist/client/api-management.d.ts.map +1 -1
- package/dist/client/api-management.js +11 -2
- package/dist/client/api-management.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/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 +368 -12
- package/src/api/notification.ts +2 -0
- package/src/apis-itau.json +1 -1
- package/src/client/agent-tools.ts +7 -2
- package/src/client/ai.ts +1 -0
- package/src/client/api-management.ts +7 -2
- package/src/client/code-shift.ts +36 -0
- 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,41 @@ 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 SearchRepoByIdResponse = {
|
|
1069
|
+
url: string
|
|
1070
|
+
name: string
|
|
1071
|
+
defaultBranch: string
|
|
1072
|
+
lastCommitDate: string
|
|
1073
|
+
archived: boolean
|
|
1074
|
+
visibility?: "public" | "private" | "internal" | "unknown"
|
|
1075
|
+
alreadyCreated?: boolean | null
|
|
1076
|
+
}
|
|
1077
|
+
export type ResponseSearchRepoByIdResponse = {
|
|
1078
|
+
total: number | null
|
|
1079
|
+
status?: string
|
|
1080
|
+
exceptions: HttpErrorResponse[]
|
|
1081
|
+
items?: SearchRepoByIdResponse[]
|
|
1082
|
+
}
|
|
1083
|
+
export type ResponseSearchRepoByIdResponseRead = {
|
|
1084
|
+
total: number | null
|
|
1085
|
+
status?: string
|
|
1086
|
+
exceptions: HttpErrorResponseRead[]
|
|
1087
|
+
items?: SearchRepoByIdResponse[]
|
|
1088
|
+
};
|
|
994
1089
|
/**
|
|
995
1090
|
* Check Role Route
|
|
996
1091
|
*/
|
|
@@ -1415,6 +1510,43 @@ export function downloadReportV1ReportsReportIdDownloadGet({ reportId, extension
|
|
|
1415
1510
|
})
|
|
1416
1511
|
}));
|
|
1417
1512
|
}
|
|
1513
|
+
/**
|
|
1514
|
+
* Put Customer Rating Report
|
|
1515
|
+
*/
|
|
1516
|
+
export function putCustomerRatingReportV1ReportsReportIdCustomerRatingPut({ reportId, authorization, putCustomerRatingReportRequest }: {
|
|
1517
|
+
reportId: string
|
|
1518
|
+
authorization: string
|
|
1519
|
+
putCustomerRatingReportRequest: PutCustomerRatingReportRequest
|
|
1520
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1521
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1522
|
+
status: 200
|
|
1523
|
+
data: any
|
|
1524
|
+
} | {
|
|
1525
|
+
status: 400
|
|
1526
|
+
data: HttpErrorResponseRead
|
|
1527
|
+
} | {
|
|
1528
|
+
status: 401
|
|
1529
|
+
data: HttpErrorResponseRead
|
|
1530
|
+
} | {
|
|
1531
|
+
status: 404
|
|
1532
|
+
data: HttpErrorResponseRead
|
|
1533
|
+
} | {
|
|
1534
|
+
status: 422
|
|
1535
|
+
} | {
|
|
1536
|
+
status: 500
|
|
1537
|
+
data: HttpErrorResponseRead
|
|
1538
|
+
} | {
|
|
1539
|
+
status: 503
|
|
1540
|
+
data: HttpErrorResponseRead
|
|
1541
|
+
}>(`/v1/reports/${encodeURIComponent(reportId)}/customer-rating`, oazapfts.json({
|
|
1542
|
+
...opts,
|
|
1543
|
+
method: "PUT",
|
|
1544
|
+
body: putCustomerRatingReportRequest,
|
|
1545
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1546
|
+
authorization
|
|
1547
|
+
})
|
|
1548
|
+
})))
|
|
1549
|
+
}
|
|
1418
1550
|
/**
|
|
1419
1551
|
* Search Repos Scm Service
|
|
1420
1552
|
*/
|
|
@@ -1611,7 +1743,7 @@ export function listRepositoryServiceV1ReposGet({ pageSize, page, lastEvaluatedK
|
|
|
1611
1743
|
createdByEmail?: string | null;
|
|
1612
1744
|
reportByEmail?: string | null;
|
|
1613
1745
|
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?:
|
|
1746
|
+
orderDirection?: "asc" | "desc" | "ASC" | "DESC";
|
|
1615
1747
|
tags?: string[] | null;
|
|
1616
1748
|
authorization: string;
|
|
1617
1749
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1662,7 +1794,7 @@ export function listRepositoryDownloadServiceV1ReposDownloadGet({ filter, module
|
|
|
1662
1794
|
createdByEmail?: string | null;
|
|
1663
1795
|
reportByEmail?: string | null;
|
|
1664
1796
|
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?:
|
|
1797
|
+
orderDirection?: "asc" | "desc" | "ASC" | "DESC";
|
|
1666
1798
|
tags?: string[] | null;
|
|
1667
1799
|
extension?: "csv" | "xlsx";
|
|
1668
1800
|
authorization: string;
|
|
@@ -2075,7 +2207,7 @@ export function listProgramGroupServiceV1ProgramGroupsGet({ moduleId, createdByE
|
|
|
2075
2207
|
pageSize?: number;
|
|
2076
2208
|
page?: number;
|
|
2077
2209
|
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?:
|
|
2210
|
+
orderDirection?: "asc" | "desc" | "ASC" | "DESC";
|
|
2079
2211
|
integrationId?: string;
|
|
2080
2212
|
authorization: string;
|
|
2081
2213
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2113,7 +2245,7 @@ export function listProgramGroupDownloadServiceV1ProgramGroupsDownloadGet({ modu
|
|
|
2113
2245
|
tags?: string[] | null;
|
|
2114
2246
|
name?: string | null;
|
|
2115
2247
|
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?:
|
|
2248
|
+
orderDirection?: "asc" | "desc" | "ASC" | "DESC";
|
|
2117
2249
|
integrationId?: string;
|
|
2118
2250
|
extension?: "csv" | "xlsx";
|
|
2119
2251
|
authorization: string;
|
|
@@ -3196,6 +3328,120 @@ export function analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGro
|
|
|
3196
3328
|
})
|
|
3197
3329
|
}));
|
|
3198
3330
|
}
|
|
3331
|
+
/**
|
|
3332
|
+
* Analytics Repository Target Details
|
|
3333
|
+
*/
|
|
3334
|
+
export function analyticsRepositoryTargetDetailsV1AnalyticsRepositoriesTargetDetailsGet({ pageSize, page, repositoryUrl, targetName, tags, mode, moduleId, reportCreatedById, startDate, endDate, orderBy, orderDirection, authorization }: {
|
|
3335
|
+
pageSize?: number;
|
|
3336
|
+
page?: number;
|
|
3337
|
+
repositoryUrl?: string | null;
|
|
3338
|
+
targetName?: string | null;
|
|
3339
|
+
tags?: string[] | null;
|
|
3340
|
+
mode?: ("scan" | "fix") | null;
|
|
3341
|
+
moduleId?: string[] | null;
|
|
3342
|
+
reportCreatedById?: string[] | null;
|
|
3343
|
+
startDate?: string;
|
|
3344
|
+
endDate?: string;
|
|
3345
|
+
orderBy?: ("repositoryUrl" | "sourceBranch" | "moduleName" | "targetName" | "targetPath" | "issuesCount" | "reportCreatedAt") | null;
|
|
3346
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
3347
|
+
authorization: string;
|
|
3348
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3349
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3350
|
+
status: 200;
|
|
3351
|
+
data: AnalyticsRepositoryTargetDetailsResponse;
|
|
3352
|
+
} | {
|
|
3353
|
+
status: 400;
|
|
3354
|
+
data: HttpErrorResponseRead;
|
|
3355
|
+
} | {
|
|
3356
|
+
status: 401;
|
|
3357
|
+
data: HttpErrorResponseRead;
|
|
3358
|
+
} | {
|
|
3359
|
+
status: 404;
|
|
3360
|
+
data: HttpErrorResponseRead;
|
|
3361
|
+
} | {
|
|
3362
|
+
status: 422;
|
|
3363
|
+
} | {
|
|
3364
|
+
status: 500;
|
|
3365
|
+
data: HttpErrorResponseRead;
|
|
3366
|
+
} | {
|
|
3367
|
+
status: 503;
|
|
3368
|
+
data: HttpErrorResponseRead;
|
|
3369
|
+
}>(`/v1/analytics/repositories/target-details${QS.query(QS.explode({
|
|
3370
|
+
pageSize,
|
|
3371
|
+
page,
|
|
3372
|
+
repositoryUrl,
|
|
3373
|
+
targetName,
|
|
3374
|
+
tags,
|
|
3375
|
+
mode,
|
|
3376
|
+
moduleId,
|
|
3377
|
+
reportCreatedById,
|
|
3378
|
+
startDate,
|
|
3379
|
+
endDate,
|
|
3380
|
+
orderBy,
|
|
3381
|
+
orderDirection
|
|
3382
|
+
}))}`, {
|
|
3383
|
+
...opts,
|
|
3384
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3385
|
+
authorization
|
|
3386
|
+
})
|
|
3387
|
+
}));
|
|
3388
|
+
}
|
|
3389
|
+
/**
|
|
3390
|
+
* Analytics Repository Target Details Download
|
|
3391
|
+
*/
|
|
3392
|
+
export function analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet({ repositoryUrl, targetName, tags, mode, moduleId, reportCreatedById, startDate, endDate, orderBy, orderDirection, extension, authorization }: {
|
|
3393
|
+
repositoryUrl?: string | null;
|
|
3394
|
+
targetName?: string | null;
|
|
3395
|
+
tags?: string[] | null;
|
|
3396
|
+
mode?: ("scan" | "fix") | null;
|
|
3397
|
+
moduleId?: string[] | null;
|
|
3398
|
+
reportCreatedById?: string[] | null;
|
|
3399
|
+
startDate?: string;
|
|
3400
|
+
endDate?: string;
|
|
3401
|
+
orderBy?: ("repositoryUrl" | "sourceBranch" | "moduleName" | "targetName" | "targetPath" | "issuesCount" | "reportCreatedAt") | null;
|
|
3402
|
+
orderDirection?: ("ASC" | "DESC") | null;
|
|
3403
|
+
extension?: "csv" | "xlsx";
|
|
3404
|
+
authorization: string;
|
|
3405
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3406
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3407
|
+
status: 200;
|
|
3408
|
+
data: any;
|
|
3409
|
+
} | {
|
|
3410
|
+
status: 400;
|
|
3411
|
+
data: HttpErrorResponseRead;
|
|
3412
|
+
} | {
|
|
3413
|
+
status: 401;
|
|
3414
|
+
data: HttpErrorResponseRead;
|
|
3415
|
+
} | {
|
|
3416
|
+
status: 404;
|
|
3417
|
+
data: HttpErrorResponseRead;
|
|
3418
|
+
} | {
|
|
3419
|
+
status: 422;
|
|
3420
|
+
} | {
|
|
3421
|
+
status: 500;
|
|
3422
|
+
data: HttpErrorResponseRead;
|
|
3423
|
+
} | {
|
|
3424
|
+
status: 503;
|
|
3425
|
+
data: HttpErrorResponseRead;
|
|
3426
|
+
}>(`/v1/analytics/repositories/target-details/download${QS.query(QS.explode({
|
|
3427
|
+
repositoryUrl,
|
|
3428
|
+
targetName,
|
|
3429
|
+
tags,
|
|
3430
|
+
mode,
|
|
3431
|
+
moduleId,
|
|
3432
|
+
reportCreatedById,
|
|
3433
|
+
startDate,
|
|
3434
|
+
endDate,
|
|
3435
|
+
orderBy,
|
|
3436
|
+
orderDirection,
|
|
3437
|
+
extension
|
|
3438
|
+
}))}`, {
|
|
3439
|
+
...opts,
|
|
3440
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3441
|
+
authorization
|
|
3442
|
+
})
|
|
3443
|
+
}));
|
|
3444
|
+
}
|
|
3199
3445
|
/**
|
|
3200
3446
|
* List User Service
|
|
3201
3447
|
*/
|
|
@@ -3215,3 +3461,113 @@ export function listUserServiceV1UsersGet({ authorization }: {
|
|
|
3215
3461
|
})
|
|
3216
3462
|
}));
|
|
3217
3463
|
}
|
|
3464
|
+
/**
|
|
3465
|
+
* Search Repos Scm Service
|
|
3466
|
+
*/
|
|
3467
|
+
export function searchReposScmServiceV2ReposSearchScmPost({ authorization, searchReposInScmRequest }: {
|
|
3468
|
+
authorization: string;
|
|
3469
|
+
searchReposInScmRequest: SearchReposInScmRequest;
|
|
3470
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3471
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3472
|
+
status: 200;
|
|
3473
|
+
data: SearchReposInScmResponse;
|
|
3474
|
+
} | {
|
|
3475
|
+
status: 207;
|
|
3476
|
+
data: HttpErrorResponseRead;
|
|
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", oazapfts.json({
|
|
3495
|
+
...opts,
|
|
3496
|
+
method: "POST",
|
|
3497
|
+
body: searchReposInScmRequest,
|
|
3498
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3499
|
+
authorization
|
|
3500
|
+
})
|
|
3501
|
+
})));
|
|
3502
|
+
}
|
|
3503
|
+
/**
|
|
3504
|
+
* Import Repos With Tags Scm Service
|
|
3505
|
+
*/
|
|
3506
|
+
export function importReposWithTagsScmServiceV2ReposSearchScmSearchIdPost({ searchId, authorization, importReposScmWithTagsRequest }: {
|
|
3507
|
+
searchId: string;
|
|
3508
|
+
authorization: string;
|
|
3509
|
+
importReposScmWithTagsRequest: ImportReposScmWithTagsRequest;
|
|
3510
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3511
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3512
|
+
status: 200;
|
|
3513
|
+
data: SearchReposInScmResponse;
|
|
3514
|
+
} | {
|
|
3515
|
+
status: 400;
|
|
3516
|
+
data: HttpErrorResponseRead;
|
|
3517
|
+
} | {
|
|
3518
|
+
status: 401;
|
|
3519
|
+
data: HttpErrorResponseRead;
|
|
3520
|
+
} | {
|
|
3521
|
+
status: 404;
|
|
3522
|
+
data: HttpErrorResponseRead;
|
|
3523
|
+
} | {
|
|
3524
|
+
status: 422;
|
|
3525
|
+
} | {
|
|
3526
|
+
status: 500;
|
|
3527
|
+
data: HttpErrorResponseRead;
|
|
3528
|
+
} | {
|
|
3529
|
+
status: 503;
|
|
3530
|
+
data: HttpErrorResponseRead;
|
|
3531
|
+
}>(`/v2/repos/search-scm/${encodeURIComponent(searchId)}`, oazapfts.json({
|
|
3532
|
+
...opts,
|
|
3533
|
+
method: "POST",
|
|
3534
|
+
body: importReposScmWithTagsRequest,
|
|
3535
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3536
|
+
authorization
|
|
3537
|
+
})
|
|
3538
|
+
})));
|
|
3539
|
+
}
|
|
3540
|
+
/**
|
|
3541
|
+
* Search Repos Scm V2
|
|
3542
|
+
*/
|
|
3543
|
+
export function searchReposScmV2V2ReposSearchScmSearchIdGet({ searchId, authorization }: {
|
|
3544
|
+
searchId: string;
|
|
3545
|
+
authorization: string;
|
|
3546
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3547
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3548
|
+
status: 200;
|
|
3549
|
+
data: ResponseSearchRepoByIdResponseRead;
|
|
3550
|
+
} | {
|
|
3551
|
+
status: 400;
|
|
3552
|
+
data: HttpErrorResponseRead;
|
|
3553
|
+
} | {
|
|
3554
|
+
status: 401;
|
|
3555
|
+
data: HttpErrorResponseRead;
|
|
3556
|
+
} | {
|
|
3557
|
+
status: 404;
|
|
3558
|
+
data: HttpErrorResponseRead;
|
|
3559
|
+
} | {
|
|
3560
|
+
status: 422;
|
|
3561
|
+
} | {
|
|
3562
|
+
status: 500;
|
|
3563
|
+
data: HttpErrorResponseRead;
|
|
3564
|
+
} | {
|
|
3565
|
+
status: 503;
|
|
3566
|
+
data: HttpErrorResponseRead;
|
|
3567
|
+
}>(`/v2/repos/search-scm/${encodeURIComponent(searchId)}`, {
|
|
3568
|
+
...opts,
|
|
3569
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3570
|
+
authorization
|
|
3571
|
+
})
|
|
3572
|
+
}));
|
|
3573
|
+
}
|
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'
|
|
@@ -52,7 +52,12 @@ class AgentToolsClient extends ReactQueryNetworkClient {
|
|
|
52
52
|
/**
|
|
53
53
|
* List agents
|
|
54
54
|
*/
|
|
55
|
-
agents = this.infiniteQuery(removeAuthorizationParam(listAgentsV1AgentsGet))
|
|
55
|
+
agents = this.infiniteQuery(removeAuthorizationParam(listAgentsV1AgentsGet), { pageParamName: 'request.page' })
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* List agents with support for multiple filters
|
|
59
|
+
*/
|
|
60
|
+
agentsMultipleFilters = this.infiniteQuery(listAgentsV3AgentsGet, { accumulator: 'items' })
|
|
56
61
|
|
|
57
62
|
/**
|
|
58
63
|
* List agents available to be added to other agents
|
package/src/client/ai.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
-
import {
|
|
2
|
+
import { getApiAddresses } from '../api-addresses'
|
|
3
|
+
import { defaults, downloadObjectArtifacts, getEntries, getEntryById, getSubEntries } from '../api/apiManagement'
|
|
3
4
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
4
5
|
import { actionDictionary } from '../error/dictionary/action'
|
|
5
6
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
6
7
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
7
|
-
import { getApiAddresses } from '../api-addresses'
|
|
8
8
|
|
|
9
9
|
class ApiManagementClient extends ReactQueryNetworkClient {
|
|
10
10
|
constructor() {
|
|
@@ -30,6 +30,11 @@ class ApiManagementClient extends ReactQueryNetworkClient {
|
|
|
30
30
|
*/
|
|
31
31
|
getApiVersions = this.query(getSubEntries)
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Gets the openAPI of one version
|
|
35
|
+
*/
|
|
36
|
+
getApiVersionDocs = this.query(downloadObjectArtifacts)
|
|
37
|
+
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
export const apiManagementClient = new ApiManagementClient()
|