@stack-spot/portal-network 0.184.0-beta.1 → 0.185.0

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.
@@ -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_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"
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_ACCOUNT_SCM_CONFIG_NOT_FOUND_EXCEPTION" | "CODE_SHIFT_API_0028_USER_SCM_CONFIG_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_3101_SCM_GET_REPOSITORIES_NOT_FOUND" | "CODE_SHIFT_API_3102_SCM_GET_REPOSITORIES_UNAUTHORIZED" | "CODE_SHIFT_API_3103_SCM_GET_REPOSITORIES_FORBIDDEN" | "CODE_SHIFT_API_3104_SCM_GET_REPOSITORIES_SAML_ERROR" | "CODE_SHIFT_API_3110_SCM_GET_PULL_REQUEST_FAILURE" | "CODE_SHIFT_API_3111_SCM_GET_PULL_REQUEST_NOT_FOUND" | "CODE_SHIFT_API_3112_SCM_GET_PULL_REQUEST_UNAUTHORIZED" | "CODE_SHIFT_API_3113_SCM_GET_PULL_REQUEST_FORBIDDEN" | "CODE_SHIFT_API_3114_SCM_GET_PULL_REQUEST_SAML_ERROR" | "CODE_SHIFT_API_3120_SCM_GET_BRANCHES_FAILURE" | "CODE_SHIFT_API_3121_SCM_GET_BRANCHES_NOT_FOUND" | "CODE_SHIFT_API_3122_SCM_GET_BRANCHES_UNAUTHORIZED" | "CODE_SHIFT_API_3123_SCM_GET_BRANCHES_FORBIDDEN" | "CODE_SHIFT_API_3124_SCM_GET_BRANCHES_SAML_ERROR" | "CODE_SHIFT_API_3130_SCM_GET_SCM_REPOSITORY_FETCH_FAILURE" | "CODE_SHIFT_API_3131_SCM_REPOSITORY_NOT_FOUND" | "CODE_SHIFT_API_3132_SCM_REPOSITORY_UNAUTHORIZED" | "CODE_SHIFT_API_3133_SCM_REPOSITORY_FORBIDDEN" | "CODE_SHIFT_API_3134_SCM_REPOSITORY_SAML_ERROR" | "CODE_SHIFT_API_3140_SCM_GET_BRANCH_FAILURE" | "CODE_SHIFT_API_3142_SCM_GET_BRANCH_NOT_FOUND" | "CODE_SHIFT_API_3143_SCM_GET_BRANCH_UNAUTHORIZED" | "CODE_SHIFT_API_3144_SCM_GET_BRANCH_FORBIDDEN" | "CODE_SHIFT_API_3145_SCM_GET_BRANCH_SAML_ERROR" | "CODE_SHIFT_API_3150_SCM_GET_REPOSITORY_FILE_FAILURE" | "CODE_SHIFT_API_3151_SCM_GET_REPOSITORY_FILE_NOT_FOUND" | "CODE_SHIFT_API_3152_SCM_GET_REPOSITORY_FILE_UNAUTHORIZED" | "CODE_SHIFT_API_3153_SCM_GET_REPOSITORY_FILE_FORBIDDEN" | "CODE_SHIFT_API_3154_SCM_GET_REPOSITORY_FILE_SAML_ERROR" | "CODE_SHIFT_API_3160_SCM_GET_REPOSITORY_FILE_FAILURE" | "CODE_SHIFT_API_3161_SCM_GET_REPOSITORY_FILE_NOT_FOUND" | "CODE_SHIFT_API_3162_SCM_GET_REPOSITORY_FILE_UNAUTHORIZED" | "CODE_SHIFT_API_3163_SCM_GET_REPOSITORY_FILE_FORBIDDEN" | "CODE_SHIFT_API_3164_SCM_GET_REPOSITORY_FILE_SAML_ERROR" | "CODE_SHIFT_API_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;
@@ -323,6 +323,14 @@ export type PullRequestResponse = {
323
323
  updatedAt: string | null;
324
324
  lastSyncAt: string | null;
325
325
  };
