@harnessio/react-intelligence-service-client 0.12.0 → 0.13.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.
Files changed (31) hide show
  1. package/dist/intelligence-service/src/services/hooks/useCreateAccountRuleMutation.d.ts +2 -2
  2. package/dist/intelligence-service/src/services/hooks/useCreateChatFeedbackMutation.d.ts +4 -4
  3. package/dist/intelligence-service/src/services/hooks/useCreateChatFeedbackMutation.js +1 -1
  4. package/dist/intelligence-service/src/services/hooks/useCreateOrgRuleMutation.d.ts +2 -2
  5. package/dist/intelligence-service/src/services/hooks/useCreateProjectRuleMutation.d.ts +2 -2
  6. package/dist/intelligence-service/src/services/hooks/useCreateUserRuleMutation.d.ts +2 -2
  7. package/dist/intelligence-service/src/services/hooks/useDeleteRuleMutation.d.ts +4 -1
  8. package/dist/intelligence-service/src/services/hooks/useGetRuleQuery.d.ts +4 -1
  9. package/dist/intelligence-service/src/services/hooks/useListChatSessionsQuery.d.ts +0 -1
  10. package/dist/intelligence-service/src/services/hooks/useListOrgRulesQuery.d.ts +2 -0
  11. package/dist/intelligence-service/src/services/hooks/useListProjectRulesQuery.d.ts +2 -0
  12. package/dist/intelligence-service/src/services/hooks/useListRulesQuery.d.ts +9 -1
  13. package/dist/intelligence-service/src/services/hooks/useListUserRulesQuery.d.ts +2 -0
  14. package/dist/intelligence-service/src/services/hooks/useUpdateChatSessionMutation.d.ts +23 -0
  15. package/dist/intelligence-service/src/services/hooks/useUpdateChatSessionMutation.js +14 -0
  16. package/dist/intelligence-service/src/services/hooks/useUpdateRuleMutation.d.ts +4 -1
  17. package/dist/intelligence-service/src/services/index.d.ts +5 -1
  18. package/dist/intelligence-service/src/services/index.js +1 -0
  19. package/dist/intelligence-service/src/services/schemas/ControllerCreateRuleInput.d.ts +9 -0
  20. package/dist/intelligence-service/src/services/schemas/ControllerRuleInput.d.ts +0 -3
  21. package/dist/intelligence-service/src/services/schemas/EnumFeedbackReason.d.ts +1 -1
  22. package/dist/intelligence-service/src/services/schemas/EnumSentiment.d.ts +1 -1
  23. package/dist/intelligence-service/src/services/schemas/OpenapiCreateFeedbackRequest.d.ts +11 -0
  24. package/dist/intelligence-service/src/services/schemas/OpenapiCreateFeedbackRequest.js +1 -0
  25. package/dist/intelligence-service/src/services/schemas/OpenapiUpdateSessionRequest.d.ts +3 -0
  26. package/dist/intelligence-service/src/services/schemas/OpenapiUpdateSessionRequest.js +4 -0
  27. package/dist/intelligence-service/src/services/schemas/TypesChatSession.d.ts +1 -0
  28. package/dist/intelligence-service/src/services/schemas/TypesRule.d.ts +1 -1
  29. package/package.json +1 -1
  30. package/dist/intelligence-service/src/services/schemas/TypesChatFeedbackInput.d.ts +0 -23
  31. /package/dist/intelligence-service/src/services/schemas/{TypesChatFeedbackInput.js → ControllerCreateRuleInput.js} +0 -0
@@ -1,13 +1,13 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { TypesRule } from '../schemas/TypesRule';
3
3
  import type { UsererrorError } from '../schemas/UsererrorError';
4
- import type { ControllerRuleInput } from '../schemas/ControllerRuleInput';
4
+ import type { ControllerCreateRuleInput } from '../schemas/ControllerCreateRuleInput';
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
7
  export interface CreateAccountRuleMutationHeaderParams {
8
8
  'harness-account': string;
9
9
  }
10
- export type CreateAccountRuleRequestBody = ControllerRuleInput;
10
+ export type CreateAccountRuleRequestBody = ControllerCreateRuleInput;
11
11
  export type CreateAccountRuleOkResponse = ResponseWithPagination<TypesRule>;
12
12
  export type CreateAccountRuleErrorResponse = UsererrorError;
