chore: migrate fe 250722
This commit is contained in:
@@ -20,8 +20,6 @@
|
||||
// @ts-nocheck
|
||||
|
||||
import * as account from './namespaces/account';
|
||||
import * as benefit from './namespaces/benefit';
|
||||
import * as benefit_conf from './namespaces/benefit_conf';
|
||||
import * as bill from './namespaces/bill';
|
||||
import * as common from './namespaces/common';
|
||||
import * as fulfill from './namespaces/fulfill';
|
||||
@@ -36,8 +34,6 @@ import * as subscription from './namespaces/subscription';
|
||||
|
||||
export {
|
||||
account,
|
||||
benefit,
|
||||
benefit_conf,
|
||||
bill,
|
||||
common,
|
||||
fulfill,
|
||||
@@ -51,8 +47,6 @@ export {
|
||||
subscription,
|
||||
};
|
||||
export * from './namespaces/account';
|
||||
export * from './namespaces/benefit';
|
||||
export * from './namespaces/benefit_conf';
|
||||
export * from './namespaces/bill';
|
||||
export * from './namespaces/common';
|
||||
export * from './namespaces/fulfill';
|
||||
@@ -67,6 +61,8 @@ export * from './namespaces/subscription';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
export default class TradeOperationService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('TradeOperationService.request is undefined');
|
||||
@@ -448,7 +444,7 @@ export default class TradeOperationService<T> {
|
||||
/**
|
||||
* GET /api/marketplace/trade/credit_bill
|
||||
*
|
||||
* 获取用户账单
|
||||
* *********************** 权益 *************************
|
||||
*/
|
||||
PublicGetCreditBill(
|
||||
req: bill.GetCreditBillRequest,
|
||||
@@ -746,112 +742,5 @@ export default class TradeOperationService<T> {
|
||||
};
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/space_benefit
|
||||
*
|
||||
* 获取空间权益
|
||||
*/
|
||||
PublicGetSpaceBenefit(
|
||||
req: subscription.PublicGetSpaceBenefitRequest,
|
||||
options?: T,
|
||||
): Promise<subscription.PublicGetSpaceBenefitResponse> {
|
||||
const _req = req;
|
||||
const url = this.genBaseURL('/api/marketplace/trade/space_benefit');
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
SpaceID: _req['SpaceID'],
|
||||
benefit_types: _req['benefit_types'],
|
||||
};
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/benefit/user/extra/create
|
||||
*
|
||||
* 扩展包-添加
|
||||
*/
|
||||
PublicCreateUserExtraBenefit(
|
||||
req?: benefit.PublicCreateUserExtraBenefitRequest,
|
||||
options?: T,
|
||||
): Promise<benefit.PublicCreateUserExtraBenefitResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL(
|
||||
'/api/marketplace/trade/benefit/user/extra/create',
|
||||
);
|
||||
const method = 'POST';
|
||||
const data = {
|
||||
extra_benefit: _req['extra_benefit'],
|
||||
enterprise_id: _req['enterprise_id'],
|
||||
};
|
||||
return this.request({ url, method, data }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/benefit/user/list
|
||||
*
|
||||
* 扩容管理
|
||||
*/
|
||||
PublicGetUserBenefit(
|
||||
req?: benefit.PublicGetUserBenefitRequest,
|
||||
options?: T,
|
||||
): Promise<benefit.PublicGetUserBenefitResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/benefit/user/list');
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
benefit_types: _req['benefit_types'],
|
||||
with_extra_only: _req['with_extra_only'],
|
||||
resource_id: _req['resource_id'],
|
||||
enterprise_id: _req['enterprise_id'],
|
||||
account_type: _req['account_type'],
|
||||
};
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/benefit/user/extra/disable
|
||||
*
|
||||
* 扩展包-取消
|
||||
*/
|
||||
PublicDisableUserExtraBenefit(
|
||||
req?: benefit.PublicDisableUserExtraBenefitRequest,
|
||||
options?: T,
|
||||
): Promise<benefit.PublicDisableUserExtraBenefitResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL(
|
||||
'/api/marketplace/trade/benefit/user/extra/disable',
|
||||
);
|
||||
const method = 'POST';
|
||||
const data = {
|
||||
benefit_id: _req['benefit_id'],
|
||||
enterprise_id: _req['enterprise_id'],
|
||||
};
|
||||
return this.request({ url, method, data }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/benefit_conf/common_set
|
||||
*
|
||||
* 通用配置设定(当前支持安心用)
|
||||
*/
|
||||
PublicCommSetConfBenefit(
|
||||
req?: benefit_conf.PublicCommSetConfBenefitRequest,
|
||||
options?: T,
|
||||
): Promise<benefit_conf.PublicCommSetConfBenefitResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL(
|
||||
'/api/marketplace/trade/benefit_conf/common_set',
|
||||
);
|
||||
const method = 'POST';
|
||||
const data = { counter: _req['counter'] };
|
||||
const params = {
|
||||
benefit_type: _req['benefit_type'],
|
||||
coze_account_id: _req['coze_account_id'],
|
||||
coze_account_type: _req['coze_account_type'],
|
||||
enterprise_id: _req['enterprise_id'],
|
||||
};
|
||||
return this.request({ url, method, data, params }, options);
|
||||
}
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
||||
@@ -79,9 +79,7 @@ export interface BillItem {
|
||||
model_consume_detail?: Array<BillConsumeDetail>;
|
||||
/** 废弃 */
|
||||
plugin_consume_detail?: Array<BillConsumeDetail>;
|
||||
entity_consume_detail?: Partial<
|
||||
Record<BillItemType, Array<BillConsumeDetail>>
|
||||
>;
|
||||
entity_consume_detail?: Record<BillItemType, Array<BillConsumeDetail>>;
|
||||
bill_item_id?: string;
|
||||
change_amount_str?: string;
|
||||
icon_url?: string;
|
||||
|
||||
@@ -40,13 +40,8 @@ export enum AmountType {
|
||||
ChargeAmount = 1,
|
||||
}
|
||||
|
||||
/** 权益类型。同 benefit_common.thrift 对齐。此处用于业务层使用。 */
|
||||
export enum BenefitType {
|
||||
/** 海外 */
|
||||
SubsMessageCredit = 1,
|
||||
UserFreeChat = 2,
|
||||
TopUpMessageCredit = 3,
|
||||
BonusMessageCredit = 4,
|
||||
/** 40 -59 免费次数 */
|
||||
Freetimes = 40,
|
||||
/** 评测免费次数 */
|
||||
@@ -72,21 +67,6 @@ export enum BenefitType {
|
||||
RateLimitModelInputTPMBasic = 63,
|
||||
/** 基础模型 Output TPM 限流 */
|
||||
RateLimitModelOutputTPMBasic = 64,
|
||||
/** Plugin 运行 QPS 限流 */
|
||||
PluginRunQPS = 65,
|
||||
/** Plugin 运行并发度限流 */
|
||||
PluginRunParallel = 66,
|
||||
/** 图像节点
|
||||
Workflow 运行 QPS 限流 */
|
||||
WorkflowRunQPS = 67,
|
||||
/** Workflow 运行并发度限流 */
|
||||
WorkflowRunParallel = 68,
|
||||
/** API 运行 QPS 限流 */
|
||||
APIRunQPS = 70,
|
||||
/** 语音 QPS 限流 */
|
||||
VoiceQPS = 71,
|
||||
/** 语音并发度限流 */
|
||||
VoiceParallel = 72,
|
||||
/** 100-109 资源点
|
||||
资源点总量 */
|
||||
ResourcePoint = 100,
|
||||
@@ -96,10 +76,6 @@ Workflow 运行 QPS 限流 */
|
||||
VolcProResourcePoint = 102,
|
||||
/** 周期性资源点 */
|
||||
PeriodicResourcePoint = 103,
|
||||
/** 渠道递减资源点 */
|
||||
ChannelResourcePoint = 104,
|
||||
/** 试算资源点 */
|
||||
CutAndTryResourcePoint = 109,
|
||||
/** 110-129 Fornax
|
||||
Trace 用量 */
|
||||
TraceAmount = 111,
|
||||
@@ -132,11 +108,6 @@ Space 总量 */
|
||||
SeatNumberLimit = 200,
|
||||
/** 基础席位数 */
|
||||
SeatNumberBasic = 201,
|
||||
/** 移除水印 */
|
||||
RemoveWatermark = 220,
|
||||
/** 240-269 配置
|
||||
安心用 */
|
||||
ConfidenceUsing = 240,
|
||||
}
|
||||
|
||||
export enum BenefitUseMode {
|
||||
@@ -376,16 +347,6 @@ export enum Scene {
|
||||
VoiceCloneStorage = 101,
|
||||
}
|
||||
|
||||
export enum SubscriptionRenewalType {
|
||||
Unknown = 0,
|
||||
/** 手动续费 */
|
||||
ManualRenewal = 1,
|
||||
/** 自动续费 */
|
||||
AutoRenewal = 2,
|
||||
/** 到期不续费续费 */
|
||||
DontRenewal = 3,
|
||||
}
|
||||
|
||||
export enum SubscriptionStatus {
|
||||
/** 初始化 */
|
||||
Init = 0,
|
||||
@@ -456,13 +417,6 @@ export enum VolcanoUserType {
|
||||
BasicUser = 2,
|
||||
}
|
||||
|
||||
export enum VolcInstanceType {
|
||||
/** 正常版本 */
|
||||
Normal = 1,
|
||||
/** 渠道版本 */
|
||||
Channel = 2,
|
||||
}
|
||||
|
||||
export interface ChannelInfo {
|
||||
/** 渠道ID */
|
||||
channel_id: string;
|
||||
|
||||
@@ -187,11 +187,6 @@ export enum ProductUnlistType {
|
||||
ByUser = 2,
|
||||
}
|
||||
|
||||
export enum ResourceType {
|
||||
/** 项目商品/模板用到的资源 */
|
||||
Plugin = 1,
|
||||
}
|
||||
|
||||
export enum SocialSceneRoleType {
|
||||
Host = 1,
|
||||
PresetBot = 2,
|
||||
|
||||
@@ -205,18 +205,6 @@ export interface PublicCreateSubscriptionResponse {
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface PublicGetSpaceBenefitRequest {
|
||||
SpaceID: Int64;
|
||||
/** 不传仅返回 Space Owner 信息 */
|
||||
benefit_types?: Array<common.BenefitType>;
|
||||
}
|
||||
|
||||
export interface PublicGetSpaceBenefitResponse {
|
||||
data?: SpaceBenefit;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface PublicGetSubscriptionDetailRequest {
|
||||
subscribe_type?: common.SubscriptionType;
|
||||
}
|
||||
@@ -376,14 +364,6 @@ export interface RightValue {
|
||||
unit?: string;
|
||||
}
|
||||
|
||||
export interface SpaceBenefit {
|
||||
/** 用户基本信息 */
|
||||
user_basic_info?: UserBasicInfo;
|
||||
benefit_type_infos?: Partial<
|
||||
Record<common.BenefitType, common.CommonCounter>
|
||||
>;
|
||||
}
|
||||
|
||||
export interface SubscriptionBenefitDetail {
|
||||
name?: string;
|
||||
benefit_type?: common.BenefitType;
|
||||
@@ -413,12 +393,8 @@ export interface SubscriptionDetail {
|
||||
export interface SubscriptionDetailV2 {
|
||||
/** 用户基本信息 */
|
||||
user_basic_info?: UserBasicInfo;
|
||||
benefit_type_infos?: Partial<
|
||||
Record<common.BenefitType, common.CommonCounter>
|
||||
>;
|
||||
benefit_type_infos?: Record<common.BenefitType, common.CommonCounter>;
|
||||
resource_packages?: Array<ResourcePackage>;
|
||||
/** 续费信息 */
|
||||
renewal_info?: SubscriptionRenewalInfo;
|
||||
}
|
||||
|
||||
export interface SubscriptionPlan {
|
||||
@@ -458,13 +434,6 @@ export interface SubscriptionRelateBenefit {
|
||||
collaborate_quota?: CollaborateQuota;
|
||||
}
|
||||
|
||||
export interface SubscriptionRenewalInfo {
|
||||
/** 续费类型 */
|
||||
renewal_type?: common.SubscriptionRenewalType;
|
||||
/** 单次自动续费的周期数量,比如包月,就是每次自动续费几个月 */
|
||||
renewal_period_times?: Int64;
|
||||
}
|
||||
|
||||
export interface SubscriptionUserInfo {
|
||||
subs_status?: common.SubscriptionStatus;
|
||||
/** 对于Free套餐,无该字段 */
|
||||
@@ -498,8 +467,6 @@ export interface VolcAccountInfo {
|
||||
start_at?: Int64;
|
||||
/** 权益失效时间(秒级) */
|
||||
end_at?: Int64;
|
||||
/** 套餐对应周期资源包实例Id,如果用户购买的是仅版本,则该字段为空 */
|
||||
period_pack_instance_id?: string;
|
||||
}
|
||||
|
||||
export interface VolcUserInfo {
|
||||
@@ -507,7 +474,5 @@ export interface VolcUserInfo {
|
||||
volc_auth_instance_id?: string;
|
||||
/** 火山用户等级 */
|
||||
volc_user_level?: common.UserLevel;
|
||||
/** 火山用户实例版本 */
|
||||
volc_instance_type?: common.VolcInstanceType;
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
||||
Reference in New Issue
Block a user