@harnessio/react-idp-service-client 0.98.0 → 0.99.1

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.
@@ -1,4 +1,5 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { EnvironmentProxyResponse } from '../schemas/EnvironmentProxyResponse';
2
3
  import type { EnvironmentProxyCreateRequest } from '../schemas/EnvironmentProxyCreateRequest';
3
4
  import type { ResponseWithPagination } from '../helpers';
4
5
  import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
@@ -11,7 +12,7 @@ export interface CreateCompileAndExecuteEnvironmentMutationHeaderParams {
11
12
  'Harness-Account'?: string;
12
13
  }
13
14
  export type CreateCompileAndExecuteEnvironmentRequestBody = EnvironmentProxyCreateRequest;
14
- export type CreateCompileAndExecuteEnvironmentOkResponse = ResponseWithPagination<unknown>;
15
+ export type CreateCompileAndExecuteEnvironmentOkResponse = ResponseWithPagination<EnvironmentProxyResponse>;
15
16
  export type CreateCompileAndExecuteEnvironmentErrorResponse = unknown;
16
17
  export interface CreateCompileAndExecuteEnvironmentProps extends Omit<FetcherOptions<CreateCompileAndExecuteEnvironmentMutationQueryParams, CreateCompileAndExecuteEnvironmentRequestBody, CreateCompileAndExecuteEnvironmentMutationHeaderParams>, 'url'> {
17
18
  queryParams: CreateCompileAndExecuteEnvironmentMutationQueryParams;
@@ -3,18 +3,13 @@ import type { EnvironmentBlueprintInfoResponseResponse } from '../responses/Envi
3
3
  import type { EnvironmentBlueprintInfoRequestRequestBody } from '../requestBodies/EnvironmentBlueprintInfoRequestRequestBody';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
6
- export interface GetEnvironmentBlueprintInfoMutationQueryParams {
7
- orgIdentifier?: string;
8
- projectIdentifier?: string;
9
- }
10
6
  export interface GetEnvironmentBlueprintInfoMutationHeaderParams {
11
7
  'Harness-Account'?: string;
12
8
  }
13
9
  export type GetEnvironmentBlueprintInfoRequestBody = EnvironmentBlueprintInfoRequestRequestBody;
14
10
  export type GetEnvironmentBlueprintInfoOkResponse = ResponseWithPagination<EnvironmentBlueprintInfoResponseResponse>;
15
11
  export type GetEnvironmentBlueprintInfoErrorResponse = unknown;
16
- export interface GetEnvironmentBlueprintInfoProps extends Omit<FetcherOptions<GetEnvironmentBlueprintInfoMutationQueryParams, GetEnvironmentBlueprintInfoRequestBody, GetEnvironmentBlueprintInfoMutationHeaderParams>, 'url'> {
17
- queryParams: GetEnvironmentBlueprintInfoMutationQueryParams;
12
+ export interface GetEnvironmentBlueprintInfoProps extends Omit<FetcherOptions<unknown, GetEnvironmentBlueprintInfoRequestBody, GetEnvironmentBlueprintInfoMutationHeaderParams>, 'url'> {
18
13
  body: GetEnvironmentBlueprintInfoRequestBody;
19
14
  }
20
15
  export declare function getEnvironmentBlueprintInfo(props: GetEnvironmentBlueprintInfoProps): Promise<GetEnvironmentBlueprintInfoOkResponse>;
@@ -139,7 +139,7 @@ export type { GetEntityVersionErrorResponse, GetEntityVersionOkResponse, GetEnti
139
139
  export { getEntityVersion, useGetEntityVersionQuery } from './hooks/useGetEntityVersionQuery';
140
140
  export type { GetEntityVersionsErrorResponse, GetEntityVersionsOkResponse, GetEntityVersionsProps, GetEntityVersionsQueryPathParams, GetEntityVersionsQueryQueryParams, } from './hooks/useGetEntityVersionsQuery';
141
141
  export { getEntityVersions, useGetEntityVersionsQuery } from './hooks/useGetEntityVersionsQuery';
142
- export type { GetEnvironmentBlueprintInfoErrorResponse, GetEnvironmentBlueprintInfoMutationQueryParams, GetEnvironmentBlueprintInfoOkResponse, GetEnvironmentBlueprintInfoProps, GetEnvironmentBlueprintInfoRequestBody, } from './hooks/useGetEnvironmentBlueprintInfoMutation';
142
+ export type { GetEnvironmentBlueprintInfoErrorResponse, GetEnvironmentBlueprintInfoOkResponse, GetEnvironmentBlueprintInfoProps, GetEnvironmentBlueprintInfoRequestBody, } from './hooks/useGetEnvironmentBlueprintInfoMutation';
143
143
  export { getEnvironmentBlueprintInfo, useGetEnvironmentBlueprintInfoMutation, } from './hooks/useGetEnvironmentBlueprintInfoMutation';
144
144
  export type { GetGroupDetailsErrorResponse, GetGroupDetailsOkResponse, GetGroupDetailsProps, GetGroupDetailsQueryPathParams, GetGroupDetailsQueryQueryParams, } from './hooks/useGetGroupDetailsQuery';
145
145
  export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDetailsQuery';
@@ -484,6 +484,7 @@ export type { EnvironmentBluePrintInfoResponse } from './schemas/EnvironmentBlue
484
484
  export type { EnvironmentBluePrintVersionInfo } from './schemas/EnvironmentBluePrintVersionInfo';
485
485
  export type { EnvironmentBlueprintInfoRequest } from './schemas/EnvironmentBlueprintInfoRequest';
486
486
  export type { EnvironmentProxyCreateRequest } from './schemas/EnvironmentProxyCreateRequest';
487
+ export type { EnvironmentProxyResponse } from './schemas/EnvironmentProxyResponse';
487
488
  export type { EvaluationData } from './schemas/EvaluationData';
488
489
  export type { ExportDetails } from './schemas/ExportDetails';
489
490
  export type { Exports } from './schemas/Exports';
@@ -17,6 +17,12 @@ export interface EntityResponse {
17
17
  is_valid?: boolean;
18
18
  };
19
19
  git_details?: GitDetails;
20
+ /**
21
+ * OPA policy evaluation metadata. Present only when OPA governance is enabled for IDP catalog entities.
22
+ */
23
+ governance_metadata?: {
24
+ [key: string]: any;
25
+ };
20
26
  groups?: Array<{
21
27
  group_description?: string;
22
28
  group_icon?: string;
@@ -12,6 +12,12 @@ export interface EntityVersionResponse {
12
12
  */
13
13
  deprecatedAt?: number;
14
14
  description?: string;
15
+ /**
16
+ * OPA policy evaluation metadata. Present only when OPA governance is enabled for IDP catalog entities.
17
+ */
18
+ governance_metadata?: {
19
+ [key: string]: any;
20
+ };
15
21
  identifier: string;
16
22
  kind: 'aiasset' | 'aidependency' | 'api' | 'component' | 'environment' | 'environmentblueprint' | 'group' | 'hierarchy' | 'resource' | 'system' | 'user' | 'workflow';
17
23
  orgIdentifier?: string;
@@ -0,0 +1,14 @@
1
+ export interface EnvironmentProxyResponse {
2
+ /**
3
+ * OPA policy evaluation metadata. Present only when OPA governance is enabled for IDP catalog entities.
4
+ */
5
+ governance_metadata?: {
6
+ [key: string]: any;
7
+ };
8
+ /**
9
+ * The compile/execute response from the environment orchestrator.
10
+ */
11
+ response?: {
12
+ [key: string]: any;
13
+ };
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.98.0",
3
+ "version": "0.99.1",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",