feat: manually mirror opencoze's code from bytedance

Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
fanlv
2025-07-20 17:36:12 +08:00
commit 890153324f
14811 changed files with 1923430 additions and 0 deletions

View File

@@ -0,0 +1,214 @@
/*
* 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 audit from './namespaces/audit';
import * as counter from './namespaces/counter';
import * as flow_platform_audit_common from './namespaces/flow_platform_audit_common';
import * as marketplace_common from './namespaces/marketplace_common';
import * as report_admin_api from './namespaces/report_admin_api';
import * as report_common from './namespaces/report_common';
import * as report_public_api from './namespaces/report_public_api';
import * as user_common from './namespaces/user_common';
import * as user_public_api from './namespaces/user_public_api';
import * as user_rpc from './namespaces/user_rpc';
export {
audit,
counter,
flow_platform_audit_common,
marketplace_common,
report_admin_api,
report_common,
report_public_api,
user_common,
user_public_api,
user_rpc,
};
export * from './namespaces/audit';
export * from './namespaces/counter';
export * from './namespaces/flow_platform_audit_common';
export * from './namespaces/marketplace_common';
export * from './namespaces/report_admin_api';
export * from './namespaces/report_common';
export * from './namespaces/report_public_api';
export * from './namespaces/user_common';
export * from './namespaces/user_public_api';
export * from './namespaces/user_rpc';
export type Int64 = string | number;
export default class BasicApiService<T> {
private request: any = () => {
throw new Error('BasicApiService.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/user/v2/update_profile_check
*
* == 用户信息 ==
*
* -- http --
*/
PublicUpdateUserProfileCheck(
req?: user_public_api.UpdateUserProfileCheckRequest,
options?: T,
): Promise<user_public_api.UpdateUserProfileCheckResponse> {
const _req = req || {};
const url = this.genBaseURL('/api/user/v2/update_profile_check');
const method = 'POST';
const data = { user_unique_name: _req['user_unique_name'] };
return this.request({ url, method, data }, options);
}
/** GET /api/user/v2/get_profile */
PublicGetUserProfile(
req?: user_public_api.GetUserProfileRequest,
options?: T,
): Promise<user_public_api.GetUserProfileResponse> {
const _req = req || {};
const url = this.genBaseURL('/api/user/v2/get_profile');
const method = 'GET';
const params = { user_id: _req['user_id'], bid: _req['bid'] };
const headers = { Cookie: _req['Cookie'] };
return this.request({ url, method, params, headers }, options);
}
/** POST /api/user/v2/update_profile */
PublicUpdateUserProfile(
req?: user_public_api.UpdateUserProfileRequest,
options?: T,
): Promise<user_public_api.UpdateUserProfileResponse> {
const _req = req || {};
const url = this.genBaseURL('/api/user/v2/update_profile');
const method = 'POST';
const data = {
user_unique_name: _req['user_unique_name'],
name: _req['name'],
avatar: _req['avatar'],
signature: _req['signature'],
};
const headers = { Cookie: _req['Cookie'] };
return this.request({ url, method, data, headers }, options);
}
/**
* GET /api/report/get_meta
*
* 查询举报元数据
*/
GetReportMeta(
req?: report_public_api.GetReportMetaRequest,
options?: T,
): Promise<report_public_api.GetReportMetaResponse> {
const url = this.genBaseURL('/api/report/get_meta');
const method = 'GET';
return this.request({ url, method }, options);
}
/**
* GET /api/report/query
*
* 查询举报信息
*/
ReportQuery(
req?: report_admin_api.ReportQueryRequest,
options?: T,
): Promise<report_admin_api.ReportQueryResponse> {
const _req = req || {};
const url = this.genBaseURL('/api/report/query');
const method = 'GET';
const params = {
object_id_list: _req['object_id_list'],
object_type: _req['object_type'],
report_time_begin: _req['report_time_begin'],
report_time_end: _req['report_time_end'],
report_uid: _req['report_uid'],
page_num: _req['page_num'],
page_size: _req['page_size'],
};
return this.request({ url, method, params }, options);
}
/**
* POST /api/report/submit
*
* == 举报 ==
*
* -- http --
*
* 举报
*/
ReportSubmit(
req?: report_public_api.ReportSubmitRequest,
options?: T,
): Promise<report_public_api.ReportSubmitResponse> {
const _req = req || {};
const url = this.genBaseURL('/api/report/submit');
const method = 'POST';
const data = {
object_type: _req['object_type'],
object_id: _req['object_id'],
detail: _req['detail'],
};
const headers = { Cookie: _req['Cookie'] };
return this.request({ url, method, data, headers }, options);
}
/** GET /api/report/get_report_times */
GetReportTimes(
req?: report_admin_api.GetReportTimesRequest,
options?: T,
): Promise<report_admin_api.GetReportTimesResponse> {
const _req = req || {};
const url = this.genBaseURL('/api/report/get_report_times');
const method = 'GET';
const params = {
object_id_list: _req['object_id_list'],
object_type: _req['object_type'],
};
return this.request({ url, method, params }, options);
}
}
/* eslint-enable */

