chore: format all frontend files (#430)

This commit is contained in:
tecvan
2025-07-31 23:15:48 +08:00
committed by GitHub
parent 8b078ff013
commit 6995cec404
8787 changed files with 11975 additions and 10924 deletions

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createAPI as apiFactory } from '@coze-arch/idl2ts-runtime';
import { type IMeta } from '@coze-arch/idl2ts-runtime';
import { axiosInstance } from '@coze-arch/bot-http';

View File

@@ -15,32 +15,32 @@
*/
export interface TrafficEnv {
Open: boolean,
Env: string,
Open: boolean;
Env: string;
}
export interface Base {
LogID: string,
Caller: string,
Addr: string,
Client: string,
TrafficEnv?: TrafficEnv,
LogID: string;
Caller: string;
Addr: string;
Client: string;
TrafficEnv?: TrafficEnv;
Extra?: {
[key: string | number]: string
},
[key: string | number]: string;
};
}
export interface BaseResp {
StatusMessage: string,
StatusCode: number,
StatusMessage: string;
StatusCode: number;
Extra?: {
[key: string | number]: string
},
[key: string | number]: string;
};
}
export interface EmptyReq {}
export interface EmptyData {}
export interface EmptyResp {
code: number,
msg: string,
data: EmptyData,
code: number;
msg: string;
data: EmptyData;
}
export interface EmptyRpcReq {}
export interface EmptyRpcResp {}
export interface EmptyRpcResp {}

View File

