@harnessio/react-har-service-client 0.36.0 → 0.37.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.
Files changed (31) hide show
  1. package/dist/har-service/src/services/hooks/useEvaluateArtifactScanMutation.d.ts +21 -0
  2. package/dist/har-service/src/services/hooks/useEvaluateArtifactScanMutation.js +14 -0
  3. package/dist/har-service/src/services/hooks/useGetArtifactScanDetailsQuery.d.ts +21 -0
  4. package/dist/har-service/src/services/hooks/useGetArtifactScanDetailsQuery.js +14 -0
  5. package/dist/har-service/src/services/hooks/useGetArtifactScansQuery.d.ts +40 -0
  6. package/dist/har-service/src/services/hooks/useGetArtifactScansQuery.js +14 -0
  7. package/dist/har-service/src/services/hooks/useSearchFilesQuery.d.ts +0 -2
  8. package/dist/har-service/src/services/index.d.ts +15 -0
  9. package/dist/har-service/src/services/index.js +3 -0
  10. package/dist/har-service/src/services/responses/ArtifactScanDetailsResponseResponse.d.ts +8 -0
  11. package/dist/har-service/src/services/responses/ArtifactScanDetailsResponseResponse.js +4 -0
  12. package/dist/har-service/src/services/responses/ArtifactScanEvaluateRequestAcceptedResponse.d.ts +6 -0
  13. package/dist/har-service/src/services/responses/ArtifactScanEvaluateRequestAcceptedResponse.js +1 -0
  14. package/dist/har-service/src/services/responses/ListArtifactScanResponseResponse.d.ts +32 -0
  15. package/dist/har-service/src/services/responses/ListArtifactScanResponseResponse.js +1 -0
  16. package/dist/har-service/src/services/schemas/ApiErrors.d.ts +18 -0
  17. package/dist/har-service/src/services/schemas/ApiErrors.js +4 -0
  18. package/dist/har-service/src/services/schemas/ArtifactScan.d.ts +39 -0
  19. package/dist/har-service/src/services/schemas/ArtifactScan.js +1 -0
  20. package/dist/har-service/src/services/schemas/ArtifactScanEvaluateRequestStatus.d.ts +4 -0
  21. package/dist/har-service/src/services/schemas/ArtifactScanEvaluateRequestStatus.js +4 -0
  22. package/dist/har-service/src/services/schemas/FileMetadata.d.ts +1 -0
  23. package/dist/har-service/src/services/schemas/PackageType.d.ts +4 -2
  24. package/dist/har-service/src/services/schemas/ScanMeta.d.ts +23 -0
  25. package/dist/har-service/src/services/schemas/ScanMeta.js +4 -0
  26. package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +2 -0
  27. package/dist/har-service/src/services/schemas/UpstreamProxyConfigFirewallMode.d.ts +4 -0
  28. package/dist/har-service/src/services/schemas/UpstreamProxyConfigFirewallMode.js +4 -0
  29. package/dist/har-service/src/services/schemas/V3Error.d.ts +7 -0
  30. package/dist/har-service/src/services/schemas/V3Error.js +1 -0
  31. package/package.json +1 -1
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ArtifactScanEvaluateRequestAcceptedResponse } from '../responses/ArtifactScanEvaluateRequestAcceptedResponse';
3
+ import type { V3Error } from '../schemas/V3Error';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface EvaluateArtifactScanMutationPathParams {
7
+ scan_id: string;
8
+ }
9
+ export interface EvaluateArtifactScanMutationQueryParams {
10
+ account_identifier: string;
11
+ }
12
+ export type EvaluateArtifactScanOkResponse = ResponseWithPagination<ArtifactScanEvaluateRequestAcceptedResponse>;
13
+ export type EvaluateArtifactScanErrorResponse = V3Error;
14
+ export interface EvaluateArtifactScanProps extends EvaluateArtifactScanMutationPathParams, Omit<FetcherOptions<EvaluateArtifactScanMutationQueryParams, unknown>, 'url'> {
15
+ queryParams: EvaluateArtifactScanMutationQueryParams;
16
+ }
17
+ export declare function evaluateArtifactScan(props: EvaluateArtifactScanProps): Promise<EvaluateArtifactScanOkResponse>;
18
+ /**
19
+ * Re-evaluate artifact scan
20
+ */
21
+ export declare function useEvaluateArtifactScanMutation(options?: Omit<UseMutationOptions<EvaluateArtifactScanOkResponse, EvaluateArtifactScanErrorResponse, EvaluateArtifactScanProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<EvaluateArtifactScanOkResponse, V3Error, EvaluateArtifactScanProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function evaluateArtifactScan(props) {
7
+ return fetcher(Object.assign({ url: `/v3/scans/${props.scan_id}/evaluate`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Re-evaluate artifact scan
11
+ */
12
+ export function useEvaluateArtifactScanMutation(options) {
13
+ return useMutation((mutateProps) => evaluateArtifactScan(mutateProps), options);
14
+ }
@@ -0,0 +1,21 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactScanDetailsResponseResponse } from '../responses/ArtifactScanDetailsResponseResponse';
3
+ import type { V3Error } from '../schemas/V3Error';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetArtifactScanDetailsQueryPathParams {
7
+ scan_id: string;
8
+ }
9
+ export interface GetArtifactScanDetailsQueryQueryParams {
10
+ account_identifier: string;
11
+ }
12
+ export type GetArtifactScanDetailsOkResponse = ResponseWithPagination<ArtifactScanDetailsResponseResponse>;
13
+ export type GetArtifactScanDetailsErrorResponse = V3Error;
14
+ export interface GetArtifactScanDetailsProps extends GetArtifactScanDetailsQueryPathParams, Omit<FetcherOptions<GetArtifactScanDetailsQueryQueryParams, unknown>, 'url'> {
15
+ queryParams: GetArtifactScanDetailsQueryQueryParams;
16
+ }
17
+ export declare function getArtifactScanDetails(props: GetArtifactScanDetailsProps): Promise<GetArtifactScanDetailsOkResponse>;
18
+ /**
19
+ * Get the details of a artifact scan
20
+ */
21
+ export declare function useGetArtifactScanDetailsQuery(props: GetArtifactScanDetailsProps, options?: Omit<UseQueryOptions<GetArtifactScanDetailsOkResponse, GetArtifactScanDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactScanDetailsOkResponse, V3Error>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getArtifactScanDetails(props) {
7
+ return fetcher(Object.assign({ url: `/v3/scans/${props.scan_id}/details`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get the details of a artifact scan
11
+ */
12
+ export function useGetArtifactScanDetailsQuery(props, options) {
13
+ return useQuery(['GetArtifactScanDetails', props.scan_id, props.queryParams], ({ signal }) => getArtifactScanDetails(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,40 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListArtifactScanResponseResponse } from '../responses/ListArtifactScanResponseResponse';
3
+ import type { V3Error } from '../schemas/V3Error';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetArtifactScansQueryQueryParams {
7
+ account_identifier: string;
8
+ org_identifier?: string;
9
+ project_identifier?: string;
10
+ package_type?: string[];
11
+ registry_id?: string[];
12
+ policy_set_ref?: string;
13
+ scan_status?: string;
14
+ /**
15
+ * @format int64
16
+ * @default 0
17
+ */
18
+ page?: number;
19
+ /**
20
+ * @format int64
21
+ * @default 20
22
+ */
23
+ size?: number;
24
+ /**
25
+ * @default "ASC"
26
+ */
27
+ sort_order?: 'ASC' | 'DESC';
28
+ sort_field?: string;
29
+ search_term?: string;
30
+ }
31
+ export type GetArtifactScansOkResponse = ResponseWithPagination<ListArtifactScanResponseResponse>;
32
+ export type GetArtifactScansErrorResponse = V3Error;
33
+ export interface GetArtifactScansProps extends Omit<FetcherOptions<GetArtifactScansQueryQueryParams, unknown>, 'url'> {
34
+ queryParams: GetArtifactScansQueryQueryParams;
35
+ }
36
+ export declare function getArtifactScans(props: GetArtifactScansProps): Promise<GetArtifactScansOkResponse>;
37
+ /**
38
+ * Get the list of artifact scan result for a particular scope
39
+ */
40
+ export declare function useGetArtifactScansQuery(props: GetArtifactScansProps, options?: Omit<UseQueryOptions<GetArtifactScansOkResponse, GetArtifactScansErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactScansOkResponse, V3Error>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getArtifactScans(props) {
7
+ return fetcher(Object.assign({ url: `/v3/scans`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get the list of artifact scan result for a particular scope
11
+ */
12
+ export function useGetArtifactScansQuery(props, options) {
13
+ return useQuery(['GetArtifactScans', props.queryParams], ({ signal }) => getArtifactScans(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -9,8 +9,6 @@ import type { ResponseWithPagination } from '../helpers';
9
9
  import { FetcherOptions } from '../../../../fetcher/index.js';
10
10
  export interface SearchFilesQueryQueryParams {
11
11
  account_identifier: string;
12
- org_identifier?: string;
13
- project_identifier?: string;
14
12
  registry_identifier: string;
15
13
  query: string;
16
14
  /**
@@ -41,6 +41,8 @@ export type { DeleteVersionErrorResponse, DeleteVersionMutationPathParams, Delet
41
41
  export { deleteVersion, useDeleteVersionMutation } from './hooks/useDeleteVersionMutation';
42
42
  export type { DeleteWebhookErrorResponse, DeleteWebhookMutationPathParams, DeleteWebhookOkResponse, DeleteWebhookProps, } from './hooks/useDeleteWebhookMutation';
43
43
  export { deleteWebhook, useDeleteWebhookMutation } from './hooks/useDeleteWebhookMutation';
44
+ export type { EvaluateArtifactScanErrorResponse, EvaluateArtifactScanMutationPathParams, EvaluateArtifactScanMutationQueryParams, EvaluateArtifactScanOkResponse, EvaluateArtifactScanProps, } from './hooks/useEvaluateArtifactScanMutation';
45
+ export { evaluateArtifactScan, useEvaluateArtifactScanMutation, } from './hooks/useEvaluateArtifactScanMutation';
44
46
  export type { FindSpaceLabelErrorResponse, FindSpaceLabelOkResponse, FindSpaceLabelProps, FindSpaceLabelQueryPathParams, FindSpaceLabelQueryQueryParams, } from './hooks/useFindSpaceLabelQuery';
45
47
  export { findSpaceLabel, useFindSpaceLabelQuery } from './hooks/useFindSpaceLabelQuery';
46
48
  export type { GetAllArtifactVersionsErrorResponse, GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsProps, GetAllArtifactVersionsQueryPathParams, GetAllArtifactVersionsQueryQueryParams, } from './hooks/useGetAllArtifactVersionsQuery';
@@ -59,6 +61,10 @@ export type { GetArtifactFileErrorResponse, GetArtifactFileOkResponse, GetArtifa
59
61
  export { getArtifactFile, useGetArtifactFileQuery } from './hooks/useGetArtifactFileQuery';
60
62
  export type { GetArtifactFilesErrorResponse, GetArtifactFilesOkResponse, GetArtifactFilesProps, GetArtifactFilesQueryPathParams, GetArtifactFilesQueryQueryParams, } from './hooks/useGetArtifactFilesQuery';
61
63
  export { getArtifactFiles, useGetArtifactFilesQuery } from './hooks/useGetArtifactFilesQuery';
64
+ export type { GetArtifactScanDetailsErrorResponse, GetArtifactScanDetailsOkResponse, GetArtifactScanDetailsProps, GetArtifactScanDetailsQueryPathParams, GetArtifactScanDetailsQueryQueryParams, } from './hooks/useGetArtifactScanDetailsQuery';
65
+ export { getArtifactScanDetails, useGetArtifactScanDetailsQuery, } from './hooks/useGetArtifactScanDetailsQuery';
66
+ export type { GetArtifactScansErrorResponse, GetArtifactScansOkResponse, GetArtifactScansProps, GetArtifactScansQueryQueryParams, } from './hooks/useGetArtifactScansQuery';
67
+ export { getArtifactScans, useGetArtifactScansQuery } from './hooks/useGetArtifactScansQuery';
62
68
  export type { GetArtifactStatsForRegistryErrorResponse, GetArtifactStatsForRegistryOkResponse, GetArtifactStatsForRegistryProps, GetArtifactStatsForRegistryQueryPathParams, GetArtifactStatsForRegistryQueryQueryParams, } from './hooks/useGetArtifactStatsForRegistryQuery';
63
69
  export { getArtifactStatsForRegistry, useGetArtifactStatsForRegistryQuery, } from './hooks/useGetArtifactStatsForRegistryQuery';
64
70
  export type { GetArtifactStatsForSpaceErrorResponse, GetArtifactStatsForSpaceOkResponse, GetArtifactStatsForSpaceProps, GetArtifactStatsForSpaceQueryPathParams, GetArtifactStatsForSpaceQueryQueryParams, } from './hooks/useGetArtifactStatsForSpaceQuery';
@@ -178,6 +184,8 @@ export type { ArtifactDeploymentsResponseResponse } from './responses/ArtifactDe
178
184
  export type { ArtifactDetailResponseResponse } from './responses/ArtifactDetailResponseResponse';
179
185
  export type { ArtifactFileResponseResponse } from './responses/ArtifactFileResponseResponse';
180
186
  export type { ArtifactLabelResponseResponse } from './responses/ArtifactLabelResponseResponse';
187
+ export type { ArtifactScanDetailsResponseResponse } from './responses/ArtifactScanDetailsResponseResponse';
188
+ export type { ArtifactScanEvaluateRequestAcceptedResponse } from './responses/ArtifactScanEvaluateRequestAcceptedResponse';
181
189
  export type { ArtifactStatsResponseResponse } from './responses/ArtifactStatsResponseResponse';
182
190
  export type { ArtifactSummaryResponseResponse } from './responses/ArtifactSummaryResponseResponse';
183
191
  export type { ArtifactVersionSummaryResponseResponse } from './responses/ArtifactVersionSummaryResponseResponse';
@@ -198,6 +206,7 @@ export type { HelmArtifactManifestResponseResponse } from './responses/HelmArtif
198
206
  export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
199
207
  export type { ListArtifactLabelResponseResponse } from './responses/ListArtifactLabelResponseResponse';
200
208
  export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
209
+ export type { ListArtifactScanResponseResponse } from './responses/ListArtifactScanResponseResponse';
201
210
  export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
202
211
  export type { ListFilesResponseResponse } from './responses/ListFilesResponseResponse';
203
212
  export type { ListMigrationImageResponseResponse } from './responses/ListMigrationImageResponseResponse';
@@ -227,6 +236,7 @@ export type { WebhookResponseResponse } from './responses/WebhookResponseRespons
227
236
  export type { AccessKeySecretKey } from './schemas/AccessKeySecretKey';
228
237
  export type { AddTags } from './schemas/AddTags';
229
238
  export type { Anonymous } from './schemas/Anonymous';
239
+ export type { ApiErrors } from './schemas/ApiErrors';
230
240
  export type { ArtifactDeploymentsDetail } from './schemas/ArtifactDeploymentsDetail';
231
241
  export type { ArtifactDeploymentsDetails } from './schemas/ArtifactDeploymentsDetails';
232
242
  export type { ArtifactDeploymentsList } from './schemas/ArtifactDeploymentsList';
@@ -234,6 +244,8 @@ export type { ArtifactDetail } from './schemas/ArtifactDetail';
234
244
  export type { ArtifactEntityMetadata } from './schemas/ArtifactEntityMetadata';
235
245
  export type { ArtifactLabelRequest } from './schemas/ArtifactLabelRequest';
236
246
  export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
247
+ export type { ArtifactScan } from './schemas/ArtifactScan';
248
+ export type { ArtifactScanEvaluateRequestStatus } from './schemas/ArtifactScanEvaluateRequestStatus';
237
249
  export type { ArtifactStats } from './schemas/ArtifactStats';
238
250
  export type { ArtifactSummary } from './schemas/ArtifactSummary';
239
251
  export type { ArtifactType } from './schemas/ArtifactType';
@@ -322,6 +334,7 @@ export type { ReplicationRule } from './schemas/ReplicationRule';
322
334
  export type { ReplicationRuleRequest } from './schemas/ReplicationRuleRequest';
323
335
  export type { RpmArtifactDetailConfig } from './schemas/RpmArtifactDetailConfig';
324
336
  export type { SbomDetails } from './schemas/SbomDetails';
337
+ export type { ScanMeta } from './schemas/ScanMeta';
325
338
  export type { Scanner } from './schemas/Scanner';
326
339
  export type { SectionType } from './schemas/SectionType';
327
340
  export type { SlsaDetails } from './schemas/SlsaDetails';
@@ -337,8 +350,10 @@ export type { TypesLabelWithValues } from './schemas/TypesLabelWithValues';
337
350
  export type { TypesSaveLabelInput } from './schemas/TypesSaveLabelInput';
338
351
  export type { TypesSaveLabelValueInput } from './schemas/TypesSaveLabelValueInput';
339
352
  export type { UpstreamConfig } from './schemas/UpstreamConfig';
353
+ export type { UpstreamProxyConfigFirewallMode } from './schemas/UpstreamProxyConfigFirewallMode';
340
354
  export type { UserPassword } from './schemas/UserPassword';
341
355
  export type { UsererrorError } from './schemas/UsererrorError';
356
+ export type { V3Error } from './schemas/V3Error';
342
357
  export type { VersionMetadata } from './schemas/VersionMetadata';
343
358
  export type { VirtualConfig } from './schemas/VirtualConfig';
344
359
  export type { Webhook } from './schemas/Webhook';
@@ -19,6 +19,7 @@ export { deleteSpaceLabel, useDeleteSpaceLabelMutation } from './hooks/useDelete
19
19
  export { deleteSpaceLabelValue, useDeleteSpaceLabelValueMutation, } from './hooks/useDeleteSpaceLabelValueMutation';
20
20
  export { deleteVersion, useDeleteVersionMutation } from './hooks/useDeleteVersionMutation';
21
21
  export { deleteWebhook, useDeleteWebhookMutation } from './hooks/useDeleteWebhookMutation';
22
+ export { evaluateArtifactScan, useEvaluateArtifactScanMutation, } from './hooks/useEvaluateArtifactScanMutation';
22
23
  export { findSpaceLabel, useFindSpaceLabelQuery } from './hooks/useFindSpaceLabelQuery';
23
24
  export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
24
25
  export { getAllArtifactsByRegistry, useGetAllArtifactsByRegistryQuery, } from './hooks/useGetAllArtifactsByRegistryQuery';
@@ -28,6 +29,8 @@ export { getArtifactDeployments, useGetArtifactDeploymentsQuery, } from './hooks
28
29
  export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
29
30
  export { getArtifactFile, useGetArtifactFileQuery } from './hooks/useGetArtifactFileQuery';
30
31
  export { getArtifactFiles, useGetArtifactFilesQuery } from './hooks/useGetArtifactFilesQuery';
32
+ export { getArtifactScanDetails, useGetArtifactScanDetailsQuery, } from './hooks/useGetArtifactScanDetailsQuery';
33
+ export { getArtifactScans, useGetArtifactScansQuery } from './hooks/useGetArtifactScansQuery';
31
34
  export { getArtifactStatsForRegistry, useGetArtifactStatsForRegistryQuery, } from './hooks/useGetArtifactStatsForRegistryQuery';
32
35
  export { getArtifactStatsForSpace, useGetArtifactStatsForSpaceQuery, } from './hooks/useGetArtifactStatsForSpaceQuery';
33
36
  export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifactStatsQuery';
@@ -0,0 +1,8 @@
1
+ export interface ArtifactScanDetailsResponseResponse {
2
+ /**
3
+ * Details of artifact scan
4
+ */
5
+ data: {
6
+ [key: string]: any;
7
+ };
8
+ }
@@ -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 {};
@@ -0,0 +1,6 @@
1
+ import type { ArtifactScanEvaluateRequestStatus } from '../schemas/ArtifactScanEvaluateRequestStatus';
2
+ export interface ArtifactScanEvaluateRequestAcceptedResponse {
3
+ data: {
4
+ status: ArtifactScanEvaluateRequestStatus;
5
+ };
6
+ }
@@ -0,0 +1,32 @@
1
+ import type { ArtifactScan } from '../schemas/ArtifactScan';
2
+ import type { ScanMeta } from '../schemas/ScanMeta';
3
+ export interface ListArtifactScanResponseResponse {
4
+ /**
5
+ * A list of artifact scans
6
+ */
7
+ data: ArtifactScan[];
8
+ /**
9
+ * The total number of items
10
+ * @format int64
11
+ * @example 1
12
+ */
13
+ itemCount: number;
14
+ meta: ScanMeta;
15
+ /**
16
+ * The total number of pages
17
+ * @format int64
18
+ * @example 100
19
+ */
20
+ pageCount: number;
21
+ /**
22
+ * The current page
23
+ * @format int64
24
+ * @example 0
25
+ */
26
+ pageIndex: number;
27
+ /**
28
+ * The number of items per page
29
+ * @example 1
30
+ */
31
+ pageSize: number;
32
+ }
@@ -0,0 +1,18 @@
1
+ export interface ApiErrors {
2
+ /**
3
+ * For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.
4
+ */
5
+ code?: string;
6
+ /**
7
+ * A human-readable message providing more details about the error. These messages can be shown to users.
8
+ */
9
+ message?: string;
10
+ /**
11
+ * If the error is parameter-specific, the parameter related to the error. For example, we can use this to display a message near the correct form field.
12
+ */
13
+ param?: string;
14
+ /**
15
+ * The type of error returned.
16
+ */
17
+ type: 'API_ERROR' | 'AUTHENTICATION_ERROR' | 'INVALID_REQUEST_ERROR' | 'PERMISSION_ERROR';
18
+ }
@@ -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 {};
@@ -0,0 +1,39 @@
1
+ import type { PackageType } from '../schemas/PackageType';
2
+ export interface ArtifactScan {
3
+ id: string;
4
+ lastEvaluatedAt?: string;
5
+ lastEvaluatedBy?: string;
6
+ /**
7
+ * Package name
8
+ */
9
+ packageName: string;
10
+ packageType: PackageType;
11
+ /**
12
+ * Policy Set name
13
+ */
14
+ policySetName?: string;
15
+ /**
16
+ * Unique reference for the opa policy set. Example: `my-policy` or `account.my-policy
17
+ */
18
+ policySetRef: string;
19
+ /**
20
+ * Registry name
21
+ */
22
+ registryId: string;
23
+ /**
24
+ * Registry name
25
+ */
26
+ registryName: string;
27
+ /**
28
+ * Scan status
29
+ */
30
+ scanStatus: 'BLOCKED' | 'WARN';
31
+ /**
32
+ * Version
33
+ */
34
+ version: string;
35
+ /**
36
+ * Version
37
+ */
38
+ versionId?: string;
39
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Status of the Artifact Scan Evaluate Request
3
+ */
4
+ export type ArtifactScanEvaluateRequestStatus = 'FAILED' | 'PENDING' | 'PROCESSING' | 'SUCCESS';
@@ -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 {};
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export interface FileMetadata {
5
5
  downloadUrl: string;
6
+ filename: string;
6
7
  id: string;
7
8
  sha256: string;
8
9
  }
@@ -1,4 +1,6 @@
1
1
  /**
2
- * refers to package
2
+ * Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART. This field is extensible; clients must handle unknown values.
3
+ *
4
+ * @example "DOCKER"
3
5
  */
4
- export type PackageType = 'CARGO' | 'COMPOSER' | 'CONDA' | 'DART' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PYTHON' | 'RPM';
6
+ export type PackageType = string;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Metadata about the list artifact scans
3
+ */
4
+ export interface ScanMeta {
5
+ /**
6
+ * Count of active blocked artifacts
7
+ * @format int64
8
+ * @example 95
9
+ */
10
+ blockedCount?: number;
11
+ /**
12
+ * Count of total artifact violations
13
+ * @format int64
14
+ * @example 5
15
+ */
16
+ totalCount?: number;
17
+ /**
18
+ * Count of active Warn artifacts
19
+ * @format int64
20
+ * @example 5
21
+ */
22
+ warnCount?: number;
23
+ }
@@ -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 {};
@@ -2,6 +2,7 @@ import type { UserPassword } from '../schemas/UserPassword';
2
2
  import type { Anonymous } from '../schemas/Anonymous';
3
3
  import type { AccessKeySecretKey } from '../schemas/AccessKeySecretKey';
4
4
  import type { AuthType } from '../schemas/AuthType';
5
+ import type { UpstreamProxyConfigFirewallMode } from '../schemas/UpstreamProxyConfigFirewallMode';
5
6
  /**
6
7
  * Configuration for Harness Artifact UpstreamProxies
7
8
  */
@@ -14,5 +15,6 @@ export interface UpstreamConfig {
14
15
  */
15
16
  remoteUrlSuffix?: string;
16
17
  source?: 'Anaconda' | 'AwsEcr' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'HuggingFace' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'Packagist' | 'Pubdev' | 'PyPi';
18
+ upstreamProxyConfigFirewallMode?: UpstreamProxyConfigFirewallMode;
17
19
  url?: string;
18
20
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Firewall mode applied to an upstream proxy.
3
+ */
4
+ export type UpstreamProxyConfigFirewallMode = 'ALLOW' | 'BLOCK' | 'WARN';
@@ -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 {};
@@ -0,0 +1,7 @@
1
+ import type { ApiErrors } from '../schemas/ApiErrors';
2
+ /**
3
+ * An error response from the Stripe API
4
+ */
5
+ export interface V3Error {
6
+ error: ApiErrors;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.36.0",
3
+ "version": "0.37.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",