@harnessio/react-har-service-client 0.89.0 → 0.91.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 (41) hide show
  1. package/dist/har-service/src/services/hooks/useDownloadSigningKeyPublicKeyV3Query.d.ts +29 -0
  2. package/dist/har-service/src/services/hooks/useDownloadSigningKeyPublicKeyV3Query.js +18 -0
  3. package/dist/har-service/src/services/hooks/useForceUnlockTerraformBackendV3Mutation.d.ts +25 -0
  4. package/dist/har-service/src/services/hooks/useForceUnlockTerraformBackendV3Mutation.js +15 -0
  5. package/dist/har-service/src/services/hooks/useGetRegistriesStatsV3Mutation.d.ts +1 -0
  6. package/dist/har-service/src/services/hooks/useGetSigningKeyByNameV3Query.d.ts +25 -0
  7. package/dist/har-service/src/services/hooks/useGetSigningKeyByNameV3Query.js +14 -0
  8. package/dist/har-service/src/services/hooks/useGetSigningKeyV3Query.d.ts +1 -7
  9. package/dist/har-service/src/services/hooks/useGetSigningKeyV3Query.js +1 -1
  10. package/dist/har-service/src/services/hooks/useListRegistriesV3Query.d.ts +1 -0
  11. package/dist/har-service/src/services/hooks/useListSigningKeysV3Query.d.ts +2 -1
  12. package/dist/har-service/src/services/hooks/useUpdateSigningKeyV3Mutation.js +1 -1
  13. package/dist/har-service/src/services/index.d.ts +12 -1
  14. package/dist/har-service/src/services/index.js +3 -0
  15. package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +1 -0
  16. package/dist/har-service/src/services/schemas/AuthType.d.ts +1 -1
  17. package/dist/har-service/src/services/schemas/BearerToken.d.ts +8 -0
  18. package/dist/har-service/src/services/schemas/BearerToken.js +4 -0
  19. package/dist/har-service/src/services/schemas/DailyStorage.d.ts +14 -0
  20. package/dist/har-service/src/services/schemas/DailyStorage.js +4 -0
  21. package/dist/har-service/src/services/schemas/ForceUnlockTerraformBackendRequestV3.d.ts +9 -0
  22. package/dist/har-service/src/services/schemas/ForceUnlockTerraformBackendRequestV3.js +4 -0
  23. package/dist/har-service/src/services/schemas/ForceUnlockTerraformBackendResponseV3.d.ts +12 -0
  24. package/dist/har-service/src/services/schemas/ForceUnlockTerraformBackendResponseV3.js +4 -0
  25. package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.d.ts +25 -7
  26. package/dist/har-service/src/services/schemas/ImportKeyRequestV3.d.ts +8 -5
  27. package/dist/har-service/src/services/schemas/KeyMetaV3.d.ts +35 -0
  28. package/dist/har-service/src/services/schemas/KeyMetaV3.js +4 -0
  29. package/dist/har-service/src/services/schemas/ListSigningKeysResponseV3.d.ts +2 -0
  30. package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
  31. package/dist/har-service/src/services/schemas/PackageTypeV3.d.ts +1 -1
  32. package/dist/har-service/src/services/schemas/Registry.d.ts +1 -0
  33. package/dist/har-service/src/services/schemas/RegistryRequest.d.ts +1 -0
  34. package/dist/har-service/src/services/schemas/RegistryV3.d.ts +1 -0
  35. package/dist/har-service/src/services/schemas/SigningConfig.d.ts +1 -1
  36. package/dist/har-service/src/services/schemas/SigningKeyV3.d.ts +2 -2
  37. package/dist/har-service/src/services/schemas/StorageDetails.d.ts +12 -0
  38. package/dist/har-service/src/services/schemas/StorageDetails.js +0 -3
  39. package/dist/har-service/src/services/schemas/UpdateKeyRequestV3.d.ts +0 -4
  40. package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +4 -3
  41. package/package.json +1 -1
