feat: add is_chat field to board memory and task_id to approvals, update pagination and response models
This commit is contained in:
@@ -18,8 +18,8 @@ import type {
|
||||
} from "@tanstack/react-query";
|
||||
|
||||
import type {
|
||||
ActivityEventRead,
|
||||
HTTPValidationError,
|
||||
LimitOffsetPageTypeVarCustomizedActivityEventRead,
|
||||
ListActivityApiV1ActivityGetParams,
|
||||
} from ".././model";
|
||||
|
||||
@@ -31,7 +31,7 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
* @summary List Activity
|
||||
*/
|
||||
export type listActivityApiV1ActivityGetResponse200 = {
|
||||
data: ActivityEventRead[];
|
||||
data: LimitOffsetPageTypeVarCustomizedActivityEventRead;
|
||||
status: 200;
|
||||
};
|
||||
|
||||
|
||||
@@ -34,9 +34,17 @@ import type {
|
||||
BoardOnboardingRead,
|
||||
BoardRead,
|
||||
HTTPValidationError,
|
||||
LimitOffsetPageTypeVarCustomizedAgentRead,
|
||||
LimitOffsetPageTypeVarCustomizedApprovalRead,
|
||||
LimitOffsetPageTypeVarCustomizedBoardMemoryRead,
|
||||
LimitOffsetPageTypeVarCustomizedBoardRead,
|
||||
LimitOffsetPageTypeVarCustomizedTaskCommentRead,
|
||||
LimitOffsetPageTypeVarCustomizedTaskRead,
|
||||
ListAgentsApiV1AgentAgentsGetParams,
|
||||
ListApprovalsApiV1AgentBoardsBoardIdApprovalsGetParams,
|
||||
ListBoardMemoryApiV1AgentBoardsBoardIdMemoryGetParams,
|
||||
ListBoardsApiV1AgentBoardsGetParams,
|
||||
ListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
ListTasksApiV1AgentBoardsBoardIdTasksGetParams,
|
||||
OkResponse,
|
||||
TaskCommentCreate,
|
||||
@@ -54,7 +62,7 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
* @summary List Boards
|
||||
*/
|
||||
export type listBoardsApiV1AgentBoardsGetResponse200 = {
|
||||
data: BoardRead[];
|
||||
data: LimitOffsetPageTypeVarCustomizedBoardRead;
|
||||
status: 200;
|
||||
};
|
||||
|
||||
@@ -76,15 +84,30 @@ export type listBoardsApiV1AgentBoardsGetResponse =
|
||||
| listBoardsApiV1AgentBoardsGetResponseSuccess
|
||||
| listBoardsApiV1AgentBoardsGetResponseError;
|
||||
|
||||
export const getListBoardsApiV1AgentBoardsGetUrl = () => {
|
||||
return `/api/v1/agent/boards`;
|
||||
export const getListBoardsApiV1AgentBoardsGetUrl = (
|
||||
params?: ListBoardsApiV1AgentBoardsGetParams,
|
||||
) => {
|
||||
const normalizedParams = new URLSearchParams();
|
||||
|
||||
Object.entries(params || {}).forEach(([key, value]) => {
|
||||
if (value !== undefined) {
|
||||
normalizedParams.append(key, value === null ? "null" : value.toString());
|
||||
}
|
||||
});
|
||||
|
||||
const stringifiedParams = normalizedParams.toString();
|
||||
|
||||
return stringifiedParams.length > 0
|
||||
? `/api/v1/agent/boards?${stringifiedParams}`
|
||||
: `/api/v1/agent/boards`;
|
||||
};
|
||||
|
||||
export const listBoardsApiV1AgentBoardsGet = async (
|
||||
params?: ListBoardsApiV1AgentBoardsGetParams,
|
||||
options?: RequestInit,
|
||||
): Promise<listBoardsApiV1AgentBoardsGetResponse> => {
|
||||
return customFetch<listBoardsApiV1AgentBoardsGetResponse>(
|
||||
getListBoardsApiV1AgentBoardsGetUrl(),
|
||||
getListBoardsApiV1AgentBoardsGetUrl(params),
|
||||
{
|
||||
...options,
|
||||
method: "GET",
|
||||
@@ -92,32 +115,37 @@ export const listBoardsApiV1AgentBoardsGet = async (
|
||||
);
|
||||
};
|
||||
|
||||
export const getListBoardsApiV1AgentBoardsGetQueryKey = () => {
|
||||
return [`/api/v1/agent/boards`] as const;
|
||||
export const getListBoardsApiV1AgentBoardsGetQueryKey = (
|
||||
params?: ListBoardsApiV1AgentBoardsGetParams,
|
||||
) => {
|
||||
return [`/api/v1/agent/boards`, ...(params ? [params] : [])] as const;
|
||||
};
|
||||
|
||||
export const getListBoardsApiV1AgentBoardsGetQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof listBoardsApiV1AgentBoardsGet>>,
|
||||
TError = HTTPValidationError,
|
||||
>(options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof listBoardsApiV1AgentBoardsGet>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}) => {
|
||||
>(
|
||||
params?: ListBoardsApiV1AgentBoardsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof listBoardsApiV1AgentBoardsGet>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
) => {
|
||||
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||
|
||||
const queryKey =
|
||||
queryOptions?.queryKey ?? getListBoardsApiV1AgentBoardsGetQueryKey();
|
||||
queryOptions?.queryKey ?? getListBoardsApiV1AgentBoardsGetQueryKey(params);
|
||||
|
||||
const queryFn: QueryFunction<
|
||||
Awaited<ReturnType<typeof listBoardsApiV1AgentBoardsGet>>
|
||||
> = ({ signal }) =>
|
||||
listBoardsApiV1AgentBoardsGet({ signal, ...requestOptions });
|
||||
listBoardsApiV1AgentBoardsGet(params, { signal, ...requestOptions });
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||
Awaited<ReturnType<typeof listBoardsApiV1AgentBoardsGet>>,
|
||||
@@ -135,6 +163,7 @@ export function useListBoardsApiV1AgentBoardsGet<
|
||||
TData = Awaited<ReturnType<typeof listBoardsApiV1AgentBoardsGet>>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params: undefined | ListBoardsApiV1AgentBoardsGetParams,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -161,6 +190,7 @@ export function useListBoardsApiV1AgentBoardsGet<
|
||||
TData = Awaited<ReturnType<typeof listBoardsApiV1AgentBoardsGet>>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params?: ListBoardsApiV1AgentBoardsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -187,6 +217,7 @@ export function useListBoardsApiV1AgentBoardsGet<
|
||||
TData = Awaited<ReturnType<typeof listBoardsApiV1AgentBoardsGet>>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params?: ListBoardsApiV1AgentBoardsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -209,6 +240,7 @@ export function useListBoardsApiV1AgentBoardsGet<
|
||||
TData = Awaited<ReturnType<typeof listBoardsApiV1AgentBoardsGet>>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params?: ListBoardsApiV1AgentBoardsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -223,7 +255,10 @@ export function useListBoardsApiV1AgentBoardsGet<
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getListBoardsApiV1AgentBoardsGetQueryOptions(options);
|
||||
const queryOptions = getListBoardsApiV1AgentBoardsGetQueryOptions(
|
||||
params,
|
||||
options,
|
||||
);
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
@@ -439,7 +474,7 @@ export function useGetBoardApiV1AgentBoardsBoardIdGet<
|
||||
* @summary List Agents
|
||||
*/
|
||||
export type listAgentsApiV1AgentAgentsGetResponse200 = {
|
||||
data: AgentRead[];
|
||||
data: LimitOffsetPageTypeVarCustomizedAgentRead;
|
||||
status: 200;
|
||||
};
|
||||
|
||||
@@ -766,7 +801,7 @@ export const useCreateAgentApiV1AgentAgentsPost = <
|
||||
* @summary List Tasks
|
||||
*/
|
||||
export type listTasksApiV1AgentBoardsBoardIdTasksGetResponse200 = {
|
||||
data: TaskRead[];
|
||||
data: LimitOffsetPageTypeVarCustomizedTaskRead;
|
||||
status: 200;
|
||||
};
|
||||
|
||||
@@ -1265,7 +1300,7 @@ export const useUpdateTaskApiV1AgentBoardsBoardIdTasksTaskIdPatch = <
|
||||
*/
|
||||
export type listTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetResponse200 =
|
||||
{
|
||||
data: TaskCommentRead[];
|
||||
data: LimitOffsetPageTypeVarCustomizedTaskCommentRead;
|
||||
status: 200;
|
||||
};
|
||||
|
||||
@@ -1290,20 +1325,41 @@ export type listTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetRespons
|
||||
| listTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetResponseError;
|
||||
|
||||
export const getListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetUrl =
|
||||
(boardId: string, taskId: string) => {
|
||||
return `/api/v1/agent/boards/${boardId}/tasks/${taskId}/comments`;
|
||||
(
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params?: ListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
) => {
|
||||
const normalizedParams = new URLSearchParams();
|
||||
|
||||
Object.entries(params || {}).forEach(([key, value]) => {
|
||||
if (value !== undefined) {
|
||||
normalizedParams.append(
|
||||
key,
|
||||
value === null ? "null" : value.toString(),
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
const stringifiedParams = normalizedParams.toString();
|
||||
|
||||
return stringifiedParams.length > 0
|
||||
? `/api/v1/agent/boards/${boardId}/tasks/${taskId}/comments?${stringifiedParams}`
|
||||
: `/api/v1/agent/boards/${boardId}/tasks/${taskId}/comments`;
|
||||
};
|
||||
|
||||
export const listTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGet =
|
||||
async (
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params?: ListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
options?: RequestInit,
|
||||
): Promise<listTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetResponse> => {
|
||||
return customFetch<listTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetResponse>(
|
||||
getListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetUrl(
|
||||
boardId,
|
||||
taskId,
|
||||
params,
|
||||
),
|
||||
{
|
||||
...options,
|
||||
@@ -1313,9 +1369,14 @@ export const listTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGet =
|
||||
};
|
||||
|
||||
export const getListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetQueryKey =
|
||||
(boardId: string, taskId: string) => {
|
||||
(
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params?: ListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
) => {
|
||||
return [
|
||||
`/api/v1/agent/boards/${boardId}/tasks/${taskId}/comments`,
|
||||
...(params ? [params] : []),
|
||||
] as const;
|
||||
};
|
||||
|
||||
@@ -1330,6 +1391,7 @@ export const getListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetQue
|
||||
>(
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params?: ListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -1352,6 +1414,7 @@ export const getListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetQue
|
||||
getListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetQueryKey(
|
||||
boardId,
|
||||
taskId,
|
||||
params,
|
||||
);
|
||||
|
||||
const queryFn: QueryFunction<
|
||||
@@ -1364,6 +1427,7 @@ export const getListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetQue
|
||||
listTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGet(
|
||||
boardId,
|
||||
taskId,
|
||||
params,
|
||||
{ signal, ...requestOptions },
|
||||
);
|
||||
|
||||
@@ -1404,6 +1468,9 @@ export function useListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGet
|
||||
>(
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params:
|
||||
| undefined
|
||||
| ListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -1448,6 +1515,7 @@ export function useListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGet
|
||||
>(
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params?: ListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -1492,6 +1560,7 @@ export function useListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGet
|
||||
>(
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params?: ListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -1524,6 +1593,7 @@ export function useListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGet
|
||||
>(
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params?: ListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -1546,6 +1616,7 @@ export function useListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGet
|
||||
getListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetQueryOptions(
|
||||
boardId,
|
||||
taskId,
|
||||
params,
|
||||
options,
|
||||
);
|
||||
|
||||
@@ -1720,7 +1791,7 @@ export const useCreateTaskCommentApiV1AgentBoardsBoardIdTasksTaskIdCommentsPost
|
||||
* @summary List Board Memory
|
||||
*/
|
||||
export type listBoardMemoryApiV1AgentBoardsBoardIdMemoryGetResponse200 = {
|
||||
data: BoardMemoryRead[];
|
||||
data: LimitOffsetPageTypeVarCustomizedBoardMemoryRead;
|
||||
status: 200;
|
||||
};
|
||||
|
||||
@@ -2121,7 +2192,7 @@ export const useCreateBoardMemoryApiV1AgentBoardsBoardIdMemoryPost = <
|
||||
* @summary List Approvals
|
||||
*/
|
||||
export type listApprovalsApiV1AgentBoardsBoardIdApprovalsGetResponse200 = {
|
||||
data: ApprovalRead[];
|
||||
data: LimitOffsetPageTypeVarCustomizedApprovalRead;
|
||||
status: 200;
|
||||
};
|
||||
|
||||
|
||||
@@ -27,6 +27,8 @@ import type {
|
||||
AgentRead,
|
||||
AgentUpdate,
|
||||
HTTPValidationError,
|
||||
LimitOffsetPageTypeVarCustomizedAgentRead,
|
||||
ListAgentsApiV1AgentsGetParams,
|
||||
OkResponse,
|
||||
StreamAgentsApiV1AgentsStreamGetParams,
|
||||
UpdateAgentApiV1AgentsAgentIdPatchParams,
|
||||
@@ -40,26 +42,52 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
* @summary List Agents
|
||||
*/
|
||||
export type listAgentsApiV1AgentsGetResponse200 = {
|
||||
data: AgentRead[];
|
||||
data: LimitOffsetPageTypeVarCustomizedAgentRead;
|
||||
status: 200;
|
||||
};
|
||||
|
||||
export type listAgentsApiV1AgentsGetResponse422 = {
|
||||
data: HTTPValidationError;
|
||||
status: 422;
|
||||
};
|
||||
|
||||
export type listAgentsApiV1AgentsGetResponseSuccess =
|
||||
listAgentsApiV1AgentsGetResponse200 & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type listAgentsApiV1AgentsGetResponse =
|
||||
listAgentsApiV1AgentsGetResponseSuccess;
|
||||
export type listAgentsApiV1AgentsGetResponseError =
|
||||
listAgentsApiV1AgentsGetResponse422 & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export const getListAgentsApiV1AgentsGetUrl = () => {
|
||||
return `/api/v1/agents`;
|
||||
export type listAgentsApiV1AgentsGetResponse =
|
||||
| listAgentsApiV1AgentsGetResponseSuccess
|
||||
| listAgentsApiV1AgentsGetResponseError;
|
||||
|
||||
export const getListAgentsApiV1AgentsGetUrl = (
|
||||
params?: ListAgentsApiV1AgentsGetParams,
|
||||
) => {
|
||||
const normalizedParams = new URLSearchParams();
|
||||
|
||||
Object.entries(params || {}).forEach(([key, value]) => {
|
||||
if (value !== undefined) {
|
||||
normalizedParams.append(key, value === null ? "null" : value.toString());
|
||||
}
|
||||
});
|
||||
|
||||
const stringifiedParams = normalizedParams.toString();
|
||||
|
||||
return stringifiedParams.length > 0
|
||||
? `/api/v1/agents?${stringifiedParams}`
|
||||
: `/api/v1/agents`;
|
||||
};
|
||||
|
||||
export const listAgentsApiV1AgentsGet = async (
|
||||
params?: ListAgentsApiV1AgentsGetParams,
|
||||
options?: RequestInit,
|
||||
): Promise<listAgentsApiV1AgentsGetResponse> => {
|
||||
return customFetch<listAgentsApiV1AgentsGetResponse>(
|
||||
getListAgentsApiV1AgentsGetUrl(),
|
||||
getListAgentsApiV1AgentsGetUrl(params),
|
||||
{
|
||||
...options,
|
||||
method: "GET",
|
||||
@@ -67,31 +95,37 @@ export const listAgentsApiV1AgentsGet = async (
|
||||
);
|
||||
};
|
||||
|
||||
export const getListAgentsApiV1AgentsGetQueryKey = () => {
|
||||
return [`/api/v1/agents`] as const;
|
||||
export const getListAgentsApiV1AgentsGetQueryKey = (
|
||||
params?: ListAgentsApiV1AgentsGetParams,
|
||||
) => {
|
||||
return [`/api/v1/agents`, ...(params ? [params] : [])] as const;
|
||||
};
|
||||
|
||||
export const getListAgentsApiV1AgentsGetQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof listAgentsApiV1AgentsGet>>,
|
||||
TError = unknown,
|
||||
>(options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof listAgentsApiV1AgentsGet>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}) => {
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params?: ListAgentsApiV1AgentsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof listAgentsApiV1AgentsGet>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
) => {
|
||||
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||
|
||||
const queryKey =
|
||||
queryOptions?.queryKey ?? getListAgentsApiV1AgentsGetQueryKey();
|
||||
queryOptions?.queryKey ?? getListAgentsApiV1AgentsGetQueryKey(params);
|
||||
|
||||
const queryFn: QueryFunction<
|
||||
Awaited<ReturnType<typeof listAgentsApiV1AgentsGet>>
|
||||
> = ({ signal }) => listAgentsApiV1AgentsGet({ signal, ...requestOptions });
|
||||
> = ({ signal }) =>
|
||||
listAgentsApiV1AgentsGet(params, { signal, ...requestOptions });
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||
Awaited<ReturnType<typeof listAgentsApiV1AgentsGet>>,
|
||||
@@ -103,12 +137,13 @@ export const getListAgentsApiV1AgentsGetQueryOptions = <
|
||||
export type ListAgentsApiV1AgentsGetQueryResult = NonNullable<
|
||||
Awaited<ReturnType<typeof listAgentsApiV1AgentsGet>>
|
||||
>;
|
||||
export type ListAgentsApiV1AgentsGetQueryError = unknown;
|
||||
export type ListAgentsApiV1AgentsGetQueryError = HTTPValidationError;
|
||||
|
||||
export function useListAgentsApiV1AgentsGet<
|
||||
TData = Awaited<ReturnType<typeof listAgentsApiV1AgentsGet>>,
|
||||
TError = unknown,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params: undefined | ListAgentsApiV1AgentsGetParams,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -133,8 +168,9 @@ export function useListAgentsApiV1AgentsGet<
|
||||
};
|
||||
export function useListAgentsApiV1AgentsGet<
|
||||
TData = Awaited<ReturnType<typeof listAgentsApiV1AgentsGet>>,
|
||||
TError = unknown,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params?: ListAgentsApiV1AgentsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -159,8 +195,9 @@ export function useListAgentsApiV1AgentsGet<
|
||||
};
|
||||
export function useListAgentsApiV1AgentsGet<
|
||||
TData = Awaited<ReturnType<typeof listAgentsApiV1AgentsGet>>,
|
||||
TError = unknown,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params?: ListAgentsApiV1AgentsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -181,8 +218,9 @@ export function useListAgentsApiV1AgentsGet<
|
||||
|
||||
export function useListAgentsApiV1AgentsGet<
|
||||
TData = Awaited<ReturnType<typeof listAgentsApiV1AgentsGet>>,
|
||||
TError = unknown,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params?: ListAgentsApiV1AgentsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -197,7 +235,7 @@ export function useListAgentsApiV1AgentsGet<
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getListAgentsApiV1AgentsGetQueryOptions(options);
|
||||
const queryOptions = getListAgentsApiV1AgentsGetQueryOptions(params, options);
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
|
||||
@@ -25,6 +25,7 @@ import type {
|
||||
ApprovalRead,
|
||||
ApprovalUpdate,
|
||||
HTTPValidationError,
|
||||
LimitOffsetPageTypeVarCustomizedApprovalRead,
|
||||
ListApprovalsApiV1BoardsBoardIdApprovalsGetParams,
|
||||
StreamApprovalsApiV1BoardsBoardIdApprovalsStreamGetParams,
|
||||
} from ".././model";
|
||||
@@ -37,7 +38,7 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
* @summary List Approvals
|
||||
*/
|
||||
export type listApprovalsApiV1BoardsBoardIdApprovalsGetResponse200 = {
|
||||
data: ApprovalRead[];
|
||||
data: LimitOffsetPageTypeVarCustomizedApprovalRead;
|
||||
status: 200;
|
||||
};
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ import type {
|
||||
BoardMemoryCreate,
|
||||
BoardMemoryRead,
|
||||
HTTPValidationError,
|
||||
LimitOffsetPageTypeVarCustomizedBoardMemoryRead,
|
||||
ListBoardMemoryApiV1BoardsBoardIdMemoryGetParams,
|
||||
StreamBoardMemoryApiV1BoardsBoardIdMemoryStreamGetParams,
|
||||
} from ".././model";
|
||||
@@ -36,7 +37,7 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
* @summary List Board Memory
|
||||
*/
|
||||
export type listBoardMemoryApiV1BoardsBoardIdMemoryGetResponse200 = {
|
||||
data: BoardMemoryRead[];
|
||||
data: LimitOffsetPageTypeVarCustomizedBoardMemoryRead;
|
||||
status: 200;
|
||||
};
|
||||
|
||||
|
||||
@@ -23,8 +23,11 @@ import type {
|
||||
import type {
|
||||
BoardCreate,
|
||||
BoardRead,
|
||||
BoardSnapshot,
|
||||
BoardUpdate,
|
||||
HTTPValidationError,
|
||||
LimitOffsetPageTypeVarCustomizedBoardRead,
|
||||
ListBoardsApiV1BoardsGetParams,
|
||||
OkResponse,
|
||||
} from ".././model";
|
||||
|
||||
@@ -36,7 +39,7 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
* @summary List Boards
|
||||
*/
|
||||
export type listBoardsApiV1BoardsGetResponse200 = {
|
||||
data: BoardRead[];
|
||||
data: LimitOffsetPageTypeVarCustomizedBoardRead;
|
||||
status: 200;
|
||||
};
|
||||
|
||||
@@ -58,15 +61,30 @@ export type listBoardsApiV1BoardsGetResponse =
|
||||
| listBoardsApiV1BoardsGetResponseSuccess
|
||||
| listBoardsApiV1BoardsGetResponseError;
|
||||
|
||||
export const getListBoardsApiV1BoardsGetUrl = () => {
|
||||
return `/api/v1/boards`;
|
||||
export const getListBoardsApiV1BoardsGetUrl = (
|
||||
params?: ListBoardsApiV1BoardsGetParams,
|
||||
) => {
|
||||
const normalizedParams = new URLSearchParams();
|
||||
|
||||
Object.entries(params || {}).forEach(([key, value]) => {
|
||||
if (value !== undefined) {
|
||||
normalizedParams.append(key, value === null ? "null" : value.toString());
|
||||
}
|
||||
});
|
||||
|
||||
const stringifiedParams = normalizedParams.toString();
|
||||
|
||||
return stringifiedParams.length > 0
|
||||
? `/api/v1/boards?${stringifiedParams}`
|
||||
: `/api/v1/boards`;
|
||||
};
|
||||
|
||||
export const listBoardsApiV1BoardsGet = async (
|
||||
params?: ListBoardsApiV1BoardsGetParams,
|
||||
options?: RequestInit,
|
||||
): Promise<listBoardsApiV1BoardsGetResponse> => {
|
||||
return customFetch<listBoardsApiV1BoardsGetResponse>(
|
||||
getListBoardsApiV1BoardsGetUrl(),
|
||||
getListBoardsApiV1BoardsGetUrl(params),
|
||||
{
|
||||
...options,
|
||||
method: "GET",
|
||||
@@ -74,31 +92,37 @@ export const listBoardsApiV1BoardsGet = async (
|
||||
);
|
||||
};
|
||||
|
||||
export const getListBoardsApiV1BoardsGetQueryKey = () => {
|
||||
return [`/api/v1/boards`] as const;
|
||||
export const getListBoardsApiV1BoardsGetQueryKey = (
|
||||
params?: ListBoardsApiV1BoardsGetParams,
|
||||
) => {
|
||||
return [`/api/v1/boards`, ...(params ? [params] : [])] as const;
|
||||
};
|
||||
|
||||
export const getListBoardsApiV1BoardsGetQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof listBoardsApiV1BoardsGet>>,
|
||||
TError = HTTPValidationError,
|
||||
>(options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof listBoardsApiV1BoardsGet>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}) => {
|
||||
>(
|
||||
params?: ListBoardsApiV1BoardsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof listBoardsApiV1BoardsGet>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
) => {
|
||||
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||
|
||||
const queryKey =
|
||||
queryOptions?.queryKey ?? getListBoardsApiV1BoardsGetQueryKey();
|
||||
queryOptions?.queryKey ?? getListBoardsApiV1BoardsGetQueryKey(params);
|
||||
|
||||
const queryFn: QueryFunction<
|
||||
Awaited<ReturnType<typeof listBoardsApiV1BoardsGet>>
|
||||
> = ({ signal }) => listBoardsApiV1BoardsGet({ signal, ...requestOptions });
|
||||
> = ({ signal }) =>
|
||||
listBoardsApiV1BoardsGet(params, { signal, ...requestOptions });
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||
Awaited<ReturnType<typeof listBoardsApiV1BoardsGet>>,
|
||||
@@ -116,6 +140,7 @@ export function useListBoardsApiV1BoardsGet<
|
||||
TData = Awaited<ReturnType<typeof listBoardsApiV1BoardsGet>>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params: undefined | ListBoardsApiV1BoardsGetParams,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -142,6 +167,7 @@ export function useListBoardsApiV1BoardsGet<
|
||||
TData = Awaited<ReturnType<typeof listBoardsApiV1BoardsGet>>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params?: ListBoardsApiV1BoardsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -168,6 +194,7 @@ export function useListBoardsApiV1BoardsGet<
|
||||
TData = Awaited<ReturnType<typeof listBoardsApiV1BoardsGet>>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params?: ListBoardsApiV1BoardsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -190,6 +217,7 @@ export function useListBoardsApiV1BoardsGet<
|
||||
TData = Awaited<ReturnType<typeof listBoardsApiV1BoardsGet>>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params?: ListBoardsApiV1BoardsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -204,7 +232,7 @@ export function useListBoardsApiV1BoardsGet<
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getListBoardsApiV1BoardsGetQueryOptions(options);
|
||||
const queryOptions = getListBoardsApiV1BoardsGetQueryOptions(params, options);
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
@@ -765,3 +793,240 @@ export const useDeleteBoardApiV1BoardsBoardIdDelete = <
|
||||
queryClient,
|
||||
);
|
||||
};
|
||||
/**
|
||||
* @summary Get Board Snapshot
|
||||
*/
|
||||
export type getBoardSnapshotApiV1BoardsBoardIdSnapshotGetResponse200 = {
|
||||
data: BoardSnapshot;
|
||||
status: 200;
|
||||
};
|
||||
|
||||
export type getBoardSnapshotApiV1BoardsBoardIdSnapshotGetResponse422 = {
|
||||
data: HTTPValidationError;
|
||||
status: 422;
|
||||
};
|
||||
|
||||
export type getBoardSnapshotApiV1BoardsBoardIdSnapshotGetResponseSuccess =
|
||||
getBoardSnapshotApiV1BoardsBoardIdSnapshotGetResponse200 & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type getBoardSnapshotApiV1BoardsBoardIdSnapshotGetResponseError =
|
||||
getBoardSnapshotApiV1BoardsBoardIdSnapshotGetResponse422 & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type getBoardSnapshotApiV1BoardsBoardIdSnapshotGetResponse =
|
||||
| getBoardSnapshotApiV1BoardsBoardIdSnapshotGetResponseSuccess
|
||||
| getBoardSnapshotApiV1BoardsBoardIdSnapshotGetResponseError;
|
||||
|
||||
export const getGetBoardSnapshotApiV1BoardsBoardIdSnapshotGetUrl = (
|
||||
boardId: string,
|
||||
) => {
|
||||
return `/api/v1/boards/${boardId}/snapshot`;
|
||||
};
|
||||
|
||||
export const getBoardSnapshotApiV1BoardsBoardIdSnapshotGet = async (
|
||||
boardId: string,
|
||||
options?: RequestInit,
|
||||
): Promise<getBoardSnapshotApiV1BoardsBoardIdSnapshotGetResponse> => {
|
||||
return customFetch<getBoardSnapshotApiV1BoardsBoardIdSnapshotGetResponse>(
|
||||
getGetBoardSnapshotApiV1BoardsBoardIdSnapshotGetUrl(boardId),
|
||||
{
|
||||
...options,
|
||||
method: "GET",
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
export const getGetBoardSnapshotApiV1BoardsBoardIdSnapshotGetQueryKey = (
|
||||
boardId: string,
|
||||
) => {
|
||||
return [`/api/v1/boards/${boardId}/snapshot`] as const;
|
||||
};
|
||||
|
||||
export const getGetBoardSnapshotApiV1BoardsBoardIdSnapshotGetQueryOptions = <
|
||||
TData = Awaited<
|
||||
ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>
|
||||
>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
boardId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>
|
||||
>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
) => {
|
||||
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||
|
||||
const queryKey =
|
||||
queryOptions?.queryKey ??
|
||||
getGetBoardSnapshotApiV1BoardsBoardIdSnapshotGetQueryKey(boardId);
|
||||
|
||||
const queryFn: QueryFunction<
|
||||
Awaited<ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>>
|
||||
> = ({ signal }) =>
|
||||
getBoardSnapshotApiV1BoardsBoardIdSnapshotGet(boardId, {
|
||||
signal,
|
||||
...requestOptions,
|
||||
});
|
||||
|
||||
return {
|
||||
queryKey,
|
||||
queryFn,
|
||||
enabled: !!boardId,
|
||||
...queryOptions,
|
||||
} as UseQueryOptions<
|
||||
Awaited<ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>>,
|
||||
TError,
|
||||
TData
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
};
|
||||
|
||||
export type GetBoardSnapshotApiV1BoardsBoardIdSnapshotGetQueryResult =
|
||||
NonNullable<
|
||||
Awaited<ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>>
|
||||
>;
|
||||
export type GetBoardSnapshotApiV1BoardsBoardIdSnapshotGetQueryError =
|
||||
HTTPValidationError;
|
||||
|
||||
export function useGetBoardSnapshotApiV1BoardsBoardIdSnapshotGet<
|
||||
TData = Awaited<
|
||||
ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>
|
||||
>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
boardId: string,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>
|
||||
>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
> &
|
||||
Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>
|
||||
>,
|
||||
TError,
|
||||
Awaited<
|
||||
ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>
|
||||
>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useGetBoardSnapshotApiV1BoardsBoardIdSnapshotGet<
|
||||
TData = Awaited<
|
||||
ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>
|
||||
>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
boardId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>
|
||||
>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
> &
|
||||
Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>
|
||||
>,
|
||||
TError,
|
||||
Awaited<
|
||||
ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>
|
||||
>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useGetBoardSnapshotApiV1BoardsBoardIdSnapshotGet<
|
||||
TData = Awaited<
|
||||
ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>
|
||||
>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
boardId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>
|
||||
>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
/**
|
||||
* @summary Get Board Snapshot
|
||||
*/
|
||||
|
||||
export function useGetBoardSnapshotApiV1BoardsBoardIdSnapshotGet<
|
||||
TData = Awaited<
|
||||
ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>
|
||||
>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
boardId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<
|
||||
ReturnType<typeof getBoardSnapshotApiV1BoardsBoardIdSnapshotGet>
|
||||
>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions =
|
||||
getGetBoardSnapshotApiV1BoardsBoardIdSnapshotGetQueryOptions(
|
||||
boardId,
|
||||
options,
|
||||
);
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
return { ...query, queryKey: queryOptions.queryKey };
|
||||
}
|
||||
|
||||
@@ -34,7 +34,9 @@ import type {
|
||||
GetGatewaySessionApiV1GatewaysSessionsSessionIdGetParams,
|
||||
GetSessionHistoryApiV1GatewaysSessionsSessionIdHistoryGetParams,
|
||||
HTTPValidationError,
|
||||
LimitOffsetPageTypeVarCustomizedGatewayRead,
|
||||
ListGatewaySessionsApiV1GatewaysSessionsGetParams,
|
||||
ListGatewaysApiV1GatewaysGetParams,
|
||||
OkResponse,
|
||||
SendGatewaySessionMessageApiV1GatewaysSessionsSessionIdMessagePostParams,
|
||||
} from ".././model";
|
||||
@@ -1451,26 +1453,52 @@ export function useGatewayCommandsApiV1GatewaysCommandsGet<
|
||||
* @summary List Gateways
|
||||
*/
|
||||
export type listGatewaysApiV1GatewaysGetResponse200 = {
|
||||
data: GatewayRead[];
|
||||
data: LimitOffsetPageTypeVarCustomizedGatewayRead;
|
||||
status: 200;
|
||||
};
|
||||
|
||||
export type listGatewaysApiV1GatewaysGetResponse422 = {
|
||||
data: HTTPValidationError;
|
||||
status: 422;
|
||||
};
|
||||
|
||||
export type listGatewaysApiV1GatewaysGetResponseSuccess =
|
||||
listGatewaysApiV1GatewaysGetResponse200 & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type listGatewaysApiV1GatewaysGetResponse =
|
||||
listGatewaysApiV1GatewaysGetResponseSuccess;
|
||||
export type listGatewaysApiV1GatewaysGetResponseError =
|
||||
listGatewaysApiV1GatewaysGetResponse422 & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export const getListGatewaysApiV1GatewaysGetUrl = () => {
|
||||
return `/api/v1/gateways`;
|
||||
export type listGatewaysApiV1GatewaysGetResponse =
|
||||
| listGatewaysApiV1GatewaysGetResponseSuccess
|
||||
| listGatewaysApiV1GatewaysGetResponseError;
|
||||
|
||||
export const getListGatewaysApiV1GatewaysGetUrl = (
|
||||
params?: ListGatewaysApiV1GatewaysGetParams,
|
||||
) => {
|
||||
const normalizedParams = new URLSearchParams();
|
||||
|
||||
Object.entries(params || {}).forEach(([key, value]) => {
|
||||
if (value !== undefined) {
|
||||
normalizedParams.append(key, value === null ? "null" : value.toString());
|
||||
}
|
||||
});
|
||||
|
||||
const stringifiedParams = normalizedParams.toString();
|
||||
|
||||
return stringifiedParams.length > 0
|
||||
? `/api/v1/gateways?${stringifiedParams}`
|
||||
: `/api/v1/gateways`;
|
||||
};
|
||||
|
||||
export const listGatewaysApiV1GatewaysGet = async (
|
||||
params?: ListGatewaysApiV1GatewaysGetParams,
|
||||
options?: RequestInit,
|
||||
): Promise<listGatewaysApiV1GatewaysGetResponse> => {
|
||||
return customFetch<listGatewaysApiV1GatewaysGetResponse>(
|
||||
getListGatewaysApiV1GatewaysGetUrl(),
|
||||
getListGatewaysApiV1GatewaysGetUrl(params),
|
||||
{
|
||||
...options,
|
||||
method: "GET",
|
||||
@@ -1478,32 +1506,37 @@ export const listGatewaysApiV1GatewaysGet = async (
|
||||
);
|
||||
};
|
||||
|
||||
export const getListGatewaysApiV1GatewaysGetQueryKey = () => {
|
||||
return [`/api/v1/gateways`] as const;
|
||||
export const getListGatewaysApiV1GatewaysGetQueryKey = (
|
||||
params?: ListGatewaysApiV1GatewaysGetParams,
|
||||
) => {
|
||||
return [`/api/v1/gateways`, ...(params ? [params] : [])] as const;
|
||||
};
|
||||
|
||||
export const getListGatewaysApiV1GatewaysGetQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof listGatewaysApiV1GatewaysGet>>,
|
||||
TError = unknown,
|
||||
>(options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof listGatewaysApiV1GatewaysGet>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}) => {
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params?: ListGatewaysApiV1GatewaysGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof listGatewaysApiV1GatewaysGet>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
) => {
|
||||
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||
|
||||
const queryKey =
|
||||
queryOptions?.queryKey ?? getListGatewaysApiV1GatewaysGetQueryKey();
|
||||
queryOptions?.queryKey ?? getListGatewaysApiV1GatewaysGetQueryKey(params);
|
||||
|
||||
const queryFn: QueryFunction<
|
||||
Awaited<ReturnType<typeof listGatewaysApiV1GatewaysGet>>
|
||||
> = ({ signal }) =>
|
||||
listGatewaysApiV1GatewaysGet({ signal, ...requestOptions });
|
||||
listGatewaysApiV1GatewaysGet(params, { signal, ...requestOptions });
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||
Awaited<ReturnType<typeof listGatewaysApiV1GatewaysGet>>,
|
||||
@@ -1515,12 +1548,13 @@ export const getListGatewaysApiV1GatewaysGetQueryOptions = <
|
||||
export type ListGatewaysApiV1GatewaysGetQueryResult = NonNullable<
|
||||
Awaited<ReturnType<typeof listGatewaysApiV1GatewaysGet>>
|
||||
>;
|
||||
export type ListGatewaysApiV1GatewaysGetQueryError = unknown;
|
||||
export type ListGatewaysApiV1GatewaysGetQueryError = HTTPValidationError;
|
||||
|
||||
export function useListGatewaysApiV1GatewaysGet<
|
||||
TData = Awaited<ReturnType<typeof listGatewaysApiV1GatewaysGet>>,
|
||||
TError = unknown,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params: undefined | ListGatewaysApiV1GatewaysGetParams,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -1545,8 +1579,9 @@ export function useListGatewaysApiV1GatewaysGet<
|
||||
};
|
||||
export function useListGatewaysApiV1GatewaysGet<
|
||||
TData = Awaited<ReturnType<typeof listGatewaysApiV1GatewaysGet>>,
|
||||
TError = unknown,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params?: ListGatewaysApiV1GatewaysGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -1571,8 +1606,9 @@ export function useListGatewaysApiV1GatewaysGet<
|
||||
};
|
||||
export function useListGatewaysApiV1GatewaysGet<
|
||||
TData = Awaited<ReturnType<typeof listGatewaysApiV1GatewaysGet>>,
|
||||
TError = unknown,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params?: ListGatewaysApiV1GatewaysGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -1593,8 +1629,9 @@ export function useListGatewaysApiV1GatewaysGet<
|
||||
|
||||
export function useListGatewaysApiV1GatewaysGet<
|
||||
TData = Awaited<ReturnType<typeof listGatewaysApiV1GatewaysGet>>,
|
||||
TError = unknown,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params?: ListGatewaysApiV1GatewaysGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -1609,7 +1646,10 @@ export function useListGatewaysApiV1GatewaysGet<
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getListGatewaysApiV1GatewaysGetQueryOptions(options);
|
||||
const queryOptions = getListGatewaysApiV1GatewaysGetQueryOptions(
|
||||
params,
|
||||
options,
|
||||
);
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
|
||||
@@ -10,6 +10,7 @@ import type { ApprovalCreateStatus } from "./approvalCreateStatus";
|
||||
|
||||
export interface ApprovalCreate {
|
||||
action_type: string;
|
||||
task_id?: string | null;
|
||||
payload?: ApprovalCreatePayload;
|
||||
confidence: number;
|
||||
rubric_scores?: ApprovalCreateRubricScores;
|
||||
|
||||
@@ -10,6 +10,7 @@ import type { ApprovalReadStatus } from "./approvalReadStatus";
|
||||
|
||||
export interface ApprovalRead {
|
||||
action_type: string;
|
||||
task_id?: string | null;
|
||||
payload?: ApprovalReadPayload;
|
||||
confidence: number;
|
||||
rubric_scores?: ApprovalReadRubricScores;
|
||||
|
||||
@@ -12,5 +12,6 @@ export interface BoardMemoryRead {
|
||||
source?: string | null;
|
||||
id: string;
|
||||
board_id: string;
|
||||
is_chat?: boolean;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
20
frontend/src/api/generated/model/boardSnapshot.ts
Normal file
20
frontend/src/api/generated/model/boardSnapshot.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { AgentRead } from "./agentRead";
|
||||
import type { ApprovalRead } from "./approvalRead";
|
||||
import type { BoardMemoryRead } from "./boardMemoryRead";
|
||||
import type { BoardRead } from "./boardRead";
|
||||
import type { TaskCardRead } from "./taskCardRead";
|
||||
|
||||
export interface BoardSnapshot {
|
||||
board: BoardRead;
|
||||
tasks: TaskCardRead[];
|
||||
agents: AgentRead[];
|
||||
approvals: ApprovalRead[];
|
||||
chat_messages: BoardMemoryRead[];
|
||||
pending_approvals_count?: number;
|
||||
}
|
||||
@@ -46,6 +46,7 @@ export * from "./boardOnboardingReadMessages";
|
||||
export * from "./boardOnboardingStart";
|
||||
export * from "./boardRead";
|
||||
export * from "./boardReadSuccessMetrics";
|
||||
export * from "./boardSnapshot";
|
||||
export * from "./boardUpdate";
|
||||
export * from "./boardUpdateSuccessMetrics";
|
||||
export * from "./confirmDeleteAgentApiV1AgentsAgentIdDeleteConfirmPost200";
|
||||
@@ -90,15 +91,29 @@ export * from "./getSessionHistoryApiV1GatewaysSessionsSessionIdHistoryGetParams
|
||||
export * from "./healthHealthGet200";
|
||||
export * from "./healthzHealthzGet200";
|
||||
export * from "./hTTPValidationError";
|
||||
export * from "./limitOffsetPageTypeVarCustomizedActivityEventRead";
|
||||
export * from "./limitOffsetPageTypeVarCustomizedAgentRead";
|
||||
export * from "./limitOffsetPageTypeVarCustomizedApprovalRead";
|
||||
export * from "./limitOffsetPageTypeVarCustomizedBoardMemoryRead";
|
||||
export * from "./limitOffsetPageTypeVarCustomizedBoardRead";
|
||||
export * from "./limitOffsetPageTypeVarCustomizedGatewayRead";
|
||||
export * from "./limitOffsetPageTypeVarCustomizedTaskCommentRead";
|
||||
export * from "./limitOffsetPageTypeVarCustomizedTaskRead";
|
||||
export * from "./listActivityApiV1ActivityGetParams";
|
||||
export * from "./listAgentsApiV1AgentAgentsGetParams";
|
||||
export * from "./listAgentsApiV1AgentsGetParams";
|
||||
export * from "./listApprovalsApiV1AgentBoardsBoardIdApprovalsGetParams";
|
||||
export * from "./listApprovalsApiV1BoardsBoardIdApprovalsGetParams";
|
||||
export * from "./listBoardMemoryApiV1AgentBoardsBoardIdMemoryGetParams";
|
||||
export * from "./listBoardMemoryApiV1BoardsBoardIdMemoryGetParams";
|
||||
export * from "./listBoardsApiV1AgentBoardsGetParams";
|
||||
export * from "./listBoardsApiV1BoardsGetParams";
|
||||
export * from "./listGatewaysApiV1GatewaysGetParams";
|
||||
export * from "./listGatewaySessionsApiV1GatewaysSessionsGetParams";
|
||||
export * from "./listSessionsApiV1GatewaySessionsGet200";
|
||||
export * from "./listSessionsApiV1GatewaySessionsGetParams";
|
||||
export * from "./listTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetParams";
|
||||
export * from "./listTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetParams";
|
||||
export * from "./listTasksApiV1AgentBoardsBoardIdTasksGetParams";
|
||||
export * from "./listTasksApiV1BoardsBoardIdTasksGetParams";
|
||||
export * from "./okResponse";
|
||||
@@ -111,6 +126,8 @@ export * from "./streamAgentsApiV1AgentsStreamGetParams";
|
||||
export * from "./streamApprovalsApiV1BoardsBoardIdApprovalsStreamGetParams";
|
||||
export * from "./streamBoardMemoryApiV1BoardsBoardIdMemoryStreamGetParams";
|
||||
export * from "./streamTasksApiV1BoardsBoardIdTasksStreamGetParams";
|
||||
export * from "./taskCardRead";
|
||||
export * from "./taskCardReadStatus";
|
||||
export * from "./taskCommentCreate";
|
||||
export * from "./taskCommentRead";
|
||||
export * from "./taskCreate";
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ActivityEventRead } from "./activityEventRead";
|
||||
|
||||
export interface LimitOffsetPageTypeVarCustomizedActivityEventRead {
|
||||
items: ActivityEventRead[];
|
||||
/** @minimum 0 */
|
||||
total: number;
|
||||
/** @minimum 1 */
|
||||
limit: number;
|
||||
/** @minimum 0 */
|
||||
offset: number;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { AgentRead } from "./agentRead";
|
||||
|
||||
export interface LimitOffsetPageTypeVarCustomizedAgentRead {
|
||||
items: AgentRead[];
|
||||
/** @minimum 0 */
|
||||
total: number;
|
||||
/** @minimum 1 */
|
||||
limit: number;
|
||||
/** @minimum 0 */
|
||||
offset: number;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ApprovalRead } from "./approvalRead";
|
||||
|
||||
export interface LimitOffsetPageTypeVarCustomizedApprovalRead {
|
||||
items: ApprovalRead[];
|
||||
/** @minimum 0 */
|
||||
total: number;
|
||||
/** @minimum 1 */
|
||||
limit: number;
|
||||
/** @minimum 0 */
|
||||
offset: number;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { BoardMemoryRead } from "./boardMemoryRead";
|
||||
|
||||
export interface LimitOffsetPageTypeVarCustomizedBoardMemoryRead {
|
||||
items: BoardMemoryRead[];
|
||||
/** @minimum 0 */
|
||||
total: number;
|
||||
/** @minimum 1 */
|
||||
limit: number;
|
||||
/** @minimum 0 */
|
||||
offset: number;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { BoardRead } from "./boardRead";
|
||||
|
||||
export interface LimitOffsetPageTypeVarCustomizedBoardRead {
|
||||
items: BoardRead[];
|
||||
/** @minimum 0 */
|
||||
total: number;
|
||||
/** @minimum 1 */
|
||||
limit: number;
|
||||
/** @minimum 0 */
|
||||
offset: number;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { GatewayRead } from "./gatewayRead";
|
||||
|
||||
export interface LimitOffsetPageTypeVarCustomizedGatewayRead {
|
||||
items: GatewayRead[];
|
||||
/** @minimum 0 */
|
||||
total: number;
|
||||
/** @minimum 1 */
|
||||
limit: number;
|
||||
/** @minimum 0 */
|
||||
offset: number;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { TaskCommentRead } from "./taskCommentRead";
|
||||
|
||||
export interface LimitOffsetPageTypeVarCustomizedTaskCommentRead {
|
||||
items: TaskCommentRead[];
|
||||
/** @minimum 0 */
|
||||
total: number;
|
||||
/** @minimum 1 */
|
||||
limit: number;
|
||||
/** @minimum 0 */
|
||||
offset: number;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { TaskRead } from "./taskRead";
|
||||
|
||||
export interface LimitOffsetPageTypeVarCustomizedTaskRead {
|
||||
items: TaskRead[];
|
||||
/** @minimum 0 */
|
||||
total: number;
|
||||
/** @minimum 1 */
|
||||
limit: number;
|
||||
/** @minimum 0 */
|
||||
offset: number;
|
||||
}
|
||||
@@ -7,5 +7,13 @@
|
||||
|
||||
export type ListAgentsApiV1AgentAgentsGetParams = {
|
||||
board_id?: string | null;
|
||||
limit?: number | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 200
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* @minimum 0
|
||||
*/
|
||||
offset?: number;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ListAgentsApiV1AgentsGetParams = {
|
||||
board_id?: string | null;
|
||||
gateway_id?: string | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 200
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* @minimum 0
|
||||
*/
|
||||
offset?: number;
|
||||
};
|
||||
@@ -7,4 +7,13 @@
|
||||
|
||||
export type ListApprovalsApiV1AgentBoardsBoardIdApprovalsGetParams = {
|
||||
status?: "pending" | "approved" | "rejected" | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 200
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* @minimum 0
|
||||
*/
|
||||
offset?: number;
|
||||
};
|
||||
|
||||
@@ -7,4 +7,13 @@
|
||||
|
||||
export type ListApprovalsApiV1BoardsBoardIdApprovalsGetParams = {
|
||||
status?: "pending" | "approved" | "rejected" | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 200
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* @minimum 0
|
||||
*/
|
||||
offset?: number;
|
||||
};
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
export type ListBoardMemoryApiV1BoardsBoardIdMemoryGetParams = {
|
||||
is_chat?: boolean | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 200
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ListBoardsApiV1AgentBoardsGetParams = {
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 200
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* @minimum 0
|
||||
*/
|
||||
offset?: number;
|
||||
};
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ListBoardsApiV1BoardsGetParams = {
|
||||
gateway_id?: string | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 200
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* @minimum 0
|
||||
*/
|
||||
offset?: number;
|
||||
};
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ListGatewaysApiV1GatewaysGetParams = {
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 200
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* @minimum 0
|
||||
*/
|
||||
offset?: number;
|
||||
};
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ListTaskCommentsApiV1AgentBoardsBoardIdTasksTaskIdCommentsGetParams =
|
||||
{
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 200
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* @minimum 0
|
||||
*/
|
||||
offset?: number;
|
||||
};
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetParams = {
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 200
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* @minimum 0
|
||||
*/
|
||||
offset?: number;
|
||||
};
|
||||
@@ -9,5 +9,13 @@ export type ListTasksApiV1AgentBoardsBoardIdTasksGetParams = {
|
||||
status?: string | null;
|
||||
assigned_agent_id?: string | null;
|
||||
unassigned?: boolean | null;
|
||||
limit?: number | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 200
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* @minimum 0
|
||||
*/
|
||||
offset?: number;
|
||||
};
|
||||
|
||||
@@ -9,5 +9,13 @@ export type ListTasksApiV1BoardsBoardIdTasksGetParams = {
|
||||
status?: string | null;
|
||||
assigned_agent_id?: string | null;
|
||||
unassigned?: boolean | null;
|
||||
limit?: number | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 200
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* @minimum 0
|
||||
*/
|
||||
offset?: number;
|
||||
};
|
||||
|
||||
@@ -7,4 +7,5 @@
|
||||
|
||||
export type StreamBoardMemoryApiV1BoardsBoardIdMemoryStreamGetParams = {
|
||||
since?: string | null;
|
||||
is_chat?: boolean | null;
|
||||
};
|
||||
|
||||
25
frontend/src/api/generated/model/taskCardRead.ts
Normal file
25
frontend/src/api/generated/model/taskCardRead.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { TaskCardReadStatus } from "./taskCardReadStatus";
|
||||
|
||||
export interface TaskCardRead {
|
||||
title: string;
|
||||
description?: string | null;
|
||||
status?: TaskCardReadStatus;
|
||||
priority?: string;
|
||||
due_at?: string | null;
|
||||
assigned_agent_id?: string | null;
|
||||
id: string;
|
||||
board_id: string | null;
|
||||
created_by_user_id: string | null;
|
||||
in_progress_at: string | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
assignee?: string | null;
|
||||
approvals_count?: number;
|
||||
approvals_pending_count?: number;
|
||||
}
|
||||
16
frontend/src/api/generated/model/taskCardReadStatus.ts
Normal file
16
frontend/src/api/generated/model/taskCardReadStatus.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by orval v8.2.0 🍺
|
||||
* Do not edit manually.
|
||||
* Mission Control API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type TaskCardReadStatus =
|
||||
(typeof TaskCardReadStatus)[keyof typeof TaskCardReadStatus];
|
||||
|
||||
export const TaskCardReadStatus = {
|
||||
inbox: "inbox",
|
||||
in_progress: "in_progress",
|
||||
review: "review",
|
||||
done: "done",
|
||||
} as const;
|
||||
@@ -22,6 +22,9 @@ import type {
|
||||
|
||||
import type {
|
||||
HTTPValidationError,
|
||||
LimitOffsetPageTypeVarCustomizedTaskCommentRead,
|
||||
LimitOffsetPageTypeVarCustomizedTaskRead,
|
||||
ListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
ListTasksApiV1BoardsBoardIdTasksGetParams,
|
||||
OkResponse,
|
||||
StreamTasksApiV1BoardsBoardIdTasksStreamGetParams,
|
||||
@@ -292,7 +295,7 @@ export function useStreamTasksApiV1BoardsBoardIdTasksStreamGet<
|
||||
* @summary List Tasks
|
||||
*/
|
||||
export type listTasksApiV1BoardsBoardIdTasksGetResponse200 = {
|
||||
data: TaskRead[];
|
||||
data: LimitOffsetPageTypeVarCustomizedTaskRead;
|
||||
status: 200;
|
||||
};
|
||||
|
||||
@@ -900,7 +903,7 @@ export const useDeleteTaskApiV1BoardsBoardIdTasksTaskIdDelete = <
|
||||
*/
|
||||
export type listTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetResponse200 =
|
||||
{
|
||||
data: TaskCommentRead[];
|
||||
data: LimitOffsetPageTypeVarCustomizedTaskCommentRead;
|
||||
status: 200;
|
||||
};
|
||||
|
||||
@@ -926,19 +929,34 @@ export type listTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetResponse =
|
||||
export const getListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetUrl = (
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params?: ListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
) => {
|
||||
return `/api/v1/boards/${boardId}/tasks/${taskId}/comments`;
|
||||
const normalizedParams = new URLSearchParams();
|
||||
|
||||
Object.entries(params || {}).forEach(([key, value]) => {
|
||||
if (value !== undefined) {
|
||||
normalizedParams.append(key, value === null ? "null" : value.toString());
|
||||
}
|
||||
});
|
||||
|
||||
const stringifiedParams = normalizedParams.toString();
|
||||
|
||||
return stringifiedParams.length > 0
|
||||
? `/api/v1/boards/${boardId}/tasks/${taskId}/comments?${stringifiedParams}`
|
||||
: `/api/v1/boards/${boardId}/tasks/${taskId}/comments`;
|
||||
};
|
||||
|
||||
export const listTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGet = async (
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params?: ListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
options?: RequestInit,
|
||||
): Promise<listTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetResponse> => {
|
||||
return customFetch<listTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetResponse>(
|
||||
getListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetUrl(
|
||||
boardId,
|
||||
taskId,
|
||||
params,
|
||||
),
|
||||
{
|
||||
...options,
|
||||
@@ -948,8 +966,15 @@ export const listTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGet = async (
|
||||
};
|
||||
|
||||
export const getListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetQueryKey =
|
||||
(boardId: string, taskId: string) => {
|
||||
return [`/api/v1/boards/${boardId}/tasks/${taskId}/comments`] as const;
|
||||
(
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params?: ListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
) => {
|
||||
return [
|
||||
`/api/v1/boards/${boardId}/tasks/${taskId}/comments`,
|
||||
...(params ? [params] : []),
|
||||
] as const;
|
||||
};
|
||||
|
||||
export const getListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetQueryOptions =
|
||||
@@ -963,6 +988,7 @@ export const getListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetQueryOpt
|
||||
>(
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params?: ListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -985,6 +1011,7 @@ export const getListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetQueryOpt
|
||||
getListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetQueryKey(
|
||||
boardId,
|
||||
taskId,
|
||||
params,
|
||||
);
|
||||
|
||||
const queryFn: QueryFunction<
|
||||
@@ -997,6 +1024,7 @@ export const getListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetQueryOpt
|
||||
listTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGet(
|
||||
boardId,
|
||||
taskId,
|
||||
params,
|
||||
{ signal, ...requestOptions },
|
||||
);
|
||||
|
||||
@@ -1035,6 +1063,9 @@ export function useListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGet<
|
||||
>(
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params:
|
||||
| undefined
|
||||
| ListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -1077,6 +1108,7 @@ export function useListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGet<
|
||||
>(
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params?: ListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -1119,6 +1151,7 @@ export function useListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGet<
|
||||
>(
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params?: ListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -1149,6 +1182,7 @@ export function useListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGet<
|
||||
>(
|
||||
boardId: string,
|
||||
taskId: string,
|
||||
params?: ListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
@@ -1171,6 +1205,7 @@ export function useListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGet<
|
||||
getListTaskCommentsApiV1BoardsBoardIdTasksTaskIdCommentsGetQueryOptions(
|
||||
boardId,
|
||||
taskId,
|
||||
params,
|
||||
options,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user