UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,991 lines (1,655 loc) • 421 kB
/* * Copyright (c) 2018 Tencent. All Rights Reserved. * * 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. */ const AbstractModel = require("../../common/abstract_model"); /** * ModifyQAAttrRange response structure. * @class */ class ModifyQAAttrRangeResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * GetWsToken response structure. * @class */ class GetWsTokenResponse extends AbstractModel { constructor(){ super(); /** * Token value (valid for 60 seconds, valid only once, multiple validations will report an error). * @type {string || null} */ this.Token = null; /** * Balance. The balance is valid if it is greater than 0. * @type {number || null} */ this.Balance = null; /** * The character limit for input in the chat window. * @type {number || null} */ this.InputLenLimit = null; /** * Application mode: standard; agent; single_workflow. * @type {string || null} */ this.Pattern = null; /** * SingleWorkflow. * @type {KnowledgeQaSingleWorkflow || null} */ this.SingleWorkflow = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Token = 'Token' in params ? params.Token : null; this.Balance = 'Balance' in params ? params.Balance : null; this.InputLenLimit = 'InputLenLimit' in params ? params.InputLenLimit : null; this.Pattern = 'Pattern' in params ? params.Pattern : null; if (params.SingleWorkflow) { let obj = new KnowledgeQaSingleWorkflow(); obj.deserialize(params.SingleWorkflow) this.SingleWorkflow = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ListUsageCallDetail request structure. * @class */ class ListUsageCallDetailRequest extends AbstractModel { constructor(){ super(); /** * Model identifier. * @type {string || null} */ this.ModelName = null; /** * Page number. * @type {number || null} */ this.PageNumber = null; /** * Number of items per page. * @type {number || null} */ this.PageSize = null; /** * Start time. * @type {string || null} */ this.StartTime = null; /** * End time. * @type {string || null} */ this.EndTime = null; /** * Uin list. * @type {Array.<string> || null} */ this.UinAccount = null; /** * Application ID list. * @type {Array.<string> || null} */ this.AppBizIds = null; /** * Call type list. * @type {string || null} */ this.CallType = null; /** * Filter sub-scenario. * @type {Array.<string> || null} */ this.SubScenes = null; /** * Application Type (knowledge_qa: Knowledge Q&A Application Management, shared_knowledge: Shared Knowledge Base) * @type {string || null} */ this.AppType = null; /** * Custom tag corresponding to bill details * @type {string || null} */ this.BillingTag = null; /** * Space ID * @type {string || null} */ this.SpaceId = null; /** * Start timestamp, unit: seconds * @type {number || null} */ this.StatStartTime = null; /** * Start timestamp, unit: seconds * @type {number || null} */ this.StatEndTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ModelName = 'ModelName' in params ? params.ModelName : null; this.PageNumber = 'PageNumber' in params ? params.PageNumber : null; this.PageSize = 'PageSize' in params ? params.PageSize : null; this.StartTime = 'StartTime' in params ? params.StartTime : null; this.EndTime = 'EndTime' in params ? params.EndTime : null; this.UinAccount = 'UinAccount' in params ? params.UinAccount : null; this.AppBizIds = 'AppBizIds' in params ? params.AppBizIds : null; this.CallType = 'CallType' in params ? params.CallType : null; this.SubScenes = 'SubScenes' in params ? params.SubScenes : null; this.AppType = 'AppType' in params ? params.AppType : null; this.BillingTag = 'BillingTag' in params ? params.BillingTag : null; this.SpaceId = 'SpaceId' in params ? params.SpaceId : null; this.StatStartTime = 'StatStartTime' in params ? params.StatStartTime : null; this.StatEndTime = 'StatEndTime' in params ? params.StatEndTime : null; } } /** * CheckAttributeLabelExist request structure. * @class */ class CheckAttributeLabelExistRequest extends AbstractModel { constructor(){ super(); /** * Application ID. * @type {string || null} */ this.BotBizId = null; /** * Attribute name. * @type {string || null} */ this.LabelName = null; /** * Attribute ID. * @type {string || null} */ this.AttributeBizId = null; /** * Log in to the user's root account (required in integrator mode). * @type {string || null} */ this.LoginUin = null; /** * Log in to the user's sub-account (required in integrator mode). * @type {string || null} */ this.LoginSubAccountUin = null; /** * Scroll loading, the last attribute label ID. * @type {string || null} */ this.LastLabelBizId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.BotBizId = 'BotBizId' in params ? params.BotBizId : null; this.LabelName = 'LabelName' in params ? params.LabelName : null; this.AttributeBizId = 'AttributeBizId' in params ? params.AttributeBizId : null; this.LoginUin = 'LoginUin' in params ? params.LoginUin : null; this.LoginSubAccountUin = 'LoginSubAccountUin' in params ? params.LoginSubAccountUin : null; this.LastLabelBizId = 'LastLabelBizId' in params ? params.LastLabelBizId : null; } } /** * Export knowledge label filter. * @class */ class AttributeFilters extends AbstractModel { constructor(){ super(); /** * Retrieve, attribute or label name. * @type {string || null} */ this.Query = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Query = 'Query' in params ? params.Query : null; } } /** * DescribeQA response structure. * @class */ class DescribeQAResponse extends AbstractModel { constructor(){ super(); /** * Q&A business ID. * @type {string || null} */ this.QaBizId = null; /** * Question. * @type {string || null} */ this.Question = null; /** * Answer. * @type {string || null} */ this.Answer = null; /** * Custom parameter. * @type {string || null} */ this.CustomParam = null; /** * Source: 1 - Q&A pairs generated from documents. 2 - Q&A pairs imported in batches. 3 - Q&A pairs input manually one by one. * @type {number || null} */ this.Source = null; /** * Source description. * @type {string || null} */ this.SourceDesc = null; /** * Update time. * @type {string || null} */ this.UpdateTime = null; /** * Status<br>1 - pending verification; 2 - not released; 3 - releasing; 4 - released; 5 - release failed; 6 - not approved; 7 - under review; 8 - review failed, 9 - review failed, pending manual review after appeal; 11 - review failed, manual review not passed after appeal; 12 - expired; 13 - excessive invalid; 14 - excessive invalid recovered; 19 - learning; 20 - learning failed. * @type {number || null} */ this.Status = null; /** * Status description. * @type {string || null} */ this.StatusDesc = null; /** * Category ID. * @type {string || null} */ this.CateBizId = null; /** * Whether verification is allowed. * @type {boolean || null} */ this.IsAllowAccept = null; /** * Whether deletion is allowed. * @type {boolean || null} */ this.IsAllowDelete = null; /** * Whether editing is allowed. * @type {boolean || null} */ this.IsAllowEdit = null; /** * Document ID. * @type {string || null} */ this.DocBizId = null; /** * Document name. * @type {string || null} */ this.FileName = null; /** * Document type. * @type {string || null} */ this.FileType = null; /** * Segment ID. * @type {string || null} */ this.SegmentBizId = null; /** * Segment content. * @type {string || null} */ this.PageContent = null; /** * Segment highlight content. * @type {Array.<Highlight> || null} */ this.Highlights = null; /** * Segment content. * @type {string || null} */ this.OrgData = null; /** * Applicable scope of label. * @type {number || null} */ this.AttrRange = null; /** * Label. * @type {Array.<AttrLabel> || null} */ this.AttrLabels = null; /** * Effective start time, unix timestamp. * @type {string || null} */ this.ExpireStart = null; /** * Effective end time, unix timestamp. 0 indicates permanent validity. * @type {string || null} */ this.ExpireEnd = null; /** * Similar question list information. * @type {Array.<SimilarQuestion> || null} */ this.SimilarQuestions = null; /** * Review status of Q&A text: 1 - review failed. * @type {number || null} */ this.QaAuditStatus = null; /** * Review status of image in Q&A: 1-review failed. * @type {number || null} */ this.PicAuditStatus = null; /** * Review status of video in Q&A: 1 - review failed. * @type {number || null} */ this.VideoAuditStatus = null; /** * Question description. * @type {string || null} */ this.QuestionDesc = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.QaBizId = 'QaBizId' in params ? params.QaBizId : null; this.Question = 'Question' in params ? params.Question : null; this.Answer = 'Answer' in params ? params.Answer : null; this.CustomParam = 'CustomParam' in params ? params.CustomParam : null; this.Source = 'Source' in params ? params.Source : null; this.SourceDesc = 'SourceDesc' in params ? params.SourceDesc : null; this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null; this.Status = 'Status' in params ? params.Status : null; this.StatusDesc = 'StatusDesc' in params ? params.StatusDesc : null; this.CateBizId = 'CateBizId' in params ? params.CateBizId : null; this.IsAllowAccept = 'IsAllowAccept' in params ? params.IsAllowAccept : null; this.IsAllowDelete = 'IsAllowDelete' in params ? params.IsAllowDelete : null; this.IsAllowEdit = 'IsAllowEdit' in params ? params.IsAllowEdit : null; this.DocBizId = 'DocBizId' in params ? params.DocBizId : null; this.FileName = 'FileName' in params ? params.FileName : null; this.FileType = 'FileType' in params ? params.FileType : null; this.SegmentBizId = 'SegmentBizId' in params ? params.SegmentBizId : null; this.PageContent = 'PageContent' in params ? params.PageContent : null; if (params.Highlights) { this.Highlights = new Array(); for (let z in params.Highlights) { let obj = new Highlight(); obj.deserialize(params.Highlights[z]); this.Highlights.push(obj); } } this.OrgData = 'OrgData' in params ? params.OrgData : null; this.AttrRange = 'AttrRange' in params ? params.AttrRange : null; if (params.AttrLabels) { this.AttrLabels = new Array(); for (let z in params.AttrLabels) { let obj = new AttrLabel(); obj.deserialize(params.AttrLabels[z]); this.AttrLabels.push(obj); } } this.ExpireStart = 'ExpireStart' in params ? params.ExpireStart : null; this.ExpireEnd = 'ExpireEnd' in params ? params.ExpireEnd : null; if (params.SimilarQuestions) { this.SimilarQuestions = new Array(); for (let z in params.SimilarQuestions) { let obj = new SimilarQuestion(); obj.deserialize(params.SimilarQuestions[z]); this.SimilarQuestions.push(obj); } } this.QaAuditStatus = 'QaAuditStatus' in params ? params.QaAuditStatus : null; this.PicAuditStatus = 'PicAuditStatus' in params ? params.PicAuditStatus : null; this.VideoAuditStatus = 'VideoAuditStatus' in params ? params.VideoAuditStatus : null; this.QuestionDesc = 'QuestionDesc' in params ? params.QuestionDesc : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * * @class */ class ExtraInfo extends AbstractModel { constructor(){ super(); /** * * @type {Array.<string> || null} */ this.EChartsInfo = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EChartsInfo = 'EChartsInfo' in params ? params.EChartsInfo : null; } } /** * GetAppKnowledgeCount request structure. * @class */ class GetAppKnowledgeCountRequest extends AbstractModel { constructor(){ super(); /** * Type: doc - document; qa - Q&A pair. * @type {string || null} */ this.Type = null; /** * Application ID. * @type {string || null} */ this.AppBizId = null; /** * Login to user's root account (required in integrator mode). * @type {string || null} */ this.LoginUin = null; /** * Login to user's sub-account (required in integrator mode). * @type {string || null} */ this.LoginSubAccountUin = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Type = 'Type' in params ? params.Type : null; this.AppBizId = 'AppBizId' in params ? params.AppBizId : null; this.LoginUin = 'LoginUin' in params ? params.LoginUin : null; this.LoginSubAccountUin = 'LoginSubAccountUin' in params ? params.LoginSubAccountUin : null; } } /** * StopDocParse response structure. * @class */ class StopDocParseResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ListSelectDoc response structure. * @class */ class ListSelectDocResponse extends AbstractModel { constructor(){ super(); /** * Dropdown content. * @type {Array.<Option> || null} */ this.List = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.List) { this.List = new Array(); for (let z in params.List) { let obj = new Option(); obj.deserialize(params.List[z]); this.List.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeReleaseInfo request structure. * @class */ class DescribeReleaseInfoRequest extends AbstractModel { constructor(){ super(); /** * Application ID. * @type {string || null} */ this.BotBizId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.BotBizId = 'BotBizId' in params ? params.BotBizId : null; } } /** * DeleteDoc request structure. * @class */ class DeleteDocRequest extends AbstractModel { constructor(){ super(); /** * List of document business IDs. * @type {Array.<string> || null} */ this.DocBizIds = null; /** * Application ID. * @type {string || null} */ this.BotBizId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DocBizIds = 'DocBizIds' in params ? params.DocBizIds : null; this.BotBizId = 'BotBizId' in params ? params.BotBizId : null; } } /** * GetAnswerTypeDataCount request structure. * @class */ class GetAnswerTypeDataCountRequest extends AbstractModel { constructor(){ super(); /** * Start date. * @type {number || null} */ this.StartTime = null; /** * End date. * @type {number || null} */ this.EndTime = null; /** * Application ID. * @type {Array.<string> || null} */ this.AppBizId = null; /** * Message source (1. shared from user end; 2. chat API; 3. chat test, 4. application evaluation). * @type {number || null} */ this.Type = null; /** * Login to user's root account (required in integrator mode). * @type {string || null} */ this.LoginUin = null; /** * Login to user's sub-account (required in integrator mode). * @type {string || null} */ this.LoginSubAccountUin = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.StartTime = 'StartTime' in params ? params.StartTime : null; this.EndTime = 'EndTime' in params ? params.EndTime : null; this.AppBizId = 'AppBizId' in params ? params.AppBizId : null; this.Type = 'Type' in params ? params.Type : null; this.LoginUin = 'LoginUin' in params ? params.LoginUin : null; this.LoginSubAccountUin = 'LoginSubAccountUin' in params ? params.LoginSubAccountUin : null; } } /** * Node information * @class */ class RunNodeInfo extends AbstractModel { constructor(){ super(); /** * Node type, 0: unspecified; 1: start node; 2: api node; 3: inquiry node; 4: answer node. * @type {number || null} */ this.NodeType = null; /** * Node ID. * @type {string || null} */ this.NodeId = null; /** * Node name. * @type {string || null} */ this.NodeName = null; /** * Requested API. * @type {InvokeAPI || null} */ this.InvokeApi = null; /** * Values of all slots of the current node, key: SlotID. Return an Null even if there is no value. * @type {Array.<ValueInfo> || null} */ this.SlotValues = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.NodeType = 'NodeType' in params ? params.NodeType : null; this.NodeId = 'NodeId' in params ? params.NodeId : null; this.NodeName = 'NodeName' in params ? params.NodeName : null; if (params.InvokeApi) { let obj = new InvokeAPI(); obj.deserialize(params.InvokeApi) this.InvokeApi = obj; } if (params.SlotValues) { this.SlotValues = new Array(); for (let z in params.SlotValues) { let obj = new ValueInfo(); obj.deserialize(params.SlotValues[z]); this.SlotValues.push(obj); } } } } /** * * @class */ class AgentDebugInfo extends AbstractModel { constructor(){ super(); /** * * @type {string || null} */ this.Input = null; /** * * @type {string || null} */ this.Output = null; /** * * @type {string || null} */ this.ModelName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Input = 'Input' in params ? params.Input : null; this.Output = 'Output' in params ? params.Output : null; this.ModelName = 'ModelName' in params ? params.ModelName : null; } } /** * UploadAttributeLabel response structure. * @class */ class UploadAttributeLabelResponse extends AbstractModel { constructor(){ super(); /** * Import error. * @type {string || null} */ this.ErrorMsg = null; /** * Error link. * @type {string || null} */ this.ErrorLink = null; /** * Error link text. * @type {string || null} */ this.ErrorLinkText = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ErrorMsg = 'ErrorMsg' in params ? params.ErrorMsg : null; this.ErrorLink = 'ErrorLink' in params ? params.ErrorLink : null; this.ErrorLinkText = 'ErrorLinkText' in params ? params.ErrorLinkText : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Message details. * @class */ class MsgRecord extends AbstractModel { constructor(){ super(); /** * Content. * @type {string || null} */ this.Content = null; /** * The Session ID corresponding to the current record. * @type {string || null} */ this.SessionId = null; /** * Record ID. * @type {string || null} */ this.RecordId = null; /** * Associated record ID. * @type {string || null} */ this.RelatedRecordId = null; /** * Whether it is from oneself. * @type {boolean || null} */ this.IsFromSelf = null; /** * Sender name. * @type {string || null} */ this.FromName = null; /** * Avatar of the sender. * @type {string || null} */ this.FromAvatar = null; /** * Timestamp. * @type {string || null} */ this.Timestamp = null; /** * Whether it is read. * @type {boolean || null} */ this.HasRead = null; /** * Evaluation. * @type {number || null} */ this.Score = null; /** * Whether to rate. * @type {boolean || null} */ this.CanRating = null; /** * Whether to display the feedback button. * @type {boolean || null} */ this.CanFeedback = null; /** * Record type. * @type {number || null} */ this.Type = null; /** * Reference source. * @type {Array.<MsgRecordReference> || null} */ this.References = null; /** * Reason for evaluation. * @type {Array.<string> || null} */ this.Reasons = null; /** * Whether it is a large model. * @type {boolean || null} */ this.IsLlmGenerated = null; /** * Image URL, which can be public read. * @type {Array.<string> || null} */ this.ImageUrls = null; /** * Statistical information of the current token. * @type {TokenStat || null} */ this.TokenStat = null; /** * Response method. 1: Large model directly replies. 2: Conservative reply, reply to unknown questions. 3: Reply to rejected question. 4: Sensitive response. 5: Directly reply to Q&A pairs. Priority will be given to answering the adopted Q&A pairs. 6: Reply with welcome words. 7: Reply for concurrency limit exceeded. 8: Global intervention knowledge. 9: Reply during the task flow process. When task_flow.type = 0 in history, it is a response from the large model. 10: Reply with task flow answer. 11: Reply from the search engine. 12: Reply after knowledge polishing. 13: Reply with image understanding. 14: Reply based on real-time document. * @type {number || null} */ this.ReplyMethod = null; /** * Option tab, used for multi-round dialogue. * @type {Array.<string> || null} */ this.OptionCards = null; /** * Task information. * @type {TaskFlowInfo || null} */ this.TaskFlow = null; /** * File information passed in by the user. * @type {Array.<FileInfo> || null} */ this.FileInfos = null; /** * Location information of reference source . * @type {Array.<QuoteInfo> || null} */ this.QuoteInfos = null; /** * Information on the thinking process of the agent. * @type {AgentThought || null} */ this.AgentThought = null; /** * Expanded information. * @type {ExtraInfo || null} */ this.ExtraInfo = null; /** * Workflow information. * @type {WorkflowInfo || null} */ this.WorkFlow = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Content = 'Content' in params ? params.Content : null; this.SessionId = 'SessionId' in params ? params.SessionId : null; this.RecordId = 'RecordId' in params ? params.RecordId : null; this.RelatedRecordId = 'RelatedRecordId' in params ? params.RelatedRecordId : null; this.IsFromSelf = 'IsFromSelf' in params ? params.IsFromSelf : null; this.FromName = 'FromName' in params ? params.FromName : null; this.FromAvatar = 'FromAvatar' in params ? params.FromAvatar : null; this.Timestamp = 'Timestamp' in params ? params.Timestamp : null; this.HasRead = 'HasRead' in params ? params.HasRead : null; this.Score = 'Score' in params ? params.Score : null; this.CanRating = 'CanRating' in params ? params.CanRating : null; this.CanFeedback = 'CanFeedback' in params ? params.CanFeedback : null; this.Type = 'Type' in params ? params.Type : null; if (params.References) { this.References = new Array(); for (let z in params.References) { let obj = new MsgRecordReference(); obj.deserialize(params.References[z]); this.References.push(obj); } } this.Reasons = 'Reasons' in params ? params.Reasons : null; this.IsLlmGenerated = 'IsLlmGenerated' in params ? params.IsLlmGenerated : null; this.ImageUrls = 'ImageUrls' in params ? params.ImageUrls : null; if (params.TokenStat) { let obj = new TokenStat(); obj.deserialize(params.TokenStat) this.TokenStat = obj; } this.ReplyMethod = 'ReplyMethod' in params ? params.ReplyMethod : null; this.OptionCards = 'OptionCards' in params ? params.OptionCards : null; if (params.TaskFlow) { let obj = new TaskFlowInfo(); obj.deserialize(params.TaskFlow) this.TaskFlow = obj; } if (params.FileInfos) { this.FileInfos = new Array(); for (let z in params.FileInfos) { let obj = new FileInfo(); obj.deserialize(params.FileInfos[z]); this.FileInfos.push(obj); } } if (params.QuoteInfos) { this.QuoteInfos = new Array(); for (let z in params.QuoteInfos) { let obj = new QuoteInfo(); obj.deserialize(params.QuoteInfos[z]); this.QuoteInfos.push(obj); } } if (params.AgentThought) { let obj = new AgentThought(); obj.deserialize(params.AgentThought) this.AgentThought = obj; } if (params.ExtraInfo) { let obj = new ExtraInfo(); obj.deserialize(params.ExtraInfo) this.ExtraInfo = obj; } if (params.WorkFlow) { let obj = new WorkflowInfo(); obj.deserialize(params.WorkFlow) this.WorkFlow = obj; } } } /** * CreateDocCate response structure. * @class */ class CreateDocCateResponse extends AbstractModel { constructor(){ super(); /** * Whether it is possible to add. * @type {boolean || null} */ this.CanAdd = null; /** * Whether it is editable. * @type {boolean || null} */ this.CanEdit = null; /** * Whether it can be deleted. * @type {boolean || null} */ this.CanDelete = null; /** * Category business ID. * @type {string || null} */ this.CateBizId = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.CanAdd = 'CanAdd' in params ? params.CanAdd : null; this.CanEdit = 'CanEdit' in params ? params.CanEdit : null; this.CanDelete = 'CanDelete' in params ? params.CanDelete : null; this.CateBizId = 'CateBizId' in params ? params.CateBizId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteDocCate response structure. * @class */ class DeleteDocCateResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ExportAttributeLabel response structure. * @class */ class ExportAttributeLabelResponse extends AbstractModel { constructor(){ super(); /** * Export task ID. * @type {string || null} */ this.TaskId = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TaskId = 'TaskId' in params ? params.TaskId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Detailed information of a knowledge library capacity pie chart. * @class */ class KnowledgeCapacityPieGraphDetail extends AbstractModel { constructor(){ super(); /** * Current application name. * @type {string || null} */ this.AppName = null; /** * Number of characters used by the current application. * @type {string || null} */ this.UsedCharSize = null; /** * Proportion of the current application in total usage. * @type {number || null} */ this.Proportion = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AppName = 'AppName' in params ? params.AppName : null; this.UsedCharSize = 'UsedCharSize' in params ? params.UsedCharSize : null; this.Proportion = 'Proportion' in params ? params.Proportion : null; } } /** * * @class */ class WorkflowInfo extends AbstractModel { constructor(){ super(); /** * * @type {string || null} */ this.WorkflowId = null; /** * * @type {string || null} */ this.WorkflowName = null; /** * * @type {string || null} */ this.WorkflowRunId = null; /** * * @type {Array.<string> || null} */ this.OptionCards = null; /** * * @type {Array.<string> || null} */ this.Outputs = null; /** * * @type {string || null} */ this.WorkflowReleaseTime = null; /** * * @type {Array.<Content> || null} */ this.Contents = null; /** * * @type {number || null} */ this.OptionMode = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.WorkflowId = 'WorkflowId' in params ? params.WorkflowId : null; this.WorkflowName = 'WorkflowName' in params ? params.WorkflowName : null; this.WorkflowRunId = 'WorkflowRunId' in params ? params.WorkflowRunId : null; this.OptionCards = 'OptionCards' in params ? params.OptionCards : null; this.Outputs = 'Outputs' in params ? params.Outputs : null; this.WorkflowReleaseTime = 'WorkflowReleaseTime' in params ? params.WorkflowReleaseTime : null; if (params.Contents) { this.Contents = new Array(); for (let z in params.Contents) { let obj = new Content(); obj.deserialize(params.Contents[z]); this.Contents.push(obj); } } this.OptionMode = 'OptionMode' in params ? params.OptionMode : null; } } /** * * @class */ class DocReference extends AbstractModel { constructor(){ super(); /** * * @type {number || null} */ this.DocBizId = null; /** * * @type {number || null} */ this.ReferBizId = null; /** * * @type {string || null} */ this.DocName = null; /** * * @type {number || null} */ this.KnowledgeBizId = null; /** * * @type {string || null} */ this.KnowledgeName = null; /** * * @type {string || null} */ this.Url = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DocBizId = 'DocBizId' in params ? params.DocBizId : null; this.ReferBizId = 'ReferBizId' in params ? params.ReferBizId : null; this.DocName = 'DocName' in params ? params.DocName : null; this.KnowledgeBizId = 'KnowledgeBizId' in params ? params.KnowledgeBizId : null; this.KnowledgeName = 'KnowledgeName' in params ? params.KnowledgeName : null; this.Url = 'Url' in params ? params.Url : null; } } /** * GetAppSecret response structure. * @class */ class GetAppSecretResponse extends AbstractModel { constructor(){ super(); /** * Application key. * @type {string || null} */ this.AppKey = null; /** * Creation time. * @type {string || null} */ this.CreateTime = null; /** * Whether to release. * @type {boolean || null} */ this.IsRelease = null; /** * Whether there is permission to view. * @type {boolean || null} */ this.HasPermission = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AppKey = 'AppKey' in params ? params.AppKey : null; this.CreateTime = 'CreateTime' in params ? params.CreateTime : null; this.IsRelease = 'IsRelease' in params ? params.IsRelease : null; this.HasPermission = 'HasPermission' in params ? params.HasPermission : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ListRejectedQuestion request structure. * @class */ class ListRejectedQuestionRequest extends AbstractModel { constructor(){ super(); /** * Application ID. * @type {string || null} */ this.BotBizId = null; /** * Page number. * @type {number || null} */ this.PageNumber = null; /** * Number of items per page. * @type {number || null} */ this.PageSize = null; /** * Query content. * @type {string || null} */ this.Query = null; /** * <p>Filter Conditions:<br>Effective: EnableScope: 1,2,3,4</p> * @type {Array.<FilterItem> || null} */ this.Filters = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.BotBizId = 'BotBizId' in params ? params.BotBizId : null; this.PageNumber = 'PageNumber' in params ? params.PageNumber : null; this.PageSize = 'PageSize' in params ? params.PageSize : null; this.Query = 'Query' in params ? params.Query : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new FilterItem(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } } } /** * CreateQACate response structure. * @class */ class CreateQACateResponse extends AbstractModel { constructor(){ super(); /** * Whether it is possible to add. * @type {boolean || null} */ this.CanAdd = null; /** * Whether it is editable. * @type {boolean || null} */ this.CanEdit = null; /** * Whether it can be deleted. * @type {boolean || null} */ this.CanDelete = null; /** * Category business ID. * @type {string || null} */ this.CateBizId = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.CanAdd = 'CanAdd' in params ? params.CanAdd : null; this.CanEdit = 'CanEdit' in params ? params.CanEdit : null; this.CanDelete = 'CanDelete' in params ? params.CanDelete : null; this.CateBizId = 'CateBizId' in params ? params.CateBizId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyDocAttrRange response structure. * @class */ class ModifyDocAttrRangeResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * GetAnswerTypeDataCount response structure. * @class */ class GetAnswerTypeDataCountResponse extends AbstractModel { constructor(){ super(); /** * Total number of messages. * @type {number || null} */ this.Total = null; /** * Total number of direct responses by the large model. * @type {number || null} */ this.ModelReplyCount = null; /** * Total number of knowledge-based responses. * @type {number || null} */ this.KnowledgeCount = null; /** * Total number of task flow responses. * @type {number || null} */ this.TaskFlowCount = null; /** * Total number of search engine responses. * @type {number || null} */ this.SearchEngineCount = null; /** * Total number of image understanding responses. * @type {number || null} */ this.ImageUnderstandingCount = null; /** * Total number of responses to rejected questions. * @type {number || null} */ this.RejectCount = null; /** * Total number of sensitive responses. * @type {number || null} */ this.SensitiveCount = null; /** * Total number of responses for concurrency exceeded. * @type {number || null} */ this.ConcurrentLimitCount = null; /** * Total number of unknown question responses. * @type {number || null} */ this.UnknownIssuesCount = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Total = 'Total' in params ? params.Total : null; this.ModelReplyCount = 'ModelReplyCount' in params ? params.ModelReplyCount : null; this.KnowledgeCount = 'KnowledgeCount' in params ? params.KnowledgeCount : null; this.TaskFlowCount = 'TaskFlowCount' in params ? params.TaskFlowCount : null; this.SearchEngineCount = 'SearchEngineCount' in params ? params.SearchEngineCount : null; this.ImageUnderstandingCount = 'ImageUnderstandingCount' in params ? params.ImageUnderstandingCount : null; this.RejectCount = 'RejectCount' in params ? params.RejectCount : null; this.SensitiveCount = 'SensitiveCount' in params ? params.SensitiveCount : null; this.ConcurrentLimitCount = 'ConcurrentLimitCount' in params ? params.ConcurrentLimitCount : null; this.UnknownIssuesCount = 'UnknownIssuesCount' in params ? params.UnknownIssuesCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeQA request structure. * @class */ class DescribeQARequest extends AbstractModel { constructor(){ super(); /** * Q&A business ID. * @type {string || null} */ this.QaBizId = null; /** * Application ID. * @type {string || null} */ this.BotBizId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.QaBizId = 'QaBizId' in params ? params.QaBizId : null; this.BotBizId = 'BotBizId' in params ? params.BotBizId : null; } } /** * Label reference information. * @class */ class AttrLabelRefer extends AbstractModel { constructor(){ super(); /** * Label source, 1: label. * @type {number || null} */ this.Source = null; /** * Label ID. * @type {string || null} */ this.AttributeBizId = null; /** * Label value ID. * @type {Array.<string> || null} */ this.LabelBizIds = null; } /** * @private */ deserialize(params) { if (!pa