@harnessio/react-har-service-client 0.85.0 → 0.87.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 (32) hide show
  1. package/dist/har-service/src/services/hooks/useBulkEvaluateArtifactsV3Mutation.d.ts +24 -0
  2. package/dist/har-service/src/services/hooks/useBulkEvaluateArtifactsV3Mutation.js +15 -0
  3. package/dist/har-service/src/services/hooks/useGetVersionsStatsV3Mutation.d.ts +23 -0
  4. package/dist/har-service/src/services/hooks/useGetVersionsStatsV3Mutation.js +14 -0
  5. package/dist/har-service/src/services/hooks/useListFilterOptionsV3Query.d.ts +1 -0
  6. package/dist/har-service/src/services/hooks/useListFiltersV3Query.d.ts +1 -0
  7. package/dist/har-service/src/services/index.d.ts +13 -0
  8. package/dist/har-service/src/services/index.js +2 -0
  9. package/dist/har-service/src/services/requestBodies/BulkScanEvaluateSyncRequestV3RequestBody.d.ts +2 -0
  10. package/dist/har-service/src/services/requestBodies/BulkScanEvaluateSyncRequestV3RequestBody.js +1 -0
  11. package/dist/har-service/src/services/requestBodies/VersionsStatsRequestV3RequestBody.d.ts +2 -0
  12. package/dist/har-service/src/services/requestBodies/VersionsStatsRequestV3RequestBody.js +1 -0
  13. package/dist/har-service/src/services/responses/BulkScanEvaluateSyncResponseV3Response.d.ts +7 -0
  14. package/dist/har-service/src/services/responses/BulkScanEvaluateSyncResponseV3Response.js +1 -0
  15. package/dist/har-service/src/services/responses/VersionsStatsResponseV3Response.d.ts +2 -0
  16. package/dist/har-service/src/services/responses/VersionsStatsResponseV3Response.js +1 -0
  17. package/dist/har-service/src/services/schemas/BulkScanEvaluateSyncRequestV3.d.ts +20 -0
  18. package/dist/har-service/src/services/schemas/BulkScanEvaluateSyncRequestV3.js +1 -0
  19. package/dist/har-service/src/services/schemas/DebianConfig.d.ts +14 -0
  20. package/dist/har-service/src/services/schemas/DebianConfig.js +4 -0
  21. package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
  22. package/dist/har-service/src/services/schemas/PackageTypeV3.d.ts +1 -1
  23. package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +1 -1
  24. package/dist/har-service/src/services/schemas/VersionStatsV3.d.ts +42 -0
  25. package/dist/har-service/src/services/schemas/VersionStatsV3.js +1 -0
  26. package/dist/har-service/src/services/schemas/VersionsStatsRequestInputV3.d.ts +9 -0
  27. package/dist/har-service/src/services/schemas/VersionsStatsRequestInputV3.js +4 -0
  28. package/dist/har-service/src/services/schemas/VersionsStatsResponseBodyV3.d.ts +10 -0
  29. package/dist/har-service/src/services/schemas/VersionsStatsResponseBodyV3.js +1 -0
  30. package/dist/har-service/src/services/schemas/VirtualConfig.d.ts +2 -0
  31. package/dist/har-service/src/services/schemas/VirtualConfig.js +0 -3
  32. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { BulkScanEvaluateSyncResponseV3Response } from '../responses/BulkScanEvaluateSyncResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { BulkScanEvaluateSyncRequestV3RequestBody } from '../requestBodies/BulkScanEvaluateSyncRequestV3RequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface BulkEvaluateArtifactsV3MutationQueryParams {
8
+ account_identifier: string;
9
+ org_identifier?: string;
10
+ project_identifier?: string;
11
+ }
12
+ export type BulkEvaluateArtifactsV3RequestBody = BulkScanEvaluateSyncRequestV3RequestBody;
13
+ export type BulkEvaluateArtifactsV3OkResponse = ResponseWithPagination<BulkScanEvaluateSyncResponseV3Response>;
14
+ export type BulkEvaluateArtifactsV3ErrorResponse = ErrorV3;
15
+ export interface BulkEvaluateArtifactsV3Props extends Omit<FetcherOptions<BulkEvaluateArtifactsV3MutationQueryParams, BulkEvaluateArtifactsV3RequestBody>, 'url'> {
16
+ queryParams: BulkEvaluateArtifactsV3MutationQueryParams;
17
+ body: BulkEvaluateArtifactsV3RequestBody;
18
+ }
19
+ export declare function bulkEvaluateArtifactsV3(props: BulkEvaluateArtifactsV3Props): Promise<BulkEvaluateArtifactsV3OkResponse>;
20
+ /**
21
+ * Synchronously evaluates firewall policies for up to 50 artifacts and returns the scan result for each one. No data is written to the database.
22
+ *
23
+ */
24
+ export declare function useBulkEvaluateArtifactsV3Mutation(options?: Omit<UseMutationOptions<BulkEvaluateArtifactsV3OkResponse, BulkEvaluateArtifactsV3ErrorResponse, BulkEvaluateArtifactsV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<BulkEvaluateArtifactsV3OkResponse, ErrorV3, BulkEvaluateArtifactsV3Props, unknown>;
@@ -0,0 +1,15 @@
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 bulkEvaluateArtifactsV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/scans/bulk-evaluate-sync`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Synchronously evaluates firewall policies for up to 50 artifacts and returns the scan result for each one. No data is written to the database.
11
+ *
12
+ */
13
+ export function useBulkEvaluateArtifactsV3Mutation(options) {
14
+ return useMutation((mutateProps) => bulkEvaluateArtifactsV3(mutateProps), options);
15
+ }
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { VersionsStatsResponseV3Response } from '../responses/VersionsStatsResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { VersionsStatsRequestV3RequestBody } from '../requestBodies/VersionsStatsRequestV3RequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface GetVersionsStatsV3MutationQueryParams {
8
+ account_identifier: string;
9
+ org_identifier?: string;
10
+ project_identifier?: string;
11
+ }
12
+ export type GetVersionsStatsV3RequestBody = VersionsStatsRequestV3RequestBody;
13
+ export type GetVersionsStatsV3OkResponse = ResponseWithPagination<VersionsStatsResponseV3Response>;
14
+ export type GetVersionsStatsV3ErrorResponse = ErrorV3;
15
+ export interface GetVersionsStatsV3Props extends Omit<FetcherOptions<GetVersionsStatsV3MutationQueryParams, GetVersionsStatsV3RequestBody>, 'url'> {
16
+ queryParams: GetVersionsStatsV3MutationQueryParams;
17
+ body: GetVersionsStatsV3RequestBody;
18
+ }
19
+ export declare function getVersionsStatsV3(props: GetVersionsStatsV3Props): Promise<GetVersionsStatsV3OkResponse>;
20
+ /**
21
+ * Get statistics (deploymentMetadata, downloadCount, fileCount, scanStatus, scanID, size, artifactKey) for a list of versions by their UUIDs.
22
+ */
23
+ export declare function useGetVersionsStatsV3Mutation(options?: Omit<UseMutationOptions<GetVersionsStatsV3OkResponse, GetVersionsStatsV3ErrorResponse, GetVersionsStatsV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetVersionsStatsV3OkResponse, ErrorV3, GetVersionsStatsV3Props, 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 getVersionsStatsV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/versions/stats`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get statistics (deploymentMetadata, downloadCount, fileCount, scanStatus, scanID, size, artifactKey) for a list of versions by their UUIDs.
11
+ */
12
+ export function useGetVersionsStatsV3Mutation(options) {
13
+ return useMutation((mutateProps) => getVersionsStatsV3(mutateProps), options);
14
+ }
@@ -15,6 +15,7 @@ export interface ListFilterOptionsV3QueryQueryParams {
15
15
  resource_type: 'PACKAGE' | 'REGISTRY' | 'VERSION';
16
16
  filter_id: string;
17
17
  package_type?: string;
18
+ option_values?: string[];
18
19
  search_term?: string;
19
20
  }
20
21
  export type ListFilterOptionsV3OkResponse = ResponseWithPagination<ListFilterOptionsResponseV3Response>;
@@ -14,6 +14,7 @@ export interface ListFiltersV3QueryQueryParams {
14
14
  */
15
15
  resource_type: 'PACKAGE' | 'REGISTRY' | 'VERSION';
16
16
  package_type?: string;
17
+ filter_id?: string;
17
18
  search_term?: string;
18
19
  }
19
20
  export type ListFiltersV3OkResponse = ResponseWithPagination<ListFiltersResponseV3Response>;
@@ -7,6 +7,8 @@ export type { AddVersionTagsV3ErrorResponse, AddVersionTagsV3MutationPathParams,
7
7
  export { addVersionTagsV3, useAddVersionTagsV3Mutation } from './hooks/useAddVersionTagsV3Mutation';
8
8
  export type { BulkDeleteV3ErrorResponse, BulkDeleteV3MutationQueryParams, BulkDeleteV3OkResponse, BulkDeleteV3Props, BulkDeleteV3RequestBody, } from './hooks/useBulkDeleteV3Mutation';
9
9
  export { bulkDeleteV3, useBulkDeleteV3Mutation } from './hooks/useBulkDeleteV3Mutation';
10
+ export type { BulkEvaluateArtifactsV3ErrorResponse, BulkEvaluateArtifactsV3MutationQueryParams, BulkEvaluateArtifactsV3OkResponse, BulkEvaluateArtifactsV3Props, BulkEvaluateArtifactsV3RequestBody, } from './hooks/useBulkEvaluateArtifactsV3Mutation';
11
+ export { bulkEvaluateArtifactsV3, useBulkEvaluateArtifactsV3Mutation, } from './hooks/useBulkEvaluateArtifactsV3Mutation';
10
12
  export type { CopyErrorResponse, CopyMutationQueryParams, CopyOkResponse, CopyProps, } from './hooks/useCopyMutation';
11
13
  export { copy, useCopyMutation } from './hooks/useCopyMutation';
12
14
  export type { CopyResourcesV3ErrorResponse, CopyResourcesV3MutationQueryParams, CopyResourcesV3OkResponse, CopyResourcesV3Props, CopyResourcesV3RequestBody, } from './hooks/useCopyResourcesV3Mutation';
@@ -175,6 +177,8 @@ export type { GetSystemInfoV3ErrorResponse, GetSystemInfoV3OkResponse, GetSystem
175
177
  export { getSystemInfoV3, useGetSystemInfoV3Query } from './hooks/useGetSystemInfoV3Query';
176
178
  export type { GetVersionMetadataV3ErrorResponse, GetVersionMetadataV3OkResponse, GetVersionMetadataV3Props, GetVersionMetadataV3QueryPathParams, GetVersionMetadataV3QueryQueryParams, } from './hooks/useGetVersionMetadataV3Query';
177
179
  export { getVersionMetadataV3, useGetVersionMetadataV3Query, } from './hooks/useGetVersionMetadataV3Query';
180
+ export type { GetVersionsStatsV3ErrorResponse, GetVersionsStatsV3MutationQueryParams, GetVersionsStatsV3OkResponse, GetVersionsStatsV3Props, GetVersionsStatsV3RequestBody, } from './hooks/useGetVersionsStatsV3Mutation';
181
+ export { getVersionsStatsV3, useGetVersionsStatsV3Mutation, } from './hooks/useGetVersionsStatsV3Mutation';
178
182
  export type { GetWebhookExecutionErrorResponse, GetWebhookExecutionOkResponse, GetWebhookExecutionProps, GetWebhookExecutionQueryPathParams, } from './hooks/useGetWebhookExecutionQuery';
179
183
  export { getWebhookExecution, useGetWebhookExecutionQuery, } from './hooks/useGetWebhookExecutionQuery';
180
184
  export type { GetWebhookErrorResponse, GetWebhookOkResponse, GetWebhookProps, GetWebhookQueryPathParams, } from './hooks/useGetWebhookQuery';
@@ -316,6 +320,7 @@ export type { BuildInfoRequestV3RequestBody } from './requestBodies/BuildInfoReq
316
320
  export type { BulkDeleteRequestV3RequestBody } from './requestBodies/BulkDeleteRequestV3RequestBody';
317
321
  export type { BulkDownloadFilesRequestRequestBody } from './requestBodies/BulkDownloadFilesRequestRequestBody';
318
322
  export type { BulkDownloadFilesRequestV3RequestBody } from './requestBodies/BulkDownloadFilesRequestV3RequestBody';
323
+ export type { BulkScanEvaluateSyncRequestV3RequestBody } from './requestBodies/BulkScanEvaluateSyncRequestV3RequestBody';
319
324
  export type { BulkScanEvaluationRequestV3RequestBody } from './requestBodies/BulkScanEvaluationRequestV3RequestBody';
320
325
  export type { CopyResourcesRequestV3RequestBody } from './requestBodies/CopyResourcesRequestV3RequestBody';
321
326
  export type { FirewallExceptionApprovalRequestV3RequestBody } from './requestBodies/FirewallExceptionApprovalRequestV3RequestBody';
@@ -329,6 +334,7 @@ export type { RegistriesStatsRequestV3RequestBody } from './requestBodies/Regist
329
334
  export type { RegistryRequestRequestBody } from './requestBodies/RegistryRequestRequestBody';
330
335
  export type { ReplicationRuleRequestRequestBody } from './requestBodies/ReplicationRuleRequestRequestBody';
331
336
  export type { SearchRegistryFilesRequestV3RequestBody } from './requestBodies/SearchRegistryFilesRequestV3RequestBody';
337
+ export type { VersionsStatsRequestV3RequestBody } from './requestBodies/VersionsStatsRequestV3RequestBody';
332
338
  export type { WebhookRequestRequestBody } from './requestBodies/WebhookRequestRequestBody';
333
339
  export type { AddTagsResponseResponse } from './responses/AddTagsResponseResponse';
334
340
  export type { ArtifactDeploymentsResponseResponse } from './responses/ArtifactDeploymentsResponseResponse';
@@ -341,6 +347,7 @@ export type { ArtifactStatsResponseResponse } from './responses/ArtifactStatsRes
341
347
  export type { ArtifactSummaryResponseResponse } from './responses/ArtifactSummaryResponseResponse';
342
348
  export type { ArtifactVersionSummaryResponseResponse } from './responses/ArtifactVersionSummaryResponseResponse';
343
349
  export type { BadRequestResponse } from './responses/BadRequestResponse';
350
+ export type { BulkScanEvaluateSyncResponseV3Response } from './responses/BulkScanEvaluateSyncResponseV3Response';
344
351
  export type { BulkScanEvaluationAcceptedV3Response } from './responses/BulkScanEvaluationAcceptedV3Response';
345
352
  export type { BulkScanEvaluationStatusResponseV3Response } from './responses/BulkScanEvaluationStatusResponseV3Response';
346
353
  export type { ClientSetupDetailsResponseResponse } from './responses/ClientSetupDetailsResponseResponse';
@@ -424,6 +431,7 @@ export type { SuccessResponse } from './responses/SuccessResponse';
424
431
  export type { SystemInfoResponseV3Response } from './responses/SystemInfoResponseV3Response';
425
432
  export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
426
433
  export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
434
+ export type { VersionsStatsResponseV3Response } from './responses/VersionsStatsResponseV3Response';
427
435
  export type { WebhookExecutionResponseResponse } from './responses/WebhookExecutionResponseResponse';
428
436
  export type { WebhookResponseResponse } from './responses/WebhookResponseResponse';
429
437
  export type { AccessKeySecretKey } from './schemas/AccessKeySecretKey';
@@ -467,6 +475,7 @@ export type { BulkDownloadFilesRequestInputV3 } from './schemas/BulkDownloadFile
467
475
  export type { BulkDownloadRequestStatus } from './schemas/BulkDownloadRequestStatus';
468
476
  export type { BulkDownloadRequestStatusOutput } from './schemas/BulkDownloadRequestStatusOutput';
469
477
  export type { BulkDownloadRequestStatusV3 } from './schemas/BulkDownloadRequestStatusV3';
478
+ export type { BulkScanEvaluateSyncRequestV3 } from './schemas/BulkScanEvaluateSyncRequestV3';
470
479
  export type { BulkScanEvaluationAcceptedDataV3 } from './schemas/BulkScanEvaluationAcceptedDataV3';
471
480
  export type { BulkScanEvaluationRequestV3 } from './schemas/BulkScanEvaluationRequestV3';
472
481
  export type { BulkScanEvaluationStatusDataV3 } from './schemas/BulkScanEvaluationStatusDataV3';
@@ -495,6 +504,7 @@ export type { CreateBulkDownloadRequestResponseOutput } from './schemas/CreateBu
495
504
  export type { CreatedAtMsV3 } from './schemas/CreatedAtMsV3';
496
505
  export type { DartArtifactDetailConfig } from './schemas/DartArtifactDetailConfig';
497
506
  export type { DebianArtifactDetailConfig } from './schemas/DebianArtifactDetailConfig';
507
+ export type { DebianConfig } from './schemas/DebianConfig';
498
508
  export type { DeletedAtMsV3 } from './schemas/DeletedAtMsV3';
499
509
  export type { DeploymentDetails } from './schemas/DeploymentDetails';
500
510
  export type { DeploymentMetadata } from './schemas/DeploymentMetadata';
@@ -696,7 +706,10 @@ export type { UserPassword } from './schemas/UserPassword';
696
706
  export type { UsererrorError } from './schemas/UsererrorError';
697
707
  export type { VersionDeploymentV3 } from './schemas/VersionDeploymentV3';
698
708
  export type { VersionMetadata } from './schemas/VersionMetadata';
709
+ export type { VersionStatsV3 } from './schemas/VersionStatsV3';
699
710
  export type { VersionV3 } from './schemas/VersionV3';
711
+ export type { VersionsStatsRequestInputV3 } from './schemas/VersionsStatsRequestInputV3';
712
+ export type { VersionsStatsResponseBodyV3 } from './schemas/VersionsStatsResponseBodyV3';
700
713
  export type { VirtualConfig } from './schemas/VirtualConfig';
701
714
  export type { Webhook } from './schemas/Webhook';
702
715
  export type { WebhookExecRequest } from './schemas/WebhookExecRequest';
@@ -2,6 +2,7 @@ export { addBuildInfoV3, useAddBuildInfoV3Mutation } from './hooks/useAddBuildIn
2
2
  export { addOciArtifactTags, useAddOciArtifactTagsMutation, } from './hooks/useAddOciArtifactTagsMutation';
3
3
  export { addVersionTagsV3, useAddVersionTagsV3Mutation } from './hooks/useAddVersionTagsV3Mutation';
4
4
  export { bulkDeleteV3, useBulkDeleteV3Mutation } from './hooks/useBulkDeleteV3Mutation';
5
+ export { bulkEvaluateArtifactsV3, useBulkEvaluateArtifactsV3Mutation, } from './hooks/useBulkEvaluateArtifactsV3Mutation';
5
6
  export { copy, useCopyMutation } from './hooks/useCopyMutation';
6
7
  export { copyResourcesV3, useCopyResourcesV3Mutation } from './hooks/useCopyResourcesV3Mutation';
7
8
  export { createBulkDownloadRequest, useCreateBulkDownloadRequestMutation, } from './hooks/useCreateBulkDownloadRequestMutation';
@@ -86,6 +87,7 @@ export { getReplicationRule, useGetReplicationRuleQuery } from './hooks/useGetRe
86
87
  export { getStorageDetails, useGetStorageDetailsQuery } from './hooks/useGetStorageDetailsQuery';
87
88
  export { getSystemInfoV3, useGetSystemInfoV3Query } from './hooks/useGetSystemInfoV3Query';
88
89
  export { getVersionMetadataV3, useGetVersionMetadataV3Query, } from './hooks/useGetVersionMetadataV3Query';
90
+ export { getVersionsStatsV3, useGetVersionsStatsV3Mutation, } from './hooks/useGetVersionsStatsV3Mutation';
89
91
  export { getWebhookExecution, useGetWebhookExecutionQuery, } from './hooks/useGetWebhookExecutionQuery';
90
92
  export { getWebhook, useGetWebhookQuery } from './hooks/useGetWebhookQuery';
91
93
  export { initiateBulkScanEvaluationV3, useInitiateBulkScanEvaluationV3Mutation, } from './hooks/useInitiateBulkScanEvaluationV3Mutation';
@@ -0,0 +1,2 @@
1
+ import type { BulkScanEvaluateSyncRequestV3 } from '../schemas/BulkScanEvaluateSyncRequestV3';
2
+ export type BulkScanEvaluateSyncRequestV3RequestBody = BulkScanEvaluateSyncRequestV3;
@@ -0,0 +1,2 @@
1
+ import type { VersionsStatsRequestInputV3 } from '../schemas/VersionsStatsRequestInputV3';
2
+ export type VersionsStatsRequestV3RequestBody = VersionsStatsRequestInputV3;
@@ -0,0 +1,7 @@
1
+ import type { ArtifactScanDetailsV3 } from '../schemas/ArtifactScanDetailsV3';
2
+ export interface BulkScanEvaluateSyncResponseV3Response {
3
+ /**
4
+ * List of scan details, one per evaluated artifact
5
+ */
6
+ data: ArtifactScanDetailsV3[];
7
+ }
@@ -0,0 +1,2 @@
1
+ import type { VersionsStatsResponseBodyV3 } from '../schemas/VersionsStatsResponseBodyV3';
2
+ export type VersionsStatsResponseV3Response = VersionsStatsResponseBodyV3;
@@ -0,0 +1,20 @@
1
+ import type { ArtifactScanInputV3 } from '../schemas/ArtifactScanInputV3';
2
+ /**
3
+ * Request body for synchronous bulk artifact scan evaluation. Maximum 50 artifacts per request. No data is written to the database.
4
+ *
5
+ */
6
+ export interface BulkScanEvaluateSyncRequestV3 {
7
+ /**
8
+ * List of artifacts to evaluate (max 50)
9
+ */
10
+ artifacts: ArtifactScanInputV3[];
11
+ /**
12
+ * Registry identifier
13
+ * @format uuid
14
+ */
15
+ registryId: string;
16
+ /**
17
+ * When true, skip the cached scan result and force a fresh OPA evaluation
18
+ */
19
+ skipCache?: boolean;
20
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Debian-specific configuration, applicable only when packageType is DEBIAN.
3
+ */
4
+ export interface DebianConfig {
5
+ /**
6
+ * Optional additional compression formats to generate for index/metadata files.
7
+ */
8
+ optionalIndexCompressionFormats?: Array<'.xz'>;
9
+ /**
10
+ * Architectures to index when building metadata from linked remote (upstream) registries.
11
+ * @default ["amd64","i386","arm64"]
12
+ */
13
+ remoteIndexedArchitectures?: string[];
14
+ }
@@ -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,4 +1,4 @@
1
1
  /**
2
2
  * refers to package
3
3
  */
4
- export type PackageType = 'CARGO' | 'COMPOSER' | 'CONAN' | 'CONDA' | 'CRAN' | 'DART' | 'DEBIAN' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HELM_HTTP' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | 'PYTHON' | 'RAW' | 'RPM' | 'RUBY' | 'SWIFT' | 'TERRAFORM';
4
+ export type PackageType = 'ALPINE' | 'CARGO' | 'COMPOSER' | 'CONAN' | 'CONDA' | 'CRAN' | 'DART' | 'DEBIAN' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HELM_HTTP' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | 'PYTHON' | 'RAW' | 'RPM' | 'RUBY' | 'SWIFT' | 'TERRAFORM' | 'WOLFI';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, HELM_HTTP, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, PUPPET, RUBY, RAW, DEBIAN, CONAN, TERRAFORM. This field is extensible; clients must handle unknown values.
2
+ * Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, HELM_HTTP, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, PUPPET, RUBY, RAW, DEBIAN, CONAN, TERRAFORM, CRAN, WOLFI, ALPINE. This field is extensible; clients must handle unknown values.
3
3
  *
4
4
  * @example "DOCKER"
5
5
  */
@@ -23,6 +23,6 @@ export interface UpstreamConfig {
23
23
  *
24
24
  */
25
25
  remoteUrlSuffix?: string;
26
- source?: 'Anaconda' | 'AwsEcr' | 'CRAN' | 'ConanCenter' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'HelmChartRepo' | 'HuggingFace' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'Packagist' | 'Pubdev' | 'PuppetForge' | 'PyPi' | 'RubyGems' | 'TerraformRegistry';
26
+ source?: 'Alpine' | 'Anaconda' | 'AwsEcr' | 'CRAN' | 'ConanCenter' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'HelmChartRepo' | 'HuggingFace' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'Packagist' | 'Pubdev' | 'PuppetForge' | 'PyPi' | 'RubyGems' | 'TerraformRegistry' | 'Wolfi';
27
27
  url?: string;
28
28
  }
@@ -0,0 +1,42 @@
1
+ import type { DeploymentMetadataV3 } from '../schemas/DeploymentMetadataV3';
2
+ import type { ScanStatusV3 } from '../schemas/ScanStatusV3';
3
+ /**
4
+ * Statistics for a single version
5
+ */
6
+ export interface VersionStatsV3 {
7
+ /**
8
+ * Artifact key metadata
9
+ */
10
+ artifactKey?: {
11
+ [key: string]: any;
12
+ };
13
+ deploymentMetadata?: DeploymentMetadataV3;
14
+ /**
15
+ * Number of digests/manifests in the version (for OCI artifacts with manifest lists)
16
+ */
17
+ digestCount?: number;
18
+ /**
19
+ * Total download count for the version
20
+ * @format int64
21
+ */
22
+ downloadCount?: number;
23
+ /**
24
+ * Number of files in the version
25
+ */
26
+ fileCount?: number;
27
+ /**
28
+ * Version UUID
29
+ * @format uuid
30
+ */
31
+ id: string;
32
+ /**
33
+ * Scan ID for the version
34
+ * @format uuid
35
+ */
36
+ scanID?: string;
37
+ scanStatus?: ScanStatusV3;
38
+ /**
39
+ * Total size of the version (human-readable format)
40
+ */
41
+ size?: string;
42
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Request input for fetching version statistics
3
+ */
4
+ export interface VersionsStatsRequestInputV3 {
5
+ /**
6
+ * List of version UUIDs to fetch statistics for
7
+ */
8
+ versionIds: string[];
9
+ }
@@ -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,10 @@
1
+ import type { VersionStatsV3 } from '../schemas/VersionStatsV3';
2
+ /**
3
+ * Response body containing version statistics
4
+ */
5
+ export interface VersionsStatsResponseBodyV3 {
6
+ /**
7
+ * List of version statistics
8
+ */
9
+ items: VersionStatsV3[];
10
+ }
@@ -1,6 +1,8 @@
1
+ import type { DebianConfig } from '../schemas/DebianConfig';
1
2
  /**
2
3
  * Configuration for Harness Virtual Artifact Registries
3
4
  */
4
5
  export interface VirtualConfig {
6
+ debianConfig?: DebianConfig;
5
7
  upstreamProxies?: string[];
6
8
  }
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.85.0",
3
+ "version": "0.87.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",