@harnessio/react-har-service-client 0.84.0 → 0.86.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.
- package/dist/har-service/src/services/hooks/useBulkEvaluateArtifactsV3Mutation.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useBulkEvaluateArtifactsV3Mutation.js +15 -0
- package/dist/har-service/src/services/hooks/useGetVersionsStatsV3Mutation.d.ts +23 -0
- package/dist/har-service/src/services/hooks/useGetVersionsStatsV3Mutation.js +14 -0
- package/dist/har-service/src/services/hooks/useListFilterOptionsV3Query.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useListFiltersV3Query.d.ts +1 -0
- package/dist/har-service/src/services/index.d.ts +14 -0
- package/dist/har-service/src/services/index.js +2 -0
- package/dist/har-service/src/services/requestBodies/BulkScanEvaluateSyncRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/BulkScanEvaluateSyncRequestV3RequestBody.js +1 -0
- package/dist/har-service/src/services/requestBodies/VersionsStatsRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/VersionsStatsRequestV3RequestBody.js +1 -0
- package/dist/har-service/src/services/responses/BulkScanEvaluateSyncResponseV3Response.d.ts +7 -0
- package/dist/har-service/src/services/responses/BulkScanEvaluateSyncResponseV3Response.js +1 -0
- package/dist/har-service/src/services/responses/VersionsStatsResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/VersionsStatsResponseV3Response.js +1 -0
- package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +2 -1
- package/dist/har-service/src/services/schemas/BulkScanEvaluateSyncRequestV3.d.ts +20 -0
- package/dist/har-service/src/services/schemas/BulkScanEvaluateSyncRequestV3.js +1 -0
- package/dist/har-service/src/services/schemas/CranArtifactDetailConfig.d.ts +8 -0
- package/dist/har-service/src/services/schemas/CranArtifactDetailConfig.js +4 -0
- package/dist/har-service/src/services/schemas/DebianConfig.d.ts +14 -0
- package/dist/har-service/src/services/schemas/DebianConfig.js +4 -0
- package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
- package/dist/har-service/src/services/schemas/VersionStatsV3.d.ts +42 -0
- package/dist/har-service/src/services/schemas/VersionStatsV3.js +1 -0
- package/dist/har-service/src/services/schemas/VersionsStatsRequestInputV3.d.ts +9 -0
- package/dist/har-service/src/services/schemas/VersionsStatsRequestInputV3.js +4 -0
- package/dist/har-service/src/services/schemas/VersionsStatsResponseBodyV3.d.ts +10 -0
- package/dist/har-service/src/services/schemas/VersionsStatsResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/VirtualConfig.d.ts +2 -0
- package/dist/har-service/src/services/schemas/VirtualConfig.js +0 -3
- 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';
|
|
@@ -490,10 +499,12 @@ export type { CondaArtifactDetailConfig } from './schemas/CondaArtifactDetailCon
|
|
|
490
499
|
export type { CopyResourceItemV3 } from './schemas/CopyResourceItemV3';
|
|
491
500
|
export type { CopySourceRefV3 } from './schemas/CopySourceRefV3';
|
|
492
501
|
export type { CopyTargetRefV3 } from './schemas/CopyTargetRefV3';
|
|
502
|
+
export type { CranArtifactDetailConfig } from './schemas/CranArtifactDetailConfig';
|
|
493
503
|
export type { CreateBulkDownloadRequestResponseOutput } from './schemas/CreateBulkDownloadRequestResponseOutput';
|
|
494
504
|
export type { CreatedAtMsV3 } from './schemas/CreatedAtMsV3';
|
|
495
505
|
export type { DartArtifactDetailConfig } from './schemas/DartArtifactDetailConfig';
|
|
496
506
|
export type { DebianArtifactDetailConfig } from './schemas/DebianArtifactDetailConfig';
|
|
507
|
+
export type { DebianConfig } from './schemas/DebianConfig';
|
|
497
508
|
export type { DeletedAtMsV3 } from './schemas/DeletedAtMsV3';
|
|
498
509
|
export type { DeploymentDetails } from './schemas/DeploymentDetails';
|
|
499
510
|
export type { DeploymentMetadata } from './schemas/DeploymentMetadata';
|
|
@@ -695,7 +706,10 @@ export type { UserPassword } from './schemas/UserPassword';
|
|
|
695
706
|
export type { UsererrorError } from './schemas/UsererrorError';
|
|
696
707
|
export type { VersionDeploymentV3 } from './schemas/VersionDeploymentV3';
|
|
697
708
|
export type { VersionMetadata } from './schemas/VersionMetadata';
|
|
709
|
+
export type { VersionStatsV3 } from './schemas/VersionStatsV3';
|
|
698
710
|
export type { VersionV3 } from './schemas/VersionV3';
|
|
711
|
+
export type { VersionsStatsRequestInputV3 } from './schemas/VersionsStatsRequestInputV3';
|
|
712
|
+
export type { VersionsStatsResponseBodyV3 } from './schemas/VersionsStatsResponseBodyV3';
|
|
699
713
|
export type { VirtualConfig } from './schemas/VirtualConfig';
|
|
700
714
|
export type { Webhook } from './schemas/Webhook';
|
|
701
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';
|
package/dist/har-service/src/services/requestBodies/BulkScanEvaluateSyncRequestV3RequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -18,6 +18,7 @@ import type { HelmHttpArtifactDetailConfig } from '../schemas/HelmHttpArtifactDe
|
|
|
18
18
|
import type { DebianArtifactDetailConfig } from '../schemas/DebianArtifactDetailConfig';
|
|
19
19
|
import type { ConanArtifactDetailConfig } from '../schemas/ConanArtifactDetailConfig';
|
|
20
20
|
import type { RubyArtifactDetailConfig } from '../schemas/RubyArtifactDetailConfig';
|
|
21
|
+
import type { CranArtifactDetailConfig } from '../schemas/CranArtifactDetailConfig';
|
|
21
22
|
import type { TerraformArtifactDetailConfig } from '../schemas/TerraformArtifactDetailConfig';
|
|
22
23
|
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
23
24
|
import type { UserInfo } from '../schemas/UserInfo';
|
|
@@ -25,7 +26,7 @@ import type { PackageType } from '../schemas/PackageType';
|
|
|
25
26
|
/**
|
|
26
27
|
* Artifact Detail
|
|
27
28
|
*/
|
|
28
|
-
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig | HelmHttpArtifactDetailConfig | DebianArtifactDetailConfig | ConanArtifactDetailConfig | RubyArtifactDetailConfig | TerraformArtifactDetailConfig) & {
|
|
29
|
+
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig | HelmHttpArtifactDetailConfig | DebianArtifactDetailConfig | ConanArtifactDetailConfig | RubyArtifactDetailConfig | CranArtifactDetailConfig | TerraformArtifactDetailConfig) & {
|
|
29
30
|
artifactKey?: {
|
|
30
31
|
[key: string]: string;
|
|
31
32
|
};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* refers to package
|
|
3
3
|
*/
|
|
4
|
-
export type PackageType = 'CARGO' | 'COMPOSER' | 'CONAN' | 'CONDA' | 'DART' | 'DEBIAN' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HELM_HTTP' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | 'PYTHON' | '
|
|
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';
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|