diff --git a/web/src/apis/v1/api-auto.d.ts b/web/src/apis/v1/api-auto.d.ts
index 02d54a2aad..cde12dac64 100644
--- a/web/src/apis/v1/api-auto.d.ts
+++ b/web/src/apis/v1/api-auto.d.ts
@@ -458,11 +458,10 @@ declare namespace Paths {
namespace AppControllerGetRuntimes {
export type QueryParameters = any;
- export type BodyParameters = any;
+ export type BodyParameters = Definitions.CreateFunctionDto;
export type Responses = any;
}
-
namespace FunctionControllerCreate {
export type QueryParameters = any;
diff --git a/web/src/apis/v1/pat2token.ts b/web/src/apis/v1/pat2token.ts
deleted file mode 100644
index de4860efd8..0000000000
--- a/web/src/apis/v1/pat2token.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-// @ts-ignore
-/* eslint-disable */
-///////////////////////////////////////////////////////////////////////
-// //
-// this file is autogenerated by service-generate //
-// do not edit this file manually //
-// //
-///////////////////////////////////////////////////////////////////////
-///
-import request from "@/utils/request";
-import useGlobalStore from "@/pages/globalStore";
-
-/**
- * Get user token by PAT
- */
-export async function AuthControllerPat2token(params: Definitions.Pat2TokenDto): Promise<{
- error: string;
- data: Paths.AuthControllerPat2token.Responses;
-}> {
- // /v1/auth/pat2token
- let _params: { [key: string]: any } = {
- appid: useGlobalStore.getState().currentApp?.appid || "",
- ...params,
- };
- return request(`/v1/auth/pat2token`, {
- method: "POST",
- data: params,
- });
-}
diff --git a/web/src/apis/v1/profile.ts b/web/src/apis/v1/profile.ts
deleted file mode 100644
index 6c86e91f2f..0000000000
--- a/web/src/apis/v1/profile.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-// @ts-ignore
-/* eslint-disable */
-///////////////////////////////////////////////////////////////////////
-// //
-// this file is autogenerated by service-generate //
-// do not edit this file manually //
-// //
-///////////////////////////////////////////////////////////////////////
-///
-import request from "@/utils/request";
-import useGlobalStore from "@/pages/globalStore";
-
-/**
- * Get current user profile
- */
-export async function AuthControllerGetProfile(
- params: Paths.AuthControllerGetProfile.BodyParameters,
-): Promise<{
- error: string;
- data: Definitions.UserWithProfile;
-}> {
- // /v1/auth/profile
- let _params: { [key: string]: any } = {
- appid: useGlobalStore.getState().currentApp?.appid || "",
- ...params,
- };
- return request(`/v1/auth/profile`, {
- method: "GET",
- params: params,
- });
-}