View File

@@ -0,0 +1,32 @@
/*
* 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 AuditMode {
/** 默认 */
Unknown = 0,
/** 人审 */
Manual = 1,
/** 机审 */
Machine = 2,
}
/* eslint-enable */

View File

@@ -0,0 +1,31 @@
/*
* 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 CountOpType {
/** count key 存在就会将原有的值加上新值 */
Incr = 1,
/** count key 不存在就会设置新值, 存在也会被替换为新值 */
Set = 2,
}
/* eslint-enable */

View File

@@ -0,0 +1,260 @@
/*
* 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 AuditStatus {
/** 默认 */
Default = 0,
/** 审核中 */
Pending = 1,
/** 审核通过 */
Approved = 2,
/** 审核不通过 */
Rejected = 3,
/** 已废弃 */
Abandoned = 4,
/** 异常 */
Failed = 99,
}
export enum AuditType {
ProductDraft = 10,
/** 用户 */
UserProfile = 18,
/** 分享对话 */
ConversationShared = 19,
/** 推荐对话 */
Conversation = 20,
InterationPost = 21,
InterationComment = 22,
ProductWorkFlow = 23,
ProductBot = 24,
ProductPlugin = 25,
ImageFlowUploadImages = 26,
ImageFlowTestRun = 27,
ImageFlowPluginOutput = 28,
DataEngineKnowledge = 29,
BotAvatar = 30,
BotPublishSingleBot = 31,
BotPublishMultiAgent = 32,
BotPublishPlugin = 33,
BotPublishWorkflow = 34,
BotModify = 35,
BotCreate = 36,
BotWorkflowAsAgentPublish = 37,
BotWorkflowAsAgentModify = 38,
BotSingleAgentModify = 39,
SocietyCreate = 40,
SocietyPublish = 41,
SocietyRoleCreate = 42,
SocietyPrePublish = 43,
ProductSociety = 44,
ProductImageFlow = 46,
PluginImageGenerateInput = 48,
PluginImageGenerateOutputImage = 49,
PluginImageGenerateOutputVideo = 50,
PluginCreate = 51,
PluginModify = 52,
VariableModify = 53,
CardInfo = 60,
AgentAppWriter = 80,
/** 模型广场对战Query */
ModelArenaQuery = 81,
/** 消息链路追踪 */
MessageTrace = 82,
/** 资源库Prompt */
ResourcePrompt = 83,
/** ProjectIDE修改 */
ProjectIDEModify = 84,
/** Bot 模板 */
TemplateBot = 85,
/** 工作流模板 */
TemplateWorkflow = 86,
/** Project 模板 */
TemplateProject = 87,
/** Project 商品 */
ProductProject = 88,
/** Project 发布 */
ProjectPublish = 89,
/** Project UI Builder */
ProjectUIBuilder = 90,
/** 工作流运行时输入 */
WorkflowRuntimeInput = 100,
/** 语音运行时输入 */
AudioRuntimeInput = 101,
/** 语音资源 */
AudioVoiceResource = 102,
/** 模型微调输入 */
ModelFinetuneInput = 103,
/** OpenAPI图片上传 */
OpenAPIImageUpload = 104,
/** App (Project) 音频 */
AppAudio = 105,
/** 企业创建/修改 */
EnterpriseModify = 106,
CozeLoopPEModify = 107,
CozeLoopExptModify = 108,
CozeLoopDatasetModify = 109,
CozeLoopEvaluatorModify = 110,
/** CozeSpace */
CozeSpaceQuery = 111,
/** CozeSpace 回答 */
CozeSpaceAnswer = 112,
/** CozeSpace TraeBuilder Query */
CozeSpaceTraeBuilderQuery = 113,
/** CozeSpace TraeBuilder 回答 */
CozeSpaceTraeBuilderAnswer = 114,
/** CozeSpace web搜索 Query */
CozeSpaceSearchWebQuery = 115,
/** CozeSpace web搜索 Answer */
CozeSpaceSearchWebAnswer = 116,
/** CozeSpace Img搜索 Query */
CozeSpaceSearchImgQuery = 117,
/** CozeSpace Img搜索 Answer */
CozeSpaceSearchImgAnswer = 118,
/** CozeSpace 定时任务 Query */
CozeSpaceScheduleTaskQuery = 119,
/** 声纹创建/修改 */
VoicePrintGroup = 120,
/** 声纹特征创建/修改 */
VoicePrintGroupFeature = 121,
/** 视频生成输入 */
VideoGenerateInput = 122,
/** CozeSpace PPT Agent 修改 */
CozeSpacePPTAgentModify = 123,
}
export enum QueueType {
/** 默认队列 */
Default = 0,
/** 召回队列 */
Recall = 1,
/** 举报队列 */
Report = 2,
/** 离线召回 */
Review = 3,
}
export enum RefuseReason {
/** 其他 */
Other = 0,
/** 引流广告 */
Ad = 1,
/** 引人不适 */
Uncomfortable = 2,
/** 违法违规 */
Illegal = 3,
/** 宗教邪教 */
Cult = 4,
/** 公序良俗 */
Morals = 5,
/** 色情低俗 */
Porn = 6,
/** 涉领导人 */
Leaders = 7,
/** 党政敏感 */
SensitiveParty = 8,
/** 隐私政策包含无效内容(如链接失效、打不开,联系方式无效) */
InvalidContent = 9,
/** 违规链接 */
LinksIllegal = 10,
}
export enum ReviewRefuseModule {
/** Bot 1XXX */
BotPublish = 1000,
BotPublishBotIcon = 1001,
BotPublishBotName = 1002,
BotPublishBotDesc = 1003,
BotPublishBotPrompt = 1004,
BotPublishBotDatabase = 1005,
BotPublishBotTask = 1006,
BotPublishBotOnboardingPrologue = 1007,
BotPublishBotOnboardingSuggestedQuestions = 1008,
BotPublishBotSuggestReply = 1009,
BotPublishBotBackgroundImage = 1010,
BotPublishBotShortcutCommandList = 1011,
BotPublishBotQueryCollectConf = 1012,
BotPublishSimpleAgentName = 1013,
BotPublishSimpleAgentPrompt = 1014,
BotPublishSimpleAgentScene = 1015,
BotPublishSimpleAgentSkills = 1016,
BotPublishSimpleAgentSuggestReplyInfo = 1017,
BotPublishBotAgentBotIcon = 1018,
BotPublishBotAgentBotName = 1019,
BotPublishBotAgentScene = 1020,
BotPublishBotAgentSuggestReplyInfo = 1021,
BotPublishGlobalJumpConditions = 1022,
BotPublishPlugin = 1200,
BotPublishWorkflow = 1300,
/** ProductPlugin 22XX */
ProductPlugin = 2200,
ProductPluginProductInfo = 2201,
ProductPluginPluginInfo = 2202,
ProductPluginAPIs = 2203,
/** ProductWorkflow 23XX */
ProductWorkflow = 2300,
/** ProductImageFlow 24XX */
ProductImageFlow = 2400,
/** InteractionPost 31XX */
InteractionPost = 3100,
/** InteractionComment 32XX */
InteractionComment = 3200,
/** Society 4XXX */
Society = 4000,
SocietyBasicInfoIcon = 4001,
SocietyBasicInfoName = 4002,
SocietyBasicInfoDesc = 4003,
SocietyBasicInfoPrompt = 4004,
SocietyHostInfoIcon = 4005,
SocietyHostInfoName = 4006,
SocietyHostInfoDesc = 4007,
SocietyRoleInfoIcon = 4008,
SocietyRoleInfoName = 4009,
SocietyRoleInfoDesc = 4010,
SocietyRoleInfoNickName = 4011,
/** Project 5XXX */
Project = 5000,
ProjectBasicInfoName = 5001,
ProjectBasicInfoDesc = 5002,
ProjectBasicInfoIcon = 5003,
ProjectPlugin = 5100,
ProjectWorkflow = 5200,
ProjectUI = 5300,
ProjectData = 5400,
}
export interface AuditExtra {
AuditContext?: string;
OperationMap?: Record<string, Array<string>>;
QueueType?: QueueType;
}
export interface AuditRecord {
ObjectID: Int64;
AuditType: AuditType;
AuditStatus: AuditStatus;
Extra?: AuditExtra;
FailedReason?: string;
ReqID?: string;
}
/* eslint-enable */

