feat: manually mirror opencoze's code from bytedance
Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
@@ -0,0 +1,857 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @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';
|
||||
import * as marketplace_common from './namespaces/marketplace_common';
|
||||
import * as order from './namespaces/order';
|
||||
import * as pipo from './namespaces/pipo';
|
||||
import * as price_rule from './namespaces/price_rule';
|
||||
import * as product from './namespaces/product';
|
||||
import * as product_common from './namespaces/product_common';
|
||||
import * as security from './namespaces/security';
|
||||
import * as subscription from './namespaces/subscription';
|
||||
|
||||
export {
|
||||
account,
|
||||
benefit,
|
||||
benefit_conf,
|
||||
bill,
|
||||
common,
|
||||
fulfill,
|
||||
marketplace_common,
|
||||
order,
|
||||
pipo,
|
||||
price_rule,
|
||||
product,
|
||||
product_common,
|
||||
security,
|
||||
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';
|
||||
export * from './namespaces/marketplace_common';
|
||||
export * from './namespaces/order';
|
||||
export * from './namespaces/pipo';
|
||||
export * from './namespaces/price_rule';
|
||||
export * from './namespaces/product';
|
||||
export * from './namespaces/product_common';
|
||||
export * from './namespaces/security';
|
||||
export * from './namespaces/subscription';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export default class TradeOperationService<T> {
|
||||
private request: any = () => {
|
||||
throw new Error('TradeOperationService.request is undefined');
|
||||
};
|
||||
private baseURL: string | ((path: string) => string) = '';
|
||||
|
||||
constructor(options?: {
|
||||
baseURL?: string | ((path: string) => string);
|
||||
request?<R>(
|
||||
params: {
|
||||
url: string;
|
||||
method: 'GET' | 'DELETE' | 'POST' | 'PUT' | 'PATCH';
|
||||
data?: any;
|
||||
params?: any;
|
||||
headers?: any;
|
||||
},
|
||||
options?: T,
|
||||
): Promise<R>;
|
||||
}) {
|
||||
this.request = options?.request || this.request;
|
||||
this.baseURL = options?.baseURL || '';
|
||||
}
|
||||
|
||||
private genBaseURL(path: string) {
|
||||
return typeof this.baseURL === 'string'
|
||||
? this.baseURL + path
|
||||
: this.baseURL(path);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/create_charge_order
|
||||
*
|
||||
* 发起充值单(coze token、message credit)
|
||||
*/
|
||||
CreateChargeOrder(
|
||||
req?: order.CreateChargeOrderRequest,
|
||||
options?: T,
|
||||
): Promise<order.CreateChargeOrderResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/create_charge_order');
|
||||
const method = 'POST';
|
||||
const data = {
|
||||
UserID: _req['UserID'],
|
||||
currency_code: _req['currency_code'],
|
||||
goods_id: _req['goods_id'],
|
||||
quantity: _req['quantity'],
|
||||
extra: _req['extra'],
|
||||
UserType: _req['UserType'],
|
||||
};
|
||||
const headers = {
|
||||
Cookie: _req['Cookie'],
|
||||
'Tt-Agw-Client-Ip': _req['Tt-Agw-Client-Ip'],
|
||||
};
|
||||
return this.request({ url, method, data, headers }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/checkout_callback
|
||||
*
|
||||
* PIPO Checkout支付回调
|
||||
*/
|
||||
PipoCheckoutCallback(
|
||||
req?: pipo.PipoCheckoutCallbackRequest,
|
||||
options?: T,
|
||||
): Promise<pipo.PipoCheckoutCallbackResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/checkout_callback');
|
||||
const method = 'POST';
|
||||
const data = {
|
||||
event_type: _req['event_type'],
|
||||
data: _req['data'],
|
||||
Body: _req['Body'],
|
||||
};
|
||||
return this.request({ url, method, data }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/get_account_balance
|
||||
*
|
||||
* 获取账户余额(token)
|
||||
*/
|
||||
GetAccountBalance(
|
||||
req?: account.GetAccountBalanceRequest,
|
||||
options?: T,
|
||||
): Promise<account.GetAccountBalanceResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/get_account_balance');
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
account_type: _req['account_type'],
|
||||
UserID: _req['UserID'],
|
||||
};
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/get_account_bills
|
||||
*
|
||||
* 获取账户账单(token)
|
||||
*/
|
||||
GetAccountBills(
|
||||
req?: account.GetAccountBillsRequest,
|
||||
options?: T,
|
||||
): Promise<account.GetAccountBillsResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/get_account_bills');
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
account_type: _req['account_type'],
|
||||
start_timestamp_ms: _req['start_timestamp_ms'],
|
||||
end_timestamp_ms: _req['end_timestamp_ms'],
|
||||
UserID: _req['UserID'],
|
||||
};
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/get_model_cost_rules
|
||||
*
|
||||
* 获取模型计费规则(token)
|
||||
*/
|
||||
GetModelCostRules(
|
||||
req?: account.GetModelCostRulesRequest,
|
||||
options?: T,
|
||||
): Promise<account.GetModelCostRulesResponse> {
|
||||
const url = this.genBaseURL('/api/marketplace/trade/get_model_cost_rules');
|
||||
const method = 'GET';
|
||||
return this.request({ url, method }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/agreement_deduction_callback
|
||||
*
|
||||
* PIPO 协议支付回调
|
||||
*/
|
||||
PipoAgreementDeductionCallback(
|
||||
req?: pipo.PipoAgreementDeductionCallbackRequest,
|
||||
options?: T,
|
||||
): Promise<pipo.PipoAgreementDeductionCallbackResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL(
|
||||
'/api/marketplace/trade/agreement_deduction_callback',
|
||||
);
|
||||
const method = 'POST';
|
||||
const data = {
|
||||
event_type: _req['event_type'],
|
||||
data: _req['data'],
|
||||
Body: _req['Body'],
|
||||
};
|
||||
return this.request({ url, method, data }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/get_user_payment_methods
|
||||
*
|
||||
* PIPO 查询用户是否绑定支付方式
|
||||
*/
|
||||
PipoGetUserPaymentMethods(
|
||||
req?: pipo.PipoGetUserPaymentMethodsRequest,
|
||||
options?: T,
|
||||
): Promise<pipo.PipoGetUserPaymentMethodsResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL(
|
||||
'/api/marketplace/trade/get_user_payment_methods',
|
||||
);
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
UserType: _req['UserType'],
|
||||
UserID: _req['UserID'],
|
||||
Amount: _req['Amount'],
|
||||
Currency: _req['Currency'],
|
||||
scene: _req['scene'],
|
||||
};
|
||||
const headers = { 'Tt-Agw-Client-Ip': _req['Tt-Agw-Client-Ip'] };
|
||||
return this.request({ url, method, params, headers }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/get_payment_method_management_url
|
||||
*
|
||||
* PIPO 获取支付方式管理页面
|
||||
*/
|
||||
PipoGetPaymentMethodManagementURL(
|
||||
req?: pipo.PipoGetPaymentMethodManagementURLRequest,
|
||||
options?: T,
|
||||
): Promise<pipo.PipoGetPaymentMethodManagementURLResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL(
|
||||
'/api/marketplace/trade/get_payment_method_management_url',
|
||||
);
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
UserType: _req['UserType'],
|
||||
UserID: _req['UserID'],
|
||||
scene: _req['scene'],
|
||||
};
|
||||
const headers = { 'Tt-Agw-Client-Ip': _req['Tt-Agw-Client-Ip'] };
|
||||
return this.request({ url, method, params, headers }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/get_trade_conf
|
||||
*
|
||||
* 查询交易领域配置
|
||||
*/
|
||||
GetTradeConf(
|
||||
req?: security.GetTradeConfRequest,
|
||||
options?: T,
|
||||
): Promise<security.GetTradeConfResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/get_trade_conf');
|
||||
const method = 'GET';
|
||||
const params = { scenes: _req['scenes'] };
|
||||
const headers = { 'Tt-Agw-Client-Ip': _req['Tt-Agw-Client-Ip'] };
|
||||
return this.request({ url, method, params, headers }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/get_trade_order
|
||||
*
|
||||
* 查询交易订单信息
|
||||
*/
|
||||
GetTradeOrder(
|
||||
req: order.GetTradeOrderRequest,
|
||||
options?: T,
|
||||
): Promise<order.GetTradeOrderResponse> {
|
||||
const _req = req;
|
||||
const url = this.genBaseURL('/api/marketplace/trade/get_trade_order');
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
order_id: _req['order_id'],
|
||||
real_time_pay_status: _req['real_time_pay_status'],
|
||||
};
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/subscription
|
||||
*
|
||||
* 获取用户当前订阅详情
|
||||
*/
|
||||
PublicGetSubscriptionDetail(
|
||||
req?: subscription.PublicGetSubscriptionDetailRequest,
|
||||
options?: T,
|
||||
): Promise<subscription.PublicGetSubscriptionDetailResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/subscription');
|
||||
const method = 'GET';
|
||||
const params = { subscribe_type: _req['subscribe_type'] };
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/create_subscription
|
||||
*
|
||||
* 发起订阅(含订阅升降级)
|
||||
*/
|
||||
PublicCreateSubscription(
|
||||
req?: subscription.PublicCreateSubscriptionRequest,
|
||||
options?: T,
|
||||
): Promise<subscription.PublicCreateSubscriptionResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/create_subscription');
|
||||
const method = 'POST';
|
||||
const data = {
|
||||
goods_id: _req['goods_id'],
|
||||
pre_subscription_id: _req['pre_subscription_id'],
|
||||
channel: _req['channel'],
|
||||
source_type: _req['source_type'],
|
||||
source_id: _req['source_id'],
|
||||
};
|
||||
const headers = {
|
||||
Cookie: _req['Cookie'],
|
||||
'Tt-Agw-Client-Ip': _req['Tt-Agw-Client-Ip'],
|
||||
};
|
||||
return this.request({ url, method, data, headers }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/resume_subscription
|
||||
*
|
||||
* 重新订阅
|
||||
*/
|
||||
PublicReSubscription(
|
||||
req?: subscription.PublicReSubscriptionRequest,
|
||||
options?: T,
|
||||
): Promise<subscription.PublicReSubscriptionResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/resume_subscription');
|
||||
const method = 'POST';
|
||||
const data = { subscribe_id: _req['subscribe_id'] };
|
||||
const headers = {
|
||||
Cookie: _req['Cookie'],
|
||||
'Tt-Agw-Client-Ip': _req['Tt-Agw-Client-Ip'],
|
||||
};
|
||||
return this.request({ url, method, data, headers }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/subscription_product
|
||||
*
|
||||
* 获取订阅套餐列表
|
||||
*/
|
||||
PublicGetSubscriptionProductDetail(
|
||||
req?: subscription.PublicGetSubscriptionProductDetailRequest,
|
||||
options?: T,
|
||||
): Promise<subscription.PublicGetSubscriptionProductDetailResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/subscription_product');
|
||||
const method = 'GET';
|
||||
const params = { product_type: _req['product_type'] };
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/cancel_subscription
|
||||
*
|
||||
* 取消订阅
|
||||
*/
|
||||
PublicCancelSubscription(
|
||||
req?: subscription.PublicCancelSubscriptionRequest,
|
||||
options?: T,
|
||||
): Promise<subscription.PublicCancelSubscriptionResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/cancel_subscription');
|
||||
const method = 'POST';
|
||||
const data = { subscribe_id: _req['subscribe_id'] };
|
||||
const headers = {
|
||||
Cookie: _req['Cookie'],
|
||||
'Tt-Agw-Client-Ip': _req['Tt-Agw-Client-Ip'],
|
||||
};
|
||||
return this.request({ url, method, data, headers }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/subscription_notify
|
||||
*
|
||||
* 订阅回调
|
||||
*/
|
||||
SubscriptionNotify(
|
||||
req?: pipo.SubscriptionNotifyRequest,
|
||||
options?: T,
|
||||
): Promise<pipo.SubscriptionNotifyResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/subscription_notify');
|
||||
const method = 'POST';
|
||||
const data = { Body: _req['Body'] };
|
||||
return this.request({ url, method, data }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/create_charge_order_v2
|
||||
*
|
||||
* 发起充值单(coze token、message credit)规范化前台接口入参
|
||||
*/
|
||||
PublicCreateChargeOrder(
|
||||
req?: order.PublicCreateChargeOrderRequest,
|
||||
options?: T,
|
||||
): Promise<order.PublicCreateChargeOrderResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL(
|
||||
'/api/marketplace/trade/create_charge_order_v2',
|
||||
);
|
||||
const method = 'POST';
|
||||
const data = {
|
||||
currency_code: _req['currency_code'],
|
||||
goods_id: _req['goods_id'],
|
||||
quantity: _req['quantity'],
|
||||
extra: _req['extra'],
|
||||
charge_scene: _req['charge_scene'],
|
||||
};
|
||||
const headers = {
|
||||
Cookie: _req['Cookie'],
|
||||
'Tt-Agw-Client-Ip': _req['Tt-Agw-Client-Ip'],
|
||||
};
|
||||
return this.request({ url, method, data, headers }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/credit_bill
|
||||
*
|
||||
* 获取用户账单
|
||||
*/
|
||||
PublicGetCreditBill(
|
||||
req: bill.GetCreditBillRequest,
|
||||
options?: T,
|
||||
): Promise<bill.GetCreditBillResponse> {
|
||||
const _req = req;
|
||||
const url = this.genBaseURL('/api/marketplace/trade/credit_bill');
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
start_timestamp: _req['start_timestamp'],
|
||||
end_timestamp: _req['end_timestamp'],
|
||||
change_types: _req['change_types'],
|
||||
coze_account_id: _req['coze_account_id'],
|
||||
coze_account_type: _req['coze_account_type'],
|
||||
page_size: _req['page_size'],
|
||||
page_token: _req['page_token'],
|
||||
enterpirse_id: _req['enterpirse_id'],
|
||||
organization_id: _req['organization_id'],
|
||||
};
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/get_pricing_rules
|
||||
*
|
||||
* 获取阶梯定价规则
|
||||
*/
|
||||
PublicGetPricingRules(
|
||||
req: price_rule.GetPricingRulesRequest,
|
||||
options?: T,
|
||||
): Promise<price_rule.GetPricingRulesResponse> {
|
||||
const _req = req;
|
||||
const url = this.genBaseURL('/api/marketplace/trade/get_pricing_rules');
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
scene: _req['scene'],
|
||||
coze_account_id: _req['coze_account_id'],
|
||||
coze_account_type: _req['coze_account_type'],
|
||||
};
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/refund_order_callback
|
||||
*
|
||||
* 退款回调
|
||||
*/
|
||||
RefundOrderCallback(
|
||||
req?: pipo.RefundOrderCallbackRequest,
|
||||
options?: T,
|
||||
): Promise<pipo.RefundOrderCallbackResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/refund_order_callback');
|
||||
const method = 'POST';
|
||||
const data = { Body: _req['Body'] };
|
||||
return this.request({ url, method, data }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/invoice_callback
|
||||
*
|
||||
* PIPO 开票回调
|
||||
*/
|
||||
PipoInvoiceCallback(
|
||||
req?: pipo.PipoInvoiceCallbackRequest,
|
||||
options?: T,
|
||||
): Promise<pipo.PipoInvoiceCallbackResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/invoice_callback');
|
||||
const method = 'POST';
|
||||
const data = { Body: _req['Body'] };
|
||||
return this.request({ url, method, data }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/instant_pay_callback
|
||||
*
|
||||
* PIPO Gateway 支付回调
|
||||
*/
|
||||
PipoInstantPayCallback(
|
||||
req?: pipo.PipoInstantPayCallbackRequest,
|
||||
options?: T,
|
||||
): Promise<pipo.PipoInstantPayCallbackResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/instant_pay_callback');
|
||||
const method = 'POST';
|
||||
const data = { Body: _req['Body'] };
|
||||
return this.request({ url, method, data }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/admin/subscription_product
|
||||
*
|
||||
* 获取订阅商品信息
|
||||
*/
|
||||
AdminGetSubscriptionProductDetail(
|
||||
req: subscription.AdminGetSubscriptionProductDetailRequest,
|
||||
options?: T,
|
||||
): Promise<subscription.AdminGetSubscriptionProductDetailResponse> {
|
||||
const _req = req;
|
||||
const url = this.genBaseURL(
|
||||
'/api/marketplace/trade/admin/subscription_product',
|
||||
);
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
product_type: _req['product_type'],
|
||||
product_id: _req['product_id'],
|
||||
};
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/chargeback_callback
|
||||
*
|
||||
* 拒付回调
|
||||
*/
|
||||
ChargebackCallback(
|
||||
req?: pipo.ChargebackCallbackRequest,
|
||||
options?: T,
|
||||
): Promise<pipo.ChargebackCallbackResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/chargeback_callback');
|
||||
const method = 'POST';
|
||||
const data = { Body: _req['Body'] };
|
||||
return this.request({ url, method, data }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/get_subs_rec
|
||||
*
|
||||
* 查询订阅记录信息
|
||||
*/
|
||||
GetSubscriptionRecord(
|
||||
req?: subscription.GetSubscriptionRecordRequest,
|
||||
options?: T,
|
||||
): Promise<subscription.GetSubscriptionRecordResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/get_subs_rec');
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
subscribe_id: _req['subscribe_id'],
|
||||
real_time_subs_status: _req['real_time_subs_status'],
|
||||
};
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/gw_agreement_deduction_callback
|
||||
*
|
||||
* PIPO gateway 协议支付回调
|
||||
*/
|
||||
PipoGWAgreementDeductionCallbackResponse(
|
||||
req?: pipo.PipoGWAgreementDeductionCallbackRequest,
|
||||
options?: T,
|
||||
): Promise<pipo.PipoGWAgreementDeductionCallbackResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL(
|
||||
'/api/marketplace/trade/gw_agreement_deduction_callback',
|
||||
);
|
||||
const method = 'POST';
|
||||
const data = { Body: _req['Body'] };
|
||||
return this.request({ url, method, data }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/marketplace/trade/place_order
|
||||
*
|
||||
* 下单接口(购买模版)
|
||||
*/
|
||||
PublicPlaceOrder(
|
||||
req?: order.PublicPlaceOrderRequest,
|
||||
options?: T,
|
||||
): Promise<order.PublicPlaceOrderResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/place_order');
|
||||
const method = 'POST';
|
||||
const data = {
|
||||
goods_id: _req['goods_id'],
|
||||
quantity: _req['quantity'],
|
||||
scene: _req['scene'],
|
||||
return_url: _req['return_url'],
|
||||
product_id: _req['product_id'],
|
||||
};
|
||||
const headers = {
|
||||
Cookie: _req['Cookie'],
|
||||
'Tt-Agw-Client-Ip': _req['Tt-Agw-Client-Ip'],
|
||||
};
|
||||
return this.request({ url, method, data, headers }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/template_order/list
|
||||
*
|
||||
* 查询交易订单信息
|
||||
*/
|
||||
PublicGetTemplatePurchaseOrderList(
|
||||
req?: order.PublicGetTemplatePurchaseOrderListRequest,
|
||||
options?: T,
|
||||
): Promise<order.PublicGetTemplatePurchaseOrderListResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/template_order/list');
|
||||
const method = 'GET';
|
||||
const params = { index: _req['index'], count: _req['count'] };
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/subscription_v2
|
||||
*
|
||||
* 获取用户当前订阅详情V2
|
||||
*/
|
||||
PublicGetSubscriptionDetailV2(
|
||||
req?: subscription.PublicGetSubscriptionDetailV2Request,
|
||||
options?: T,
|
||||
): Promise<subscription.PublicGetSubscriptionDetailV2Response> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/subscription_v2');
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
benefit_types: _req['benefit_types'],
|
||||
coze_account_id: _req['coze_account_id'],
|
||||
coze_account_type: _req['coze_account_type'],
|
||||
with_resource_package: _req['with_resource_package'],
|
||||
};
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/marketplace/trade/subscription_product_v2
|
||||
*
|
||||
* 获取订阅套餐列表
|
||||
*/
|
||||
PublicGetSubscriptionProductDetailV2(
|
||||
req?: subscription.PublicGetSubscriptionProductDetailV2Request,
|
||||
options?: T,
|
||||
): Promise<subscription.PublicGetSubscriptionProductDetailV2Response> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL(
|
||||
'/api/marketplace/trade/subscription_product_v2',
|
||||
);
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
coze_account_id: _req['coze_account_id'],
|
||||
coze_account_type: _req['coze_account_type'],
|
||||
};
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/** GET /api/marketplace/trade/device_summary */
|
||||
PublicGetDeviceSummary(
|
||||
req?: bill.PublicGetDeviceSummaryRequest,
|
||||
options?: T,
|
||||
): Promise<bill.PublicGetDeviceSummaryResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/device_summary');
|
||||
const method = 'GET';
|
||||
const params = { period: _req['period'], dimension: _req['dimension'] };
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/** GET /api/marketplace/trade/device_benefit_detail */
|
||||
PublicGetDeviceBenefitDetail(
|
||||
req: bill.PublicGetDeviceBenefitDetailRequest,
|
||||
options?: T,
|
||||
): Promise<bill.PublicGetDeviceBenefitDetailResponse> {
|
||||
const _req = req;
|
||||
const url = this.genBaseURL('/api/marketplace/trade/device_benefit_detail');
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
start_timestamp: _req['start_timestamp'],
|
||||
end_timestamp: _req['end_timestamp'],
|
||||
device_id: _req['device_id'],
|
||||
custom_consumer: _req['custom_consumer'],
|
||||
};
|
||||
return this.request({ url, method, params }, options);
|
||||
}
|
||||
|
||||
/** GET /api/marketplace/trade/device_summary_detail */
|
||||
PublicGetDeviceSummaryDetail(
|
||||
req?: bill.PublicGetDeviceSummaryDetailRequest,
|
||||
options?: T,
|
||||
): Promise<bill.PublicGetDeviceSummaryDetailResponse> {
|
||||
const _req = req || {};
|
||||
const url = this.genBaseURL('/api/marketplace/trade/device_summary_detail');
|
||||
const method = 'GET';
|
||||
const params = {
|
||||
period: _req['period'],
|
||||
device_id: _req['device_id'],
|
||||
page_num: _req['page_num'],
|
||||
page_size: _req['page_size'],
|
||||
order_by_type: _req['order_by_type'],
|
||||
order_by_field: _req['order_by_field'],
|
||||
dimension: _req['dimension'],
|
||||
custom_consumer_id: _req['custom_consumer_id'],
|
||||
};
|
||||
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 */
|
||||
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as marketplace_common from './marketplace_common';
|
||||
import * as common from './common';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface BillDetail {
|
||||
amount?: string;
|
||||
timestamp?: string;
|
||||
desc?: string;
|
||||
}
|
||||
|
||||
export interface GetAccountBalance {
|
||||
amount?: string;
|
||||
}
|
||||
|
||||
export interface GetAccountBalanceRequest {
|
||||
account_type?: string;
|
||||
UserID?: Int64;
|
||||
}
|
||||
|
||||
export interface GetAccountBalanceResponse {
|
||||
data?: GetAccountBalance;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface GetAccountBills {
|
||||
bill_details?: Array<BillDetail>;
|
||||
}
|
||||
|
||||
export interface GetAccountBillsRequest {
|
||||
account_type?: string;
|
||||
start_timestamp_ms?: Int64;
|
||||
end_timestamp_ms?: Int64;
|
||||
UserID?: Int64;
|
||||
}
|
||||
|
||||
export interface GetAccountBillsResponse {
|
||||
data?: GetAccountBills;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface GetModelCostRules {
|
||||
model_cost_rules?: Array<ModelCostRule>;
|
||||
plugin_cost_rules?: Array<PluginCostRule>;
|
||||
}
|
||||
|
||||
export interface GetModelCostRulesRequest {}
|
||||
|
||||
export interface GetModelCostRulesResponse {
|
||||
data?: GetModelCostRules;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface ModelCostRule {
|
||||
model_name?: string;
|
||||
model_icon?: string;
|
||||
input_coze_token_cost_per_k?: Int64;
|
||||
ouput_coze_token_cost_per_k?: Int64;
|
||||
input_token_use?: Int64;
|
||||
input_token_cost?: Int64;
|
||||
input_token_amount?: Int64;
|
||||
output_token_use?: Int64;
|
||||
output_token_cost?: Int64;
|
||||
output_token_amount?: Int64;
|
||||
input_token_price?: marketplace_common.Price;
|
||||
output_token_price?: marketplace_common.Price;
|
||||
}
|
||||
|
||||
export interface PluginCostRule {
|
||||
plugin_name?: string;
|
||||
plugin_icon?: string;
|
||||
per_funcation_call_token_cost?: Int64;
|
||||
}
|
||||
|
||||
/** 获取用户的订阅付费信息 */
|
||||
export interface SubsMsgCreditData {
|
||||
/** 订阅付费类型 */
|
||||
SubsMsgCreditLevel: common.SubsMsgCreditLevel;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as common from './common';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum BenefitTypeInfoItemStatus {
|
||||
/** 未知 */
|
||||
Unknown = 0,
|
||||
Active = 1,
|
||||
Expired = 2,
|
||||
Frozen = 3,
|
||||
Refunded = 4,
|
||||
/** 取消 */
|
||||
Cancel = 5,
|
||||
/** 待生效(此枚举通过计算得出,数据库中并无此项数据) */
|
||||
Pending = 6,
|
||||
}
|
||||
|
||||
export interface BenefitTypeInfoItem {
|
||||
item_id?: string;
|
||||
item_info?: CommonCounter;
|
||||
status?: BenefitTypeInfoItemStatus;
|
||||
benefit_id?: string;
|
||||
}
|
||||
|
||||
/** 不复用 common 结构体,因为需要删除 api.body,agw 才能从 request 中提取信息,删除旧结构体的 tag 担心影响现有逻辑 */
|
||||
export interface CommonCounter {
|
||||
/** 当 Strategy == ByQuota 时, 表示已使用量, 若权益无相关用量数据则返回 0 */
|
||||
used?: number;
|
||||
/** 当 Strategy == ByQuota 时, 表示用量上限 */
|
||||
total?: number;
|
||||
/** 3: ResourceUsageStrategy Strategy (agw.key = "strategy", go.tag = "json:\"strategy\""), // 资源使用策略
|
||||
开始时间,单位秒 */
|
||||
start_at?: Int64;
|
||||
/** 结束时间,单位秒 */
|
||||
end_at?: Int64;
|
||||
}
|
||||
|
||||
export interface CreateUserExtraBenefitResult {
|
||||
benefit_id?: string;
|
||||
}
|
||||
|
||||
export interface PublicCreateUserExtraBenefitRequest {
|
||||
extra_benefit?: UserExtraBenefit;
|
||||
enterprise_id?: string;
|
||||
}
|
||||
|
||||
export interface PublicCreateUserExtraBenefitResponse {
|
||||
code?: number;
|
||||
message?: string;
|
||||
data?: CreateUserExtraBenefitResult;
|
||||
}
|
||||
|
||||
export interface PublicDisableUserExtraBenefitRequest {
|
||||
benefit_id?: string;
|
||||
enterprise_id?: string;
|
||||
}
|
||||
|
||||
export interface PublicDisableUserExtraBenefitResponse {
|
||||
code?: number;
|
||||
message?: string;
|
||||
}
|
||||
|
||||
export interface PublicGetUserBenefitRequest {
|
||||
benefit_types?: Array<common.BenefitType>;
|
||||
with_extra_only?: boolean;
|
||||
resource_id?: string;
|
||||
enterprise_id?: string;
|
||||
account_type?: common.CozeAccountType;
|
||||
}
|
||||
|
||||
export interface PublicGetUserBenefitResponse {
|
||||
code?: number;
|
||||
message?: string;
|
||||
data?: UserBenefitData;
|
||||
}
|
||||
|
||||
export interface UserBenefitData {
|
||||
user_benefit_infos?: Array<UserBenefitInfo>;
|
||||
}
|
||||
|
||||
export interface UserBenefitInfo {
|
||||
name?: string;
|
||||
icon_url?: string;
|
||||
resource_id?: string;
|
||||
benefit_type?: common.BenefitType;
|
||||
basic?: BenefitTypeInfoItem;
|
||||
extra?: Array<BenefitTypeInfoItem>;
|
||||
max_extra_qps?: number;
|
||||
price?: number;
|
||||
desc?: string;
|
||||
unit?: string;
|
||||
}
|
||||
|
||||
export interface UserExtraBenefit {
|
||||
benefit_type?: common.BenefitType;
|
||||
resource_id?: string;
|
||||
item_info?: CommonCounter;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as common from './common';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface PublicCommSetConfBenefitRequest {
|
||||
/** 不传仅返回用户信息 */
|
||||
benefit_type?: common.BenefitType;
|
||||
/** 必填。这里指的是Coze的AccountID */
|
||||
coze_account_id?: string;
|
||||
coze_account_type?: common.CozeAccountType;
|
||||
enterprise_id?: string;
|
||||
counter?: common.CommonCounter;
|
||||
}
|
||||
|
||||
export interface PublicCommSetConfBenefitResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,204 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as common from './common';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum BillItemType {
|
||||
Model = 1,
|
||||
Plugin = 2,
|
||||
Voice = 3,
|
||||
RTC = 4,
|
||||
ASR = 5,
|
||||
TTS = 6,
|
||||
TTS_SMALL = 7,
|
||||
}
|
||||
|
||||
export enum DeviceDimension {
|
||||
Device = 1,
|
||||
CustomConsumer = 2,
|
||||
}
|
||||
|
||||
export enum OrderByField {
|
||||
ChatTotal = 1,
|
||||
ChatCurrent = 2,
|
||||
BalanceTotal = 3,
|
||||
BalanceCurrent = 4,
|
||||
}
|
||||
|
||||
export enum OrderByType {
|
||||
Desc = 1,
|
||||
Asc = 2,
|
||||
}
|
||||
|
||||
export enum SummaryPeriod {
|
||||
Day_7 = 1,
|
||||
Day_30 = 2,
|
||||
Day_60 = 3,
|
||||
Day_1 = 4,
|
||||
}
|
||||
|
||||
export interface BillConsumeDetail {
|
||||
name: string;
|
||||
change_amount: string;
|
||||
tag: string;
|
||||
change_type: common.CreditChangeType;
|
||||
icon_url: string;
|
||||
change_amount_str?: string;
|
||||
usage?: Int64;
|
||||
}
|
||||
|
||||
export interface BillItem {
|
||||
change_amount: string;
|
||||
changed_at: string;
|
||||
name?: string;
|
||||
channel_info?: common.ChannelInfo;
|
||||
tag?: string;
|
||||
/** 筛选项从这里拿 */
|
||||
change_type?: common.CreditChangeType;
|
||||
/** 废弃 */
|
||||
model_consume_detail?: Array<BillConsumeDetail>;
|
||||
/** 废弃 */
|
||||
plugin_consume_detail?: Array<BillConsumeDetail>;
|
||||
entity_consume_detail?: Partial<
|
||||
Record<BillItemType, Array<BillConsumeDetail>>
|
||||
>;
|
||||
bill_item_id?: string;
|
||||
change_amount_str?: string;
|
||||
icon_url?: string;
|
||||
space_info?: BillSpaceInfo;
|
||||
}
|
||||
|
||||
export interface BillSpaceInfo {
|
||||
name: string;
|
||||
icon_url: string;
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface CreditBillData {
|
||||
bills?: Array<BillItem>;
|
||||
has_more?: boolean;
|
||||
page_token?: string;
|
||||
}
|
||||
|
||||
export interface DeviceBenefitDetail {
|
||||
date?: string;
|
||||
device_id?: string;
|
||||
entity_consume_detail?: Array<BillConsumeDetail>;
|
||||
}
|
||||
|
||||
export interface DeviceSummary {
|
||||
date?: string;
|
||||
uv?: Int64;
|
||||
chat_total?: Int64;
|
||||
tts_total?: Int64;
|
||||
asr_total?: Int64;
|
||||
voice_total?: Int64;
|
||||
rtc_total?: Int64;
|
||||
}
|
||||
|
||||
export interface DeviceSummaryDetail {
|
||||
date?: string;
|
||||
device_id?: string;
|
||||
activated_at?: string;
|
||||
chat_total?: Int64;
|
||||
chat_current?: Int64;
|
||||
balance_total?: string;
|
||||
balance_current?: string;
|
||||
}
|
||||
|
||||
export interface GetCreditBillRequest {
|
||||
start_timestamp: Int64;
|
||||
end_timestamp: Int64;
|
||||
change_types?: Array<common.CreditChangeType>;
|
||||
coze_account_id?: string;
|
||||
coze_account_type?: common.CozeAccountType;
|
||||
page_size?: number;
|
||||
page_token?: string;
|
||||
enterpirse_id?: string;
|
||||
organization_id?: string;
|
||||
}
|
||||
|
||||
export interface GetCreditBillResponse {
|
||||
data?: CreditBillData;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface GetDeviceBenefitDetailData {
|
||||
device_benefit_detail?: Array<DeviceBenefitDetail>;
|
||||
}
|
||||
|
||||
export interface GetDeviceSummaryData {
|
||||
device_summary?: Array<DeviceSummary>;
|
||||
chat_avg?: number;
|
||||
tts_avg?: number;
|
||||
asr_avg?: number;
|
||||
voice_avg?: number;
|
||||
rtc_avg?: number;
|
||||
}
|
||||
|
||||
export interface GetDeviceSummaryDetailData {
|
||||
device_summary_detail?: Array<DeviceSummaryDetail>;
|
||||
}
|
||||
|
||||
export interface PublicGetDeviceBenefitDetailRequest {
|
||||
start_timestamp: Int64;
|
||||
end_timestamp: Int64;
|
||||
device_id?: string;
|
||||
custom_consumer?: string;
|
||||
}
|
||||
|
||||
export interface PublicGetDeviceBenefitDetailResponse {
|
||||
code?: number;
|
||||
msg?: string;
|
||||
data?: GetDeviceBenefitDetailData;
|
||||
}
|
||||
|
||||
export interface PublicGetDeviceSummaryDetailRequest {
|
||||
period?: SummaryPeriod;
|
||||
device_id?: string;
|
||||
page_num?: number;
|
||||
page_size?: number;
|
||||
order_by_type?: OrderByType;
|
||||
order_by_field?: OrderByField;
|
||||
dimension?: DeviceDimension;
|
||||
custom_consumer_id?: string;
|
||||
}
|
||||
|
||||
export interface PublicGetDeviceSummaryDetailResponse {
|
||||
code?: number;
|
||||
msg?: string;
|
||||
data?: GetDeviceSummaryDetailData;
|
||||
}
|
||||
|
||||
export interface PublicGetDeviceSummaryRequest {
|
||||
period?: SummaryPeriod;
|
||||
dimension?: DeviceDimension;
|
||||
}
|
||||
|
||||
export interface PublicGetDeviceSummaryResponse {
|
||||
code?: number;
|
||||
msg?: string;
|
||||
data?: GetDeviceSummaryData;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,487 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum AccountStatus {
|
||||
Available = 1,
|
||||
Unavailable = 2,
|
||||
}
|
||||
|
||||
/** 协议状态 */
|
||||
export enum AgreementStatus {
|
||||
/** 停用 */
|
||||
Closed = 0,
|
||||
/** 有效 */
|
||||
InEffect = 1,
|
||||
}
|
||||
|
||||
export enum AmountType {
|
||||
/** 日后可以拓展为满减、sku 数量折扣等 */
|
||||
Unknown = 0,
|
||||
ChargeAmount = 1,
|
||||
}
|
||||
|
||||
/** 权益类型。同 benefit_common.thrift 对齐。此处用于业务层使用。 */
|
||||
export enum BenefitType {
|
||||
/** 海外 */
|
||||
SubsMessageCredit = 1,
|
||||
UserFreeChat = 2,
|
||||
TopUpMessageCredit = 3,
|
||||
BonusMessageCredit = 4,
|
||||
/** 40 -59 免费次数 */
|
||||
Freetimes = 40,
|
||||
/** 评测免费次数 */
|
||||
EvaluateFree = 41,
|
||||
/** Workflow 测试运行免费次数 */
|
||||
WorkflowTestRunFree = 42,
|
||||
/** App 测试运行免费次数 */
|
||||
AppTestRunFree = 43,
|
||||
/** Plugin 测试运行免费次数 */
|
||||
PluginRunFree = 44,
|
||||
/** API 运行免费次数 */
|
||||
APIRunFree = 45,
|
||||
/** SDK 运行免费次数 */
|
||||
SDKRunFree = 46,
|
||||
/** 60 - 99 限流
|
||||
模型 RPM 限流 */
|
||||
RateLimitModelRPM = 60,
|
||||
/** 模型 Input TPM 限流 */
|
||||
RateLimitModelInputTPM = 61,
|
||||
/** 模型 Output TPM 限流 */
|
||||
RateLimitModelOutputTPM = 62,
|
||||
/** 基础模型 Input TPM 限流 */
|
||||
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,
|
||||
/** 免费资源点,废弃 */
|
||||
FreeResourcePoint = 101,
|
||||
/** 火山购买的资源点 */
|
||||
VolcProResourcePoint = 102,
|
||||
/** 周期性资源点 */
|
||||
PeriodicResourcePoint = 103,
|
||||
/** 渠道递减资源点 */
|
||||
ChannelResourcePoint = 104,
|
||||
/** 试算资源点 */
|
||||
CutAndTryResourcePoint = 109,
|
||||
/** 110-129 Fornax
|
||||
Trace 用量 */
|
||||
TraceAmount = 111,
|
||||
/** Trace 存储时长 */
|
||||
TraceStorageDuration = 112,
|
||||
/** 130-149 WorkSpace
|
||||
Space 总量 */
|
||||
SpaceAmount = 131,
|
||||
/** Space 人数 */
|
||||
SpacePeopleNumber = 132,
|
||||
/** Space 下协作者人数 */
|
||||
SpaceCollaboratorNumber = 133,
|
||||
/** Space 下协作实体数量 */
|
||||
SpaceCollabEntityNumber = 134,
|
||||
/** 150-169 运维
|
||||
日志存储时长 */
|
||||
LogStorageDuration = 151,
|
||||
/** 日志导出 */
|
||||
LogExport = 152,
|
||||
/** 170-179 知识库
|
||||
知识库容量 */
|
||||
Capacity = 170,
|
||||
/** 180-199 语音
|
||||
音色克隆总数 */
|
||||
VoiceCloneNumber = 180,
|
||||
/** 音色克隆基础数量 */
|
||||
VoiceCloneNumberBasic = 181,
|
||||
/** 200-219 租户相关
|
||||
席位数上限 */
|
||||
SeatNumberLimit = 200,
|
||||
/** 基础席位数 */
|
||||
SeatNumberBasic = 201,
|
||||
/** 移除水印 */
|
||||
RemoveWatermark = 220,
|
||||
/** 240-269 配置
|
||||
安心用 */
|
||||
ConfidenceUsing = 240,
|
||||
}
|
||||
|
||||
export enum BenefitUseMode {
|
||||
/** 按额度使用 */
|
||||
ByQuota = 1,
|
||||
/** 无限使用 */
|
||||
Unlimited = 2,
|
||||
/** 不可用 */
|
||||
UnAvailable = 10,
|
||||
}
|
||||
|
||||
export enum ChargeableEntityType {
|
||||
Unknown = 0,
|
||||
Agent = 1,
|
||||
Model = 10,
|
||||
ModelTPM = 11,
|
||||
Plugin = 20,
|
||||
Imageflow = 21,
|
||||
Voice = 30,
|
||||
RealTime = 40,
|
||||
Knowledge = 50,
|
||||
Seat = 60,
|
||||
}
|
||||
|
||||
/** 支付侧拒付状态 */
|
||||
export enum ChargebackPayStatus {
|
||||
/** 未知 */
|
||||
Unknown = 0,
|
||||
/** 发生拒付 */
|
||||
Chargeback = 1,
|
||||
/** 已拒付返还 */
|
||||
ChargebackReverse = 2,
|
||||
}
|
||||
|
||||
/** 拒付状态 */
|
||||
export enum ChargebackStatus {
|
||||
/** 未知 */
|
||||
Unknown = 0,
|
||||
/** 发生拒付 */
|
||||
Chargeback = 1,
|
||||
/** 已拒付返还 */
|
||||
ChargebackReverse = 2,
|
||||
}
|
||||
|
||||
export enum ChargeScene {
|
||||
Unknown = 0,
|
||||
Token = 1,
|
||||
Credit = 2,
|
||||
}
|
||||
|
||||
export enum CozeAccountType {
|
||||
/** 未知 */
|
||||
Unknown = 0,
|
||||
/** 组织账号 */
|
||||
Organization = 1,
|
||||
/** 个人账号 */
|
||||
Personal = 2,
|
||||
}
|
||||
|
||||
export enum CreditChangeType {
|
||||
TopUp = 1,
|
||||
Bonus = 2,
|
||||
/** 智能体 */
|
||||
BotConsume = 3,
|
||||
WorkflowConsume = 4,
|
||||
EvaluateConsume = 5,
|
||||
/** 应用 */
|
||||
ProjectConsume = 6,
|
||||
/** 扣子罗盘 */
|
||||
FornaxConsume = 7,
|
||||
/** 智能语音 */
|
||||
IntelligentVoiceConsume = 8,
|
||||
Expired = 20,
|
||||
}
|
||||
|
||||
export enum CreditType {
|
||||
/** 海外 */
|
||||
Premium = 1,
|
||||
TopUp = 2,
|
||||
Bonus = 3,
|
||||
/** 国内
|
||||
免费资源点 */
|
||||
FreePoint = 100,
|
||||
/** 充值资源点 */
|
||||
TopUpPonit = 101,
|
||||
}
|
||||
|
||||
export enum DiscountCalculationType {
|
||||
Unknown = 0,
|
||||
Multiplication = 1,
|
||||
Subtraction = 2,
|
||||
}
|
||||
|
||||
export enum InstanceLimitStatus {
|
||||
/** 未受限 */
|
||||
UnLimited = 1,
|
||||
/** 受限中(欠费) */
|
||||
Limited = 2,
|
||||
}
|
||||
|
||||
export enum InstanceStatus {
|
||||
/** 创建中, 理论上不会返回该状态 */
|
||||
InstanceStatusCreating = 0,
|
||||
/** 运行中 */
|
||||
Running = 1,
|
||||
/** 创建失败, 理论上不会返回该状态 */
|
||||
InstanceStatusFailed = 2,
|
||||
/** 退订回收 */
|
||||
UnsubsRecycled = 3,
|
||||
/** 到期关停 */
|
||||
ExpiredClosed = 4,
|
||||
/** 到期回收 */
|
||||
ExpiredRecycled = 5,
|
||||
/** 欠费关停 */
|
||||
InstanceStatusOverdueShutdown = 6,
|
||||
/** 欠费回收 */
|
||||
InstanceStatusOverdueRecycled = 7,
|
||||
/** 退订关停 */
|
||||
InstanceStatusTerminatedShutdown = 8,
|
||||
}
|
||||
|
||||
/** 订单逆向状态 */
|
||||
export enum OrderReverseStatus {
|
||||
/** 未知 */
|
||||
Unknown = 0,
|
||||
/** 退款中 */
|
||||
RefundProcessing = 1,
|
||||
/** 退款成功 */
|
||||
RefundSuccess = 2,
|
||||
/** 退款失败 */
|
||||
RefundFailed = 3,
|
||||
/** 发生拒付 */
|
||||
Chargeback = 11,
|
||||
/** 已拒付返还 */
|
||||
ChargebackReverse = 12,
|
||||
}
|
||||
|
||||
/** 订单状态 */
|
||||
export enum OrderStatus {
|
||||
/** 初始化 */
|
||||
Init = 0,
|
||||
/** 成功 */
|
||||
Success = 1,
|
||||
/** 失败 */
|
||||
Failed = 2,
|
||||
/** 关闭 */
|
||||
Closed = 3,
|
||||
}
|
||||
|
||||
/** 订单类型 */
|
||||
export enum OrderType {
|
||||
/** 未知 */
|
||||
Unknown = 0,
|
||||
/** Token充值 */
|
||||
TokenCharge = 1,
|
||||
/** Token自动充值 */
|
||||
TokenAutoCharge = 2,
|
||||
/** MessageCredit订阅 */
|
||||
SubMessageCredit = 11,
|
||||
/** MessageCredit充值 */
|
||||
MessageCredit = 12,
|
||||
/** 模板购买 */
|
||||
PurchaseTemplate = 21,
|
||||
}
|
||||
|
||||
/** 支付状态 */
|
||||
export enum PayStatus {
|
||||
/** 初始状态,未完成支付 */
|
||||
Init = 0,
|
||||
/** 支付成功,这是最终状态 */
|
||||
Success = 1,
|
||||
/** 支付失败或关闭,这是最终状态 */
|
||||
Closed = 2,
|
||||
}
|
||||
|
||||
/** 支付侧退款状态 */
|
||||
export enum RefundByType {
|
||||
/** 业务平台发起 */
|
||||
ByBizPlatform = 0,
|
||||
/** 用户发起 */
|
||||
ByUser = 1,
|
||||
}
|
||||
|
||||
/** 支付侧退款状态 */
|
||||
export enum RefundPayStatus {
|
||||
/** 退款中 */
|
||||
Processing = 0,
|
||||
/** 退款成功 */
|
||||
Success = 1,
|
||||
/** 退款失败 */
|
||||
Failed = 2,
|
||||
}
|
||||
|
||||
/** 退款状态 */
|
||||
export enum RefundStatus {
|
||||
/** 退款中 */
|
||||
Processing = 0,
|
||||
/** 退款成功 */
|
||||
Success = 1,
|
||||
/** 退款失败 */
|
||||
Failed = 2,
|
||||
}
|
||||
|
||||
export enum ResourcePackageType {
|
||||
/** 模型TPM */
|
||||
ModelTPM = 1,
|
||||
/** 音色克隆 */
|
||||
VoiceClone = 21,
|
||||
}
|
||||
|
||||
export enum ResourceUsageStrategy {
|
||||
/** 无限制 */
|
||||
UnLimit = 1,
|
||||
/** 限制 */
|
||||
Forbidden = 2,
|
||||
/** 通过额度校验 */
|
||||
ByQuota = 3,
|
||||
}
|
||||
|
||||
/** 业务场景 */
|
||||
export enum Scene {
|
||||
/** 未知 */
|
||||
Unknown = 0,
|
||||
/** Token充值 */
|
||||
TokenCharge = 1,
|
||||
/** Token自动充值 */
|
||||
TokenAutoCharge = 2,
|
||||
/** MessageCredit订阅 */
|
||||
SubMessageCredit = 11,
|
||||
/** MessageCredit充值 */
|
||||
MessageCredit = 12,
|
||||
/** 模板购买 */
|
||||
PurchaseTemplate = 21,
|
||||
/** 音色克隆 */
|
||||
VoiceClone = 100,
|
||||
/** 音色克隆存储 */
|
||||
VoiceCloneStorage = 101,
|
||||
}
|
||||
|
||||
export enum SubscriptionRenewalType {
|
||||
Unknown = 0,
|
||||
/** 手动续费 */
|
||||
ManualRenewal = 1,
|
||||
/** 自动续费 */
|
||||
AutoRenewal = 2,
|
||||
/** 到期不续费续费 */
|
||||
DontRenewal = 3,
|
||||
}
|
||||
|
||||
export enum SubscriptionStatus {
|
||||
/** 初始化 */
|
||||
Init = 0,
|
||||
/** 待支付 */
|
||||
Pending = 1,
|
||||
/** 订阅中 */
|
||||
SUBSCRIBED = 2,
|
||||
/** 已取消 */
|
||||
CANCELED = 3,
|
||||
/** 已终止 */
|
||||
REVOKE = 4,
|
||||
/** 已关闭 */
|
||||
Closed = 5,
|
||||
/** 已过期 */
|
||||
Expired = 6,
|
||||
/** 欠费 */
|
||||
InDebt = 7,
|
||||
}
|
||||
|
||||
export enum SubscriptionType {
|
||||
MessageCredit = 0,
|
||||
}
|
||||
|
||||
/** 订阅 SKU 级别 */
|
||||
export enum SubsMsgCreditLevel {
|
||||
Free = 0,
|
||||
PremiumLite = 10,
|
||||
Premium = 15,
|
||||
PremiumPlus = 20,
|
||||
}
|
||||
|
||||
export enum SubsSKUType {
|
||||
/** 自动续费 */
|
||||
AutoRenew = 0,
|
||||
/** 一次性订阅 */
|
||||
OneOff = 1,
|
||||
}
|
||||
|
||||
export enum TradeSourceType {
|
||||
/** 未知 */
|
||||
Unknown = 0,
|
||||
Bot = 1,
|
||||
}
|
||||
|
||||
export enum UserLevel {
|
||||
/** 免费版。 */
|
||||
Free = 0,
|
||||
/** 海外
|
||||
PremiumLite */
|
||||
PremiumLite = 10,
|
||||
/** Premium */
|
||||
Premium = 15,
|
||||
PremiumPlus = 20,
|
||||
/** 国内
|
||||
V1火山专业版 */
|
||||
V1ProInstance = 100,
|
||||
/** 个人旗舰版 */
|
||||
ProPersonal = 110,
|
||||
/** 团队版 */
|
||||
Team = 120,
|
||||
/** 企业版 */
|
||||
Enterprise = 130,
|
||||
}
|
||||
|
||||
export enum VolcanoUserType {
|
||||
Unknown = 0,
|
||||
RootUser = 1,
|
||||
BasicUser = 2,
|
||||
}
|
||||
|
||||
export enum VolcInstanceType {
|
||||
/** 正常版本 */
|
||||
Normal = 1,
|
||||
/** 渠道版本 */
|
||||
Channel = 2,
|
||||
}
|
||||
|
||||
export interface ChannelInfo {
|
||||
/** 渠道ID */
|
||||
channel_id: string;
|
||||
/** 渠道名称 */
|
||||
channel_name: string;
|
||||
/** 渠道 icon */
|
||||
icon_url: string;
|
||||
}
|
||||
|
||||
export interface CommonCounter {
|
||||
/** 当 Strategy == ByQuota 时, 表示已使用量, 若权益无相关用量数据则返回 0 */
|
||||
used?: number;
|
||||
/** 当 Strategy == ByQuota 时, 表示用量上限 */
|
||||
total?: number;
|
||||
/** 资源使用策略 */
|
||||
strategy?: ResourceUsageStrategy;
|
||||
/** 开始时间,单位秒 */
|
||||
start_at?: Int64;
|
||||
/** 结束时间,单位秒 */
|
||||
end_at?: Int64;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum FulfillType {
|
||||
CozeTokenCharge = 1,
|
||||
}
|
||||
|
||||
export interface GoodsInfo {
|
||||
ProductID?: Int64;
|
||||
SkuID?: Int64;
|
||||
Quantity?: number;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum FollowType {
|
||||
/** 无关系 */
|
||||
Unknown = 0,
|
||||
/** 关注 */
|
||||
Followee = 1,
|
||||
/** 粉丝 */
|
||||
Follower = 2,
|
||||
/** 互相关注 */
|
||||
MutualFollow = 3,
|
||||
}
|
||||
|
||||
export enum UserRole {
|
||||
Unknown = 0,
|
||||
/** 普通版 */
|
||||
Normal = 1,
|
||||
/** 专业版主账号 */
|
||||
ProfessionalRootUser = 2,
|
||||
/** 专业版子账号 */
|
||||
ProfessionalBasicAccount = 3,
|
||||
}
|
||||
|
||||
export interface Price {
|
||||
/** 金额 */
|
||||
amount?: string;
|
||||
/** 币种,如USD、CNY */
|
||||
currency?: string;
|
||||
/** 小数位数 */
|
||||
decimal_num?: number;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,195 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as common from './common';
|
||||
import * as product_common from './product_common';
|
||||
import * as marketplace_common from './marketplace_common';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
/** 订单状态 */
|
||||
export enum OrderOp {
|
||||
Unknown = 0,
|
||||
/** 超时关单 */
|
||||
Close = 1,
|
||||
}
|
||||
|
||||
export interface CreateChargeOrder {
|
||||
/** coze交易单号 */
|
||||
order_id?: string;
|
||||
/** checkout_url */
|
||||
pay_params?: string;
|
||||
}
|
||||
|
||||
export interface CreateChargeOrderRequest {
|
||||
UserID?: string;
|
||||
/** 支付的币种 */
|
||||
currency_code?: string;
|
||||
/** 通常为 sku_id。固定面额时填充 */
|
||||
goods_id?: string;
|
||||
/** 购买数量 */
|
||||
quantity?: number;
|
||||
/** extra 信息 */
|
||||
extra?: string;
|
||||
/** Coze用户 传common文件里的 ConnectorIDBotStudio */
|
||||
UserType?: Int64;
|
||||
Cookie?: string;
|
||||
'Tt-Agw-Client-Ip'?: string;
|
||||
}
|
||||
|
||||
export interface CreateChargeOrderResponse {
|
||||
data?: CreateChargeOrder;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface GetTradeOrder {
|
||||
order_id?: string;
|
||||
scene?: common.Scene;
|
||||
status?: common.OrderStatus;
|
||||
order_type?: common.OrderType;
|
||||
pay_status?: common.PayStatus;
|
||||
}
|
||||
|
||||
export interface GetTradeOrderRequest {
|
||||
order_id: string;
|
||||
/** 是否实时查询支付侧的支付状态(适用于未收到支付回调时) */
|
||||
real_time_pay_status?: boolean;
|
||||
}
|
||||
|
||||
export interface GetTradeOrderResponse {
|
||||
data?: GetTradeOrder;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface Order {
|
||||
OrderID?: string;
|
||||
UserType?: Int64;
|
||||
UserID?: string;
|
||||
Scene?: common.Scene;
|
||||
OrderStatus?: common.OrderStatus;
|
||||
OrderType?: common.OrderType;
|
||||
TotalAmount?: Int64;
|
||||
RealAmount?: Int64;
|
||||
Currency?: string;
|
||||
BizContent?: string;
|
||||
OrderReverseStatus?: common.OrderReverseStatus;
|
||||
PayStatus?: common.PayStatus;
|
||||
CreatedAt?: Int64;
|
||||
}
|
||||
|
||||
export interface PublicCreateChargeOrderRequest {
|
||||
/** 支付的币种 */
|
||||
currency_code?: string;
|
||||
/** 通常为 sku_id。固定面额时填充 */
|
||||
goods_id?: string;
|
||||
/** 购买数量 */
|
||||
quantity?: number;
|
||||
/** extra 信息 */
|
||||
extra?: string;
|
||||
/** 充值场景 */
|
||||
charge_scene?: common.ChargeScene;
|
||||
Cookie?: string;
|
||||
'Tt-Agw-Client-Ip'?: string;
|
||||
}
|
||||
|
||||
export interface PublicCreateChargeOrderResponse {
|
||||
data?: CreateChargeOrder;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface PublicGetTemplatePurchaseOrderListRequest {
|
||||
/** 第一次不用传 */
|
||||
index?: string;
|
||||
/** 每页数量 */
|
||||
count?: Int64;
|
||||
}
|
||||
|
||||
export interface PublicGetTemplatePurchaseOrderListResponse {
|
||||
code?: number;
|
||||
message?: string;
|
||||
data?: TemplatePurchaseOrderData;
|
||||
}
|
||||
|
||||
export interface PublicPlaceOrderRequest {
|
||||
/** 通常为 sku_id。 */
|
||||
goods_id?: string;
|
||||
/** 购买数量 */
|
||||
quantity?: number;
|
||||
/** 模版购买填 PurchaseTemplate */
|
||||
scene?: common.Scene;
|
||||
/** 模版购买后的跳转链接 */
|
||||
return_url?: string;
|
||||
/** 传 product id */
|
||||
product_id?: string;
|
||||
Cookie?: string;
|
||||
'Tt-Agw-Client-Ip'?: string;
|
||||
}
|
||||
|
||||
export interface PublicPlaceOrderResponse {
|
||||
data?: CreateChargeOrder;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface RefundOrder {
|
||||
RefundOrderID?: string;
|
||||
UserType?: Int64;
|
||||
UserID?: string;
|
||||
OrderType?: common.OrderType;
|
||||
RefundStatus?: common.RefundStatus;
|
||||
RefundAmount?: Int64;
|
||||
RefundCurrency?: string;
|
||||
BizContent?: RefundOrderBizContent;
|
||||
}
|
||||
|
||||
export interface RefundOrderBizContent {
|
||||
/** 退款原因 */
|
||||
Reason?: string;
|
||||
}
|
||||
|
||||
export interface TemplatePurchaseOrder {
|
||||
id?: string;
|
||||
order_id?: string;
|
||||
product_icon?: string;
|
||||
product_name?: string;
|
||||
product_desc?: string;
|
||||
order_type?: common.OrderType;
|
||||
amount?: string;
|
||||
currency?: string;
|
||||
product_type?: product_common.ProductEntityType;
|
||||
place_order_user_role?: marketplace_common.UserRole;
|
||||
/** 单位:秒 */
|
||||
purchase_timestamp?: string;
|
||||
/** 商品 id */
|
||||
product_id?: string;
|
||||
}
|
||||
|
||||
export interface TemplatePurchaseOrderData {
|
||||
order_list?: Array<TemplatePurchaseOrder>;
|
||||
/** 是否还有下一页 */
|
||||
has_more?: boolean;
|
||||
/** 下次请求的分页 id */
|
||||
next_index?: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,174 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as common from './common';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface ChargebackCallbackRequest {
|
||||
Body?: Blob;
|
||||
}
|
||||
|
||||
export interface ChargebackCallbackResponse {
|
||||
content?: string;
|
||||
}
|
||||
|
||||
export interface PaymentMethodInfo {
|
||||
payment_type?: string;
|
||||
payment_method?: string;
|
||||
payment_method_id?: string;
|
||||
}
|
||||
|
||||
export interface PipoAgreementDeductionCallbackData {
|
||||
failure_code?: string;
|
||||
failure_message?: string;
|
||||
merchant_id?: string;
|
||||
create_time?: string;
|
||||
merchant_order_id?: string;
|
||||
psp_order_id?: string;
|
||||
currency?: string;
|
||||
amount?: string;
|
||||
status?: string;
|
||||
success_time?: string;
|
||||
psp_agreement_id?: string;
|
||||
payment_method_info?: PaymentMethodInfo;
|
||||
expire_time?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface PipoAgreementDeductionCallbackRequest {
|
||||
event_type?: string;
|
||||
data?: PipoAgreementDeductionCallbackData;
|
||||
Body?: Blob;
|
||||
}
|
||||
|
||||
export interface PipoAgreementDeductionCallbackResponse {
|
||||
ack?: string;
|
||||
}
|
||||
|
||||
export interface PipoCheckoutCallbackData {
|
||||
failure_code?: string;
|
||||
failure_message?: string;
|
||||
merchant_id?: string;
|
||||
merchant_order_id?: string;
|
||||
create_time?: string;
|
||||
psp_order_id?: string;
|
||||
currency?: string;
|
||||
amount?: string;
|
||||
status?: string;
|
||||
success_time?: string;
|
||||
payment_method_info?: PaymentMethodInfo;
|
||||
expire_time?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface PipoCheckoutCallbackRequest {
|
||||
event_type?: string;
|
||||
data?: PipoCheckoutCallbackData;
|
||||
Body?: Blob;
|
||||
}
|
||||
|
||||
export interface PipoCheckoutCallbackResponse {
|
||||
ack?: string;
|
||||
}
|
||||
|
||||
export interface PipoGetPaymentMethodManagementURL {
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface PipoGetPaymentMethodManagementURLRequest {
|
||||
/** Coze用户 传common文件里的 ConnectorIDBotStudio */
|
||||
UserType?: Int64;
|
||||
UserID?: string;
|
||||
/** 如果是协议付/订阅场景,则填充此值 */
|
||||
scene?: common.Scene;
|
||||
'Tt-Agw-Client-Ip'?: string;
|
||||
}
|
||||
|
||||
export interface PipoGetPaymentMethodManagementURLResponse {
|
||||
data?: PipoGetPaymentMethodManagementURL;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface PipoGetUserPaymentMethods {
|
||||
payment_method_list?: Array<PaymentMethodInfo>;
|
||||
}
|
||||
|
||||
export interface PipoGetUserPaymentMethodsRequest {
|
||||
/** Coze用户 传common文件里的 ConnectorIDBotStudio */
|
||||
UserType?: Int64;
|
||||
UserID?: string;
|
||||
/** 支付数额 */
|
||||
Amount?: Int64;
|
||||
/** 币种,如coze_token */
|
||||
Currency?: string;
|
||||
/** 如果是协议付/订阅场景,则填充此值 */
|
||||
scene?: common.Scene;
|
||||
'Tt-Agw-Client-Ip'?: string;
|
||||
}
|
||||
|
||||
export interface PipoGetUserPaymentMethodsResponse {
|
||||
data?: PipoGetUserPaymentMethods;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface PipoGWAgreementDeductionCallbackRequest {
|
||||
Body?: Blob;
|
||||
}
|
||||
|
||||
export interface PipoGWAgreementDeductionCallbackResponse {
|
||||
content?: string;
|
||||
}
|
||||
|
||||
export interface PipoInstantPayCallbackRequest {
|
||||
Body?: Blob;
|
||||
}
|
||||
|
||||
export interface PipoInstantPayCallbackResponse {
|
||||
content?: string;
|
||||
}
|
||||
|
||||
export interface PipoInvoiceCallbackRequest {
|
||||
Body?: Blob;
|
||||
}
|
||||
|
||||
export interface PipoInvoiceCallbackResponse {
|
||||
content?: string;
|
||||
}
|
||||
|
||||
export interface RefundOrderCallbackRequest {
|
||||
Body?: Blob;
|
||||
}
|
||||
|
||||
export interface RefundOrderCallbackResponse {
|
||||
content?: string;
|
||||
}
|
||||
|
||||
export interface SubscriptionNotifyRequest {
|
||||
Body?: Blob;
|
||||
}
|
||||
|
||||
export interface SubscriptionNotifyResponse {
|
||||
content?: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as common from './common';
|
||||
import * as marketplace_common from './marketplace_common';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface GetPricingRulesData {
|
||||
rules?: Array<PricingRule>;
|
||||
}
|
||||
|
||||
export interface GetPricingRulesRequest {
|
||||
scene: common.Scene;
|
||||
coze_account_id?: Int64;
|
||||
coze_account_type?: common.CozeAccountType;
|
||||
}
|
||||
|
||||
export interface GetPricingRulesResponse {
|
||||
data?: GetPricingRulesData;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface PricingRule {
|
||||
rule: common.AmountType;
|
||||
calculation_type: common.DiscountCalculationType;
|
||||
discount: number;
|
||||
minimum: string;
|
||||
maximum: string;
|
||||
unit_price?: marketplace_common.Price;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as marketplace_common from './marketplace_common';
|
||||
import * as common from './common';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum UnitType {
|
||||
YEAR = 1,
|
||||
MONTH = 2,
|
||||
WEEK = 3,
|
||||
DAY = 4,
|
||||
HOUR = 5,
|
||||
MINUTE = 6,
|
||||
}
|
||||
|
||||
export interface ProductInfo {
|
||||
meta_info?: ProductMetaInfo;
|
||||
sku_list?: Array<SKUInfo>;
|
||||
}
|
||||
|
||||
export interface ProductMetaInfo {
|
||||
id?: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
last_listing_at?: string;
|
||||
}
|
||||
|
||||
export interface SKUAttr {
|
||||
key?: string;
|
||||
value?: string;
|
||||
}
|
||||
|
||||
export interface SKUInfo {
|
||||
id?: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
price?: Array<marketplace_common.Price>;
|
||||
attr?: Array<SKUAttr>;
|
||||
/** 订阅类商品才会有 */
|
||||
SubscriptionInfo?: SubscriptionSKUDetail;
|
||||
}
|
||||
|
||||
export interface SubscriptionAutoRenewSKU {
|
||||
/** 购买周期 */
|
||||
billing_period?: SubscriptionPeriod;
|
||||
/** 订阅整个周期数目(trail期和intro期也被计算在内),单位是一个SubscriptionPeriod。续费超过该次数后,不再继续续费。0或不输入均表示不限制。 */
|
||||
billing_period_count?: number;
|
||||
/** 折扣期 */
|
||||
trial_period?: SubscriptionPeriod;
|
||||
/** 折扣期次数(最小为1) */
|
||||
trial_period_count?: number;
|
||||
/** 宽限期 */
|
||||
grade_period?: SubscriptionPeriod;
|
||||
}
|
||||
|
||||
export interface SubscriptionPeriod {
|
||||
/** 时间周期单位,YEAR/MONTH/DAY/HOUR/MINUTE/WEEK */
|
||||
unit?: string;
|
||||
/** 时间周期长度,单位是一个unit */
|
||||
length?: number;
|
||||
unit_type?: UnitType;
|
||||
}
|
||||
|
||||
export interface SubscriptionSKUDetail {
|
||||
sku_type?: common.SubsSKUType;
|
||||
/** 对于SubsMessageCredit:0-Free;10-premium,20-Premium Plus */
|
||||
sku_level?: number;
|
||||
auto_renew_detail?: SubscriptionAutoRenewSKU;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,301 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export enum BotModType {
|
||||
SingleAgent = 1,
|
||||
MultiAgent = 2,
|
||||
}
|
||||
|
||||
export enum Component {
|
||||
UsePlugin = 1,
|
||||
UseWorkFlow = 2,
|
||||
UseKnowledge = 3,
|
||||
UseVoice = 4,
|
||||
UseCard = 5,
|
||||
UseImageWorkflow = 6,
|
||||
}
|
||||
|
||||
export enum ContentType {
|
||||
Markdown = 1,
|
||||
}
|
||||
|
||||
export enum FavoriteListSource {
|
||||
/** 用户自己创建的 */
|
||||
CreatedByMe = 1,
|
||||
}
|
||||
|
||||
/** feedCard */
|
||||
export enum FeedType {
|
||||
/** 推荐用户feed */
|
||||
Recommend = 0,
|
||||
/** 商品发布feed */
|
||||
ProductPublish = 1,
|
||||
/** 商品更新feed */
|
||||
ProductUpdate = 2,
|
||||
/** 官方消息feed */
|
||||
OfficialMessage = 3,
|
||||
}
|
||||
|
||||
export enum InputType {
|
||||
String = 1,
|
||||
Integer = 2,
|
||||
Boolean = 3,
|
||||
Double = 4,
|
||||
List = 5,
|
||||
Object = 6,
|
||||
}
|
||||
|
||||
export enum Origin {
|
||||
PluginAdmin = 1,
|
||||
BotUser = 2,
|
||||
MarketplaceAdmin = 3,
|
||||
/** 举报召回下架 */
|
||||
ReportAdmin = 4,
|
||||
/** 商店渠道下架 */
|
||||
StoreChannel = 5,
|
||||
}
|
||||
|
||||
export enum PluginParamTypeFormat {
|
||||
ImageUrl = 1,
|
||||
}
|
||||
|
||||
export enum PluginType {
|
||||
/** default */
|
||||
CLoudPlugin = 0,
|
||||
LocalPlugin = 1,
|
||||
}
|
||||
|
||||
export enum PriceType {
|
||||
Free = 1,
|
||||
Paid = 2,
|
||||
}
|
||||
|
||||
export enum ProductDraftStatus {
|
||||
/** 默认 */
|
||||
Default = 0,
|
||||
/** 审核中 */
|
||||
Pending = 1,
|
||||
/** 审核通过 */
|
||||
Approved = 2,
|
||||
/** 审核不通过 */
|
||||
Rejected = 3,
|
||||
/** 已废弃 */
|
||||
Abandoned = 4,
|
||||
}
|
||||
|
||||
export enum ProductEntityType {
|
||||
Bot = 1,
|
||||
Plugin = 2,
|
||||
/** Workflow = 3 , */
|
||||
SocialScene = 4,
|
||||
Project = 6,
|
||||
/** 历史工作流,后续不会再有(废弃) */
|
||||
WorkflowTemplate = 13,
|
||||
/** 历史图像流模板,后续不会再有(废弃) */
|
||||
ImageflowTemplate = 15,
|
||||
/** 模板通用标识,仅用于绑定模板相关的配置,不绑定商品 */
|
||||
TemplateCommon = 20,
|
||||
/** Bot 模板 */
|
||||
BotTemplate = 21,
|
||||
/** 工作流模板 */
|
||||
WorkflowTemplateV2 = 23,
|
||||
/** 图像流模板(该类型已下线,合并入 workflow,但历史数据会保留,前端视作 workflow 展示) */
|
||||
ImageflowTemplateV2 = 25,
|
||||
/** 项目模板 */
|
||||
ProjectTemplate = 26,
|
||||
/** coze token 类商品,理论上只会有一个 */
|
||||
CozeToken = 50,
|
||||
/** 订阅 credit 的流量包,理论上只会有一个 */
|
||||
MsgCredit = 55,
|
||||
/** 消息订阅类商品,理论上只有一个 */
|
||||
SubsMsgCredit = 60,
|
||||
Common = 99,
|
||||
/** 专题(兼容之前的设计) */
|
||||
Topic = 101,
|
||||
}
|
||||
|
||||
export enum ProductListingPeriodType {
|
||||
/** 最近一次上架在 7 天前 */
|
||||
CreatedBefore7D = 1,
|
||||
/** 最近一次上架在 7 天内 */
|
||||
UpdatedIn7D = 2,
|
||||
/** 第一次上架在 7 天内 */
|
||||
CreatedIn7D = 3,
|
||||
}
|
||||
|
||||
export enum ProductListSource {
|
||||
/** 推荐列表页 */
|
||||
Recommend = 1,
|
||||
/** 个性化推荐 */
|
||||
CustomizedRecommend = 2,
|
||||
}
|
||||
|
||||
export enum ProductListType {
|
||||
ByAdmin = 1,
|
||||
ByUser = 2,
|
||||
}
|
||||
|
||||
export enum ProductPaidType {
|
||||
Free = 0,
|
||||
Paid = 1,
|
||||
}
|
||||
|
||||
export enum ProductPublishMode {
|
||||
OpenSource = 1,
|
||||
ClosedSource = 2,
|
||||
}
|
||||
|
||||
export enum ProductShareScene {
|
||||
StoreShareBotConversation = 1,
|
||||
HomtShareBotConversation = 2,
|
||||
}
|
||||
|
||||
export enum ProductShareType {
|
||||
BotConversation = 1,
|
||||
}
|
||||
|
||||
export enum ProductStatus {
|
||||
/** 从未上架 */
|
||||
NeverListed = 0,
|
||||
Listed = 1,
|
||||
Unlisted = 2,
|
||||
Banned = 3,
|
||||
}
|
||||
|
||||
export enum ProductUnlistType {
|
||||
ByAdmin = 1,
|
||||
ByUser = 2,
|
||||
}
|
||||
|
||||
export enum ResourceType {
|
||||
/** 项目商品/模板用到的资源 */
|
||||
Plugin = 1,
|
||||
}
|
||||
|
||||
export enum SocialSceneRoleType {
|
||||
Host = 1,
|
||||
PresetBot = 2,
|
||||
Custom = 3,
|
||||
}
|
||||
|
||||
export enum SortType {
|
||||
Heat = 1,
|
||||
Newest = 2,
|
||||
/** 收藏时间 */
|
||||
FavoriteTime = 3,
|
||||
/** 相关性,只用于搜索场景 */
|
||||
Relative = 4,
|
||||
}
|
||||
|
||||
export enum SubscribeSKUType {
|
||||
/** 自动续费 */
|
||||
AutoRenew = 0,
|
||||
/** 一次性订阅 */
|
||||
OneOff = 1,
|
||||
}
|
||||
|
||||
export enum TaskStatus {
|
||||
Running = 1,
|
||||
Succeed = 2,
|
||||
Failed = 3,
|
||||
}
|
||||
|
||||
export enum TopicStatus {
|
||||
/** 创建专题后先置0 */
|
||||
Init = 0,
|
||||
Listed = 1,
|
||||
Unlisted = 2,
|
||||
}
|
||||
|
||||
export enum UIPreviewType {
|
||||
/** UI 预览类型,定义对齐 UI Builder,目前用于 Project
|
||||
网页端 */
|
||||
Web = 1,
|
||||
/** 移动端 */
|
||||
Client = 2,
|
||||
}
|
||||
|
||||
export enum UnitType {
|
||||
YEAR = 1,
|
||||
MONTH = 2,
|
||||
WEEK = 3,
|
||||
DAY = 4,
|
||||
HOUR = 5,
|
||||
MINUTE = 6,
|
||||
}
|
||||
|
||||
export enum UserActionType {
|
||||
UsedProduct = 1,
|
||||
/** 进入过 product 的详情页 */
|
||||
ViewedProduct = 2,
|
||||
}
|
||||
|
||||
export enum UserProductSource {
|
||||
/** 用户发布过的已上架商品 */
|
||||
Listed = 1,
|
||||
/** 用户使用过的商品(比如对话过的Bot) */
|
||||
Used = 2,
|
||||
/** 用户访问过的商品 */
|
||||
Viewed = 3,
|
||||
/** 用户收藏的商品 */
|
||||
Favorite = 4,
|
||||
/** 用户点赞的商品 */
|
||||
Like = 5,
|
||||
}
|
||||
|
||||
export enum VerifyStatus {
|
||||
/** 未认证 */
|
||||
Pending = 1,
|
||||
/** 认证成功 */
|
||||
Succeed = 2,
|
||||
/** 认证失败 */
|
||||
Failed = 3,
|
||||
/** 认证中 */
|
||||
InProgress = 4,
|
||||
}
|
||||
|
||||
export enum WorkflowNodeType {
|
||||
/** 开始 */
|
||||
Start = 1,
|
||||
/** 结束 */
|
||||
End = 2,
|
||||
/** 大模型 */
|
||||
LLM = 3,
|
||||
/** 插件 */
|
||||
Api = 4,
|
||||
/** 代码 */
|
||||
Code = 5,
|
||||
/** 知识库 */
|
||||
Dataset = 6,
|
||||
/** 选择器 */
|
||||
If = 8,
|
||||
/** 工作流 */
|
||||
SubWorkflow = 9,
|
||||
/** 变量 */
|
||||
Variable = 11,
|
||||
/** 数据库 */
|
||||
Database = 12,
|
||||
/** 消息 */
|
||||
Message = 13,
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface GetTradeConf {
|
||||
/** 场景开关。0-关闭;1-开启。当前支持 trade_available(交易可用性),根据国家限制; */
|
||||
scene_switch?: Record<string, number>;
|
||||
}
|
||||
|
||||
export interface GetTradeConfRequest {
|
||||
/** 场景列表,不填默认返回全部SceneSwitch。当前支持 trade_available(交易可用性); */
|
||||
scenes?: Array<string>;
|
||||
'Tt-Agw-Client-Ip'?: string;
|
||||
}
|
||||
|
||||
export interface GetTradeConfResponse {
|
||||
data?: GetTradeConf;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
/* eslint-enable */
|
||||
@@ -0,0 +1,513 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import * as product_common from './product_common';
|
||||
import * as common from './common';
|
||||
import * as product from './product';
|
||||
|
||||
export type Int64 = string | number;
|
||||
|
||||
export interface AdminGetSubscriptionProductDetailData {
|
||||
product_info?: SubscriptionProductDetail;
|
||||
is_hit_ppe?: boolean;
|
||||
is_activated?: boolean;
|
||||
version_code?: number;
|
||||
}
|
||||
|
||||
export interface AdminGetSubscriptionProductDetailRequest {
|
||||
product_type: product_common.ProductEntityType;
|
||||
product_id?: string;
|
||||
}
|
||||
|
||||
export interface AdminGetSubscriptionProductDetailResponse {
|
||||
data?: AdminGetSubscriptionProductDetailData;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface BenefitItem {
|
||||
name?: string;
|
||||
use_mode?: common.BenefitUseMode;
|
||||
/** 可用额度 */
|
||||
quota?: number;
|
||||
/** 已使用额度 */
|
||||
used?: number;
|
||||
/** 单次消耗额度 */
|
||||
quota_once_cost?: number;
|
||||
icon_url?: string;
|
||||
}
|
||||
|
||||
export interface BounsCredit {
|
||||
name?: string;
|
||||
quota?: number;
|
||||
expired_at?: string;
|
||||
}
|
||||
|
||||
export interface CancelSubscription {
|
||||
subscribe_id?: string;
|
||||
}
|
||||
|
||||
export interface CollaborateQuota {
|
||||
/** 协作者数量。-1标识无限制 */
|
||||
collaborators_quota?: number;
|
||||
/** 协作机器人数量。-1标识无限制 */
|
||||
collaborative_bots_quota?: number;
|
||||
/** 协作工作流数量。-1标识无限制 */
|
||||
collaborative_workflows_quota?: number;
|
||||
}
|
||||
|
||||
export interface CostRule {
|
||||
type?: common.ChargeableEntityType;
|
||||
name?: string;
|
||||
items?: Array<CostRuleItem>;
|
||||
tips_link?: string;
|
||||
}
|
||||
|
||||
export interface CostRuleItem {
|
||||
name?: string;
|
||||
icon_url?: string;
|
||||
price_list?: Array<CostRulePrice>;
|
||||
}
|
||||
|
||||
export interface CostRulePrice {
|
||||
usage_quantity?: number;
|
||||
usage_unit?: string;
|
||||
cost_quantity?: number;
|
||||
cost_unit?: string;
|
||||
}
|
||||
|
||||
export interface CreateSubscription {
|
||||
/** 订阅单号 */
|
||||
subscribe_id?: string;
|
||||
/** 跳转链接 */
|
||||
subscribe_params?: string;
|
||||
}
|
||||
|
||||
export interface CreditDetail {
|
||||
credit_type?: common.CreditType;
|
||||
expired_at?: string;
|
||||
/** 总额度 */
|
||||
total_quota?: number;
|
||||
/** 余额 */
|
||||
remain_quota?: number;
|
||||
/** 是否是正在使用的 */
|
||||
is_in_use?: boolean;
|
||||
/** bouns 特有 */
|
||||
bouns_details?: Array<BounsCredit>;
|
||||
}
|
||||
|
||||
export interface GetSubscriptionRecordRequest {
|
||||
subscribe_id?: string;
|
||||
/** 是否实时查询支付侧的支付状态(适用于未收到支付回调时) */
|
||||
real_time_subs_status?: boolean;
|
||||
}
|
||||
|
||||
export interface GetSubscriptionRecordResponse {
|
||||
data?: SubscriptionRecordInfo;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface MemberVersionRights {
|
||||
/** 配置对应套餐版本 */
|
||||
member_version?: common.UserLevel;
|
||||
/** 配置名称 */
|
||||
configuration_name?: string;
|
||||
/** 配置备注 */
|
||||
configuration_remark?: string;
|
||||
/** 购买链接 */
|
||||
purchase_link?: PurchaseLink;
|
||||
/** 价格信息 */
|
||||
price_info?: PriceInfo;
|
||||
/** 权益概览 */
|
||||
right_overview?: Array<string>;
|
||||
/** 权益列表 */
|
||||
right_list?: Array<RightDetail>;
|
||||
}
|
||||
|
||||
export interface PackageContent {
|
||||
content?: string;
|
||||
}
|
||||
|
||||
export interface PackageItemDetail {
|
||||
name?: string;
|
||||
items?: Array<PackageContent>;
|
||||
}
|
||||
|
||||
/** 价格信息 */
|
||||
export interface PriceInfo {
|
||||
/** 月付价格 */
|
||||
monthly_price?: number;
|
||||
/** 月付原价 */
|
||||
monthly_orgin_price?: number;
|
||||
/** 年付价格 */
|
||||
annual_price?: number;
|
||||
/** 年付原价 */
|
||||
annual_orgin_price?: number;
|
||||
/** 年付折扣 */
|
||||
annual_discount?: number;
|
||||
/** 年付每月价格 */
|
||||
annual_per_month_price?: number;
|
||||
/** 年付折扣差价 */
|
||||
annual_discount_price?: number;
|
||||
}
|
||||
|
||||
export interface PublicCancelSubscriptionRequest {
|
||||
subscribe_id?: string;
|
||||
/** 用于风控 */
|
||||
Cookie?: string;
|
||||
'Tt-Agw-Client-Ip'?: string;
|
||||
}
|
||||
|
||||
export interface PublicCancelSubscriptionResponse {
|
||||
data?: CancelSubscription;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface PublicCreateSubscriptionRequest {
|
||||
/** 通常为 sku_id。 */
|
||||
goods_id?: string;
|
||||
/** 升降级时,传入原订阅单号 */
|
||||
pre_subscription_id?: string;
|
||||
/** 来源渠道,用于跳转对应渠道绑定页面 */
|
||||
channel?: string;
|
||||
/** 订阅导流实体类型 */
|
||||
source_type?: common.TradeSourceType;
|
||||
/** 订阅导流实体ID */
|
||||
source_id?: string;
|
||||
/** 用于风控 */
|
||||
Cookie?: string;
|
||||
'Tt-Agw-Client-Ip'?: string;
|
||||
}
|
||||
|
||||
export interface PublicCreateSubscriptionResponse {
|
||||
data?: CreateSubscription;
|
||||
code: number;
|
||||
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;
|
||||
}
|
||||
|
||||
export interface PublicGetSubscriptionDetailResponse {
|
||||
data?: SubscriptionDetail;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface PublicGetSubscriptionDetailV2Request {
|
||||
/** 不传仅返回用户信息 */
|
||||
benefit_types?: Array<common.BenefitType>;
|
||||
/** 必填。这里指的是Coze的AccountID */
|
||||
coze_account_id?: string;
|
||||
/** 这里指的是Coze的AccountType */
|
||||
coze_account_type?: common.CozeAccountType;
|
||||
/** 是否需要返回资源包信息 */
|
||||
with_resource_package?: boolean;
|
||||
}
|
||||
|
||||
export interface PublicGetSubscriptionDetailV2Response {
|
||||
data?: SubscriptionDetailV2;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface PublicGetSubscriptionProductDetailRequest {
|
||||
product_type?: product_common.ProductEntityType;
|
||||
}
|
||||
|
||||
export interface PublicGetSubscriptionProductDetailResponse {
|
||||
data?: SubscriptionProductDetail;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface PublicGetSubscriptionProductDetailV2Request {
|
||||
/** 这里指的是Coze的AccountID, 不传则返回默认套餐价格 */
|
||||
coze_account_id?: string;
|
||||
/** 这里指的是Coze的AccountType */
|
||||
coze_account_type?: common.CozeAccountType;
|
||||
}
|
||||
|
||||
export interface PublicGetSubscriptionProductDetailV2Response {
|
||||
data?: SubscriptionProductDetailV2;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface PublicReSubscriptionRequest {
|
||||
subscribe_id?: string;
|
||||
/** 用于风控 */
|
||||
Cookie?: string;
|
||||
'Tt-Agw-Client-Ip'?: string;
|
||||
}
|
||||
|
||||
export interface PublicReSubscriptionResponse {
|
||||
data?: SubscriptionDetail;
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
/** 购买链接 */
|
||||
export interface PurchaseLink {
|
||||
/** pc端新购链接 */
|
||||
pc_new_link?: string;
|
||||
/** app端新购链接 */
|
||||
app_new_link?: string;
|
||||
/** pc端更配链接 */
|
||||
pc_modify_link?: string;
|
||||
/** app端更配链接 */
|
||||
app_modify_link?: string;
|
||||
/** pc端年付新购链接 */
|
||||
pc_annual_new_link?: string;
|
||||
/** app端年付新购链接 */
|
||||
app_annual_new_link?: string;
|
||||
}
|
||||
|
||||
export interface ResourcePackage {
|
||||
/** 资源包详情 */
|
||||
detail?: ResourcePackageDetail;
|
||||
/** 资源包类型 */
|
||||
package_type?: common.ResourcePackageType;
|
||||
/** 明细 */
|
||||
item?: Array<ResourcePackageDetail>;
|
||||
}
|
||||
|
||||
export interface ResourcePackageDetail {
|
||||
package_name: string;
|
||||
package_type: common.ResourcePackageType;
|
||||
/** 开始时间,单位秒 */
|
||||
start_at?: Int64;
|
||||
/** 结束时间,单位秒 */
|
||||
end_at?: Int64;
|
||||
/** 总额度 */
|
||||
total_quota?: number;
|
||||
/** 余额 */
|
||||
remain_quota?: number;
|
||||
input_quota?: Int64;
|
||||
output_quota?: Int64;
|
||||
}
|
||||
|
||||
export interface ResourcePointRatio {
|
||||
/** 资源点数量 */
|
||||
point?: Int64;
|
||||
/** 资源点数量对应的价格,如 1元 = 1000 Point,则 Point = 1000,Price = 1 */
|
||||
price?: Int64;
|
||||
/** 币种,如USD、CNY */
|
||||
currency?: string;
|
||||
/** 小数位数 */
|
||||
decimal_num?: number;
|
||||
}
|
||||
|
||||
/** 权益详情 */
|
||||
export interface RightDetail {
|
||||
/** 权益类别编码 */
|
||||
right_type_code?: string;
|
||||
/** 权益类别名称 */
|
||||
right_type_name?: string;
|
||||
/** 权益类别备注 */
|
||||
right_type_remark?: string;
|
||||
/** 权益列表 */
|
||||
right?: Array<RightDetailItem>;
|
||||
}
|
||||
|
||||
/** 权益 */
|
||||
export interface RightDetailItem {
|
||||
/** 权益编码 */
|
||||
right_code?: string;
|
||||
/** 权益名称 */
|
||||
right_name?: string;
|
||||
/** 权益备注 */
|
||||
right_remark?: string;
|
||||
/** 权益展示值 */
|
||||
right_show_value?: Array<RightShowValue>;
|
||||
/** 权益值列表 */
|
||||
right_value_list?: Array<RightValue>;
|
||||
}
|
||||
|
||||
export interface RightShowValue {
|
||||
/** 权益值类型: string:字符, bool: 布尔类型 */
|
||||
type?: string;
|
||||
/** 名称 */
|
||||
value?: string;
|
||||
}
|
||||
|
||||
/** 权益值 */
|
||||
export interface RightValue {
|
||||
/** 编码 */
|
||||
code?: string;
|
||||
/** 名称 */
|
||||
name?: string;
|
||||
/** 值 */
|
||||
value?: string;
|
||||
/** 单位 */
|
||||
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;
|
||||
/** 总Message Credit额度 */
|
||||
total_quota?: number;
|
||||
/** 总已使用额度 */
|
||||
used_quota?: number;
|
||||
/** model */
|
||||
benefit_items?: Array<BenefitItem>;
|
||||
/** plugin */
|
||||
plugin_benefit_items?: Array<BenefitItem>;
|
||||
}
|
||||
|
||||
export interface SubscriptionDetail {
|
||||
subscribe_id?: string;
|
||||
subscribe_type?: common.SubscriptionType;
|
||||
status?: common.SubscriptionStatus;
|
||||
sku_detail?: product.SKUInfo;
|
||||
benefit_detail?: Array<SubscriptionBenefitDetail>;
|
||||
plan?: SubscriptionPlan;
|
||||
credit_details?: Array<CreditDetail>;
|
||||
/** 下列字段只有 CN 有 */
|
||||
cost_rules?: Array<CostRule>;
|
||||
resource_point_ratio?: ResourcePointRatio;
|
||||
}
|
||||
|
||||
export interface SubscriptionDetailV2 {
|
||||
/** 用户基本信息 */
|
||||
user_basic_info?: UserBasicInfo;
|
||||
benefit_type_infos?: Partial<
|
||||
Record<common.BenefitType, common.CommonCounter>
|
||||
>;
|
||||
resource_packages?: Array<ResourcePackage>;
|
||||
/** 续费信息 */
|
||||
renewal_info?: SubscriptionRenewalInfo;
|
||||
}
|
||||
|
||||
export interface SubscriptionPlan {
|
||||
active_time?: string;
|
||||
expire_time?: string;
|
||||
}
|
||||
|
||||
export interface SubscriptionProductDetail {
|
||||
/** 订阅商品及套餐(SKU)信息 */
|
||||
product_info: product.ProductInfo;
|
||||
/** 用户订阅信息 */
|
||||
subs_user?: Record<Int64, SubscriptionUserInfo>;
|
||||
/** 订阅Message Credit权益 */
|
||||
benefit_info?: Record<Int64, SubscriptionBenefitDetail>;
|
||||
/** 是否有试用 */
|
||||
has_trial?: boolean;
|
||||
/** 订阅会员相关联权益 */
|
||||
relate_benefit?: Record<Int64, SubscriptionRelateBenefit>;
|
||||
/** 套餐详情 */
|
||||
package_item_details?: Record<Int64, Array<PackageItemDetail>>;
|
||||
}
|
||||
|
||||
export interface SubscriptionProductDetailV2 {
|
||||
/** 会员权益集合 */
|
||||
member_version_rights?: Array<MemberVersionRights>;
|
||||
}
|
||||
|
||||
export interface SubscriptionRecordInfo {
|
||||
subscribe_id?: string;
|
||||
subscribe_type?: common.SubscriptionType;
|
||||
/** Closed标识订阅支付失败 */
|
||||
status?: common.SubscriptionStatus;
|
||||
}
|
||||
|
||||
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套餐,无该字段 */
|
||||
subscribe_id?: string;
|
||||
}
|
||||
|
||||
export interface UserBasicInfo {
|
||||
user_level?: common.UserLevel;
|
||||
/** 火山账户信息。CN返回 */
|
||||
volc_account_info?: VolcAccountInfo;
|
||||
/** 火山用户信息。CN返回 */
|
||||
volc_user_info?: VolcUserInfo;
|
||||
}
|
||||
|
||||
export interface VolcAccountInfo {
|
||||
/** 火山账户ID */
|
||||
account_id?: Int64;
|
||||
/** 是否为火山专业版账户,即是否开通过,当UserLevel in (100,110,120,130)时为true(即使账户关停回收仍为true) */
|
||||
is_volcano_pro_account?: boolean;
|
||||
/** 实例ID */
|
||||
instance_id?: string;
|
||||
/** 扣子专业版是否可用(含套餐及存量专业版)。存量专业版仅返回此字段 */
|
||||
coze_instance_status?: common.AccountStatus;
|
||||
/** 套餐(实例)状态。仅订阅套餐返回此字段 */
|
||||
instance_status?: common.InstanceStatus;
|
||||
/** 套餐(实例)是否受限(欠费)。仅订阅套餐返回此字段 */
|
||||
limit_status?: common.InstanceLimitStatus;
|
||||
/** 火山用户类型 */
|
||||
volcano_user_type?: common.VolcanoUserType;
|
||||
/** 权益生效时间(秒级) */
|
||||
start_at?: Int64;
|
||||
/** 权益失效时间(秒级) */
|
||||
end_at?: Int64;
|
||||
/** 套餐对应周期资源包实例Id,如果用户购买的是仅版本,则该字段为空 */
|
||||
period_pack_instance_id?: string;
|
||||
}
|
||||
|
||||
export interface VolcUserInfo {
|
||||
/** 火山身份中心实例ID */
|
||||
volc_auth_instance_id?: string;
|
||||
/** 火山用户等级 */
|
||||
volc_user_level?: common.UserLevel;
|
||||
/** 火山用户实例版本 */
|
||||
volc_instance_type?: common.VolcInstanceType;
|
||||
}
|
||||
/* eslint-enable */
|
||||
Reference in New Issue
Block a user