326
+ export type CustomerRatingResponse = {
327
+ id: string;
328
+ report_id: string;
329
+ score: number;
330
+ commentary: string | null;
331
+ created_by: UserResponse;
332
+ created_at: string;
333
+ };
326
334
  export type GetReportResponse = {
327
335
  id: string;
328
336
  "module": ModuleResponse2 | null;
@@ -357,6 +365,7 @@ export type GetReportResponse = {
357
365
  inputs?: {
358
366
  [key: string]: any;
359
367
  } | null;
368
+ customer_rating?: CustomerRatingResponse | null;
360
369
  };
361
370
  export type GetReportResponseRead = {
362
371
  id: string;
@@ -392,16 +401,15 @@ export type GetReportResponseRead = {
392
401
  inputs?: {
393
402
  [key: string]: any;
394
403
  } | null;
395
- customerScore?: number | null
396
- customerCommentary?: string | null
404
+ customer_rating?: CustomerRatingResponse | null;
397
405
  };
398
406
  export type GetPullRequest = {
399
407
  content: string;
400
408
  };
401
409
  export type PutCustomerRatingReportRequest = {
402
- score: number
403
- commentary?: string | null
404
- }
410
+ score: number;
411
+ commentary?: string | null;
412
+ };
405
413
  export type SearchRepoScmResponse = {
406
414
  id: string;
407
415
  };
@@ -803,8 +811,7 @@ export type RepositoryLastReportStatusResponse = {
803
811
  totalIssues: number | null;
804
812
  pullRequestLink: string | null;
805
813
  merged: boolean | null;
806
- customerScore?: number | null
807
- customerCommentary?: string | null
814
+ customerScore?: number | null;
808
815
  };
809
816
  export type AnalyticsRepositoryLastReportStatusResponse = {
810
817
  totalFiles?: number;
@@ -827,8 +834,7 @@ export type RepositoryUsageResponse = {
827
834
  totalFixFailure?: number;
828
835
  totalPullRequests?: number;
829
836
  mergedPullRequests?: number;
830
- averageRating?: number
831
- totalRatings?: number
837
+ customerScore?: number | null;
832
838
  };
833
839
  export type AnalyticsRepositoryUsageResponse = {
834
840
  totalScan?: number;
@@ -839,8 +845,6 @@ export type AnalyticsRepositoryUsageResponse = {
839
845
  totalFixFailure?: number;
840
846
  totalPullRequests?: number;
841
847
  mergedPullRequests?: number;
842
- overallAverageRating?: number
843
- totalRatings?: number;
844
848
  items: RepositoryUsageResponse[];
845
849
  totalItems?: number;
846
850
  };
@@ -850,25 +854,17 @@ export type UserUsageResponse = {
850
854
  totalScan?: number;
851
855
  totalScanSuccess?: number;
852
856
  totalScanFailure?: number;
853
- averageScanRating?: number
854
- ratedScanCount?: number;
855
857
  totalFix?: number;
856
858
  totalFixSuccess?: number;
857
859
  totalFixFailure?: number;
858
- averageFixRating?: number
859
- ratedFixCount?: number
860
860
  };
861
861
  export type AnalyticsUserUsageResponse = {
862
862
  totalScan?: number;
863
863
  totalScanSuccess?: number;
864
864
  totalScanFailure?: number;
865
- averageScanRating?: number
866
- totalRatedScans?: number;
867
865
  totalFix?: number;
868
866
  totalFixSuccess?: number;
869
867
  totalFixFailure?: number;
870
- averageFixRating?: number
871
- totalRatedFixes?: number;
872
868
  items: UserUsageResponse[];
873
869
  totalItems?: number;
874
870
  };
@@ -878,13 +874,12 @@ export type ProgramGroupLastReportStatusResponse = {
878
874
  mode: string;
879
875
  reportCreatedAt: string;
880
876
  reportCreatedBy: string;
881
- customerScore?: number | null
882
- customerCommentary?: string | null;
883
877
  totalFiles?: number;
884
878
  totalFilesAnalyzed?: number;
885
879
  totalFilesIssues?: number;
886
880
  totalFilesChanged?: number;
887
881
  totalIssues?: number;
882
+ customerScore?: number | null;
888
883
  };
889
884
  export type AnalyticsProgramGroupsLastReportStatusResponse = {
890
885
  totalFiles?: number;
@@ -903,8 +898,7 @@ export type ProgramGroupsUsageResponse = {
903
898
  totalFix?: number;
904
899
  totalFixSuccess?: number;
905
900
  totalFixFailure?: number;
906
- averageRating?: number
907
- totalRatings?: number
901
+ customerScore?: number | null;
908
902
  };
909
903
  export type AnalyticsProgramGroupsUsageResponse = {
910
904
  totalScan?: number;
@@ -913,8 +907,6 @@ export type AnalyticsProgramGroupsUsageResponse = {
913
907
  totalFix?: number;
914
908
  totalFixSuccess?: number;
915
909
  totalFixFailure?: number;
916
- overallAverageRating?: number
917
- totalRatings?: number;
918
910
  items: ProgramGroupsUsageResponse[];
919
911
  totalItems?: number;
920
912
  };
@@ -939,9 +931,8 @@ export type ProgramGroupsDetailsResponse = {
939
931
  issuesFilesCount?: number;
940
932
  changedFilesCount?: number;
941
933
  issuesCount?: number;
942
- customerScore?: number | null
943
- customerCommentary?: string | null
944
- customerRatingCreatedAt?: string | null
934
+ status?: string;
935
+ customerScore?: number | null;
945
936
  };
946
937
  export type AnalyticsProgramGroupsDetailsResponse = {
947
938
  programsCount?: number;
@@ -981,9 +972,7 @@ export type RepositoryDetailedReportItemResponse = {
981
972
  targetBranch?: string | null;
982
973
  totalFilesCount?: number;
983
974
  status?: string | null;
984
- customerScore?: number | null
985
- customerCommentary?: string | null
986
- customerRatingCreatedAt?: string | null
975
+ customerScore?: number | null;
987
976
  };
988
977
  export type AnalyticsRepositoryDetailedReportResponse = {
989
978
  reposCount?: number;
@@ -1012,8 +1001,7 @@ export type ProgramGroupsTargetDetailsResponse = {
1012
1001
  customOutputs?: {
1013
1002
  [key: string]: any;
1014
1003
  } | null;
1015
- customerScore?: number | null
1016
- customerCommentary?: string | null
1004
+ customerScore?: number | null;
1017
1005
  };
1018
1006
  export type AnalyticsProgramGroupsTargetDetailsResponse = {
1019
1007
  totalComponents?: number;
@@ -1033,8 +1021,7 @@ export type RepositoryTargetDetailsItemResponse = {
1033
1021
  issuesCount?: number | null;
1034
1022
  reportCreatedAt: string | null;
1035
1023
  reportId: string | null;
1036
- customerScore?: number | null
1037
- customerCommentary?: string | null
1024
+ customerScore?: number | null;
1038
1025
  };
1039
1026
  export type AnalyticsRepositoryTargetDetailsResponse = {
1040
1027
  totalFiles?: number;
@@ -1073,25 +1060,25 @@ export type SaveSearchReposResponse = {
1073
1060
  repositories: SaveSearchReposRepositoryResponse[];
1074
1061
  };
1075
1062
  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
- }
1063
+ url: string;
1064
+ name: string;
1065
+ defaultBranch: string;
1066
+ lastCommitDate: string;
1067
+ archived: boolean;
1068
+ visibility?: "public" | "private" | "internal";
1069
+ alreadyCreated?: boolean;
1070
+ };
1084
1071
  export type ResponseSearchRepoByIdResponse = {
1085
- total: number | null
1086
- status?: string
1087
- exceptions: HttpErrorResponse[]
1088
- items?: SearchRepoByIdResponse[]
1089
- }
1072
+ total: number | null;
1073
+ status?: string;
1074
+ exceptions: HttpErrorResponse[];
1075
+ items?: SearchRepoByIdResponse[];
1076
+ };
1090
1077
  export type ResponseSearchRepoByIdResponseRead = {
1091
- total: number | null
1092
- status?: string
1093
- exceptions: HttpErrorResponseRead[]
1094
- items?: SearchRepoByIdResponse[]
1078
+ total: number | null;
1079
+ status?: string;
1080
+ exceptions: HttpErrorResponseRead[];
1081
+ items?: SearchRepoByIdResponse[];
1095
1082
  };
1096
1083
  /**
1097
1084
  * Check Role Route
@@ -1521,30 +1508,30 @@ export function downloadReportV1ReportsReportIdDownloadGet({ reportId, extension
1521
1508
  * Put Customer Rating Report
1522
1509
  */
1523
1510
  export function putCustomerRatingReportV1ReportsReportIdCustomerRatingPut({ reportId, authorization, putCustomerRatingReportRequest }: {
1524
- reportId: string
1525
- authorization: string
1526
- putCustomerRatingReportRequest: PutCustomerRatingReportRequest
1511
+ reportId: string;
1512
+ authorization: string;
1513
+ putCustomerRatingReportRequest: PutCustomerRatingReportRequest;
1527
1514
  }, opts?: Oazapfts.RequestOpts) {
1528
1515
  return oazapfts.ok(oazapfts.fetchJson<{
1529
- status: 200
1530
- data: any
1516
+ status: 200;
1517
+ data: any;
1531
1518
  } | {
1532
- status: 400
1533
- data: HttpErrorResponseRead
1519
+ status: 400;
1520
+ data: HttpErrorResponseRead;
1534
1521
  } | {
1535
- status: 401
1536
- data: HttpErrorResponseRead
1522
+ status: 401;
1523
+ data: HttpErrorResponseRead;
1537
1524
  } | {
1538
- status: 404
1539
- data: HttpErrorResponseRead
1525
+ status: 404;
1526
+ data: HttpErrorResponseRead;
1540
1527
  } | {
1541
- status: 422
1528
+ status: 422;
1542
1529
  } | {
1543
- status: 500
1544
- data: HttpErrorResponseRead
1530
+ status: 500;
1531
+ data: HttpErrorResponseRead;
1545
1532
  } | {
1546
- status: 503
1547
- data: HttpErrorResponseRead
1533
+ status: 503;
1534
+ data: HttpErrorResponseRead;
1548
1535
  }>(`/v1/reports/${encodeURIComponent(reportId)}/customer-rating`, oazapfts.json({
1549
1536
  ...opts,
1550
1537
  method: "PUT",
@@ -1552,7 +1539,7 @@ export function putCustomerRatingReportV1ReportsReportIdCustomerRatingPut({ repo
1552
1539
  headers: oazapfts.mergeHeaders(opts?.headers, {
1553
1540
  authorization
1554
1541
  })
1555
- })))
1542
+ })));
1556
1543
  }
1557
1544
  /**
1558
1545
  * Search Repos Scm Service
@@ -332,5 +332,3 @@ export function delete1({ notificationIntentId }: {
332
332
  method: "DELETE"
333
333
  }));
334
334
  }
335
-
336
-
@@ -535,6 +535,16 @@ export type ApplicationDestroyRequest = {
535
535
  /** Destroy status. */
536
536
  status: "SUCCESS" | "FAILED";
537
537
  };
538
+ export type WorkspaceResponse = {
539
+ /** Workspace id. */
540
+ id: string;
541
+ /** Workspace name */
542
+ name: string;
543
+ /** Workspace description */
544
+ description?: string;
545
+ /** Workspace image */
546
+ imageUrl?: string;
547
+ };
538
548
  export type ImportContextRequest = {
539
549
  stackVersionId: string;
540
550
  stackVersionReference: string;
@@ -762,16 +772,6 @@ export type PluginForAppCreationV2Response = {
762
772
  requiredConnectionInterfacesByType: PluginForAppCreationV2ResponseRequiredConnectionInterfaceByType[];
763
773
  generatesConnectionInterfacesByType: PluginForAppCreationV2ResponseGeneratesConnectionInterfaceByType[];
764
774
  };
765
- export type WorkspaceResponse = {
766
- /** Workspace id. */
767
- id: string;
768
- /** Workspace name */
769
- name: string;
770
- /** Workspace description */
771
- description?: string;
772
- /** Workspace image */
773
- imageUrl?: string;
774
- };
775
775
  export type WorkspacePageResponse = {
776
776
  currentPage: number;
777
777
  pageSize: number;
@@ -1922,6 +1922,21 @@ export function updateInfrastructureControllerupdateInfraPluginsAndCreatePullReq
1922
1922
  body: updatePluginAndCreatePrRequest
1923
1923
  })));
1924
1924
  }