View File

@@ -0,0 +1,67 @@
/*
* 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 AuditStatus {
/** 默认 */
Default = 0,
/** 审核中 */
Pending = 1,
/** 审核通过 */
Approved = 2,
/** 审核不通过 */
Rejected = 3,
/** 已废弃 */
Abandoned = 4,
}
export enum AuditType {
ProductDraft = 10,
Conversation = 20,
}
export enum AuditVisibility {
Invisible = 10,
Self = 15,
AllWithoutRecommend = 20,
All = 25,
}
export enum EntityType {
Bot = 1,
Plugin = 2,
CozeToken = 50,
Common = 99,
}
export interface AuditExtra {
AuditVisibility?: AuditVisibility;
}
export interface AuditRecord {
ObjectID: Int64;
AuditType: AuditType;
Version?: string;
AuditStatus: AuditStatus;
Extra?: AuditExtra;
}
/* eslint-enable */

View File

@@ -0,0 +1,81 @@
/*
* 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 report_common from './report_common';
import * as flow_platform_audit_common from './flow_platform_audit_common';
export type Int64 = string | number;
export interface GetReportTimesData {
report_times_datas?: Record<Int64, ReportTimesData>;
}
export interface GetReportTimesRequest {
object_id_list?: Array<string>;
object_type?: report_common.ReportObjectType;
}
export interface GetReportTimesResponse {
code: number;
message: string;
data?: GetReportTimesData;
}
export interface ReportData {
object_id: string;
object_type: report_common.ReportObjectType;
reason_codes_str: Array<string>;
report_uid?: string;
report_id?: string;
report_user_name?: string;
report_time?: string;
report_object_name?: string;
report_task_id?: string;
report_status?: report_common.ReportEventStatus;
audit_status?: flow_platform_audit_common.AuditStatus;
}
export interface ReportQueryData {
report_datas?: Array<ReportData>;
total_count?: number;
}
export interface ReportQueryRequest {
object_id_list?: Array<string>;
object_type?: report_common.ReportObjectType;
report_time_begin?: Int64;
report_time_end?: Int64;
report_uid?: Int64;
page_num?: number;
page_size?: number;
}
export interface ReportQueryResponse {
code: number;
message: string;
data?: ReportQueryData;
}
export interface ReportTimesData {
total_report_times?: number;
current_report_times?: number;
}
/* eslint-enable */

