@harnessio/react-har-service-client 0.90.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 (30) 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/useGetSigningKeyByNameV3Query.d.ts +25 -0
  6. package/dist/har-service/src/services/hooks/useGetSigningKeyByNameV3Query.js +14 -0
  7. package/dist/har-service/src/services/hooks/useGetSigningKeyV3Query.d.ts +1 -7
  8. package/dist/har-service/src/services/hooks/useGetSigningKeyV3Query.js +1 -1
  9. package/dist/har-service/src/services/hooks/useListSigningKeysV3Query.d.ts +1 -0
  10. package/dist/har-service/src/services/index.d.ts +11 -1
  11. package/dist/har-service/src/services/index.js +3 -0
  12. package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +1 -0
  13. package/dist/har-service/src/services/schemas/AuthType.d.ts +1 -1
  14. package/dist/har-service/src/services/schemas/BearerToken.d.ts +8 -0
  15. package/dist/har-service/src/services/schemas/BearerToken.js +4 -0
  16. package/dist/har-service/src/services/schemas/ForceUnlockTerraformBackendRequestV3.d.ts +9 -0
  17. package/dist/har-service/src/services/schemas/ForceUnlockTerraformBackendRequestV3.js +4 -0
  18. package/dist/har-service/src/services/schemas/ForceUnlockTerraformBackendResponseV3.d.ts +12 -0
  19. package/dist/har-service/src/services/schemas/ForceUnlockTerraformBackendResponseV3.js +4 -0
  20. package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.d.ts +1 -1
  21. package/dist/har-service/src/services/schemas/KeyMetaV3.d.ts +35 -0
  22. package/dist/har-service/src/services/schemas/KeyMetaV3.js +4 -0
  23. package/dist/har-service/src/services/schemas/ListSigningKeysResponseV3.d.ts +2 -2
  24. package/dist/har-service/src/services/schemas/Registry.d.ts +1 -0
  25. package/dist/har-service/src/services/schemas/RegistryRequest.d.ts +1 -0
  26. package/dist/har-service/src/services/schemas/RegistryV3.d.ts +1 -0
  27. package/dist/har-service/src/services/schemas/SigningConfig.d.ts +1 -1
  28. package/dist/har-service/src/services/schemas/UpdateKeyRequestV3.d.ts +0 -4
  29. package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +2 -1
  30. 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
+ }
@@ -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
  }
@@ -17,6 +17,7 @@ export interface ListSigningKeysV3QueryQueryParams {
17
17
  * @default 20
18
18
  */
19
19
  size?: number;
20
+ search_term?: string;
20
21
  key_type?: Array<'GPG' | 'RSA'>;
21
22
  key_status?: Array<'ACTIVE' | 'DELETED' | 'INACTIVE' | 'REVOKED'>;
22
23
  }
@@ -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';
@@ -564,6 +571,8 @@ export type { FirewallExceptionStatusV3 } from './schemas/FirewallExceptionStatu
564
571
  export type { FirewallExceptionUpdateRequestV3 } from './schemas/FirewallExceptionUpdateRequestV3';
565
572
  export type { FirewallModeV3 } from './schemas/FirewallModeV3';
566
573
  export type { FixVersionDetailsV3 } from './schemas/FixVersionDetailsV3';
574
+ export type { ForceUnlockTerraformBackendRequestV3 } from './schemas/ForceUnlockTerraformBackendRequestV3';
575
+ export type { ForceUnlockTerraformBackendResponseV3 } from './schemas/ForceUnlockTerraformBackendResponseV3';
567
576
  export type { GenerateKeyRequestV3 } from './schemas/GenerateKeyRequestV3';
568
577
  export type { GenericArtifactDetailConfig } from './schemas/GenericArtifactDetailConfig';
569
578
  export type { GoArtifactDetailConfig } from './schemas/GoArtifactDetailConfig';
@@ -574,6 +583,7 @@ export type { HelmHttpArtifactDetailConfig } from './schemas/HelmHttpArtifactDet
574
583
  export type { HuggingFaceArtifactDetailConfig } from './schemas/HuggingFaceArtifactDetailConfig';
575
584
  export type { ImportKeyRequestV3 } from './schemas/ImportKeyRequestV3';
576
585
  export type { JfrogReplicationRegistry } from './schemas/JfrogReplicationRegistry';
586
+ export type { KeyMetaV3 } from './schemas/KeyMetaV3';
577
587
  export type { LicensePolicyFailureDetailConfigV3 } from './schemas/LicensePolicyFailureDetailConfigV3';
578
588
  export type { LifecycleDryRunRequestBodyV3 } from './schemas/LifecycleDryRunRequestBodyV3';
579
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,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 {};
@@ -35,7 +35,7 @@ export interface GenerateKeyRequestV3 {
35
35
  * @format int32
36
36
  * @default 3072
37
37
  */
38
- keySize: number | null;
38
+ keySize?: number | null;
39
39
  /**
40
40
  * Type of key to generate:
41
41
  * - GPG: OpenPGP key for package signing (Debian, RPM, Alpine)
@@ -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,7 +1,7 @@
1
1
  import type { SigningKeyV3 } from '../schemas/SigningKeyV3';
2
- import type { MetaV3 } from '../schemas/MetaV3';
2
+ import type { KeyMetaV3 } from '../schemas/KeyMetaV3';
3
3
  import type { PageInfoV3 } from '../schemas/PageInfoV3';
4
4
  export interface ListSigningKeysResponseV3 extends PageInfoV3 {
5
5
  items: SigningKeyV3[];
6
- meta?: MetaV3;
6
+ meta?: KeyMetaV3;
7
7
  }
@@ -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
  }
@@ -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,7 +9,7 @@ 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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.90.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",