@@ -74,7 +74,7 @@ export enum ProductPaidType {
Paid = 1,
}
export interface CommercialSetting {
commercial_type: ProductPaidType
commercial_type: ProductPaidType;
}
export enum ProductStatus {
/** 从未上架 */
@@ -84,23 +84,23 @@ export enum ProductStatus {
Banned = 3,
}
export interface UserLabel {
label_id: string,
label_name: string,
icon_uri: string,
icon_url: string,
jump_link: string,
label_id: string;
label_name: string;
icon_uri: string;
icon_url: string;
jump_link: string;
}
export interface UserInfo {
user_id: string,
user_name: string,
name: string,
avatar_url: string,
user_label?: UserLabel,
follow_type?: marketplace_common.FollowType,
user_id: string;
user_name: string;
name: string;
avatar_url: string;
user_label?: UserLabel;
follow_type?: marketplace_common.FollowType;
}
export interface ImageInfo {
uri: string,
url: string,
uri: string;
url: string;
}
export enum ProductDraftStatus {
/** 默认 */
@@ -117,7 +117,7 @@ export enum ProductDraftStatus {
export type AuditStatus = ProductDraftStatus;
export interface OpeningDialog {
/** Bot开场白 */
content: string
content: string;
}
export enum InputType {
String = 1,
@@ -163,51 +163,51 @@ export enum UIPreviewType {
/**
* UI 预览类型,定义对齐 UI Builder目前用于 Project
* 网页端
*/
*/
Web = 1,
/** 移动端 */
Client = 2,
}
export interface ChargeSKUExtra {
quantity: string,
is_self_define: boolean,
quantity: string;
is_self_define: boolean;
}
export enum FavoriteListSource {
/** 用户自己创建的 */
CreatedByMe = 1,
}
export interface FavoriteEntity {
entity_id: string,
entity_type: ProductEntityType,
name: string,
icon_url: string,
description: string,
entity_id: string;
entity_type: ProductEntityType;
name: string;
icon_url: string;
description: string;
/** 废弃使用UserInfo */
seller: SellerInfo,
seller: SellerInfo;
/** 用于跳转到Bot编辑页 */
space_id: string,
space_id: string;
/** 用户是否有该实体所在Space的权限 */
has_space_permission: boolean,
has_space_permission: boolean;
/** 收藏时间 */
favorite_at: string,
product_extra?: FavoriteProductExtra,
user_info: UserInfo,
plugin_extra?: FavoritePluginExtra,
favorite_at: string;
product_extra?: FavoriteProductExtra;
user_info: UserInfo;
plugin_extra?: FavoritePluginExtra;
}
export interface SellerInfo {
user_id: string,
user_name: string,
avatar_url: string,
user_id: string;
user_name: string;
avatar_url: string;
}
export interface FavoriteProductExtra {
product_id: string,
product_status: ProductStatus,
product_id: string;
product_status: ProductStatus;
}
export interface FavoritePluginExtra {
tools: PluginTool[]
tools: PluginTool[];
}
export interface PluginTool {
id: string,
name: string,
description: string,
}
id: string;
name: string;
description: string;
}

View File

@@ -18,11 +18,11 @@ import * as base from './../../base';
export { base };
export interface Price {
/** 金额 */
amount: string,
amount: string;
/** 币种如USD、CNY */
currency: string,
currency: string;
/** 小数位数 */
decimal_num: number,
decimal_num: number;
}
export enum FollowType {
/** 无关系 */
@@ -33,4 +33,4 @@ export enum FollowType {
Follower = 2,
/** 互相关注 */
MutualFollow = 3,
}
}

View File

@@ -16,165 +16,186 @@
import { createAPI } from './../../api/config';
export interface AppUserInfo {
user_unique_name: string
user_unique_name: string;
}
export interface User {
/** 与原接口字段名对齐 */
user_id_str: string,
name: string,
user_unique_name: string,
email: string,
description: string,
avatar_url: string,
screen_name?: string,
app_user_info?: AppUserInfo,
locale?: string,
user_id_str: string;
name: string;
user_unique_name: string;
email: string;
description: string;
avatar_url: string;
screen_name?: string;
app_user_info?: AppUserInfo;
locale?: string;
/** unix timestamp in seconds */
user_create_time: number,
user_create_time: number;
}
export interface PassportWebEmailRegisterV2PostRequest {
password: string,
email: string,
password: string;
email: string;
}
export interface PassportWebEmailRegisterV2PostResponse {
data: User,
code: number,
msg: string,
data: User;
code: number;
msg: string;
}
export interface PassportWebLogoutGetRequest {}
export interface PassportWebLogoutGetResponse {
redirect_url: string,
code: number,
msg: string,
redirect_url: string;
code: number;
msg: string;
}
export interface PassportWebEmailLoginPostRequest {
email: string,
password: string,
email: string;
password: string;
}
export interface PassportWebEmailLoginPostResponse {
data: User,
code: number,
msg: string,
data: User;
code: number;
msg: string;
}
export interface PassportWebEmailPasswordResetGetRequest {
password: string,
code: string,
email: string,
password: string;
code: string;
email: string;
}
export interface PassportWebEmailPasswordResetGetResponse {
code: number,
msg: string,
code: number;
msg: string;
}
export interface PassportAccountInfoV2Request {}
export interface PassportAccountInfoV2Response {
data: User,
code: number,
msg: string,
data: User;
code: number;
msg: string;
}
export interface UserUpdateAvatarRequest {
avatar: Blob
avatar: Blob;
}
export interface UserUpdateAvatarResponseData {
web_uri: string
web_uri: string;
}
export interface UserUpdateAvatarResponse {
data: UserUpdateAvatarResponseData,
code: number,
msg: string,
data: UserUpdateAvatarResponseData;
code: number;
msg: string;
}
export interface UserUpdateProfileRequest {
name?: string,
user_unique_name?: string,
description?: string,
locale?: string,
name?: string;
user_unique_name?: string;
description?: string;
locale?: string;
}
export interface UserUpdateProfileResponse {
code: number,
msg: string,
code: number;
msg: string;
}
/** 邮箱密码注册 */
export const PassportWebEmailRegisterV2Post = /*#__PURE__*/createAPI<PassportWebEmailRegisterV2PostRequest, PassportWebEmailRegisterV2PostResponse>({
"url": "/api/passport/web/email/register/v2/",
"method": "POST",
"name": "PassportWebEmailRegisterV2Post",
"reqType": "PassportWebEmailRegisterV2PostRequest",
"reqMapping": {
"body": ["password", "email"]
export const PassportWebEmailRegisterV2Post = /*#__PURE__*/ createAPI<
PassportWebEmailRegisterV2PostRequest,
PassportWebEmailRegisterV2PostResponse
>({
url: '/api/passport/web/email/register/v2/',
method: 'POST',
name: 'PassportWebEmailRegisterV2Post',
reqType: 'PassportWebEmailRegisterV2PostRequest',
reqMapping: {
body: ['password', 'email'],
},
"resType": "PassportWebEmailRegisterV2PostResponse",
"schemaRoot": "api://schemas/idl_passport_passport",
"service": "passport"
resType: 'PassportWebEmailRegisterV2PostResponse',
schemaRoot: 'api://schemas/idl_passport_passport',
service: 'passport',
});
/** 退出登录 */
export const PassportWebLogoutGet = /*#__PURE__*/createAPI<PassportWebLogoutGetRequest, PassportWebLogoutGetResponse>({
"url": "/api/passport/web/logout/",
"method": "GET",
"name": "PassportWebLogoutGet",
"reqType": "PassportWebLogoutGetRequest",
"reqMapping": {},
"resType": "PassportWebLogoutGetResponse",
"schemaRoot": "api://schemas/idl_passport_passport",
"service": "passport"
export const PassportWebLogoutGet = /*#__PURE__*/ createAPI<
PassportWebLogoutGetRequest,
PassportWebLogoutGetResponse
>({
url: '/api/passport/web/logout/',
method: 'GET',
name: 'PassportWebLogoutGet',
reqType: 'PassportWebLogoutGetRequest',
reqMapping: {},
resType: 'PassportWebLogoutGetResponse',
schemaRoot: 'api://schemas/idl_passport_passport',
service: 'passport',
});
/** 邮箱帐密登录 */
export const PassportWebEmailLoginPost = /*#__PURE__*/createAPI<PassportWebEmailLoginPostRequest, PassportWebEmailLoginPostResponse>({
"url": "/api/passport/web/email/login/",
"method": "POST",
"name": "PassportWebEmailLoginPost",
"reqType": "PassportWebEmailLoginPostRequest",
"reqMapping": {
"body": ["email", "password"]
export const PassportWebEmailLoginPost = /*#__PURE__*/ createAPI<
PassportWebEmailLoginPostRequest,
PassportWebEmailLoginPostResponse
>({
url: '/api/passport/web/email/login/',
method: 'POST',
name: 'PassportWebEmailLoginPost',
reqType: 'PassportWebEmailLoginPostRequest',
reqMapping: {
body: ['email', 'password'],
},
"resType": "PassportWebEmailLoginPostResponse",
"schemaRoot": "api://schemas/idl_passport_passport",
"service": "passport"
resType: 'PassportWebEmailLoginPostResponse',
schemaRoot: 'api://schemas/idl_passport_passport',
service: 'passport',
});
/** 通过邮箱重置密码 */
export const PassportWebEmailPasswordResetGet = /*#__PURE__*/createAPI<PassportWebEmailPasswordResetGetRequest, PassportWebEmailPasswordResetGetResponse>({
"url": "/api/passport/web/email/password/reset/",
"method": "GET",
"name": "PassportWebEmailPasswordResetGet",
"reqType": "PassportWebEmailPasswordResetGetRequest",
"reqMapping": {
"query": ["password", "code", "email"]
export const PassportWebEmailPasswordResetGet = /*#__PURE__*/ createAPI<
PassportWebEmailPasswordResetGetRequest,
PassportWebEmailPasswordResetGetResponse
>({
url: '/api/passport/web/email/password/reset/',
method: 'GET',
name: 'PassportWebEmailPasswordResetGet',
reqType: 'PassportWebEmailPasswordResetGetRequest',
reqMapping: {
query: ['password', 'code', 'email'],
},
"resType": "PassportWebEmailPasswordResetGetResponse",
"schemaRoot": "api://schemas/idl_passport_passport",
"service": "passport"
resType: 'PassportWebEmailPasswordResetGetResponse',
schemaRoot: 'api://schemas/idl_passport_passport',
service: 'passport',
});
/** 账号信息 */
export const PassportAccountInfoV2 = /*#__PURE__*/createAPI<PassportAccountInfoV2Request, PassportAccountInfoV2Response>({
"url": "/api/passport/account/info/v2/",
"method": "POST",
"name": "PassportAccountInfoV2",
"reqType": "PassportAccountInfoV2Request",
"reqMapping": {},
"resType": "PassportAccountInfoV2Response",
"schemaRoot": "api://schemas/idl_passport_passport",
"service": "passport"
export const PassportAccountInfoV2 = /*#__PURE__*/ createAPI<
PassportAccountInfoV2Request,
PassportAccountInfoV2Response
>({
url: '/api/passport/account/info/v2/',
method: 'POST',
name: 'PassportAccountInfoV2',
reqType: 'PassportAccountInfoV2Request',
reqMapping: {},
resType: 'PassportAccountInfoV2Response',
schemaRoot: 'api://schemas/idl_passport_passport',
service: 'passport',
});
export const UserUpdateAvatar = /*#__PURE__*/createAPI<UserUpdateAvatarRequest, UserUpdateAvatarResponse>({
"url": "/api/web/user/update/upload_avatar/",
"method": "POST",
"name": "UserUpdateAvatar",
"reqType": "UserUpdateAvatarRequest",
"reqMapping": {
"body": ["avatar"]
export const UserUpdateAvatar = /*#__PURE__*/ createAPI<
UserUpdateAvatarRequest,
UserUpdateAvatarResponse
>({
url: '/api/web/user/update/upload_avatar/',
method: 'POST',
name: 'UserUpdateAvatar',
reqType: 'UserUpdateAvatarRequest',
reqMapping: {
body: ['avatar'],
},
"resType": "UserUpdateAvatarResponse",
"schemaRoot": "api://schemas/idl_passport_passport",
"service": "passport",
"serializer": "form"
resType: 'UserUpdateAvatarResponse',
schemaRoot: 'api://schemas/idl_passport_passport',
service: 'passport',
serializer: 'form',
});
export const UserUpdateProfile = /*#__PURE__*/createAPI<UserUpdateProfileRequest, UserUpdateProfileResponse>({
"url": "/api/user/update_profile",
"method": "POST",
"name": "UserUpdateProfile",
"reqType": "UserUpdateProfileRequest",
"reqMapping": {
"body": ["name", "user_unique_name", "description", "locale"]
export const UserUpdateProfile = /*#__PURE__*/ createAPI<
UserUpdateProfileRequest,
UserUpdateProfileResponse
>({
url: '/api/user/update_profile',
method: 'POST',
name: 'UserUpdateProfile',
reqType: 'UserUpdateProfileRequest',
reqMapping: {
body: ['name', 'user_unique_name', 'description', 'locale'],
},
"resType": "UserUpdateProfileResponse",
"schemaRoot": "api://schemas/idl_passport_passport",
"service": "passport"
});
resType: 'UserUpdateProfileResponse',
schemaRoot: 'api://schemas/idl_passport_passport',
service: 'passport',
});

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineConfig } from '@coze-arch/vitest-config';
export default defineConfig({

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { vi, describe, it, expect, beforeAll, beforeEach } from 'vitest';
import { Toast } from '@coze-arch/bot-semi';
import { axiosInstance, isApiError, ApiError } from '@coze-arch/bot-http';
@@ -42,16 +42,14 @@ vi.mock('@coze-arch/bot-http', () => {
},
},
isApiError: vi.fn(),
ApiError: vi.fn().mockImplementation(function (
this: any,
code: string,
msg: string,
) {
this.code = code;
this.msg = msg;
this.config = {};
this.name = 'ApiError';
}),
ApiError: vi
.fn()
.mockImplementation(function (this: any, code: string, msg: string) {
this.code = code;
this.msg = msg;
this.config = {};
this.name = 'ApiError';
}),
};
});

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import AppBuilderApiService from './idl/app_builder';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Toast } from '@coze-arch/bot-semi';
import {
axiosInstance,

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import BasicApiService from '@coze-arch/idl/basic_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import BenefitApiService from './idl/benefit';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import CardApiService from './idl/card';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import queryString from 'query-string';
import ConnectorApiService from './idl/connector_api';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import CozeSpaceApiService from '@coze-arch/idl/stone_coze_space';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import DebuggerApiService from './idl/debugger_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import DeveloperApiService from './idl/developer_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import DeveloperBackendApiService from './idl/developer_backend';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import DevopsEvaluationService from './idl/devops_evaluation';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import DpManageService from './idl/dp_manage';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import EvaluationLiteService from './idl/evaluation_lite';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import FileboxService from './idl/filebox';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import FornaxApiService from '@coze-arch/idl/fornax_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import EvaluationApiService from '@coze-arch/idl/evaluation_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import FornaxMlFlowService from '@coze-arch/idl/fornax_ml_flow';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import FornaxObApiService from '@coze-arch/idl/fornax_ob_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import FornaxPromptService from '@coze-arch/idl/prompt_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import FulfillApiService from './idl/fulfill';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import HubApiService from './idl/hub_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/app_builder';
export { default as default } from '@coze-arch/idl/app_builder';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/basic_api';
export { default as default } from '@coze-arch/idl/basic_api';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/benefit';
export { default as default } from '@coze-arch/idl/benefit';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/card';
export { default as default } from '@coze-arch/idl/card';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/connector_api';
export { default as default } from '@coze-arch/idl/connector_api';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/debugger_api';
export { default as default } from '@coze-arch/idl/debugger_api';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/developer_api';
export { default as default } from '@coze-arch/idl/developer_api';
export { SuggestReplyMode } from '@coze-arch/idl';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/developer_backend';
export { default as default } from '@coze-arch/idl/developer_backend';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/devops_evaluation';
export { default as default } from '@coze-arch/idl/devops_evaluation';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/dp_manage';
export { default as default } from '@coze-arch/idl/dp_manage';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/evaluation_lite';
export { default as default } from '@coze-arch/idl/evaluation_lite';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/filebox';
export { default as default } from '@coze-arch/idl/filebox';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/fornax_api';
export { default as default } from '@coze-arch/idl/fornax_api';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/fulfill';
export { default as default } from '@coze-arch/idl/fulfill';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/hub_api';
export { default as default } from '@coze-arch/idl/hub_api';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/incentive';
export { default as default } from '@coze-arch/idl/incentive';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/intelligence_api';
export { default as default } from '@coze-arch/idl/intelligence_api';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/knowledge';
export { default as default } from '@coze-arch/idl/knowledge';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/market_interaction_api';
export { default as default } from '@coze-arch/idl/market_interaction_api';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/memory';
export { default as default } from '@coze-arch/idl/memory';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/multimedia_api';
export { default as default } from '@coze-arch/idl/multimedia_api';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/notify_api';
export { default as default } from '@coze-arch/idl/notify_api';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/ob_data';
export { default as default } from '@coze-arch/idl/ob_data';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/ob_query_api';
export { default as default } from '@coze-arch/idl/ob_query_api';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/pat_permission_api';
export { default as default } from '@coze-arch/idl/pat_permission_api';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/permission_authz';
export { default as default } from '@coze-arch/idl/permission_authz';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/permission_oauth2';
export { default as default } from '@coze-arch/idl/permission_oauth2';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/playground_api';
export { default as default } from '@coze-arch/idl/playground_api';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/plugin_develop';
export { default as default } from '@coze-arch/idl/plugin_develop';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/plugin_impl_api';
export { default as default } from '@coze-arch/idl/plugin_impl_api';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/product_api';
export { default as default } from '@coze-arch/idl/product_api';
import { type public_api } from '@coze-arch/idl/product_api';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/resource';
export { default as default } from '@coze-arch/idl/resource';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/social_api';
export { default as default } from '@coze-arch/idl/social_api';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/trade';
export { default as default } from '@coze-arch/idl/trade';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/ui_builder';
export { default as default } from '@coze-arch/idl/ui_builder';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/workflow_api';
export { default as default } from '@coze-arch/idl/workflow_api';

View File

@@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from '@coze-arch/idl/xmemory_api';
export { default as default } from '@coze-arch/idl/xmemory_api';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import IncentiveService from './idl/incentive';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { default as DeveloperApiService } from './idl/developer_api';
export { default as PlaygroundApiService } from './idl/playground_api';
export { default as KnowledgeService } from './idl/knowledge';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import IntelligenceApiService from './idl/intelligence_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import KnowledgeService from './idl/knowledge';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import MarketInteractionApiService from './idl/market_interaction_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import MemoryService from './idl/memory';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import MultimediaService from './idl/multimedia_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import NotifyApiService from './idl/notify_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import ObDataService from './idl/ob_data';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import ObQueryApiService from './idl/ob_query_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import PATPermissionService from './idl/pat_permission_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import PermissionAuthzService from './idl/permission_authz';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import PermissionOAuth2Service from './idl/permission_oauth2';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import PlaygroundApiService from './idl/playground_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import PluginDevelopApiService from './idl/plugin_develop';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import qs from 'query-string';
import ProductApiService from './idl/product_api';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import ResourceService from './idl/resource';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import SocialApiService from './idl/social_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import StoneFornaxEvaluationService from '@coze-arch/idl/stone_fornax_evaluation';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import TradeApiService from './idl/trade';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import UiBuilderApiService from './idl/ui-builder';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import WorkflowApiService from './idl/workflow_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import XmemoryApiService from './idl/xmemory_api';
import { axiosInstance, type BotAPIRequestConfig } from './axios';

View File

@@ -82,7 +82,10 @@ const updateDTS = ({
*/
/* eslint-disable */
/* prettier-ignore */
// Automatically generated based on ${path.relative(baseDir, inputFileName)}, do not modify manually `,
// Automatically generated based on ${path.relative(
baseDir,
inputFileName,
)}, do not modify manually `,
{
overwrite: true,
},

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { build } from './build';
build();

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { getCurrentBranch } from './utils/current-branch';
const processEnvs = {

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { extractEnvValue } from '../utils/config-helper';
const VOLCANO_PLATFORM_ID = extractEnvValue<number | null>({

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { base } from './base';
const { IS_RELEASE_VERSION, IS_OVERSEA, IS_BOE } = base;
export const features = {
@@ -68,7 +68,7 @@ export const features = {
/**
* Add UG clue return parameters to the data reported by Tea, which is only required for cn release.
*
*
*/
FEATURE_ENABLE_TEA_UG: IS_RELEASE_VERSION && !IS_OVERSEA,
};

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { features } from './features';
import { configs } from './configs';
import { base } from './base';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
class Env {
get isPPE() {
return IS_PROD;

View File

@@ -15,7 +15,7 @@
*/
/* eslint-disable */
/* prettier-ignore */
// Automatically generated based on src/index.ts, do not modify manually
// Automatically generated based on src/index.ts, do not modify manually
declare const APP_ID: number;
declare const APP_KEY: string;
declare const AWEME_ORIGIN: string;
@@ -24,7 +24,15 @@ declare const AWEME_PLATFORM_ID: number;
declare const BOT_BRAND_NAME: string;
declare const BUILD_BRANCH: string;
declare const BUILD_TYPE: 'local' | 'online' | 'offline' | 'test';
declare const BYTE_UPLOADER_REGION: 'cn-north-1' | 'us-east-1' | 'ap-singapore-1' | 'us-east-red' | 'boe' | 'boei18n' | 'US-TTP' | 'gcp';
declare const BYTE_UPLOADER_REGION:
| 'cn-north-1'
| 'us-east-1'
| 'ap-singapore-1'
| 'us-east-red'
| 'boe'
| 'boei18n'
| 'US-TTP'
| 'gcp';
declare const CARD_BUILDER_ENV_STR: string;
declare const CDN: string | undefined;
declare const CDN_PATH_PREFIX: string;
@@ -108,4 +116,3 @@ declare const VOLCANO_PLATFORM_APP_KEY: string | null;
declare const VOLCANO_PLATFORM_ID: number | null;
declare const VOLC_PRIVATE_POLICY: string;
declare const VOLC_TERMS_OF_SERVICE: string;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable */
/* tslint:disable */
// @ts-nocheck

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { execSync } from 'child_process';
/**

View File

@@ -13,5 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { build } from '@coze-studio/bot-env-adapter/build';

Some files were not shown because too many files have changed in this diff Show More