@harnessio/react-idp-service-client 0.99.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;
@@ -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.99.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",