@harnessio/react-intelligence-service-client 0.6.0 → 0.7.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/useCreateAccountRuleMutation.d.ts +20 -0
- package/dist/intelligence-service/src/services/hooks/useCreateAccountRuleMutation.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useCreateEntityMutation.d.ts +2 -2
- package/dist/intelligence-service/src/services/hooks/useCreateOrgRuleMutation.d.ts +23 -0
- package/dist/intelligence-service/src/services/hooks/useCreateOrgRuleMutation.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useCreateProjectRuleMutation.d.ts +24 -0
- package/dist/intelligence-service/src/services/hooks/useCreateProjectRuleMutation.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useCreateUserRuleMutation.d.ts +20 -0
- package/dist/intelligence-service/src/services/hooks/useCreateUserRuleMutation.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useDeleteChatSessionMutation.d.ts +21 -0
- package/dist/intelligence-service/src/services/hooks/useDeleteChatSessionMutation.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useDeleteOrgRuleMutation.d.ts +20 -0
- package/dist/intelligence-service/src/services/hooks/useDeleteOrgRuleMutation.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useDeleteProjectRuleMutation.d.ts +21 -0
- package/dist/intelligence-service/src/services/hooks/useDeleteProjectRuleMutation.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useDeleteRuleMutation.d.ts +16 -0
- package/dist/intelligence-service/src/services/hooks/useDeleteRuleMutation.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useDeleteUserRuleMutation.d.ts +19 -0
- package/dist/intelligence-service/src/services/hooks/useDeleteUserRuleMutation.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useGetChatSessionMessagesQuery.d.ts +31 -0
- package/dist/intelligence-service/src/services/hooks/useGetChatSessionMessagesQuery.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useGetChatSessionQuery.d.ts +28 -0
- package/dist/intelligence-service/src/services/hooks/useGetChatSessionQuery.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useGetOrgRuleQuery.d.ts +21 -0
- package/dist/intelligence-service/src/services/hooks/useGetOrgRuleQuery.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useGetProjectRuleQuery.d.ts +22 -0
- package/dist/intelligence-service/src/services/hooks/useGetProjectRuleQuery.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useGetRuleCategoriesQuery.d.ts +13 -0
- package/dist/intelligence-service/src/services/hooks/useGetRuleCategoriesQuery.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useGetRuleQuery.d.ts +17 -0
- package/dist/intelligence-service/src/services/hooks/useGetRuleQuery.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useGetUserRuleQuery.d.ts +20 -0
- package/dist/intelligence-service/src/services/hooks/useGetUserRuleQuery.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useListChatSessionsQuery.d.ts +30 -0
- package/dist/intelligence-service/src/services/hooks/useListChatSessionsQuery.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useListOrgRulesQuery.d.ts +27 -0
- package/dist/intelligence-service/src/services/hooks/useListOrgRulesQuery.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useListProjectRulesQuery.d.ts +28 -0
- package/dist/intelligence-service/src/services/hooks/useListProjectRulesQuery.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useListRulesQuery.d.ts +18 -0
- package/dist/intelligence-service/src/services/hooks/useListRulesQuery.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useListUserRulesQuery.d.ts +24 -0
- package/dist/intelligence-service/src/services/hooks/useListUserRulesQuery.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useUpdateOrgRuleMutation.d.ts +24 -0
- package/dist/intelligence-service/src/services/hooks/useUpdateOrgRuleMutation.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useUpdateProjectRuleMutation.d.ts +25 -0
- package/dist/intelligence-service/src/services/hooks/useUpdateProjectRuleMutation.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useUpdateRuleMutation.d.ts +20 -0
- package/dist/intelligence-service/src/services/hooks/useUpdateRuleMutation.js +14 -0
- package/dist/intelligence-service/src/services/hooks/useUpdateUserRuleMutation.d.ts +23 -0
- package/dist/intelligence-service/src/services/hooks/useUpdateUserRuleMutation.js +14 -0
- package/dist/intelligence-service/src/services/index.d.ts +61 -1
- package/dist/intelligence-service/src/services/index.js +25 -0
- package/dist/intelligence-service/src/services/schemas/ControllerRuleInput.d.ts +13 -0
- package/dist/intelligence-service/src/services/schemas/EnumAgentMode.d.ts +1 -0
- package/dist/intelligence-service/src/services/schemas/EnumAgentMode.js +4 -0
- package/dist/intelligence-service/src/services/schemas/HandlerGetSessionResponse.d.ts +8 -0
- package/dist/intelligence-service/src/services/schemas/HandlerGetSessionResponse.js +1 -0
- package/dist/intelligence-service/src/services/schemas/OpenapiRuleCategoriesResponse.d.ts +3 -0
- package/dist/intelligence-service/src/services/schemas/OpenapiRuleCategoriesResponse.js +4 -0
- package/dist/intelligence-service/src/services/schemas/TypesChat.d.ts +2 -0
- package/dist/intelligence-service/src/services/schemas/TypesChatMessage.d.ts +21 -0
- package/dist/intelligence-service/src/services/schemas/TypesChatMessage.js +1 -0
- package/dist/intelligence-service/src/services/schemas/TypesChatSession.d.ts +21 -0
- package/dist/intelligence-service/src/services/schemas/TypesChatSession.js +4 -0
- package/dist/intelligence-service/src/services/schemas/TypesRule.d.ts +26 -0
- package/dist/intelligence-service/src/services/schemas/TypesRule.js +1 -0
- package/dist/intelligence-service/src/services/schemas/TypesRuleCategory.d.ts +1 -0
- package/dist/intelligence-service/src/services/schemas/TypesRuleCategory.js +4 -0
- package/dist/intelligence-service/src/services/schemas/TypesRuleScope.d.ts +1 -0
- package/dist/intelligence-service/src/services/schemas/TypesRuleScope.js +4 -0
- package/dist/intelligence-service/src/services/schemas/TypesRuleSource.d.ts +1 -0
- package/dist/intelligence-service/src/services/schemas/TypesRuleSource.js +4 -0
- package/dist/intelligence-service/src/services/schemas/TypesRuleStatus.d.ts +1 -0
- package/dist/intelligence-service/src/services/schemas/TypesRuleStatus.js +4 -0
- package/package.json +1 -1
- package/dist/intelligence-service/src/services/schemas/TypesEntityOperationResponse.d.ts +0 -10
- /package/dist/intelligence-service/src/services/schemas/{TypesEntityOperationResponse.js → ControllerRuleInput.js} +0 -0
|
@@ -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 getUserRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/me/rules/${props.rule_id}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get a user-specific rule by ID
|
|
11
|
+
*/
|
|
12
|
+
export function useGetUserRuleQuery(props, options) {
|
|
13
|
+
return useQuery(['getUserRule', props.rule_id], ({ signal }) => getUserRule(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesChatSession } from '../schemas/TypesChatSession';
|
|
3
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListChatSessionsQueryQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @default 0
|
|
11
|
+
*/
|
|
12
|
+
page?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @default 20
|
|
15
|
+
*/
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface ListChatSessionsQueryHeaderParams {
|
|
19
|
+
'harness-account': string;
|
|
20
|
+
}
|
|
21
|
+
export type ListChatSessionsOkResponse = ResponseWithPagination<TypesChatSession[]>;
|
|
22
|
+
export type ListChatSessionsErrorResponse = UsererrorError;
|
|
23
|
+
export interface ListChatSessionsProps extends Omit<FetcherOptions<ListChatSessionsQueryQueryParams, unknown, ListChatSessionsQueryHeaderParams>, 'url'> {
|
|
24
|
+
queryParams: ListChatSessionsQueryQueryParams;
|
|
25
|
+
}
|
|
26
|
+
export declare function listChatSessions(props: ListChatSessionsProps): Promise<ListChatSessionsOkResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Returns a list of chat sessions for the authenticated user with optional filtering
|
|
29
|
+
*/
|
|
30
|
+
export declare function useListChatSessionsQuery(props: ListChatSessionsProps, options?: Omit<UseQueryOptions<ListChatSessionsOkResponse, ListChatSessionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListChatSessionsOkResponse, 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 listChatSessions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/chat/sessions`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns a list of chat sessions for the authenticated user with optional filtering
|
|
11
|
+
*/
|
|
12
|
+
export function useListChatSessionsQuery(props, options) {
|
|
13
|
+
return useQuery(['listChatSessions', props.queryParams], ({ signal }) => listChatSessions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesRule } from '../schemas/TypesRule';
|
|
3
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListOrgRulesQueryPathParams {
|
|
7
|
+
org_id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ListOrgRulesQueryQueryParams {
|
|
10
|
+
category?: string;
|
|
11
|
+
scope?: string;
|
|
12
|
+
status?: string;
|
|
13
|
+
source?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ListOrgRulesQueryHeaderParams {
|
|
16
|
+
'harness-account': string;
|
|
17
|
+
}
|
|
18
|
+
export type ListOrgRulesOkResponse = ResponseWithPagination<TypesRule[]>;
|
|
19
|
+
export type ListOrgRulesErrorResponse = UsererrorError;
|
|
20
|
+
export interface ListOrgRulesProps extends ListOrgRulesQueryPathParams, Omit<FetcherOptions<ListOrgRulesQueryQueryParams, unknown, ListOrgRulesQueryHeaderParams>, 'url'> {
|
|
21
|
+
queryParams: ListOrgRulesQueryQueryParams;
|
|
22
|
+
}
|
|
23
|
+
export declare function listOrgRules(props: ListOrgRulesProps): Promise<ListOrgRulesOkResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* List organization-level rules
|
|
26
|
+
*/
|
|
27
|
+
export declare function useListOrgRulesQuery(props: ListOrgRulesProps, options?: Omit<UseQueryOptions<ListOrgRulesOkResponse, ListOrgRulesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListOrgRulesOkResponse, 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 listOrgRules(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/orgs/${props.org_id}/rules`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List organization-level rules
|
|
11
|
+
*/
|
|
12
|
+
export function useListOrgRulesQuery(props, options) {
|
|
13
|
+
return useQuery(['listOrgRules', props.org_id, props.queryParams], ({ signal }) => listOrgRules(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesRule } from '../schemas/TypesRule';
|
|
3
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListProjectRulesQueryPathParams {
|
|
7
|
+
org_id: string;
|
|
8
|
+
project_id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ListProjectRulesQueryQueryParams {
|
|
11
|
+
category?: string;
|
|
12
|
+
scope?: string;
|
|
13
|
+
status?: string;
|
|
14
|
+
source?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ListProjectRulesQueryHeaderParams {
|
|
17
|
+
'harness-account': string;
|
|
18
|
+
}
|
|
19
|
+
export type ListProjectRulesOkResponse = ResponseWithPagination<TypesRule[]>;
|
|
20
|
+
export type ListProjectRulesErrorResponse = UsererrorError;
|
|
21
|
+
export interface ListProjectRulesProps extends ListProjectRulesQueryPathParams, Omit<FetcherOptions<ListProjectRulesQueryQueryParams, unknown, ListProjectRulesQueryHeaderParams>, 'url'> {
|
|
22
|
+
queryParams: ListProjectRulesQueryQueryParams;
|
|
23
|
+
}
|
|
24
|
+
export declare function listProjectRules(props: ListProjectRulesProps): Promise<ListProjectRulesOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* List project-level rules
|
|
27
|
+
*/
|
|
28
|
+
export declare function useListProjectRulesQuery(props: ListProjectRulesProps, options?: Omit<UseQueryOptions<ListProjectRulesOkResponse, ListProjectRulesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListProjectRulesOkResponse, 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 listProjectRules(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/orgs/${props.org_id}/projects/${props.project_id}/rules`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List project-level rules
|
|
11
|
+
*/
|
|
12
|
+
export function useListProjectRulesQuery(props, options) {
|
|
13
|
+
return useQuery(['listProjectRules', props.org_id, props.project_id, props.queryParams], ({ signal }) => listProjectRules(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesRule } from '../schemas/TypesRule';
|
|
3
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListRulesQueryQueryParams {
|
|
7
|
+
source?: string;
|
|
8
|
+
}
|
|
9
|
+
export type ListRulesOkResponse = ResponseWithPagination<TypesRule[]>;
|
|
10
|
+
export type ListRulesErrorResponse = UsererrorError;
|
|
11
|
+
export interface ListRulesProps extends Omit<FetcherOptions<ListRulesQueryQueryParams, unknown>, 'url'> {
|
|
12
|
+
queryParams: ListRulesQueryQueryParams;
|
|
13
|
+
}
|
|
14
|
+
export declare function listRules(props: ListRulesProps): Promise<ListRulesOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* List rules based on filters
|
|
17
|
+
*/
|
|
18
|
+
export declare function useListRulesQuery(props: ListRulesProps, options?: Omit<UseQueryOptions<ListRulesOkResponse, ListRulesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRulesOkResponse, 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 listRules(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/rules`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List rules based on filters
|
|
11
|
+
*/
|
|
12
|
+
export function useListRulesQuery(props, options) {
|
|
13
|
+
return useQuery(['listRules', props.queryParams], ({ signal }) => listRules(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesRule } from '../schemas/TypesRule';
|
|
3
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListUserRulesQueryQueryParams {
|
|
7
|
+
category?: string;
|
|
8
|
+
scope?: string;
|
|
9
|
+
status?: string;
|
|
10
|
+
source?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ListUserRulesQueryHeaderParams {
|
|
13
|
+
'harness-account': string;
|
|
14
|
+
}
|
|
15
|
+
export type ListUserRulesOkResponse = ResponseWithPagination<TypesRule[]>;
|
|
16
|
+
export type ListUserRulesErrorResponse = UsererrorError;
|
|
17
|
+
export interface ListUserRulesProps extends Omit<FetcherOptions<ListUserRulesQueryQueryParams, unknown, ListUserRulesQueryHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: ListUserRulesQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export declare function listUserRules(props: ListUserRulesProps): Promise<ListUserRulesOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* List user-specific rules
|
|
23
|
+
*/
|
|
24
|
+
export declare function useListUserRulesQuery(props: ListUserRulesProps, options?: Omit<UseQueryOptions<ListUserRulesOkResponse, ListUserRulesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListUserRulesOkResponse, 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 listUserRules(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/me/rules`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List user-specific rules
|
|
11
|
+
*/
|
|
12
|
+
export function useListUserRulesQuery(props, options) {
|
|
13
|
+
return useQuery(['listUserRules', props.queryParams], ({ signal }) => listUserRules(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesRule } from '../schemas/TypesRule';
|
|
3
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
|
+
import type { ControllerRuleInput } from '../schemas/ControllerRuleInput';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpdateOrgRuleMutationPathParams {
|
|
8
|
+
org_id: string;
|
|
9
|
+
rule_id: string;
|
|
10
|
+
}
|
|
11
|
+
export interface UpdateOrgRuleMutationHeaderParams {
|
|
12
|
+
'harness-account': string;
|
|
13
|
+
}
|
|
14
|
+
export type UpdateOrgRuleRequestBody = ControllerRuleInput;
|
|
15
|
+
export type UpdateOrgRuleOkResponse = ResponseWithPagination<TypesRule>;
|
|
16
|
+
export type UpdateOrgRuleErrorResponse = UsererrorError;
|
|
17
|
+
export interface UpdateOrgRuleProps extends UpdateOrgRuleMutationPathParams, Omit<FetcherOptions<unknown, UpdateOrgRuleRequestBody, UpdateOrgRuleMutationHeaderParams>, 'url'> {
|
|
18
|
+
body: UpdateOrgRuleRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export declare function updateOrgRule(props: UpdateOrgRuleProps): Promise<UpdateOrgRuleOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Update an organization-level rule
|
|
23
|
+
*/
|
|
24
|
+
export declare function useUpdateOrgRuleMutation(options?: Omit<UseMutationOptions<UpdateOrgRuleOkResponse, UpdateOrgRuleErrorResponse, UpdateOrgRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateOrgRuleOkResponse, UsererrorError, UpdateOrgRuleProps, 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 updateOrgRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/orgs/${props.org_id}/rules/${props.rule_id}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update an organization-level rule
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateOrgRuleMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateOrgRule(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesRule } from '../schemas/TypesRule';
|
|
3
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
|
+
import type { ControllerRuleInput } from '../schemas/ControllerRuleInput';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpdateProjectRuleMutationPathParams {
|
|
8
|
+
org_id: string;
|
|
9
|
+
project_id: string;
|
|
10
|
+
rule_id: string;
|
|
11
|
+
}
|
|
12
|
+
export interface UpdateProjectRuleMutationHeaderParams {
|
|
13
|
+
'harness-account': string;
|
|
14
|
+
}
|
|
15
|
+
export type UpdateProjectRuleRequestBody = ControllerRuleInput;
|
|
16
|
+
export type UpdateProjectRuleOkResponse = ResponseWithPagination<TypesRule>;
|
|
17
|
+
export type UpdateProjectRuleErrorResponse = UsererrorError;
|
|
18
|
+
export interface UpdateProjectRuleProps extends UpdateProjectRuleMutationPathParams, Omit<FetcherOptions<unknown, UpdateProjectRuleRequestBody, UpdateProjectRuleMutationHeaderParams>, 'url'> {
|
|
19
|
+
body: UpdateProjectRuleRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export declare function updateProjectRule(props: UpdateProjectRuleProps): Promise<UpdateProjectRuleOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Update a project-level rule
|
|
24
|
+
*/
|
|
25
|
+
export declare function useUpdateProjectRuleMutation(options?: Omit<UseMutationOptions<UpdateProjectRuleOkResponse, UpdateProjectRuleErrorResponse, UpdateProjectRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateProjectRuleOkResponse, UsererrorError, UpdateProjectRuleProps, 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 updateProjectRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/orgs/${props.org_id}/projects/${props.project_id}/rules/${props.rule_id}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update a project-level rule
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateProjectRuleMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateProjectRule(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesRule } from '../schemas/TypesRule';
|
|
3
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
|
+
import type { ControllerRuleInput } from '../schemas/ControllerRuleInput';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpdateRuleMutationPathParams {
|
|
8
|
+
rule_id: string;
|
|
9
|
+
}
|
|
10
|
+
export type UpdateRuleRequestBody = ControllerRuleInput;
|
|
11
|
+
export type UpdateRuleOkResponse = ResponseWithPagination<TypesRule>;
|
|
12
|
+
export type UpdateRuleErrorResponse = UsererrorError;
|
|
13
|
+
export interface UpdateRuleProps extends UpdateRuleMutationPathParams, Omit<FetcherOptions<unknown, UpdateRuleRequestBody>, 'url'> {
|
|
14
|
+
body: UpdateRuleRequestBody;
|
|
15
|
+
}
|
|
16
|
+
export declare function updateRule(props: UpdateRuleProps): Promise<UpdateRuleOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Update an existing rule
|
|
19
|
+
*/
|
|
20
|
+
export declare function useUpdateRuleMutation(options?: Omit<UseMutationOptions<UpdateRuleOkResponse, UpdateRuleErrorResponse, UpdateRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateRuleOkResponse, UsererrorError, UpdateRuleProps, 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 updateRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/rules/${props.rule_id}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update an existing rule
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateRuleMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateRule(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesRule } from '../schemas/TypesRule';
|
|
3
|
+
import type { UsererrorError } from '../schemas/UsererrorError';
|
|
4
|
+
import type { ControllerRuleInput } from '../schemas/ControllerRuleInput';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpdateUserRuleMutationPathParams {
|
|
8
|
+
rule_id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateUserRuleMutationHeaderParams {
|
|
11
|
+
'harness-account': string;
|
|
12
|
+
}
|
|
13
|
+
export type UpdateUserRuleRequestBody = ControllerRuleInput;
|
|
14
|
+
export type UpdateUserRuleOkResponse = ResponseWithPagination<TypesRule>;
|
|
15
|
+
export type UpdateUserRuleErrorResponse = UsererrorError;
|
|
16
|
+
export interface UpdateUserRuleProps extends UpdateUserRuleMutationPathParams, Omit<FetcherOptions<unknown, UpdateUserRuleRequestBody, UpdateUserRuleMutationHeaderParams>, 'url'> {
|
|
17
|
+
body: UpdateUserRuleRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function updateUserRule(props: UpdateUserRuleProps): Promise<UpdateUserRuleOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Update a user-specific rule
|
|
22
|
+
*/
|
|
23
|
+
export declare function useUpdateUserRuleMutation(options?: Omit<UseMutationOptions<UpdateUserRuleOkResponse, UpdateUserRuleErrorResponse, UpdateUserRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateUserRuleOkResponse, UsererrorError, UpdateUserRuleProps, 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 updateUserRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/me/rules/${props.rule_id}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update a user-specific rule
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateUserRuleMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateUserRule(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -1,21 +1,81 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
2
|
export type { ChatErrorResponse, ChatOkResponse, ChatProps, ChatRequestBody, } from './hooks/useChatMutation';
|
|
3
3
|
export { chat, useChatMutation } from './hooks/useChatMutation';
|
|
4
|
+
export type { CreateAccountRuleErrorResponse, CreateAccountRuleOkResponse, CreateAccountRuleProps, CreateAccountRuleRequestBody, } from './hooks/useCreateAccountRuleMutation';
|
|
5
|
+
export { createAccountRule, useCreateAccountRuleMutation, } from './hooks/useCreateAccountRuleMutation';
|
|
4
6
|
export type { CreateEntityErrorResponse, CreateEntityOkResponse, CreateEntityProps, CreateEntityRequestBody, } from './hooks/useCreateEntityMutation';
|
|
5
7
|
export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMutation';
|
|
8
|
+
export type { CreateOrgRuleErrorResponse, CreateOrgRuleMutationPathParams, CreateOrgRuleOkResponse, CreateOrgRuleProps, CreateOrgRuleRequestBody, } from './hooks/useCreateOrgRuleMutation';
|
|
9
|
+
export { createOrgRule, useCreateOrgRuleMutation } from './hooks/useCreateOrgRuleMutation';
|
|
10
|
+
export type { CreateProjectRuleErrorResponse, CreateProjectRuleMutationPathParams, CreateProjectRuleOkResponse, CreateProjectRuleProps, CreateProjectRuleRequestBody, } from './hooks/useCreateProjectRuleMutation';
|
|
11
|
+
export { createProjectRule, useCreateProjectRuleMutation, } from './hooks/useCreateProjectRuleMutation';
|
|
12
|
+
export type { CreateUserRuleErrorResponse, CreateUserRuleOkResponse, CreateUserRuleProps, CreateUserRuleRequestBody, } from './hooks/useCreateUserRuleMutation';
|
|
13
|
+
export { createUserRule, useCreateUserRuleMutation } from './hooks/useCreateUserRuleMutation';
|
|
14
|
+
export type { DeleteChatSessionErrorResponse, DeleteChatSessionMutationPathParams, DeleteChatSessionOkResponse, DeleteChatSessionProps, } from './hooks/useDeleteChatSessionMutation';
|
|
15
|
+
export { deleteChatSession, useDeleteChatSessionMutation, } from './hooks/useDeleteChatSessionMutation';
|
|
16
|
+
export type { DeleteOrgRuleErrorResponse, DeleteOrgRuleMutationPathParams, DeleteOrgRuleOkResponse, DeleteOrgRuleProps, } from './hooks/useDeleteOrgRuleMutation';
|
|
17
|
+
export { deleteOrgRule, useDeleteOrgRuleMutation } from './hooks/useDeleteOrgRuleMutation';
|
|
18
|
+
export type { DeleteProjectRuleErrorResponse, DeleteProjectRuleMutationPathParams, DeleteProjectRuleOkResponse, DeleteProjectRuleProps, } from './hooks/useDeleteProjectRuleMutation';
|
|
19
|
+
export { deleteProjectRule, useDeleteProjectRuleMutation, } from './hooks/useDeleteProjectRuleMutation';
|
|
20
|
+
export type { DeleteRuleErrorResponse, DeleteRuleMutationPathParams, DeleteRuleOkResponse, DeleteRuleProps, } from './hooks/useDeleteRuleMutation';
|
|
21
|
+
export { deleteRule, useDeleteRuleMutation } from './hooks/useDeleteRuleMutation';
|
|
22
|
+
export type { DeleteUserRuleErrorResponse, DeleteUserRuleMutationPathParams, DeleteUserRuleOkResponse, DeleteUserRuleProps, } from './hooks/useDeleteUserRuleMutation';
|
|
23
|
+
export { deleteUserRule, useDeleteUserRuleMutation } from './hooks/useDeleteUserRuleMutation';
|
|
24
|
+
export type { GetChatSessionMessagesErrorResponse, GetChatSessionMessagesOkResponse, GetChatSessionMessagesProps, GetChatSessionMessagesQueryPathParams, GetChatSessionMessagesQueryQueryParams, } from './hooks/useGetChatSessionMessagesQuery';
|
|
25
|
+
export { getChatSessionMessages, useGetChatSessionMessagesQuery, } from './hooks/useGetChatSessionMessagesQuery';
|
|
26
|
+
export type { GetChatSessionErrorResponse, GetChatSessionOkResponse, GetChatSessionProps, GetChatSessionQueryPathParams, GetChatSessionQueryQueryParams, } from './hooks/useGetChatSessionQuery';
|
|
27
|
+
export { getChatSession, useGetChatSessionQuery } from './hooks/useGetChatSessionQuery';
|
|
28
|
+
export type { GetOrgRuleErrorResponse, GetOrgRuleOkResponse, GetOrgRuleProps, GetOrgRuleQueryPathParams, } from './hooks/useGetOrgRuleQuery';
|
|
29
|
+
export { getOrgRule, useGetOrgRuleQuery } from './hooks/useGetOrgRuleQuery';
|
|
30
|
+
export type { GetProjectRuleErrorResponse, GetProjectRuleOkResponse, GetProjectRuleProps, GetProjectRuleQueryPathParams, } from './hooks/useGetProjectRuleQuery';
|
|
31
|
+
export { getProjectRule, useGetProjectRuleQuery } from './hooks/useGetProjectRuleQuery';
|
|
32
|
+
export type { GetRuleCategoriesErrorResponse, GetRuleCategoriesOkResponse, GetRuleCategoriesProps, } from './hooks/useGetRuleCategoriesQuery';
|
|
33
|
+
export { getRuleCategories, useGetRuleCategoriesQuery } from './hooks/useGetRuleCategoriesQuery';
|
|
34
|
+
export type { GetRuleErrorResponse, GetRuleOkResponse, GetRuleProps, GetRuleQueryPathParams, } from './hooks/useGetRuleQuery';
|
|
35
|
+
export { getRule, useGetRuleQuery } from './hooks/useGetRuleQuery';
|
|
36
|
+
export type { GetUserRuleErrorResponse, GetUserRuleOkResponse, GetUserRuleProps, GetUserRuleQueryPathParams, } from './hooks/useGetUserRuleQuery';
|
|
37
|
+
export { getUserRule, useGetUserRuleQuery } from './hooks/useGetUserRuleQuery';
|
|
38
|
+
export type { ListChatSessionsErrorResponse, ListChatSessionsOkResponse, ListChatSessionsProps, ListChatSessionsQueryQueryParams, } from './hooks/useListChatSessionsQuery';
|
|
39
|
+
export { listChatSessions, useListChatSessionsQuery } from './hooks/useListChatSessionsQuery';
|
|
40
|
+
export type { ListOrgRulesErrorResponse, ListOrgRulesOkResponse, ListOrgRulesProps, ListOrgRulesQueryPathParams, ListOrgRulesQueryQueryParams, } from './hooks/useListOrgRulesQuery';
|
|
41
|
+
export { listOrgRules, useListOrgRulesQuery } from './hooks/useListOrgRulesQuery';
|
|
42
|
+
export type { ListProjectRulesErrorResponse, ListProjectRulesOkResponse, ListProjectRulesProps, ListProjectRulesQueryPathParams, ListProjectRulesQueryQueryParams, } from './hooks/useListProjectRulesQuery';
|
|
43
|
+
export { listProjectRules, useListProjectRulesQuery } from './hooks/useListProjectRulesQuery';
|
|
44
|
+
export type { ListRulesErrorResponse, ListRulesOkResponse, ListRulesProps, ListRulesQueryQueryParams, } from './hooks/useListRulesQuery';
|
|
45
|
+
export { listRules, useListRulesQuery } from './hooks/useListRulesQuery';
|
|
46
|
+
export type { ListUserRulesErrorResponse, ListUserRulesOkResponse, ListUserRulesProps, ListUserRulesQueryQueryParams, } from './hooks/useListUserRulesQuery';
|
|
47
|
+
export { listUserRules, useListUserRulesQuery } from './hooks/useListUserRulesQuery';
|
|
48
|
+
export type { UpdateOrgRuleErrorResponse, UpdateOrgRuleMutationPathParams, UpdateOrgRuleOkResponse, UpdateOrgRuleProps, UpdateOrgRuleRequestBody, } from './hooks/useUpdateOrgRuleMutation';
|
|
49
|
+
export { updateOrgRule, useUpdateOrgRuleMutation } from './hooks/useUpdateOrgRuleMutation';
|
|
50
|
+
export type { UpdateProjectRuleErrorResponse, UpdateProjectRuleMutationPathParams, UpdateProjectRuleOkResponse, UpdateProjectRuleProps, UpdateProjectRuleRequestBody, } from './hooks/useUpdateProjectRuleMutation';
|
|
51
|
+
export { updateProjectRule, useUpdateProjectRuleMutation, } from './hooks/useUpdateProjectRuleMutation';
|
|
52
|
+
export type { UpdateRuleErrorResponse, UpdateRuleMutationPathParams, UpdateRuleOkResponse, UpdateRuleProps, UpdateRuleRequestBody, } from './hooks/useUpdateRuleMutation';
|
|
53
|
+
export { updateRule, useUpdateRuleMutation } from './hooks/useUpdateRuleMutation';
|
|
54
|
+
export type { UpdateUserRuleErrorResponse, UpdateUserRuleMutationPathParams, UpdateUserRuleOkResponse, UpdateUserRuleProps, UpdateUserRuleRequestBody, } from './hooks/useUpdateUserRuleMutation';
|
|
55
|
+
export { updateUserRule, useUpdateUserRuleMutation } from './hooks/useUpdateUserRuleMutation';
|
|
56
|
+
export type { ControllerRuleInput } from './schemas/ControllerRuleInput';
|
|
6
57
|
export type { EnumAction } from './schemas/EnumAction';
|
|
58
|
+
export type { EnumAgentMode } from './schemas/EnumAgentMode';
|
|
7
59
|
export type { EnumEntityType } from './schemas/EnumEntityType';
|
|
8
60
|
export type { EnumMessageType } from './schemas/EnumMessageType';
|
|
9
61
|
export type { EnumRequestAction } from './schemas/EnumRequestAction';
|
|
10
62
|
export type { EnumRole } from './schemas/EnumRole';
|
|
63
|
+
export type { HandlerGetSessionResponse } from './schemas/HandlerGetSessionResponse';
|
|
64
|
+
export type { OpenapiRuleCategoriesResponse } from './schemas/OpenapiRuleCategoriesResponse';
|
|
11
65
|
export type { TypesChat } from './schemas/TypesChat';
|
|
66
|
+
export type { TypesChatMessage } from './schemas/TypesChatMessage';
|
|
12
67
|
export type { TypesChatOutput } from './schemas/TypesChatOutput';
|
|
13
68
|
export type { TypesChatResponse } from './schemas/TypesChatResponse';
|
|
69
|
+
export type { TypesChatSession } from './schemas/TypesChatSession';
|
|
14
70
|
export type { TypesConversation } from './schemas/TypesConversation';
|
|
15
71
|
export type { TypesEntityInfo } from './schemas/TypesEntityInfo';
|
|
16
|
-
export type { TypesEntityOperationResponse } from './schemas/TypesEntityOperationResponse';
|
|
17
72
|
export type { TypesHarnessEntity } from './schemas/TypesHarnessEntity';
|
|
18
73
|
export type { TypesMessage } from './schemas/TypesMessage';
|
|
19
74
|
export type { TypesResponseMessage } from './schemas/TypesResponseMessage';
|
|
75
|
+
export type { TypesRule } from './schemas/TypesRule';
|
|
76
|
+
export type { TypesRuleCategory } from './schemas/TypesRuleCategory';
|
|
77
|
+
export type { TypesRuleScope } from './schemas/TypesRuleScope';
|
|
78
|
+
export type { TypesRuleSource } from './schemas/TypesRuleSource';
|
|
79
|
+
export type { TypesRuleStatus } from './schemas/TypesRuleStatus';
|
|
20
80
|
export type { UsererrorError } from './schemas/UsererrorError';
|
|
21
81
|
export type { UuidUuid } from './schemas/UuidUuid';
|
|
@@ -1,2 +1,27 @@
|
|
|
1
1
|
export { chat, useChatMutation } from './hooks/useChatMutation';
|
|
2
|
+
export { createAccountRule, useCreateAccountRuleMutation, } from './hooks/useCreateAccountRuleMutation';
|
|
2
3
|
export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMutation';
|
|
4
|
+
export { createOrgRule, useCreateOrgRuleMutation } from './hooks/useCreateOrgRuleMutation';
|
|
5
|
+
export { createProjectRule, useCreateProjectRuleMutation, } from './hooks/useCreateProjectRuleMutation';
|
|
6
|
+
export { createUserRule, useCreateUserRuleMutation } from './hooks/useCreateUserRuleMutation';
|
|
7
|
+
export { deleteChatSession, useDeleteChatSessionMutation, } from './hooks/useDeleteChatSessionMutation';
|
|
8
|
+
export { deleteOrgRule, useDeleteOrgRuleMutation } from './hooks/useDeleteOrgRuleMutation';
|
|
9
|
+
export { deleteProjectRule, useDeleteProjectRuleMutation, } from './hooks/useDeleteProjectRuleMutation';
|
|
10
|
+
export { deleteRule, useDeleteRuleMutation } from './hooks/useDeleteRuleMutation';
|
|
11
|
+
export { deleteUserRule, useDeleteUserRuleMutation } from './hooks/useDeleteUserRuleMutation';
|
|
12
|
+
export { getChatSessionMessages, useGetChatSessionMessagesQuery, } from './hooks/useGetChatSessionMessagesQuery';
|
|
13
|
+
export { getChatSession, useGetChatSessionQuery } from './hooks/useGetChatSessionQuery';
|
|
14
|
+
export { getOrgRule, useGetOrgRuleQuery } from './hooks/useGetOrgRuleQuery';
|
|
15
|
+
export { getProjectRule, useGetProjectRuleQuery } from './hooks/useGetProjectRuleQuery';
|
|
16
|
+
export { getRuleCategories, useGetRuleCategoriesQuery } from './hooks/useGetRuleCategoriesQuery';
|
|
17
|
+
export { getRule, useGetRuleQuery } from './hooks/useGetRuleQuery';
|
|
18
|
+
export { getUserRule, useGetUserRuleQuery } from './hooks/useGetUserRuleQuery';
|
|
19
|
+
export { listChatSessions, useListChatSessionsQuery } from './hooks/useListChatSessionsQuery';
|
|
20
|
+
export { listOrgRules, useListOrgRulesQuery } from './hooks/useListOrgRulesQuery';
|
|
21
|
+
export { listProjectRules, useListProjectRulesQuery } from './hooks/useListProjectRulesQuery';
|
|
22
|
+
export { listRules, useListRulesQuery } from './hooks/useListRulesQuery';
|
|
23
|
+
export { listUserRules, useListUserRulesQuery } from './hooks/useListUserRulesQuery';
|
|
24
|
+
export { updateOrgRule, useUpdateOrgRuleMutation } from './hooks/useUpdateOrgRuleMutation';
|
|
25
|
+
export { updateProjectRule, useUpdateProjectRuleMutation, } from './hooks/useUpdateProjectRuleMutation';
|
|
26
|
+
export { updateRule, useUpdateRuleMutation } from './hooks/useUpdateRuleMutation';
|
|
27
|
+
export { updateUserRule, useUpdateUserRuleMutation } from './hooks/useUpdateUserRuleMutation';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TypesRuleCategory } from '../schemas/TypesRuleCategory';
|
|
2
|
+
import type { TypesRuleScope } from '../schemas/TypesRuleScope';
|
|
3
|
+
import type { TypesRuleSource } from '../schemas/TypesRuleSource';
|
|
4
|
+
import type { TypesRuleStatus } from '../schemas/TypesRuleStatus';
|
|
5
|
+
export interface ControllerRuleInput {
|
|
6
|
+
category?: TypesRuleCategory;
|
|
7
|
+
content?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
rule_id?: string;
|
|
10
|
+
scope?: TypesRuleScope;
|
|
11
|
+
source?: TypesRuleSource;
|
|
12
|
+
status?: TypesRuleStatus;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EnumAgentMode = string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TypesChatMessage } from '../schemas/TypesChatMessage';
|
|
2
|
+
import type { TypesChatSession } from '../schemas/TypesChatSession';
|
|
3
|
+
export interface HandlerGetSessionResponse {
|
|
4
|
+
has_more_messages?: boolean;
|
|
5
|
+
recent_messages?: TypesChatMessage[];
|
|
6
|
+
session?: TypesChatSession;
|
|
7
|
+
total_message_count?: number;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TypesConversation } from '../schemas/TypesConversation';
|
|
2
2
|
import type { UuidUuid } from '../schemas/UuidUuid';
|
|
3
|
+
import type { EnumAgentMode } from '../schemas/EnumAgentMode';
|
|
3
4
|
export interface TypesChat {
|
|
4
5
|
conversation?: TypesConversation[] | null;
|
|
5
6
|
conversation_id?: UuidUuid;
|
|
@@ -7,6 +8,7 @@ export interface TypesChat {
|
|
|
7
8
|
metadata: {
|
|
8
9
|
[key: string]: string;
|
|
9
10
|
} | null;
|
|
11
|
+
mode?: EnumAgentMode;
|
|
10
12
|
prompt: string;
|
|
11
13
|
stream?: boolean;
|
|
12
14
|
valid_prompt_explanation?: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { UuidUuid } from '../schemas/UuidUuid';
|
|
2
|
+
export interface TypesChatMessage {
|
|
3
|
+
content?: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
} | null;
|
|
6
|
+
conversation_id?: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
interaction_id?: UuidUuid;
|
|
9
|
+
metadata?: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
order_index?: number;
|
|
13
|
+
role?: string;
|
|
14
|
+
session_id?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @format date-time
|
|
17
|
+
*/
|
|
18
|
+
timestamp?: string;
|
|
19
|
+
token_count?: number;
|
|
20
|
+
type?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface TypesChatSession {
|
|
2
|
+
account_id?: string;
|
|
3
|
+
conversation_id?: string;
|
|
4
|
+
/**
|
|
5
|
+
* @format date-time
|
|
6
|
+
*/
|
|
7
|
+
created_at?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
message_count?: number;
|
|
10
|
+
metadata?: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
org_id?: string;
|
|
14
|
+
project_id?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @format date-time
|
|
18
|
+
*/
|
|
19
|
+
updated_at?: string;
|
|
20
|
+
user_id?: string;
|
|
21
|
+
}
|