1925
+ /**
1926
+ * Get workspaces summary
1927
+ */
1928
+ export function workspaceControllergetWorkspacesSummary({ body }: {
1929
+ body: string[];
1930
+ }, opts?: Oazapfts.RequestOpts) {
1931
+ return oazapfts.ok(oazapfts.fetchJson<{
1932
+ status: 200;
1933
+ data: WorkspaceResponse[];
1934
+ }>("/v1/workspaces/summary", oazapfts.json({
1935
+ ...opts,
1936
+ method: "POST",
1937
+ body
1938
+ })));
1939
+ }
1925
1940
  /**
1926
1941
  * Import stack context in workspace
1927
1942
  */
package/src/client/ai.ts CHANGED
@@ -264,10 +264,7 @@ class AIClient extends ReactQueryNetworkClient {
264
264
  if (!agent) return []
265
265
  const tools: (Omit<ChatAgentTool, 'duration' | 'prompt' | 'output'>)[] = []
266
266
  agent.toolkits?.builtin_toolkits?.forEach(kit => kit.tools?.forEach(({ id, name, description }) => {
267
- if (id) tools.push({ image: kit.image_url, id, name: name || id, description, goal: '' })
268
- }))
269
- agent.toolkits?.custom_toolkits?.forEach(kit => kit.tools?.forEach(({ id, name, description }) => {
270
- if (id) tools.push({ image: kit.avatar ?? undefined, id, name: name || id, description, goal: '' })
267
+ if (id) tools.push({ image: kit.image_url, id, name: name || id, description })
271
268
  }))
272
269
  return tools
273
270
  } catch {
@@ -306,33 +303,6 @@ class AIClient extends ReactQueryNetworkClient {
306
303
  steps: info.data?.steps?.map(s => s.goal) ?? [],
307
304
  goal: info.data?.plan_goal ?? '',
308
305
  })