@@ -0,0 +1,29 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ErrorV3 } from '../schemas/ErrorV3';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface DownloadSigningKeyPublicKeyV3QueryPathParams {
6
+ /**
7
+ * @format uuid
8
+ */
9
+ id: string;
10
+ }
11
+ export interface DownloadSigningKeyPublicKeyV3QueryQueryParams {
12
+ account_identifier: string;
13
+ org_identifier?: string;
14
+ project_identifier?: string;
15
+ }
16
+ export type DownloadSigningKeyPublicKeyV3OkResponse = ResponseWithPagination<unknown>;
17
+ export type DownloadSigningKeyPublicKeyV3ErrorResponse = ErrorV3;
18
+ export interface DownloadSigningKeyPublicKeyV3Props extends DownloadSigningKeyPublicKeyV3QueryPathParams, Omit<FetcherOptions<DownloadSigningKeyPublicKeyV3QueryQueryParams, unknown>, 'url'> {
19
+ queryParams: DownloadSigningKeyPublicKeyV3QueryQueryParams;
20
+ }
21
+ export declare function downloadSigningKeyPublicKeyV3(props: DownloadSigningKeyPublicKeyV3Props): Promise<DownloadSigningKeyPublicKeyV3OkResponse>;
22
+ /**
23
+ * Downloads the public key as a file with appropriate Content-Type and filename
24
+ * based on the key type:
25
+ * - GPG keys: application/pgp-keys with .asc extension
26
+ * - RSA keys: application/x-pem-file with .rsa.pub extension
27
+ *
28
+ */
29
+ export declare function useDownloadSigningKeyPublicKeyV3Query(props: DownloadSigningKeyPublicKeyV3Props, options?: Omit<UseQueryOptions<DownloadSigningKeyPublicKeyV3OkResponse, DownloadSigningKeyPublicKeyV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<DownloadSigningKeyPublicKeyV3OkResponse, ErrorV3>;
@@ -0,0 +1,18 @@
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 downloadSigningKeyPublicKeyV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/signing-keys/${props.id}/public-key/download`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Downloads the public key as a file with appropriate Content-Type and filename
11
+ * based on the key type:
12
+ * - GPG keys: application/pgp-keys with .asc extension
13
+ * - RSA keys: application/x-pem-file with .rsa.pub extension
14
+ *
15
+ */
16
+ export function useDownloadSigningKeyPublicKeyV3Query(props, options) {
17
+ return useQuery(['DownloadSigningKeyPublicKeyV3', props.id, props.queryParams], ({ signal }) => downloadSigningKeyPublicKeyV3(Object.assign(Object.assign({}, props), { signal })), options);
18
+ }
@@ -0,0 +1,25 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ForceUnlockTerraformBackendResponseV3 } from '../schemas/ForceUnlockTerraformBackendResponseV3';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ForceUnlockTerraformBackendRequestV3 } from '../schemas/ForceUnlockTerraformBackendRequestV3';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface ForceUnlockTerraformBackendV3MutationPathParams {
8
+ id: string;
9
+ }
10
+ export interface ForceUnlockTerraformBackendV3MutationQueryParams {
11
+ account_identifier: string;
12
+ }
13
+ export type ForceUnlockTerraformBackendV3RequestBody = ForceUnlockTerraformBackendRequestV3;
14
+ export type ForceUnlockTerraformBackendV3OkResponse = ResponseWithPagination<ForceUnlockTerraformBackendResponseV3>;
15
+ export type ForceUnlockTerraformBackendV3ErrorResponse = ErrorV3;
16
+ export interface ForceUnlockTerraformBackendV3Props extends ForceUnlockTerraformBackendV3MutationPathParams, Omit<FetcherOptions<ForceUnlockTerraformBackendV3MutationQueryParams, ForceUnlockTerraformBackendV3RequestBody>, 'url'> {
17
+ queryParams: ForceUnlockTerraformBackendV3MutationQueryParams;
18
+ body: ForceUnlockTerraformBackendV3RequestBody;
19
+ }
20
+ export declare function forceUnlockTerraformBackendV3(props: ForceUnlockTerraformBackendV3Props): Promise<ForceUnlockTerraformBackendV3OkResponse>;
21
+ /**
22
+ * Admin force-clears a Terraform Backend workspace lock (the workspace is the package identified by id). Idempotent — succeeds even if no lock is held. A reason is required and is recorded on the audit trail.
23
+ *
24
+ */
25
+ export declare function useForceUnlockTerraformBackendV3Mutation(options?: Omit<UseMutationOptions<ForceUnlockTerraformBackendV3OkResponse, ForceUnlockTerraformBackendV3ErrorResponse, ForceUnlockTerraformBackendV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ForceUnlockTerraformBackendV3OkResponse, ErrorV3, ForceUnlockTerraformBackendV3Props, 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 forceUnlockTerraformBackendV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/packages/${props.id}/terraform-backend/force-unlock`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Admin force-clears a Terraform Backend workspace lock (the workspace is the package identified by id). Idempotent — succeeds even if no lock is held. A reason is required and is recorded on the audit trail.
11
+ *
12
+ */
13
+ export function useForceUnlockTerraformBackendV3Mutation(options) {
14
+ return useMutation((mutateProps) => forceUnlockTerraformBackendV3(mutateProps), options);
15
+ }
@@ -8,6 +8,7 @@ export interface GetRegistriesStatsV3MutationQueryParams {
8
8
  account_identifier: string;
9
9
  org_identifier?: string;
10
10
  project_identifier?: string;
11
+ scope?: 'ancestors' | 'descendants' | 'none';
11
12
  }
12
13
  export type GetRegistriesStatsV3RequestBody = RegistriesStatsRequestV3RequestBody;
13
14
  export type GetRegistriesStatsV3OkResponse = ResponseWithPagination<RegistriesStatsResponseV3Response>;
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { SigningKeyV3 } from '../schemas/SigningKeyV3';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetSigningKeyByNameV3QueryPathParams {
7
+ keyName: string;
8
+ }
9
+ export interface GetSigningKeyByNameV3QueryQueryParams {
10
+ account_identifier: string;
11
+ org_identifier?: string;
12
+ project_identifier?: string;
13
+ }
14
+ export type GetSigningKeyByNameV3OkResponse = ResponseWithPagination<{
15
+ data: SigningKeyV3;
16
+ }>;
17
+ export type GetSigningKeyByNameV3ErrorResponse = ErrorV3;
18
+ export interface GetSigningKeyByNameV3Props extends GetSigningKeyByNameV3QueryPathParams, Omit<FetcherOptions<GetSigningKeyByNameV3QueryQueryParams, unknown>, 'url'> {
19
+ queryParams: GetSigningKeyByNameV3QueryQueryParams;
20
+ }
21
+ export declare function getSigningKeyByNameV3(props: GetSigningKeyByNameV3Props): Promise<GetSigningKeyByNameV3OkResponse>;
22
+ /**
23
+ * Retrieves a signing key by its exact name within the specified space scope.
24
+ */
25
+ export declare function useGetSigningKeyByNameV3Query(props: GetSigningKeyByNameV3Props, options?: Omit<UseQueryOptions<GetSigningKeyByNameV3OkResponse, GetSigningKeyByNameV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetSigningKeyByNameV3OkResponse, ErrorV3>;
@@ -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 getSigningKeyByNameV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/signing-keys/by-name/${props.keyName}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieves a signing key by its exact name within the specified space scope.
11
+ */
12
+ export function useGetSigningKeyByNameV3Query(props, options) {
13
+ return useQuery(['GetSigningKeyByNameV3', props.keyName, props.queryParams], ({ signal }) => getSigningKeyByNameV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -9,17 +9,11 @@ export interface GetSigningKeyV3QueryPathParams {
9
9
  */
10
10
  id: string;
11
11
  }
12
- export interface GetSigningKeyV3QueryQueryParams {
13
- account_identifier: string;
14
- org_identifier?: string;
15
- project_identifier?: string;
16
- }
17
12
  export type GetSigningKeyV3OkResponse = ResponseWithPagination<{
18
13
  data: SigningKeyV3;
19
14
  }>;
20
15
  export type GetSigningKeyV3ErrorResponse = ErrorV3;
21
- export interface GetSigningKeyV3Props extends GetSigningKeyV3QueryPathParams, Omit<FetcherOptions<GetSigningKeyV3QueryQueryParams, unknown>, 'url'> {
22
- queryParams: GetSigningKeyV3QueryQueryParams;
16
+ export interface GetSigningKeyV3Props extends GetSigningKeyV3QueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
23
17
  }
24
18
  export declare function getSigningKeyV3(props: GetSigningKeyV3Props): Promise<GetSigningKeyV3OkResponse>;
25
19
  /**
@@ -10,5 +10,5 @@ export function getSigningKeyV3(props) {
10
10
  * Retrieves detailed information about a specific signing key by ID.
11
11
  */
12
12
  export function useGetSigningKeyV3Query(props, options) {
13
- return useQuery(['GetSigningKeyV3', props.id, props.queryParams], ({ signal }) => getSigningKeyV3(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['GetSigningKeyV3', props.id], ({ signal }) => getSigningKeyV3(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -15,6 +15,7 @@ export interface ListRegistriesV3QueryQueryParams {
15
15
  * @default "exclude"
16
16
  */
17
17
  deleted?: 'exclude' | 'include' | 'only';
18
+ signing_key_id?: string;
18
19
  /**
19
20
  * @format int64
20
21
  * @default 0
@@ -17,7 +17,8 @@ export interface ListSigningKeysV3QueryQueryParams {
17
17
  * @default 20
18
18
  */
19
19
  size?: number;
20
- key_type?: Array<'ECDSA' | 'GPG' | 'RSA'>;
20
+ search_term?: string;
21
+ key_type?: Array<'GPG' | 'RSA'>;
21
22
  key_status?: Array<'ACTIVE' | 'DELETED' | 'INACTIVE' | 'REVOKED'>;
22
23
  }
23
24
  export type ListSigningKeysV3OkResponse = ResponseWithPagination<ListSigningKeysResponseV3>;
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function updateSigningKeyV3(props) {
7
- return fetcher(Object.assign({ url: `/v3/signing-keys/${props.id}`, method: 'PATCH' }, props));
7
+ return fetcher(Object.assign({ url: `/v3/signing-keys/${props.id}`, method: 'PUT' }, props));
8
8
  }
9
9
  /**
10
10
  * Updates a signing key's name and/or status. Only mutable fields can be updated.
@@ -67,10 +67,14 @@ export type { DeleteVersionV3ErrorResponse, DeleteVersionV3MutationPathParams, D
67
67
  export { deleteVersionV3, useDeleteVersionV3Mutation } from './hooks/useDeleteVersionV3Mutation';
68
68
  export type { DeleteWebhookErrorResponse, DeleteWebhookMutationPathParams, DeleteWebhookOkResponse, DeleteWebhookProps, } from './hooks/useDeleteWebhookMutation';
69
69
  export { deleteWebhook, useDeleteWebhookMutation } from './hooks/useDeleteWebhookMutation';
70
+ export type { DownloadSigningKeyPublicKeyV3ErrorResponse, DownloadSigningKeyPublicKeyV3OkResponse, DownloadSigningKeyPublicKeyV3Props, DownloadSigningKeyPublicKeyV3QueryPathParams, DownloadSigningKeyPublicKeyV3QueryQueryParams, } from './hooks/useDownloadSigningKeyPublicKeyV3Query';
71
+ export { downloadSigningKeyPublicKeyV3, useDownloadSigningKeyPublicKeyV3Query, } from './hooks/useDownloadSigningKeyPublicKeyV3Query';
70
72
  export type { EvaluateArtifactScanV3ErrorResponse, EvaluateArtifactScanV3MutationQueryParams, EvaluateArtifactScanV3OkResponse, EvaluateArtifactScanV3Props, EvaluateArtifactScanV3RequestBody, } from './hooks/useEvaluateArtifactScanV3Mutation';
71
73
  export { evaluateArtifactScanV3, useEvaluateArtifactScanV3Mutation, } from './hooks/useEvaluateArtifactScanV3Mutation';
72
74
  export type { FindSpaceLabelErrorResponse, FindSpaceLabelOkResponse, FindSpaceLabelProps, FindSpaceLabelQueryPathParams, FindSpaceLabelQueryQueryParams, } from './hooks/useFindSpaceLabelQuery';
73
75
  export { findSpaceLabel, useFindSpaceLabelQuery } from './hooks/useFindSpaceLabelQuery';
76
+ export type { ForceUnlockTerraformBackendV3ErrorResponse, ForceUnlockTerraformBackendV3MutationPathParams, ForceUnlockTerraformBackendV3MutationQueryParams, ForceUnlockTerraformBackendV3OkResponse, ForceUnlockTerraformBackendV3Props, ForceUnlockTerraformBackendV3RequestBody, } from './hooks/useForceUnlockTerraformBackendV3Mutation';
77
+ export { forceUnlockTerraformBackendV3, useForceUnlockTerraformBackendV3Mutation, } from './hooks/useForceUnlockTerraformBackendV3Mutation';
74
78
  export type { GenerateSigningKeyV3ErrorResponse, GenerateSigningKeyV3MutationQueryParams, GenerateSigningKeyV3OkResponse, GenerateSigningKeyV3Props, GenerateSigningKeyV3RequestBody, } from './hooks/useGenerateSigningKeyV3Mutation';
75
79
  export { generateSigningKeyV3, useGenerateSigningKeyV3Mutation, } from './hooks/useGenerateSigningKeyV3Mutation';
76
80
  export type { GetAllArtifactVersionsErrorResponse, GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsProps, GetAllArtifactVersionsQueryPathParams, GetAllArtifactVersionsQueryQueryParams, } from './hooks/useGetAllArtifactVersionsQuery';
@@ -177,9 +181,11 @@ export type { GetRegistryErrorResponse, GetRegistryOkResponse, GetRegistryProps,
177
181
  export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
178
182
  export type { GetReplicationRuleErrorResponse, GetReplicationRuleOkResponse, GetReplicationRuleProps, GetReplicationRuleQueryPathParams, } from './hooks/useGetReplicationRuleQuery';
179
183
  export { getReplicationRule, useGetReplicationRuleQuery } from './hooks/useGetReplicationRuleQuery';
184
+ export type { GetSigningKeyByNameV3ErrorResponse, GetSigningKeyByNameV3OkResponse, GetSigningKeyByNameV3Props, GetSigningKeyByNameV3QueryPathParams, GetSigningKeyByNameV3QueryQueryParams, } from './hooks/useGetSigningKeyByNameV3Query';
185
+ export { getSigningKeyByNameV3, useGetSigningKeyByNameV3Query, } from './hooks/useGetSigningKeyByNameV3Query';
180
186
  export type { GetSigningKeyPublicKeyV3ErrorResponse, GetSigningKeyPublicKeyV3OkResponse, GetSigningKeyPublicKeyV3Props, GetSigningKeyPublicKeyV3QueryPathParams, GetSigningKeyPublicKeyV3QueryQueryParams, } from './hooks/useGetSigningKeyPublicKeyV3Query';
181
187
  export { getSigningKeyPublicKeyV3, useGetSigningKeyPublicKeyV3Query, } from './hooks/useGetSigningKeyPublicKeyV3Query';
182
- export type { GetSigningKeyV3ErrorResponse, GetSigningKeyV3OkResponse, GetSigningKeyV3Props, GetSigningKeyV3QueryPathParams, GetSigningKeyV3QueryQueryParams, } from './hooks/useGetSigningKeyV3Query';
188
+ export type { GetSigningKeyV3ErrorResponse, GetSigningKeyV3OkResponse, GetSigningKeyV3Props, GetSigningKeyV3QueryPathParams, } from './hooks/useGetSigningKeyV3Query';
183
189
  export { getSigningKeyV3, useGetSigningKeyV3Query } from './hooks/useGetSigningKeyV3Query';
184
190
  export type { GetStorageDetailsErrorResponse, GetStorageDetailsOkResponse, GetStorageDetailsProps, GetStorageDetailsQueryPathParams, } from './hooks/useGetStorageDetailsQuery';
185
191
  export { getStorageDetails, useGetStorageDetailsQuery } from './hooks/useGetStorageDetailsQuery';
@@ -482,6 +488,7 @@ export type { BackfillStateDataV3 } from './schemas/BackfillStateDataV3';
482
488
  export type { BackfillTaskStatusDataV3 } from './schemas/BackfillTaskStatusDataV3';
483
489
  export type { BackfillTriggerDataV3 } from './schemas/BackfillTriggerDataV3';
484
490
  export type { BackfillTriggerRequestInputV3 } from './schemas/BackfillTriggerRequestInputV3';
491
+ export type { BearerToken } from './schemas/BearerToken';
485
492
  export type { BuildDetailEntryV3 } from './schemas/BuildDetailEntryV3';
486
493
  export type { BuildDetails } from './schemas/BuildDetails';
487
494
  export type { BuildDetailsV3 } from './schemas/BuildDetailsV3';
@@ -522,6 +529,7 @@ export type { CopyTargetRefV3 } from './schemas/CopyTargetRefV3';
522
529
  export type { CranArtifactDetailConfig } from './schemas/CranArtifactDetailConfig';
523
530
  export type { CreateBulkDownloadRequestResponseOutput } from './schemas/CreateBulkDownloadRequestResponseOutput';
524
531
  export type { CreatedAtMsV3 } from './schemas/CreatedAtMsV3';
532
+ export type { DailyStorage } from './schemas/DailyStorage';
525
533
  export type { DartArtifactDetailConfig } from './schemas/DartArtifactDetailConfig';
526
534
  export type { DebianArtifactDetailConfig } from './schemas/DebianArtifactDetailConfig';
527
535
  export type { DebianConfig } from './schemas/DebianConfig';
@@ -563,6 +571,8 @@ export type { FirewallExceptionStatusV3 } from './schemas/FirewallExceptionStatu
563
571
  export type { FirewallExceptionUpdateRequestV3 } from './schemas/FirewallExceptionUpdateRequestV3';
564
572
  export type { FirewallModeV3 } from './schemas/FirewallModeV3';
565
573
  export type { FixVersionDetailsV3 } from './schemas/FixVersionDetailsV3';
574
+ export type { ForceUnlockTerraformBackendRequestV3 } from './schemas/ForceUnlockTerraformBackendRequestV3';
575
+ export type { ForceUnlockTerraformBackendResponseV3 } from './schemas/ForceUnlockTerraformBackendResponseV3';
566
576
  export type { GenerateKeyRequestV3 } from './schemas/GenerateKeyRequestV3';
567
577
  export type { GenericArtifactDetailConfig } from './schemas/GenericArtifactDetailConfig';
568
578
  export type { GoArtifactDetailConfig } from './schemas/GoArtifactDetailConfig';
@@ -573,6 +583,7 @@ export type { HelmHttpArtifactDetailConfig } from './schemas/HelmHttpArtifactDet
573
583
  export type { HuggingFaceArtifactDetailConfig } from './schemas/HuggingFaceArtifactDetailConfig';
574
584
  export type { ImportKeyRequestV3 } from './schemas/ImportKeyRequestV3';
575
585
  export type { JfrogReplicationRegistry } from './schemas/JfrogReplicationRegistry';
586
+ export type { KeyMetaV3 } from './schemas/KeyMetaV3';
576
587
  export type { LicensePolicyFailureDetailConfigV3 } from './schemas/LicensePolicyFailureDetailConfigV3';
577
588
  export type { LifecycleDryRunRequestBodyV3 } from './schemas/LifecycleDryRunRequestBodyV3';
578
589
  export type { LifecycleExecutionItemResponseV3 } from './schemas/LifecycleExecutionItemResponseV3';
@@ -32,8 +32,10 @@ export { deleteSpaceLabel, useDeleteSpaceLabelMutation } from './hooks/useDelete
32
32
  export { deleteSpaceLabelValue, useDeleteSpaceLabelValueMutation, } from './hooks/useDeleteSpaceLabelValueMutation';
33
33
  export { deleteVersionV3, useDeleteVersionV3Mutation } from './hooks/useDeleteVersionV3Mutation';
34
34
  export { deleteWebhook, useDeleteWebhookMutation } from './hooks/useDeleteWebhookMutation';
35
+ export { downloadSigningKeyPublicKeyV3, useDownloadSigningKeyPublicKeyV3Query, } from './hooks/useDownloadSigningKeyPublicKeyV3Query';
35
36
  export { evaluateArtifactScanV3, useEvaluateArtifactScanV3Mutation, } from './hooks/useEvaluateArtifactScanV3Mutation';
36
37
  export { findSpaceLabel, useFindSpaceLabelQuery } from './hooks/useFindSpaceLabelQuery';
38
+ export { forceUnlockTerraformBackendV3, useForceUnlockTerraformBackendV3Mutation, } from './hooks/useForceUnlockTerraformBackendV3Mutation';
37
39
  export { generateSigningKeyV3, useGenerateSigningKeyV3Mutation, } from './hooks/useGenerateSigningKeyV3Mutation';
38
40
  export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
39
41
  export { getAllArtifactsByRegistry, useGetAllArtifactsByRegistryQuery, } from './hooks/useGetAllArtifactsByRegistryQuery';
@@ -87,6 +89,7 @@ export { getRegistryMetadataV3, useGetRegistryMetadataV3Query, } from './hooks/u
87
89
  export { getRegistryPublicKeyV3, useGetRegistryPublicKeyV3Query, } from './hooks/useGetRegistryPublicKeyV3Query';
88
90
  export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
89
91
  export { getReplicationRule, useGetReplicationRuleQuery } from './hooks/useGetReplicationRuleQuery';
92
+ export { getSigningKeyByNameV3, useGetSigningKeyByNameV3Query, } from './hooks/useGetSigningKeyByNameV3Query';
90
93
  export { getSigningKeyPublicKeyV3, useGetSigningKeyPublicKeyV3Query, } from './hooks/useGetSigningKeyPublicKeyV3Query';
91
94
  export { getSigningKeyV3, useGetSigningKeyV3Query } from './hooks/useGetSigningKeyV3Query';
92
95
  export { getStorageDetails, useGetStorageDetailsQuery } from './hooks/useGetStorageDetailsQuery';
@@ -34,6 +34,7 @@ export interface ArtifactVersionMetadata {
34
34
  lastScannedAt?: string;
35
35
  metadata?: ArtifactEntityMetadata;
36
36
  name: string;
37
+ opaMetadataValidation?: boolean;
37
38
  packageType: PackageType;
38
39
  pullCommand?: string;
39
40
  quarantineReason?: string;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Authentication type
3
3
  */
4
- export type AuthType = 'AccessKeySecretKey' | 'Anonymous' | 'UserPassword';
4
+ export type AuthType = 'AccessKeySecretKey' | 'Anonymous' | 'BearerToken' | 'UserPassword';
@@ -0,0 +1,8 @@
1
+ export interface BearerToken {
2
+ secretIdentifier?: string;
3
+ /**
4
+ * @format int64
5
+ */
6
+ secretSpaceId?: number;
7
+ secretSpacePath?: string;
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,14 @@
1
+ /**
2
+ * Storage snapshot for a single calendar day.
3
+ */
4
+ export interface DailyStorage {
5
+ /**
6
+ * Snapshot date in UTC (YYYY-MM-DD).
7
+ * @format date
8
+ */
9
+ date: string;
10
+ /**
11
+ * Total storage on that date, as a human-readable auto-scaled size (e.g. "468.78GB").
12
+ */
13
+ size: 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 {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Context recorded on the force-unlock audit trail.
3
+ */
4
+ export interface ForceUnlockTerraformBackendRequestV3 {
5
+ /**
6
+ * Why the lock is being force-cleared. Recorded in the audit log.
7
+ */
8
+ reason: 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,12 @@
1
+ export interface ForceUnlockTerraformBackendResponseV3 {
2
+ data: {
3
+ /**
4
+ * The previous lock holder, if any.
5
+ */
6
+ lockedBy?: string;
7
+ /**
8
+ * Whether a lock was actually held before this call.
9
+ */
10
+ wasLocked: boolean;
11
+ };
12
+ }
@@ -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,11 +1,20 @@
1
1
  /**
2
- * Request to generate a new signing key
2
+ * Request to generate a new signing key.
3
+ *
4
+ * Supported combinations:
5
+ * - GPG + RSA: sizes 2048, 3072, 4096 (default: 3072)
6
+ * - GPG + Ed25519: no size parameter (fixed size)
7
+ * - RSA + RSA: sizes 2048, 3072, 4096 (default: 3072)
8
+ *
3
9
  */
4
10
  export interface GenerateKeyRequestV3 {
5
11
  /**
6
- * Underlying algorithm (rsa recommended for compatibility)
12
+ * Underlying cryptographic algorithm:
13
+ * - RSA: 2048/3072/4096-bit RSA (compatible with all package types)
14
+ * - Ed25519: Modern elliptic curve algorithm (GPG only, fixed size)
15
+ *
7
16
  */
8
- algorithm: 'ed25519' | 'rsa';
17
+ algorithm: 'Ed25519' | 'RSA';
9
18
  /**
10
19
  * Optional expiration timestamp in Unix milliseconds
11
20
  * @format int64
@@ -16,13 +25,22 @@ export interface GenerateKeyRequestV3 {
16
25
  */
17
26
  keyName: string;
18
27
  /**
19
- * Key size in bits (minimum 2048, recommended 4096 for RSA)
28
+ * Key size in bits (only for RSA algorithm):
29
+ * - 2048: Minimum size, faster but less secure
30
+ * - 3072: Recommended default, good balance
31
+ * - 4096: Maximum security, slower operations
32
+ *
33
+ * Not applicable for Ed25519 (fixed size).
34
+ *
20
35
  * @format int32
21
- * @default 4096
36
+ * @default 3072
22
37
  */
23
- keySize: number;
38
+ keySize?: number | null;
24
39
  /**
25
- * Type of key to generate
40
+ * Type of key to generate:
41
+ * - GPG: OpenPGP key for package signing (Debian, RPM, Alpine)
42
+ * - RSA: Raw RSA key for direct signing operations
43
+ *
26
44
  */
27
45
  keyType: 'GPG' | 'RSA';
28
46
  /**
@@ -3,7 +3,10 @@
3
3
  */
4
4
  export interface ImportKeyRequestV3 {
5
5
  /**
6
- * Optional expiration timestamp in Unix milliseconds
6
+ * Optional expiration timestamp in Unix milliseconds.
7
+ * Priority: provided value > key's embedded expiration > no expiration.
8
+ * Note: RSA keys don't have embedded expiration, so this is the only way to set expiration for RSA keys.
9
+ *
7
10
  * @format int64
8
11
  */
9
12
  expiresAt?: number | null;
@@ -24,17 +27,17 @@ export interface ImportKeyRequestV3 {
24
27
  */
25
28
  passphraseSecretIdentifier?: string | null;
26
29
  /**
27
- * Optional space ID for the passphrase secret
30
+ * Optional space path for the passphrase secret (e.g., "accountId/orgId/projectId")
28
31
  */
29
- passphraseSecretSpaceId?: string | null;
32
+ passphraseSecretSpacePath?: string | null;
30
33
  /**
31
34
  * Reference to private key secret in Harness Secret Manager
32
35
  */
33
36
  privateKeySecretIdentifier: string;
34
37
  /**
35
- * Space ID for the private key secret
38
+ * Space path for the private key secret (e.g., "accountId/orgId/projectId")
36
39
  */
37
- privateKeySecretSpaceId: string;
40
+ privateKeySecretSpacePath: string;
38
41
  /**
39
42
  * Project identifier (optional, for project-level keys)
40
43
  */
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Metadata about signing keys list response with per-status counts
3
+ */
4
+ export interface KeyMetaV3 {
5
+ /**
6
+ * Count of keys with status ACTIVE
7
+ * @format int64
8
+ * @example 8
9
+ */
10
+ activeCount: number;
11
+ /**
12
+ * Count of keys with status DELETED (soft-deleted)
13
+ * @format int64
14
+ * @example 5
15
+ */
16
+ deletedCount: number;
17
+ /**
18
+ * Count of keys with status INACTIVE (expired or manually deactivated)
19
+ * @format int64
20
+ * @example 2
21
+ */
22
+ inactiveCount: number;
23
+ /**
24
+ * Count of keys with status REVOKED (compromised)
25
+ * @format int64
26
+ * @example 1
27
+ */
28
+ revokedCount: number;
29
+ /**
30
+ * Total count of all keys regardless of status
31
+ * @format int64
32
+ * @example 16
33
+ */
34
+ totalCount: number;
35
+ }
@@ -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,5 +1,7 @@
1
1
  import type { SigningKeyV3 } from '../schemas/SigningKeyV3';
2
+ import type { KeyMetaV3 } from '../schemas/KeyMetaV3';
2
3
  import type { PageInfoV3 } from '../schemas/PageInfoV3';
3
4
  export interface ListSigningKeysResponseV3 extends PageInfoV3 {
4
5
  items: SigningKeyV3[];
6
+ meta?: KeyMetaV3;
5
7
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * refers to package
3
3
  */
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';
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' | 'TERRAFORM_BACKEND' | '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, CRAN, WOLFI, ALPINE. 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, TERRAFORM_BACKEND, CRAN, WOLFI, ALPINE. This field is extensible; clients must handle unknown values.
3
3
  *
4
4
  * @example "DOCKER"
5
5
  */
@@ -20,6 +20,7 @@ export interface Registry<T0 extends RegistryConfig = RegistryConfig> {
20
20
  isPublic: boolean;
21
21
  labels?: string[];
22
22
  modifiedAt?: string;
23
+ opaMetadataValidation?: boolean;
23
24
  packageType: PackageType;
24
25
  policyRefs?: string[];
25
26
  scanners?: Scanner[];
@@ -11,6 +11,7 @@ export interface RegistryRequest<T0 extends RegistryConfig = RegistryConfig> {
11
11
  identifier: string;
12
12
  isPublic: boolean;
13
13
  labels?: string[];
14
+ opaMetadataValidation?: boolean;
14
15
  packageType: PackageType;
15
16
  /**
16
17
  * Reference to the scope in which the registry exists.
@@ -24,6 +24,7 @@ export interface RegistryV3 {
24
24
  modifiedAt?: ModifiedAtMsV3;
25
25
  modifiedBy?: UserInfoV3;
26
26
  name: string;
27
+ opaMetadataValidation?: boolean;
27
28
  orgIdentifier?: OrgIdentifier;
28
29
  /**
29
30
  * @format int64
@@ -10,5 +10,5 @@ export interface SigningConfig {
10
10
  /**
11
11
  * Whether signing is enabled for this registry
12
12
  */
13
- signingEnabled?: boolean;
13
+ signingEnabled: boolean;
14
14
  }
@@ -43,9 +43,9 @@ export interface SigningKeyV3 {
43
43
  */
44
44
  keyStatus: 'ACTIVE' | 'DELETED' | 'INACTIVE' | 'REVOKED';
45
45
  /**
46
- * Cryptographic system (GPG for Debian, RSA for Alpine, ECDSA for future)
46
+ * Cryptographic system (GPG for Debian, RSA for Alpine)
47
47
  */
48
- keyType: 'ECDSA' | 'GPG' | 'RSA';
48
+ keyType: 'GPG' | 'RSA';
49
49
  /**
50
50
  * Last 16 hex chars of fingerprint (for CLI compatibility)
51
51
  */
@@ -1,6 +1,18 @@
1
+ import type { DailyStorage } from '../schemas/DailyStorage';
1
2
  /**
2
3
  * storage details
3
4
  */
4
5
  export interface StorageDetails {
6
+ /**
7
+ * Day-wise storage snapshots for the last 30 calendar days (UTC).
8
+ */
9
+ dailyStorage?: DailyStorage[];
10
+ /**
11
+ * Average daily storage over the last 30 calendar days (UTC), as a human-readable auto-scaled size (e.g. "468.78GB").
12
+ */
13
+ last30DayAverage?: string;
14
+ /**
15
+ * Total current storage, as a human-readable auto-scaled size (e.g. "468.78GB").
16
+ */
5
17
  totalSize: string;
6
18
  }
@@ -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 {};
@@ -2,10 +2,6 @@
2
2
  * Request to update a signing key (name and/or status only)
3
3
  */
4
4
  export interface UpdateKeyRequestV3 {
5
- /**
6
- * New name for the key
7
- */
8
- keyName?: string | null;
9
5
  /**
10
6
  * New status for the key (cannot transition from REVOKED or DELETED)
11
7
  */
@@ -1,6 +1,7 @@
1
1
  import type { UserPassword } from '../schemas/UserPassword';
2
2
  import type { Anonymous } from '../schemas/Anonymous';
3
3
  import type { AccessKeySecretKey } from '../schemas/AccessKeySecretKey';
4
+ import type { BearerToken } from '../schemas/BearerToken';
4
5
  import type { AuthType } from '../schemas/AuthType';
5
6
  import type { UpstreamProxyConfigFirewallMode } from '../schemas/UpstreamProxyConfigFirewallMode';
6
7
  import type { SigningConfig } from '../schemas/SigningConfig';
@@ -8,17 +9,17 @@ import type { SigningConfig } from '../schemas/SigningConfig';
8
9
  * Configuration for Harness Artifact UpstreamProxies
9
10
  */
10
11
  export interface UpstreamConfig {
11
- auth?: UserPassword | Anonymous | AccessKeySecretKey;
12
+ auth?: UserPassword | Anonymous | AccessKeySecretKey | BearerToken;
12
13
  authType: AuthType;
13
14
  firewallMode?: UpstreamProxyConfigFirewallMode;
14
15
  /**
15
- * Time-to-live in seconds for cached FOUND metadata entries. Honoured only for UPSTREAM registries of package types that support the resource cache (currently Maven). Must be between 0 and 604800 (7 days). Rejected for unsupported package types.
16
+ * Time-to-live in seconds for cached metadata.
16
17
  *
17
18
  * @format int64
18
19
  */
19
20
  metadataCacheTTL?: number;
20
21
  /**
21
- * Time-to-live in seconds for cached NOT_FOUND entries. Honoured only for UPSTREAM registries of package types that support the resource cache (currently Maven). Must be between 0 and 604800 (7 days). Rejected for unsupported package types.
22
+ * Time-to-live in seconds for cached NOT_FOUND entries.
22
23
  *
23
24
  * @format int64
24
25
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.89.0",
3
+ "version": "0.91.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",