@harnessio/react-intelligence-service-client 0.10.0 → 0.11.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 { UseQueryOptions } from '@tanstack/react-query';
2
- import type { HandlerGetMessagesV2Response } from '../schemas/HandlerGetMessagesV2Response';
2
+ import type { TypesChatMessageV2 } from '../schemas/TypesChatMessageV2';
3
3
  import type { UsererrorError } from '../schemas/UsererrorError';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -19,7 +19,7 @@ export interface GetChatSessionMessagesV2QueryQueryParams {
19
19
  export interface GetChatSessionMessagesV2QueryHeaderParams {
20
20
  'harness-account': string;
21
21
  }
22
- export type GetChatSessionMessagesV2OkResponse = ResponseWithPagination<HandlerGetMessagesV2Response>;
22
+ export type GetChatSessionMessagesV2OkResponse = ResponseWithPagination<TypesChatMessageV2[]>;
23
23
  export type GetChatSessionMessagesV2ErrorResponse = UsererrorError;
24
24
  export interface GetChatSessionMessagesV2Props extends GetChatSessionMessagesV2QueryPathParams, Omit<FetcherOptions<GetChatSessionMessagesV2QueryQueryParams, unknown, GetChatSessionMessagesV2QueryHeaderParams>, 'url'> {
25
25
  queryParams: GetChatSessionMessagesV2QueryQueryParams;
@@ -70,7 +70,6 @@ export type { EnumEntityType } from './schemas/EnumEntityType';
70
70
  export type { EnumMessageType } from './schemas/EnumMessageType';
71
71
  export type { EnumRequestAction } from './schemas/EnumRequestAction';
72
72
  export type { EnumRole } from './schemas/EnumRole';
73
- export type { HandlerGetMessagesV2Response } from './schemas/HandlerGetMessagesV2Response';
74
73
  export type { HandlerGetSessionResponse } from './schemas/HandlerGetSessionResponse';
75
74
  export type { OpenapiRuleCategoriesResponse } from './schemas/OpenapiRuleCategoriesResponse';
76
75
  export type { TypesAttachmentCompleteRequest } from './schemas/TypesAttachmentCompleteRequest';
@@ -4,6 +4,9 @@ import type { UuidUuid } from '../schemas/UuidUuid';
4
4
  import type { EnumAgentMode } from '../schemas/EnumAgentMode';
5
5
  export interface TypesChatV2 {
6
6
  attachments?: TypesAttachmentRef[];
7
+ context?: {
8
+ [key: string]: any;
9
+ };
7
10
  conversation?: TypesConversation[] | null;
8
11
  conversation_id?: UuidUuid;
9
12
  interaction_id?: UuidUuid;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-intelligence-service-client",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Harness React Intelligence service client - Intelligence APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,7 +0,0 @@
1
- import type { TypesChatMessageV2 } from '../schemas/TypesChatMessageV2';
2
- export interface HandlerGetMessagesV2Response {
3
- count?: number;
4
- limit?: number;
5
- messages?: TypesChatMessageV2[] | null;
6
- offset?: number;
7
- }