tencentcloud-sdk-nodejs 4.1.172 → 4.1.173

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export const sdkVersion = "4.1.172";
1
+ export const sdkVersion = "4.1.173";
@@ -3,6 +3,9 @@ export class Client extends AbstractClient {
3
3
  constructor(clientConfig) {
4
4
  super("evt.tencentcloudapi.com", "2025-02-17", clientConfig);
5
5
  }
6
+ async PutEvent(req, cb) {
7
+ return this.request("PutEvent", req, cb);
8
+ }
6
9
  async DeleteRoleUser(req, cb) {
7
10
  return this.request("DeleteRoleUser", req, cb);
8
11
  }
@@ -198,6 +198,9 @@ export class Client extends AbstractClient {
198
198
  async DescribeLiveStreamMonitor(req, cb) {
199
199
  return this.request("DescribeLiveStreamMonitor", req, cb);
200
200
  }
201
+ async SwitchBackupStream(req, cb) {
202
+ return this.request("SwitchBackupStream", req, cb);
203
+ }
201
204
  async SendLiveCloudEffect(req, cb) {
202
205
  return this.request("SendLiveCloudEffect", req, cb);
203
206
  }
@@ -444,8 +447,8 @@ export class Client extends AbstractClient {
444
447
  async DeleteLivePadTemplate(req, cb) {
445
448
  return this.request("DeleteLivePadTemplate", req, cb);
446
449
  }
447
- async SwitchBackupStream(req, cb) {
448
- return this.request("SwitchBackupStream", req, cb);
450
+ async DescribeLiveCloudEffectConfig(req, cb) {
451
+ return this.request("DescribeLiveCloudEffectConfig", req, cb);
449
452
  }
450
453
  async DescribeLiveDomainPlayInfoList(req, cb) {
451
454
  return this.request("DescribeLiveDomainPlayInfoList", req, cb);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs",
3
- "version": "4.1.172",
3
+ "version": "4.1.173",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1 +1 @@
1
- export declare const sdkVersion = "4.1.172";
1
+ export declare const sdkVersion = "4.1.173";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sdkVersion = void 0;
4
- exports.sdkVersion = "4.1.172";
4
+ exports.sdkVersion = "4.1.173";
@@ -257,30 +257,23 @@ export interface UploadTrainPortraitImagesResponse {
257
257
  */
258
258
  export interface SubmitTemplateToImageJobRequest {
259
259
  /**
260
- * 算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
261
- Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
262
- 图片限制:单边分辨率小于5000且大于50,转成 Base64 字符串后小于 8MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
260
+ * <p>算法将根据输入的图片,结合文本描述智能生成与之相关的图像。Base64 和 Url 必须提供一个,如果都提供以 Url 为准。图片限制:单边分辨率小于5000且大于50,转成 Base64 字符串后小于 8MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。</p>
263
261
  */
264
262
  Image: Image;
265
263
  /**
266
- * 绘画风格当前仅支持美术馆风格(gallerying)。
264
+ * <p>绘画风格当前仅支持美术馆风格(gallerying)。</p>
267
265
  */
268
266
  Style?: string;
269
267
  /**
270
- * 特效模式,默认使用人像模式。 Person:人像模式,仅支持上传人像图片,人像生成效果更好【这里需要加非人脸的拦截】。 Pet:宠物模式,支持宠物等非人像图片。 示例值:Person
268
+ * <p>特效模式,默认使用人像模式。</p>枚举值:<ul><li> Person 人像模式,仅支持上传人像图片。</li><li> Pet 宠物模式,支持宠物等非人像图片。</li></ul>默认值:Person
271
269
  */
272
270
  Mode?: string;
273
271
  /**
274
- * 为生成结果图添加显式水印标识的开关,默认为1
275
- 1:添加。
276
- 0:不添加。
277
- 其他数值:默认按1处理。
278
- 建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
272
+ * <p>为生成结果图添加显式水印标识的开关,默认为1。<br />1:添加。<br />0:不添加。<br />其他数值:默认按1处理。<br />建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。</p>
279
273
  */
280
274
  LogoAdd?: number;
281
275
  /**
282
- * 标识内容设置。
283
- 默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
276
+ * <p>标识内容设置。默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。</p>
284
277
  */
285
278
  LogoParam?: LogoParam;
286
279
  }
@@ -751,7 +744,7 @@ export interface FaceInfo {
751
744
  */
752
745
  export interface SubmitTemplateToImageJobResponse {
753
746
  /**
754
- * 任务 ID
747
+ * <p>任务 ID。</p>
755
748
  */
756
749
  JobId?: string;
757
750
  /**
@@ -127,6 +127,23 @@ export interface DescribeLogHistogramRequest {
127
127
  */
128
128
  SyntaxRule?: number;
129
129
  }
130
+ /**
131
+ * 投递类任务数据过滤统计信息
132
+ */
133
+ export interface FilterStatistics {
134
+ /**
135
+ * <p>原始日志数</p>
136
+ */
137
+ OriginalCount?: number;
138
+ /**
139
+ * <p>过滤后日志数</p>
140
+ */
141
+ FilteredCount?: number;
142
+ /**
143
+ * <p>过滤后结果</p>
144
+ */
145
+ FilteredResult?: Array<string>;
146
+ }
130
147
  /**
131
148
  * DeleteShipper请求参数结构体
132
149
  */
@@ -4024,7 +4041,7 @@ export interface AlarmTargetInfo {
4024
4041
  */
4025
4042
  export interface CreateSplunkDeliverResponse {
4026
4043
  /**
4027
- * splunk投递任务id
4044
+ * <p>splunk投递任务id</p>
4028
4045
  */
4029
4046
  TaskId?: string;
4030
4047
  /**
@@ -4476,11 +4493,11 @@ export interface DeleteMachineGroupRequest {
4476
4493
  */
4477
4494
  export interface DescribeSplunkDeliversResponse {
4478
4495
  /**
4479
- * Splunk投递任务信息列表
4496
+ * <p>Splunk投递任务信息列表</p>
4480
4497
  */
4481
4498
  Infos?: Array<SplunkDeliverInfo>;
4482
4499
  /**
4483
- * 符合条件的任务总数。
4500
+ * <p>符合条件的任务总数。</p>
4484
4501
  */
4485
4502
  Total?: number;
4486
4503
  /**
@@ -5054,69 +5071,73 @@ export interface CreateConsumerGroupResponse {
5054
5071
  */
5055
5072
  export interface SplunkDeliverInfo {
5056
5073
  /**
5057
- * 任务id
5074
+ * <p>任务id</p>
5058
5075
  */
5059
5076
  TaskId?: string;
5060
5077
  /**
5061
- * 任务名称
5078
+ * <p>任务名称</p>
5062
5079
  */
5063
5080
  Name?: string;
5064
5081
  /**
5065
- * 用户id
5082
+ * <p>用户id</p>
5066
5083
  */
5067
5084
  Uin?: number;
5068
5085
  /**
5069
- * 日志主题id
5086
+ * <p>日志主题id</p>
5070
5087
  */
5071
5088
  TopicId?: string;
5072
5089
  /**
5073
- * 任务状态;1.运行中;2:暂停;3:异常
5090
+ * <p>任务状态;1.运行中;2:暂停;3:异常</p>
5074
5091
  */
5075
5092
  Status?: number;
5076
5093
  /**
5077
- * 启用状态;0:禁用;1:启用
5094
+ * <p>启用状态;0:禁用;1:启用</p>
5078
5095
  */
5079
5096
  Enable?: number;
5080
5097
  /**
5081
- * 创建时间;单位:秒
5098
+ * <p>创建时间;单位:秒</p>
5082
5099
  */
5083
5100
  CreateTime?: number;
5084
5101
  /**
5085
- * 更新时间;单位:秒
5102
+ * <p>更新时间;单位:秒</p>
5086
5103
  */
5087
5104
  UpdateTime?: number;
5088
5105
  /**
5089
- * splunk投递任务-目标配置
5106
+ * <p>splunk投递任务-目标配置</p>
5090
5107
  */
5091
5108
  NetInfo?: NetInfo;
5092
5109
  /**
5093
- * splunk投递任务元信息
5110
+ * <p>splunk投递任务元信息</p>
5094
5111
  */
5095
5112
  Metadata?: MetadataInfo;
5096
5113
  /**
5097
- * 是否启用服务日志;1:关闭;2:开启
5114
+ * <p>是否启用服务日志;1:关闭;2:开启</p>
5098
5115
  */
5099
5116
  HasServiceLog?: number;
5100
5117
  /**
5101
- * 高级配置-数据来源;
5118
+ * <p>高级配置-数据来源;</p>
5102
5119
  */
5103
5120
  Source?: string;
5104
5121
  /**
5105
- * 高级配置-数据来源类型;
5122
+ * <p>高级配置-数据来源类型;</p>
5106
5123
  */
5107
5124
  SourceType?: string;
5108
5125
  /**
5109
- * 高级配置-Splunk写入的索引
5126
+ * <p>高级配置-Splunk写入的索引</p>
5110
5127
  */
5111
5128
  Index?: string;
5112
5129
  /**
5113
- * 高级配置-是否启用索引器;1-不开启;2-开启;
5130
+ * <p>高级配置-是否启用索引器;1-不开启;2-开启;</p>
5114
5131
  */
5115
5132
  IndexAck?: number;
5116
5133
  /**
5117
- * 高级配置-通道
5134
+ * <p>高级配置-通道</p>
5118
5135
  */
5119
5136
  Channel?: string;
5137
+ /**
5138
+ * <p>预过滤处理-对写入 Splunk 原始数据进行预过滤处理语句</p>
5139
+ */
5140
+ DSLFilter?: string;
5120
5141
  }
5121
5142
  /**
5122
5143
  * 通知模板内容
@@ -5261,14 +5282,17 @@ export interface ModifyDashboardSubscribeResponse {
5261
5282
  */
5262
5283
  export interface DescribeSplunkPreviewRequest {
5263
5284
  /**
5264
- * 日志主题id
5265
- - 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
5285
+ * <p>日志主题id。- 通过<a href="https://cloud.tencent.com/document/product/614/56454">获取日志主题列表</a>获取日志主题Id。</p>
5266
5286
  */
5267
5287
  TopicId: string;
5268
5288
  /**
5269
- * splunk投递任务-元信息
5289
+ * <p>splunk投递任务-元信息</p>
5270
5290
  */
5271
5291
  MetadataInfo: MetadataInfo;
5292
+ /**
5293
+ * <p>splunk投递任务-投递 splunk过滤原始日志语句</p>
5294
+ */
5295
+ DSLFilter?: string;
5272
5296
  }
5273
5297
  /**
5274
5298
  * ModifyConfig请求参数结构体
@@ -5571,23 +5595,19 @@ export interface SearchLogErrors {
5571
5595
  */
5572
5596
  export interface DescribeSplunkDeliversRequest {
5573
5597
  /**
5574
- * 日志主题Id
5575
- - 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
5598
+ * <p>日志主题Id- 通过<a href="https://cloud.tencent.com/document/product/614/56454">获取日志主题列表</a>获取日志主题Id。</p>
5576
5599
  */
5577
5600
  TopicId: string;
5578
5601
  /**
5579
- * - taskId 按照【任务id】进行过滤。 类型:String 必选:否
5580
- - name 按照【任务名称】进行过滤。 类型:String 必选:否
5581
- - statusFlag 按照【状态】进行过滤。 类型:String 必选:否
5582
- 每次请求的Filters的上限为10,Filter.Values的上限为10。
5602
+ * <ul><li>taskId 按照【任务id】进行过滤。 类型:String 必选:否 </li><li>name 按照【任务名称】进行过滤。 类型:String 必选:否 </li><li>statusFlag 按照【状态】进行过滤。 类型:String 必选:否<br /> 每次请求的Filters的上限为10,Filter.Values的上限为10。</li></ul>
5583
5603
  */
5584
5604
  Filters?: Array<Filter>;
5585
5605
  /**
5586
- * 分页的偏移量,默认值为0
5606
+ * <p>分页的偏移量,默认值为0。</p>
5587
5607
  */
5588
5608
  Offset?: number;
5589
5609
  /**
5590
- * 分页单页限制数目,默认值为20,最大值100
5610
+ * <p>分页单页限制数目,默认值为20,最大值100。</p>
5591
5611
  */
5592
5612
  Limit?: number;
5593
5613
  }
@@ -7827,60 +7847,57 @@ export interface DescribeConfigMachineGroupsResponse {
7827
7847
  */
7828
7848
  export interface ModifySplunkDeliverRequest {
7829
7849
  /**
7830
- * 任务id
7850
+ * <p>任务id</p>
7831
7851
  */
7832
7852
  TaskId: string;
7833
7853
  /**
7834
- * 日志主题id
7835
- - 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
7854
+ * <p>日志主题id- 通过<a href="https://cloud.tencent.com/document/product/614/56454">获取日志主题列表</a>获取日志主题Id。</p>
7836
7855
  */
7837
7856
  TopicId: string;
7838
7857
  /**
7839
- * 投递任务名称
7840
- name有以下限制:
7841
- - 不能为空
7842
- - 长度不大于64
7843
- - 只能包含aA-zZ、下划线、-、0-9
7858
+ * <p>投递任务名称name有以下限制:- 不能为空- 长度不大于64- 只能包含aA-zZ、下划线、-、0-9</p>
7844
7859
  */
7845
7860
  Name?: string;
7846
7861
  /**
7847
- * 投递任务启用状态;0:禁用;1:启用
7862
+ * <p>投递任务启用状态;0:禁用;1:启用</p>
7848
7863
  */
7849
7864
  Enable?: number;
7850
7865
  /**
7851
- * splunk投递任务-目标配置
7866
+ * <p>splunk投递任务-目标配置</p>
7852
7867
  */
7853
7868
  NetInfo?: NetInfo;
7854
7869
  /**
7855
- * splunk投递任务元信息
7870
+ * <p>splunk投递任务元信息</p>
7856
7871
  */
7857
7872
  MetadataInfo?: MetadataInfo;
7858
7873
  /**
7859
- * 是否启用服务日志;1:关闭;2:开启
7874
+ * <p>是否启用服务日志;1:关闭;2:开启</p>
7860
7875
  */
7861
7876
  HasServiceLog?: number;
7862
7877
  /**
7863
- * 高级配置-是否启用索引器;
7864
- 1-不开启;2-开启;默认为:1
7878
+ * <p>高级配置-是否启用索引器;1-不开启;2-开启;默认为:1</p>
7865
7879
  */
7866
7880
  IndexAck?: number;
7867
7881
  /**
7868
- * 高级配置-数据来源;不超过64个字符
7882
+ * <p>高级配置-数据来源;不超过64个字符</p>
7869
7883
  */
7870
7884
  Source?: string;
7871
7885
  /**
7872
- * 高级配置-数据来源类型;不超过64个字符
7886
+ * <p>高级配置-数据来源类型;不超过64个字符</p>
7873
7887
  */
7874
7888
  SourceType?: string;
7875
7889
  /**
7876
- * 高级配置-Splunk写入的索引;不超过64个字符
7890
+ * <p>高级配置-Splunk写入的索引;不超过64个字符</p>
7877
7891
  */
7878
7892
  Index?: string;
7879
7893
  /**
7880
- * 高级配置-通道。
7881
- 需满足限制:如果启用索引器,该值不能为空
7894
+ * <p>高级配置-通道。需满足限制:如果启用索引器,该值不能为空</p>
7882
7895
  */
7883
7896
  Channel?: string;
7897
+ /**
7898
+ * <p>预过滤处理-对写入 Splunk 原始数据进行预过滤处理</p>
7899
+ */
7900
+ DSLFilter?: string;
7884
7901
  }
7885
7902
  /**
7886
7903
  * es导入配置信息
@@ -9776,52 +9793,49 @@ export interface DescribeCosRechargesResponse {
9776
9793
  */
9777
9794
  export interface CreateSplunkDeliverRequest {
9778
9795
  /**
9779
- * 日志主题id
9780
- - 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。
9796
+ * <p>日志主题id- 通过<a href="https://cloud.tencent.com/document/product/614/56454">获取日志主题列表</a>获取日志主题Id。</p>
9781
9797
  */
9782
9798
  TopicId: string;
9783
9799
  /**
9784
- * splunk投递任务名称;
9785
- name有如下限制:
9786
- - 不能为空
9787
- - 长度不大于64
9788
- - 只能包含aA-zZ、下划线、-、0-9
9800
+ * <p>splunk投递任务名称;name有如下限制:- 不能为空- 长度不大于64- 只能包含aA-zZ、下划线、-、0-9</p>
9789
9801
  */
9790
9802
  Name: string;
9791
9803
  /**
9792
- * Splunk投递任务-目标配置-网络信息
9804
+ * <p>Splunk投递任务-目标配置-网络信息</p>
9793
9805
  */
9794
9806
  NetInfo: NetInfo;
9795
9807
  /**
9796
- * Splunk投递任务元信息
9808
+ * <p>Splunk投递任务元信息</p>
9797
9809
  */
9798
9810
  MetadataInfo: MetadataInfo;
9799
9811
  /**
9800
- * 是否开启服务日志 1:关闭;2:开启 ;默认开启
9812
+ * <p>是否开启服务日志 1:关闭;2:开启 ;默认开启</p>
9801
9813
  */
9802
9814
  HasServiceLog?: number;
9803
9815
  /**
9804
- * 高级配置-是否启用索引器;1-不启用;2-启用;
9805
- 默认:1
9816
+ * <p>高级配置-是否启用索引器;1-不启用;2-启用;默认:1</p>
9806
9817
  */
9807
9818
  IndexAck?: number;
9808
9819
  /**
9809
- * 高级配置-数据来源;不超过64个字符
9820
+ * <p>高级配置-数据来源;不超过64个字符</p>
9810
9821
  */
9811
9822
  Source?: string;
9812
9823
  /**
9813
- * 高级配置-数据来源类型;不超过64个字符
9824
+ * <p>高级配置-数据来源类型;不超过64个字符</p>
9814
9825
  */
9815
9826
  SourceType?: string;
9816
9827
  /**
9817
- * 高级配置-Splunk写入的索引;不超过64个字符
9828
+ * <p>高级配置-Splunk写入的索引;不超过64个字符</p>
9818
9829
  */
9819
9830
  Index?: string;
9820
9831
  /**
9821
- * 高级配置-通道
9822
- 需满足限制:如果启用索引器,那么Channel必填
9832
+ * <p>高级配置-通道需满足限制:如果启用索引器,那么Channel必填</p>
9823
9833
  */
9824
9834
  Channel?: string;
9835
+ /**
9836
+ * <p>日志预过滤-数据写入 Splunk 的原始数据进行预过滤处理</p>
9837
+ */
9838
+ DSLFilter?: string;
9825
9839
  }
9826
9840
  /**
9827
9841
  * CreateMachineGroup返回参数结构体
@@ -12835,9 +12849,13 @@ export interface HostFileInfo {
12835
12849
  */
12836
12850
  export interface DescribeSplunkPreviewResponse {
12837
12851
  /**
12838
- * 预览结果
12852
+ * <p>预览结果</p>
12839
12853
  */
12840
12854
  PreviewInfos?: Array<string>;
12855
+ /**
12856
+ * <p>数据过滤结果</p>
12857
+ */
12858
+ FilterStats?: FilterStatistics;
12841
12859
  /**
12842
12860
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
12843
12861
  */
@@ -1425,6 +1425,10 @@ export interface DescribeCheckViewRisksResponse {
1425
1425
  * 检查视角下cspm规范标签列表
1426
1426
  */
1427
1427
  StandardNameList?: Array<StandardItem>;
1428
+ /**
1429
+ * 资产类型集合
1430
+ */
1431
+ AssetTypeList?: Array<AttributeOptionSet>;
1428
1432
  /**
1429
1433
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1430
1434
  */
@@ -2177,7 +2181,7 @@ export interface DescribeAccessKeyUserListRequest {
2177
2181
  Filter?: Filter;
2178
2182
  }
2179
2183
  /**
2180
- * 资产视角风险项
2184
+ * 资产视角风险信息
2181
2185
  */
2182
2186
  export interface AssetRiskItem {
2183
2187
  /**
@@ -2244,6 +2248,10 @@ export interface AssetRiskItem {
2244
2248
  * 等保合规
2245
2249
  */
2246
2250
  StandardTerms?: Array<StandardTerm>;
2251
+ /**
2252
+ * 资产类型
2253
+ */
2254
+ AssetType?: string;
2247
2255
  }
2248
2256
  /**
2249
2257
  * DeleteDomainAndIp请求参数结构体
@@ -5390,6 +5398,10 @@ export interface DescribeAssetRiskListResponse {
5390
5398
  * 等保规范名称集合
5391
5399
  */
5392
5400
  StandardNameList?: Array<StandardItem>;
5401
+ /**
5402
+ * 资产类型集合
5403
+ */
5404
+ AssetTypeList?: Array<AttributeOptionSet>;
5393
5405
  /**
5394
5406
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5395
5407
  */
@@ -4456,6 +4456,10 @@ export interface CreateInstanceRequest {
4456
4456
  * 是否开通审计:0:不开通,1:开通
4457
4457
  */
4458
4458
  NeedCdbAudit?: number;
4459
+ /**
4460
+ * 安全组指定来源ip
4461
+ */
4462
+ SgIP?: string;
4459
4463
  }
4460
4464
  /**
4461
4465
  * 动态生成的变更详情条目
@@ -9709,6 +9713,10 @@ export interface CreateClusterRequest {
9709
9713
  * 是否开通数据库审计
9710
9714
  */
9711
9715
  NeedCdbAudit?: number;
9716
+ /**
9717
+ * 安全指定来源ip
9718
+ */
9719
+ SgIP?: string;
9712
9720
  }
9713
9721
  /**
9714
9722
  * CreateCloudInstance请求参数结构体
@@ -1,12 +1,16 @@
1
1
  import { AbstractClient } from "../../../common/abstract_client";
2
2
  import { ClientConfig } from "../../../common/interface";
3
- import { CreateRoleUserRequest, CompleteApprovalRequest, DeleteRoleUserRequest, DeleteRoleUserResponse, CreateRoleUserResponse, CompleteApprovalResponse, PutMessageResponse, PutMessageRequest } from "./evt_models";
3
+ import { CreateRoleUserRequest, CompleteApprovalRequest, DeleteRoleUserRequest, DeleteRoleUserResponse, PutEventResponse, CreateRoleUserResponse, PutEventRequest, CompleteApprovalResponse, PutMessageResponse, PutMessageRequest } from "./evt_models";
4
4
  /**
5
5
  * evt client
6
6
  * @class
7
7
  */
8
8
  export declare class Client extends AbstractClient {
9
9
  constructor(clientConfig: ClientConfig);
10
+ /**
11
+ * 推送事件数据
12
+ */
13
+ PutEvent(req: PutEventRequest, cb?: (error: string, rep: PutEventResponse) => void): Promise<PutEventResponse>;
10
14
  /**
11
15
  * 删除自定义用户
12
16
  */
@@ -27,6 +27,12 @@ class Client extends abstract_client_1.AbstractClient {
27
27
  constructor(clientConfig) {
28
28
  super("evt.tencentcloudapi.com", "2025-02-17", clientConfig);
29
29
  }
30
+ /**
31
+ * 推送事件数据
32
+ */
33
+ async PutEvent(req, cb) {
34
+ return this.request("PutEvent", req, cb);
35
+ }
30
36
  /**
31
37
  * 删除自定义用户
32
38
  */
@@ -91,6 +91,15 @@ export interface DeleteRoleUserResponse {
91
91
  */
92
92
  RequestId?: string;
93
93
  }
94
+ /**
95
+ * PutEvent返回参数结构体
96
+ */
97
+ export interface PutEventResponse {
98
+ /**
99
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
100
+ */
101
+ RequestId?: string;
102
+ }
94
103
  /**
95
104
  * CreateRoleUser返回参数结构体
96
105
  */
@@ -104,6 +113,27 @@ export interface CreateRoleUserResponse {
104
113
  */
105
114
  RequestId?: string;
106
115
  }
116
+ /**
117
+ * PutEvent请求参数结构体
118
+ */
119
+ export interface PutEventRequest {
120
+ /**
121
+ * <p>插件ID</p>
122
+ */
123
+ PluginId: string;
124
+ /**
125
+ * <p>需要推送的事件数据内容,格式为json,字段定义需要与事件中的定义一致</p>
126
+ */
127
+ Data?: string;
128
+ /**
129
+ * <p>数据推送来源,会在生成的单据中展示数据来源</p>
130
+ */
131
+ Source?: string;
132
+ /**
133
+ * <p>可以接受当前消息的Uin</p>
134
+ */
135
+ TargetUin?: number;
136
+ }
107
137
  /**
108
138
  * CompleteApproval返回参数结构体
109
139
  */