309
-
310
- info.data?.steps.forEach(s => data.steps?.push({
311
- id: s.id,
312
- type: 'step',
313
- status: 'pending',
314
- input: s.goal,
315
- attempts: [{
316
- tools: s.tools?.map(t => ({
317
- ...(tools.find(({ id }) => id === t.tool_id) ?? { id: t.tool_id, name: t.tool_id }),
318
- executionId: t.tool_execution_id,
319
- goal: t.goal,
320
- })),
321
- }],
322
- }))
323
- data.steps.push({ id: 'answer', type: 'answer', status: 'pending' })
324
- }
325
-
326
- if (info.type === 'planning' && info.action === 'awaiting_approval') {
327
- data.steps.push({
328
- id: 'planning',
329
- type: 'planning',
330
- status: 'awaiting_approval',
331
- user_question: info.data?.user_question,
332
- duration: info.duration || 0,
333
- steps: info.data?.steps?.map(s => s.goal) ?? [],
334
- goal: info.data?.plan_goal ?? '',
335
- })
336
306
  info.data?.steps.forEach(s => data.steps?.push({
337
307
  id: s.id,
338
308
  type: 'step',
@@ -342,7 +312,6 @@ class AIClient extends ReactQueryNetworkClient {
342
312
  tools: s.tools?.map(t => ({
343
313
  ...(tools.find(({ id }) => id === t.tool_id) ?? { id: t.tool_id, name: t.tool_id }),
344
314
  executionId: t.tool_execution_id,
345
- goal: t.goal,
346
315
  })),
347
316
  }],
348
317
  }))