13
13
  export interface CreateAccountRuleProps extends Omit<FetcherOptions<unknown, CreateAccountRuleRequestBody, CreateAccountRuleMutationHeaderParams>, 'url'> {
@@ -1,6 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { UsererrorError } from '../schemas/UsererrorError';
3
- import type { TypesChatFeedbackInput } from '../schemas/TypesChatFeedbackInput';
3
+ import type { OpenapiCreateFeedbackRequest } from '../schemas/OpenapiCreateFeedbackRequest';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface CreateChatFeedbackMutationQueryParams {
@@ -10,9 +10,9 @@ export interface CreateChatFeedbackMutationQueryParams {
10
10
  export interface CreateChatFeedbackMutationHeaderParams {
11
11
  'harness-account': string;
12
12
  }
13
- export type CreateChatFeedbackRequestBody = TypesChatFeedbackInput;
13
+ export type CreateChatFeedbackRequestBody = OpenapiCreateFeedbackRequest;
14
14
  export type CreateChatFeedbackOkResponse = ResponseWithPagination<{
15
- message?: string;
15
+ [key: string]: string;
16
16
  }>;
17
17
  export type CreateChatFeedbackErrorResponse = UsererrorError;
18
18
  export interface CreateChatFeedbackProps extends Omit<FetcherOptions<CreateChatFeedbackMutationQueryParams, CreateChatFeedbackRequestBody, CreateChatFeedbackMutationHeaderParams>, 'url'> {
@@ -21,6 +21,6 @@ export interface CreateChatFeedbackProps extends Omit<FetcherOptions<CreateChatF
21
21
  }
22
22
  export declare function createChatFeedback(props: CreateChatFeedbackProps): Promise<CreateChatFeedbackOkResponse>;
23
23
  /**
24
- * Submit feedback for a chat interaction
24
+ * Submits feedback for a chat interaction
25
25
  */
26
26
  export declare function useCreateChatFeedbackMutation(options?: Omit<UseMutationOptions<CreateChatFeedbackOkResponse, CreateChatFeedbackErrorResponse, CreateChatFeedbackProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateChatFeedbackOkResponse, UsererrorError, CreateChatFeedbackProps, unknown>;
@@ -7,7 +7,7 @@ export function createChatFeedback(props) {
7
7
  return fetcher(Object.assign({ url: `/api/v1/chat/feedback`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Submit feedback for a chat interaction
10
+ * Submits feedback for a chat interaction
11
11
  */
12
12
  export function useCreateChatFeedbackMutation(options) {
13
13
  return useMutation((mutateProps) => createChatFeedback(mutateProps), options);
@@ -1,7 +1,7 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { TypesRule } from '../schemas/TypesRule';
3
3
  import type { UsererrorError } from '../schemas/UsererrorError';
4
- import type { ControllerRuleInput } from '../schemas/ControllerRuleInput';
4
+ import type { ControllerCreateRuleInput } from '../schemas/ControllerCreateRuleInput';
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
7
  export interface CreateOrgRuleMutationPathParams {
@@ -10,7 +10,7 @@ export interface CreateOrgRuleMutationPathParams {
10
10
  export interface CreateOrgRuleMutationHeaderParams {
11
11
  'harness-account': string;
12
12
  }
13
- export type CreateOrgRuleRequestBody = ControllerRuleInput;
13
+ export type CreateOrgRuleRequestBody = ControllerCreateRuleInput;
14
14
  export type CreateOrgRuleOkResponse = ResponseWithPagination<TypesRule>;
15
15
  export type CreateOrgRuleErrorResponse = UsererrorError;
16
16
  export interface CreateOrgRuleProps extends CreateOrgRuleMutationPathParams, Omit<FetcherOptions<unknown, CreateOrgRuleRequestBody, CreateOrgRuleMutationHeaderParams>, 'url'> {
@@ -1,7 +1,7 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { TypesRule } from '../schemas/TypesRule';
3
3
  import type { UsererrorError } from '../schemas/UsererrorError';
4
- import type { ControllerRuleInput } from '../schemas/ControllerRuleInput';
4
+ import type { ControllerCreateRuleInput } from '../schemas/ControllerCreateRuleInput';
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
7
  export interface CreateProjectRuleMutationPathParams {
@@ -11,7 +11,7 @@ export interface CreateProjectRuleMutationPathParams {
11
11
  export interface CreateProjectRuleMutationHeaderParams {
12
12
  'harness-account': string;
13
13
  }
14
- export type CreateProjectRuleRequestBody = ControllerRuleInput;
14
+ export type CreateProjectRuleRequestBody = ControllerCreateRuleInput;
15
15
  export type CreateProjectRuleOkResponse = ResponseWithPagination<TypesRule>;
16
16
  export type CreateProjectRuleErrorResponse = UsererrorError;
17
17
  export interface CreateProjectRuleProps extends CreateProjectRuleMutationPathParams, Omit<FetcherOptions<unknown, CreateProjectRuleRequestBody, CreateProjectRuleMutationHeaderParams>, 'url'> {
@@ -1,13 +1,13 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { TypesRule } from '../schemas/TypesRule';
3
3
  import type { UsererrorError } from '../schemas/UsererrorError';
4
- import type { ControllerRuleInput } from '../schemas/ControllerRuleInput';
4
+ import type { ControllerCreateRuleInput } from '../schemas/ControllerCreateRuleInput';
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
7
  export interface CreateUserRuleMutationHeaderParams {
8
8
  'harness-account': string;
9
9
  }
10
- export type CreateUserRuleRequestBody = ControllerRuleInput;
10
+ export type CreateUserRuleRequestBody = ControllerCreateRuleInput;
11
11
  export type CreateUserRuleOkResponse = ResponseWithPagination<TypesRule>;
12
12
  export type CreateUserRuleErrorResponse = UsererrorError;
13
13
  export interface CreateUserRuleProps extends Omit<FetcherOptions<unknown, CreateUserRuleRequestBody, CreateUserRuleMutationHeaderParams>, 'url'> {
@@ -5,9 +5,12 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface DeleteRuleMutationPathParams {
6
6
  rule_id: string;
7
7
  }
8
+ export interface DeleteRuleMutationHeaderParams {
9
+ 'harness-account': string;
10
+ }
8
11
  export type DeleteRuleOkResponse = ResponseWithPagination<unknown>;
9
12
  export type DeleteRuleErrorResponse = UsererrorError;
10
- export interface DeleteRuleProps extends DeleteRuleMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
13
+ export interface DeleteRuleProps extends DeleteRuleMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteRuleMutationHeaderParams>, 'url'> {
11
14
  }
12
15
  export declare function deleteRule(props: DeleteRuleProps): Promise<DeleteRuleOkResponse>;
13
16
  /**
@@ -6,9 +6,12 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface GetRuleQueryPathParams {
7
7
  rule_id: string;
8
8
  }
9
+ export interface GetRuleQueryHeaderParams {
10
+ 'harness-account': string;
11
+ }
9
12
  export type GetRuleOkResponse = ResponseWithPagination<TypesRule>;
10
13
  export type GetRuleErrorResponse = UsererrorError;
11
- export interface GetRuleProps extends GetRuleQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
14
+ export interface GetRuleProps extends GetRuleQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetRuleQueryHeaderParams>, 'url'> {
12
15
  }
13
16
  export declare function getRule(props: GetRuleProps): Promise<GetRuleOkResponse>;
14
17
  /**
@@ -15,7 +15,6 @@ export interface ListChatSessionsQueryQueryParams {
15
15
  * @default 20
16
16
  */
17
17
  size?: number;
18
- includev2messages?: boolean;
19
18
  }
20
19
  export interface ListChatSessionsQueryHeaderParams {
21
20
  'harness-account': string;
@@ -11,6 +11,8 @@ export interface ListOrgRulesQueryQueryParams {
11
11
  scope?: string;
12
12
  status?: string;
13
13
  source?: string;
14
+ page?: string;
15
+ limit?: string;
14
16
  }
15
17
  export interface ListOrgRulesQueryHeaderParams {
16
18
  'harness-account': string;
@@ -12,6 +12,8 @@ export interface ListProjectRulesQueryQueryParams {
12
12
  scope?: string;
13
13
  status?: string;
14
14
  source?: string;
15
+ page?: string;
16
+ limit?: string;
15
17
  }
16
18
  export interface ListProjectRulesQueryHeaderParams {
17
19
  'harness-account': string;
@@ -4,11 +4,19 @@ import type { UsererrorError } from '../schemas/UsererrorError';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface ListRulesQueryQueryParams {
7
+ category?: string;
8
+ scope?: string;
9
+ status?: string;
7
10
  source?: string;
11
+ page?: string;
12
+ limit?: string;
13
+ }
14
+ export interface ListRulesQueryHeaderParams {
15
+ 'harness-account': string;
8
16
  }
9
17
  export type ListRulesOkResponse = ResponseWithPagination<TypesRule[]>;
10
18
  export type ListRulesErrorResponse = UsererrorError;
11
- export interface ListRulesProps extends Omit<FetcherOptions<ListRulesQueryQueryParams, unknown>, 'url'> {
19
+ export interface ListRulesProps extends Omit<FetcherOptions<ListRulesQueryQueryParams, unknown, ListRulesQueryHeaderParams>, 'url'> {
12
20
  queryParams: ListRulesQueryQueryParams;
13
21
  }
14
22
  export declare function listRules(props: ListRulesProps): Promise<ListRulesOkResponse>;
@@ -8,6 +8,8 @@ export interface ListUserRulesQueryQueryParams {
8
8
  scope?: string;
9
9
  status?: string;
10
10
  source?: string;
11
+ page?: string;
12
+ limit?: string;
11
13
  }
12
14
  export interface ListUserRulesQueryHeaderParams {
13
15
  'harness-account': string;
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { TypesChatSession } from '../schemas/TypesChatSession';
3
+ import type { UsererrorError } from '../schemas/UsererrorError';
4
+ import type { OpenapiUpdateSessionRequest } from '../schemas/OpenapiUpdateSessionRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface UpdateChatSessionMutationPathParams {
8
+ sessionId: string;
9
+ }
10
+ export interface UpdateChatSessionMutationHeaderParams {
11
+ 'harness-account': string;
12
+ }
13
+ export type UpdateChatSessionRequestBody = OpenapiUpdateSessionRequest;
14
+ export type UpdateChatSessionOkResponse = ResponseWithPagination<TypesChatSession>;
15
+ export type UpdateChatSessionErrorResponse = UsererrorError;
16
+ export interface UpdateChatSessionProps extends UpdateChatSessionMutationPathParams, Omit<FetcherOptions<unknown, UpdateChatSessionRequestBody, UpdateChatSessionMutationHeaderParams>, 'url'> {
17
+ body: UpdateChatSessionRequestBody;
18
+ }
19
+ export declare function updateChatSession(props: UpdateChatSessionProps): Promise<UpdateChatSessionOkResponse>;
20
+ /**
21
+ * Updates chat session metadata (e.g., title)
22
+ */
23
+ export declare function useUpdateChatSessionMutation(options?: Omit<UseMutationOptions<UpdateChatSessionOkResponse, UpdateChatSessionErrorResponse, UpdateChatSessionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateChatSessionOkResponse, UsererrorError, UpdateChatSessionProps, 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 updateChatSession(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/chat/sessions/${props.sessionId}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Updates chat session metadata (e.g., title)
11
+ */
12
+ export function useUpdateChatSessionMutation(options) {
13
+ return useMutation((mutateProps) => updateChatSession(mutateProps), options);
14
+ }
@@ -7,10 +7,13 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
7
7
  export interface UpdateRuleMutationPathParams {
8
8
  rule_id: string;
9
9
  }
10
+ export interface UpdateRuleMutationHeaderParams {
11
+ 'harness-account': string;
12
+ }
10
13
  export type UpdateRuleRequestBody = ControllerRuleInput;
11
14
  export type UpdateRuleOkResponse = ResponseWithPagination<TypesRule>;
12
15
  export type UpdateRuleErrorResponse = UsererrorError;
13
- export interface UpdateRuleProps extends UpdateRuleMutationPathParams, Omit<FetcherOptions<unknown, UpdateRuleRequestBody>, 'url'> {
16
+ export interface UpdateRuleProps extends UpdateRuleMutationPathParams, Omit<FetcherOptions<unknown, UpdateRuleRequestBody, UpdateRuleMutationHeaderParams>, 'url'> {
14
17
  body: UpdateRuleRequestBody;
15
18
  }
16
19
  export declare function updateRule(props: UpdateRuleProps): Promise<UpdateRuleOkResponse>;
@@ -57,6 +57,8 @@ export type { ListRulesErrorResponse, ListRulesOkResponse, ListRulesProps, ListR
57
57
  export { listRules, useListRulesQuery } from './hooks/useListRulesQuery';
58
58
  export type { ListUserRulesErrorResponse, ListUserRulesOkResponse, ListUserRulesProps, ListUserRulesQueryQueryParams, } from './hooks/useListUserRulesQuery';
59
59
  export { listUserRules, useListUserRulesQuery } from './hooks/useListUserRulesQuery';
60
+ export type { UpdateChatSessionErrorResponse, UpdateChatSessionMutationPathParams, UpdateChatSessionOkResponse, UpdateChatSessionProps, UpdateChatSessionRequestBody, } from './hooks/useUpdateChatSessionMutation';
61
+ export { updateChatSession, useUpdateChatSessionMutation, } from './hooks/useUpdateChatSessionMutation';
60
62
  export type { UpdateOrgRuleErrorResponse, UpdateOrgRuleMutationPathParams, UpdateOrgRuleOkResponse, UpdateOrgRuleProps, UpdateOrgRuleRequestBody, } from './hooks/useUpdateOrgRuleMutation';
61
63
  export { updateOrgRule, useUpdateOrgRuleMutation } from './hooks/useUpdateOrgRuleMutation';
62
64
  export type { UpdateProjectRuleErrorResponse, UpdateProjectRuleMutationPathParams, UpdateProjectRuleOkResponse, UpdateProjectRuleProps, UpdateProjectRuleRequestBody, } from './hooks/useUpdateProjectRuleMutation';
@@ -65,6 +67,7 @@ export type { UpdateRuleErrorResponse, UpdateRuleMutationPathParams, UpdateRuleO
65
67
  export { updateRule, useUpdateRuleMutation } from './hooks/useUpdateRuleMutation';
66
68
  export type { UpdateUserRuleErrorResponse, UpdateUserRuleMutationPathParams, UpdateUserRuleOkResponse, UpdateUserRuleProps, UpdateUserRuleRequestBody, } from './hooks/useUpdateUserRuleMutation';
67
69
  export { updateUserRule, useUpdateUserRuleMutation } from './hooks/useUpdateUserRuleMutation';
70
+ export type { ControllerCreateRuleInput } from './schemas/ControllerCreateRuleInput';
68
71
  export type { ControllerRuleInput } from './schemas/ControllerRuleInput';
69
72
  export type { EnumAction } from './schemas/EnumAction';
70
73
  export type { EnumAgentMode } from './schemas/EnumAgentMode';
@@ -75,7 +78,9 @@ export type { EnumRequestAction } from './schemas/EnumRequestAction';
75
78
  export type { EnumRole } from './schemas/EnumRole';
76
79
  export type { EnumSentiment } from './schemas/EnumSentiment';
77
80
  export type { HandlerGetSessionResponse } from './schemas/HandlerGetSessionResponse';
81
+ export type { OpenapiCreateFeedbackRequest } from './schemas/OpenapiCreateFeedbackRequest';
78
82
  export type { OpenapiRuleCategoriesResponse } from './schemas/OpenapiRuleCategoriesResponse';
83
+ export type { OpenapiUpdateSessionRequest } from './schemas/OpenapiUpdateSessionRequest';
79
84
  export type { TypesAttachmentCompleteRequest } from './schemas/TypesAttachmentCompleteRequest';
80
85
  export type { TypesAttachmentInitRequest } from './schemas/TypesAttachmentInitRequest';
81
86
  export type { TypesAttachmentInitResponse } from './schemas/TypesAttachmentInitResponse';
@@ -83,7 +88,6 @@ export type { TypesAttachmentReadyResponse } from './schemas/TypesAttachmentRead
83
88
  export type { TypesAttachmentRef } from './schemas/TypesAttachmentRef';
84
89
  export type { TypesAttachmentStatus } from './schemas/TypesAttachmentStatus';
85
90
  export type { TypesChat } from './schemas/TypesChat';
86
- export type { TypesChatFeedbackInput } from './schemas/TypesChatFeedbackInput';
87
91
  export type { TypesChatMessage } from './schemas/TypesChatMessage';
88
92
  export type { TypesChatMessageV2 } from './schemas/TypesChatMessageV2';
89
93
  export type { TypesChatOutput } from './schemas/TypesChatOutput';
@@ -27,6 +27,7 @@ export { listOrgRules, useListOrgRulesQuery } from './hooks/useListOrgRulesQuery
27
27
  export { listProjectRules, useListProjectRulesQuery } from './hooks/useListProjectRulesQuery';
28
28
  export { listRules, useListRulesQuery } from './hooks/useListRulesQuery';
29
29
  export { listUserRules, useListUserRulesQuery } from './hooks/useListUserRulesQuery';
30
+ export { updateChatSession, useUpdateChatSessionMutation, } from './hooks/useUpdateChatSessionMutation';
30
31
  export { updateOrgRule, useUpdateOrgRuleMutation } from './hooks/useUpdateOrgRuleMutation';
31
32
  export { updateProjectRule, useUpdateProjectRuleMutation, } from './hooks/useUpdateProjectRuleMutation';
32
33
  export { updateRule, useUpdateRuleMutation } from './hooks/useUpdateRuleMutation';
@@ -0,0 +1,9 @@
1
+ import type { TypesRuleScope } from '../schemas/TypesRuleScope';
2
+ import type { TypesRuleSource } from '../schemas/TypesRuleSource';
3
+ import type { TypesRuleStatus } from '../schemas/TypesRuleStatus';
4
+ export interface ControllerCreateRuleInput {
5
+ content: string;
6
+ scope?: TypesRuleScope;
7
+ source?: TypesRuleSource;
8
+ status?: TypesRuleStatus;
9
+ }
@@ -1,12 +1,9 @@
1
- import type { TypesRuleCategory } from '../schemas/TypesRuleCategory';
2
1
  import type { TypesRuleScope } from '../schemas/TypesRuleScope';
3
2
  import type { TypesRuleSource } from '../schemas/TypesRuleSource';
4
3
  import type { TypesRuleStatus } from '../schemas/TypesRuleStatus';
5
4
  export interface ControllerRuleInput {
6
- category?: TypesRuleCategory;
7
5
  content?: string;
8
6
  name?: string;
9
- rule_id?: string;
10
7
  scope?: TypesRuleScope;
11
8
  source?: TypesRuleSource;
12
9
  status?: TypesRuleStatus;
@@ -1 +1 @@
1
- export type EnumFeedbackReason = 'did_not_fully_follow_instructions' | 'incorrect_yaml' | 'performance_issues' | 'response_not_accurate' | 'response_was_not_helpful';
1
+ export type EnumFeedbackReason = string;
@@ -1 +1 @@
1
- export type EnumSentiment = 'negative' | 'positive';
1
+ export type EnumSentiment = string;
@@ -0,0 +1,11 @@
1
+ import type { UuidUuid } from '../schemas/UuidUuid';
2
+ import type { EnumFeedbackReason } from '../schemas/EnumFeedbackReason';
3
+ import type { EnumSentiment } from '../schemas/EnumSentiment';
4
+ export interface OpenapiCreateFeedbackRequest {
5
+ comment?: string;
6
+ conversation_id?: UuidUuid;
7
+ interaction_id?: UuidUuid;
8
+ reasons?: EnumFeedbackReason[];
9
+ sentiment?: EnumSentiment;
10
+ session_id?: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ export interface OpenapiUpdateSessionRequest {
2
+ title?: string;
3
+ }
@@ -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 {};
@@ -18,4 +18,5 @@ export interface TypesChatSession {
18
18
  */
19
19
  updated_at?: string;
20
20
  user_id?: string;
21
+ version?: string;
21
22
  }
@@ -4,7 +4,7 @@ import type { TypesRuleSource } from '../schemas/TypesRuleSource';
4
4
  import type { TypesRuleStatus } from '../schemas/TypesRuleStatus';
5
5
  export interface TypesRule {
6
6
  account_id?: string;
7
- category?: TypesRuleCategory;
7
+ categories?: TypesRuleCategory[] | null;
8
8
  content?: string;
9
9
  /**
10
10
  * @format date-time
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-intelligence-service-client",
3
- "version": "0.12.0",
3
+ "version": "0.13.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,23 +0,0 @@
1
- import type { UuidUuid } from '../schemas/UuidUuid';
2
- import type { EnumFeedbackReason } from '../schemas/EnumFeedbackReason';
3
- import type { EnumSentiment } from '../schemas/EnumSentiment';
4
- export interface TypesChatFeedbackInput {
5
- /**
6
- * Optional comment providing additional feedback details
7
- */
8
- comment?: string;
9
- conversation_id: UuidUuid;
10
- interaction_id: UuidUuid;
11
- /**
12
- * List of reasons for the feedback (required for negative sentiment)
13
- */
14
- reasons?: EnumFeedbackReason[];
15
- /**
16
- * User sentiment (positive or negative)
17
- */
18
- sentiment: EnumSentiment;
19
- /**
20
- * Session identifier
21
- */
22
- session_id: string;
23
- }