AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
feat(frontend): add prefetch queries for various endpoints and enhance API configurations (#10394)
Abhimanyu Yadavf2a26b547b10
diff --git a/autogpt_platform/frontend/orval.config.ts b/autogpt_platform/frontend/orval.config.tsindex 0047ecb720..b37290cd81 100644--- a/autogpt_platform/frontend/orval.config.ts+++ b/autogpt_platform/frontend/orval.config.ts@@ -24,6 +24,7 @@ export default defineConfig({query: {useQuery: true,useMutation: true,+ usePrefetch: true,// Will add more as their use cases arise},operations: {diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/admin/admin.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/admin/admin.tsindex adf5fa49d5..716e4e8c0c 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/admin/admin.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/admin/admin.ts@@ -264,6 +264,36 @@ export function useGetV2GetAdminListingsHistory<return query;}+/**+ * @summary Get Admin Listings History+ */+export const prefetchGetV2GetAdminListingsHistoryQuery = async <+ TData = Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ params?: GetV2GetAdminListingsHistoryParams,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2GetAdminListingsHistoryQueryOptions(+ params,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** Review a store listing submission.@@ -610,6 +640,36 @@ export function useGetV2AdminDownloadAgentFile<return query;}+/**+ * @summary Admin Download Agent File+ */+export const prefetchGetV2AdminDownloadAgentFileQuery = async <+ TData = Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ storeListingVersionId: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2AdminDownloadAgentFileQueryOptions(+ storeListingVersionId,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Add Credits to User*/@@ -929,3 +989,30 @@ export function useGetV2GetAllUsersHistory<return query;}++/**+ * @summary Get All Users History+ */+export const prefetchGetV2GetAllUsersHistoryQuery = async <+ TData = Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ params?: GetV2GetAllUsersHistoryParams,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2GetAllUsersHistoryQueryOptions(params, options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/api-keys/api-keys.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/api-keys/api-keys.tsindex 9547793c15..3dc942a020 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/api-keys/api-keys.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/api-keys/api-keys.ts@@ -211,6 +211,32 @@ export function useGetV1ListUserApiKeys<return query;}+/**+ * @summary List user API keys+ */+export const prefetchGetV1ListUserApiKeysQuery = async <+ TData = Awaited<ReturnType<typeof getV1ListUserApiKeys>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1ListUserApiKeys>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1ListUserApiKeysQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** Create a new API key* @summary Create new API key@@ -519,6 +545,33 @@ export function useGetV1GetSpecificApiKey<return query;}+/**+ * @summary Get specific API key+ */+export const prefetchGetV1GetSpecificApiKeyQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ keyId: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetSpecificApiKeyQueryOptions(keyId, options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** Revoke an API key* @summary Revoke API keydiff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/auth/auth.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/auth/auth.tsindex 711bfb2cd2..1bb7d62d0e 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/auth/auth.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/auth/auth.ts@@ -418,6 +418,32 @@ export function useGetV1GetNotificationPreferences<return query;}+/**+ * @summary Get notification preferences+ */+export const prefetchGetV1GetNotificationPreferencesQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetNotificationPreferencesQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Update notification preferences*/diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/blocks/blocks.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/blocks/blocks.tsindex a11fb83730..5de872000e 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/blocks/blocks.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/blocks/blocks.ts@@ -207,6 +207,32 @@ export function useGetV1ListAvailableBlocks<return query;}+/**+ * @summary List available blocks+ */+export const prefetchGetV1ListAvailableBlocksQuery = async <+ TData = Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1ListAvailableBlocksQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Execute graph block*/diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/credits/credits.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/credits/credits.tsindex a6007de0f4..2607388104 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/credits/credits.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/credits/credits.ts@@ -216,6 +216,32 @@ export function useGetV1GetUserCredits<return query;}+/**+ * @summary Get user credits+ */+export const prefetchGetV1GetUserCreditsQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetUserCredits>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetUserCredits>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetUserCreditsQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Request credit top up*/@@ -713,6 +739,32 @@ export function useGetV1GetAutoTopUp<return query;}+/**+ * @summary Get auto top up+ */+export const prefetchGetV1GetAutoTopUpQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetAutoTopUp>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetAutoTopUp>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetAutoTopUpQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Configure auto top up*/@@ -1100,6 +1152,32 @@ export function useGetV1ManagePaymentMethods<return query;}+/**+ * @summary Manage payment methods+ */+export const prefetchGetV1ManagePaymentMethodsQuery = async <+ TData = Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1ManagePaymentMethodsQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Get credit history*/@@ -1305,6 +1383,33 @@ export function useGetV1GetCreditHistory<return query;}+/**+ * @summary Get credit history+ */+export const prefetchGetV1GetCreditHistoryQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetCreditHistory>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ params?: GetV1GetCreditHistoryParams,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetCreditHistory>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetCreditHistoryQueryOptions(params, options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Get refund requests*/@@ -1478,3 +1583,29 @@ export function useGetV1GetRefundRequests<return query;}++/**+ * @summary Get refund requests+ */+export const prefetchGetV1GetRefundRequestsQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetRefundRequests>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetRefundRequests>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetRefundRequestsQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/graphs/graphs.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/graphs/graphs.tsindex 17ac611422..65f786fc38 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/graphs/graphs.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/graphs/graphs.ts@@ -39,6 +39,8 @@ import type { Graph } from "../../models/graph";import type { GraphExecutionMeta } from "../../models/graphExecutionMeta";+import type { GraphMeta } from "../../models/graphMeta";+import type { GraphModel } from "../../models/graphModel";import type { HTTPValidationError } from "../../models/hTTPValidationError";@@ -47,8 +49,6 @@ import type { PostV1ExecuteGraphAgentParams } from "../../models/postV1ExecuteGrimport type { PostV1StopGraphExecution200 } from "../../models/postV1StopGraphExecution200";-import type { PostV1StopGraphExecutionsParams } from "../../models/postV1StopGraphExecutionsParams";-import type { SetGraphActiveVersion } from "../../models/setGraphActiveVersion";import { customMutator } from "../../../mutators/custom-mutator";@@ -59,7 +59,7 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];* @summary List user graphs*/export type getV1ListUserGraphsResponse200 = {- data: GraphModel[];+ data: GraphMeta[];status: 200;};@@ -228,6 +228,32 @@ export function useGetV1ListUserGraphs<return query;}+/**+ * @summary List user graphs+ */+export const prefetchGetV1ListUserGraphsQuery = async <+ TData = Awaited<ReturnType<typeof getV1ListUserGraphs>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1ListUserGraphs>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1ListUserGraphsQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Create new graph*/@@ -578,6 +604,40 @@ export function useGetV1GetGraphVersion<return query;}+/**+ * @summary Get graph version+ */+export const prefetchGetV1GetGraphVersionQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetGraphVersion>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ graphId: string,+ version: number | null,+ params?: GetV1GetGraphVersionParams,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetGraphVersion>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetGraphVersionQueryOptions(+ graphId,+ version,+ params,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Get specific graph*/@@ -800,6 +860,38 @@ export function useGetV1GetSpecificGraph<return query;}+/**+ * @summary Get specific graph+ */+export const prefetchGetV1GetSpecificGraphQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetSpecificGraph>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ graphId: string,+ params?: GetV1GetSpecificGraphParams,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetSpecificGraph>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetSpecificGraphQueryOptions(+ graphId,+ params,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Delete graph permanently*/@@ -1221,6 +1313,36 @@ export function useGetV1GetAllGraphVersions<return query;}+/**+ * @summary Get all graph versions+ */+export const prefetchGetV1GetAllGraphVersionsQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ graphId: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetAllGraphVersionsQueryOptions(+ graphId,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Set active graph version*/@@ -1610,130 +1732,6 @@ export const usePostV1StopGraphExecution = <return useMutation(mutationOptions, queryClient);};-/**- * @summary Stop graph executions- */-export type postV1StopGraphExecutionsResponse200 = {- data: GraphExecutionMeta[];- status: 200;-};--export type postV1StopGraphExecutionsResponse422 = {- data: HTTPValidationError;- status: 422;-};--export type postV1StopGraphExecutionsResponseComposite =- | postV1StopGraphExecutionsResponse200- | postV1StopGraphExecutionsResponse422;--export type postV1StopGraphExecutionsResponse =- postV1StopGraphExecutionsResponseComposite & {- headers: Headers;- };--export const getPostV1StopGraphExecutionsUrl = (- params: PostV1StopGraphExecutionsParams,-) => {- 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/executions?${stringifiedParams}`- : `/api/executions`;-};--export const postV1StopGraphExecutions = async (- params: PostV1StopGraphExecutionsParams,- options?: RequestInit,-): Promise<postV1StopGraphExecutionsResponse> => {- return customMutator<postV1StopGraphExecutionsResponse>(- getPostV1StopGraphExecutionsUrl(params),- {- ...options,- method: "POST",- },- );-};--export const getPostV1StopGraphExecutionsMutationOptions = <- TError = HTTPValidationError,- TContext = unknown,->(options?: {- mutation?: UseMutationOptions<- Awaited<ReturnType<typeof postV1StopGraphExecutions>>,- TError,- { params: PostV1StopGraphExecutionsParams },- TContext- >;- request?: SecondParameter<typeof customMutator>;-}): UseMutationOptions<- Awaited<ReturnType<typeof postV1StopGraphExecutions>>,- TError,- { params: PostV1StopGraphExecutionsParams },- TContext-> => {- const mutationKey = ["postV1StopGraphExecutions"];- 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 postV1StopGraphExecutions>>,- { params: PostV1StopGraphExecutionsParams }- > = (props) => {- const { params } = props ?? {};-- return postV1StopGraphExecutions(params, requestOptions);- };-- return { mutationFn, ...mutationOptions };-};--export type PostV1StopGraphExecutionsMutationResult = NonNullable<- Awaited<ReturnType<typeof postV1StopGraphExecutions>>->;--export type PostV1StopGraphExecutionsMutationError = HTTPValidationError;--/**- * @summary Stop graph executions- */-export const usePostV1StopGraphExecutions = <- TError = HTTPValidationError,- TContext = unknown,->(- options?: {- mutation?: UseMutationOptions<- Awaited<ReturnType<typeof postV1StopGraphExecutions>>,- TError,- { params: PostV1StopGraphExecutionsParams },- TContext- >;- request?: SecondParameter<typeof customMutator>;- },- queryClient?: QueryClient,-): UseMutationResult<- Awaited<ReturnType<typeof postV1StopGraphExecutions>>,- TError,- { params: PostV1StopGraphExecutionsParams },- TContext-> => {- const mutationOptions = getPostV1StopGraphExecutionsMutationOptions(options);-- return useMutation(mutationOptions, queryClient);-};/*** @summary Get all executions*/@@ -1907,6 +1905,32 @@ export function useGetV1GetAllExecutions<return query;}+/**+ * @summary Get all executions+ */+export const prefetchGetV1GetAllExecutionsQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetAllExecutions>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetAllExecutions>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetAllExecutionsQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Get graph executions*/@@ -2101,6 +2125,33 @@ export function useGetV1GetGraphExecutions<return query;}+/**+ * @summary Get graph executions+ */+export const prefetchGetV1GetGraphExecutionsQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetGraphExecutions>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ graphId: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetGraphExecutions>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetGraphExecutionsQueryOptions(graphId, options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Get execution details*/@@ -2315,6 +2366,38 @@ export function useGetV1GetExecutionDetails<return query;}+/**+ * @summary Get execution details+ */+export const prefetchGetV1GetExecutionDetailsQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetExecutionDetails>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ graphId: string,+ graphExecId: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetExecutionDetails>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetExecutionDetailsQueryOptions(+ graphId,+ graphExecId,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Delete graph execution*/diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/health/health.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/health/health.tsindex 3ea4b5be7b..8bfd4898fc 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/health/health.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/health/health.ts@@ -185,3 +185,29 @@ export function useGetHealthHealth<return query;}++/**+ * @summary Health+ */+export const prefetchGetHealthHealthQuery = async <+ TData = Awaited<ReturnType<typeof getHealthHealth>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getHealthHealth>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetHealthHealthQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/integrations/integrations.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/integrations/integrations.tsindex bff97a64d4..9525a6a90e 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/integrations/integrations.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/integrations/integrations.ts@@ -41,7 +41,11 @@ import type { PostV1CreateCredentials201 } from "../../models/postV1CreateCredenimport type { PostV1CreateCredentialsBody } from "../../models/postV1CreateCredentialsBody";-import type { ProviderName } from "../../models/providerName";+import type { ProviderConstants } from "../../models/providerConstants";++import type { ProviderEnumResponse } from "../../models/providerEnumResponse";++import type { ProviderNamesResponse } from "../../models/providerNamesResponse";import { customMutator } from "../../../mutators/custom-mutator";@@ -69,7 +73,7 @@ export type getV1LoginResponse = getV1LoginResponseComposite & {};export const getGetV1LoginUrl = (- provider: ProviderName,+ provider: string,params?: GetV1LoginParams,) => {const normalizedParams = new URLSearchParams();@@ -88,7 +92,7 @@ export const getGetV1LoginUrl = (};export const getV1Login = async (- provider: ProviderName,+ provider: string,params?: GetV1LoginParams,options?: RequestInit,): Promise<getV1LoginResponse> => {@@ -99,7 +103,7 @@ export const getV1Login = async (};export const getGetV1LoginQueryKey = (- provider: ProviderName,+ provider: string,params?: GetV1LoginParams,) => {return [@@ -112,7 +116,7 @@ export const getGetV1LoginQueryOptions = <TData = Awaited<ReturnType<typeof getV1Login>>,TError = HTTPValidationError,>(- provider: ProviderName,+ provider: string,params?: GetV1LoginParams,options?: {query?: Partial<@@ -151,7 +155,7 @@ export function useGetV1Login<TData = Awaited<ReturnType<typeof getV1Login>>,TError = HTTPValidationError,>(- provider: ProviderName,+ provider: string,params: undefined | GetV1LoginParams,options: {query: Partial<@@ -175,7 +179,7 @@ export function useGetV1Login<TData = Awaited<ReturnType<typeof getV1Login>>,TError = HTTPValidationError,>(- provider: ProviderName,+ provider: string,params?: GetV1LoginParams,options?: {query?: Partial<@@ -199,7 +203,7 @@ export function useGetV1Login<TData = Awaited<ReturnType<typeof getV1Login>>,TError = HTTPValidationError,>(- provider: ProviderName,+ provider: string,params?: GetV1LoginParams,options?: {query?: Partial<@@ -219,7 +223,7 @@ export function useGetV1Login<TData = Awaited<ReturnType<typeof getV1Login>>,TError = HTTPValidationError,>(- provider: ProviderName,+ provider: string,params?: GetV1LoginParams,options?: {query?: Partial<@@ -243,6 +247,30 @@ export function useGetV1Login<return query;}+/**+ * @summary Login+ */+export const prefetchGetV1LoginQuery = async <+ TData = Awaited<ReturnType<typeof getV1Login>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ provider: string,+ params?: GetV1LoginParams,+ options?: {+ query?: Partial<+ UseQueryOptions<Awaited<ReturnType<typeof getV1Login>>, TError, TData>+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1LoginQueryOptions(provider, params, options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Callback*/@@ -264,12 +292,12 @@ export type postV1CallbackResponse = postV1CallbackResponseComposite & {headers: Headers;};-export const getPostV1CallbackUrl = (provider: ProviderName) => {+export const getPostV1CallbackUrl = (provider: string) => {return `/api/integrations/${provider}/callback`;};export const postV1Callback = async (- provider: ProviderName,+ provider: string,bodyPostV1Callback: BodyPostV1Callback,options?: RequestInit,): Promise<postV1CallbackResponse> => {@@ -288,14 +316,14 @@ export const getPostV1CallbackMutationOptions = <mutation?: UseMutationOptions<Awaited<ReturnType<typeof postV1Callback>>,TError,- { provider: ProviderName; data: BodyPostV1Callback },+ { provider: string; data: BodyPostV1Callback },TContext>;request?: SecondParameter<typeof customMutator>;}): UseMutationOptions<Awaited<ReturnType<typeof postV1Callback>>,TError,- { provider: ProviderName; data: BodyPostV1Callback },+ { provider: string; data: BodyPostV1Callback },TContext> => {const mutationKey = ["postV1Callback"];@@ -309,7 +337,7 @@ export const getPostV1CallbackMutationOptions = <const mutationFn: MutationFunction<Awaited<ReturnType<typeof postV1Callback>>,- { provider: ProviderName; data: BodyPostV1Callback }+ { provider: string; data: BodyPostV1Callback }> = (props) => {const { provider, data } = props ?? {};@@ -336,7 +364,7 @@ export const usePostV1Callback = <mutation?: UseMutationOptions<Awaited<ReturnType<typeof postV1Callback>>,TError,- { provider: ProviderName; data: BodyPostV1Callback },+ { provider: string; data: BodyPostV1Callback },TContext>;request?: SecondParameter<typeof customMutator>;@@ -345,7 +373,7 @@ export const usePostV1Callback = <): UseMutationResult<Awaited<ReturnType<typeof postV1Callback>>,TError,- { provider: ProviderName; data: BodyPostV1Callback },+ { provider: string; data: BodyPostV1Callback },TContext> => {const mutationOptions = getPostV1CallbackMutationOptions(options);@@ -525,6 +553,32 @@ export function useGetV1ListCredentials<return query;}+/**+ * @summary List Credentials+ */+export const prefetchGetV1ListCredentialsQuery = async <+ TData = Awaited<ReturnType<typeof getV1ListCredentials>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1ListCredentials>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1ListCredentialsQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary List Credentials By Provider*/@@ -547,14 +601,12 @@ export type getV1ListCredentialsByProviderResponse =headers: Headers;};-export const getGetV1ListCredentialsByProviderUrl = (- provider: ProviderName,-) => {+export const getGetV1ListCredentialsByProviderUrl = (provider: string) => {return `/api/integrations/${provider}/credentials`;};export const getV1ListCredentialsByProvider = async (- provider: ProviderName,+ provider: string,options?: RequestInit,): Promise<getV1ListCredentialsByProviderResponse> => {return customMutator<getV1ListCredentialsByProviderResponse>(@@ -566,9 +618,7 @@ export const getV1ListCredentialsByProvider = async ();};-export const getGetV1ListCredentialsByProviderQueryKey = (- provider: ProviderName,-) => {+export const getGetV1ListCredentialsByProviderQueryKey = (provider: string) => {return [`/api/integrations/${provider}/credentials`] as const;};@@ -576,7 +626,7 @@ export const getGetV1ListCredentialsByProviderQueryOptions = <TData = Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,TError = HTTPValidationError,>(- provider: ProviderName,+ provider: string,options?: {query?: Partial<UseQueryOptions<@@ -620,7 +670,7 @@ export function useGetV1ListCredentialsByProvider<TData = Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,TError = HTTPValidationError,>(- provider: ProviderName,+ provider: string,options: {query: Partial<UseQueryOptions<@@ -647,7 +697,7 @@ export function useGetV1ListCredentialsByProvider<TData = Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,TError = HTTPValidationError,>(- provider: ProviderName,+ provider: string,options?: {query?: Partial<UseQueryOptions<@@ -674,7 +724,7 @@ export function useGetV1ListCredentialsByProvider<TData = Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,TError = HTTPValidationError,>(- provider: ProviderName,+ provider: string,options?: {query?: Partial<UseQueryOptions<@@ -697,7 +747,7 @@ export function useGetV1ListCredentialsByProvider<TData = Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,TError = HTTPValidationError,>(- provider: ProviderName,+ provider: string,options?: {query?: Partial<UseQueryOptions<@@ -727,6 +777,36 @@ export function useGetV1ListCredentialsByProvider<return query;}+/**+ * @summary List Credentials By Provider+ */+export const prefetchGetV1ListCredentialsByProviderQuery = async <+ TData = Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ provider: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1ListCredentialsByProviderQueryOptions(+ provider,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Create Credentials*/@@ -749,12 +829,12 @@ export type postV1CreateCredentialsResponse =headers: Headers;};-export const getPostV1CreateCredentialsUrl = (provider: ProviderName) => {+export const getPostV1CreateCredentialsUrl = (provider: string) => {return `/api/integrations/${provider}/credentials`;};export const postV1CreateCredentials = async (- provider: ProviderName,+ provider: string,postV1CreateCredentialsBody: PostV1CreateCredentialsBody,options?: RequestInit,): Promise<postV1CreateCredentialsResponse> => {@@ -776,14 +856,14 @@ export const getPostV1CreateCredentialsMutationOptions = <mutation?: UseMutationOptions<Awaited<ReturnType<typeof postV1CreateCredentials>>,TError,- { provider: ProviderName; data: PostV1CreateCredentialsBody },+ { provider: string; data: PostV1CreateCredentialsBody },TContext>;request?: SecondParameter<typeof customMutator>;}): UseMutationOptions<Awaited<ReturnType<typeof postV1CreateCredentials>>,TError,- { provider: ProviderName; data: PostV1CreateCredentialsBody },+ { provider: string; data: PostV1CreateCredentialsBody },TContext> => {const mutationKey = ["postV1CreateCredentials"];@@ -797,7 +877,7 @@ export const getPostV1CreateCredentialsMutationOptions = <const mutationFn: MutationFunction<Awaited<ReturnType<typeof postV1CreateCredentials>>,- { provider: ProviderName; data: PostV1CreateCredentialsBody }+ { provider: string; data: PostV1CreateCredentialsBody }> = (props) => {const { provider, data } = props ?? {};@@ -824,7 +904,7 @@ export const usePostV1CreateCredentials = <mutation?: UseMutationOptions<Awaited<ReturnType<typeof postV1CreateCredentials>>,TError,- { provider: ProviderName; data: PostV1CreateCredentialsBody },+ { provider: string; data: PostV1CreateCredentialsBody },TContext>;request?: SecondParameter<typeof customMutator>;@@ -833,7 +913,7 @@ export const usePostV1CreateCredentials = <): UseMutationResult<Awaited<ReturnType<typeof postV1CreateCredentials>>,TError,- { provider: ProviderName; data: PostV1CreateCredentialsBody },+ { provider: string; data: PostV1CreateCredentialsBody },TContext> => {const mutationOptions = getPostV1CreateCredentialsMutationOptions(options);@@ -861,15 +941,12 @@ export type getV1GetCredentialResponse = getV1GetCredentialResponseComposite & {headers: Headers;};-export const getGetV1GetCredentialUrl = (- provider: ProviderName,- credId: string,-) => {+export const getGetV1GetCredentialUrl = (provider: string, credId: string) => {return `/api/integrations/${provider}/credentials/${credId}`;};export const getV1GetCredential = async (- provider: ProviderName,+ provider: string,credId: string,options?: RequestInit,): Promise<getV1GetCredentialResponse> => {@@ -883,7 +960,7 @@ export const getV1GetCredential = async (};export const getGetV1GetCredentialQueryKey = (- provider: ProviderName,+ provider: string,credId: string,) => {return [`/api/integrations/${provider}/credentials/${credId}`] as const;@@ -893,7 +970,7 @@ export const getGetV1GetCredentialQueryOptions = <TData = Awaited<ReturnType<typeof getV1GetCredential>>,TError = HTTPValidationError,>(- provider: ProviderName,+ provider: string,credId: string,options?: {query?: Partial<@@ -937,7 +1014,7 @@ export function useGetV1GetCredential<TData = Awaited<ReturnType<typeof getV1GetCredential>>,TError = HTTPValidationError,>(- provider: ProviderName,+ provider: string,credId: string,options: {query: Partial<@@ -965,7 +1042,7 @@ export function useGetV1GetCredential<TData = Awaited<ReturnType<typeof getV1GetCredential>>,TError = HTTPValidationError,>(- provider: ProviderName,+ provider: string,credId: string,options?: {query?: Partial<@@ -993,7 +1070,7 @@ export function useGetV1GetCredential<TData = Awaited<ReturnType<typeof getV1GetCredential>>,TError = HTTPValidationError,>(- provider: ProviderName,+ provider: string,credId: string,options?: {query?: Partial<@@ -1017,7 +1094,7 @@ export function useGetV1GetCredential<TData = Awaited<ReturnType<typeof getV1GetCredential>>,TError = HTTPValidationError,>(- provider: ProviderName,+ provider: string,credId: string,options?: {query?: Partial<@@ -1049,6 +1126,38 @@ export function useGetV1GetCredential<return query;}+/**+ * @summary Get Credential+ */+export const prefetchGetV1GetCredentialQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetCredential>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ provider: string,+ credId: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetCredential>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetCredentialQueryOptions(+ provider,+ credId,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Delete Credentials*/@@ -1072,7 +1181,7 @@ export type deleteV1DeleteCredentialsResponse =};export const getDeleteV1DeleteCredentialsUrl = (- provider: ProviderName,+ provider: string,credId: string,params?: DeleteV1DeleteCredentialsParams,) => {@@ -1092,7 +1201,7 @@ export const getDeleteV1DeleteCredentialsUrl = (};export const deleteV1DeleteCredentials = async (- provider: ProviderName,+ provider: string,credId: string,params?: DeleteV1DeleteCredentialsParams,options?: RequestInit,@@ -1114,7 +1223,7 @@ export const getDeleteV1DeleteCredentialsMutationOptions = <Awaited<ReturnType<typeof deleteV1DeleteCredentials>>,TError,{- provider: ProviderName;+ provider: string;credId: string;params?: DeleteV1DeleteCredentialsParams;},@@ -1125,7 +1234,7 @@ export const getDeleteV1DeleteCredentialsMutationOptions = <Awaited<ReturnType<typeof deleteV1DeleteCredentials>>,TError,{- provider: ProviderName;+ provider: string;credId: string;params?: DeleteV1DeleteCredentialsParams;},@@ -1143,7 +1252,7 @@ export const getDeleteV1DeleteCredentialsMutationOptions = <const mutationFn: MutationFunction<Awaited<ReturnType<typeof deleteV1DeleteCredentials>>,{- provider: ProviderName;+ provider: string;credId: string;params?: DeleteV1DeleteCredentialsParams;}@@ -1174,7 +1283,7 @@ export const useDeleteV1DeleteCredentials = <Awaited<ReturnType<typeof deleteV1DeleteCredentials>>,TError,{- provider: ProviderName;+ provider: string;credId: string;params?: DeleteV1DeleteCredentialsParams;},@@ -1187,7 +1296,7 @@ export const useDeleteV1DeleteCredentials = <Awaited<ReturnType<typeof deleteV1DeleteCredentials>>,TError,{- provider: ProviderName;+ provider: string;credId: string;params?: DeleteV1DeleteCredentialsParams;},@@ -1220,14 +1329,14 @@ export type postV1WebhookIngressGenericResponse =};export const getPostV1WebhookIngressGenericUrl = (- provider: ProviderName,+ provider: string,webhookId: string,) => {return `/api/integrations/${provider}/webhooks/${webhookId}/ingress`;};export const postV1WebhookIngressGeneric = async (- provider: ProviderName,+ provider: string,webhookId: string,options?: RequestInit,): Promise<postV1WebhookIngressGenericResponse> => {@@ -1247,14 +1356,14 @@ export const getPostV1WebhookIngressGenericMutationOptions = <mutation?: UseMutationOptions<Awaited<ReturnType<typeof postV1WebhookIngressGeneric>>,TError,- { provider: ProviderName; webhookId: string },+ { provider: string; webhookId: string },TContext>;request?: SecondParameter<typeof customMutator>;}): UseMutationOptions<Awaited<ReturnType<typeof postV1WebhookIngressGeneric>>,TError,- { provider: ProviderName; webhookId: string },+ { provider: string; webhookId: string },TContext> => {const mutationKey = ["postV1WebhookIngressGeneric"];@@ -1268,7 +1377,7 @@ export const getPostV1WebhookIngressGenericMutationOptions = <const mutationFn: MutationFunction<Awaited<ReturnType<typeof postV1WebhookIngressGeneric>>,- { provider: ProviderName; webhookId: string }+ { provider: string; webhookId: string }> = (props) => {const { provider, webhookId } = props ?? {};@@ -1295,7 +1404,7 @@ export const usePostV1WebhookIngressGeneric = <mutation?: UseMutationOptions<Awaited<ReturnType<typeof postV1WebhookIngressGeneric>>,TError,- { provider: ProviderName; webhookId: string },+ { provider: string; webhookId: string },TContext>;request?: SecondParameter<typeof customMutator>;@@ -1304,7 +1413,7 @@ export const usePostV1WebhookIngressGeneric = <): UseMutationResult<Awaited<ReturnType<typeof postV1WebhookIngressGeneric>>,TError,- { provider: ProviderName; webhookId: string },+ { provider: string; webhookId: string },TContext> => {const mutationOptions =@@ -1421,3 +1530,818 @@ export const usePostV1WebhookPing = <return useMutation(mutationOptions, queryClient);};+/**+ * Get a list of all available provider names.++Returns both statically defined providers (from ProviderName enum)+and dynamically registered providers (from SDK decorators).++Note: The complete list of provider names is also available as a constant+in the generated TypeScript client via PROVIDER_NAMES.+ * @summary List Providers+ */+export type getV1ListProvidersResponse200 = {+ data: string[];+ status: 200;+};++export type getV1ListProvidersResponseComposite = getV1ListProvidersResponse200;++export type getV1ListProvidersResponse = getV1ListProvidersResponseComposite & {+ headers: Headers;+};++export const getGetV1ListProvidersUrl = () => {+ return `/api/integrations/providers`;+};++export const getV1ListProviders = async (+ options?: RequestInit,+): Promise<getV1ListProvidersResponse> => {+ return customMutator<getV1ListProvidersResponse>(getGetV1ListProvidersUrl(), {+ ...options,+ method: "GET",+ });+};++export const getGetV1ListProvidersQueryKey = () => {+ return [`/api/integrations/providers`] as const;+};++export const getGetV1ListProvidersQueryOptions = <+ TData = Awaited<ReturnType<typeof getV1ListProviders>>,+ TError = unknown,+>(options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1ListProviders>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+}) => {+ const { query: queryOptions, request: requestOptions } = options ?? {};++ const queryKey = queryOptions?.queryKey ?? getGetV1ListProvidersQueryKey();++ const queryFn: QueryFunction<+ Awaited<ReturnType<typeof getV1ListProviders>>+ > = ({ signal }) => getV1ListProviders({ signal, ...requestOptions });++ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<+ Awaited<ReturnType<typeof getV1ListProviders>>,+ TError,+ TData+ > & { queryKey: DataTag<QueryKey, TData, TError> };+};++export type GetV1ListProvidersQueryResult = NonNullable<+ Awaited<ReturnType<typeof getV1ListProviders>>+>;+export type GetV1ListProvidersQueryError = unknown;++export function useGetV1ListProviders<+ TData = Awaited<ReturnType<typeof getV1ListProviders>>,+ TError = unknown,+>(+ options: {+ query: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1ListProviders>>,+ TError,+ TData+ >+ > &+ Pick<+ DefinedInitialDataOptions<+ Awaited<ReturnType<typeof getV1ListProviders>>,+ TError,+ Awaited<ReturnType<typeof getV1ListProviders>>+ >,+ "initialData"+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): DefinedUseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+};+export function useGetV1ListProviders<+ TData = Awaited<ReturnType<typeof getV1ListProviders>>,+ TError = unknown,+>(+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1ListProviders>>,+ TError,+ TData+ >+ > &+ Pick<+ UndefinedInitialDataOptions<+ Awaited<ReturnType<typeof getV1ListProviders>>,+ TError,+ Awaited<ReturnType<typeof getV1ListProviders>>+ >,+ "initialData"+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): UseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+};+export function useGetV1ListProviders<+ TData = Awaited<ReturnType<typeof getV1ListProviders>>,+ TError = unknown,+>(+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1ListProviders>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): UseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+};+/**+ * @summary List Providers+ */++export function useGetV1ListProviders<+ TData = Awaited<ReturnType<typeof getV1ListProviders>>,+ TError = unknown,+>(+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1ListProviders>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): UseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+} {+ const queryOptions = getGetV1ListProvidersQueryOptions(options);++ const query = useQuery(queryOptions, queryClient) as UseQueryResult<+ TData,+ TError+ > & { queryKey: DataTag<QueryKey, TData, TError> };++ query.queryKey = queryOptions.queryKey;++ return query;+}++/**+ * @summary List Providers+ */+export const prefetchGetV1ListProvidersQuery = async <+ TData = Awaited<ReturnType<typeof getV1ListProviders>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1ListProviders>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1ListProvidersQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};++/**+ * Get all provider names in a structured format.++This endpoint is specifically designed to expose the provider names+in the OpenAPI schema so that code generators like Orval can create+appropriate TypeScript constants.+ * @summary Get Provider Names+ */+export type getV1GetProviderNamesResponse200 = {+ data: ProviderNamesResponse;+ status: 200;+};++export type getV1GetProviderNamesResponseComposite =+ getV1GetProviderNamesResponse200;++export type getV1GetProviderNamesResponse =+ getV1GetProviderNamesResponseComposite & {+ headers: Headers;+ };++export const getGetV1GetProviderNamesUrl = () => {+ return `/api/integrations/providers/names`;+};++export const getV1GetProviderNames = async (+ options?: RequestInit,+): Promise<getV1GetProviderNamesResponse> => {+ return customMutator<getV1GetProviderNamesResponse>(+ getGetV1GetProviderNamesUrl(),+ {+ ...options,+ method: "GET",+ },+ );+};++export const getGetV1GetProviderNamesQueryKey = () => {+ return [`/api/integrations/providers/names`] as const;+};++export const getGetV1GetProviderNamesQueryOptions = <+ TData = Awaited<ReturnType<typeof getV1GetProviderNames>>,+ TError = unknown,+>(options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderNames>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+}) => {+ const { query: queryOptions, request: requestOptions } = options ?? {};++ const queryKey = queryOptions?.queryKey ?? getGetV1GetProviderNamesQueryKey();++ const queryFn: QueryFunction<+ Awaited<ReturnType<typeof getV1GetProviderNames>>+ > = ({ signal }) => getV1GetProviderNames({ signal, ...requestOptions });++ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderNames>>,+ TError,+ TData+ > & { queryKey: DataTag<QueryKey, TData, TError> };+};++export type GetV1GetProviderNamesQueryResult = NonNullable<+ Awaited<ReturnType<typeof getV1GetProviderNames>>+>;+export type GetV1GetProviderNamesQueryError = unknown;++export function useGetV1GetProviderNames<+ TData = Awaited<ReturnType<typeof getV1GetProviderNames>>,+ TError = unknown,+>(+ options: {+ query: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderNames>>,+ TError,+ TData+ >+ > &+ Pick<+ DefinedInitialDataOptions<+ Awaited<ReturnType<typeof getV1GetProviderNames>>,+ TError,+ Awaited<ReturnType<typeof getV1GetProviderNames>>+ >,+ "initialData"+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): DefinedUseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+};+export function useGetV1GetProviderNames<+ TData = Awaited<ReturnType<typeof getV1GetProviderNames>>,+ TError = unknown,+>(+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderNames>>,+ TError,+ TData+ >+ > &+ Pick<+ UndefinedInitialDataOptions<+ Awaited<ReturnType<typeof getV1GetProviderNames>>,+ TError,+ Awaited<ReturnType<typeof getV1GetProviderNames>>+ >,+ "initialData"+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): UseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+};+export function useGetV1GetProviderNames<+ TData = Awaited<ReturnType<typeof getV1GetProviderNames>>,+ TError = unknown,+>(+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderNames>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): UseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+};+/**+ * @summary Get Provider Names+ */++export function useGetV1GetProviderNames<+ TData = Awaited<ReturnType<typeof getV1GetProviderNames>>,+ TError = unknown,+>(+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderNames>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): UseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+} {+ const queryOptions = getGetV1GetProviderNamesQueryOptions(options);++ const query = useQuery(queryOptions, queryClient) as UseQueryResult<+ TData,+ TError+ > & { queryKey: DataTag<QueryKey, TData, TError> };++ query.queryKey = queryOptions.queryKey;++ return query;+}++/**+ * @summary Get Provider Names+ */+export const prefetchGetV1GetProviderNamesQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetProviderNames>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderNames>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetProviderNamesQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};++/**+ * Get provider names as constants.++This endpoint returns a model with provider names as constants,+specifically designed for OpenAPI code generation tools to create+TypeScript constants.+ * @summary Get Provider Constants+ */+export type getV1GetProviderConstantsResponse200 = {+ data: ProviderConstants;+ status: 200;+};++export type getV1GetProviderConstantsResponseComposite =+ getV1GetProviderConstantsResponse200;++export type getV1GetProviderConstantsResponse =+ getV1GetProviderConstantsResponseComposite & {+ headers: Headers;+ };++export const getGetV1GetProviderConstantsUrl = () => {+ return `/api/integrations/providers/constants`;+};++export const getV1GetProviderConstants = async (+ options?: RequestInit,+): Promise<getV1GetProviderConstantsResponse> => {+ return customMutator<getV1GetProviderConstantsResponse>(+ getGetV1GetProviderConstantsUrl(),+ {+ ...options,+ method: "GET",+ },+ );+};++export const getGetV1GetProviderConstantsQueryKey = () => {+ return [`/api/integrations/providers/constants`] as const;+};++export const getGetV1GetProviderConstantsQueryOptions = <+ TData = Awaited<ReturnType<typeof getV1GetProviderConstants>>,+ TError = unknown,+>(options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderConstants>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+}) => {+ const { query: queryOptions, request: requestOptions } = options ?? {};++ const queryKey =+ queryOptions?.queryKey ?? getGetV1GetProviderConstantsQueryKey();++ const queryFn: QueryFunction<+ Awaited<ReturnType<typeof getV1GetProviderConstants>>+ > = ({ signal }) => getV1GetProviderConstants({ signal, ...requestOptions });++ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderConstants>>,+ TError,+ TData+ > & { queryKey: DataTag<QueryKey, TData, TError> };+};++export type GetV1GetProviderConstantsQueryResult = NonNullable<+ Awaited<ReturnType<typeof getV1GetProviderConstants>>+>;+export type GetV1GetProviderConstantsQueryError = unknown;++export function useGetV1GetProviderConstants<+ TData = Awaited<ReturnType<typeof getV1GetProviderConstants>>,+ TError = unknown,+>(+ options: {+ query: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderConstants>>,+ TError,+ TData+ >+ > &+ Pick<+ DefinedInitialDataOptions<+ Awaited<ReturnType<typeof getV1GetProviderConstants>>,+ TError,+ Awaited<ReturnType<typeof getV1GetProviderConstants>>+ >,+ "initialData"+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): DefinedUseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+};+export function useGetV1GetProviderConstants<+ TData = Awaited<ReturnType<typeof getV1GetProviderConstants>>,+ TError = unknown,+>(+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderConstants>>,+ TError,+ TData+ >+ > &+ Pick<+ UndefinedInitialDataOptions<+ Awaited<ReturnType<typeof getV1GetProviderConstants>>,+ TError,+ Awaited<ReturnType<typeof getV1GetProviderConstants>>+ >,+ "initialData"+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): UseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+};+export function useGetV1GetProviderConstants<+ TData = Awaited<ReturnType<typeof getV1GetProviderConstants>>,+ TError = unknown,+>(+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderConstants>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): UseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+};+/**+ * @summary Get Provider Constants+ */++export function useGetV1GetProviderConstants<+ TData = Awaited<ReturnType<typeof getV1GetProviderConstants>>,+ TError = unknown,+>(+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderConstants>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): UseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+} {+ const queryOptions = getGetV1GetProviderConstantsQueryOptions(options);++ const query = useQuery(queryOptions, queryClient) as UseQueryResult<+ TData,+ TError+ > & { queryKey: DataTag<QueryKey, TData, TError> };++ query.queryKey = queryOptions.queryKey;++ return query;+}++/**+ * @summary Get Provider Constants+ */+export const prefetchGetV1GetProviderConstantsQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetProviderConstants>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderConstants>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetProviderConstantsQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};++/**+ * Example endpoint that uses the CompleteProviderNames enum.++This endpoint exists to ensure that the CompleteProviderNames enum is included+in the OpenAPI schema, which will cause Orval to generate it as a+TypeScript enum/constant.+ * @summary Get Provider Enum Example+ */+export type getV1GetProviderEnumExampleResponse200 = {+ data: ProviderEnumResponse;+ status: 200;+};++export type getV1GetProviderEnumExampleResponseComposite =+ getV1GetProviderEnumExampleResponse200;++export type getV1GetProviderEnumExampleResponse =+ getV1GetProviderEnumExampleResponseComposite & {+ headers: Headers;+ };++export const getGetV1GetProviderEnumExampleUrl = () => {+ return `/api/integrations/providers/enum-example`;+};++export const getV1GetProviderEnumExample = async (+ options?: RequestInit,+): Promise<getV1GetProviderEnumExampleResponse> => {+ return customMutator<getV1GetProviderEnumExampleResponse>(+ getGetV1GetProviderEnumExampleUrl(),+ {+ ...options,+ method: "GET",+ },+ );+};++export const getGetV1GetProviderEnumExampleQueryKey = () => {+ return [`/api/integrations/providers/enum-example`] as const;+};++export const getGetV1GetProviderEnumExampleQueryOptions = <+ TData = Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,+ TError = unknown,+>(options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+}) => {+ const { query: queryOptions, request: requestOptions } = options ?? {};++ const queryKey =+ queryOptions?.queryKey ?? getGetV1GetProviderEnumExampleQueryKey();++ const queryFn: QueryFunction<+ Awaited<ReturnType<typeof getV1GetProviderEnumExample>>+ > = ({ signal }) =>+ getV1GetProviderEnumExample({ signal, ...requestOptions });++ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,+ TError,+ TData+ > & { queryKey: DataTag<QueryKey, TData, TError> };+};++export type GetV1GetProviderEnumExampleQueryResult = NonNullable<+ Awaited<ReturnType<typeof getV1GetProviderEnumExample>>+>;+export type GetV1GetProviderEnumExampleQueryError = unknown;++export function useGetV1GetProviderEnumExample<+ TData = Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,+ TError = unknown,+>(+ options: {+ query: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,+ TError,+ TData+ >+ > &+ Pick<+ DefinedInitialDataOptions<+ Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,+ TError,+ Awaited<ReturnType<typeof getV1GetProviderEnumExample>>+ >,+ "initialData"+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): DefinedUseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+};+export function useGetV1GetProviderEnumExample<+ TData = Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,+ TError = unknown,+>(+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,+ TError,+ TData+ >+ > &+ Pick<+ UndefinedInitialDataOptions<+ Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,+ TError,+ Awaited<ReturnType<typeof getV1GetProviderEnumExample>>+ >,+ "initialData"+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): UseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+};+export function useGetV1GetProviderEnumExample<+ TData = Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,+ TError = unknown,+>(+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): UseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+};+/**+ * @summary Get Provider Enum Example+ */++export function useGetV1GetProviderEnumExample<+ TData = Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,+ TError = unknown,+>(+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): UseQueryResult<TData, TError> & {+ queryKey: DataTag<QueryKey, TData, TError>;+} {+ const queryOptions = getGetV1GetProviderEnumExampleQueryOptions(options);++ const query = useQuery(queryOptions, queryClient) as UseQueryResult<+ TData,+ TError+ > & { queryKey: DataTag<QueryKey, TData, TError> };++ query.queryKey = queryOptions.queryKey;++ return query;+}++/**+ * @summary Get Provider Enum Example+ */+export const prefetchGetV1GetProviderEnumExampleQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetProviderEnumExampleQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/library/library.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/library/library.tsindex 6560be16d7..338f10d27d 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/library/library.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/library/library.ts@@ -37,14 +37,10 @@ import type { HTTPValidationError } from "../../models/hTTPValidationError";import type { LibraryAgent } from "../../models/libraryAgent";-import type { LibraryAgentPreset } from "../../models/libraryAgentPreset";-import type { LibraryAgentResponse } from "../../models/libraryAgentResponse";import type { LibraryAgentUpdateRequest } from "../../models/libraryAgentUpdateRequest";-import type { TriggeredPresetSetupParams } from "../../models/triggeredPresetSetupParams";-import { customMutator } from "../../../mutators/custom-mutator";type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];@@ -308,6 +304,38 @@ export function useGetV2ListLibraryAgentsInfinite<return query;}+/**+ * @summary List Library Agents+ */+export const prefetchGetV2ListLibraryAgentsInfiniteQuery = async <+ TData = Awaited<ReturnType<typeof getV2ListLibraryAgents>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ params?: GetV2ListLibraryAgentsParams,+ options?: {+ query?: Partial<+ UseInfiniteQueryOptions<+ Awaited<ReturnType<typeof getV2ListLibraryAgents>>,+ TError,+ TData,+ QueryKey,+ GetV2ListLibraryAgentsParams["page"]+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2ListLibraryAgentsInfiniteQueryOptions(+ params,+ options,+ );++ await queryClient.prefetchInfiniteQuery(queryOptions);++ return queryClient;+};+export const getGetV2ListLibraryAgentsQueryOptions = <TData = Awaited<ReturnType<typeof getV2ListLibraryAgents>>,TError = HTTPValidationError,@@ -454,6 +482,33 @@ export function useGetV2ListLibraryAgents<return query;}+/**+ * @summary List Library Agents+ */+export const prefetchGetV2ListLibraryAgentsQuery = async <+ TData = Awaited<ReturnType<typeof getV2ListLibraryAgents>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ params?: GetV2ListLibraryAgentsParams,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2ListLibraryAgents>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2ListLibraryAgentsQueryOptions(params, options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** Add an agent from the marketplace to the user's library.@@ -782,6 +837,36 @@ export function useGetV2GetLibraryAgent<return query;}+/**+ * @summary Get Library Agent+ */+export const prefetchGetV2GetLibraryAgentQuery = async <+ TData = Awaited<ReturnType<typeof getV2GetLibraryAgent>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ libraryAgentId: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2GetLibraryAgent>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2GetLibraryAgentQueryOptions(+ libraryAgentId,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** Update the library agent with the given fields.@@ -1274,6 +1359,38 @@ export function useGetV2GetLibraryAgentByGraphId<return query;}+/**+ * @summary Get Library Agent By Graph Id+ */+export const prefetchGetV2GetLibraryAgentByGraphIdQuery = async <+ TData = Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ graphId: string,+ params?: GetV2GetLibraryAgentByGraphIdParams,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2GetLibraryAgentByGraphIdQueryOptions(+ graphId,+ params,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** Get Library Agent from Store Listing Version ID.* @summary Get Agent By Store ID@@ -1478,6 +1595,36 @@ export function useGetV2GetAgentByStoreId<return query;}+/**+ * @summary Get Agent By Store ID+ */+export const prefetchGetV2GetAgentByStoreIdQuery = async <+ TData = Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ storeListingVersionId: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2GetAgentByStoreIdQueryOptions(+ storeListingVersionId,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Fork Library Agent*/@@ -1588,117 +1735,3 @@ export const usePostV2ForkLibraryAgent = <return useMutation(mutationOptions, queryClient);};-/**- * Sets up a webhook-triggered `LibraryAgentPreset` for a `LibraryAgent`.-Returns the correspondingly created `LibraryAgentPreset` with `webhook_id` set.- * @summary Setup Trigger- */-export type postV2SetupTriggerResponse200 = {- data: LibraryAgentPreset;- status: 200;-};--export type postV2SetupTriggerResponse422 = {- data: HTTPValidationError;- status: 422;-};--export type postV2SetupTriggerResponseComposite =- | postV2SetupTriggerResponse200- | postV2SetupTriggerResponse422;--export type postV2SetupTriggerResponse = postV2SetupTriggerResponseComposite & {- headers: Headers;-};--export const getPostV2SetupTriggerUrl = (libraryAgentId: string) => {- return `/api/library/agents/${libraryAgentId}/setup-trigger`;-};--export const postV2SetupTrigger = async (- libraryAgentId: string,- triggeredPresetSetupParams: TriggeredPresetSetupParams,- options?: RequestInit,-): Promise<postV2SetupTriggerResponse> => {- return customMutator<postV2SetupTriggerResponse>(- getPostV2SetupTriggerUrl(libraryAgentId),- {- ...options,- method: "POST",- headers: { "Content-Type": "application/json", ...options?.headers },- body: JSON.stringify(triggeredPresetSetupParams),- },- );-};--export const getPostV2SetupTriggerMutationOptions = <- TError = HTTPValidationError,- TContext = unknown,->(options?: {- mutation?: UseMutationOptions<- Awaited<ReturnType<typeof postV2SetupTrigger>>,- TError,- { libraryAgentId: string; data: TriggeredPresetSetupParams },- TContext- >;- request?: SecondParameter<typeof customMutator>;-}): UseMutationOptions<- Awaited<ReturnType<typeof postV2SetupTrigger>>,- TError,- { libraryAgentId: string; data: TriggeredPresetSetupParams },- TContext-> => {- const mutationKey = ["postV2SetupTrigger"];- 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 postV2SetupTrigger>>,- { libraryAgentId: string; data: TriggeredPresetSetupParams }- > = (props) => {- const { libraryAgentId, data } = props ?? {};-- return postV2SetupTrigger(libraryAgentId, data, requestOptions);- };-- return { mutationFn, ...mutationOptions };-};--export type PostV2SetupTriggerMutationResult = NonNullable<- Awaited<ReturnType<typeof postV2SetupTrigger>>->;-export type PostV2SetupTriggerMutationBody = TriggeredPresetSetupParams;-export type PostV2SetupTriggerMutationError = HTTPValidationError;--/**- * @summary Setup Trigger- */-export const usePostV2SetupTrigger = <- TError = HTTPValidationError,- TContext = unknown,->(- options?: {- mutation?: UseMutationOptions<- Awaited<ReturnType<typeof postV2SetupTrigger>>,- TError,- { libraryAgentId: string; data: TriggeredPresetSetupParams },- TContext- >;- request?: SecondParameter<typeof customMutator>;- },- queryClient?: QueryClient,-): UseMutationResult<- Awaited<ReturnType<typeof postV2SetupTrigger>>,- TError,- { libraryAgentId: string; data: TriggeredPresetSetupParams },- TContext-> => {- const mutationOptions = getPostV2SetupTriggerMutationOptions(options);-- return useMutation(mutationOptions, queryClient);-};diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/onboarding/onboarding.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/onboarding/onboarding.tsindex 74b107a15a..9be4d49de3 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/onboarding/onboarding.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/onboarding/onboarding.ts@@ -203,6 +203,32 @@ export function useGetV1GetOnboardingStatus<return query;}+/**+ * @summary Get onboarding status+ */+export const prefetchGetV1GetOnboardingStatusQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetOnboardingStatusQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Update onboarding progress*/@@ -490,6 +516,32 @@ export function useGetV1GetRecommendedAgents<return query;}+/**+ * @summary Get recommended agents+ */+export const prefetchGetV1GetRecommendedAgentsQuery = async <+ TData = Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1GetRecommendedAgentsQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Check onboarding enabled*/@@ -664,3 +716,29 @@ export function useGetV1CheckOnboardingEnabled<return query;}++/**+ * @summary Check onboarding enabled+ */+export const prefetchGetV1CheckOnboardingEnabledQuery = async <+ TData = Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1CheckOnboardingEnabledQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/presets/presets.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/presets/presets.tsindex 1fade88cb8..e0555bc412 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/presets/presets.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/presets/presets.ts@@ -37,6 +37,8 @@ import type { PostV2CreateANewPresetBody } from "../../models/postV2CreateANewPrimport type { PostV2ExecuteAPreset200 } from "../../models/postV2ExecuteAPreset200";+import type { TriggeredPresetSetupRequest } from "../../models/triggeredPresetSetupRequest";+import { customMutator } from "../../../mutators/custom-mutator";type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];@@ -241,6 +243,33 @@ export function useGetV2ListPresets<return query;}+/**+ * @summary List presets+ */+export const prefetchGetV2ListPresetsQuery = async <+ TData = Awaited<ReturnType<typeof getV2ListPresets>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ params: GetV2ListPresetsParams,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2ListPresets>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2ListPresetsQueryOptions(params, options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** Create a new preset for the current user.* @summary Create a new preset@@ -552,6 +581,36 @@ export function useGetV2GetASpecificPreset<return query;}+/**+ * @summary Get a specific preset+ */+export const prefetchGetV2GetASpecificPresetQuery = async <+ TData = Awaited<ReturnType<typeof getV2GetASpecificPreset>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ presetId: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2GetASpecificPreset>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2GetASpecificPresetQueryOptions(+ presetId,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** Update an existing preset by its ID.* @summary Update an existing preset@@ -779,6 +838,116 @@ export const useDeleteV2DeleteAPreset = <return useMutation(mutationOptions, queryClient);};+/**+ * Sets up a webhook-triggered `LibraryAgentPreset` for a `LibraryAgent`.+Returns the correspondingly created `LibraryAgentPreset` with `webhook_id` set.+ * @summary Setup Trigger+ */+export type postV2SetupTriggerResponse200 = {+ data: LibraryAgentPreset;+ status: 200;+};++export type postV2SetupTriggerResponse422 = {+ data: HTTPValidationError;+ status: 422;+};++export type postV2SetupTriggerResponseComposite =+ | postV2SetupTriggerResponse200+ | postV2SetupTriggerResponse422;++export type postV2SetupTriggerResponse = postV2SetupTriggerResponseComposite & {+ headers: Headers;+};++export const getPostV2SetupTriggerUrl = () => {+ return `/api/library/presets/setup-trigger`;+};++export const postV2SetupTrigger = async (+ triggeredPresetSetupRequest: TriggeredPresetSetupRequest,+ options?: RequestInit,+): Promise<postV2SetupTriggerResponse> => {+ return customMutator<postV2SetupTriggerResponse>(getPostV2SetupTriggerUrl(), {+ ...options,+ method: "POST",+ headers: { "Content-Type": "application/json", ...options?.headers },+ body: JSON.stringify(triggeredPresetSetupRequest),+ });+};++export const getPostV2SetupTriggerMutationOptions = <+ TError = HTTPValidationError,+ TContext = unknown,+>(options?: {+ mutation?: UseMutationOptions<+ Awaited<ReturnType<typeof postV2SetupTrigger>>,+ TError,+ { data: TriggeredPresetSetupRequest },+ TContext+ >;+ request?: SecondParameter<typeof customMutator>;+}): UseMutationOptions<+ Awaited<ReturnType<typeof postV2SetupTrigger>>,+ TError,+ { data: TriggeredPresetSetupRequest },+ TContext+> => {+ const mutationKey = ["postV2SetupTrigger"];+ 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 postV2SetupTrigger>>,+ { data: TriggeredPresetSetupRequest }+ > = (props) => {+ const { data } = props ?? {};++ return postV2SetupTrigger(data, requestOptions);+ };++ return { mutationFn, ...mutationOptions };+};++export type PostV2SetupTriggerMutationResult = NonNullable<+ Awaited<ReturnType<typeof postV2SetupTrigger>>+>;+export type PostV2SetupTriggerMutationBody = TriggeredPresetSetupRequest;+export type PostV2SetupTriggerMutationError = HTTPValidationError;++/**+ * @summary Setup Trigger+ */+export const usePostV2SetupTrigger = <+ TError = HTTPValidationError,+ TContext = unknown,+>(+ options?: {+ mutation?: UseMutationOptions<+ Awaited<ReturnType<typeof postV2SetupTrigger>>,+ TError,+ { data: TriggeredPresetSetupRequest },+ TContext+ >;+ request?: SecondParameter<typeof customMutator>;+ },+ queryClient?: QueryClient,+): UseMutationResult<+ Awaited<ReturnType<typeof postV2SetupTrigger>>,+ TError,+ { data: TriggeredPresetSetupRequest },+ TContext+> => {+ const mutationOptions = getPostV2SetupTriggerMutationOptions(options);++ return useMutation(mutationOptions, queryClient);+};/*** Execute a preset with the given graph and node input for the current user.* @summary Execute a presetdiff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/schedules/schedules.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/schedules/schedules.tsindex 6d0e9f655a..18e79df4af 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/schedules/schedules.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/schedules/schedules.ts@@ -351,6 +351,36 @@ export function useGetV1ListExecutionSchedulesForAGraph<return query;}+/**+ * @summary List execution schedules for a graph+ */+export const prefetchGetV1ListExecutionSchedulesForAGraphQuery = async <+ TData = Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ graphId: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV1ListExecutionSchedulesForAGraphQueryOptions(+ graphId,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary List execution schedules for a user*/@@ -527,6 +557,33 @@ export function useGetV1ListExecutionSchedulesForAUser<return query;}+/**+ * @summary List execution schedules for a user+ */+export const prefetchGetV1ListExecutionSchedulesForAUserQuery = async <+ TData = Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions =+ getGetV1ListExecutionSchedulesForAUserQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Delete execution schedule*/diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/store/store.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/store/store.tsindex 5970371244..a6b379665f 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/store/store.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/store/store.ts@@ -235,6 +235,32 @@ export function useGetV2GetUserProfile<return query;}+/**+ * @summary Get user profile+ */+export const prefetchGetV2GetUserProfileQuery = async <+ TData = Awaited<ReturnType<typeof getV2GetUserProfile>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2GetUserProfile>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2GetUserProfileQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** Update the store profile for the authenticated user.@@ -587,6 +613,33 @@ export function useGetV2ListStoreAgents<return query;}+/**+ * @summary List store agents+ */+export const prefetchGetV2ListStoreAgentsQuery = async <+ TData = Awaited<ReturnType<typeof getV2ListStoreAgents>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ params?: GetV2ListStoreAgentsParams,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2ListStoreAgents>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2ListStoreAgentsQueryOptions(params, options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** This is only used on the AgentDetails Page@@ -801,6 +854,38 @@ export function useGetV2GetSpecificAgent<return query;}+/**+ * @summary Get specific agent+ */+export const prefetchGetV2GetSpecificAgentQuery = async <+ TData = Awaited<ReturnType<typeof getV2GetSpecificAgent>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ username: string,+ agentName: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2GetSpecificAgent>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2GetSpecificAgentQueryOptions(+ username,+ agentName,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** Get Agent Graph from Store Listing Version ID.* @summary Get agent graph@@ -1001,6 +1086,36 @@ export function useGetV2GetAgentGraph<return query;}+/**+ * @summary Get agent graph+ */+export const prefetchGetV2GetAgentGraphQuery = async <+ TData = Awaited<ReturnType<typeof getV2GetAgentGraph>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ storeListingVersionId: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2GetAgentGraph>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2GetAgentGraphQueryOptions(+ storeListingVersionId,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** Get Store Agent Details from Store Listing Version ID.* @summary Get agent by version@@ -1205,6 +1320,36 @@ export function useGetV2GetAgentByVersion<return query;}+/**+ * @summary Get agent by version+ */+export const prefetchGetV2GetAgentByVersionQuery = async <+ TData = Awaited<ReturnType<typeof getV2GetAgentByVersion>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ storeListingVersionId: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2GetAgentByVersion>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2GetAgentByVersionQueryOptions(+ storeListingVersionId,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** Create a review for a store agent.@@ -1547,6 +1692,33 @@ export function useGetV2ListStoreCreators<return query;}+/**+ * @summary List store creators+ */+export const prefetchGetV2ListStoreCreatorsQuery = async <+ TData = Awaited<ReturnType<typeof getV2ListStoreCreators>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ params?: GetV2ListStoreCreatorsParams,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2ListStoreCreators>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2ListStoreCreatorsQueryOptions(params, options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** Get the details of a creator- Creator Details Page@@ -1743,6 +1915,33 @@ export function useGetV2GetCreatorDetails<return query;}+/**+ * @summary Get creator details+ */+export const prefetchGetV2GetCreatorDetailsQuery = async <+ TData = Awaited<ReturnType<typeof getV2GetCreatorDetails>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ username: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2GetCreatorDetails>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2GetCreatorDetailsQueryOptions(username, options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** @summary Get my agents*/@@ -1907,6 +2106,32 @@ export function useGetV2GetMyAgents<return query;}+/**+ * @summary Get my agents+ */+export const prefetchGetV2GetMyAgentsQuery = async <+ TData = Awaited<ReturnType<typeof getV2GetMyAgents>>,+ TError = unknown,+>(+ queryClient: QueryClient,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2GetMyAgents>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2GetMyAgentsQueryOptions(options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** Delete a store listing submission.@@ -2243,6 +2468,33 @@ export function useGetV2ListMySubmissions<return query;}+/**+ * @summary List my submissions+ */+export const prefetchGetV2ListMySubmissionsQuery = async <+ TData = Awaited<ReturnType<typeof getV2ListMySubmissions>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ params?: GetV2ListMySubmissionsParams,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2ListMySubmissions>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2ListMySubmissionsQueryOptions(params, options);++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};+/*** Create a new store listing submission.@@ -2839,3 +3091,33 @@ export function useGetV2DownloadAgentFile<return query;}++/**+ * @summary Download agent file+ */+export const prefetchGetV2DownloadAgentFileQuery = async <+ TData = Awaited<ReturnType<typeof getV2DownloadAgentFile>>,+ TError = HTTPValidationError,+>(+ queryClient: QueryClient,+ storeListingVersionId: string,+ options?: {+ query?: Partial<+ UseQueryOptions<+ Awaited<ReturnType<typeof getV2DownloadAgentFile>>,+ TError,+ TData+ >+ >;+ request?: SecondParameter<typeof customMutator>;+ },+): Promise<QueryClient> => {+ const queryOptions = getGetV2DownloadAgentFileQueryOptions(+ storeListingVersionId,+ options,+ );++ await queryClient.prefetchQuery(queryOptions);++ return queryClient;+};diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutput.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutput.tsindex 22946f2918..8354b6344e 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutput.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutput.ts@@ -24,4 +24,5 @@ export interface BaseGraphOutput {forked_from_version?: BaseGraphOutputForkedFromVersion;readonly input_schema: BaseGraphOutputInputSchema;readonly output_schema: BaseGraphOutputOutputSchema;+ readonly has_external_trigger: boolean;}diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaInput.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaInput.tsindex bbff8a8227..e12660e8b8 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaInput.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaInput.ts@@ -6,12 +6,12 @@* OpenAPI spec version: 0.1*/import type { CredentialsMetaInputTitle } from "./credentialsMetaInputTitle";-import type { ProviderName } from "./providerName";import type { CredentialsMetaInputType } from "./credentialsMetaInputType";export interface CredentialsMetaInput {id: string;title?: CredentialsMetaInputTitle;- provider: ProviderName;+ /** Provider name for integrations. Can be any string value, including custom provider names. */+ provider: string;type: CredentialsMetaInputType;}diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMeta.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMeta.tsnew file mode 100644index 0000000000..f1f90a9399--- /dev/null+++ b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMeta.ts@@ -0,0 +1,29 @@+/**+ * Generated by orval v7.10.0 🍺+ * Do not edit manually.+ * AutoGPT Agent Server+ * This server is used to execute agents that are created by the AutoGPT system.+ * OpenAPI spec version: 0.1+ */+import type { GraphMetaForkedFromId } from "./graphMetaForkedFromId";+import type { GraphMetaForkedFromVersion } from "./graphMetaForkedFromVersion";+import type { BaseGraphOutput } from "./baseGraphOutput";+import type { GraphMetaInputSchema } from "./graphMetaInputSchema";+import type { GraphMetaOutputSchema } from "./graphMetaOutputSchema";+import type { GraphMetaCredentialsInputSchema } from "./graphMetaCredentialsInputSchema";++export interface GraphMeta {+ id?: string;+ version?: number;+ is_active?: boolean;+ name: string;+ description: string;+ forked_from_id?: GraphMetaForkedFromId;+ forked_from_version?: GraphMetaForkedFromVersion;+ sub_graphs?: BaseGraphOutput[];+ user_id: string;+ readonly input_schema: GraphMetaInputSchema;+ readonly output_schema: GraphMetaOutputSchema;+ readonly has_external_trigger: boolean;+ readonly credentials_input_schema: GraphMetaCredentialsInputSchema;+}diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaCredentialsInputSchema.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaCredentialsInputSchema.tsnew file mode 100644index 0000000000..1836bed23b--- /dev/null+++ b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaCredentialsInputSchema.ts@@ -0,0 +1,9 @@+/**+ * Generated by orval v7.10.0 🍺+ * Do not edit manually.+ * AutoGPT Agent Server+ * This server is used to execute agents that are created by the AutoGPT system.+ * OpenAPI spec version: 0.1+ */++export type GraphMetaCredentialsInputSchema = { [key: string]: unknown };diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaForkedFromId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaForkedFromId.tsnew file mode 100644index 0000000000..e515e3a41e--- /dev/null+++ b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaForkedFromId.ts@@ -0,0 +1,9 @@+/**+ * Generated by orval v7.10.0 🍺+ * Do not edit manually.+ * AutoGPT Agent Server+ * This server is used to execute agents that are created by the AutoGPT system.+ * OpenAPI spec version: 0.1+ */++export type GraphMetaForkedFromId = string | null;diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaForkedFromVersion.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaForkedFromVersion.tsnew file mode 100644index 0000000000..774e920cc6--- /dev/null+++ b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaForkedFromVersion.ts@@ -0,0 +1,9 @@+/**+ * Generated by orval v7.10.0 🍺+ * Do not edit manually.+ * AutoGPT Agent Server+ * This server is used to execute agents that are created by the AutoGPT system.+ * OpenAPI spec version: 0.1+ */++export type GraphMetaForkedFromVersion = number | null;diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaInputSchema.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaInputSchema.tsnew file mode 100644index 0000000000..35851fa5ea--- /dev/null+++ b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaInputSchema.ts@@ -0,0 +1,9 @@+/**+ * Generated by orval v7.10.0 🍺+ * Do not edit manually.+ * AutoGPT Agent Server+ * This server is used to execute agents that are created by the AutoGPT system.+ * OpenAPI spec version: 0.1+ */++export type GraphMetaInputSchema = { [key: string]: unknown };diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaOutputSchema.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaOutputSchema.tsnew file mode 100644index 0000000000..778649e138--- /dev/null+++ b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaOutputSchema.ts@@ -0,0 +1,9 @@+/**+ * Generated by orval v7.10.0 🍺+ * Do not edit manually.+ * AutoGPT Agent Server+ * This server is used to execute agents that are created by the AutoGPT system.+ * OpenAPI spec version: 0.1+ */++export type GraphMetaOutputSchema = { [key: string]: unknown };diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphModel.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphModel.tsindex aa7a59e662..09d4e7dc17 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphModel.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/models/graphModel.ts@@ -28,6 +28,6 @@ export interface GraphModel {user_id: string;readonly input_schema: GraphModelInputSchema;readonly output_schema: GraphModelOutputSchema;+ readonly has_external_trigger: boolean;readonly credentials_input_schema: GraphModelCredentialsInputSchema;- readonly has_webhook_trigger: boolean;}diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerInfo.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerInfo.tsindex 5f8338f9b0..29bbc0ce14 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerInfo.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerInfo.ts@@ -5,12 +5,12 @@* This server is used to execute agents that are created by the AutoGPT system.* OpenAPI spec version: 0.1*/-import type { ProviderName } from "./providerName";import type { LibraryAgentTriggerInfoConfigSchema } from "./libraryAgentTriggerInfoConfigSchema";import type { LibraryAgentTriggerInfoCredentialsInputName } from "./libraryAgentTriggerInfoCredentialsInputName";export interface LibraryAgentTriggerInfo {- provider: ProviderName;+ /** Provider name for integrations. Can be any string value, including custom provider names. */+ provider: string;/** Input schema for the trigger block */config_schema: LibraryAgentTriggerInfoConfigSchema;credentials_input_name: LibraryAgentTriggerInfoCredentialsInputName;diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequest.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequest.tsnew file mode 100644index 0000000000..2b9bcc7b04--- /dev/null+++ b/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequest.ts@@ -0,0 +1,18 @@+/**+ * Generated by orval v7.10.0 🍺+ * Do not edit manually.+ * AutoGPT Agent Server+ * This server is used to execute agents that are created by the AutoGPT system.+ * OpenAPI spec version: 0.1+ */+import type { TriggeredPresetSetupRequestTriggerConfig } from "./triggeredPresetSetupRequestTriggerConfig";+import type { TriggeredPresetSetupRequestAgentCredentials } from "./triggeredPresetSetupRequestAgentCredentials";++export interface TriggeredPresetSetupRequest {+ name: string;+ description?: string;+ graph_id: string;+ graph_version: number;+ trigger_config: TriggeredPresetSetupRequestTriggerConfig;+ agent_credentials?: TriggeredPresetSetupRequestAgentCredentials;+}diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequestAgentCredentials.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequestAgentCredentials.tsnew file mode 100644index 0000000000..863475d5ff--- /dev/null+++ b/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequestAgentCredentials.ts@@ -0,0 +1,12 @@+/**+ * Generated by orval v7.10.0 🍺+ * Do not edit manually.+ * AutoGPT Agent Server+ * This server is used to execute agents that are created by the AutoGPT system.+ * OpenAPI spec version: 0.1+ */+import type { CredentialsMetaInput } from "./credentialsMetaInput";++export type TriggeredPresetSetupRequestAgentCredentials = {+ [key: string]: CredentialsMetaInput;+};diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequestTriggerConfig.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequestTriggerConfig.tsnew file mode 100644index 0000000000..0d67511ada--- /dev/null+++ b/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequestTriggerConfig.ts@@ -0,0 +1,11 @@+/**+ * Generated by orval v7.10.0 🍺+ * Do not edit manually.+ * AutoGPT Agent Server+ * This server is used to execute agents that are created by the AutoGPT system.+ * OpenAPI spec version: 0.1+ */++export type TriggeredPresetSetupRequestTriggerConfig = {+ [key: string]: unknown;+};diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/webhook.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/webhook.tsindex 0f48986b6a..c1decc30a1 100644--- a/autogpt_platform/frontend/src/app/api/__generated__/models/webhook.ts+++ b/autogpt_platform/frontend/src/app/api/__generated__/models/webhook.ts@@ -5,13 +5,13 @@* This server is used to execute agents that are created by the AutoGPT system.* OpenAPI spec version: 0.1*/-import type { ProviderName } from "./providerName";import type { WebhookConfig } from "./webhookConfig";export interface Webhook {id?: string;user_id: string;- provider: ProviderName;+ /** Provider name for integrations. Can be any string value, including custom provider names. */+ provider: string;credentials_id: string;webhook_type: string;resource: string;diff --git a/autogpt_platform/frontend/src/app/api/openapi.json b/autogpt_platform/frontend/src/app/api/openapi.jsonindex 5bbf570661..c63413e9ac 100644--- a/autogpt_platform/frontend/src/app/api/openapi.json+++ b/autogpt_platform/frontend/src/app/api/openapi.json@@ -18,8 +18,9 @@"in": "path","required": true,"schema": {- "$ref": "#/components/schemas/ProviderName",- "title": "The provider to initiate an OAuth flow for"+ "type": "string",+ "title": "The provider to initiate an OAuth flow for",+ "description": "Provider name for integrations. Can be any string value, including custom provider names."}},{@@ -64,8 +65,9 @@"in": "path","required": true,"schema": {- "$ref": "#/components/schemas/ProviderName",- "title": "The target provider for this OAuth exchange"+ "type": "string",+ "title": "The target provider for this OAuth exchange",+ "description": "Provider name for integrations. Can be any string value, including custom provider names."}}],@@ -133,8 +135,9 @@"in": "path","required": true,"schema": {- "$ref": "#/components/schemas/ProviderName",- "title": "The provider to list credentials for"+ "type": "string",+ "title": "The provider to list credentials for",+ "description": "Provider name for integrations. Can be any string value, including custom provider names."}}],@@ -173,8 +176,9 @@"in": "path","required": true,"schema": {- "$ref": "#/components/schemas/ProviderName",- "title": "The provider to create credentials for"+ "type": "string",+ "title": "The provider to create credentials for",+ "description": "Provider name for integrations. Can be any string value, including custom provider names."}}],@@ -253,8 +257,9 @@"in": "path","required": true,"schema": {- "$ref": "#/components/schemas/ProviderName",- "title": "The provider to retrieve credentials for"+ "type": "string",+ "title": "The provider to retrieve credentials for",+ "description": "Provider name for integrations. Can be any string value, including custom provider names."}},{@@ -315,8 +320,9 @@"in": "path","required": true,"schema": {- "$ref": "#/components/schemas/ProviderName",- "title": "The provider to delete credentials for"+ "type": "string",+ "title": "The provider to delete credentials for",+ "description": "Provider name for integrations. Can be any string value, including custom provider names."}},{@@ -380,8 +386,9 @@"in": "path","required": true,"schema": {- "$ref": "#/components/schemas/ProviderName",- "title": "Provider where the webhook was registered"+ "type": "string",+ "title": "Provider where the webhook was registered",+ "description": "Provider name for integrations. Can be any string value, including custom provider names."}},{@@ -436,6 +443,86 @@}}},+ "/api/integrations/providers": {+ "get": {+ "tags": ["v1", "integrations"],+ "summary": "List Providers",+ "description": "Get a list of all available provider names.\n\nReturns both statically defined providers (from ProviderName enum)\nand dynamically registered providers (from SDK decorators).\n\nNote: The complete list of provider names is also available as a constant\nin the generated TypeScript client via PROVIDER_NAMES.",+ "operationId": "getV1ListProviders",+ "responses": {+ "200": {+ "description": "Successful Response",+ "content": {+ "application/json": {+ "schema": {+ "items": { "type": "string" },+ "type": "array",+ "title": "Response Getv1Listproviders"+ }+ }+ }+ }+ }+ }+ },+ "/api/integrations/providers/names": {+ "get": {+ "tags": ["v1", "integrations"],+ "summary": "Get Provider Names",+ "description": "Get all provider names in a structured format.\n\nThis endpoint is specifically designed to expose the provider names\nin the OpenAPI schema so that code generators like Orval can create\nappropriate TypeScript constants.",+ "operationId": "getV1GetProviderNames",+ "responses": {+ "200": {+ "description": "Successful Response",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ProviderNamesResponse"+ }+ }+ }+ }+ }+ }+ },+ "/api/integrations/providers/constants": {+ "get": {+ "tags": ["v1", "integrations"],+ "summary": "Get Provider Constants",+ "description": "Get provider names as constants.\n\nThis endpoint returns a model with provider names as constants,\nspecifically designed for OpenAPI code generation tools to create\nTypeScript constants.",+ "operationId": "getV1GetProviderConstants",+ "responses": {+ "200": {+ "description": "Successful Response",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/ProviderConstants" }+ }+ }+ }+ }+ }+ },+ "/api/integrations/providers/enum-example": {+ "get": {+ "tags": ["v1", "integrations"],+ "summary": "Get Provider Enum Example",+ "description": "Example endpoint that uses the CompleteProviderNames enum.\n\nThis endpoint exists to ensure that the CompleteProviderNames enum is included\nin the OpenAPI schema, which will cause Orval to generate it as a\nTypeScript enum/constant.",+ "operationId": "getV1GetProviderEnumExample",+ "responses": {+ "200": {+ "description": "Successful Response",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ProviderEnumResponse"+ }+ }+ }+ }+ }+ }+ },"/api/analytics/log_raw_metric": {"post": {"tags": ["v1", "analytics"],@@ -1018,7 +1105,7 @@"content": {"application/json": {"schema": {- "items": { "$ref": "#/components/schemas/GraphModel" },+ "items": { "$ref": "#/components/schemas/GraphMeta" },"type": "array","title": "Response Getv1List User Graphs"}@@ -1415,49 +1502,6 @@}},"/api/executions": {- "post": {- "tags": ["v1", "graphs"],- "summary": "Stop graph executions",- "operationId": "postV1Stop graph executions",- "parameters": [- {- "name": "graph_id",- "in": "query",- "required": true,- "schema": { "type": "string", "title": "Graph Id" }- },- {- "name": "graph_exec_id",- "in": "query",- "required": true,- "schema": { "type": "string", "title": "Graph Exec Id" }- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "type": "array",- "items": {- "$ref": "#/components/schemas/GraphExecutionMeta"- },- "title": "Response Postv1Stop Graph Executions"- }- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/HTTPValidationError" }- }- }- }- }- },"get": {"tags": ["v1", "graphs"],"summary": "Get all executions",@@ -1468,10 +1512,10 @@"content": {"application/json": {"schema": {- "type": "array","items": {"$ref": "#/components/schemas/GraphExecutionMeta"},+ "type": "array","title": "Response Getv1Get All Executions"}}@@ -3014,6 +3058,42 @@}}},+ "/api/library/presets/setup-trigger": {+ "post": {+ "tags": ["v2", "presets"],+ "summary": "Setup Trigger",+ "description": "Sets up a webhook-triggered `LibraryAgentPreset` for a `LibraryAgent`.\nReturns the correspondingly created `LibraryAgentPreset` with `webhook_id` set.",+ "operationId": "postV2SetupTrigger",+ "requestBody": {+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/TriggeredPresetSetupRequest"+ }+ }+ },+ "required": true+ },+ "responses": {+ "200": {+ "description": "Successful Response",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/LibraryAgentPreset" }+ }+ }+ },+ "422": {+ "description": "Validation Error",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/HTTPValidationError" }+ }+ }+ }+ }+ }+ },"/api/library/presets/{preset_id}/execute": {"post": {"tags": ["v2", "presets", "presets"],@@ -3401,55 +3481,6 @@}}},- "/api/library/agents/{library_agent_id}/setup-trigger": {- "post": {- "tags": ["v2", "library", "private"],- "summary": "Setup Trigger",- "description": "Sets up a webhook-triggered `LibraryAgentPreset` for a `LibraryAgent`.\nReturns the correspondingly created `LibraryAgentPreset` with `webhook_id` set.",- "operationId": "postV2SetupTrigger",- "parameters": [- {- "name": "library_agent_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "description": "ID of the library agent",- "title": "Library Agent Id"- },- "description": "ID of the library agent"- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/TriggeredPresetSetupParams"- }- }- }- },- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/LibraryAgentPreset" }- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/HTTPValidationError" }- }- }- }- }- }- },"/api/otto/ask": {"post": {"tags": ["v2", "otto"],@@ -3837,10 +3868,21 @@"type": "object","title": "Output Schema","readOnly": true+ },+ "has_external_trigger": {+ "type": "boolean",+ "title": "Has External Trigger",+ "readOnly": true}},"type": "object",- "required": ["name", "description", "input_schema", "output_schema"],+ "required": [+ "name",+ "description",+ "input_schema",+ "output_schema",+ "has_external_trigger"+ ],"title": "BaseGraph"},"Body_postV1Callback": {@@ -4101,7 +4143,11 @@"anyOf": [{ "type": "string" }, { "type": "null" }],"title": "Title"},- "provider": { "$ref": "#/components/schemas/ProviderName" },+ "provider": {+ "type": "string",+ "title": "Provider",+ "description": "Provider name for integrations. Can be any string value, including custom provider names."+ },"type": {"type": "string","enum": ["api_key", "oauth2", "user_password", "host_scoped"],@@ -4405,6 +4451,68 @@],"title": "GraphExecutionWithNodes"},+ "GraphMeta": {+ "properties": {+ "id": { "type": "string", "title": "Id" },+ "version": { "type": "integer", "title": "Version", "default": 1 },+ "is_active": {+ "type": "boolean",+ "title": "Is Active",+ "default": true+ },+ "name": { "type": "string", "title": "Name" },+ "description": { "type": "string", "title": "Description" },+ "forked_from_id": {+ "anyOf": [{ "type": "string" }, { "type": "null" }],+ "title": "Forked From Id"+ },+ "forked_from_version": {+ "anyOf": [{ "type": "integer" }, { "type": "null" }],+ "title": "Forked From Version"+ },+ "sub_graphs": {+ "items": { "$ref": "#/components/schemas/BaseGraph-Output" },+ "type": "array",+ "title": "Sub Graphs",+ "default": []+ },+ "user_id": { "type": "string", "title": "User Id" },+ "input_schema": {+ "additionalProperties": true,+ "type": "object",+ "title": "Input Schema",+ "readOnly": true+ },+ "output_schema": {+ "additionalProperties": true,+ "type": "object",+ "title": "Output Schema",+ "readOnly": true+ },+ "has_external_trigger": {+ "type": "boolean",+ "title": "Has External Trigger",+ "readOnly": true+ },+ "credentials_input_schema": {+ "additionalProperties": true,+ "type": "object",+ "title": "Credentials Input Schema",+ "readOnly": true+ }+ },+ "type": "object",+ "required": [+ "name",+ "description",+ "user_id",+ "input_schema",+ "output_schema",+ "has_external_trigger",+ "credentials_input_schema"+ ],+ "title": "GraphMeta"+ },"GraphModel": {"properties": {"id": { "type": "string", "title": "Id" },@@ -4455,16 +4563,16 @@"title": "Output Schema","readOnly": true},+ "has_external_trigger": {+ "type": "boolean",+ "title": "Has External Trigger",+ "readOnly": true+ },"credentials_input_schema": {"additionalProperties": true,"type": "object","title": "Credentials Input Schema","readOnly": true- },- "has_webhook_trigger": {- "type": "boolean",- "title": "Has Webhook Trigger",- "readOnly": true}},"type": "object",@@ -4474,8 +4582,8 @@"user_id","input_schema","output_schema",- "credentials_input_schema",- "has_webhook_trigger"+ "has_external_trigger",+ "credentials_input_schema"],"title": "GraphModel"},@@ -4820,7 +4928,11 @@},"LibraryAgentTriggerInfo": {"properties": {- "provider": { "$ref": "#/components/schemas/ProviderName" },+ "provider": {+ "type": "string",+ "title": "Provider",+ "description": "Provider name for integrations. Can be any string value, including custom provider names."+ },"config_schema": {"additionalProperties": true,"type": "object",@@ -5623,51 +5735,44 @@"required": ["name", "username", "description", "links"],"title": "ProfileDetails"},- "ProviderName": {- "type": "string",- "enum": [- "aiml_api",- "anthropic",- "apollo",- "compass",- "discord",- "d_id",- "e2b",- "exa",- "fal",- "generic_webhook",- "github",- "google",- "google_maps",- "groq",- "http",- "hubspot",- "ideogram",- "jina",- "linear",- "llama_api",- "medium",- "mem0",- "notion",- "nvidia",- "ollama",- "openai",- "openweathermap",- "open_router",- "pinecone",- "reddit",- "replicate",- "revid",- "screenshotone",- "slant3d",- "smartlead",- "smtp",- "twitter",- "todoist",- "unreal_speech",- "zerobounce"- ],- "title": "ProviderName"+ "ProviderConstants": {+ "properties": {+ "PROVIDER_NAMES": {+ "additionalProperties": { "type": "string" },+ "type": "object",+ "title": "Provider Names",+ "description": "All available provider names as a constant mapping"+ }+ },+ "type": "object",+ "title": "ProviderConstants",+ "description": "Model that exposes all provider names as a constant in the OpenAPI schema.\nThis is designed to be converted by Orval into a TypeScript constant."+ },+ "ProviderEnumResponse": {+ "properties": {+ "provider": {+ "type": "string",+ "title": "Provider",+ "description": "A provider name from the complete list of providers"+ }+ },+ "type": "object",+ "required": ["provider"],+ "title": "ProviderEnumResponse",+ "description": "Response containing a provider from the enum."+ },+ "ProviderNamesResponse": {+ "properties": {+ "providers": {+ "items": { "type": "string" },+ "type": "array",+ "title": "Providers",+ "description": "List of all available provider names"+ }+ },+ "type": "object",+ "title": "ProviderNamesResponse",+ "description": "Response containing list of all provider names."},"RefundRequest": {"properties": {@@ -6153,7 +6258,7 @@"required": ["transactions", "next_transaction_time"],"title": "TransactionHistory"},- "TriggeredPresetSetupParams": {+ "TriggeredPresetSetupRequest": {"properties": {"name": { "type": "string", "title": "Name" },"description": {@@ -6161,6 +6266,8 @@"title": "Description","default": ""},+ "graph_id": { "type": "string", "title": "Graph Id" },+ "graph_version": { "type": "integer", "title": "Graph Version" },"trigger_config": {"additionalProperties": true,"type": "object",@@ -6175,8 +6282,8 @@}},"type": "object",- "required": ["name", "trigger_config"],- "title": "TriggeredPresetSetupParams"+ "required": ["name", "graph_id", "graph_version", "trigger_config"],+ "title": "TriggeredPresetSetupRequest"},"TurnstileVerifyRequest": {"properties": {@@ -6441,7 +6548,11 @@"properties": {"id": { "type": "string", "title": "Id" },"user_id": { "type": "string", "title": "User Id" },- "provider": { "$ref": "#/components/schemas/ProviderName" },+ "provider": {+ "type": "string",+ "title": "Provider",+ "description": "Provider name for integrations. Can be any string value, including custom provider names."+ },"credentials_id": { "type": "string", "title": "Credentials Id" },"webhook_type": { "type": "string", "title": "Webhook Type" },"resource": { "type": "string", "title": "Resource" },diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/Navbar.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/Navbar.tsxindex 13471bf194..519dbe37fc 100644--- a/autogpt_platform/frontend/src/components/layout/Navbar/Navbar.tsx+++ b/autogpt_platform/frontend/src/components/layout/Navbar/Navbar.tsx@@ -1,84 +1,8 @@-import { IconAutoGPTLogo, IconType } from "@/components/ui/icons";-import Wallet from "../../agptui/Wallet";-import { AccountMenu } from "./components/AccountMenu/AccountMenu";-import { LoginButton } from "./components/LoginButton";-import { MobileNavBar } from "./components/MobileNavbar/MobileNavBar";-import { NavbarLink } from "./components/NavbarLink";-import { accountMenuItems, loggedInLinks, loggedOutLinks } from "./helpers";+import { NavbarView } from "./components/NavbarMainPage";import { getNavbarAccountData } from "./data";export async function Navbar() {- const { profile, isLoggedIn } = await getNavbarAccountData();+ const { isLoggedIn } = await getNavbarAccountData();- return (- <>- <nav className="sticky top-0 z-40 hidden h-16 items-center rounded-bl-2xl rounded-br-2xl border border-white/50 bg-[#f3f4f6]/20 p-3 backdrop-blur-[26px] md:inline-flex">- {/* Left section */}- <div className="flex flex-1 items-center gap-5">- {isLoggedIn- ? loggedInLinks.map((link) => (- <NavbarLink key={link.name} name={link.name} href={link.href} />- ))- : loggedOutLinks.map((link) => (- <NavbarLink key={link.name} name={link.name} href={link.href} />- ))}- </div>-- {/* Centered logo */}- <div className="absolute left-1/2 top-1/2 h-10 w-[88.87px] -translate-x-1/2 -translate-y-1/2">- <IconAutoGPTLogo className="h-full w-full" />- </div>-- {/* Right section */}- <div className="flex flex-1 items-center justify-end gap-4">- {isLoggedIn ? (- <div className="flex items-center gap-4">- {profile && <Wallet />}- <AccountMenu- userName={profile?.username}- userEmail={profile?.name}- avatarSrc={profile?.avatar_url ?? ""}- menuItemGroups={accountMenuItems}- />- </div>- ) : (- <LoginButton />- )}- {/* <ThemeToggle /> */}- </div>- </nav>- {/* Mobile Navbar - Adjust positioning */}- <>- {isLoggedIn ? (- <div className="fixed right-4 top-4 z-50">- <MobileNavBar- userName={profile?.username}- menuItemGroups={[- {- groupName: "Navigation",- items: loggedInLinks.map((link) => ({- icon:- link.name === "Marketplace"- ? IconType.Marketplace- : link.name === "Library"- ? IconType.Library- : link.name === "Build"- ? IconType.Builder- : link.name === "Monitor"- ? IconType.Library- : IconType.LayoutDashboard,- text: link.name,- href: link.href,- })),- },- ...accountMenuItems,- ]}- userEmail={profile?.name}- avatarSrc={profile?.avatar_url ?? ""}- />- </div>- ) : null}- </>- </>- );+ return <NavbarView isLoggedIn={isLoggedIn} />;}diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarMainPage.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarMainPage.tsxnew file mode 100644index 0000000000..a2cb606ac8--- /dev/null+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarMainPage.tsx@@ -0,0 +1,100 @@+"use client";+import { IconAutoGPTLogo, IconType } from "@/components/ui/icons";+import Wallet from "../../../agptui/Wallet";+import { AccountMenu } from "../components/AccountMenu/AccountMenu";+import { LoginButton } from "../components/LoginButton";+import { MobileNavBar } from "../components/MobileNavbar/MobileNavBar";+import { NavbarLink } from "../components/NavbarLink";+import { accountMenuItems, loggedInLinks, loggedOutLinks } from "../helpers";+import { useGetV2GetUserProfile } from "@/app/api/__generated__/endpoints/store/store";++interface NavbarViewProps {+ isLoggedIn: boolean;+}++export const NavbarView = ({ isLoggedIn }: NavbarViewProps) => {+ const { data: profile } = useGetV2GetUserProfile({+ query: {+ select: (x) => {+ return x.data;+ },+ enabled: isLoggedIn,+ },+ });++ if (!profile) {+ return null;+ }++ return (+ <>+ <nav className="sticky top-0 z-40 hidden h-16 items-center rounded-bl-2xl rounded-br-2xl border border-white/50 bg-[#f3f4f6]/20 p-3 backdrop-blur-[26px] md:inline-flex">+ {/* Left section */}+ <div className="flex flex-1 items-center gap-5">+ {isLoggedIn+ ? loggedInLinks.map((link) => (+ <NavbarLink key={link.name} name={link.name} href={link.href} />+ ))+ : loggedOutLinks.map((link) => (+ <NavbarLink key={link.name} name={link.name} href={link.href} />+ ))}+ </div>++ {/* Centered logo */}+ <div className="absolute left-1/2 top-1/2 h-10 w-[88.87px] -translate-x-1/2 -translate-y-1/2">+ <IconAutoGPTLogo className="h-full w-full" />+ </div>++ {/* Right section */}+ <div className="flex flex-1 items-center justify-end gap-4">+ {isLoggedIn ? (+ <div className="flex items-center gap-4">+ {profile && <Wallet />}+ <AccountMenu+ userName={profile?.username}+ userEmail={profile?.name}+ avatarSrc={profile?.avatar_url ?? ""}+ menuItemGroups={accountMenuItems}+ />+ </div>+ ) : (+ <LoginButton />+ )}+ {/* <ThemeToggle /> */}+ </div>+ </nav>+ {/* Mobile Navbar - Adjust positioning */}+ <>+ {isLoggedIn ? (+ <div className="fixed right-4 top-4 z-50">+ <MobileNavBar+ userName={profile?.username}+ menuItemGroups={[+ {+ groupName: "Navigation",+ items: loggedInLinks.map((link) => ({+ icon:+ link.name === "Marketplace"+ ? IconType.Marketplace+ : link.name === "Library"+ ? IconType.Library+ : link.name === "Build"+ ? IconType.Builder+ : link.name === "Monitor"+ ? IconType.Library+ : IconType.LayoutDashboard,+ text: link.name,+ href: link.href,+ })),+ },+ ...accountMenuItems,+ ]}+ userEmail={profile?.name}+ avatarSrc={profile?.avatar_url ?? ""}+ />+ </div>+ ) : null}+ </>+ </>+ );+};diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/data.ts b/autogpt_platform/frontend/src/components/layout/Navbar/data.tsindex d89ec46e5a..4a04c6b102 100644--- a/autogpt_platform/frontend/src/components/layout/Navbar/data.ts+++ b/autogpt_platform/frontend/src/components/layout/Navbar/data.ts@@ -1,10 +1,11 @@-import BackendAPI from "@/lib/autogpt-server-api";import { getServerUser } from "@/lib/supabase/server/getServerUser";+import { prefetchGetV2GetUserProfileQuery } from "@/app/api/__generated__/endpoints/store/store";+import { getQueryClient } from "@/lib/react-query/queryClient";export async function getNavbarAccountData() {const { user } = await getServerUser();- const api = new BackendAPI();const isLoggedIn = Boolean(user);+ const queryClient = getQueryClient();if (!isLoggedIn) {return {@@ -13,17 +14,13 @@ export async function getNavbarAccountData() {};}- let profile = null;-try {- profile = await api.getStoreProfile();+ await prefetchGetV2GetUserProfileQuery(queryClient);} catch (error) {console.error("Error fetching profile:", error);- profile = null;}return {- profile,isLoggedIn,};}diff --git a/autogpt_platform/frontend/src/lib/react-query/queryClient.ts b/autogpt_platform/frontend/src/lib/react-query/queryClient.tsindex 38bf858d21..836c505c2f 100644--- a/autogpt_platform/frontend/src/lib/react-query/queryClient.ts+++ b/autogpt_platform/frontend/src/lib/react-query/queryClient.ts@@ -1,5 +1,3 @@-"use client";-import { isServer, QueryClient } from "@tanstack/react-query";function makeQueryClient() {