feat(runtime-usage): dashboard cards, session enrichment, and regenerated API client (batch 2, #31)
This commit is contained in:
parent
9edaa5eb41
commit
609d04095d
|
|
@ -0,0 +1,800 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||||
|
import type {
|
||||||
|
DataTag,
|
||||||
|
DefinedInitialDataOptions,
|
||||||
|
DefinedUseQueryResult,
|
||||||
|
MutationFunction,
|
||||||
|
QueryClient,
|
||||||
|
QueryFunction,
|
||||||
|
QueryKey,
|
||||||
|
UndefinedInitialDataOptions,
|
||||||
|
UseMutationOptions,
|
||||||
|
UseMutationResult,
|
||||||
|
UseQueryOptions,
|
||||||
|
UseQueryResult,
|
||||||
|
} from "@tanstack/react-query";
|
||||||
|
|
||||||
|
import type {
|
||||||
|
CloseIssueResponse,
|
||||||
|
ForgejoIssueListResponse,
|
||||||
|
ForgejoIssueRead,
|
||||||
|
HTTPValidationError,
|
||||||
|
ListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetParams,
|
||||||
|
} from ".././model";
|
||||||
|
|
||||||
|
import { customFetch } from "../../mutator";
|
||||||
|
|
||||||
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List Forgejo issues from repositories linked to the specified board.
|
||||||
|
|
||||||
|
Use this endpoint when an agent needs to discover issues across all repositories associated with its assigned board.
|
||||||
|
|
||||||
|
LLM Routing Guidance:
|
||||||
|
- Use when you need to list issues for a specific board's repositories
|
||||||
|
- Filter by state, search text, or assignee for targeted results
|
||||||
|
- Use this instead of generic issue lists when board context matters
|
||||||
|
- Exclude pull requests automatically
|
||||||
|
* @summary List issues for board's linked repositories
|
||||||
|
*/
|
||||||
|
export type listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetResponse200 = {
|
||||||
|
data: ForgejoIssueListResponse;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetResponse422 = {
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetResponseSuccess =
|
||||||
|
listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetResponseError =
|
||||||
|
listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetResponse =
|
||||||
|
| listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetResponseSuccess
|
||||||
|
| listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetResponseError;
|
||||||
|
|
||||||
|
export const getListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetUrl = (
|
||||||
|
boardId: string,
|
||||||
|
params?: ListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetParams,
|
||||||
|
) => {
|
||||||
|
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}/git/issues?${stringifiedParams}`
|
||||||
|
: `/api/v1/agent/boards/${boardId}/git/issues`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet = async (
|
||||||
|
boardId: string,
|
||||||
|
params?: ListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetParams,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetResponse> => {
|
||||||
|
return customFetch<listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetResponse>(
|
||||||
|
getListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetUrl(boardId, params),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "GET",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetQueryKey = (
|
||||||
|
boardId: string,
|
||||||
|
params?: ListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetParams,
|
||||||
|
) => {
|
||||||
|
return [
|
||||||
|
`/api/v1/agent/boards/${boardId}/git/issues`,
|
||||||
|
...(params ? [params] : []),
|
||||||
|
] as const;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetQueryOptions =
|
||||||
|
<
|
||||||
|
TData = Awaited<
|
||||||
|
ReturnType<typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet>
|
||||||
|
>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
boardId: string,
|
||||||
|
params?: ListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
) => {
|
||||||
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||||
|
|
||||||
|
const queryKey =
|
||||||
|
queryOptions?.queryKey ??
|
||||||
|
getListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetQueryKey(
|
||||||
|
boardId,
|
||||||
|
params,
|
||||||
|
);
|
||||||
|
|
||||||
|
const queryFn: QueryFunction<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet>
|
||||||
|
>
|
||||||
|
> = ({ signal }) =>
|
||||||
|
listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet(boardId, params, {
|
||||||
|
signal,
|
||||||
|
...requestOptions,
|
||||||
|
});
|
||||||
|
|
||||||
|
return {
|
||||||
|
queryKey,
|
||||||
|
queryFn,
|
||||||
|
enabled: !!boardId,
|
||||||
|
...queryOptions,
|
||||||
|
} as UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetQueryResult =
|
||||||
|
NonNullable<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet>
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
export type ListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetQueryError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
export function useListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet<
|
||||||
|
TData = Awaited<
|
||||||
|
ReturnType<typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet>
|
||||||
|
>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
boardId: string,
|
||||||
|
params: undefined | ListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetParams,
|
||||||
|
options: {
|
||||||
|
query: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
> &
|
||||||
|
Pick<
|
||||||
|
DefinedInitialDataOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet
|
||||||
|
>
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
"initialData"
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): DefinedUseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
export function useListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet<
|
||||||
|
TData = Awaited<
|
||||||
|
ReturnType<typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet>
|
||||||
|
>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
boardId: string,
|
||||||
|
params?: ListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
> &
|
||||||
|
Pick<
|
||||||
|
UndefinedInitialDataOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet
|
||||||
|
>
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
"initialData"
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
export function useListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet<
|
||||||
|
TData = Awaited<
|
||||||
|
ReturnType<typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet>
|
||||||
|
>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
boardId: string,
|
||||||
|
params?: ListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* @summary List issues for board's linked repositories
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function useListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet<
|
||||||
|
TData = Awaited<
|
||||||
|
ReturnType<typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet>
|
||||||
|
>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
boardId: string,
|
||||||
|
params?: ListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof listBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGet>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
} {
|
||||||
|
const queryOptions =
|
||||||
|
getListBoardIssuesApiV1AgentBoardsBoardIdGitIssuesGetQueryOptions(
|
||||||
|
boardId,
|
||||||
|
params,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
|
||||||
|
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||||
|
TData,
|
||||||
|
TError
|
||||||
|
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
|
||||||
|
return { ...query, queryKey: queryOptions.queryKey };
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read a specific Forgejo issue by id, ensuring it belongs to a repository linked to the specified board.
|
||||||
|
|
||||||
|
Use this endpoint when an agent needs to inspect a specific issue within the context of a board's repositories.
|
||||||
|
* @summary Read one issue from board-linked repositories
|
||||||
|
*/
|
||||||
|
export type readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetResponse200 =
|
||||||
|
{
|
||||||
|
data: ForgejoIssueRead;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetResponse422 =
|
||||||
|
{
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetResponseSuccess =
|
||||||
|
readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetResponseError =
|
||||||
|
readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetResponse =
|
||||||
|
| readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetResponseSuccess
|
||||||
|
| readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetResponseError;
|
||||||
|
|
||||||
|
export const getReadBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetUrl = (
|
||||||
|
boardId: string,
|
||||||
|
issueId: string,
|
||||||
|
) => {
|
||||||
|
return `/api/v1/agent/boards/${boardId}/git/issues/${issueId}`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet = async (
|
||||||
|
boardId: string,
|
||||||
|
issueId: string,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetResponse> => {
|
||||||
|
return customFetch<readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetResponse>(
|
||||||
|
getReadBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetUrl(
|
||||||
|
boardId,
|
||||||
|
issueId,
|
||||||
|
),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "GET",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getReadBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetQueryKey =
|
||||||
|
(boardId: string, issueId: string) => {
|
||||||
|
return [`/api/v1/agent/boards/${boardId}/git/issues/${issueId}`] as const;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getReadBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetQueryOptions =
|
||||||
|
<
|
||||||
|
TData = Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
boardId: string,
|
||||||
|
issueId: string,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
) => {
|
||||||
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||||
|
|
||||||
|
const queryKey =
|
||||||
|
queryOptions?.queryKey ??
|
||||||
|
getReadBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetQueryKey(
|
||||||
|
boardId,
|
||||||
|
issueId,
|
||||||
|
);
|
||||||
|
|
||||||
|
const queryFn: QueryFunction<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet
|
||||||
|
>
|
||||||
|
>
|
||||||
|
> = ({ signal }) =>
|
||||||
|
readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet(
|
||||||
|
boardId,
|
||||||
|
issueId,
|
||||||
|
{ signal, ...requestOptions },
|
||||||
|
);
|
||||||
|
|
||||||
|
return {
|
||||||
|
queryKey,
|
||||||
|
queryFn,
|
||||||
|
enabled: !!(boardId && issueId),
|
||||||
|
...queryOptions,
|
||||||
|
} as UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ReadBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetQueryResult =
|
||||||
|
NonNullable<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet
|
||||||
|
>
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
export type ReadBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetQueryError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
export function useReadBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet<
|
||||||
|
TData = Awaited<
|
||||||
|
ReturnType<typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet>
|
||||||
|
>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
boardId: string,
|
||||||
|
issueId: string,
|
||||||
|
options: {
|
||||||
|
query: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
> &
|
||||||
|
Pick<
|
||||||
|
DefinedInitialDataOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet
|
||||||
|
>
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
"initialData"
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): DefinedUseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
export function useReadBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet<
|
||||||
|
TData = Awaited<
|
||||||
|
ReturnType<typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet>
|
||||||
|
>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
boardId: string,
|
||||||
|
issueId: string,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
> &
|
||||||
|
Pick<
|
||||||
|
UndefinedInitialDataOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet
|
||||||
|
>
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
"initialData"
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
export function useReadBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet<
|
||||||
|
TData = Awaited<
|
||||||
|
ReturnType<typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet>
|
||||||
|
>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
boardId: string,
|
||||||
|
issueId: string,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* @summary Read one issue from board-linked repositories
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function useReadBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet<
|
||||||
|
TData = Awaited<
|
||||||
|
ReturnType<typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet>
|
||||||
|
>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
boardId: string,
|
||||||
|
issueId: string,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof readBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
} {
|
||||||
|
const queryOptions =
|
||||||
|
getReadBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdGetQueryOptions(
|
||||||
|
boardId,
|
||||||
|
issueId,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
|
||||||
|
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||||
|
TData,
|
||||||
|
TError
|
||||||
|
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
|
||||||
|
return { ...query, queryKey: queryOptions.queryKey };
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Close a Forgejo issue by its local ID as a board-lead agent. Only board lead agents can close issues. The issue must belong to a repository linked to the target board.
|
||||||
|
* @summary Close a Forgejo issue (agent)
|
||||||
|
*/
|
||||||
|
export type closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponse200 =
|
||||||
|
{
|
||||||
|
data: CloseIssueResponse;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponse403 =
|
||||||
|
{
|
||||||
|
data: void;
|
||||||
|
status: 403;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponse404 =
|
||||||
|
{
|
||||||
|
data: void;
|
||||||
|
status: 404;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponse409 =
|
||||||
|
{
|
||||||
|
data: void;
|
||||||
|
status: 409;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponse422 =
|
||||||
|
{
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponse502 =
|
||||||
|
{
|
||||||
|
data: void;
|
||||||
|
status: 502;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponseSuccess =
|
||||||
|
closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponseError =
|
||||||
|
(
|
||||||
|
| closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponse403
|
||||||
|
| closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponse404
|
||||||
|
| closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponse409
|
||||||
|
| closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponse422
|
||||||
|
| closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponse502
|
||||||
|
) & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponse =
|
||||||
|
|
||||||
|
| closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponseSuccess
|
||||||
|
| closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponseError;
|
||||||
|
|
||||||
|
export const getCloseBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostUrl =
|
||||||
|
(boardId: string, issueId: string) => {
|
||||||
|
return `/api/v1/agent/boards/${boardId}/git/issues/${issueId}/close`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePost =
|
||||||
|
async (
|
||||||
|
boardId: string,
|
||||||
|
issueId: string,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponse> => {
|
||||||
|
return customFetch<closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostResponse>(
|
||||||
|
getCloseBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostUrl(
|
||||||
|
boardId,
|
||||||
|
issueId,
|
||||||
|
),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "POST",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getCloseBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostMutationOptions =
|
||||||
|
<TError = void | HTTPValidationError, TContext = unknown>(options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; issueId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
}): UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; issueId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
const mutationKey = [
|
||||||
|
"closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePost",
|
||||||
|
];
|
||||||
|
const { mutation: mutationOptions, request: requestOptions } = options
|
||||||
|
? options.mutation &&
|
||||||
|
"mutationKey" in options.mutation &&
|
||||||
|
options.mutation.mutationKey
|
||||||
|
? options
|
||||||
|
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||||
|
: { mutation: { mutationKey }, request: undefined };
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
{ boardId: string; issueId: string }
|
||||||
|
> = (props) => {
|
||||||
|
const { boardId, issueId } = props ?? {};
|
||||||
|
|
||||||
|
return closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePost(
|
||||||
|
boardId,
|
||||||
|
issueId,
|
||||||
|
requestOptions,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type CloseBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostMutationResult =
|
||||||
|
NonNullable<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePost
|
||||||
|
>
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
|
||||||
|
export type CloseBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostMutationError =
|
||||||
|
void | HTTPValidationError;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Close a Forgejo issue (agent)
|
||||||
|
*/
|
||||||
|
export const useCloseBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePost =
|
||||||
|
<TError = void | HTTPValidationError, TContext = unknown>(
|
||||||
|
options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; issueId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseMutationResult<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof closeBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; issueId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(
|
||||||
|
getCloseBoardIssueApiV1AgentBoardsBoardIdGitIssuesIssueIdClosePostMutationOptions(
|
||||||
|
options,
|
||||||
|
),
|
||||||
|
queryClient,
|
||||||
|
);
|
||||||
|
};
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -364,134 +364,6 @@ export const useCreateAgentApiV1AgentsPost = <
|
||||||
queryClient,
|
queryClient,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* Heartbeat an existing agent or create/provision one if needed.
|
|
||||||
* @summary Heartbeat Or Create Agent
|
|
||||||
*/
|
|
||||||
export type heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponse200 = {
|
|
||||||
data: AgentRead;
|
|
||||||
status: 200;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponse422 = {
|
|
||||||
data: HTTPValidationError;
|
|
||||||
status: 422;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponseSuccess =
|
|
||||||
heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponse200 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponseError =
|
|
||||||
heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponse422 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponse =
|
|
||||||
| heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponseSuccess
|
|
||||||
| heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponseError;
|
|
||||||
|
|
||||||
export const getHeartbeatOrCreateAgentApiV1AgentsHeartbeatPostUrl = () => {
|
|
||||||
return `/api/v1/agents/heartbeat`;
|
|
||||||
};
|
|
||||||
|
|
||||||
export const heartbeatOrCreateAgentApiV1AgentsHeartbeatPost = async (
|
|
||||||
agentHeartbeatCreate: AgentHeartbeatCreate,
|
|
||||||
options?: RequestInit,
|
|
||||||
): Promise<heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponse> => {
|
|
||||||
return customFetch<heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponse>(
|
|
||||||
getHeartbeatOrCreateAgentApiV1AgentsHeartbeatPostUrl(),
|
|
||||||
{
|
|
||||||
...options,
|
|
||||||
method: "POST",
|
|
||||||
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
||||||
body: JSON.stringify(agentHeartbeatCreate),
|
|
||||||
},
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const getHeartbeatOrCreateAgentApiV1AgentsHeartbeatPostMutationOptions =
|
|
||||||
<TError = HTTPValidationError, TContext = unknown>(options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<typeof heartbeatOrCreateAgentApiV1AgentsHeartbeatPost>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ data: AgentHeartbeatCreate },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
}): UseMutationOptions<
|
|
||||||
Awaited<ReturnType<typeof heartbeatOrCreateAgentApiV1AgentsHeartbeatPost>>,
|
|
||||||
TError,
|
|
||||||
{ data: AgentHeartbeatCreate },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
const mutationKey = ["heartbeatOrCreateAgentApiV1AgentsHeartbeatPost"];
|
|
||||||
const { mutation: mutationOptions, request: requestOptions } = options
|
|
||||||
? options.mutation &&
|
|
||||||
"mutationKey" in options.mutation &&
|
|
||||||
options.mutation.mutationKey
|
|
||||||
? options
|
|
||||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
||||||
: { mutation: { mutationKey }, request: undefined };
|
|
||||||
|
|
||||||
const mutationFn: MutationFunction<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<typeof heartbeatOrCreateAgentApiV1AgentsHeartbeatPost>
|
|
||||||
>,
|
|
||||||
{ data: AgentHeartbeatCreate }
|
|
||||||
> = (props) => {
|
|
||||||
const { data } = props ?? {};
|
|
||||||
|
|
||||||
return heartbeatOrCreateAgentApiV1AgentsHeartbeatPost(
|
|
||||||
data,
|
|
||||||
requestOptions,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
return { mutationFn, ...mutationOptions };
|
|
||||||
};
|
|
||||||
|
|
||||||
export type HeartbeatOrCreateAgentApiV1AgentsHeartbeatPostMutationResult =
|
|
||||||
NonNullable<
|
|
||||||
Awaited<ReturnType<typeof heartbeatOrCreateAgentApiV1AgentsHeartbeatPost>>
|
|
||||||
>;
|
|
||||||
export type HeartbeatOrCreateAgentApiV1AgentsHeartbeatPostMutationBody =
|
|
||||||
AgentHeartbeatCreate;
|
|
||||||
export type HeartbeatOrCreateAgentApiV1AgentsHeartbeatPostMutationError =
|
|
||||||
HTTPValidationError;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @summary Heartbeat Or Create Agent
|
|
||||||
*/
|
|
||||||
export const useHeartbeatOrCreateAgentApiV1AgentsHeartbeatPost = <
|
|
||||||
TError = HTTPValidationError,
|
|
||||||
TContext = unknown,
|
|
||||||
>(
|
|
||||||
options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<typeof heartbeatOrCreateAgentApiV1AgentsHeartbeatPost>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ data: AgentHeartbeatCreate },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
},
|
|
||||||
queryClient?: QueryClient,
|
|
||||||
): UseMutationResult<
|
|
||||||
Awaited<ReturnType<typeof heartbeatOrCreateAgentApiV1AgentsHeartbeatPost>>,
|
|
||||||
TError,
|
|
||||||
{ data: AgentHeartbeatCreate },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
return useMutation(
|
|
||||||
getHeartbeatOrCreateAgentApiV1AgentsHeartbeatPostMutationOptions(options),
|
|
||||||
queryClient,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* Stream agent updates as SSE events.
|
* Stream agent updates as SSE events.
|
||||||
* @summary Stream Agents
|
* @summary Stream Agents
|
||||||
|
|
@ -704,123 +576,6 @@ export function useStreamAgentsApiV1AgentsStreamGet<
|
||||||
return { ...query, queryKey: queryOptions.queryKey };
|
return { ...query, queryKey: queryOptions.queryKey };
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Delete an agent and clean related task state.
|
|
||||||
* @summary Delete Agent
|
|
||||||
*/
|
|
||||||
export type deleteAgentApiV1AgentsAgentIdDeleteResponse200 = {
|
|
||||||
data: OkResponse;
|
|
||||||
status: 200;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteAgentApiV1AgentsAgentIdDeleteResponse422 = {
|
|
||||||
data: HTTPValidationError;
|
|
||||||
status: 422;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteAgentApiV1AgentsAgentIdDeleteResponseSuccess =
|
|
||||||
deleteAgentApiV1AgentsAgentIdDeleteResponse200 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type deleteAgentApiV1AgentsAgentIdDeleteResponseError =
|
|
||||||
deleteAgentApiV1AgentsAgentIdDeleteResponse422 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteAgentApiV1AgentsAgentIdDeleteResponse =
|
|
||||||
| deleteAgentApiV1AgentsAgentIdDeleteResponseSuccess
|
|
||||||
| deleteAgentApiV1AgentsAgentIdDeleteResponseError;
|
|
||||||
|
|
||||||
export const getDeleteAgentApiV1AgentsAgentIdDeleteUrl = (agentId: string) => {
|
|
||||||
return `/api/v1/agents/${agentId}`;
|
|
||||||
};
|
|
||||||
|
|
||||||
export const deleteAgentApiV1AgentsAgentIdDelete = async (
|
|
||||||
agentId: string,
|
|
||||||
options?: RequestInit,
|
|
||||||
): Promise<deleteAgentApiV1AgentsAgentIdDeleteResponse> => {
|
|
||||||
return customFetch<deleteAgentApiV1AgentsAgentIdDeleteResponse>(
|
|
||||||
getDeleteAgentApiV1AgentsAgentIdDeleteUrl(agentId),
|
|
||||||
{
|
|
||||||
...options,
|
|
||||||
method: "DELETE",
|
|
||||||
},
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const getDeleteAgentApiV1AgentsAgentIdDeleteMutationOptions = <
|
|
||||||
TError = HTTPValidationError,
|
|
||||||
TContext = unknown,
|
|
||||||
>(options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<ReturnType<typeof deleteAgentApiV1AgentsAgentIdDelete>>,
|
|
||||||
TError,
|
|
||||||
{ agentId: string },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
}): UseMutationOptions<
|
|
||||||
Awaited<ReturnType<typeof deleteAgentApiV1AgentsAgentIdDelete>>,
|
|
||||||
TError,
|
|
||||||
{ agentId: string },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
const mutationKey = ["deleteAgentApiV1AgentsAgentIdDelete"];
|
|
||||||
const { mutation: mutationOptions, request: requestOptions } = options
|
|
||||||
? options.mutation &&
|
|
||||||
"mutationKey" in options.mutation &&
|
|
||||||
options.mutation.mutationKey
|
|
||||||
? options
|
|
||||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
||||||
: { mutation: { mutationKey }, request: undefined };
|
|
||||||
|
|
||||||
const mutationFn: MutationFunction<
|
|
||||||
Awaited<ReturnType<typeof deleteAgentApiV1AgentsAgentIdDelete>>,
|
|
||||||
{ agentId: string }
|
|
||||||
> = (props) => {
|
|
||||||
const { agentId } = props ?? {};
|
|
||||||
|
|
||||||
return deleteAgentApiV1AgentsAgentIdDelete(agentId, requestOptions);
|
|
||||||
};
|
|
||||||
|
|
||||||
return { mutationFn, ...mutationOptions };
|
|
||||||
};
|
|
||||||
|
|
||||||
export type DeleteAgentApiV1AgentsAgentIdDeleteMutationResult = NonNullable<
|
|
||||||
Awaited<ReturnType<typeof deleteAgentApiV1AgentsAgentIdDelete>>
|
|
||||||
>;
|
|
||||||
|
|
||||||
export type DeleteAgentApiV1AgentsAgentIdDeleteMutationError =
|
|
||||||
HTTPValidationError;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @summary Delete Agent
|
|
||||||
*/
|
|
||||||
export const useDeleteAgentApiV1AgentsAgentIdDelete = <
|
|
||||||
TError = HTTPValidationError,
|
|
||||||
TContext = unknown,
|
|
||||||
>(
|
|
||||||
options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<ReturnType<typeof deleteAgentApiV1AgentsAgentIdDelete>>,
|
|
||||||
TError,
|
|
||||||
{ agentId: string },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
},
|
|
||||||
queryClient?: QueryClient,
|
|
||||||
): UseMutationResult<
|
|
||||||
Awaited<ReturnType<typeof deleteAgentApiV1AgentsAgentIdDelete>>,
|
|
||||||
TError,
|
|
||||||
{ agentId: string },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
return useMutation(
|
|
||||||
getDeleteAgentApiV1AgentsAgentIdDeleteMutationOptions(options),
|
|
||||||
queryClient,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* Get a single agent by id.
|
* Get a single agent by id.
|
||||||
* @summary Get Agent
|
* @summary Get Agent
|
||||||
|
|
@ -1182,6 +937,123 @@ export const useUpdateAgentApiV1AgentsAgentIdPatch = <
|
||||||
queryClient,
|
queryClient,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* Delete an agent and clean related task state.
|
||||||
|
* @summary Delete Agent
|
||||||
|
*/
|
||||||
|
export type deleteAgentApiV1AgentsAgentIdDeleteResponse200 = {
|
||||||
|
data: OkResponse;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type deleteAgentApiV1AgentsAgentIdDeleteResponse422 = {
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type deleteAgentApiV1AgentsAgentIdDeleteResponseSuccess =
|
||||||
|
deleteAgentApiV1AgentsAgentIdDeleteResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type deleteAgentApiV1AgentsAgentIdDeleteResponseError =
|
||||||
|
deleteAgentApiV1AgentsAgentIdDeleteResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type deleteAgentApiV1AgentsAgentIdDeleteResponse =
|
||||||
|
| deleteAgentApiV1AgentsAgentIdDeleteResponseSuccess
|
||||||
|
| deleteAgentApiV1AgentsAgentIdDeleteResponseError;
|
||||||
|
|
||||||
|
export const getDeleteAgentApiV1AgentsAgentIdDeleteUrl = (agentId: string) => {
|
||||||
|
return `/api/v1/agents/${agentId}`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const deleteAgentApiV1AgentsAgentIdDelete = async (
|
||||||
|
agentId: string,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<deleteAgentApiV1AgentsAgentIdDeleteResponse> => {
|
||||||
|
return customFetch<deleteAgentApiV1AgentsAgentIdDeleteResponse>(
|
||||||
|
getDeleteAgentApiV1AgentsAgentIdDeleteUrl(agentId),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "DELETE",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getDeleteAgentApiV1AgentsAgentIdDeleteMutationOptions = <
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
TContext = unknown,
|
||||||
|
>(options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<ReturnType<typeof deleteAgentApiV1AgentsAgentIdDelete>>,
|
||||||
|
TError,
|
||||||
|
{ agentId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
}): UseMutationOptions<
|
||||||
|
Awaited<ReturnType<typeof deleteAgentApiV1AgentsAgentIdDelete>>,
|
||||||
|
TError,
|
||||||
|
{ agentId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
const mutationKey = ["deleteAgentApiV1AgentsAgentIdDelete"];
|
||||||
|
const { mutation: mutationOptions, request: requestOptions } = options
|
||||||
|
? options.mutation &&
|
||||||
|
"mutationKey" in options.mutation &&
|
||||||
|
options.mutation.mutationKey
|
||||||
|
? options
|
||||||
|
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||||
|
: { mutation: { mutationKey }, request: undefined };
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<
|
||||||
|
Awaited<ReturnType<typeof deleteAgentApiV1AgentsAgentIdDelete>>,
|
||||||
|
{ agentId: string }
|
||||||
|
> = (props) => {
|
||||||
|
const { agentId } = props ?? {};
|
||||||
|
|
||||||
|
return deleteAgentApiV1AgentsAgentIdDelete(agentId, requestOptions);
|
||||||
|
};
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type DeleteAgentApiV1AgentsAgentIdDeleteMutationResult = NonNullable<
|
||||||
|
Awaited<ReturnType<typeof deleteAgentApiV1AgentsAgentIdDelete>>
|
||||||
|
>;
|
||||||
|
|
||||||
|
export type DeleteAgentApiV1AgentsAgentIdDeleteMutationError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Delete Agent
|
||||||
|
*/
|
||||||
|
export const useDeleteAgentApiV1AgentsAgentIdDelete = <
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
TContext = unknown,
|
||||||
|
>(
|
||||||
|
options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<ReturnType<typeof deleteAgentApiV1AgentsAgentIdDelete>>,
|
||||||
|
TError,
|
||||||
|
{ agentId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseMutationResult<
|
||||||
|
Awaited<ReturnType<typeof deleteAgentApiV1AgentsAgentIdDelete>>,
|
||||||
|
TError,
|
||||||
|
{ agentId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(
|
||||||
|
getDeleteAgentApiV1AgentsAgentIdDeleteMutationOptions(options),
|
||||||
|
queryClient,
|
||||||
|
);
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* Record a heartbeat for a specific agent.
|
* Record a heartbeat for a specific agent.
|
||||||
* @summary Heartbeat Agent
|
* @summary Heartbeat Agent
|
||||||
|
|
@ -1310,3 +1182,131 @@ export const useHeartbeatAgentApiV1AgentsAgentIdHeartbeatPost = <
|
||||||
queryClient,
|
queryClient,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* Heartbeat an existing agent or create/provision one if needed.
|
||||||
|
* @summary Heartbeat Or Create Agent
|
||||||
|
*/
|
||||||
|
export type heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponse200 = {
|
||||||
|
data: AgentRead;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponse422 = {
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponseSuccess =
|
||||||
|
heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponseError =
|
||||||
|
heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponse =
|
||||||
|
| heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponseSuccess
|
||||||
|
| heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponseError;
|
||||||
|
|
||||||
|
export const getHeartbeatOrCreateAgentApiV1AgentsHeartbeatPostUrl = () => {
|
||||||
|
return `/api/v1/agents/heartbeat`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const heartbeatOrCreateAgentApiV1AgentsHeartbeatPost = async (
|
||||||
|
agentHeartbeatCreate: AgentHeartbeatCreate,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponse> => {
|
||||||
|
return customFetch<heartbeatOrCreateAgentApiV1AgentsHeartbeatPostResponse>(
|
||||||
|
getHeartbeatOrCreateAgentApiV1AgentsHeartbeatPostUrl(),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "POST",
|
||||||
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
||||||
|
body: JSON.stringify(agentHeartbeatCreate),
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getHeartbeatOrCreateAgentApiV1AgentsHeartbeatPostMutationOptions =
|
||||||
|
<TError = HTTPValidationError, TContext = unknown>(options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof heartbeatOrCreateAgentApiV1AgentsHeartbeatPost>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ data: AgentHeartbeatCreate },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
}): UseMutationOptions<
|
||||||
|
Awaited<ReturnType<typeof heartbeatOrCreateAgentApiV1AgentsHeartbeatPost>>,
|
||||||
|
TError,
|
||||||
|
{ data: AgentHeartbeatCreate },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
const mutationKey = ["heartbeatOrCreateAgentApiV1AgentsHeartbeatPost"];
|
||||||
|
const { mutation: mutationOptions, request: requestOptions } = options
|
||||||
|
? options.mutation &&
|
||||||
|
"mutationKey" in options.mutation &&
|
||||||
|
options.mutation.mutationKey
|
||||||
|
? options
|
||||||
|
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||||
|
: { mutation: { mutationKey }, request: undefined };
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof heartbeatOrCreateAgentApiV1AgentsHeartbeatPost>
|
||||||
|
>,
|
||||||
|
{ data: AgentHeartbeatCreate }
|
||||||
|
> = (props) => {
|
||||||
|
const { data } = props ?? {};
|
||||||
|
|
||||||
|
return heartbeatOrCreateAgentApiV1AgentsHeartbeatPost(
|
||||||
|
data,
|
||||||
|
requestOptions,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type HeartbeatOrCreateAgentApiV1AgentsHeartbeatPostMutationResult =
|
||||||
|
NonNullable<
|
||||||
|
Awaited<ReturnType<typeof heartbeatOrCreateAgentApiV1AgentsHeartbeatPost>>
|
||||||
|
>;
|
||||||
|
export type HeartbeatOrCreateAgentApiV1AgentsHeartbeatPostMutationBody =
|
||||||
|
AgentHeartbeatCreate;
|
||||||
|
export type HeartbeatOrCreateAgentApiV1AgentsHeartbeatPostMutationError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Heartbeat Or Create Agent
|
||||||
|
*/
|
||||||
|
export const useHeartbeatOrCreateAgentApiV1AgentsHeartbeatPost = <
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
TContext = unknown,
|
||||||
|
>(
|
||||||
|
options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof heartbeatOrCreateAgentApiV1AgentsHeartbeatPost>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ data: AgentHeartbeatCreate },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseMutationResult<
|
||||||
|
Awaited<ReturnType<typeof heartbeatOrCreateAgentApiV1AgentsHeartbeatPost>>,
|
||||||
|
TError,
|
||||||
|
{ data: AgentHeartbeatCreate },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(
|
||||||
|
getHeartbeatOrCreateAgentApiV1AgentsHeartbeatPostMutationOptions(options),
|
||||||
|
queryClient,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
|
||||||
|
|
@ -369,129 +369,6 @@ export const useCreateBoardGroupApiV1BoardGroupsPost = <
|
||||||
queryClient,
|
queryClient,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* Delete a board group.
|
|
||||||
* @summary Delete Board Group
|
|
||||||
*/
|
|
||||||
export type deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponse200 = {
|
|
||||||
data: OkResponse;
|
|
||||||
status: 200;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponse422 = {
|
|
||||||
data: HTTPValidationError;
|
|
||||||
status: 422;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponseSuccess =
|
|
||||||
deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponse200 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponseError =
|
|
||||||
deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponse422 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponse =
|
|
||||||
| deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponseSuccess
|
|
||||||
| deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponseError;
|
|
||||||
|
|
||||||
export const getDeleteBoardGroupApiV1BoardGroupsGroupIdDeleteUrl = (
|
|
||||||
groupId: string,
|
|
||||||
) => {
|
|
||||||
return `/api/v1/board-groups/${groupId}`;
|
|
||||||
};
|
|
||||||
|
|
||||||
export const deleteBoardGroupApiV1BoardGroupsGroupIdDelete = async (
|
|
||||||
groupId: string,
|
|
||||||
options?: RequestInit,
|
|
||||||
): Promise<deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponse> => {
|
|
||||||
return customFetch<deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponse>(
|
|
||||||
getDeleteBoardGroupApiV1BoardGroupsGroupIdDeleteUrl(groupId),
|
|
||||||
{
|
|
||||||
...options,
|
|
||||||
method: "DELETE",
|
|
||||||
},
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const getDeleteBoardGroupApiV1BoardGroupsGroupIdDeleteMutationOptions = <
|
|
||||||
TError = HTTPValidationError,
|
|
||||||
TContext = unknown,
|
|
||||||
>(options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<ReturnType<typeof deleteBoardGroupApiV1BoardGroupsGroupIdDelete>>,
|
|
||||||
TError,
|
|
||||||
{ groupId: string },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
}): UseMutationOptions<
|
|
||||||
Awaited<ReturnType<typeof deleteBoardGroupApiV1BoardGroupsGroupIdDelete>>,
|
|
||||||
TError,
|
|
||||||
{ groupId: string },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
const mutationKey = ["deleteBoardGroupApiV1BoardGroupsGroupIdDelete"];
|
|
||||||
const { mutation: mutationOptions, request: requestOptions } = options
|
|
||||||
? options.mutation &&
|
|
||||||
"mutationKey" in options.mutation &&
|
|
||||||
options.mutation.mutationKey
|
|
||||||
? options
|
|
||||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
||||||
: { mutation: { mutationKey }, request: undefined };
|
|
||||||
|
|
||||||
const mutationFn: MutationFunction<
|
|
||||||
Awaited<ReturnType<typeof deleteBoardGroupApiV1BoardGroupsGroupIdDelete>>,
|
|
||||||
{ groupId: string }
|
|
||||||
> = (props) => {
|
|
||||||
const { groupId } = props ?? {};
|
|
||||||
|
|
||||||
return deleteBoardGroupApiV1BoardGroupsGroupIdDelete(
|
|
||||||
groupId,
|
|
||||||
requestOptions,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
return { mutationFn, ...mutationOptions };
|
|
||||||
};
|
|
||||||
|
|
||||||
export type DeleteBoardGroupApiV1BoardGroupsGroupIdDeleteMutationResult =
|
|
||||||
NonNullable<
|
|
||||||
Awaited<ReturnType<typeof deleteBoardGroupApiV1BoardGroupsGroupIdDelete>>
|
|
||||||
>;
|
|
||||||
|
|
||||||
export type DeleteBoardGroupApiV1BoardGroupsGroupIdDeleteMutationError =
|
|
||||||
HTTPValidationError;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @summary Delete Board Group
|
|
||||||
*/
|
|
||||||
export const useDeleteBoardGroupApiV1BoardGroupsGroupIdDelete = <
|
|
||||||
TError = HTTPValidationError,
|
|
||||||
TContext = unknown,
|
|
||||||
>(
|
|
||||||
options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<ReturnType<typeof deleteBoardGroupApiV1BoardGroupsGroupIdDelete>>,
|
|
||||||
TError,
|
|
||||||
{ groupId: string },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
},
|
|
||||||
queryClient?: QueryClient,
|
|
||||||
): UseMutationResult<
|
|
||||||
Awaited<ReturnType<typeof deleteBoardGroupApiV1BoardGroupsGroupIdDelete>>,
|
|
||||||
TError,
|
|
||||||
{ groupId: string },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
return useMutation(
|
|
||||||
getDeleteBoardGroupApiV1BoardGroupsGroupIdDeleteMutationOptions(options),
|
|
||||||
queryClient,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* Get a board group by id.
|
* Get a board group by id.
|
||||||
* @summary Get Board Group
|
* @summary Get Board Group
|
||||||
|
|
@ -830,161 +707,125 @@ export const useUpdateBoardGroupApiV1BoardGroupsGroupIdPatch = <
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* Apply heartbeat settings to agents in a board group.
|
* Delete a board group.
|
||||||
* @summary Apply Board Group Heartbeat
|
* @summary Delete Board Group
|
||||||
*/
|
*/
|
||||||
export type applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponse200 =
|
export type deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponse200 = {
|
||||||
{
|
data: OkResponse;
|
||||||
data: BoardGroupHeartbeatApplyResult;
|
status: 200;
|
||||||
status: 200;
|
};
|
||||||
};
|
|
||||||
|
|
||||||
export type applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponse422 =
|
export type deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponse422 = {
|
||||||
{
|
data: HTTPValidationError;
|
||||||
data: HTTPValidationError;
|
status: 422;
|
||||||
status: 422;
|
};
|
||||||
};
|
|
||||||
|
|
||||||
export type applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponseSuccess =
|
export type deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponseSuccess =
|
||||||
applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponse200 & {
|
deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponse200 & {
|
||||||
headers: Headers;
|
headers: Headers;
|
||||||
};
|
};
|
||||||
export type applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponseError =
|
export type deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponseError =
|
||||||
applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponse422 & {
|
deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponse422 & {
|
||||||
headers: Headers;
|
headers: Headers;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponse =
|
export type deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponse =
|
||||||
|
| deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponseSuccess
|
||||||
|
| deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponseError;
|
||||||
|
|
||||||
| applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponseSuccess
|
export const getDeleteBoardGroupApiV1BoardGroupsGroupIdDeleteUrl = (
|
||||||
| applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponseError;
|
groupId: string,
|
||||||
|
) => {
|
||||||
|
return `/api/v1/board-groups/${groupId}`;
|
||||||
|
};
|
||||||
|
|
||||||
export const getApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostUrl =
|
export const deleteBoardGroupApiV1BoardGroupsGroupIdDelete = async (
|
||||||
(groupId: string) => {
|
groupId: string,
|
||||||
return `/api/v1/board-groups/${groupId}/heartbeat`;
|
options?: RequestInit,
|
||||||
};
|
): Promise<deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponse> => {
|
||||||
|
return customFetch<deleteBoardGroupApiV1BoardGroupsGroupIdDeleteResponse>(
|
||||||
|
getDeleteBoardGroupApiV1BoardGroupsGroupIdDeleteUrl(groupId),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "DELETE",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
export const applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost =
|
export const getDeleteBoardGroupApiV1BoardGroupsGroupIdDeleteMutationOptions = <
|
||||||
async (
|
TError = HTTPValidationError,
|
||||||
groupId: string,
|
TContext = unknown,
|
||||||
boardGroupHeartbeatApply: BoardGroupHeartbeatApply,
|
>(options?: {
|
||||||
options?: RequestInit,
|
mutation?: UseMutationOptions<
|
||||||
): Promise<applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponse> => {
|
Awaited<ReturnType<typeof deleteBoardGroupApiV1BoardGroupsGroupIdDelete>>,
|
||||||
return customFetch<applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponse>(
|
TError,
|
||||||
getApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostUrl(
|
{ groupId: string },
|
||||||
groupId,
|
TContext
|
||||||
),
|
>;
|
||||||
{
|
request?: SecondParameter<typeof customFetch>;
|
||||||
...options,
|
}): UseMutationOptions<
|
||||||
method: "POST",
|
Awaited<ReturnType<typeof deleteBoardGroupApiV1BoardGroupsGroupIdDelete>>,
|
||||||
headers: { "Content-Type": "application/json", ...options?.headers },
|
TError,
|
||||||
body: JSON.stringify(boardGroupHeartbeatApply),
|
{ groupId: string },
|
||||||
},
|
TContext
|
||||||
|
> => {
|
||||||
|
const mutationKey = ["deleteBoardGroupApiV1BoardGroupsGroupIdDelete"];
|
||||||
|
const { mutation: mutationOptions, request: requestOptions } = options
|
||||||
|
? options.mutation &&
|
||||||
|
"mutationKey" in options.mutation &&
|
||||||
|
options.mutation.mutationKey
|
||||||
|
? options
|
||||||
|
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||||
|
: { mutation: { mutationKey }, request: undefined };
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<
|
||||||
|
Awaited<ReturnType<typeof deleteBoardGroupApiV1BoardGroupsGroupIdDelete>>,
|
||||||
|
{ groupId: string }
|
||||||
|
> = (props) => {
|
||||||
|
const { groupId } = props ?? {};
|
||||||
|
|
||||||
|
return deleteBoardGroupApiV1BoardGroupsGroupIdDelete(
|
||||||
|
groupId,
|
||||||
|
requestOptions,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostMutationOptions =
|
return { mutationFn, ...mutationOptions };
|
||||||
<TError = HTTPValidationError, TContext = unknown>(options?: {
|
};
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ groupId: string; data: BoardGroupHeartbeatApply },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
}): UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ groupId: string; data: BoardGroupHeartbeatApply },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
const mutationKey = [
|
|
||||||
"applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost",
|
|
||||||
];
|
|
||||||
const { mutation: mutationOptions, request: requestOptions } = options
|
|
||||||
? options.mutation &&
|
|
||||||
"mutationKey" in options.mutation &&
|
|
||||||
options.mutation.mutationKey
|
|
||||||
? options
|
|
||||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
||||||
: { mutation: { mutationKey }, request: undefined };
|
|
||||||
|
|
||||||
const mutationFn: MutationFunction<
|
export type DeleteBoardGroupApiV1BoardGroupsGroupIdDeleteMutationResult =
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
{ groupId: string; data: BoardGroupHeartbeatApply }
|
|
||||||
> = (props) => {
|
|
||||||
const { groupId, data } = props ?? {};
|
|
||||||
|
|
||||||
return applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost(
|
|
||||||
groupId,
|
|
||||||
data,
|
|
||||||
requestOptions,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
return { mutationFn, ...mutationOptions };
|
|
||||||
};
|
|
||||||
|
|
||||||
export type ApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostMutationResult =
|
|
||||||
NonNullable<
|
NonNullable<
|
||||||
Awaited<
|
Awaited<ReturnType<typeof deleteBoardGroupApiV1BoardGroupsGroupIdDelete>>
|
||||||
ReturnType<
|
|
||||||
typeof applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost
|
|
||||||
>
|
|
||||||
>
|
|
||||||
>;
|
>;
|
||||||
export type ApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostMutationBody =
|
|
||||||
BoardGroupHeartbeatApply;
|
export type DeleteBoardGroupApiV1BoardGroupsGroupIdDeleteMutationError =
|
||||||
export type ApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostMutationError =
|
|
||||||
HTTPValidationError;
|
HTTPValidationError;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @summary Apply Board Group Heartbeat
|
* @summary Delete Board Group
|
||||||
*/
|
*/
|
||||||
export const useApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost = <
|
export const useDeleteBoardGroupApiV1BoardGroupsGroupIdDelete = <
|
||||||
TError = HTTPValidationError,
|
TError = HTTPValidationError,
|
||||||
TContext = unknown,
|
TContext = unknown,
|
||||||
>(
|
>(
|
||||||
options?: {
|
options?: {
|
||||||
mutation?: UseMutationOptions<
|
mutation?: UseMutationOptions<
|
||||||
Awaited<
|
Awaited<ReturnType<typeof deleteBoardGroupApiV1BoardGroupsGroupIdDelete>>,
|
||||||
ReturnType<
|
|
||||||
typeof applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
TError,
|
TError,
|
||||||
{ groupId: string; data: BoardGroupHeartbeatApply },
|
{ groupId: string },
|
||||||
TContext
|
TContext
|
||||||
>;
|
>;
|
||||||
request?: SecondParameter<typeof customFetch>;
|
request?: SecondParameter<typeof customFetch>;
|
||||||
},
|
},
|
||||||
queryClient?: QueryClient,
|
queryClient?: QueryClient,
|
||||||
): UseMutationResult<
|
): UseMutationResult<
|
||||||
Awaited<
|
Awaited<ReturnType<typeof deleteBoardGroupApiV1BoardGroupsGroupIdDelete>>,
|
||||||
ReturnType<
|
|
||||||
typeof applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
TError,
|
TError,
|
||||||
{ groupId: string; data: BoardGroupHeartbeatApply },
|
{ groupId: string },
|
||||||
TContext
|
TContext
|
||||||
> => {
|
> => {
|
||||||
return useMutation(
|
return useMutation(
|
||||||
getApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostMutationOptions(
|
getDeleteBoardGroupApiV1BoardGroupsGroupIdDeleteMutationOptions(options),
|
||||||
options,
|
|
||||||
),
|
|
||||||
queryClient,
|
queryClient,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
@ -1290,3 +1131,163 @@ export function useGetBoardGroupSnapshotApiV1BoardGroupsGroupIdSnapshotGet<
|
||||||
|
|
||||||
return { ...query, queryKey: queryOptions.queryKey };
|
return { ...query, queryKey: queryOptions.queryKey };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Apply heartbeat settings to agents in a board group.
|
||||||
|
* @summary Apply Board Group Heartbeat
|
||||||
|
*/
|
||||||
|
export type applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponse200 =
|
||||||
|
{
|
||||||
|
data: BoardGroupHeartbeatApplyResult;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponse422 =
|
||||||
|
{
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponseSuccess =
|
||||||
|
applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponseError =
|
||||||
|
applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponse =
|
||||||
|
|
||||||
|
| applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponseSuccess
|
||||||
|
| applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponseError;
|
||||||
|
|
||||||
|
export const getApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostUrl =
|
||||||
|
(groupId: string) => {
|
||||||
|
return `/api/v1/board-groups/${groupId}/heartbeat`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost =
|
||||||
|
async (
|
||||||
|
groupId: string,
|
||||||
|
boardGroupHeartbeatApply: BoardGroupHeartbeatApply,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponse> => {
|
||||||
|
return customFetch<applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostResponse>(
|
||||||
|
getApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostUrl(
|
||||||
|
groupId,
|
||||||
|
),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "POST",
|
||||||
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
||||||
|
body: JSON.stringify(boardGroupHeartbeatApply),
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostMutationOptions =
|
||||||
|
<TError = HTTPValidationError, TContext = unknown>(options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ groupId: string; data: BoardGroupHeartbeatApply },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
}): UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ groupId: string; data: BoardGroupHeartbeatApply },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
const mutationKey = [
|
||||||
|
"applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost",
|
||||||
|
];
|
||||||
|
const { mutation: mutationOptions, request: requestOptions } = options
|
||||||
|
? options.mutation &&
|
||||||
|
"mutationKey" in options.mutation &&
|
||||||
|
options.mutation.mutationKey
|
||||||
|
? options
|
||||||
|
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||||
|
: { mutation: { mutationKey }, request: undefined };
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
{ groupId: string; data: BoardGroupHeartbeatApply }
|
||||||
|
> = (props) => {
|
||||||
|
const { groupId, data } = props ?? {};
|
||||||
|
|
||||||
|
return applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost(
|
||||||
|
groupId,
|
||||||
|
data,
|
||||||
|
requestOptions,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostMutationResult =
|
||||||
|
NonNullable<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost
|
||||||
|
>
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
export type ApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostMutationBody =
|
||||||
|
BoardGroupHeartbeatApply;
|
||||||
|
export type ApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostMutationError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Apply Board Group Heartbeat
|
||||||
|
*/
|
||||||
|
export const useApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost = <
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
TContext = unknown,
|
||||||
|
>(
|
||||||
|
options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ groupId: string; data: BoardGroupHeartbeatApply },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseMutationResult<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof applyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ groupId: string; data: BoardGroupHeartbeatApply },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(
|
||||||
|
getApplyBoardGroupHeartbeatApiV1BoardGroupsGroupIdHeartbeatPostMutationOptions(
|
||||||
|
options,
|
||||||
|
),
|
||||||
|
queryClient,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
|
||||||
|
|
@ -274,6 +274,298 @@ export function useGetOnboardingApiV1BoardsBoardIdOnboardingGet<
|
||||||
return { ...query, queryKey: queryOptions.queryKey };
|
return { ...query, queryKey: queryOptions.queryKey };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Start onboarding and send instructions to the gateway agent.
|
||||||
|
* @summary Start Onboarding
|
||||||
|
*/
|
||||||
|
export type startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponse200 = {
|
||||||
|
data: BoardOnboardingRead;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponse422 = {
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponseSuccess =
|
||||||
|
startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponseError =
|
||||||
|
startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponse =
|
||||||
|
| startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponseSuccess
|
||||||
|
| startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponseError;
|
||||||
|
|
||||||
|
export const getStartOnboardingApiV1BoardsBoardIdOnboardingStartPostUrl = (
|
||||||
|
boardId: string,
|
||||||
|
) => {
|
||||||
|
return `/api/v1/boards/${boardId}/onboarding/start`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const startOnboardingApiV1BoardsBoardIdOnboardingStartPost = async (
|
||||||
|
boardId: string,
|
||||||
|
boardOnboardingStart: BoardOnboardingStart,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponse> => {
|
||||||
|
return customFetch<startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponse>(
|
||||||
|
getStartOnboardingApiV1BoardsBoardIdOnboardingStartPostUrl(boardId),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "POST",
|
||||||
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
||||||
|
body: JSON.stringify(boardOnboardingStart),
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getStartOnboardingApiV1BoardsBoardIdOnboardingStartPostMutationOptions =
|
||||||
|
<TError = HTTPValidationError, TContext = unknown>(options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof startOnboardingApiV1BoardsBoardIdOnboardingStartPost>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; data: BoardOnboardingStart },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
}): UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof startOnboardingApiV1BoardsBoardIdOnboardingStartPost>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; data: BoardOnboardingStart },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
const mutationKey = [
|
||||||
|
"startOnboardingApiV1BoardsBoardIdOnboardingStartPost",
|
||||||
|
];
|
||||||
|
const { mutation: mutationOptions, request: requestOptions } = options
|
||||||
|
? options.mutation &&
|
||||||
|
"mutationKey" in options.mutation &&
|
||||||
|
options.mutation.mutationKey
|
||||||
|
? options
|
||||||
|
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||||
|
: { mutation: { mutationKey }, request: undefined };
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof startOnboardingApiV1BoardsBoardIdOnboardingStartPost>
|
||||||
|
>,
|
||||||
|
{ boardId: string; data: BoardOnboardingStart }
|
||||||
|
> = (props) => {
|
||||||
|
const { boardId, data } = props ?? {};
|
||||||
|
|
||||||
|
return startOnboardingApiV1BoardsBoardIdOnboardingStartPost(
|
||||||
|
boardId,
|
||||||
|
data,
|
||||||
|
requestOptions,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type StartOnboardingApiV1BoardsBoardIdOnboardingStartPostMutationResult =
|
||||||
|
NonNullable<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof startOnboardingApiV1BoardsBoardIdOnboardingStartPost>
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
export type StartOnboardingApiV1BoardsBoardIdOnboardingStartPostMutationBody =
|
||||||
|
BoardOnboardingStart;
|
||||||
|
export type StartOnboardingApiV1BoardsBoardIdOnboardingStartPostMutationError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Start Onboarding
|
||||||
|
*/
|
||||||
|
export const useStartOnboardingApiV1BoardsBoardIdOnboardingStartPost = <
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
TContext = unknown,
|
||||||
|
>(
|
||||||
|
options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof startOnboardingApiV1BoardsBoardIdOnboardingStartPost>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; data: BoardOnboardingStart },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseMutationResult<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof startOnboardingApiV1BoardsBoardIdOnboardingStartPost>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; data: BoardOnboardingStart },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(
|
||||||
|
getStartOnboardingApiV1BoardsBoardIdOnboardingStartPostMutationOptions(
|
||||||
|
options,
|
||||||
|
),
|
||||||
|
queryClient,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Send a user onboarding answer to the gateway agent.
|
||||||
|
* @summary Answer Onboarding
|
||||||
|
*/
|
||||||
|
export type answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponse200 =
|
||||||
|
{
|
||||||
|
data: BoardOnboardingRead;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponse422 =
|
||||||
|
{
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponseSuccess =
|
||||||
|
answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponseError =
|
||||||
|
answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponse =
|
||||||
|
| answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponseSuccess
|
||||||
|
| answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponseError;
|
||||||
|
|
||||||
|
export const getAnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostUrl = (
|
||||||
|
boardId: string,
|
||||||
|
) => {
|
||||||
|
return `/api/v1/boards/${boardId}/onboarding/answer`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost = async (
|
||||||
|
boardId: string,
|
||||||
|
boardOnboardingAnswer: BoardOnboardingAnswer,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponse> => {
|
||||||
|
return customFetch<answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponse>(
|
||||||
|
getAnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostUrl(boardId),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "POST",
|
||||||
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
||||||
|
body: JSON.stringify(boardOnboardingAnswer),
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getAnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostMutationOptions =
|
||||||
|
<TError = HTTPValidationError, TContext = unknown>(options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; data: BoardOnboardingAnswer },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
}): UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; data: BoardOnboardingAnswer },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
const mutationKey = [
|
||||||
|
"answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost",
|
||||||
|
];
|
||||||
|
const { mutation: mutationOptions, request: requestOptions } = options
|
||||||
|
? options.mutation &&
|
||||||
|
"mutationKey" in options.mutation &&
|
||||||
|
options.mutation.mutationKey
|
||||||
|
? options
|
||||||
|
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||||
|
: { mutation: { mutationKey }, request: undefined };
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
{ boardId: string; data: BoardOnboardingAnswer }
|
||||||
|
> = (props) => {
|
||||||
|
const { boardId, data } = props ?? {};
|
||||||
|
|
||||||
|
return answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost(
|
||||||
|
boardId,
|
||||||
|
data,
|
||||||
|
requestOptions,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type AnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostMutationResult =
|
||||||
|
NonNullable<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost>
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
export type AnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostMutationBody =
|
||||||
|
BoardOnboardingAnswer;
|
||||||
|
export type AnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostMutationError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Answer Onboarding
|
||||||
|
*/
|
||||||
|
export const useAnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost = <
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
TContext = unknown,
|
||||||
|
>(
|
||||||
|
options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; data: BoardOnboardingAnswer },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseMutationResult<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; data: BoardOnboardingAnswer },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(
|
||||||
|
getAnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostMutationOptions(
|
||||||
|
options,
|
||||||
|
),
|
||||||
|
queryClient,
|
||||||
|
);
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* Store onboarding updates submitted by the gateway agent.
|
* Store onboarding updates submitted by the gateway agent.
|
||||||
* @summary Agent Onboarding Update
|
* @summary Agent Onboarding Update
|
||||||
|
|
@ -449,156 +741,6 @@ export const useAgentOnboardingUpdateApiV1BoardsBoardIdOnboardingAgentPost = <
|
||||||
queryClient,
|
queryClient,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* Send a user onboarding answer to the gateway agent.
|
|
||||||
* @summary Answer Onboarding
|
|
||||||
*/
|
|
||||||
export type answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponse200 =
|
|
||||||
{
|
|
||||||
data: BoardOnboardingRead;
|
|
||||||
status: 200;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponse422 =
|
|
||||||
{
|
|
||||||
data: HTTPValidationError;
|
|
||||||
status: 422;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponseSuccess =
|
|
||||||
answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponse200 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponseError =
|
|
||||||
answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponse422 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponse =
|
|
||||||
| answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponseSuccess
|
|
||||||
| answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponseError;
|
|
||||||
|
|
||||||
export const getAnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostUrl = (
|
|
||||||
boardId: string,
|
|
||||||
) => {
|
|
||||||
return `/api/v1/boards/${boardId}/onboarding/answer`;
|
|
||||||
};
|
|
||||||
|
|
||||||
export const answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost = async (
|
|
||||||
boardId: string,
|
|
||||||
boardOnboardingAnswer: BoardOnboardingAnswer,
|
|
||||||
options?: RequestInit,
|
|
||||||
): Promise<answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponse> => {
|
|
||||||
return customFetch<answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostResponse>(
|
|
||||||
getAnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostUrl(boardId),
|
|
||||||
{
|
|
||||||
...options,
|
|
||||||
method: "POST",
|
|
||||||
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
||||||
body: JSON.stringify(boardOnboardingAnswer),
|
|
||||||
},
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const getAnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostMutationOptions =
|
|
||||||
<TError = HTTPValidationError, TContext = unknown>(options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string; data: BoardOnboardingAnswer },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
}): UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<typeof answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string; data: BoardOnboardingAnswer },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
const mutationKey = [
|
|
||||||
"answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost",
|
|
||||||
];
|
|
||||||
const { mutation: mutationOptions, request: requestOptions } = options
|
|
||||||
? options.mutation &&
|
|
||||||
"mutationKey" in options.mutation &&
|
|
||||||
options.mutation.mutationKey
|
|
||||||
? options
|
|
||||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
||||||
: { mutation: { mutationKey }, request: undefined };
|
|
||||||
|
|
||||||
const mutationFn: MutationFunction<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
{ boardId: string; data: BoardOnboardingAnswer }
|
|
||||||
> = (props) => {
|
|
||||||
const { boardId, data } = props ?? {};
|
|
||||||
|
|
||||||
return answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost(
|
|
||||||
boardId,
|
|
||||||
data,
|
|
||||||
requestOptions,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
return { mutationFn, ...mutationOptions };
|
|
||||||
};
|
|
||||||
|
|
||||||
export type AnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostMutationResult =
|
|
||||||
NonNullable<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<typeof answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost>
|
|
||||||
>
|
|
||||||
>;
|
|
||||||
export type AnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostMutationBody =
|
|
||||||
BoardOnboardingAnswer;
|
|
||||||
export type AnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostMutationError =
|
|
||||||
HTTPValidationError;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @summary Answer Onboarding
|
|
||||||
*/
|
|
||||||
export const useAnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost = <
|
|
||||||
TError = HTTPValidationError,
|
|
||||||
TContext = unknown,
|
|
||||||
>(
|
|
||||||
options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string; data: BoardOnboardingAnswer },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
},
|
|
||||||
queryClient?: QueryClient,
|
|
||||||
): UseMutationResult<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<typeof answerOnboardingApiV1BoardsBoardIdOnboardingAnswerPost>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string; data: BoardOnboardingAnswer },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
return useMutation(
|
|
||||||
getAnswerOnboardingApiV1BoardsBoardIdOnboardingAnswerPostMutationOptions(
|
|
||||||
options,
|
|
||||||
),
|
|
||||||
queryClient,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* Confirm onboarding results and provision the board lead agent.
|
* Confirm onboarding results and provision the board lead agent.
|
||||||
* @summary Confirm Onboarding
|
* @summary Confirm Onboarding
|
||||||
|
|
@ -753,145 +895,3 @@ export const useConfirmOnboardingApiV1BoardsBoardIdOnboardingConfirmPost = <
|
||||||
queryClient,
|
queryClient,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* Start onboarding and send instructions to the gateway agent.
|
|
||||||
* @summary Start Onboarding
|
|
||||||
*/
|
|
||||||
export type startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponse200 = {
|
|
||||||
data: BoardOnboardingRead;
|
|
||||||
status: 200;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponse422 = {
|
|
||||||
data: HTTPValidationError;
|
|
||||||
status: 422;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponseSuccess =
|
|
||||||
startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponse200 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponseError =
|
|
||||||
startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponse422 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponse =
|
|
||||||
| startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponseSuccess
|
|
||||||
| startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponseError;
|
|
||||||
|
|
||||||
export const getStartOnboardingApiV1BoardsBoardIdOnboardingStartPostUrl = (
|
|
||||||
boardId: string,
|
|
||||||
) => {
|
|
||||||
return `/api/v1/boards/${boardId}/onboarding/start`;
|
|
||||||
};
|
|
||||||
|
|
||||||
export const startOnboardingApiV1BoardsBoardIdOnboardingStartPost = async (
|
|
||||||
boardId: string,
|
|
||||||
boardOnboardingStart: BoardOnboardingStart,
|
|
||||||
options?: RequestInit,
|
|
||||||
): Promise<startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponse> => {
|
|
||||||
return customFetch<startOnboardingApiV1BoardsBoardIdOnboardingStartPostResponse>(
|
|
||||||
getStartOnboardingApiV1BoardsBoardIdOnboardingStartPostUrl(boardId),
|
|
||||||
{
|
|
||||||
...options,
|
|
||||||
method: "POST",
|
|
||||||
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
||||||
body: JSON.stringify(boardOnboardingStart),
|
|
||||||
},
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const getStartOnboardingApiV1BoardsBoardIdOnboardingStartPostMutationOptions =
|
|
||||||
<TError = HTTPValidationError, TContext = unknown>(options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<typeof startOnboardingApiV1BoardsBoardIdOnboardingStartPost>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string; data: BoardOnboardingStart },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
}): UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<typeof startOnboardingApiV1BoardsBoardIdOnboardingStartPost>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string; data: BoardOnboardingStart },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
const mutationKey = [
|
|
||||||
"startOnboardingApiV1BoardsBoardIdOnboardingStartPost",
|
|
||||||
];
|
|
||||||
const { mutation: mutationOptions, request: requestOptions } = options
|
|
||||||
? options.mutation &&
|
|
||||||
"mutationKey" in options.mutation &&
|
|
||||||
options.mutation.mutationKey
|
|
||||||
? options
|
|
||||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
||||||
: { mutation: { mutationKey }, request: undefined };
|
|
||||||
|
|
||||||
const mutationFn: MutationFunction<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<typeof startOnboardingApiV1BoardsBoardIdOnboardingStartPost>
|
|
||||||
>,
|
|
||||||
{ boardId: string; data: BoardOnboardingStart }
|
|
||||||
> = (props) => {
|
|
||||||
const { boardId, data } = props ?? {};
|
|
||||||
|
|
||||||
return startOnboardingApiV1BoardsBoardIdOnboardingStartPost(
|
|
||||||
boardId,
|
|
||||||
data,
|
|
||||||
requestOptions,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
return { mutationFn, ...mutationOptions };
|
|
||||||
};
|
|
||||||
|
|
||||||
export type StartOnboardingApiV1BoardsBoardIdOnboardingStartPostMutationResult =
|
|
||||||
NonNullable<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<typeof startOnboardingApiV1BoardsBoardIdOnboardingStartPost>
|
|
||||||
>
|
|
||||||
>;
|
|
||||||
export type StartOnboardingApiV1BoardsBoardIdOnboardingStartPostMutationBody =
|
|
||||||
BoardOnboardingStart;
|
|
||||||
export type StartOnboardingApiV1BoardsBoardIdOnboardingStartPostMutationError =
|
|
||||||
HTTPValidationError;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @summary Start Onboarding
|
|
||||||
*/
|
|
||||||
export const useStartOnboardingApiV1BoardsBoardIdOnboardingStartPost = <
|
|
||||||
TError = HTTPValidationError,
|
|
||||||
TContext = unknown,
|
|
||||||
>(
|
|
||||||
options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<typeof startOnboardingApiV1BoardsBoardIdOnboardingStartPost>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string; data: BoardOnboardingStart },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
},
|
|
||||||
queryClient?: QueryClient,
|
|
||||||
): UseMutationResult<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<typeof startOnboardingApiV1BoardsBoardIdOnboardingStartPost>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string; data: BoardOnboardingStart },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
return useMutation(
|
|
||||||
getStartOnboardingApiV1BoardsBoardIdOnboardingStartPostMutationOptions(
|
|
||||||
options,
|
|
||||||
),
|
|
||||||
queryClient,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,632 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||||
|
import type {
|
||||||
|
DataTag,
|
||||||
|
DefinedInitialDataOptions,
|
||||||
|
DefinedUseQueryResult,
|
||||||
|
MutationFunction,
|
||||||
|
QueryClient,
|
||||||
|
QueryFunction,
|
||||||
|
QueryKey,
|
||||||
|
UndefinedInitialDataOptions,
|
||||||
|
UseMutationOptions,
|
||||||
|
UseMutationResult,
|
||||||
|
UseQueryOptions,
|
||||||
|
UseQueryResult,
|
||||||
|
} from "@tanstack/react-query";
|
||||||
|
|
||||||
|
import type {
|
||||||
|
BoardRepositoryLinkCreate,
|
||||||
|
BoardRepositoryLinkDeleteResponse,
|
||||||
|
BoardRepositoryLinkRead,
|
||||||
|
BoardRepositoryLinkResponse,
|
||||||
|
HTTPValidationError,
|
||||||
|
} from ".././model";
|
||||||
|
|
||||||
|
import { customFetch } from "../../mutator";
|
||||||
|
|
||||||
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List repositories linked to a board.
|
||||||
|
* @summary List Board Repositories
|
||||||
|
*/
|
||||||
|
export type listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetResponse200 =
|
||||||
|
{
|
||||||
|
data: BoardRepositoryLinkRead[];
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetResponse422 =
|
||||||
|
{
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetResponseSuccess =
|
||||||
|
listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetResponseError =
|
||||||
|
listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetResponse =
|
||||||
|
|
||||||
|
| listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetResponseSuccess
|
||||||
|
| listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetResponseError;
|
||||||
|
|
||||||
|
export const getListBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetUrl =
|
||||||
|
(boardId: string) => {
|
||||||
|
return `/api/v1/boards/${boardId}/forgejo/repositories`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet =
|
||||||
|
async (
|
||||||
|
boardId: string,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetResponse> => {
|
||||||
|
return customFetch<listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetResponse>(
|
||||||
|
getListBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetUrl(
|
||||||
|
boardId,
|
||||||
|
),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "GET",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getListBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetQueryKey =
|
||||||
|
(boardId: string) => {
|
||||||
|
return [`/api/v1/boards/${boardId}/forgejo/repositories`] as const;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getListBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetQueryOptions =
|
||||||
|
<
|
||||||
|
TData = Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
boardId: string,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
) => {
|
||||||
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||||
|
|
||||||
|
const queryKey =
|
||||||
|
queryOptions?.queryKey ??
|
||||||
|
getListBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetQueryKey(
|
||||||
|
boardId,
|
||||||
|
);
|
||||||
|
|
||||||
|
const queryFn: QueryFunction<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>
|
||||||
|
> = ({ signal }) =>
|
||||||
|
listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet(boardId, {
|
||||||
|
signal,
|
||||||
|
...requestOptions,
|
||||||
|
});
|
||||||
|
|
||||||
|
return {
|
||||||
|
queryKey,
|
||||||
|
queryFn,
|
||||||
|
enabled: !!boardId,
|
||||||
|
...queryOptions,
|
||||||
|
} as UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ListBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetQueryResult =
|
||||||
|
NonNullable<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
export type ListBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetQueryError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
export function useListBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet<
|
||||||
|
TData = Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
boardId: string,
|
||||||
|
options: {
|
||||||
|
query: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
> &
|
||||||
|
Pick<
|
||||||
|
DefinedInitialDataOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
"initialData"
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): DefinedUseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
export function useListBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet<
|
||||||
|
TData = Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
boardId: string,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
> &
|
||||||
|
Pick<
|
||||||
|
UndefinedInitialDataOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
"initialData"
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
export function useListBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet<
|
||||||
|
TData = Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
boardId: string,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* @summary List Board Repositories
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function useListBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet<
|
||||||
|
TData = Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
boardId: string,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof listBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGet
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
} {
|
||||||
|
const queryOptions =
|
||||||
|
getListBoardRepositoriesApiV1BoardsBoardIdForgejoRepositoriesGetQueryOptions(
|
||||||
|
boardId,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
|
||||||
|
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||||
|
TData,
|
||||||
|
TError
|
||||||
|
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
|
||||||
|
return { ...query, queryKey: queryOptions.queryKey };
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Link a Forgejo repository to a board.
|
||||||
|
* @summary Link Repository To Board
|
||||||
|
*/
|
||||||
|
export type linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostResponse200 =
|
||||||
|
{
|
||||||
|
data: BoardRepositoryLinkResponse;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostResponse422 =
|
||||||
|
{
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostResponseSuccess =
|
||||||
|
linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostResponseError =
|
||||||
|
linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostResponse =
|
||||||
|
|
||||||
|
| linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostResponseSuccess
|
||||||
|
| linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostResponseError;
|
||||||
|
|
||||||
|
export const getLinkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostUrl =
|
||||||
|
(boardId: string) => {
|
||||||
|
return `/api/v1/boards/${boardId}/forgejo/repositories`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPost =
|
||||||
|
async (
|
||||||
|
boardId: string,
|
||||||
|
boardRepositoryLinkCreate: BoardRepositoryLinkCreate,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostResponse> => {
|
||||||
|
return customFetch<linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostResponse>(
|
||||||
|
getLinkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostUrl(
|
||||||
|
boardId,
|
||||||
|
),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "POST",
|
||||||
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
||||||
|
body: JSON.stringify(boardRepositoryLinkCreate),
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getLinkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostMutationOptions =
|
||||||
|
<TError = HTTPValidationError, TContext = unknown>(options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; data: BoardRepositoryLinkCreate },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
}): UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; data: BoardRepositoryLinkCreate },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
const mutationKey = [
|
||||||
|
"linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPost",
|
||||||
|
];
|
||||||
|
const { mutation: mutationOptions, request: requestOptions } = options
|
||||||
|
? options.mutation &&
|
||||||
|
"mutationKey" in options.mutation &&
|
||||||
|
options.mutation.mutationKey
|
||||||
|
? options
|
||||||
|
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||||
|
: { mutation: { mutationKey }, request: undefined };
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
{ boardId: string; data: BoardRepositoryLinkCreate }
|
||||||
|
> = (props) => {
|
||||||
|
const { boardId, data } = props ?? {};
|
||||||
|
|
||||||
|
return linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPost(
|
||||||
|
boardId,
|
||||||
|
data,
|
||||||
|
requestOptions,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type LinkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostMutationResult =
|
||||||
|
NonNullable<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPost
|
||||||
|
>
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
export type LinkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostMutationBody =
|
||||||
|
BoardRepositoryLinkCreate;
|
||||||
|
export type LinkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostMutationError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Link Repository To Board
|
||||||
|
*/
|
||||||
|
export const useLinkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPost =
|
||||||
|
<TError = HTTPValidationError, TContext = unknown>(
|
||||||
|
options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; data: BoardRepositoryLinkCreate },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseMutationResult<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof linkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; data: BoardRepositoryLinkCreate },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(
|
||||||
|
getLinkRepositoryToBoardApiV1BoardsBoardIdForgejoRepositoriesPostMutationOptions(
|
||||||
|
options,
|
||||||
|
),
|
||||||
|
queryClient,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Remove a repository link from a board.
|
||||||
|
* @summary Unlink Repository From Board
|
||||||
|
*/
|
||||||
|
export type unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteResponse200 =
|
||||||
|
{
|
||||||
|
data: BoardRepositoryLinkDeleteResponse;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteResponse422 =
|
||||||
|
{
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteResponseSuccess =
|
||||||
|
unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteResponseError =
|
||||||
|
unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteResponse =
|
||||||
|
|
||||||
|
| unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteResponseSuccess
|
||||||
|
| unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteResponseError;
|
||||||
|
|
||||||
|
export const getUnlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteUrl =
|
||||||
|
(boardId: string, repositoryId: string) => {
|
||||||
|
return `/api/v1/boards/${boardId}/forgejo/repositories/${repositoryId}`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDelete =
|
||||||
|
async (
|
||||||
|
boardId: string,
|
||||||
|
repositoryId: string,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteResponse> => {
|
||||||
|
return customFetch<unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteResponse>(
|
||||||
|
getUnlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteUrl(
|
||||||
|
boardId,
|
||||||
|
repositoryId,
|
||||||
|
),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "DELETE",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getUnlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteMutationOptions =
|
||||||
|
<TError = HTTPValidationError, TContext = unknown>(options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDelete
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; repositoryId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
}): UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDelete
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; repositoryId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
const mutationKey = [
|
||||||
|
"unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDelete",
|
||||||
|
];
|
||||||
|
const { mutation: mutationOptions, request: requestOptions } = options
|
||||||
|
? options.mutation &&
|
||||||
|
"mutationKey" in options.mutation &&
|
||||||
|
options.mutation.mutationKey
|
||||||
|
? options
|
||||||
|
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||||
|
: { mutation: { mutationKey }, request: undefined };
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDelete
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
{ boardId: string; repositoryId: string }
|
||||||
|
> = (props) => {
|
||||||
|
const { boardId, repositoryId } = props ?? {};
|
||||||
|
|
||||||
|
return unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDelete(
|
||||||
|
boardId,
|
||||||
|
repositoryId,
|
||||||
|
requestOptions,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type UnlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteMutationResult =
|
||||||
|
NonNullable<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDelete
|
||||||
|
>
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
|
||||||
|
export type UnlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteMutationError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Unlink Repository From Board
|
||||||
|
*/
|
||||||
|
export const useUnlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDelete =
|
||||||
|
<TError = HTTPValidationError, TContext = unknown>(
|
||||||
|
options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDelete
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; repositoryId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseMutationResult<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof unlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDelete
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; repositoryId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(
|
||||||
|
getUnlinkRepositoryFromBoardApiV1BoardsBoardIdForgejoRepositoriesRepositoryIdDeleteMutationOptions(
|
||||||
|
options,
|
||||||
|
),
|
||||||
|
queryClient,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
@ -435,163 +435,6 @@ export const useCreateBoardWebhookApiV1BoardsBoardIdWebhooksPost = <
|
||||||
queryClient,
|
queryClient,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* Delete a webhook and its stored payload rows.
|
|
||||||
* @summary Delete Board Webhook
|
|
||||||
*/
|
|
||||||
export type deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponse200 =
|
|
||||||
{
|
|
||||||
data: OkResponse;
|
|
||||||
status: 200;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponse422 =
|
|
||||||
{
|
|
||||||
data: HTTPValidationError;
|
|
||||||
status: 422;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponseSuccess =
|
|
||||||
deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponse200 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponseError =
|
|
||||||
deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponse422 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponse =
|
|
||||||
|
|
||||||
| deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponseSuccess
|
|
||||||
| deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponseError;
|
|
||||||
|
|
||||||
export const getDeleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteUrl =
|
|
||||||
(boardId: string, webhookId: string) => {
|
|
||||||
return `/api/v1/boards/${boardId}/webhooks/${webhookId}`;
|
|
||||||
};
|
|
||||||
|
|
||||||
export const deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete =
|
|
||||||
async (
|
|
||||||
boardId: string,
|
|
||||||
webhookId: string,
|
|
||||||
options?: RequestInit,
|
|
||||||
): Promise<deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponse> => {
|
|
||||||
return customFetch<deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponse>(
|
|
||||||
getDeleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteUrl(
|
|
||||||
boardId,
|
|
||||||
webhookId,
|
|
||||||
),
|
|
||||||
{
|
|
||||||
...options,
|
|
||||||
method: "DELETE",
|
|
||||||
},
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const getDeleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteMutationOptions =
|
|
||||||
<TError = HTTPValidationError, TContext = unknown>(options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string; webhookId: string },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
}): UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string; webhookId: string },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
const mutationKey = [
|
|
||||||
"deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete",
|
|
||||||
];
|
|
||||||
const { mutation: mutationOptions, request: requestOptions } = options
|
|
||||||
? options.mutation &&
|
|
||||||
"mutationKey" in options.mutation &&
|
|
||||||
options.mutation.mutationKey
|
|
||||||
? options
|
|
||||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
||||||
: { mutation: { mutationKey }, request: undefined };
|
|
||||||
|
|
||||||
const mutationFn: MutationFunction<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
{ boardId: string; webhookId: string }
|
|
||||||
> = (props) => {
|
|
||||||
const { boardId, webhookId } = props ?? {};
|
|
||||||
|
|
||||||
return deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete(
|
|
||||||
boardId,
|
|
||||||
webhookId,
|
|
||||||
requestOptions,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
return { mutationFn, ...mutationOptions };
|
|
||||||
};
|
|
||||||
|
|
||||||
export type DeleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteMutationResult =
|
|
||||||
NonNullable<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete
|
|
||||||
>
|
|
||||||
>
|
|
||||||
>;
|
|
||||||
|
|
||||||
export type DeleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteMutationError =
|
|
||||||
HTTPValidationError;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @summary Delete Board Webhook
|
|
||||||
*/
|
|
||||||
export const useDeleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete = <
|
|
||||||
TError = HTTPValidationError,
|
|
||||||
TContext = unknown,
|
|
||||||
>(
|
|
||||||
options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string; webhookId: string },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
},
|
|
||||||
queryClient?: QueryClient,
|
|
||||||
): UseMutationResult<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string; webhookId: string },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
return useMutation(
|
|
||||||
getDeleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteMutationOptions(
|
|
||||||
options,
|
|
||||||
),
|
|
||||||
queryClient,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* Get one board webhook configuration.
|
* Get one board webhook configuration.
|
||||||
* @summary Get Board Webhook
|
* @summary Get Board Webhook
|
||||||
|
|
@ -1031,6 +874,163 @@ export const useUpdateBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdPatch = <
|
||||||
queryClient,
|
queryClient,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* Delete a webhook and its stored payload rows.
|
||||||
|
* @summary Delete Board Webhook
|
||||||
|
*/
|
||||||
|
export type deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponse200 =
|
||||||
|
{
|
||||||
|
data: OkResponse;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponse422 =
|
||||||
|
{
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponseSuccess =
|
||||||
|
deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponseError =
|
||||||
|
deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponse =
|
||||||
|
|
||||||
|
| deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponseSuccess
|
||||||
|
| deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponseError;
|
||||||
|
|
||||||
|
export const getDeleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteUrl =
|
||||||
|
(boardId: string, webhookId: string) => {
|
||||||
|
return `/api/v1/boards/${boardId}/webhooks/${webhookId}`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete =
|
||||||
|
async (
|
||||||
|
boardId: string,
|
||||||
|
webhookId: string,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponse> => {
|
||||||
|
return customFetch<deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteResponse>(
|
||||||
|
getDeleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteUrl(
|
||||||
|
boardId,
|
||||||
|
webhookId,
|
||||||
|
),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "DELETE",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getDeleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteMutationOptions =
|
||||||
|
<TError = HTTPValidationError, TContext = unknown>(options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; webhookId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
}): UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; webhookId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
const mutationKey = [
|
||||||
|
"deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete",
|
||||||
|
];
|
||||||
|
const { mutation: mutationOptions, request: requestOptions } = options
|
||||||
|
? options.mutation &&
|
||||||
|
"mutationKey" in options.mutation &&
|
||||||
|
options.mutation.mutationKey
|
||||||
|
? options
|
||||||
|
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||||
|
: { mutation: { mutationKey }, request: undefined };
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
{ boardId: string; webhookId: string }
|
||||||
|
> = (props) => {
|
||||||
|
const { boardId, webhookId } = props ?? {};
|
||||||
|
|
||||||
|
return deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete(
|
||||||
|
boardId,
|
||||||
|
webhookId,
|
||||||
|
requestOptions,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type DeleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteMutationResult =
|
||||||
|
NonNullable<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete
|
||||||
|
>
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
|
||||||
|
export type DeleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteMutationError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Delete Board Webhook
|
||||||
|
*/
|
||||||
|
export const useDeleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete = <
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
TContext = unknown,
|
||||||
|
>(
|
||||||
|
options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; webhookId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseMutationResult<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof deleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDelete
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string; webhookId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(
|
||||||
|
getDeleteBoardWebhookApiV1BoardsBoardIdWebhooksWebhookIdDeleteMutationOptions(
|
||||||
|
options,
|
||||||
|
),
|
||||||
|
queryClient,
|
||||||
|
);
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* Open inbound webhook endpoint that stores payloads and nudges the board lead.
|
* Open inbound webhook endpoint that stores payloads and nudges the board lead.
|
||||||
* @summary Ingest Board Webhook
|
* @summary Ingest Board Webhook
|
||||||
|
|
|
||||||
|
|
@ -363,123 +363,6 @@ export const useCreateBoardApiV1BoardsPost = <
|
||||||
queryClient,
|
queryClient,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* Delete a board and all dependent records.
|
|
||||||
* @summary Delete Board
|
|
||||||
*/
|
|
||||||
export type deleteBoardApiV1BoardsBoardIdDeleteResponse200 = {
|
|
||||||
data: OkResponse;
|
|
||||||
status: 200;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteBoardApiV1BoardsBoardIdDeleteResponse422 = {
|
|
||||||
data: HTTPValidationError;
|
|
||||||
status: 422;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteBoardApiV1BoardsBoardIdDeleteResponseSuccess =
|
|
||||||
deleteBoardApiV1BoardsBoardIdDeleteResponse200 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type deleteBoardApiV1BoardsBoardIdDeleteResponseError =
|
|
||||||
deleteBoardApiV1BoardsBoardIdDeleteResponse422 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteBoardApiV1BoardsBoardIdDeleteResponse =
|
|
||||||
| deleteBoardApiV1BoardsBoardIdDeleteResponseSuccess
|
|
||||||
| deleteBoardApiV1BoardsBoardIdDeleteResponseError;
|
|
||||||
|
|
||||||
export const getDeleteBoardApiV1BoardsBoardIdDeleteUrl = (boardId: string) => {
|
|
||||||
return `/api/v1/boards/${boardId}`;
|
|
||||||
};
|
|
||||||
|
|
||||||
export const deleteBoardApiV1BoardsBoardIdDelete = async (
|
|
||||||
boardId: string,
|
|
||||||
options?: RequestInit,
|
|
||||||
): Promise<deleteBoardApiV1BoardsBoardIdDeleteResponse> => {
|
|
||||||
return customFetch<deleteBoardApiV1BoardsBoardIdDeleteResponse>(
|
|
||||||
getDeleteBoardApiV1BoardsBoardIdDeleteUrl(boardId),
|
|
||||||
{
|
|
||||||
...options,
|
|
||||||
method: "DELETE",
|
|
||||||
},
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const getDeleteBoardApiV1BoardsBoardIdDeleteMutationOptions = <
|
|
||||||
TError = HTTPValidationError,
|
|
||||||
TContext = unknown,
|
|
||||||
>(options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<ReturnType<typeof deleteBoardApiV1BoardsBoardIdDelete>>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
}): UseMutationOptions<
|
|
||||||
Awaited<ReturnType<typeof deleteBoardApiV1BoardsBoardIdDelete>>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
const mutationKey = ["deleteBoardApiV1BoardsBoardIdDelete"];
|
|
||||||
const { mutation: mutationOptions, request: requestOptions } = options
|
|
||||||
? options.mutation &&
|
|
||||||
"mutationKey" in options.mutation &&
|
|
||||||
options.mutation.mutationKey
|
|
||||||
? options
|
|
||||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
||||||
: { mutation: { mutationKey }, request: undefined };
|
|
||||||
|
|
||||||
const mutationFn: MutationFunction<
|
|
||||||
Awaited<ReturnType<typeof deleteBoardApiV1BoardsBoardIdDelete>>,
|
|
||||||
{ boardId: string }
|
|
||||||
> = (props) => {
|
|
||||||
const { boardId } = props ?? {};
|
|
||||||
|
|
||||||
return deleteBoardApiV1BoardsBoardIdDelete(boardId, requestOptions);
|
|
||||||
};
|
|
||||||
|
|
||||||
return { mutationFn, ...mutationOptions };
|
|
||||||
};
|
|
||||||
|
|
||||||
export type DeleteBoardApiV1BoardsBoardIdDeleteMutationResult = NonNullable<
|
|
||||||
Awaited<ReturnType<typeof deleteBoardApiV1BoardsBoardIdDelete>>
|
|
||||||
>;
|
|
||||||
|
|
||||||
export type DeleteBoardApiV1BoardsBoardIdDeleteMutationError =
|
|
||||||
HTTPValidationError;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @summary Delete Board
|
|
||||||
*/
|
|
||||||
export const useDeleteBoardApiV1BoardsBoardIdDelete = <
|
|
||||||
TError = HTTPValidationError,
|
|
||||||
TContext = unknown,
|
|
||||||
>(
|
|
||||||
options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<ReturnType<typeof deleteBoardApiV1BoardsBoardIdDelete>>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
},
|
|
||||||
queryClient?: QueryClient,
|
|
||||||
): UseMutationResult<
|
|
||||||
Awaited<ReturnType<typeof deleteBoardApiV1BoardsBoardIdDelete>>,
|
|
||||||
TError,
|
|
||||||
{ boardId: string },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
return useMutation(
|
|
||||||
getDeleteBoardApiV1BoardsBoardIdDeleteMutationOptions(options),
|
|
||||||
queryClient,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* Get a board by id.
|
* Get a board by id.
|
||||||
* @summary Get Board
|
* @summary Get Board
|
||||||
|
|
@ -800,6 +683,362 @@ export const useUpdateBoardApiV1BoardsBoardIdPatch = <
|
||||||
queryClient,
|
queryClient,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* Delete a board and all dependent records.
|
||||||
|
* @summary Delete Board
|
||||||
|
*/
|
||||||
|
export type deleteBoardApiV1BoardsBoardIdDeleteResponse200 = {
|
||||||
|
data: OkResponse;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type deleteBoardApiV1BoardsBoardIdDeleteResponse422 = {
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type deleteBoardApiV1BoardsBoardIdDeleteResponseSuccess =
|
||||||
|
deleteBoardApiV1BoardsBoardIdDeleteResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type deleteBoardApiV1BoardsBoardIdDeleteResponseError =
|
||||||
|
deleteBoardApiV1BoardsBoardIdDeleteResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type deleteBoardApiV1BoardsBoardIdDeleteResponse =
|
||||||
|
| deleteBoardApiV1BoardsBoardIdDeleteResponseSuccess
|
||||||
|
| deleteBoardApiV1BoardsBoardIdDeleteResponseError;
|
||||||
|
|
||||||
|
export const getDeleteBoardApiV1BoardsBoardIdDeleteUrl = (boardId: string) => {
|
||||||
|
return `/api/v1/boards/${boardId}`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const deleteBoardApiV1BoardsBoardIdDelete = async (
|
||||||
|
boardId: string,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<deleteBoardApiV1BoardsBoardIdDeleteResponse> => {
|
||||||
|
return customFetch<deleteBoardApiV1BoardsBoardIdDeleteResponse>(
|
||||||
|
getDeleteBoardApiV1BoardsBoardIdDeleteUrl(boardId),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "DELETE",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getDeleteBoardApiV1BoardsBoardIdDeleteMutationOptions = <
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
TContext = unknown,
|
||||||
|
>(options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<ReturnType<typeof deleteBoardApiV1BoardsBoardIdDelete>>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
}): UseMutationOptions<
|
||||||
|
Awaited<ReturnType<typeof deleteBoardApiV1BoardsBoardIdDelete>>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
const mutationKey = ["deleteBoardApiV1BoardsBoardIdDelete"];
|
||||||
|
const { mutation: mutationOptions, request: requestOptions } = options
|
||||||
|
? options.mutation &&
|
||||||
|
"mutationKey" in options.mutation &&
|
||||||
|
options.mutation.mutationKey
|
||||||
|
? options
|
||||||
|
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||||
|
: { mutation: { mutationKey }, request: undefined };
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<
|
||||||
|
Awaited<ReturnType<typeof deleteBoardApiV1BoardsBoardIdDelete>>,
|
||||||
|
{ boardId: string }
|
||||||
|
> = (props) => {
|
||||||
|
const { boardId } = props ?? {};
|
||||||
|
|
||||||
|
return deleteBoardApiV1BoardsBoardIdDelete(boardId, requestOptions);
|
||||||
|
};
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type DeleteBoardApiV1BoardsBoardIdDeleteMutationResult = NonNullable<
|
||||||
|
Awaited<ReturnType<typeof deleteBoardApiV1BoardsBoardIdDelete>>
|
||||||
|
>;
|
||||||
|
|
||||||
|
export type DeleteBoardApiV1BoardsBoardIdDeleteMutationError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Delete Board
|
||||||
|
*/
|
||||||
|
export const useDeleteBoardApiV1BoardsBoardIdDelete = <
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
TContext = unknown,
|
||||||
|
>(
|
||||||
|
options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<ReturnType<typeof deleteBoardApiV1BoardsBoardIdDelete>>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseMutationResult<
|
||||||
|
Awaited<ReturnType<typeof deleteBoardApiV1BoardsBoardIdDelete>>,
|
||||||
|
TError,
|
||||||
|
{ boardId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(
|
||||||
|
getDeleteBoardApiV1BoardsBoardIdDeleteMutationOptions(options),
|
||||||
|
queryClient,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Get a board snapshot view model.
|
||||||
|
* @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 };
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a grouped snapshot across related boards.
|
* Get a grouped snapshot across related boards.
|
||||||
|
|
||||||
|
|
@ -1104,242 +1343,3 @@ export function useGetBoardGroupSnapshotApiV1BoardsBoardIdGroupSnapshotGet<
|
||||||
|
|
||||||
return { ...query, queryKey: queryOptions.queryKey };
|
return { ...query, queryKey: queryOptions.queryKey };
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a board snapshot view model.
|
|
||||||
* @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 };
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -425,158 +425,6 @@ export const useCreateOrgCustomFieldApiV1OrganizationsMeCustomFieldsPost = <
|
||||||
queryClient,
|
queryClient,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* Delete an org-level definition when it has no persisted task values.
|
|
||||||
* @summary Delete Org Custom Field
|
|
||||||
*/
|
|
||||||
export type deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponse200 =
|
|
||||||
{
|
|
||||||
data: OkResponse;
|
|
||||||
status: 200;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponse422 =
|
|
||||||
{
|
|
||||||
data: HTTPValidationError;
|
|
||||||
status: 422;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponseSuccess =
|
|
||||||
deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponse200 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
export type deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponseError =
|
|
||||||
deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponse422 & {
|
|
||||||
headers: Headers;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponse =
|
|
||||||
|
|
||||||
| deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponseSuccess
|
|
||||||
| deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponseError;
|
|
||||||
|
|
||||||
export const getDeleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteUrl =
|
|
||||||
(taskCustomFieldDefinitionId: string) => {
|
|
||||||
return `/api/v1/organizations/me/custom-fields/${taskCustomFieldDefinitionId}`;
|
|
||||||
};
|
|
||||||
|
|
||||||
export const deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete =
|
|
||||||
async (
|
|
||||||
taskCustomFieldDefinitionId: string,
|
|
||||||
options?: RequestInit,
|
|
||||||
): Promise<deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponse> => {
|
|
||||||
return customFetch<deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponse>(
|
|
||||||
getDeleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteUrl(
|
|
||||||
taskCustomFieldDefinitionId,
|
|
||||||
),
|
|
||||||
{
|
|
||||||
...options,
|
|
||||||
method: "DELETE",
|
|
||||||
},
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const getDeleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteMutationOptions =
|
|
||||||
<TError = HTTPValidationError, TContext = unknown>(options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ taskCustomFieldDefinitionId: string },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
}): UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ taskCustomFieldDefinitionId: string },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
const mutationKey = [
|
|
||||||
"deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete",
|
|
||||||
];
|
|
||||||
const { mutation: mutationOptions, request: requestOptions } = options
|
|
||||||
? options.mutation &&
|
|
||||||
"mutationKey" in options.mutation &&
|
|
||||||
options.mutation.mutationKey
|
|
||||||
? options
|
|
||||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
||||||
: { mutation: { mutationKey }, request: undefined };
|
|
||||||
|
|
||||||
const mutationFn: MutationFunction<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
{ taskCustomFieldDefinitionId: string }
|
|
||||||
> = (props) => {
|
|
||||||
const { taskCustomFieldDefinitionId } = props ?? {};
|
|
||||||
|
|
||||||
return deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete(
|
|
||||||
taskCustomFieldDefinitionId,
|
|
||||||
requestOptions,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
return { mutationFn, ...mutationOptions };
|
|
||||||
};
|
|
||||||
|
|
||||||
export type DeleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteMutationResult =
|
|
||||||
NonNullable<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete
|
|
||||||
>
|
|
||||||
>
|
|
||||||
>;
|
|
||||||
|
|
||||||
export type DeleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteMutationError =
|
|
||||||
HTTPValidationError;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @summary Delete Org Custom Field
|
|
||||||
*/
|
|
||||||
export const useDeleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete =
|
|
||||||
<TError = HTTPValidationError, TContext = unknown>(
|
|
||||||
options?: {
|
|
||||||
mutation?: UseMutationOptions<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ taskCustomFieldDefinitionId: string },
|
|
||||||
TContext
|
|
||||||
>;
|
|
||||||
request?: SecondParameter<typeof customFetch>;
|
|
||||||
},
|
|
||||||
queryClient?: QueryClient,
|
|
||||||
): UseMutationResult<
|
|
||||||
Awaited<
|
|
||||||
ReturnType<
|
|
||||||
typeof deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete
|
|
||||||
>
|
|
||||||
>,
|
|
||||||
TError,
|
|
||||||
{ taskCustomFieldDefinitionId: string },
|
|
||||||
TContext
|
|
||||||
> => {
|
|
||||||
return useMutation(
|
|
||||||
getDeleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteMutationOptions(
|
|
||||||
options,
|
|
||||||
),
|
|
||||||
queryClient,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* Update an organization-level task custom field definition.
|
* Update an organization-level task custom field definition.
|
||||||
* @summary Update Org Custom Field
|
* @summary Update Org Custom Field
|
||||||
|
|
@ -749,3 +597,155 @@ export const useUpdateOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFi
|
||||||
queryClient,
|
queryClient,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* Delete an org-level definition when it has no persisted task values.
|
||||||
|
* @summary Delete Org Custom Field
|
||||||
|
*/
|
||||||
|
export type deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponse200 =
|
||||||
|
{
|
||||||
|
data: OkResponse;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponse422 =
|
||||||
|
{
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponseSuccess =
|
||||||
|
deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponseError =
|
||||||
|
deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponse =
|
||||||
|
|
||||||
|
| deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponseSuccess
|
||||||
|
| deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponseError;
|
||||||
|
|
||||||
|
export const getDeleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteUrl =
|
||||||
|
(taskCustomFieldDefinitionId: string) => {
|
||||||
|
return `/api/v1/organizations/me/custom-fields/${taskCustomFieldDefinitionId}`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete =
|
||||||
|
async (
|
||||||
|
taskCustomFieldDefinitionId: string,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponse> => {
|
||||||
|
return customFetch<deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteResponse>(
|
||||||
|
getDeleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteUrl(
|
||||||
|
taskCustomFieldDefinitionId,
|
||||||
|
),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "DELETE",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getDeleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteMutationOptions =
|
||||||
|
<TError = HTTPValidationError, TContext = unknown>(options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ taskCustomFieldDefinitionId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
}): UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ taskCustomFieldDefinitionId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
const mutationKey = [
|
||||||
|
"deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete",
|
||||||
|
];
|
||||||
|
const { mutation: mutationOptions, request: requestOptions } = options
|
||||||
|
? options.mutation &&
|
||||||
|
"mutationKey" in options.mutation &&
|
||||||
|
options.mutation.mutationKey
|
||||||
|
? options
|
||||||
|
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||||
|
: { mutation: { mutationKey }, request: undefined };
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
{ taskCustomFieldDefinitionId: string }
|
||||||
|
> = (props) => {
|
||||||
|
const { taskCustomFieldDefinitionId } = props ?? {};
|
||||||
|
|
||||||
|
return deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete(
|
||||||
|
taskCustomFieldDefinitionId,
|
||||||
|
requestOptions,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type DeleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteMutationResult =
|
||||||
|
NonNullable<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete
|
||||||
|
>
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
|
||||||
|
export type DeleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteMutationError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Delete Org Custom Field
|
||||||
|
*/
|
||||||
|
export const useDeleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete =
|
||||||
|
<TError = HTTPValidationError, TContext = unknown>(
|
||||||
|
options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ taskCustomFieldDefinitionId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseMutationResult<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof deleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDelete
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ taskCustomFieldDefinitionId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(
|
||||||
|
getDeleteOrgCustomFieldApiV1OrganizationsMeCustomFieldsTaskCustomFieldDefinitionIdDeleteMutationOptions(
|
||||||
|
options,
|
||||||
|
),
|
||||||
|
queryClient,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,601 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||||
|
import type {
|
||||||
|
DataTag,
|
||||||
|
DefinedInitialDataOptions,
|
||||||
|
DefinedUseQueryResult,
|
||||||
|
MutationFunction,
|
||||||
|
QueryClient,
|
||||||
|
QueryFunction,
|
||||||
|
QueryKey,
|
||||||
|
UndefinedInitialDataOptions,
|
||||||
|
UseMutationOptions,
|
||||||
|
UseMutationResult,
|
||||||
|
UseQueryOptions,
|
||||||
|
UseQueryResult,
|
||||||
|
} from "@tanstack/react-query";
|
||||||
|
|
||||||
|
import type {
|
||||||
|
CloseIssueResponse,
|
||||||
|
ForgejoIssueListResponse,
|
||||||
|
ForgejoIssueRead,
|
||||||
|
HTTPValidationError,
|
||||||
|
ListIssuesApiV1ForgejoIssuesGetParams,
|
||||||
|
} from ".././model";
|
||||||
|
|
||||||
|
import { customFetch } from "../../mutator";
|
||||||
|
|
||||||
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List cached issues with optional filters.
|
||||||
|
* @summary List Issues
|
||||||
|
*/
|
||||||
|
export type listIssuesApiV1ForgejoIssuesGetResponse200 = {
|
||||||
|
data: ForgejoIssueListResponse;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type listIssuesApiV1ForgejoIssuesGetResponse422 = {
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type listIssuesApiV1ForgejoIssuesGetResponseSuccess =
|
||||||
|
listIssuesApiV1ForgejoIssuesGetResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type listIssuesApiV1ForgejoIssuesGetResponseError =
|
||||||
|
listIssuesApiV1ForgejoIssuesGetResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type listIssuesApiV1ForgejoIssuesGetResponse =
|
||||||
|
| listIssuesApiV1ForgejoIssuesGetResponseSuccess
|
||||||
|
| listIssuesApiV1ForgejoIssuesGetResponseError;
|
||||||
|
|
||||||
|
export const getListIssuesApiV1ForgejoIssuesGetUrl = (
|
||||||
|
params?: ListIssuesApiV1ForgejoIssuesGetParams,
|
||||||
|
) => {
|
||||||
|
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/forgejo/issues?${stringifiedParams}`
|
||||||
|
: `/api/v1/forgejo/issues`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const listIssuesApiV1ForgejoIssuesGet = async (
|
||||||
|
params?: ListIssuesApiV1ForgejoIssuesGetParams,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<listIssuesApiV1ForgejoIssuesGetResponse> => {
|
||||||
|
return customFetch<listIssuesApiV1ForgejoIssuesGetResponse>(
|
||||||
|
getListIssuesApiV1ForgejoIssuesGetUrl(params),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "GET",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getListIssuesApiV1ForgejoIssuesGetQueryKey = (
|
||||||
|
params?: ListIssuesApiV1ForgejoIssuesGetParams,
|
||||||
|
) => {
|
||||||
|
return [`/api/v1/forgejo/issues`, ...(params ? [params] : [])] as const;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getListIssuesApiV1ForgejoIssuesGetQueryOptions = <
|
||||||
|
TData = Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
params?: ListIssuesApiV1ForgejoIssuesGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
) => {
|
||||||
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||||
|
|
||||||
|
const queryKey =
|
||||||
|
queryOptions?.queryKey ??
|
||||||
|
getListIssuesApiV1ForgejoIssuesGetQueryKey(params);
|
||||||
|
|
||||||
|
const queryFn: QueryFunction<
|
||||||
|
Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>
|
||||||
|
> = ({ signal }) =>
|
||||||
|
listIssuesApiV1ForgejoIssuesGet(params, { signal, ...requestOptions });
|
||||||
|
|
||||||
|
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ListIssuesApiV1ForgejoIssuesGetQueryResult = NonNullable<
|
||||||
|
Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>
|
||||||
|
>;
|
||||||
|
export type ListIssuesApiV1ForgejoIssuesGetQueryError = HTTPValidationError;
|
||||||
|
|
||||||
|
export function useListIssuesApiV1ForgejoIssuesGet<
|
||||||
|
TData = Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
params: undefined | ListIssuesApiV1ForgejoIssuesGetParams,
|
||||||
|
options: {
|
||||||
|
query: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
> &
|
||||||
|
Pick<
|
||||||
|
DefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>
|
||||||
|
>,
|
||||||
|
"initialData"
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): DefinedUseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
export function useListIssuesApiV1ForgejoIssuesGet<
|
||||||
|
TData = Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
params?: ListIssuesApiV1ForgejoIssuesGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
> &
|
||||||
|
Pick<
|
||||||
|
UndefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>
|
||||||
|
>,
|
||||||
|
"initialData"
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
export function useListIssuesApiV1ForgejoIssuesGet<
|
||||||
|
TData = Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
params?: ListIssuesApiV1ForgejoIssuesGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* @summary List Issues
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function useListIssuesApiV1ForgejoIssuesGet<
|
||||||
|
TData = Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
params?: ListIssuesApiV1ForgejoIssuesGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof listIssuesApiV1ForgejoIssuesGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
} {
|
||||||
|
const queryOptions = getListIssuesApiV1ForgejoIssuesGetQueryOptions(
|
||||||
|
params,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
|
||||||
|
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||||
|
TData,
|
||||||
|
TError
|
||||||
|
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
|
||||||
|
return { ...query, queryKey: queryOptions.queryKey };
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get one cached issue by ID.
|
||||||
|
* @summary Get Issue
|
||||||
|
*/
|
||||||
|
export type getIssueApiV1ForgejoIssuesIssueIdGetResponse200 = {
|
||||||
|
data: ForgejoIssueRead;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type getIssueApiV1ForgejoIssuesIssueIdGetResponse422 = {
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type getIssueApiV1ForgejoIssuesIssueIdGetResponseSuccess =
|
||||||
|
getIssueApiV1ForgejoIssuesIssueIdGetResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type getIssueApiV1ForgejoIssuesIssueIdGetResponseError =
|
||||||
|
getIssueApiV1ForgejoIssuesIssueIdGetResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type getIssueApiV1ForgejoIssuesIssueIdGetResponse =
|
||||||
|
| getIssueApiV1ForgejoIssuesIssueIdGetResponseSuccess
|
||||||
|
| getIssueApiV1ForgejoIssuesIssueIdGetResponseError;
|
||||||
|
|
||||||
|
export const getGetIssueApiV1ForgejoIssuesIssueIdGetUrl = (issueId: string) => {
|
||||||
|
return `/api/v1/forgejo/issues/${issueId}`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getIssueApiV1ForgejoIssuesIssueIdGet = async (
|
||||||
|
issueId: string,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<getIssueApiV1ForgejoIssuesIssueIdGetResponse> => {
|
||||||
|
return customFetch<getIssueApiV1ForgejoIssuesIssueIdGetResponse>(
|
||||||
|
getGetIssueApiV1ForgejoIssuesIssueIdGetUrl(issueId),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "GET",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getGetIssueApiV1ForgejoIssuesIssueIdGetQueryKey = (
|
||||||
|
issueId: string,
|
||||||
|
) => {
|
||||||
|
return [`/api/v1/forgejo/issues/${issueId}`] as const;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getGetIssueApiV1ForgejoIssuesIssueIdGetQueryOptions = <
|
||||||
|
TData = Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
issueId: string,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
) => {
|
||||||
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||||
|
|
||||||
|
const queryKey =
|
||||||
|
queryOptions?.queryKey ??
|
||||||
|
getGetIssueApiV1ForgejoIssuesIssueIdGetQueryKey(issueId);
|
||||||
|
|
||||||
|
const queryFn: QueryFunction<
|
||||||
|
Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>
|
||||||
|
> = ({ signal }) =>
|
||||||
|
getIssueApiV1ForgejoIssuesIssueIdGet(issueId, {
|
||||||
|
signal,
|
||||||
|
...requestOptions,
|
||||||
|
});
|
||||||
|
|
||||||
|
return {
|
||||||
|
queryKey,
|
||||||
|
queryFn,
|
||||||
|
enabled: !!issueId,
|
||||||
|
...queryOptions,
|
||||||
|
} as UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GetIssueApiV1ForgejoIssuesIssueIdGetQueryResult = NonNullable<
|
||||||
|
Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>
|
||||||
|
>;
|
||||||
|
export type GetIssueApiV1ForgejoIssuesIssueIdGetQueryError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
export function useGetIssueApiV1ForgejoIssuesIssueIdGet<
|
||||||
|
TData = Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
issueId: string,
|
||||||
|
options: {
|
||||||
|
query: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
> &
|
||||||
|
Pick<
|
||||||
|
DefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>
|
||||||
|
>,
|
||||||
|
"initialData"
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): DefinedUseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
export function useGetIssueApiV1ForgejoIssuesIssueIdGet<
|
||||||
|
TData = Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
issueId: string,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
> &
|
||||||
|
Pick<
|
||||||
|
UndefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>
|
||||||
|
>,
|
||||||
|
"initialData"
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
export function useGetIssueApiV1ForgejoIssuesIssueIdGet<
|
||||||
|
TData = Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
issueId: string,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* @summary Get Issue
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function useGetIssueApiV1ForgejoIssuesIssueIdGet<
|
||||||
|
TData = Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
issueId: string,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getIssueApiV1ForgejoIssuesIssueIdGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
} {
|
||||||
|
const queryOptions = getGetIssueApiV1ForgejoIssuesIssueIdGetQueryOptions(
|
||||||
|
issueId,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
|
||||||
|
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||||
|
TData,
|
||||||
|
TError
|
||||||
|
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
|
||||||
|
return { ...query, queryKey: queryOptions.queryKey };
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Close a Forgejo issue by its local ID. The user must have write access to the board that the issue's repository is linked to.
|
||||||
|
* @summary Close a Forgejo issue (human user)
|
||||||
|
*/
|
||||||
|
export type closeIssueApiV1ForgejoIssuesIssueIdClosePostResponse200 = {
|
||||||
|
data: CloseIssueResponse;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type closeIssueApiV1ForgejoIssuesIssueIdClosePostResponse403 = {
|
||||||
|
data: void;
|
||||||
|
status: 403;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type closeIssueApiV1ForgejoIssuesIssueIdClosePostResponse404 = {
|
||||||
|
data: void;
|
||||||
|
status: 404;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type closeIssueApiV1ForgejoIssuesIssueIdClosePostResponse409 = {
|
||||||
|
data: void;
|
||||||
|
status: 409;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type closeIssueApiV1ForgejoIssuesIssueIdClosePostResponse422 = {
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type closeIssueApiV1ForgejoIssuesIssueIdClosePostResponse502 = {
|
||||||
|
data: void;
|
||||||
|
status: 502;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type closeIssueApiV1ForgejoIssuesIssueIdClosePostResponseSuccess =
|
||||||
|
closeIssueApiV1ForgejoIssuesIssueIdClosePostResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type closeIssueApiV1ForgejoIssuesIssueIdClosePostResponseError = (
|
||||||
|
| closeIssueApiV1ForgejoIssuesIssueIdClosePostResponse403
|
||||||
|
| closeIssueApiV1ForgejoIssuesIssueIdClosePostResponse404
|
||||||
|
| closeIssueApiV1ForgejoIssuesIssueIdClosePostResponse409
|
||||||
|
| closeIssueApiV1ForgejoIssuesIssueIdClosePostResponse422
|
||||||
|
| closeIssueApiV1ForgejoIssuesIssueIdClosePostResponse502
|
||||||
|
) & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type closeIssueApiV1ForgejoIssuesIssueIdClosePostResponse =
|
||||||
|
| closeIssueApiV1ForgejoIssuesIssueIdClosePostResponseSuccess
|
||||||
|
| closeIssueApiV1ForgejoIssuesIssueIdClosePostResponseError;
|
||||||
|
|
||||||
|
export const getCloseIssueApiV1ForgejoIssuesIssueIdClosePostUrl = (
|
||||||
|
issueId: string,
|
||||||
|
) => {
|
||||||
|
return `/api/v1/forgejo/issues/${issueId}/close`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const closeIssueApiV1ForgejoIssuesIssueIdClosePost = async (
|
||||||
|
issueId: string,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<closeIssueApiV1ForgejoIssuesIssueIdClosePostResponse> => {
|
||||||
|
return customFetch<closeIssueApiV1ForgejoIssuesIssueIdClosePostResponse>(
|
||||||
|
getCloseIssueApiV1ForgejoIssuesIssueIdClosePostUrl(issueId),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "POST",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getCloseIssueApiV1ForgejoIssuesIssueIdClosePostMutationOptions = <
|
||||||
|
TError = void | HTTPValidationError,
|
||||||
|
TContext = unknown,
|
||||||
|
>(options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<ReturnType<typeof closeIssueApiV1ForgejoIssuesIssueIdClosePost>>,
|
||||||
|
TError,
|
||||||
|
{ issueId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
}): UseMutationOptions<
|
||||||
|
Awaited<ReturnType<typeof closeIssueApiV1ForgejoIssuesIssueIdClosePost>>,
|
||||||
|
TError,
|
||||||
|
{ issueId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
const mutationKey = ["closeIssueApiV1ForgejoIssuesIssueIdClosePost"];
|
||||||
|
const { mutation: mutationOptions, request: requestOptions } = options
|
||||||
|
? options.mutation &&
|
||||||
|
"mutationKey" in options.mutation &&
|
||||||
|
options.mutation.mutationKey
|
||||||
|
? options
|
||||||
|
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||||
|
: { mutation: { mutationKey }, request: undefined };
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<
|
||||||
|
Awaited<ReturnType<typeof closeIssueApiV1ForgejoIssuesIssueIdClosePost>>,
|
||||||
|
{ issueId: string }
|
||||||
|
> = (props) => {
|
||||||
|
const { issueId } = props ?? {};
|
||||||
|
|
||||||
|
return closeIssueApiV1ForgejoIssuesIssueIdClosePost(
|
||||||
|
issueId,
|
||||||
|
requestOptions,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type CloseIssueApiV1ForgejoIssuesIssueIdClosePostMutationResult =
|
||||||
|
NonNullable<
|
||||||
|
Awaited<ReturnType<typeof closeIssueApiV1ForgejoIssuesIssueIdClosePost>>
|
||||||
|
>;
|
||||||
|
|
||||||
|
export type CloseIssueApiV1ForgejoIssuesIssueIdClosePostMutationError =
|
||||||
|
void | HTTPValidationError;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Close a Forgejo issue (human user)
|
||||||
|
*/
|
||||||
|
export const useCloseIssueApiV1ForgejoIssuesIssueIdClosePost = <
|
||||||
|
TError = void | HTTPValidationError,
|
||||||
|
TContext = unknown,
|
||||||
|
>(
|
||||||
|
options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<ReturnType<typeof closeIssueApiV1ForgejoIssuesIssueIdClosePost>>,
|
||||||
|
TError,
|
||||||
|
{ issueId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseMutationResult<
|
||||||
|
Awaited<ReturnType<typeof closeIssueApiV1ForgejoIssuesIssueIdClosePost>>,
|
||||||
|
TError,
|
||||||
|
{ issueId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(
|
||||||
|
getCloseIssueApiV1ForgejoIssuesIssueIdClosePostMutationOptions(options),
|
||||||
|
queryClient,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,469 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
import { useQuery } from "@tanstack/react-query";
|
||||||
|
import type {
|
||||||
|
DataTag,
|
||||||
|
DefinedInitialDataOptions,
|
||||||
|
DefinedUseQueryResult,
|
||||||
|
QueryClient,
|
||||||
|
QueryFunction,
|
||||||
|
QueryKey,
|
||||||
|
UndefinedInitialDataOptions,
|
||||||
|
UseQueryOptions,
|
||||||
|
UseQueryResult,
|
||||||
|
} from "@tanstack/react-query";
|
||||||
|
|
||||||
|
import type {
|
||||||
|
GetForgejoHeatmapApiV1ForgejoHeatmapGetParams,
|
||||||
|
GetForgejoMetricsApiV1ForgejoMetricsGetParams,
|
||||||
|
HTTPValidationError,
|
||||||
|
HeatmapResponse,
|
||||||
|
MetricsResponse,
|
||||||
|
} from ".././model";
|
||||||
|
|
||||||
|
import { customFetch } from "../../mutator";
|
||||||
|
|
||||||
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get aggregated metrics for Forgejo issues across linked repositories. Supports filtering by organization_id, board_id, or repository_id. Empty scope returns zeroed metrics.
|
||||||
|
* @summary Forgejo issue tracking metrics
|
||||||
|
*/
|
||||||
|
export type getForgejoMetricsApiV1ForgejoMetricsGetResponse200 = {
|
||||||
|
data: MetricsResponse;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type getForgejoMetricsApiV1ForgejoMetricsGetResponse403 = {
|
||||||
|
data: void;
|
||||||
|
status: 403;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type getForgejoMetricsApiV1ForgejoMetricsGetResponse422 = {
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type getForgejoMetricsApiV1ForgejoMetricsGetResponseSuccess =
|
||||||
|
getForgejoMetricsApiV1ForgejoMetricsGetResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type getForgejoMetricsApiV1ForgejoMetricsGetResponseError = (
|
||||||
|
| getForgejoMetricsApiV1ForgejoMetricsGetResponse403
|
||||||
|
| getForgejoMetricsApiV1ForgejoMetricsGetResponse422
|
||||||
|
) & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type getForgejoMetricsApiV1ForgejoMetricsGetResponse =
|
||||||
|
| getForgejoMetricsApiV1ForgejoMetricsGetResponseSuccess
|
||||||
|
| getForgejoMetricsApiV1ForgejoMetricsGetResponseError;
|
||||||
|
|
||||||
|
export const getGetForgejoMetricsApiV1ForgejoMetricsGetUrl = (
|
||||||
|
params?: GetForgejoMetricsApiV1ForgejoMetricsGetParams,
|
||||||
|
) => {
|
||||||
|
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/forgejo/metrics?${stringifiedParams}`
|
||||||
|
: `/api/v1/forgejo/metrics`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getForgejoMetricsApiV1ForgejoMetricsGet = async (
|
||||||
|
params?: GetForgejoMetricsApiV1ForgejoMetricsGetParams,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<getForgejoMetricsApiV1ForgejoMetricsGetResponse> => {
|
||||||
|
return customFetch<getForgejoMetricsApiV1ForgejoMetricsGetResponse>(
|
||||||
|
getGetForgejoMetricsApiV1ForgejoMetricsGetUrl(params),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "GET",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getGetForgejoMetricsApiV1ForgejoMetricsGetQueryKey = (
|
||||||
|
params?: GetForgejoMetricsApiV1ForgejoMetricsGetParams,
|
||||||
|
) => {
|
||||||
|
return [`/api/v1/forgejo/metrics`, ...(params ? [params] : [])] as const;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getGetForgejoMetricsApiV1ForgejoMetricsGetQueryOptions = <
|
||||||
|
TData = Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>,
|
||||||
|
TError = void | HTTPValidationError,
|
||||||
|
>(
|
||||||
|
params?: GetForgejoMetricsApiV1ForgejoMetricsGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
) => {
|
||||||
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||||
|
|
||||||
|
const queryKey =
|
||||||
|
queryOptions?.queryKey ??
|
||||||
|
getGetForgejoMetricsApiV1ForgejoMetricsGetQueryKey(params);
|
||||||
|
|
||||||
|
const queryFn: QueryFunction<
|
||||||
|
Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>
|
||||||
|
> = ({ signal }) =>
|
||||||
|
getForgejoMetricsApiV1ForgejoMetricsGet(params, {
|
||||||
|
signal,
|
||||||
|
...requestOptions,
|
||||||
|
});
|
||||||
|
|
||||||
|
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GetForgejoMetricsApiV1ForgejoMetricsGetQueryResult = NonNullable<
|
||||||
|
Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>
|
||||||
|
>;
|
||||||
|
export type GetForgejoMetricsApiV1ForgejoMetricsGetQueryError =
|
||||||
|
void | HTTPValidationError;
|
||||||
|
|
||||||
|
export function useGetForgejoMetricsApiV1ForgejoMetricsGet<
|
||||||
|
TData = Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>,
|
||||||
|
TError = void | HTTPValidationError,
|
||||||
|
>(
|
||||||
|
params: undefined | GetForgejoMetricsApiV1ForgejoMetricsGetParams,
|
||||||
|
options: {
|
||||||
|
query: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
> &
|
||||||
|
Pick<
|
||||||
|
DefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>
|
||||||
|
>,
|
||||||
|
"initialData"
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): DefinedUseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
export function useGetForgejoMetricsApiV1ForgejoMetricsGet<
|
||||||
|
TData = Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>,
|
||||||
|
TError = void | HTTPValidationError,
|
||||||
|
>(
|
||||||
|
params?: GetForgejoMetricsApiV1ForgejoMetricsGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
> &
|
||||||
|
Pick<
|
||||||
|
UndefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>
|
||||||
|
>,
|
||||||
|
"initialData"
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
export function useGetForgejoMetricsApiV1ForgejoMetricsGet<
|
||||||
|
TData = Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>,
|
||||||
|
TError = void | HTTPValidationError,
|
||||||
|
>(
|
||||||
|
params?: GetForgejoMetricsApiV1ForgejoMetricsGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* @summary Forgejo issue tracking metrics
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function useGetForgejoMetricsApiV1ForgejoMetricsGet<
|
||||||
|
TData = Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>,
|
||||||
|
TError = void | HTTPValidationError,
|
||||||
|
>(
|
||||||
|
params?: GetForgejoMetricsApiV1ForgejoMetricsGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoMetricsApiV1ForgejoMetricsGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
} {
|
||||||
|
const queryOptions = getGetForgejoMetricsApiV1ForgejoMetricsGetQueryOptions(
|
||||||
|
params,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
|
||||||
|
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||||
|
TData,
|
||||||
|
TError
|
||||||
|
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
|
||||||
|
return { ...query, queryKey: queryOptions.queryKey };
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Daily issue open+close event counts for the last 365 days, scoped to the caller's organisation.
|
||||||
|
* @summary Forgejo issue activity heatmap
|
||||||
|
*/
|
||||||
|
export type getForgejoHeatmapApiV1ForgejoHeatmapGetResponse200 = {
|
||||||
|
data: HeatmapResponse;
|
||||||
|
status: 200;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type getForgejoHeatmapApiV1ForgejoHeatmapGetResponse422 = {
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type getForgejoHeatmapApiV1ForgejoHeatmapGetResponseSuccess =
|
||||||
|
getForgejoHeatmapApiV1ForgejoHeatmapGetResponse200 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type getForgejoHeatmapApiV1ForgejoHeatmapGetResponseError =
|
||||||
|
getForgejoHeatmapApiV1ForgejoHeatmapGetResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type getForgejoHeatmapApiV1ForgejoHeatmapGetResponse =
|
||||||
|
| getForgejoHeatmapApiV1ForgejoHeatmapGetResponseSuccess
|
||||||
|
| getForgejoHeatmapApiV1ForgejoHeatmapGetResponseError;
|
||||||
|
|
||||||
|
export const getGetForgejoHeatmapApiV1ForgejoHeatmapGetUrl = (
|
||||||
|
params?: GetForgejoHeatmapApiV1ForgejoHeatmapGetParams,
|
||||||
|
) => {
|
||||||
|
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/forgejo/heatmap?${stringifiedParams}`
|
||||||
|
: `/api/v1/forgejo/heatmap`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getForgejoHeatmapApiV1ForgejoHeatmapGet = async (
|
||||||
|
params?: GetForgejoHeatmapApiV1ForgejoHeatmapGetParams,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<getForgejoHeatmapApiV1ForgejoHeatmapGetResponse> => {
|
||||||
|
return customFetch<getForgejoHeatmapApiV1ForgejoHeatmapGetResponse>(
|
||||||
|
getGetForgejoHeatmapApiV1ForgejoHeatmapGetUrl(params),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "GET",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getGetForgejoHeatmapApiV1ForgejoHeatmapGetQueryKey = (
|
||||||
|
params?: GetForgejoHeatmapApiV1ForgejoHeatmapGetParams,
|
||||||
|
) => {
|
||||||
|
return [`/api/v1/forgejo/heatmap`, ...(params ? [params] : [])] as const;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getGetForgejoHeatmapApiV1ForgejoHeatmapGetQueryOptions = <
|
||||||
|
TData = Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
params?: GetForgejoHeatmapApiV1ForgejoHeatmapGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
) => {
|
||||||
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||||
|
|
||||||
|
const queryKey =
|
||||||
|
queryOptions?.queryKey ??
|
||||||
|
getGetForgejoHeatmapApiV1ForgejoHeatmapGetQueryKey(params);
|
||||||
|
|
||||||
|
const queryFn: QueryFunction<
|
||||||
|
Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>
|
||||||
|
> = ({ signal }) =>
|
||||||
|
getForgejoHeatmapApiV1ForgejoHeatmapGet(params, {
|
||||||
|
signal,
|
||||||
|
...requestOptions,
|
||||||
|
});
|
||||||
|
|
||||||
|
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GetForgejoHeatmapApiV1ForgejoHeatmapGetQueryResult = NonNullable<
|
||||||
|
Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>
|
||||||
|
>;
|
||||||
|
export type GetForgejoHeatmapApiV1ForgejoHeatmapGetQueryError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
export function useGetForgejoHeatmapApiV1ForgejoHeatmapGet<
|
||||||
|
TData = Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
params: undefined | GetForgejoHeatmapApiV1ForgejoHeatmapGetParams,
|
||||||
|
options: {
|
||||||
|
query: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
> &
|
||||||
|
Pick<
|
||||||
|
DefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>
|
||||||
|
>,
|
||||||
|
"initialData"
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): DefinedUseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
export function useGetForgejoHeatmapApiV1ForgejoHeatmapGet<
|
||||||
|
TData = Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
params?: GetForgejoHeatmapApiV1ForgejoHeatmapGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
> &
|
||||||
|
Pick<
|
||||||
|
UndefinedInitialDataOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>,
|
||||||
|
TError,
|
||||||
|
Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>
|
||||||
|
>,
|
||||||
|
"initialData"
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
export function useGetForgejoHeatmapApiV1ForgejoHeatmapGet<
|
||||||
|
TData = Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
params?: GetForgejoHeatmapApiV1ForgejoHeatmapGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* @summary Forgejo issue activity heatmap
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function useGetForgejoHeatmapApiV1ForgejoHeatmapGet<
|
||||||
|
TData = Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>,
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
>(
|
||||||
|
params?: GetForgejoHeatmapApiV1ForgejoHeatmapGetParams,
|
||||||
|
options?: {
|
||||||
|
query?: Partial<
|
||||||
|
UseQueryOptions<
|
||||||
|
Awaited<ReturnType<typeof getForgejoHeatmapApiV1ForgejoHeatmapGet>>,
|
||||||
|
TError,
|
||||||
|
TData
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseQueryResult<TData, TError> & {
|
||||||
|
queryKey: DataTag<QueryKey, TData, TError>;
|
||||||
|
} {
|
||||||
|
const queryOptions = getGetForgejoHeatmapApiV1ForgejoHeatmapGetQueryOptions(
|
||||||
|
params,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
|
||||||
|
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||||
|
TData,
|
||||||
|
TError
|
||||||
|
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||||
|
|
||||||
|
return { ...query, queryKey: queryOptions.queryKey };
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,174 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
import { useMutation } from "@tanstack/react-query";
|
||||||
|
import type {
|
||||||
|
MutationFunction,
|
||||||
|
QueryClient,
|
||||||
|
UseMutationOptions,
|
||||||
|
UseMutationResult,
|
||||||
|
} from "@tanstack/react-query";
|
||||||
|
|
||||||
|
import type {
|
||||||
|
ForgejoWebhookIngestResponse,
|
||||||
|
HTTPValidationError,
|
||||||
|
} from ".././model";
|
||||||
|
|
||||||
|
import { customFetch } from "../../mutator";
|
||||||
|
|
||||||
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Receive Forgejo issue webhooks and update cached issue records.
|
||||||
|
* @summary Ingest Forgejo Webhook
|
||||||
|
*/
|
||||||
|
export type ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostResponse202 =
|
||||||
|
{
|
||||||
|
data: ForgejoWebhookIngestResponse;
|
||||||
|
status: 202;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostResponse422 =
|
||||||
|
{
|
||||||
|
data: HTTPValidationError;
|
||||||
|
status: 422;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostResponseSuccess =
|
||||||
|
ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostResponse202 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
export type ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostResponseError =
|
||||||
|
ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostResponse422 & {
|
||||||
|
headers: Headers;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostResponse =
|
||||||
|
| ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostResponseSuccess
|
||||||
|
| ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostResponseError;
|
||||||
|
|
||||||
|
export const getIngestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostUrl = (
|
||||||
|
repositoryId: string,
|
||||||
|
) => {
|
||||||
|
return `/api/v1/forgejo/webhooks/${repositoryId}`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPost = async (
|
||||||
|
repositoryId: string,
|
||||||
|
options?: RequestInit,
|
||||||
|
): Promise<ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostResponse> => {
|
||||||
|
return customFetch<ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostResponse>(
|
||||||
|
getIngestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostUrl(
|
||||||
|
repositoryId,
|
||||||
|
),
|
||||||
|
{
|
||||||
|
...options,
|
||||||
|
method: "POST",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getIngestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostMutationOptions =
|
||||||
|
<TError = HTTPValidationError, TContext = unknown>(options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ repositoryId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
}): UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ repositoryId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
const mutationKey = [
|
||||||
|
"ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPost",
|
||||||
|
];
|
||||||
|
const { mutation: mutationOptions, request: requestOptions } = options
|
||||||
|
? options.mutation &&
|
||||||
|
"mutationKey" in options.mutation &&
|
||||||
|
options.mutation.mutationKey
|
||||||
|
? options
|
||||||
|
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||||
|
: { mutation: { mutationKey }, request: undefined };
|
||||||
|
|
||||||
|
const mutationFn: MutationFunction<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
{ repositoryId: string }
|
||||||
|
> = (props) => {
|
||||||
|
const { repositoryId } = props ?? {};
|
||||||
|
|
||||||
|
return ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPost(
|
||||||
|
repositoryId,
|
||||||
|
requestOptions,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
return { mutationFn, ...mutationOptions };
|
||||||
|
};
|
||||||
|
|
||||||
|
export type IngestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostMutationResult =
|
||||||
|
NonNullable<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPost
|
||||||
|
>
|
||||||
|
>
|
||||||
|
>;
|
||||||
|
|
||||||
|
export type IngestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostMutationError =
|
||||||
|
HTTPValidationError;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Ingest Forgejo Webhook
|
||||||
|
*/
|
||||||
|
export const useIngestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPost = <
|
||||||
|
TError = HTTPValidationError,
|
||||||
|
TContext = unknown,
|
||||||
|
>(
|
||||||
|
options?: {
|
||||||
|
mutation?: UseMutationOptions<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<
|
||||||
|
typeof ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPost
|
||||||
|
>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ repositoryId: string },
|
||||||
|
TContext
|
||||||
|
>;
|
||||||
|
request?: SecondParameter<typeof customFetch>;
|
||||||
|
},
|
||||||
|
queryClient?: QueryClient,
|
||||||
|
): UseMutationResult<
|
||||||
|
Awaited<
|
||||||
|
ReturnType<typeof ingestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPost>
|
||||||
|
>,
|
||||||
|
TError,
|
||||||
|
{ repositoryId: string },
|
||||||
|
TContext
|
||||||
|
> => {
|
||||||
|
return useMutation(
|
||||||
|
getIngestForgejoWebhookApiV1ForgejoWebhooksRepositoryIdPostMutationOptions(
|
||||||
|
options,
|
||||||
|
),
|
||||||
|
queryClient,
|
||||||
|
);
|
||||||
|
};
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -10,13 +10,13 @@ import type { ActivityEventReadRouteParams } from "./activityEventReadRouteParam
|
||||||
* Serialized activity event payload returned by activity endpoints.
|
* Serialized activity event payload returned by activity endpoints.
|
||||||
*/
|
*/
|
||||||
export interface ActivityEventRead {
|
export interface ActivityEventRead {
|
||||||
agent_id: string | null;
|
|
||||||
board_id?: string | null;
|
|
||||||
created_at: string;
|
|
||||||
event_type: string;
|
|
||||||
id: string;
|
id: string;
|
||||||
|
event_type: string;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
|
agent_id: string | null;
|
||||||
|
task_id: string | null;
|
||||||
|
board_id?: string | null;
|
||||||
route_name?: string | null;
|
route_name?: string | null;
|
||||||
route_params?: ActivityEventReadRouteParams;
|
route_params?: ActivityEventReadRouteParams;
|
||||||
task_id: string | null;
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,14 +9,14 @@
|
||||||
* Denormalized task-comment feed item enriched with task and board fields.
|
* Denormalized task-comment feed item enriched with task and board fields.
|
||||||
*/
|
*/
|
||||||
export interface ActivityTaskCommentFeedItemRead {
|
export interface ActivityTaskCommentFeedItemRead {
|
||||||
|
id: string;
|
||||||
|
created_at: string;
|
||||||
|
message: string | null;
|
||||||
agent_id: string | null;
|
agent_id: string | null;
|
||||||
agent_name?: string | null;
|
agent_name?: string | null;
|
||||||
agent_role?: string | null;
|
agent_role?: string | null;
|
||||||
board_id: string;
|
|
||||||
board_name: string;
|
|
||||||
created_at: string;
|
|
||||||
id: string;
|
|
||||||
message: string | null;
|
|
||||||
task_id: string;
|
task_id: string;
|
||||||
task_title: string;
|
task_title: string;
|
||||||
|
board_id: string;
|
||||||
|
board_name: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,19 +13,19 @@ import type { AgentCreateIdentityProfile } from "./agentCreateIdentityProfile";
|
||||||
export interface AgentCreate {
|
export interface AgentCreate {
|
||||||
/** Board id that scopes this agent. Omit only when policy allows global agents. */
|
/** Board id that scopes this agent. Omit only when policy allows global agents. */
|
||||||
board_id?: string | null;
|
board_id?: string | null;
|
||||||
|
/**
|
||||||
|
* Human-readable agent display name.
|
||||||
|
* @minLength 1
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/** Current lifecycle state used by coordinator logic. */
|
||||||
|
status?: string;
|
||||||
/** Runtime heartbeat behavior overrides for this agent. */
|
/** Runtime heartbeat behavior overrides for this agent. */
|
||||||
heartbeat_config?: AgentCreateHeartbeatConfig;
|
heartbeat_config?: AgentCreateHeartbeatConfig;
|
||||||
/** Optional profile hints used by routing and policy checks. */
|
/** Optional profile hints used by routing and policy checks. */
|
||||||
identity_profile?: AgentCreateIdentityProfile;
|
identity_profile?: AgentCreateIdentityProfile;
|
||||||
/** Template that helps define initial intent and behavior. */
|
/** Template that helps define initial intent and behavior. */
|
||||||
identity_template?: string | null;
|
identity_template?: string | null;
|
||||||
/**
|
|
||||||
* Human-readable agent display name.
|
|
||||||
* @minLength 1
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
/** Template representing deeper agent instructions. */
|
/** Template representing deeper agent instructions. */
|
||||||
soul_template?: string | null;
|
soul_template?: string | null;
|
||||||
/** Current lifecycle state used by coordinator logic. */
|
|
||||||
status?: string;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@
|
||||||
* Agent-authenticated liveness payload for agent route probes.
|
* Agent-authenticated liveness payload for agent route probes.
|
||||||
*/
|
*/
|
||||||
export interface AgentHealthStatusResponse {
|
export interface AgentHealthStatusResponse {
|
||||||
|
/** Indicates whether the probe check succeeded. */
|
||||||
|
ok: boolean;
|
||||||
/** Authenticated agent id derived from `X-Agent-Token`. */
|
/** Authenticated agent id derived from `X-Agent-Token`. */
|
||||||
agent_id: string;
|
agent_id: string;
|
||||||
/** Board scope for the authenticated agent, when applicable. */
|
/** Board scope for the authenticated agent, when applicable. */
|
||||||
board_id?: string | null;
|
board_id?: string | null;
|
||||||
/** Gateway owning the authenticated agent. */
|
/** Gateway owning the authenticated agent. */
|
||||||
gateway_id: string;
|
gateway_id: string;
|
||||||
/** Whether the authenticated agent is the board lead. */
|
|
||||||
is_board_lead: boolean;
|
|
||||||
/** Indicates whether the probe check succeeded. */
|
|
||||||
ok: boolean;
|
|
||||||
/** Current persisted lifecycle status for the authenticated agent. */
|
/** Current persisted lifecycle status for the authenticated agent. */
|
||||||
status: string;
|
status: string;
|
||||||
|
/** Whether the authenticated agent is the board lead. */
|
||||||
|
is_board_lead: boolean;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,13 +9,13 @@
|
||||||
* Heartbeat payload used to create an agent lazily.
|
* Heartbeat payload used to create an agent lazily.
|
||||||
*/
|
*/
|
||||||
export interface AgentHeartbeatCreate {
|
export interface AgentHeartbeatCreate {
|
||||||
/** Optional board context for bootstrap. */
|
/** Agent health status string. */
|
||||||
board_id?: string | null;
|
status?: string | null;
|
||||||
/**
|
/**
|
||||||
* Display name assigned during first heartbeat bootstrap.
|
* Display name assigned during first heartbeat bootstrap.
|
||||||
* @minLength 1
|
* @minLength 1
|
||||||
*/
|
*/
|
||||||
name: string;
|
name: string;
|
||||||
/** Agent health status string. */
|
/** Optional board context for bootstrap. */
|
||||||
status?: string | null;
|
board_id?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,35 +13,35 @@ import type { AgentReadIdentityProfile } from "./agentReadIdentityProfile";
|
||||||
export interface AgentRead {
|
export interface AgentRead {
|
||||||
/** Board id that scopes this agent. Omit only when policy allows global agents. */
|
/** Board id that scopes this agent. Omit only when policy allows global agents. */
|
||||||
board_id?: string | null;
|
board_id?: string | null;
|
||||||
/** Creation timestamp. */
|
|
||||||
created_at: string;
|
|
||||||
/** Gateway UUID that manages this agent. */
|
|
||||||
gateway_id: string;
|
|
||||||
/** Runtime heartbeat behavior overrides for this agent. */
|
|
||||||
heartbeat_config?: AgentReadHeartbeatConfig;
|
|
||||||
/** Agent UUID. */
|
|
||||||
id: string;
|
|
||||||
/** Optional profile hints used by routing and policy checks. */
|
|
||||||
identity_profile?: AgentReadIdentityProfile;
|
|
||||||
/** Template that helps define initial intent and behavior. */
|
|
||||||
identity_template?: string | null;
|
|
||||||
/** Whether this agent is the board lead. */
|
|
||||||
is_board_lead?: boolean;
|
|
||||||
/** Whether this agent is the primary gateway agent. */
|
|
||||||
is_gateway_main?: boolean;
|
|
||||||
/** Last heartbeat timestamp. */
|
|
||||||
last_seen_at?: string | null;
|
|
||||||
/**
|
/**
|
||||||
* Human-readable agent display name.
|
* Human-readable agent display name.
|
||||||
* @minLength 1
|
* @minLength 1
|
||||||
*/
|
*/
|
||||||
name: string;
|
name: string;
|
||||||
/** Optional openclaw session token. */
|
|
||||||
openclaw_session_id?: string | null;
|
|
||||||
/** Template representing deeper agent instructions. */
|
|
||||||
soul_template?: string | null;
|
|
||||||
/** Current lifecycle state used by coordinator logic. */
|
/** Current lifecycle state used by coordinator logic. */
|
||||||
status?: string;
|
status?: string;
|
||||||
|
/** Runtime heartbeat behavior overrides for this agent. */
|
||||||
|
heartbeat_config?: AgentReadHeartbeatConfig;
|
||||||
|
/** Optional profile hints used by routing and policy checks. */
|
||||||
|
identity_profile?: AgentReadIdentityProfile;
|
||||||
|
/** Template that helps define initial intent and behavior. */
|
||||||
|
identity_template?: string | null;
|
||||||
|
/** Template representing deeper agent instructions. */
|
||||||
|
soul_template?: string | null;
|
||||||
|
/** Agent UUID. */
|
||||||
|
id: string;
|
||||||
|
/** Gateway UUID that manages this agent. */
|
||||||
|
gateway_id: string;
|
||||||
|
/** Whether this agent is the board lead. */
|
||||||
|
is_board_lead?: boolean;
|
||||||
|
/** Whether this agent is the primary gateway agent. */
|
||||||
|
is_gateway_main?: boolean;
|
||||||
|
/** Optional openclaw session token. */
|
||||||
|
openclaw_session_id?: string | null;
|
||||||
|
/** Last heartbeat timestamp. */
|
||||||
|
last_seen_at?: string | null;
|
||||||
|
/** Creation timestamp. */
|
||||||
|
created_at: string;
|
||||||
/** Last update timestamp. */
|
/** Last update timestamp. */
|
||||||
updated_at: string;
|
updated_at: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,18 +13,18 @@ import type { AgentUpdateIdentityProfile } from "./agentUpdateIdentityProfile";
|
||||||
export interface AgentUpdate {
|
export interface AgentUpdate {
|
||||||
/** Optional new board assignment. */
|
/** Optional new board assignment. */
|
||||||
board_id?: string | null;
|
board_id?: string | null;
|
||||||
|
/** Whether this agent is treated as the board gateway main. */
|
||||||
|
is_gateway_main?: boolean | null;
|
||||||
|
/** Optional replacement display name. */
|
||||||
|
name?: string | null;
|
||||||
|
/** Optional replacement lifecycle status. */
|
||||||
|
status?: string | null;
|
||||||
/** Optional heartbeat policy override. */
|
/** Optional heartbeat policy override. */
|
||||||
heartbeat_config?: AgentUpdateHeartbeatConfig;
|
heartbeat_config?: AgentUpdateHeartbeatConfig;
|
||||||
/** Optional identity profile update values. */
|
/** Optional identity profile update values. */
|
||||||
identity_profile?: AgentUpdateIdentityProfile;
|
identity_profile?: AgentUpdateIdentityProfile;
|
||||||
/** Optional replacement identity template. */
|
/** Optional replacement identity template. */
|
||||||
identity_template?: string | null;
|
identity_template?: string | null;
|
||||||
/** Whether this agent is treated as the board gateway main. */
|
|
||||||
is_gateway_main?: boolean | null;
|
|
||||||
/** Optional replacement display name. */
|
|
||||||
name?: string | null;
|
|
||||||
/** Optional replacement soul template. */
|
/** Optional replacement soul template. */
|
||||||
soul_template?: string | null;
|
soul_template?: string | null;
|
||||||
/** Optional replacement lifecycle status. */
|
|
||||||
status?: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,16 +13,16 @@ import type { ApprovalCreateStatus } from "./approvalCreateStatus";
|
||||||
*/
|
*/
|
||||||
export interface ApprovalCreate {
|
export interface ApprovalCreate {
|
||||||
action_type: string;
|
action_type: string;
|
||||||
agent_id?: string | null;
|
task_id?: string | null;
|
||||||
|
task_ids?: string[];
|
||||||
|
payload?: ApprovalCreatePayload;
|
||||||
/**
|
/**
|
||||||
* @minimum 0
|
* @minimum 0
|
||||||
* @maximum 100
|
* @maximum 100
|
||||||
*/
|
*/
|
||||||
confidence: number;
|
confidence: number;
|
||||||
lead_reasoning?: string | null;
|
|
||||||
payload?: ApprovalCreatePayload;
|
|
||||||
rubric_scores?: ApprovalCreateRubricScores;
|
rubric_scores?: ApprovalCreateRubricScores;
|
||||||
status?: ApprovalCreateStatus;
|
status?: ApprovalCreateStatus;
|
||||||
task_id?: string | null;
|
agent_id?: string | null;
|
||||||
task_ids?: string[];
|
lead_reasoning?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,20 +13,20 @@ import type { ApprovalReadStatus } from "./approvalReadStatus";
|
||||||
*/
|
*/
|
||||||
export interface ApprovalRead {
|
export interface ApprovalRead {
|
||||||
action_type: string;
|
action_type: string;
|
||||||
agent_id?: string | null;
|
task_id?: string | null;
|
||||||
board_id: string;
|
task_ids?: string[];
|
||||||
|
payload?: ApprovalReadPayload;
|
||||||
/**
|
/**
|
||||||
* @minimum 0
|
* @minimum 0
|
||||||
* @maximum 100
|
* @maximum 100
|
||||||
*/
|
*/
|
||||||
confidence: number;
|
confidence: number;
|
||||||
created_at: string;
|
|
||||||
id: string;
|
|
||||||
payload?: ApprovalReadPayload;
|
|
||||||
resolved_at?: string | null;
|
|
||||||
rubric_scores?: ApprovalReadRubricScores;
|
rubric_scores?: ApprovalReadRubricScores;
|
||||||
status?: ApprovalReadStatus;
|
status?: ApprovalReadStatus;
|
||||||
task_id?: string | null;
|
id: string;
|
||||||
task_ids?: string[];
|
board_id: string;
|
||||||
task_titles?: string[];
|
task_titles?: string[];
|
||||||
|
agent_id?: string | null;
|
||||||
|
created_at: string;
|
||||||
|
resolved_at?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
* Error detail payload listing blocking dependency task identifiers.
|
* Error detail payload listing blocking dependency task identifiers.
|
||||||
*/
|
*/
|
||||||
export interface BlockedTaskDetail {
|
export interface BlockedTaskDetail {
|
||||||
blocked_by_task_ids?: string[];
|
|
||||||
message: string;
|
message: string;
|
||||||
|
code?: string | null;
|
||||||
|
blocked_by_task_ids?: string[];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,22 +10,22 @@ import type { BoardCreateSuccessMetrics } from "./boardCreateSuccessMetrics";
|
||||||
* Payload for creating a board.
|
* Payload for creating a board.
|
||||||
*/
|
*/
|
||||||
export interface BoardCreate {
|
export interface BoardCreate {
|
||||||
block_status_changes_with_pending_approval?: boolean;
|
name: string;
|
||||||
board_group_id?: string | null;
|
slug: string;
|
||||||
board_type?: string;
|
|
||||||
comment_required_for_review?: boolean;
|
|
||||||
description: string;
|
description: string;
|
||||||
gateway_id?: string | null;
|
gateway_id?: string | null;
|
||||||
goal_confirmed?: boolean;
|
board_group_id?: string | null;
|
||||||
goal_source?: string | null;
|
board_type?: string;
|
||||||
/** @minimum 0 */
|
|
||||||
max_agents?: number;
|
|
||||||
name: string;
|
|
||||||
objective?: string | null;
|
objective?: string | null;
|
||||||
only_lead_can_change_status?: boolean;
|
|
||||||
require_approval_for_done?: boolean;
|
|
||||||
require_review_before_done?: boolean;
|
|
||||||
slug: string;
|
|
||||||
success_metrics?: BoardCreateSuccessMetrics;
|
success_metrics?: BoardCreateSuccessMetrics;
|
||||||
target_date?: string | null;
|
target_date?: string | null;
|
||||||
|
goal_confirmed?: boolean;
|
||||||
|
goal_source?: string | null;
|
||||||
|
require_approval_for_done?: boolean;
|
||||||
|
require_review_before_done?: boolean;
|
||||||
|
comment_required_for_review?: boolean;
|
||||||
|
block_status_changes_with_pending_approval?: boolean;
|
||||||
|
only_lead_can_change_status?: boolean;
|
||||||
|
/** @minimum 0 */
|
||||||
|
max_agents?: number;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
* Payload for creating a board group.
|
* Payload for creating a board group.
|
||||||
*/
|
*/
|
||||||
export interface BoardGroupCreate {
|
export interface BoardGroupCreate {
|
||||||
description?: string | null;
|
|
||||||
name: string;
|
name: string;
|
||||||
slug: string;
|
slug: string;
|
||||||
|
description?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import type { BoardGroupHeartbeatApplyResultRequested } from "./boardGroupHeartb
|
||||||
*/
|
*/
|
||||||
export interface BoardGroupHeartbeatApplyResult {
|
export interface BoardGroupHeartbeatApplyResult {
|
||||||
board_group_id: string;
|
board_group_id: string;
|
||||||
failed_agent_ids: string[];
|
|
||||||
requested: BoardGroupHeartbeatApplyResultRequested;
|
requested: BoardGroupHeartbeatApplyResultRequested;
|
||||||
updated_agent_ids: string[];
|
updated_agent_ids: string[];
|
||||||
|
failed_agent_ids: string[];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,6 @@
|
||||||
export interface BoardGroupMemoryCreate {
|
export interface BoardGroupMemoryCreate {
|
||||||
/** @minLength 1 */
|
/** @minLength 1 */
|
||||||
content: string;
|
content: string;
|
||||||
source?: string | null;
|
|
||||||
tags?: string[] | null;
|
tags?: string[] | null;
|
||||||
|
source?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@
|
||||||
* Serialized board-group memory entry returned from read endpoints.
|
* Serialized board-group memory entry returned from read endpoints.
|
||||||
*/
|
*/
|
||||||
export interface BoardGroupMemoryRead {
|
export interface BoardGroupMemoryRead {
|
||||||
|
id: string;
|
||||||
board_group_id: string;
|
board_group_id: string;
|
||||||
content: string;
|
content: string;
|
||||||
created_at: string;
|
|
||||||
id: string;
|
|
||||||
is_chat?: boolean;
|
|
||||||
source?: string | null;
|
|
||||||
tags?: string[] | null;
|
tags?: string[] | null;
|
||||||
|
source?: string | null;
|
||||||
|
is_chat?: boolean;
|
||||||
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@
|
||||||
* Board-group payload returned from read endpoints.
|
* Board-group payload returned from read endpoints.
|
||||||
*/
|
*/
|
||||||
export interface BoardGroupRead {
|
export interface BoardGroupRead {
|
||||||
created_at: string;
|
name: string;
|
||||||
|
slug: string;
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
|
||||||
organization_id: string;
|
organization_id: string;
|
||||||
slug: string;
|
created_at: string;
|
||||||
updated_at: string;
|
updated_at: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,6 @@ import type { BoardGroupRead } from "./boardGroupRead";
|
||||||
* Top-level board-group snapshot response payload.
|
* Top-level board-group snapshot response payload.
|
||||||
*/
|
*/
|
||||||
export interface BoardGroupSnapshot {
|
export interface BoardGroupSnapshot {
|
||||||
boards?: BoardGroupBoardSnapshot[];
|
|
||||||
group?: BoardGroupRead | null;
|
group?: BoardGroupRead | null;
|
||||||
|
boards?: BoardGroupBoardSnapshot[];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,17 +10,17 @@ import type { TagRef } from "./tagRef";
|
||||||
* Task summary row used inside board-group snapshot responses.
|
* Task summary row used inside board-group snapshot responses.
|
||||||
*/
|
*/
|
||||||
export interface BoardGroupTaskSummary {
|
export interface BoardGroupTaskSummary {
|
||||||
assigned_agent_id?: string | null;
|
id: string;
|
||||||
assignee?: string | null;
|
|
||||||
board_id: string;
|
board_id: string;
|
||||||
board_name: string;
|
board_name: string;
|
||||||
created_at: string;
|
|
||||||
due_at?: string | null;
|
|
||||||
id: string;
|
|
||||||
in_progress_at?: string | null;
|
|
||||||
priority: string;
|
|
||||||
status: string;
|
|
||||||
tags?: TagRef[];
|
|
||||||
title: string;
|
title: string;
|
||||||
|
status: string;
|
||||||
|
priority: string;
|
||||||
|
assigned_agent_id?: string | null;
|
||||||
|
assignee?: string | null;
|
||||||
|
due_at?: string | null;
|
||||||
|
in_progress_at?: string | null;
|
||||||
|
tags?: TagRef[];
|
||||||
|
created_at: string;
|
||||||
updated_at: string;
|
updated_at: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
* Payload for partial board-group updates.
|
* Payload for partial board-group updates.
|
||||||
*/
|
*/
|
||||||
export interface BoardGroupUpdate {
|
export interface BoardGroupUpdate {
|
||||||
description?: string | null;
|
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
slug?: string | null;
|
slug?: string | null;
|
||||||
|
description?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,6 @@
|
||||||
export interface BoardMemoryCreate {
|
export interface BoardMemoryCreate {
|
||||||
/** @minLength 1 */
|
/** @minLength 1 */
|
||||||
content: string;
|
content: string;
|
||||||
source?: string | null;
|
|
||||||
tags?: string[] | null;
|
tags?: string[] | null;
|
||||||
|
source?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@
|
||||||
* Serialized board memory entry returned from read endpoints.
|
* Serialized board memory entry returned from read endpoints.
|
||||||
*/
|
*/
|
||||||
export interface BoardMemoryRead {
|
export interface BoardMemoryRead {
|
||||||
|
id: string;
|
||||||
board_id: string;
|
board_id: string;
|
||||||
content: string;
|
content: string;
|
||||||
created_at: string;
|
|
||||||
id: string;
|
|
||||||
is_chat?: boolean;
|
|
||||||
source?: string | null;
|
|
||||||
tags?: string[] | null;
|
tags?: string[] | null;
|
||||||
|
source?: string | null;
|
||||||
|
is_chat?: boolean;
|
||||||
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,10 @@ import type { BoardOnboardingUserProfile } from "./boardOnboardingUserProfile";
|
||||||
*/
|
*/
|
||||||
export interface BoardOnboardingAgentComplete {
|
export interface BoardOnboardingAgentComplete {
|
||||||
board_type: string;
|
board_type: string;
|
||||||
lead_agent?: BoardOnboardingLeadAgentDraft | null;
|
|
||||||
objective?: string | null;
|
objective?: string | null;
|
||||||
status: "complete";
|
|
||||||
success_metrics?: BoardOnboardingAgentCompleteSuccessMetrics;
|
success_metrics?: BoardOnboardingAgentCompleteSuccessMetrics;
|
||||||
target_date?: string | null;
|
target_date?: string | null;
|
||||||
|
status: "complete";
|
||||||
user_profile?: BoardOnboardingUserProfile | null;
|
user_profile?: BoardOnboardingUserProfile | null;
|
||||||
|
lead_agent?: BoardOnboardingLeadAgentDraft | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ import type { BoardOnboardingQuestionOption } from "./boardOnboardingQuestionOpt
|
||||||
* Question payload emitted by the onboarding assistant.
|
* Question payload emitted by the onboarding assistant.
|
||||||
*/
|
*/
|
||||||
export interface BoardOnboardingAgentQuestion {
|
export interface BoardOnboardingAgentQuestion {
|
||||||
/** @minItems 1 */
|
|
||||||
options: BoardOnboardingQuestionOption[];
|
|
||||||
/** @minLength 1 */
|
/** @minLength 1 */
|
||||||
question: string;
|
question: string;
|
||||||
|
/** @minItems 1 */
|
||||||
|
options: BoardOnboardingQuestionOption[];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,11 @@ import type { BoardOnboardingLeadAgentDraftIdentityProfile } from "./boardOnboar
|
||||||
* Editable lead-agent draft configuration.
|
* Editable lead-agent draft configuration.
|
||||||
*/
|
*/
|
||||||
export interface BoardOnboardingLeadAgentDraft {
|
export interface BoardOnboardingLeadAgentDraft {
|
||||||
autonomy_level?: "ask_first" | "balanced" | "autonomous" | null;
|
|
||||||
custom_instructions?: string | null;
|
|
||||||
identity_profile?: BoardOnboardingLeadAgentDraftIdentityProfile;
|
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
|
identity_profile?: BoardOnboardingLeadAgentDraftIdentityProfile;
|
||||||
|
autonomy_level?: "ask_first" | "balanced" | "autonomous" | null;
|
||||||
|
verbosity?: "concise" | "balanced" | "detailed" | null;
|
||||||
output_format?: "bullets" | "mixed" | "narrative" | null;
|
output_format?: "bullets" | "mixed" | "narrative" | null;
|
||||||
update_cadence?: "asap" | "hourly" | "daily" | "weekly" | null;
|
update_cadence?: "asap" | "hourly" | "daily" | "weekly" | null;
|
||||||
verbosity?: "concise" | "balanced" | "detailed" | null;
|
custom_instructions?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,12 @@ import type { BoardOnboardingReadMessages } from "./boardOnboardingReadMessages"
|
||||||
* Stored onboarding session state returned by API endpoints.
|
* Stored onboarding session state returned by API endpoints.
|
||||||
*/
|
*/
|
||||||
export interface BoardOnboardingRead {
|
export interface BoardOnboardingRead {
|
||||||
board_id: string;
|
|
||||||
created_at: string;
|
|
||||||
draft_goal?: BoardOnboardingAgentComplete | null;
|
|
||||||
id: string;
|
id: string;
|
||||||
messages?: BoardOnboardingReadMessages;
|
board_id: string;
|
||||||
session_key: string;
|
session_key: string;
|
||||||
status: string;
|
status: string;
|
||||||
|
messages?: BoardOnboardingReadMessages;
|
||||||
|
draft_goal?: BoardOnboardingAgentComplete | null;
|
||||||
|
created_at: string;
|
||||||
updated_at: string;
|
updated_at: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@
|
||||||
* User-profile preferences gathered during onboarding.
|
* User-profile preferences gathered during onboarding.
|
||||||
*/
|
*/
|
||||||
export interface BoardOnboardingUserProfile {
|
export interface BoardOnboardingUserProfile {
|
||||||
context?: string | null;
|
|
||||||
notes?: string | null;
|
|
||||||
preferred_name?: string | null;
|
preferred_name?: string | null;
|
||||||
pronouns?: string | null;
|
pronouns?: string | null;
|
||||||
timezone?: string | null;
|
timezone?: string | null;
|
||||||
|
notes?: string | null;
|
||||||
|
context?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,26 +10,26 @@ import type { BoardReadSuccessMetrics } from "./boardReadSuccessMetrics";
|
||||||
* Board payload returned from read endpoints.
|
* Board payload returned from read endpoints.
|
||||||
*/
|
*/
|
||||||
export interface BoardRead {
|
export interface BoardRead {
|
||||||
block_status_changes_with_pending_approval?: boolean;
|
name: string;
|
||||||
board_group_id?: string | null;
|
slug: string;
|
||||||
board_type?: string;
|
|
||||||
comment_required_for_review?: boolean;
|
|
||||||
created_at: string;
|
|
||||||
description: string;
|
description: string;
|
||||||
gateway_id?: string | null;
|
gateway_id?: string | null;
|
||||||
goal_confirmed?: boolean;
|
board_group_id?: string | null;
|
||||||
goal_source?: string | null;
|
board_type?: string;
|
||||||
id: string;
|
|
||||||
/** @minimum 0 */
|
|
||||||
max_agents?: number;
|
|
||||||
name: string;
|
|
||||||
objective?: string | null;
|
objective?: string | null;
|
||||||
only_lead_can_change_status?: boolean;
|
|
||||||
organization_id: string;
|
|
||||||
require_approval_for_done?: boolean;
|
|
||||||
require_review_before_done?: boolean;
|
|
||||||
slug: string;
|
|
||||||
success_metrics?: BoardReadSuccessMetrics;
|
success_metrics?: BoardReadSuccessMetrics;
|
||||||
target_date?: string | null;
|
target_date?: string | null;
|
||||||
|
goal_confirmed?: boolean;
|
||||||
|
goal_source?: string | null;
|
||||||
|
require_approval_for_done?: boolean;
|
||||||
|
require_review_before_done?: boolean;
|
||||||
|
comment_required_for_review?: boolean;
|
||||||
|
block_status_changes_with_pending_approval?: boolean;
|
||||||
|
only_lead_can_change_status?: boolean;
|
||||||
|
/** @minimum 0 */
|
||||||
|
max_agents?: number;
|
||||||
|
id: string;
|
||||||
|
organization_id: string;
|
||||||
|
created_at: string;
|
||||||
updated_at: string;
|
updated_at: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Schema for creating a board repository link.
|
||||||
|
*/
|
||||||
|
export interface BoardRepositoryLinkCreate {
|
||||||
|
repository_id: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete response with success status.
|
||||||
|
*/
|
||||||
|
export interface BoardRepositoryLinkDeleteResponse {
|
||||||
|
success?: boolean;
|
||||||
|
message?: string | null;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Schema for reading a board repository link.
|
||||||
|
*/
|
||||||
|
export interface BoardRepositoryLinkRead {
|
||||||
|
id: string;
|
||||||
|
board_id: string;
|
||||||
|
repository_id: string;
|
||||||
|
organization_id: string;
|
||||||
|
created_at: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
import type { BoardRepositoryLinkRead } from "./boardRepositoryLinkRead";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Single link response with success status.
|
||||||
|
*/
|
||||||
|
export interface BoardRepositoryLinkResponse {
|
||||||
|
success?: boolean;
|
||||||
|
link?: BoardRepositoryLinkRead | null;
|
||||||
|
}
|
||||||
|
|
@ -14,10 +14,10 @@ import type { TaskCardRead } from "./taskCardRead";
|
||||||
* Aggregated board payload used by board snapshot endpoints.
|
* Aggregated board payload used by board snapshot endpoints.
|
||||||
*/
|
*/
|
||||||
export interface BoardSnapshot {
|
export interface BoardSnapshot {
|
||||||
|
board: BoardRead;
|
||||||
|
tasks: TaskCardRead[];
|
||||||
agents: AgentRead[];
|
agents: AgentRead[];
|
||||||
approvals: ApprovalRead[];
|
approvals: ApprovalRead[];
|
||||||
board: BoardRead;
|
|
||||||
chat_messages: BoardMemoryRead[];
|
chat_messages: BoardMemoryRead[];
|
||||||
pending_approvals_count?: number;
|
pending_approvals_count?: number;
|
||||||
tasks: TaskCardRead[];
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,21 +10,21 @@ import type { BoardUpdateSuccessMetrics } from "./boardUpdateSuccessMetrics";
|
||||||
* Payload for partial board updates.
|
* Payload for partial board updates.
|
||||||
*/
|
*/
|
||||||
export interface BoardUpdate {
|
export interface BoardUpdate {
|
||||||
block_status_changes_with_pending_approval?: boolean | null;
|
name?: string | null;
|
||||||
board_group_id?: string | null;
|
slug?: string | null;
|
||||||
board_type?: string | null;
|
|
||||||
comment_required_for_review?: boolean | null;
|
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
gateway_id?: string | null;
|
gateway_id?: string | null;
|
||||||
goal_confirmed?: boolean | null;
|
board_group_id?: string | null;
|
||||||
goal_source?: string | null;
|
board_type?: string | null;
|
||||||
max_agents?: number | null;
|
|
||||||
name?: string | null;
|
|
||||||
objective?: string | null;
|
objective?: string | null;
|
||||||
only_lead_can_change_status?: boolean | null;
|
|
||||||
require_approval_for_done?: boolean | null;
|
|
||||||
require_review_before_done?: boolean | null;
|
|
||||||
slug?: string | null;
|
|
||||||
success_metrics?: BoardUpdateSuccessMetrics;
|
success_metrics?: BoardUpdateSuccessMetrics;
|
||||||
target_date?: string | null;
|
target_date?: string | null;
|
||||||
|
goal_confirmed?: boolean | null;
|
||||||
|
goal_source?: string | null;
|
||||||
|
require_approval_for_done?: boolean | null;
|
||||||
|
require_review_before_done?: boolean | null;
|
||||||
|
comment_required_for_review?: boolean | null;
|
||||||
|
block_status_changes_with_pending_approval?: boolean | null;
|
||||||
|
only_lead_can_change_status?: boolean | null;
|
||||||
|
max_agents?: number | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,10 @@
|
||||||
* Payload for creating a board webhook.
|
* Payload for creating a board webhook.
|
||||||
*/
|
*/
|
||||||
export interface BoardWebhookCreate {
|
export interface BoardWebhookCreate {
|
||||||
agent_id?: string | null;
|
|
||||||
/** @minLength 1 */
|
/** @minLength 1 */
|
||||||
description: string;
|
description: string;
|
||||||
enabled?: boolean;
|
enabled?: boolean;
|
||||||
|
agent_id?: string | null;
|
||||||
|
secret?: string | null;
|
||||||
|
signature_header?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@
|
||||||
* Response payload for inbound webhook ingestion.
|
* Response payload for inbound webhook ingestion.
|
||||||
*/
|
*/
|
||||||
export interface BoardWebhookIngestResponse {
|
export interface BoardWebhookIngestResponse {
|
||||||
board_id: string;
|
|
||||||
ok?: boolean;
|
ok?: boolean;
|
||||||
payload_id: string;
|
board_id: string;
|
||||||
webhook_id: string;
|
webhook_id: string;
|
||||||
|
payload_id: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,12 @@ import type { BoardWebhookPayloadReadPayload } from "./boardWebhookPayloadReadPa
|
||||||
* Serialized stored webhook payload.
|
* Serialized stored webhook payload.
|
||||||
*/
|
*/
|
||||||
export interface BoardWebhookPayloadRead {
|
export interface BoardWebhookPayloadRead {
|
||||||
board_id: string;
|
|
||||||
content_type?: string | null;
|
|
||||||
headers?: BoardWebhookPayloadReadHeaders;
|
|
||||||
id: string;
|
id: string;
|
||||||
payload?: BoardWebhookPayloadReadPayload;
|
board_id: string;
|
||||||
received_at: string;
|
|
||||||
source_ip?: string | null;
|
|
||||||
webhook_id: string;
|
webhook_id: string;
|
||||||
|
payload?: BoardWebhookPayloadReadPayload;
|
||||||
|
headers?: BoardWebhookPayloadReadHeaders;
|
||||||
|
source_ip?: string | null;
|
||||||
|
content_type?: string | null;
|
||||||
|
received_at: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,13 +9,15 @@
|
||||||
* Serialized board webhook configuration.
|
* Serialized board webhook configuration.
|
||||||
*/
|
*/
|
||||||
export interface BoardWebhookRead {
|
export interface BoardWebhookRead {
|
||||||
agent_id?: string | null;
|
id: string;
|
||||||
board_id: string;
|
board_id: string;
|
||||||
created_at: string;
|
agent_id?: string | null;
|
||||||
description: string;
|
description: string;
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
|
has_secret?: boolean;
|
||||||
|
signature_header?: string | null;
|
||||||
endpoint_path: string;
|
endpoint_path: string;
|
||||||
endpoint_url?: string | null;
|
endpoint_url?: string | null;
|
||||||
id: string;
|
created_at: string;
|
||||||
updated_at: string;
|
updated_at: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,9 @@
|
||||||
* Payload for updating a board webhook.
|
* Payload for updating a board webhook.
|
||||||
*/
|
*/
|
||||||
export interface BoardWebhookUpdate {
|
export interface BoardWebhookUpdate {
|
||||||
agent_id?: string | null;
|
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
enabled?: boolean | null;
|
enabled?: boolean | null;
|
||||||
|
agent_id?: string | null;
|
||||||
|
secret?: string | null;
|
||||||
|
signature_header?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Response for issue close operations.
|
||||||
|
*/
|
||||||
|
export interface CloseIssueResponse {
|
||||||
|
success: boolean;
|
||||||
|
issue_id: string;
|
||||||
|
forgejo_issue_number: number;
|
||||||
|
state: string;
|
||||||
|
forgejo_closed_at?: string | null;
|
||||||
|
last_synced_at: string;
|
||||||
|
}
|
||||||
|
|
@ -10,11 +10,11 @@
|
||||||
*/
|
*/
|
||||||
export interface DashboardKpis {
|
export interface DashboardKpis {
|
||||||
active_agents: number;
|
active_agents: number;
|
||||||
|
tasks_in_progress: number;
|
||||||
|
inbox_tasks: number;
|
||||||
|
in_progress_tasks: number;
|
||||||
|
review_tasks: number;
|
||||||
done_tasks: number;
|
done_tasks: number;
|
||||||
error_rate_pct: number;
|
error_rate_pct: number;
|
||||||
in_progress_tasks: number;
|
|
||||||
inbox_tasks: number;
|
|
||||||
median_cycle_time_hours_7d: number | null;
|
median_cycle_time_hours_7d: number | null;
|
||||||
review_tasks: number;
|
|
||||||
tasks_in_progress: number;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,12 @@ import type { DashboardWipSeriesSet } from "./dashboardWipSeriesSet";
|
||||||
* Complete dashboard metrics response payload.
|
* Complete dashboard metrics response payload.
|
||||||
*/
|
*/
|
||||||
export interface DashboardMetrics {
|
export interface DashboardMetrics {
|
||||||
cycle_time: DashboardSeriesSet;
|
range: DashboardMetricsRange;
|
||||||
error_rate: DashboardSeriesSet;
|
|
||||||
generated_at: string;
|
generated_at: string;
|
||||||
kpis: DashboardKpis;
|
kpis: DashboardKpis;
|
||||||
pending_approvals: DashboardPendingApprovals;
|
|
||||||
range: DashboardMetricsRange;
|
|
||||||
throughput: DashboardSeriesSet;
|
throughput: DashboardSeriesSet;
|
||||||
|
cycle_time: DashboardSeriesSet;
|
||||||
|
error_rate: DashboardSeriesSet;
|
||||||
wip: DashboardWipSeriesSet;
|
wip: DashboardWipSeriesSet;
|
||||||
|
pending_approvals: DashboardPendingApprovals;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@
|
||||||
* Single pending approval item for cross-board dashboard listing.
|
* Single pending approval item for cross-board dashboard listing.
|
||||||
*/
|
*/
|
||||||
export interface DashboardPendingApproval {
|
export interface DashboardPendingApproval {
|
||||||
action_type: string;
|
|
||||||
approval_id: string;
|
approval_id: string;
|
||||||
board_id: string;
|
board_id: string;
|
||||||
board_name: string;
|
board_name: string;
|
||||||
|
action_type: string;
|
||||||
confidence: number;
|
confidence: number;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
task_title?: string | null;
|
task_title?: string | null;
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,6 @@ import type { DashboardPendingApproval } from "./dashboardPendingApproval";
|
||||||
* Pending approval snapshot used on the dashboard.
|
* Pending approval snapshot used on the dashboard.
|
||||||
*/
|
*/
|
||||||
export interface DashboardPendingApprovals {
|
export interface DashboardPendingApprovals {
|
||||||
items: DashboardPendingApproval[];
|
|
||||||
total: number;
|
total: number;
|
||||||
|
items: DashboardPendingApproval[];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import type { DashboardSeriesPoint } from "./dashboardSeriesPoint";
|
||||||
* Series payload for a single range/bucket combination.
|
* Series payload for a single range/bucket combination.
|
||||||
*/
|
*/
|
||||||
export interface DashboardRangeSeries {
|
export interface DashboardRangeSeries {
|
||||||
|
range: DashboardRangeSeriesRange;
|
||||||
bucket: DashboardRangeSeriesBucket;
|
bucket: DashboardRangeSeriesBucket;
|
||||||
points: DashboardSeriesPoint[];
|
points: DashboardSeriesPoint[];
|
||||||
range: DashboardRangeSeriesRange;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,6 @@ import type { DashboardRangeSeries } from "./dashboardRangeSeries";
|
||||||
* Primary vs comparison pair for generic series metrics.
|
* Primary vs comparison pair for generic series metrics.
|
||||||
*/
|
*/
|
||||||
export interface DashboardSeriesSet {
|
export interface DashboardSeriesSet {
|
||||||
comparison: DashboardRangeSeries;
|
|
||||||
primary: DashboardRangeSeries;
|
primary: DashboardRangeSeries;
|
||||||
|
comparison: DashboardRangeSeries;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@
|
||||||
* Work-in-progress point split by task status buckets.
|
* Work-in-progress point split by task status buckets.
|
||||||
*/
|
*/
|
||||||
export interface DashboardWipPoint {
|
export interface DashboardWipPoint {
|
||||||
done: number;
|
|
||||||
in_progress: number;
|
|
||||||
inbox: number;
|
|
||||||
period: string;
|
period: string;
|
||||||
|
inbox: number;
|
||||||
|
in_progress: number;
|
||||||
review: number;
|
review: number;
|
||||||
|
done: number;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import type { DashboardWipRangeSeriesRange } from "./dashboardWipRangeSeriesRang
|
||||||
* WIP series payload for a single range/bucket combination.
|
* WIP series payload for a single range/bucket combination.
|
||||||
*/
|
*/
|
||||||
export interface DashboardWipRangeSeries {
|
export interface DashboardWipRangeSeries {
|
||||||
|
range: DashboardWipRangeSeriesRange;
|
||||||
bucket: DashboardWipRangeSeriesBucket;
|
bucket: DashboardWipRangeSeriesBucket;
|
||||||
points: DashboardWipPoint[];
|
points: DashboardWipPoint[];
|
||||||
range: DashboardWipRangeSeriesRange;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,6 @@ import type { DashboardWipRangeSeries } from "./dashboardWipRangeSeries";
|
||||||
* Primary vs comparison pair for WIP status series metrics.
|
* Primary vs comparison pair for WIP status series metrics.
|
||||||
*/
|
*/
|
||||||
export interface DashboardWipSeriesSet {
|
export interface DashboardWipSeriesSet {
|
||||||
comparison: DashboardWipRangeSeries;
|
|
||||||
primary: DashboardWipRangeSeries;
|
primary: DashboardWipRangeSeries;
|
||||||
|
comparison: DashboardWipRangeSeries;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Payload for creating a Forgejo connection configuration.
|
||||||
|
*/
|
||||||
|
export interface ForgejoConnectionCreate {
|
||||||
|
name: string;
|
||||||
|
base_url: string;
|
||||||
|
token?: string | null;
|
||||||
|
active?: boolean;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Connection payload returned from read endpoints.
|
||||||
|
*/
|
||||||
|
export interface ForgejoConnectionRead {
|
||||||
|
name: string;
|
||||||
|
base_url: string;
|
||||||
|
token?: string | null;
|
||||||
|
active?: boolean;
|
||||||
|
id: string;
|
||||||
|
organization_id: string;
|
||||||
|
has_token: boolean;
|
||||||
|
token_last_eight: string | null;
|
||||||
|
created_at: string;
|
||||||
|
updated_at: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Minimal repo info returned in a connection test.
|
||||||
|
*/
|
||||||
|
export interface ForgejoConnectionTestRepo {
|
||||||
|
full_name: string;
|
||||||
|
name: string;
|
||||||
|
owner: string;
|
||||||
|
default_branch: string;
|
||||||
|
private: boolean;
|
||||||
|
description?: string | null;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Payload for testing a connection before saving it.
|
||||||
|
*/
|
||||||
|
export interface ForgejoConnectionTestRequest {
|
||||||
|
base_url: string;
|
||||||
|
token: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
import type { ForgejoConnectionTestRepo } from "./forgejoConnectionTestRepo";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Result of a pre-save connection test.
|
||||||
|
*/
|
||||||
|
export interface ForgejoConnectionTestResponse {
|
||||||
|
valid: boolean;
|
||||||
|
user_login?: string | null;
|
||||||
|
user_full_name?: string | null;
|
||||||
|
repo_count?: number;
|
||||||
|
repos?: ForgejoConnectionTestRepo[];
|
||||||
|
error?: string | null;
|
||||||
|
response_time_ms?: number;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Payload for partial Forgejo connection updates.
|
||||||
|
*/
|
||||||
|
export interface ForgejoConnectionUpdate {
|
||||||
|
name?: string | null;
|
||||||
|
base_url?: string | null;
|
||||||
|
token?: string | null;
|
||||||
|
active?: boolean | null;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
import type { ValidationStatus } from "./validationStatus";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Response for Forgejo connection validation.
|
||||||
|
*/
|
||||||
|
export interface ForgejoConnectionValidationResponse {
|
||||||
|
connection_id: string;
|
||||||
|
status: ValidationStatus;
|
||||||
|
response_time_ms: number;
|
||||||
|
validated_at: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
import type { ForgejoIssueRead } from "./forgejoIssueRead";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Paginated list response for issues.
|
||||||
|
*/
|
||||||
|
export interface ForgejoIssueListResponse {
|
||||||
|
items: ForgejoIssueRead[];
|
||||||
|
total: number;
|
||||||
|
page: number;
|
||||||
|
limit: number;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
import type { ForgejoIssueReadAssigneesItem } from "./forgejoIssueReadAssigneesItem";
|
||||||
|
import type { ForgejoIssueReadLabelsItem } from "./forgejoIssueReadLabelsItem";
|
||||||
|
import type { ForgejoIssueReadMilestone } from "./forgejoIssueReadMilestone";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Issue payload returned from read endpoints.
|
||||||
|
*/
|
||||||
|
export interface ForgejoIssueRead {
|
||||||
|
forgejo_issue_number: number;
|
||||||
|
title: string;
|
||||||
|
body?: string | null;
|
||||||
|
body_preview?: string | null;
|
||||||
|
state: string;
|
||||||
|
is_pull_request: boolean;
|
||||||
|
labels?: ForgejoIssueReadLabelsItem[];
|
||||||
|
assignees?: ForgejoIssueReadAssigneesItem[];
|
||||||
|
milestone?: ForgejoIssueReadMilestone;
|
||||||
|
author: string;
|
||||||
|
html_url: string;
|
||||||
|
forgejo_created_at: string;
|
||||||
|
forgejo_updated_at: string;
|
||||||
|
forgejo_closed_at?: string | null;
|
||||||
|
id: string;
|
||||||
|
organization_id: string;
|
||||||
|
repository_id: string;
|
||||||
|
created_at: string;
|
||||||
|
updated_at: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type ForgejoIssueReadAssigneesItem = { [key: string]: unknown };
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type ForgejoIssueReadLabelsItem = { [key: string]: unknown };
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type ForgejoIssueReadMilestone = { [key: string]: unknown } | null;
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Safe connection metadata included in repository read responses.
|
||||||
|
*/
|
||||||
|
export interface ForgejoRepositoryConnectionInfo {
|
||||||
|
id: string;
|
||||||
|
organization_id: string;
|
||||||
|
name: string;
|
||||||
|
base_url: string;
|
||||||
|
has_token: boolean;
|
||||||
|
token_last_eight: string | null;
|
||||||
|
active: boolean;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Payload for creating a Forgejo repository tracked configuration.
|
||||||
|
*/
|
||||||
|
export interface ForgejoRepositoryCreate {
|
||||||
|
owner: string;
|
||||||
|
repo: string;
|
||||||
|
display_name?: string;
|
||||||
|
default_branch?: string;
|
||||||
|
active?: boolean;
|
||||||
|
connection_id: string;
|
||||||
|
webhook_secret?: string | null;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,33 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
import type { ForgejoRepositoryConnectionInfo } from "./forgejoRepositoryConnectionInfo";
|
||||||
|
import type { ForgejoRepositoryReadLabelsItem } from "./forgejoRepositoryReadLabelsItem";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Repository payload returned from read endpoints.
|
||||||
|
*/
|
||||||
|
export interface ForgejoRepositoryRead {
|
||||||
|
owner: string;
|
||||||
|
repo: string;
|
||||||
|
display_name?: string;
|
||||||
|
default_branch?: string;
|
||||||
|
active?: boolean;
|
||||||
|
id: string;
|
||||||
|
organization_id: string;
|
||||||
|
connection_id: string;
|
||||||
|
connection: ForgejoRepositoryConnectionInfo;
|
||||||
|
has_webhook_secret?: boolean;
|
||||||
|
description?: string | null;
|
||||||
|
open_issues_count?: number;
|
||||||
|
is_archived?: boolean;
|
||||||
|
topics?: string[];
|
||||||
|
labels?: ForgejoRepositoryReadLabelsItem[];
|
||||||
|
last_sync_at: string | null;
|
||||||
|
last_sync_error: string | null;
|
||||||
|
created_at: string;
|
||||||
|
updated_at: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type ForgejoRepositoryReadLabelsItem = { [key: string]: unknown };
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Payload for partial Forgejo repository updates.
|
||||||
|
*/
|
||||||
|
export interface ForgejoRepositoryUpdate {
|
||||||
|
connection_id?: string | null;
|
||||||
|
owner?: string | null;
|
||||||
|
repo?: string | null;
|
||||||
|
display_name?: string | null;
|
||||||
|
default_branch?: string | null;
|
||||||
|
active?: boolean | null;
|
||||||
|
webhook_secret?: string | null;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
import type { ValidationStatus } from "./validationStatus";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Response for Forgejo repository validation.
|
||||||
|
*/
|
||||||
|
export interface ForgejoRepositoryValidationResponse {
|
||||||
|
repository_id: string;
|
||||||
|
status: ValidationStatus;
|
||||||
|
response_time_ms: number;
|
||||||
|
validated_at: string;
|
||||||
|
repo_exists?: boolean | null;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Response returned after receiving a Forgejo webhook delivery.
|
||||||
|
*/
|
||||||
|
export interface ForgejoWebhookIngestResponse {
|
||||||
|
ok?: boolean;
|
||||||
|
repository_id: string;
|
||||||
|
action?: string | null;
|
||||||
|
issue_id?: string | null;
|
||||||
|
issue_number?: number | null;
|
||||||
|
ignored?: boolean;
|
||||||
|
reason?: string | null;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* One gateway runtime agent candidate discovered for import.
|
||||||
|
*/
|
||||||
|
export interface GatewayAgentImportCandidate {
|
||||||
|
gateway_agent_id: string;
|
||||||
|
gateway_agent_name?: string | null;
|
||||||
|
session_key?: string | null;
|
||||||
|
existing_agent_id?: string | null;
|
||||||
|
importable: boolean;
|
||||||
|
inferred_board_id?: string | null;
|
||||||
|
inferred_is_board_lead?: boolean;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
import type { GatewayAgentImportCandidate } from "./gatewayAgentImportCandidate";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Discovery preview response for importing existing gateway agents.
|
||||||
|
*/
|
||||||
|
export interface GatewayAgentImportPreviewResponse {
|
||||||
|
gateway_id: string;
|
||||||
|
discovered_count: number;
|
||||||
|
importable_count: number;
|
||||||
|
already_tracked_count: number;
|
||||||
|
candidates?: GatewayAgentImportCandidate[];
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
import type { GatewayAgentReconcileError } from "./gatewayAgentReconcileError";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Summary for optional post-import reconcile execution.
|
||||||
|
*/
|
||||||
|
export interface GatewayAgentImportReconcileSummary {
|
||||||
|
attempted: number;
|
||||||
|
updated: number;
|
||||||
|
skipped: number;
|
||||||
|
errors?: GatewayAgentReconcileError[];
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Request payload listing gateway runtime agents to import.
|
||||||
|
*/
|
||||||
|
export interface GatewayAgentImportRequest {
|
||||||
|
/** @minItems 1 */
|
||||||
|
gateway_agent_ids?: string[];
|
||||||
|
reconcile_after_import?: boolean;
|
||||||
|
rotate_tokens?: boolean;
|
||||||
|
reset_sessions?: boolean;
|
||||||
|
force_bootstrap?: boolean;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
import type { GatewayAgentImportReconcileSummary } from "./gatewayAgentImportReconcileSummary";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Import summary response for existing gateway runtime agents.
|
||||||
|
*/
|
||||||
|
export interface GatewayAgentImportResponse {
|
||||||
|
gateway_id: string;
|
||||||
|
imported_count: number;
|
||||||
|
skipped_count: number;
|
||||||
|
imported_agent_ids?: string[];
|
||||||
|
skipped_gateway_agent_ids?: string[];
|
||||||
|
reconcile?: GatewayAgentImportReconcileSummary | null;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
/**
|
||||||
|
* Generated by orval v8.3.0 🍺
|
||||||
|
* Do not edit manually.
|
||||||
|
* Mission Control API
|
||||||
|
* OpenAPI spec version: 0.1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* One reconciliation error for an imported agent.
|
||||||
|
*/
|
||||||
|
export interface GatewayAgentReconcileError {
|
||||||
|
agent_id?: string | null;
|
||||||
|
message: string;
|
||||||
|
}
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
* Gateway command catalog and protocol metadata.
|
* Gateway command catalog and protocol metadata.
|
||||||
*/
|
*/
|
||||||
export interface GatewayCommandsResponse {
|
export interface GatewayCommandsResponse {
|
||||||
events: string[];
|
|
||||||
methods: string[];
|
|
||||||
protocol_version: number;
|
protocol_version: number;
|
||||||
|
methods: string[];
|
||||||
|
events: string[];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@
|
||||||
* Payload for creating a gateway configuration.
|
* Payload for creating a gateway configuration.
|
||||||
*/
|
*/
|
||||||
export interface GatewayCreate {
|
export interface GatewayCreate {
|
||||||
allow_insecure_tls?: boolean;
|
|
||||||
disable_device_pairing?: boolean;
|
|
||||||
name: string;
|
name: string;
|
||||||
token?: string | null;
|
|
||||||
url: string;
|
url: string;
|
||||||
workspace_root: string;
|
workspace_root: string;
|
||||||
|
allow_insecure_tls?: boolean;
|
||||||
|
disable_device_pairing?: boolean;
|
||||||
|
token?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,12 @@
|
||||||
export interface GatewayLeadBroadcastBoardResult {
|
export interface GatewayLeadBroadcastBoardResult {
|
||||||
/** Target board id for this result. */
|
/** Target board id for this result. */
|
||||||
board_id: string;
|
board_id: string;
|
||||||
/** Failure reason if this board failed. */
|
|
||||||
error?: string | null;
|
|
||||||
/** Resolved lead agent id for the target board. */
|
/** Resolved lead agent id for the target board. */
|
||||||
lead_agent_id?: string | null;
|
lead_agent_id?: string | null;
|
||||||
/** Resolved lead agent display name. */
|
/** Resolved lead agent display name. */
|
||||||
lead_agent_name?: string | null;
|
lead_agent_name?: string | null;
|
||||||
/** Whether this board delivery succeeded. */
|
/** Whether this board delivery succeeded. */
|
||||||
ok?: boolean;
|
ok?: boolean;
|
||||||
|
/** Failure reason if this board failed. */
|
||||||
|
error?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,19 +10,19 @@ import type { GatewayLeadBroadcastRequestKind } from "./gatewayLeadBroadcastRequ
|
||||||
* Request payload for broadcasting a message to multiple board leads.
|
* Request payload for broadcasting a message to multiple board leads.
|
||||||
*/
|
*/
|
||||||
export interface GatewayLeadBroadcastRequest {
|
export interface GatewayLeadBroadcastRequest {
|
||||||
/** Optional explicit list of board IDs; omit for lead-scoped defaults. */
|
/** Broadcast intent. `question` asks for responses; `handoff` requests transfer. */
|
||||||
board_ids?: string[] | null;
|
kind?: GatewayLeadBroadcastRequestKind;
|
||||||
|
/** Optional correlation token shared with downstream handlers. */
|
||||||
|
correlation_id?: string | null;
|
||||||
/**
|
/**
|
||||||
* Message content distributed to selected board leads.
|
* Message content distributed to selected board leads.
|
||||||
* @minLength 1
|
* @minLength 1
|
||||||
*/
|
*/
|
||||||
content: string;
|
content: string;
|
||||||
/** Optional correlation token shared with downstream handlers. */
|
/** Optional explicit list of board IDs; omit for lead-scoped defaults. */
|
||||||
correlation_id?: string | null;
|
board_ids?: string[] | null;
|
||||||
/** Broadcast intent. `question` asks for responses; `handoff` requests transfer. */
|
|
||||||
kind?: GatewayLeadBroadcastRequestKind;
|
|
||||||
/** Reply destination key for broadcast responses. */
|
|
||||||
reply_source?: string | null;
|
|
||||||
/** Tags required by reply templates when each lead responds. */
|
/** Tags required by reply templates when each lead responds. */
|
||||||
reply_tags?: string[];
|
reply_tags?: string[];
|
||||||
|
/** Reply destination key for broadcast responses. */
|
||||||
|
reply_source?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,11 @@ import type { GatewayLeadBroadcastBoardResult } from "./gatewayLeadBroadcastBoar
|
||||||
* Aggregate response for a lead broadcast operation.
|
* Aggregate response for a lead broadcast operation.
|
||||||
*/
|
*/
|
||||||
export interface GatewayLeadBroadcastResponse {
|
export interface GatewayLeadBroadcastResponse {
|
||||||
/** Number of boards that failed messaging. */
|
|
||||||
failed?: number;
|
|
||||||
/** Whether broadcast execution succeeded. */
|
/** Whether broadcast execution succeeded. */
|
||||||
ok?: boolean;
|
ok?: boolean;
|
||||||
results?: GatewayLeadBroadcastBoardResult[];
|
|
||||||
/** Number of boards successfully messaged. */
|
/** Number of boards successfully messaged. */
|
||||||
sent?: number;
|
sent?: number;
|
||||||
|
/** Number of boards that failed messaging. */
|
||||||
|
failed?: number;
|
||||||
|
results?: GatewayLeadBroadcastBoardResult[];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,17 +10,17 @@ import type { GatewayLeadMessageRequestKind } from "./gatewayLeadMessageRequestK
|
||||||
* Request payload for sending a message to a board lead agent.
|
* Request payload for sending a message to a board lead agent.
|
||||||
*/
|
*/
|
||||||
export interface GatewayLeadMessageRequest {
|
export interface GatewayLeadMessageRequest {
|
||||||
|
/** Routing mode for lead messages. */
|
||||||
|
kind?: GatewayLeadMessageRequestKind;
|
||||||
|
/** Optional correlation token shared across upstream and downstream systems. */
|
||||||
|
correlation_id?: string | null;
|
||||||
/**
|
/**
|
||||||
* Human-readable body sent to lead agents.
|
* Human-readable body sent to lead agents.
|
||||||
* @minLength 1
|
* @minLength 1
|
||||||
*/
|
*/
|
||||||
content: string;
|
content: string;
|
||||||
/** Optional correlation token shared across upstream and downstream systems. */
|
|
||||||
correlation_id?: string | null;
|
|
||||||
/** Routing mode for lead messages. */
|
|
||||||
kind?: GatewayLeadMessageRequestKind;
|
|
||||||
/** Reply destination key for the orchestrator. */
|
|
||||||
reply_source?: string | null;
|
|
||||||
/** Tags required by reply templates when the lead responds. */
|
/** Tags required by reply templates when the lead responds. */
|
||||||
reply_tags?: string[];
|
reply_tags?: string[];
|
||||||
|
/** Reply destination key for the orchestrator. */
|
||||||
|
reply_source?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,8 @@
|
||||||
* Response payload for a lead-message dispatch attempt.
|
* Response payload for a lead-message dispatch attempt.
|
||||||
*/
|
*/
|
||||||
export interface GatewayLeadMessageResponse {
|
export interface GatewayLeadMessageResponse {
|
||||||
|
/** Whether dispatch was accepted. */
|
||||||
|
ok?: boolean;
|
||||||
/** Board receiving the message. */
|
/** Board receiving the message. */
|
||||||
board_id: string;
|
board_id: string;
|
||||||
/** Resolved lead agent id when present. */
|
/** Resolved lead agent id when present. */
|
||||||
|
|
@ -17,6 +19,4 @@ export interface GatewayLeadMessageResponse {
|
||||||
lead_agent_name?: string | null;
|
lead_agent_name?: string | null;
|
||||||
/** Whether a lead fallback actor was created during routing. */
|
/** Whether a lead fallback actor was created during routing. */
|
||||||
lead_created?: boolean;
|
lead_created?: boolean;
|
||||||
/** Whether dispatch was accepted. */
|
|
||||||
ok?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,17 +9,17 @@
|
||||||
* Request payload for asking the end user via a main gateway agent.
|
* Request payload for asking the end user via a main gateway agent.
|
||||||
*/
|
*/
|
||||||
export interface GatewayMainAskUserRequest {
|
export interface GatewayMainAskUserRequest {
|
||||||
|
/** Optional correlation token for tracing request/response flow. */
|
||||||
|
correlation_id?: string | null;
|
||||||
/**
|
/**
|
||||||
* Prompt that should be asked to the human.
|
* Prompt that should be asked to the human.
|
||||||
* @minLength 1
|
* @minLength 1
|
||||||
*/
|
*/
|
||||||
content: string;
|
content: string;
|
||||||
/** Optional correlation token for tracing request/response flow. */
|
|
||||||
correlation_id?: string | null;
|
|
||||||
/** Optional preferred messaging channel. */
|
/** Optional preferred messaging channel. */
|
||||||
preferred_channel?: string | null;
|
preferred_channel?: string | null;
|
||||||
/** Reply destination key for user confirmation loops. */
|
|
||||||
reply_source?: string | null;
|
|
||||||
/** Tags required for routing the user response. */
|
/** Tags required for routing the user response. */
|
||||||
reply_tags?: string[];
|
reply_tags?: string[];
|
||||||
|
/** Reply destination key for user confirmation loops. */
|
||||||
|
reply_source?: string | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,12 @@
|
||||||
* Response payload for user-question dispatch via gateway main agent.
|
* Response payload for user-question dispatch via gateway main agent.
|
||||||
*/
|
*/
|
||||||
export interface GatewayMainAskUserResponse {
|
export interface GatewayMainAskUserResponse {
|
||||||
|
/** Whether ask-user dispatch was accepted. */
|
||||||
|
ok?: boolean;
|
||||||
/** Board context used for the request. */
|
/** Board context used for the request. */
|
||||||
board_id: string;
|
board_id: string;
|
||||||
/** Resolved main agent id handling the ask. */
|
/** Resolved main agent id handling the ask. */
|
||||||
main_agent_id?: string | null;
|
main_agent_id?: string | null;
|
||||||
/** Resolved main agent display name. */
|
/** Resolved main agent display name. */
|
||||||
main_agent_name?: string | null;
|
main_agent_name?: string | null;
|
||||||
/** Whether ask-user dispatch was accepted. */
|
|
||||||
ok?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,14 +9,14 @@
|
||||||
* Gateway payload returned from read endpoints.
|
* Gateway payload returned from read endpoints.
|
||||||
*/
|
*/
|
||||||
export interface GatewayRead {
|
export interface GatewayRead {
|
||||||
allow_insecure_tls?: boolean;
|
|
||||||
created_at: string;
|
|
||||||
disable_device_pairing?: boolean;
|
|
||||||
id: string;
|
|
||||||
name: string;
|
name: string;
|
||||||
organization_id: string;
|
|
||||||
token?: string | null;
|
|
||||||
updated_at: string;
|
|
||||||
url: string;
|
url: string;
|
||||||
workspace_root: string;
|
workspace_root: string;
|
||||||
|
allow_insecure_tls?: boolean;
|
||||||
|
disable_device_pairing?: boolean;
|
||||||
|
id: string;
|
||||||
|
organization_id: string;
|
||||||
|
token?: string | null;
|
||||||
|
created_at: string;
|
||||||
|
updated_at: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,6 @@
|
||||||
* Gateway sessions list response payload.
|
* Gateway sessions list response payload.
|
||||||
*/
|
*/
|
||||||
export interface GatewaySessionsResponse {
|
export interface GatewaySessionsResponse {
|
||||||
main_session?: unknown | null;
|
|
||||||
sessions: unknown[];
|
sessions: unknown[];
|
||||||
|
main_session?: unknown | null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,11 @@ import type { GatewayTemplatesSyncError } from "./gatewayTemplatesSyncError";
|
||||||
* Summary payload returned by gateway template sync endpoints.
|
* Summary payload returned by gateway template sync endpoints.
|
||||||
*/
|
*/
|
||||||
export interface GatewayTemplatesSyncResult {
|
export interface GatewayTemplatesSyncResult {
|
||||||
agents_skipped: number;
|
|
||||||
agents_updated: number;
|
|
||||||
errors?: GatewayTemplatesSyncError[];
|
|
||||||
gateway_id: string;
|
gateway_id: string;
|
||||||
include_main: boolean;
|
include_main: boolean;
|
||||||
main_updated: boolean;
|
|
||||||
reset_sessions: boolean;
|
reset_sessions: boolean;
|
||||||
|
agents_updated: number;
|
||||||
|
agents_skipped: number;
|
||||||
|
main_updated: boolean;
|
||||||
|
errors?: GatewayTemplatesSyncError[];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue