@harnessio/react-intelligence-service-client 0.7.0 → 0.9.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.
@@ -1,5 +1,5 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { TypesChatOutput } from '../schemas/TypesChatOutput';
2
+ import type { TypesEntityOperationResponse } from '../schemas/TypesEntityOperationResponse';
3
3
  import type { UsererrorError } from '../schemas/UsererrorError';
4
4
  import type { TypesHarnessEntity } from '../schemas/TypesHarnessEntity';
5
5
  import type { ResponseWithPagination } from '../helpers';
@@ -8,7 +8,7 @@ export interface CreateEntityMutationHeaderParams {
8
8
  'harness-account': string;
9
9
  }
10
10
  export type CreateEntityRequestBody = TypesHarnessEntity;
11
- export type CreateEntityOkResponse = ResponseWithPagination<TypesChatOutput>;
11
+ export type CreateEntityOkResponse = ResponseWithPagination<TypesEntityOperationResponse>;
12
12
  export type CreateEntityErrorResponse = UsererrorError;
13
13
  export interface CreateEntityProps extends Omit<FetcherOptions<unknown, CreateEntityRequestBody, CreateEntityMutationHeaderParams>, 'url'> {
14
14
  body: CreateEntityRequestBody;
@@ -6,6 +6,7 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface ListChatSessionsQueryQueryParams {
7
7
  orgIdentifier?: string;
8
8
  projectIdentifier?: string;
9
+ query?: string;
9
10
  /**
10
11
  * @default 0
11
12
  */
@@ -62,6 +62,7 @@ export type { EnumRequestAction } from './schemas/EnumRequestAction';
62
62
  export type { EnumRole } from './schemas/EnumRole';
63
63
  export type { HandlerGetSessionResponse } from './schemas/HandlerGetSessionResponse';
64
64
  export type { OpenapiRuleCategoriesResponse } from './schemas/OpenapiRuleCategoriesResponse';
65
+ export type { TypesAttachmentRef } from './schemas/TypesAttachmentRef';
65
66
  export type { TypesChat } from './schemas/TypesChat';
66
67
  export type { TypesChatMessage } from './schemas/TypesChatMessage';
67
68
  export type { TypesChatOutput } from './schemas/TypesChatOutput';
@@ -69,6 +70,7 @@ export type { TypesChatResponse } from './schemas/TypesChatResponse';
69
70
  export type { TypesChatSession } from './schemas/TypesChatSession';
70
71
  export type { TypesConversation } from './schemas/TypesConversation';
71
72
  export type { TypesEntityInfo } from './schemas/TypesEntityInfo';
73
+ export type { TypesEntityOperationResponse } from './schemas/TypesEntityOperationResponse';
72
74
  export type { TypesHarnessEntity } from './schemas/TypesHarnessEntity';
73
75
  export type { TypesMessage } from './schemas/TypesMessage';
74
76
  export type { TypesResponseMessage } from './schemas/TypesResponseMessage';
@@ -0,0 +1,5 @@
1
+ export interface TypesAttachmentRef {
2
+ id: string;
3
+ name: string;
4
+ token_size: number;
5
+ }
@@ -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,9 @@
1
+ import type { TypesAttachmentRef } from '../schemas/TypesAttachmentRef';
1
2
  import type { TypesConversation } from '../schemas/TypesConversation';
2
3
  import type { UuidUuid } from '../schemas/UuidUuid';
3
4
  import type { EnumAgentMode } from '../schemas/EnumAgentMode';
4
5
  export interface TypesChat {
6
+ attachments?: TypesAttachmentRef[];
5
7
  conversation?: TypesConversation[] | null;
6
8
  conversation_id?: UuidUuid;
7
9
  interaction_id?: UuidUuid;
@@ -0,0 +1,10 @@
1
+ import type { TypesEntityInfo } from '../schemas/TypesEntityInfo';
2
+ import type { EnumEntityType } from '../schemas/EnumEntityType';
3
+ export interface TypesEntityOperationResponse {
4
+ entity_info?: TypesEntityInfo;
5
+ entity_type?: EnumEntityType;
6
+ error?: string;
7
+ status_code?: number;
8
+ status_message?: string;
9
+ success?: boolean;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-intelligence-service-client",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "Harness React Intelligence service client - Intelligence APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",