View File

@@ -0,0 +1,49 @@
/*
* 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 ReportEventStatus {
NotProcessed = 1,
Processing = 2,
Processed = 3,
}
export enum ReportObjectType {
ProductBot = 1,
ProductPlugin = 2,
ProductWorkflow = 3,
ProductImageFlow = 4,
ProductSociety = 5,
InteractionPost = 6,
InteractionComment = 7,
/** 模板举报 */
TemplateBot = 8,
TemplateWorkflow = 9,
TemplateImageFlow = 10,
TemplateProject = 11,
/** Project 商品 */
ProductProject = 12,
/** 模板通用标识,由于前端不需要区分是哪一种模板,所以统一用这个进行筛选和展示
该配型不会触发任何举报的业务逻辑,仅用于前端展示使用 */
TemplateCommon = 99,
}
/* eslint-enable */

View File

@@ -0,0 +1,61 @@
/*
* 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 report_common from './report_common';
export type Int64 = string | number;
export interface GetReportMetaRequest {}
export interface GetReportMetaResponse {
code: number;
message: string;
data?: ReportMetaData;
}
export interface ReportDetail {
description?: string;
/** uri */
images?: Array<string>;
reason_codes?: Array<number>;
}
export interface ReportMetaData {
report_reasons?: Array<ReportReason>;
}
export interface ReportReason {
reason_code: number;
starling_key: string;
}
export interface ReportSubmitRequest {
object_type?: report_common.ReportObjectType;
object_id?: string;
detail?: ReportDetail;
Cookie?: string;
}
export interface ReportSubmitResponse {
code: number;
message: string;
}
/* eslint-enable */

View File

@@ -0,0 +1,75 @@
/*
* 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;
/** DEFAULT是默认状态若ReviewResult.Result=CheckType.DEFAULT可以跳过
表示业务方未传入该字段
copy from: */
export enum CheckType {
DEFAULT = 0,
PASS = 1,
REVIEW = 2,
UNPASS = 3,
/** 慢审机器不通过,目前只有在抖音用户资料使用 */
ROBOT_UP = 4,
/** 回滚 */
ROLLBACK = 5,
/** 重置 */
RESET = 6,
}
export enum PassportAuditStatus {
Reviewing = 1,
/** 审核通过 */
Approved = 2,
/** 审核不通过 */
Rejected = 3,
}
export interface AuditDetail {
user_unique_name?: AuditInfo;
nickname?: AuditInfo;
avatar?: AuditInfo;
signature?: AuditInfo;
}
export interface AuditInfo {
result?: CheckType;
}
export interface UserInfo {
UserID?: Int64;
UserUniqueName?: string;
Nickname?: string;
Avatar?: string;
Signature?: string;
UserLabel?: UserLabel;
}
export interface UserLabel {
label_id?: string;
label_name?: string;
icon_uri?: string;
icon_url?: string;
jump_link?: string;
}
/* eslint-enable */

View File

@@ -0,0 +1,77 @@
/*
* 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 user_common from './user_common';
export type Int64 = string | number;
export interface GetUserProfileData {
/** 名字(唯一) */
user_name?: string;
/** 昵称 */
name?: string;
avatar?: string;
user_id?: string;
/** 签名 */
signature?: string;
/** 是否有正在审核的字段 */
audit_status?: user_common.PassportAuditStatus;
share_id?: string;
/** 审核的细节 */
audit_detail?: user_common.AuditDetail;
/** 用户标签 */
user_label?: user_common.UserLabel;
}
export interface GetUserProfileRequest {
user_id?: string;
bid?: string;
Cookie?: string;
}
export interface GetUserProfileResponse {
code: number;
message: string;
data?: GetUserProfileData;
}
export interface UpdateUserProfileCheckRequest {
user_unique_name?: string;
}
export interface UpdateUserProfileCheckResponse {
code: number;
message: string;
}
export interface UpdateUserProfileRequest {
user_unique_name?: string;
name?: string;
avatar?: string;
signature?: string;
Cookie?: string;
}
export interface UpdateUserProfileResponse {
code: number;
message: string;
}
/* eslint-enable */

View File

@@ -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
import * as user_common from './user_common';
export type Int64 = string | number;
export interface BuiAuditInfo {
AuditStatus?: user_common.PassportAuditStatus;
UnPassReason?: string;
LastModifyTime?: Int64;
/** map[string]AuditInfo 的序列化字段下面的注释是具体的struct结构 */
AuditInfoJson?: string;
}
/* eslint-enable */