@@ -365,69 +334,27 @@ class AIClient extends ReactQueryNetworkClient {
365
334
  }
366
335
  }
367
336
 
368
- if (info.type === 'tool' && info.action === 'awaiting_approval') {
369
- const tool = tools.find(({ id }) => id === info.data?.tool_id)
370
- data.steps.push({
371
- id: info.id,
372
- type: 'tool',
373
- status: 'awaiting_approval',
374
- duration: info.duration || 0,
375
- input: info.data?.input,
376
- user_question: info.data?.user_question,
377
- attempts: [{
378
- tools: [{
379
- executionId: info.id,
380
- id: info.data?.tool_id ?? '',
381
- name: tool?.name ?? '',
382
- goal: tool?.goal ?? '',
383
- ...tool,
384
- }],
385
- }],
386
- })
387
- data.steps.push({ id: 'answer', type: 'answer', status: 'pending' })
388
- }
389
-
390
337
  if (info.type === 'tool' && info.action === 'start') {
391
338
  const currentStep = data.steps.find(s => s.status === 'running') as StepChatStep
392
- if (!info.data) return
393
-
394
- //There might be a tool with status awaiting_approval, so we want to inform tool has already started
395
- if (!currentStep || !currentStep.attempts[0].tools) {
396
- const input = formatJson(info.data.input)
397
- const tool = tools.find(({ id }) => id === info.data?.tool_id) ?? { id: info.data?.tool_id, name: info.data?.tool_id }
398
- data.steps.push({
399
- id: info.id,
400
- type: 'tool',
401
- status: 'running',
402
- duration: info.duration || 0,
403
- input: info.data?.input,
404
- user_question: info.data?.user_question,
405
- attempts: [{
406
- tools:[{ ...tool, executionId: info.id, input }],
407
- }],
408
- })
339
+ if (!currentStep || !info.data || !currentStep.attempts[0].tools) return
340
+ const toolInFirstAttempt = currentStep.attempts[0].tools.find(t => t.executionId === info.id)
341
+ if (!toolInFirstAttempt) return
342
+ const input = formatJson(info.data.input)
343
+ if (info.data.attempt === 0) {
344
+ toolInFirstAttempt.input = input
409
345
  } else {
410
- const toolInFirstAttempt = currentStep.attempts[0].tools.find(t => t.executionId === info.id)
411
- if (!toolInFirstAttempt) return
412
- const input = formatJson(info.data.input)
413
- if (info.data.attempt === 1) {
414
- toolInFirstAttempt.input = input
415
- } else {
416
- const tool = tools.find(({ id }) => id === info.data?.tool_id) ?? { id: info.data?.tool_id, name: info.data?.tool_id }
417
- currentStep.attempts[info.data.attempt-1] ??= { tools: [] }
418
- currentStep.attempts[info.data.attempt-1].tools?.push({
419
- ...tool,
420
- input,
421
- })
422
- }
423
-
346
+ currentStep.attempts[info.data.attempt] ??= { tools: [] }
347
+ currentStep.attempts[info.data.attempt].tools?.push({
348
+ ...toolInFirstAttempt,
349
+ input,
350
+ })
424
351
  }
425
352
  }
426
353
 
427
354
  if (info.type === 'tool' && info.action === 'end') {
428
355
  const currentStep = data.steps.find(s => s.status === 'running') as StepChatStep
429
356
  if (!currentStep || !info.data) return
430
- const tool = currentStep.attempts[info.data.attempt-1]?.tools?.find(t => t.executionId === info.id)
357
+ const tool = currentStep.attempts[info.data.attempt]?.tools?.find(t => t.executionId === info.id)
431
358
  if (tool) {
432
359
  tool.output = formatJson(info.data.output)
433
360
  tool.duration = info.duration
@@ -466,4 +393,3 @@ class AIClient extends ReactQueryNetworkClient {
466
393
  }
467
394
 
468
395
  export const aiClient = new AIClient()
469
-
@@ -58,12 +58,11 @@ import {
58
58
  getModuleV1ModulesModuleIdGet,
59
59
  analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet,
60
60
  analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet,
61
- analyticsRepositoryTargetDetailsV1AnalyticsRepositoriesTargetDetailsGet,
62
- analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet,
63
61
  searchReposScmServiceV2ReposSearchScmPost,
64
62
  importReposWithTagsScmServiceV2ReposSearchScmSearchIdPost,
65
63
  searchReposScmV2V2ReposSearchScmSearchIdGet,
66
- putCustomerRatingReportV1ReportsReportIdCustomerRatingPut,
64
+ analyticsRepositoryTargetDetailsV1AnalyticsRepositoriesTargetDetailsGet,
65
+ analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet,
67
66
  } from '../api/codeShift'
68
67
  import { DefaultAPIError } from '../error/DefaultAPIError'
69
68
  import { codeShiftDictionary } from '../error/dictionary/code-shift'
@@ -360,12 +359,6 @@ class CodeShift extends ReactQueryNetworkClient {
360
359
  analyticsRepositoryTargetDetailsDownload = this.query(
361
360
  removeAuthorizationParam(analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet),
362
361
  )
363
- /**
364
- * Put Customer Rating Report
365
- */
366
- updateReportRating = this.mutation(
367
- removeAuthorizationParam(putCustomerRatingReportV1ReportsReportIdCustomerRatingPut),
368
- )
369
362
  }
370
363
 
371
364
  export const codeShiftClient = new CodeShift()
@@ -245,20 +245,19 @@ export interface ChatAgentTool {
245
245
  image?: string,
246
246
  input?: string,
247
247
  output?: string,
248
- goal: string,
249
248
  }
250
249
 
251
250
  export interface ChatStepAttempt {
252
251
  /**
253
252
  * The tools used by this step.
254
253
  */
255
- tools?: Partial<ChatAgentTool>[],
254
+ tools?: ChatAgentTool[],
256
255
  }
257
256
 
258
257
  export interface BaseChatStep {
259
258
  id: string,
260
- type: 'planning' | 'step' | 'answer' | 'tool',
261
- status: 'pending' | 'running' | 'success' | 'error' | 'awaiting_approval',
259
+ type: 'planning' | 'step' | 'answer',
260
+ status: 'pending' | 'running' | 'success' | 'error',
262
261
  /**
263
262
  * Duration in seconds.
264
263
  */
@@ -267,24 +266,9 @@ export interface BaseChatStep {
267
266
 
268
267
  export interface PlanningChatStep extends BaseChatStep {
269
268
  type: 'planning',
270
- status: 'success' | 'awaiting_approval',
269
+ status: 'success',
271
270
  steps: string[],
272
271
  goal: string,
273
- user_question?: string,
274
- }
275
-
276
- export interface ToolChatStep extends BaseChatStep {
277
- type: 'tool',
278
- status: 'running' | 'success' | 'error' | 'awaiting_approval',
279
- /**
280
- * Each step might attempt to run for multiple times, with different inputs and outputs. If first attempt succeeds, this array will have
281
- * only one element.
282
- *
283
- * This array never has less than one element, despite the step's status.
284
- */
285
- attempts: ChatStepAttempt[],
286
- input?: Record<string, any>,
287
- user_question?: string,
288
272
  }
289
273
 
290
274
  export interface StepChatStep extends BaseChatStep {
@@ -304,19 +288,17 @@ export interface AnswerChatStep extends BaseChatStep {
304
288
  type: 'answer',
305
289
  }
306
290
 
307
- export type ChatStep = PlanningChatStep | StepChatStep | AnswerChatStep | ToolChatStep
291
+ export type ChatStep = PlanningChatStep | StepChatStep | AnswerChatStep
308
292
 
309
293
  export interface BaseAgentInfo {
310
294
  type: 'chat' | 'planning' | 'step' | 'tool' | 'final_answer',
311
- action: 'start' | 'end' | 'awaiting_approval',
295
+ action: 'start' | 'end',
312
296
  duration?: number,
313
- id: string,
314
297
  }
315
298
 
316
299
  export interface AgentTool {
317
300
  tool_id: string,
318
301
  tool_execution_id: string,
319
- goal: string,
320
302
  }
321
303
 
322
304
  export interface PlanningAgentInfo extends BaseAgentInfo {
@@ -329,7 +311,6 @@ export interface PlanningAgentInfo extends BaseAgentInfo {
329
311
  goal: string,
330
312
  tools?: AgentTool[],
331
313
  }[],
332
- user_question?: string,
333
314
  },
334
315
  }
335
316
 
@@ -345,8 +326,6 @@ export interface ToolAgentInfo extends BaseAgentInfo {
345
326
  input?: any,
346
327
  attempt: number,
347
328
  output?: string,
348
- user_question?: string,
349
- tool_id: string,
350
329
  },
351
330
  }
352
331
 
@@ -65,6 +65,7 @@ import {
65
65
  workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType,
66
66
  workspaceControllerdelete,
67
67
  workspaceControllergetWorkspaces,
68
+ workspaceControllergetWorkspacesSummary,
68
69
  workspaceStackControlleraddStacksInWorkspace,
69
70
  workspaceStackControllerdeleteStacksInWorkspace,
70
71
  workspaceStackControllerlistStacks,
@@ -159,7 +160,7 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
159
160
  * Gets workflow inputs in a workspace stack
160
161
  */
161
162
  workflowInputsInWorkspace = this.query(contextWorkflowControllergetWorkspaceWorkflowInputs as unknown as ReplaceResult<typeof contextWorkflowControllergetWorkspaceWorkflowInputs, FixedWorkflowForCreationResponse>)
162
-
163
+
163
164
  /**
164
165
  * Gets workflow inputs in an account stack
165
166
  */
@@ -554,7 +555,10 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
554
555
  * Get list of versions with context of stack
555
556
  */
556
557
  getStacksVersionWithContext = this.query(accountStackControllerlistVersionsWithContext)
557
-
558
+ /**
559
+ * Receives a list of workspace id's and returns that workspaces detailed
560
+ */
561
+ workspacesFilterById = this.mutation(workspaceControllergetWorkspacesSummary)
558
562
  }
559
563
 
560
564
  export const workspaceManagerClient = new WorkspaceManagerClient()
@@ -1,3 +0,0 @@
1
- ### STK - STEP-START - step_id_1 ###
2
- Eu irei falhar, adeus mundo cruel
3
- ### STK - STEP-END - step_id_1 ###
@@ -1,5 +0,0 @@
1
- ### STK - STEP-START - step_id_1 ###
2
- Ola estou planejando algo
3
- ### STK - STEP-END - step_id_1 ###
4
- ### STK - STEP-START - step_id_2 ###
5
- ### STK - STEP-END - step_id_2 ###