@harnessio/react-ssca-manager-client 0.86.18 → 0.86.19

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.
@@ -506,6 +506,7 @@ export type { AttestationUploadRequest } from './schemas/AttestationUploadReques
506
506
  export type { AttestationUploadResponseBody } from './schemas/AttestationUploadResponseBody';
507
507
  export type { AttestationsByArtifactRequest } from './schemas/AttestationsByArtifactRequest';
508
508
  export type { AttestationsByArtifactResponse } from './schemas/AttestationsByArtifactResponse';
509
+ export type { AutoDiscoveryScope } from './schemas/AutoDiscoveryScope';
509
510
  export type { AutoPrAdvancedRule } from './schemas/AutoPrAdvancedRule';
510
511
  export type { AutoPrCheckInterval } from './schemas/AutoPrCheckInterval';
511
512
  export type { AutoPrComplianceRule } from './schemas/AutoPrComplianceRule';
@@ -806,6 +807,7 @@ export type { SbomScoreRequest } from './schemas/SbomScoreRequest';
806
807
  export type { SbomScoreSubScores } from './schemas/SbomScoreSubScores';
807
808
  export type { SbomScorecardRequestBody } from './schemas/SbomScorecardRequestBody';
808
809
  export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
810
+ export type { ScannerConfigCount } from './schemas/ScannerConfigCount';
809
811
  export type { ScannerConfiguration } from './schemas/ScannerConfiguration';
810
812
  export type { Scorecard } from './schemas/Scorecard';
811
813
  export type { ScorecardInfo } from './schemas/ScorecardInfo';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Harness Code space to include in auto-discovery when include_all_repos is true
3
+ */
4
+ export type AutoDiscoveryScope = 'ACCOUNT' | 'ORGANIZATION' | 'PROJECT';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,8 +1,17 @@
1
+ import type { AutoDiscoveryScope } from '../schemas/AutoDiscoveryScope';
1
2
  import type { RepoDetailsDto } from '../schemas/RepoDetailsDto';
2
3
  /**
3
4
  *
4
5
  */
5
6
  export interface ConfigureReposRequest {
7
+ /**
8
+ * Harness Code + include_all_repos only. Spaces to auto-discover.
9
+ * Omitted or empty with include_all_repos=true means PROJECT (current behavior).
10
+ * Rejected with 400 when include_all_repos is false, and when the integration is not
11
+ * Harness Code. Omit the field (or send an empty array) in those cases.
12
+ *
13
+ */
14
+ auto_discovery_scopes?: AutoDiscoveryScope[];
6
15
  include_all_repos?: boolean;
7
16
  repositories?: RepoDetailsDto[];
8
17
  }
@@ -1,3 +1,4 @@
1
+ import type { ScannerConfigCount } from '../schemas/ScannerConfigCount';
1
2
  export interface IntegrationCountsResponse {
2
3
  /**
3
4
  * Counts grouped by integration type (keys match stored type values)
@@ -6,9 +7,9 @@ export interface IntegrationCountsResponse {
6
7
  [key: string]: number;
7
8
  };
8
9
  /**
9
- * Counts grouped by scanner_id (keys match stored scanner_id values)
10
+ * Scanner configuration counts keyed by scanner_id, with slug and display name metadata
10
11
  */
11
12
  scanner_configs_by_scanner_id: {
12
- [key: string]: number;
13
+ [key: string]: ScannerConfigCount;
13
14
  };
14
15
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -1,5 +1,12 @@
1
+ import type { AutoDiscoveryScope } from '../schemas/AutoDiscoveryScope';
1
2
  import type { RepoDetailsDto } from '../schemas/RepoDetailsDto';
2
3
  export interface ListIntegrationReposResponse {
4
+ /**
5
+ * Present when include_all_repos is true for Harness Code integrations.
6
+ * Echoes [PROJECT] when stored scopes are omitted or empty; otherwise echoes the stored scopes.
7
+ *
8
+ */
9
+ auto_discovery_scopes?: AutoDiscoveryScope[];
3
10
  include_all_repos?: boolean;
4
11
  repositories?: RepoDetailsDto[];
5
12
  }
@@ -3,6 +3,14 @@ import type { RspmScannerType } from '../schemas/RspmScannerType';
3
3
  export interface RspmScannerInfo {
4
4
  required_config_keys: string[];
5
5
  scanner_id: RspmScannerId;
6
+ /**
7
+ * Display name from STO product catalog or SCS constants
8
+ */
9
+ scanner_name: string;
10
+ /**
11
+ * STO product catalog slug (Product.name)
12
+ */
13
+ scanner_slug: string;
6
14
  scanner_types?: RspmScannerType[];
7
15
  supported_config_keys: string[];
8
16
  }
@@ -0,0 +1,16 @@
1
+ import type { RspmScannerType } from '../schemas/RspmScannerType';
2
+ export interface ScannerConfigCount {
3
+ /**
4
+ * @format int64
5
+ */
6
+ count: number;
7
+ /**
8
+ * Display name from STO product catalog or SCS constants
9
+ */
10
+ scanner_name: string;
11
+ /**
12
+ * STO product catalog slug (Product.name)
13
+ */
14
+ scanner_slug: string;
15
+ scanner_types: RspmScannerType[];
16
+ }
@@ -11,4 +11,12 @@ export interface ScannerConfiguration {
11
11
  last_used_at?: number | null;
12
12
  name?: string;
13
13
  scanner_id?: RspmScannerId;
14
+ /**
15
+ * Display name from STO product catalog or SCS constants
16
+ */
17
+ scanner_name: string;
18
+ /**
19
+ * STO product catalog slug (Product.name)
20
+ */
21
+ scanner_slug: string;
14
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.86.18",
3
+ "version": "0.86.19",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",