@harnessio/react-intelligence-service-client 0.15.0 → 0.16.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.
- package/dist/intelligence-service/src/services/hooks/useCreateMemoryMutation.d.ts +20 -0
- package/dist/intelligence-service/src/services/hooks/useCreateMemoryMutation.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useDeleteMemoryMutation.d.ts +19 -0
- package/dist/intelligence-service/src/services/hooks/useDeleteMemoryMutation.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useGetMemoryQuery.d.ts +20 -0
- package/dist/intelligence-service/src/services/hooks/useGetMemoryQuery.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useListMemoriesQuery.d.ts +25 -0
- package/dist/intelligence-service/src/services/hooks/useListMemoriesQuery.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useUpdateMemoryMutation.d.ts +23 -0
- package/dist/intelligence-service/src/services/hooks/useUpdateMemoryMutation.js +14 -0
- package/dist/intelligence-service/src/services/index.d.ts +16 -0
- package/dist/intelligence-service/src/services/index.js +5 -0
- package/dist/intelligence-service/src/services/schemas/HandlerCreateMemoryRequest.d.ts +6 -0
- package/dist/intelligence-service/src/services/schemas/HandlerCreateMemoryRequest.js +4 -0
- package/dist/intelligence-service/src/services/schemas/HandlerGetMemoryResponse.d.ts +4 -0
- package/dist/intelligence-service/src/services/schemas/HandlerGetMemoryResponse.js +1 -0
- package/dist/intelligence-service/src/services/schemas/HandlerListMemoriesResponse.d.ts +6 -0
- package/dist/intelligence-service/src/services/schemas/HandlerListMemoriesResponse.js +1 -0
- package/dist/intelligence-service/src/services/schemas/HandlerUpdateMemoryRequest.d.ts +6 -0
- package/dist/intelligence-service/src/services/schemas/HandlerUpdateMemoryRequest.js +4 -0
- package/dist/intelligence-service/src/services/schemas/TypesMemory.d.ts +23 -0
- package/dist/intelligence-service/src/services/schemas/TypesMemory.js +1 -0
- package/dist/intelligence-service/src/services/schemas/TypesType.d.ts +1 -0
- package/dist/intelligence-service/src/services/schemas/TypesType.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMemory } from '../schemas/TypesMemory';
|
|
3
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
|
+
import type { HandlerCreateMemoryRequest } from '../schemas/HandlerCreateMemoryRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface CreateMemoryMutationHeaderParams {
|
|
8
|
+
'harness-account': string;
|
|
9
|
+
}
|
|
10
|
+
export type CreateMemoryRequestBody = HandlerCreateMemoryRequest;
|
|
11
|
+
export type CreateMemoryOkResponse = ResponseWithPagination<TypesMemory>;
|
|
12
|
+
export type CreateMemoryErrorResponse = UsererrorError;
|
|
13
|
+
export interface CreateMemoryProps extends Omit<FetcherOptions<unknown, CreateMemoryRequestBody, CreateMemoryMutationHeaderParams>, 'url'> {
|
|
14
|
+
body: CreateMemoryRequestBody;
|
|
15
|
+
}
|
|
16
|
+
export declare function createMemory(props: CreateMemoryProps): Promise<CreateMemoryOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new memory entry for the authenticated user
|
|
19
|
+
*/
|
|
20
|
+
export declare function useCreateMemoryMutation(options?: Omit<UseMutationOptions<CreateMemoryOkResponse, CreateMemoryErrorResponse, CreateMemoryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateMemoryOkResponse, UsererrorError, CreateMemoryProps, unknown>;
|
|
@@ -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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function createMemory(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/chat/memory`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new memory entry for the authenticated user
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateMemoryMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createMemory(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface DeleteMemoryMutationPathParams {
|
|
6
|
+
memoryId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteMemoryMutationHeaderParams {
|
|
9
|
+
'harness-account': string;
|
|
10
|
+
}
|
|
11
|
+
export type DeleteMemoryOkResponse = ResponseWithPagination<unknown>;
|
|
12
|
+
export type DeleteMemoryErrorResponse = UsererrorError;
|
|
13
|
+
export interface DeleteMemoryProps extends DeleteMemoryMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteMemoryMutationHeaderParams>, 'url'> {
|
|
14
|
+
}
|
|
15
|
+
export declare function deleteMemory(props: DeleteMemoryProps): Promise<DeleteMemoryOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Deletes a memory by ID
|
|
18
|
+
*/
|
|
19
|
+
export declare function useDeleteMemoryMutation(options?: Omit<UseMutationOptions<DeleteMemoryOkResponse, DeleteMemoryErrorResponse, DeleteMemoryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteMemoryOkResponse, UsererrorError, DeleteMemoryProps, unknown>;
|
|
@@ -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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function deleteMemory(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/chat/memory/${props.memoryId}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Deletes a memory by ID
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteMemoryMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteMemory(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { HandlerGetMemoryResponse } from '../schemas/HandlerGetMemoryResponse';
|
|
3
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetMemoryQueryPathParams {
|
|
7
|
+
memoryId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetMemoryQueryHeaderParams {
|
|
10
|
+
'harness-account': string;
|
|
11
|
+
}
|
|
12
|
+
export type GetMemoryOkResponse = ResponseWithPagination<HandlerGetMemoryResponse>;
|
|
13
|
+
export type GetMemoryErrorResponse = UsererrorError;
|
|
14
|
+
export interface GetMemoryProps extends GetMemoryQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetMemoryQueryHeaderParams>, 'url'> {
|
|
15
|
+
}
|
|
16
|
+
export declare function getMemory(props: GetMemoryProps): Promise<GetMemoryOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves a specific memory by ID
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetMemoryQuery(props: GetMemoryProps, options?: Omit<UseQueryOptions<GetMemoryOkResponse, GetMemoryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMemoryOkResponse, UsererrorError>;
|
|
@@ -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 getMemory(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/chat/memory/${props.memoryId}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a specific memory by ID
|
|
11
|
+
*/
|
|
12
|
+
export function useGetMemoryQuery(props, options) {
|
|
13
|
+
return useQuery(['getMemory', props.memoryId], ({ signal }) => getMemory(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { HandlerListMemoriesResponse } from '../schemas/HandlerListMemoriesResponse';
|
|
3
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListMemoriesQueryQueryParams {
|
|
7
|
+
cursor?: string;
|
|
8
|
+
/**
|
|
9
|
+
* @default 20
|
|
10
|
+
*/
|
|
11
|
+
limit?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface ListMemoriesQueryHeaderParams {
|
|
14
|
+
'harness-account': string;
|
|
15
|
+
}
|
|
16
|
+
export type ListMemoriesOkResponse = ResponseWithPagination<HandlerListMemoriesResponse>;
|
|
17
|
+
export type ListMemoriesErrorResponse = UsererrorError;
|
|
18
|
+
export interface ListMemoriesProps extends Omit<FetcherOptions<ListMemoriesQueryQueryParams, unknown, ListMemoriesQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: ListMemoriesQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function listMemories(props: ListMemoriesProps): Promise<ListMemoriesOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Returns a list of memories for the authenticated user with cursor-based pagination
|
|
24
|
+
*/
|
|
25
|
+
export declare function useListMemoriesQuery(props: ListMemoriesProps, options?: Omit<UseQueryOptions<ListMemoriesOkResponse, ListMemoriesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListMemoriesOkResponse, UsererrorError>;
|
|
@@ -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 listMemories(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/chat/memory`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns a list of memories for the authenticated user with cursor-based pagination
|
|
11
|
+
*/
|
|
12
|
+
export function useListMemoriesQuery(props, options) {
|
|
13
|
+
return useQuery(['listMemories', props.queryParams], ({ signal }) => listMemories(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { HandlerGetMemoryResponse } from '../schemas/HandlerGetMemoryResponse';
|
|
3
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
|
+
import type { HandlerUpdateMemoryRequest } from '../schemas/HandlerUpdateMemoryRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpdateMemoryMutationPathParams {
|
|
8
|
+
memoryId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateMemoryMutationHeaderParams {
|
|
11
|
+
'harness-account': string;
|
|
12
|
+
}
|
|
13
|
+
export type UpdateMemoryRequestBody = HandlerUpdateMemoryRequest;
|
|
14
|
+
export type UpdateMemoryOkResponse = ResponseWithPagination<HandlerGetMemoryResponse>;
|
|
15
|
+
export type UpdateMemoryErrorResponse = UsererrorError;
|
|
16
|
+
export interface UpdateMemoryProps extends UpdateMemoryMutationPathParams, Omit<FetcherOptions<unknown, UpdateMemoryRequestBody, UpdateMemoryMutationHeaderParams>, 'url'> {
|
|
17
|
+
body: UpdateMemoryRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function updateMemory(props: UpdateMemoryProps): Promise<UpdateMemoryOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Updates an existing memory by ID
|
|
22
|
+
*/
|
|
23
|
+
export declare function useUpdateMemoryMutation(options?: Omit<UseMutationOptions<UpdateMemoryOkResponse, UpdateMemoryErrorResponse, UpdateMemoryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateMemoryOkResponse, UsererrorError, UpdateMemoryProps, unknown>;
|
|
@@ -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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function updateMemory(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/chat/memory/${props.memoryId}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Updates an existing memory by ID
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateMemoryMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateMemory(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -9,12 +9,16 @@ export type { CreateChatFeedbackErrorResponse, CreateChatFeedbackMutationQueryPa
|
|
|
9
9
|
export { createChatFeedback, useCreateChatFeedbackMutation, } from './hooks/useCreateChatFeedbackMutation';
|
|
10
10
|
export type { CreateEntityErrorResponse, CreateEntityOkResponse, CreateEntityProps, CreateEntityRequestBody, } from './hooks/useCreateEntityMutation';
|
|
11
11
|
export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMutation';
|
|
12
|
+
export type { CreateMemoryErrorResponse, CreateMemoryOkResponse, CreateMemoryProps, CreateMemoryRequestBody, } from './hooks/useCreateMemoryMutation';
|
|
13
|
+
export { createMemory, useCreateMemoryMutation } from './hooks/useCreateMemoryMutation';
|
|
12
14
|
export type { CreateRuleAccountErrorResponse, CreateRuleAccountOKResponse, CreateRuleAccountRequestBody, CreateRuleOrgErrorResponse, CreateRuleOrgOKResponse, CreateRuleOrgPathParams, CreateRuleOrgRequestBody, CreateRuleProjectErrorResponse, CreateRuleProjectOKResponse, CreateRuleProjectPathParams, CreateRuleProjectRequestBody, CreateRuleProps, } from './hooks/useCreateRuleMutation';
|
|
13
15
|
export { createRule, useCreateRuleMutation } from './hooks/useCreateRuleMutation';
|
|
14
16
|
export type { CreateUserRuleErrorResponse, CreateUserRuleOkResponse, CreateUserRuleProps, CreateUserRuleRequestBody, } from './hooks/useCreateUserRuleMutation';
|
|
15
17
|
export { createUserRule, useCreateUserRuleMutation } from './hooks/useCreateUserRuleMutation';
|
|
16
18
|
export type { DeleteChatSessionErrorResponse, DeleteChatSessionMutationPathParams, DeleteChatSessionOkResponse, DeleteChatSessionProps, } from './hooks/useDeleteChatSessionMutation';
|
|
17
19
|
export { deleteChatSession, useDeleteChatSessionMutation, } from './hooks/useDeleteChatSessionMutation';
|
|
20
|
+
export type { DeleteMemoryErrorResponse, DeleteMemoryMutationPathParams, DeleteMemoryOkResponse, DeleteMemoryProps, } from './hooks/useDeleteMemoryMutation';
|
|
21
|
+
export { deleteMemory, useDeleteMemoryMutation } from './hooks/useDeleteMemoryMutation';
|
|
18
22
|
export type { DeleteRuleAccountErrorResponse, DeleteRuleAccountOKResponse, DeleteRuleAccountPathParams, DeleteRuleOrgErrorResponse, DeleteRuleOrgOKResponse, DeleteRuleOrgPathParams, DeleteRuleProjectErrorResponse, DeleteRuleProjectOKResponse, DeleteRuleProjectPathParams, DeleteRuleProps, } from './hooks/useDeleteRuleMutation';
|
|
19
23
|
export { deleteRule, useDeleteRuleMutation } from './hooks/useDeleteRuleMutation';
|
|
20
24
|
export type { DeleteUserRuleErrorResponse, DeleteUserRuleMutationPathParams, DeleteUserRuleOkResponse, DeleteUserRuleProps, } from './hooks/useDeleteUserRuleMutation';
|
|
@@ -25,6 +29,8 @@ export type { GetChatSessionMessagesV2ErrorResponse, GetChatSessionMessagesV2OkR
|
|
|
25
29
|
export { getChatSessionMessagesV2, useGetChatSessionMessagesV2Query, } from './hooks/useGetChatSessionMessagesV2Query';
|
|
26
30
|
export type { GetChatSessionErrorResponse, GetChatSessionOkResponse, GetChatSessionProps, GetChatSessionQueryPathParams, GetChatSessionQueryQueryParams, } from './hooks/useGetChatSessionQuery';
|
|
27
31
|
export { getChatSession, useGetChatSessionQuery } from './hooks/useGetChatSessionQuery';
|
|
32
|
+
export type { GetMemoryErrorResponse, GetMemoryOkResponse, GetMemoryProps, GetMemoryQueryPathParams, } from './hooks/useGetMemoryQuery';
|
|
33
|
+
export { getMemory, useGetMemoryQuery } from './hooks/useGetMemoryQuery';
|
|
28
34
|
export type { GetReadyAttachmentErrorResponse, GetReadyAttachmentOkResponse, GetReadyAttachmentProps, GetReadyAttachmentQueryPathParams, GetReadyAttachmentQueryQueryParams, } from './hooks/useGetReadyAttachmentQuery';
|
|
29
35
|
export { getReadyAttachment, useGetReadyAttachmentQuery } from './hooks/useGetReadyAttachmentQuery';
|
|
30
36
|
export type { GetRuleCategoriesErrorResponse, GetRuleCategoriesOkResponse, GetRuleCategoriesProps, } from './hooks/useGetRuleCategoriesQuery';
|
|
@@ -39,6 +45,8 @@ export type { InitializeAttachmentErrorResponse, InitializeAttachmentMutationQue
|
|
|
39
45
|
export { initializeAttachment, useInitializeAttachmentMutation, } from './hooks/useInitializeAttachmentMutation';
|
|
40
46
|
export type { ListChatSessionsErrorResponse, ListChatSessionsOkResponse, ListChatSessionsProps, ListChatSessionsQueryQueryParams, } from './hooks/useListChatSessionsQuery';
|
|
41
47
|
export { listChatSessions, useListChatSessionsQuery } from './hooks/useListChatSessionsQuery';
|
|
48
|
+
export type { ListMemoriesErrorResponse, ListMemoriesOkResponse, ListMemoriesProps, ListMemoriesQueryQueryParams, } from './hooks/useListMemoriesQuery';
|
|
49
|
+
export { listMemories, useListMemoriesQuery } from './hooks/useListMemoriesQuery';
|
|
42
50
|
export type { ListRulesAccountErrorResponse, ListRulesAccountOKResponse, ListRulesAccountQueryParams, ListRulesOrgErrorResponse, ListRulesOrgOKResponse, ListRulesOrgPathParams, ListRulesOrgQueryParams, ListRulesProjectErrorResponse, ListRulesProjectOKResponse, ListRulesProjectPathParams, ListRulesProjectQueryParams, ListRulesProps, } from './hooks/useListRulesQuery';
|
|
43
51
|
export { listRules, useListRulesQuery } from './hooks/useListRulesQuery';
|
|
44
52
|
export type { ListUserRulesErrorResponse, ListUserRulesOkResponse, ListUserRulesProps, ListUserRulesQueryQueryParams, } from './hooks/useListUserRulesQuery';
|
|
@@ -47,6 +55,8 @@ export type { ListUserSettingsErrorResponse, ListUserSettingsOkResponse, ListUse
|
|
|
47
55
|
export { listUserSettings, useListUserSettingsQuery } from './hooks/useListUserSettingsQuery';
|
|
48
56
|
export type { UpdateChatSessionErrorResponse, UpdateChatSessionMutationPathParams, UpdateChatSessionOkResponse, UpdateChatSessionProps, UpdateChatSessionRequestBody, } from './hooks/useUpdateChatSessionMutation';
|
|
49
57
|
export { updateChatSession, useUpdateChatSessionMutation, } from './hooks/useUpdateChatSessionMutation';
|
|
58
|
+
export type { UpdateMemoryErrorResponse, UpdateMemoryMutationPathParams, UpdateMemoryOkResponse, UpdateMemoryProps, UpdateMemoryRequestBody, } from './hooks/useUpdateMemoryMutation';
|
|
59
|
+
export { updateMemory, useUpdateMemoryMutation } from './hooks/useUpdateMemoryMutation';
|
|
50
60
|
export type { UpdateRuleAccountErrorResponse, UpdateRuleAccountOKResponse, UpdateRuleAccountPathParams, UpdateRuleAccountRequestBody, UpdateRuleOrgErrorResponse, UpdateRuleOrgOKResponse, UpdateRuleOrgPathParams, UpdateRuleOrgRequestBody, UpdateRuleProjectErrorResponse, UpdateRuleProjectOKResponse, UpdateRuleProjectPathParams, UpdateRuleProjectRequestBody, UpdateRuleProps, } from './hooks/useUpdateRuleMutation';
|
|
51
61
|
export { updateRule, useUpdateRuleMutation } from './hooks/useUpdateRuleMutation';
|
|
52
62
|
export type { UpdateUserRuleErrorResponse, UpdateUserRuleMutationPathParams, UpdateUserRuleOkResponse, UpdateUserRuleProps, UpdateUserRuleRequestBody, } from './hooks/useUpdateUserRuleMutation';
|
|
@@ -63,7 +73,11 @@ export type { EnumMessageType } from './schemas/EnumMessageType';
|
|
|
63
73
|
export type { EnumRequestAction } from './schemas/EnumRequestAction';
|
|
64
74
|
export type { EnumRole } from './schemas/EnumRole';
|
|
65
75
|
export type { EnumSentiment } from './schemas/EnumSentiment';
|
|
76
|
+
export type { HandlerCreateMemoryRequest } from './schemas/HandlerCreateMemoryRequest';
|
|
77
|
+
export type { HandlerGetMemoryResponse } from './schemas/HandlerGetMemoryResponse';
|
|
66
78
|
export type { HandlerGetSessionResponse } from './schemas/HandlerGetSessionResponse';
|
|
79
|
+
export type { HandlerListMemoriesResponse } from './schemas/HandlerListMemoriesResponse';
|
|
80
|
+
export type { HandlerUpdateMemoryRequest } from './schemas/HandlerUpdateMemoryRequest';
|
|
67
81
|
export type { OpenapiCreateFeedbackRequest } from './schemas/OpenapiCreateFeedbackRequest';
|
|
68
82
|
export type { OpenapiRuleCategoriesResponse } from './schemas/OpenapiRuleCategoriesResponse';
|
|
69
83
|
export type { OpenapiUpdateSessionRequest } from './schemas/OpenapiUpdateSessionRequest';
|
|
@@ -85,6 +99,7 @@ export type { TypesConversation } from './schemas/TypesConversation';
|
|
|
85
99
|
export type { TypesEntityInfo } from './schemas/TypesEntityInfo';
|
|
86
100
|
export type { TypesEntityOperationResponse } from './schemas/TypesEntityOperationResponse';
|
|
87
101
|
export type { TypesHarnessEntity } from './schemas/TypesHarnessEntity';
|
|
102
|
+
export type { TypesMemory } from './schemas/TypesMemory';
|
|
88
103
|
export type { TypesMessage } from './schemas/TypesMessage';
|
|
89
104
|
export type { TypesResponseMessage } from './schemas/TypesResponseMessage';
|
|
90
105
|
export type { TypesRule } from './schemas/TypesRule';
|
|
@@ -93,6 +108,7 @@ export type { TypesRuleScope } from './schemas/TypesRuleScope';
|
|
|
93
108
|
export type { TypesRuleSource } from './schemas/TypesRuleSource';
|
|
94
109
|
export type { TypesRuleStatus } from './schemas/TypesRuleStatus';
|
|
95
110
|
export type { TypesSettingValueResponse } from './schemas/TypesSettingValueResponse';
|
|
111
|
+
export type { TypesType } from './schemas/TypesType';
|
|
96
112
|
export type { TypesUserSettingRequest } from './schemas/TypesUserSettingRequest';
|
|
97
113
|
export type { TypesUserSettingResponse } from './schemas/TypesUserSettingResponse';
|
|
98
114
|
export type { TypesUserSettingUpdateResponse } from './schemas/TypesUserSettingUpdateResponse';
|
|
@@ -3,14 +3,17 @@ export { chatV2, useChatV2Mutation } from './hooks/useChatV2Mutation';
|
|
|
3
3
|
export { completeAttachment, useCompleteAttachmentMutation, } from './hooks/useCompleteAttachmentMutation';
|
|
4
4
|
export { createChatFeedback, useCreateChatFeedbackMutation, } from './hooks/useCreateChatFeedbackMutation';
|
|
5
5
|
export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMutation';
|
|
6
|
+
export { createMemory, useCreateMemoryMutation } from './hooks/useCreateMemoryMutation';
|
|
6
7
|
export { createRule, useCreateRuleMutation } from './hooks/useCreateRuleMutation';
|
|
7
8
|
export { createUserRule, useCreateUserRuleMutation } from './hooks/useCreateUserRuleMutation';
|
|
8
9
|
export { deleteChatSession, useDeleteChatSessionMutation, } from './hooks/useDeleteChatSessionMutation';
|
|
10
|
+
export { deleteMemory, useDeleteMemoryMutation } from './hooks/useDeleteMemoryMutation';
|
|
9
11
|
export { deleteRule, useDeleteRuleMutation } from './hooks/useDeleteRuleMutation';
|
|
10
12
|
export { deleteUserRule, useDeleteUserRuleMutation } from './hooks/useDeleteUserRuleMutation';
|
|
11
13
|
export { getChatSessionMessages, useGetChatSessionMessagesQuery, } from './hooks/useGetChatSessionMessagesQuery';
|
|
12
14
|
export { getChatSessionMessagesV2, useGetChatSessionMessagesV2Query, } from './hooks/useGetChatSessionMessagesV2Query';
|
|
13
15
|
export { getChatSession, useGetChatSessionQuery } from './hooks/useGetChatSessionQuery';
|
|
16
|
+
export { getMemory, useGetMemoryQuery } from './hooks/useGetMemoryQuery';
|
|
14
17
|
export { getReadyAttachment, useGetReadyAttachmentQuery } from './hooks/useGetReadyAttachmentQuery';
|
|
15
18
|
export { getRuleCategories, useGetRuleCategoriesQuery } from './hooks/useGetRuleCategoriesQuery';
|
|
16
19
|
export { getRule, useGetRuleQuery } from './hooks/useGetRuleQuery';
|
|
@@ -18,10 +21,12 @@ export { getUserRule, useGetUserRuleQuery } from './hooks/useGetUserRuleQuery';
|
|
|
18
21
|
export { getUserSetting, useGetUserSettingQuery } from './hooks/useGetUserSettingQuery';
|
|
19
22
|
export { initializeAttachment, useInitializeAttachmentMutation, } from './hooks/useInitializeAttachmentMutation';
|
|
20
23
|
export { listChatSessions, useListChatSessionsQuery } from './hooks/useListChatSessionsQuery';
|
|
24
|
+
export { listMemories, useListMemoriesQuery } from './hooks/useListMemoriesQuery';
|
|
21
25
|
export { listRules, useListRulesQuery } from './hooks/useListRulesQuery';
|
|
22
26
|
export { listUserRules, useListUserRulesQuery } from './hooks/useListUserRulesQuery';
|
|
23
27
|
export { listUserSettings, useListUserSettingsQuery } from './hooks/useListUserSettingsQuery';
|
|
24
28
|
export { updateChatSession, useUpdateChatSessionMutation, } from './hooks/useUpdateChatSessionMutation';
|
|
29
|
+
export { updateMemory, useUpdateMemoryMutation } from './hooks/useUpdateMemoryMutation';
|
|
25
30
|
export { updateRule, useUpdateRuleMutation } from './hooks/useUpdateRuleMutation';
|
|
26
31
|
export { updateUserRule, useUpdateUserRuleMutation } from './hooks/useUpdateUserRuleMutation';
|
|
27
32
|
export { updateUserSettings, useUpdateUserSettingsMutation, } from './hooks/useUpdateUserSettingsMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TypesType } from '../schemas/TypesType';
|
|
2
|
+
export interface TypesMemory {
|
|
3
|
+
account_id?: string;
|
|
4
|
+
content?: string;
|
|
5
|
+
/**
|
|
6
|
+
* @format date-time
|
|
7
|
+
*/
|
|
8
|
+
created_at?: string;
|
|
9
|
+
document_id?: string;
|
|
10
|
+
embeddings?: number[];
|
|
11
|
+
id?: string;
|
|
12
|
+
org_id?: string;
|
|
13
|
+
project_id?: string;
|
|
14
|
+
tags?: {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
type?: TypesType;
|
|
18
|
+
/**
|
|
19
|
+
* @format date-time
|
|
20
|
+
*/
|
|
21
|
+
updated_at?: string;
|
|
22
|
+
user_id?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TypesType = string;
|
package/package.json
CHANGED