tencentcloud-sdk-nodejs 4.0.527 → 4.0.528

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +103 -0
  2. package/SERVICE_CHANGELOG.md +156 -10
  3. package/package.json +1 -1
  4. package/products.md +9 -9
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/ims/v20201229/ims_client.ts +4 -0
  7. package/src/services/ims/v20201229/ims_models.ts +58 -12
  8. package/src/services/mariadb/v20170312/mariadb_client.ts +14 -2
  9. package/src/services/mariadb/v20170312/mariadb_models.ts +54 -19
  10. package/src/services/rum/v20210622/rum_client.ts +7 -7
  11. package/src/services/rum/v20210622/rum_models.ts +14 -14
  12. package/src/services/tdid/v20210519/tdid_client.ts +0 -14
  13. package/src/services/tdid/v20210519/tdid_models.ts +0 -15
  14. package/src/services/trp/v20210515/trp_client.ts +27 -1
  15. package/src/services/trp/v20210515/trp_models.ts +308 -76
  16. package/src/services/waf/v20180125/waf_client.ts +2 -2
  17. package/src/services/waf/v20180125/waf_models.ts +18 -13
  18. package/tencentcloud/common/sdk_version.d.ts +1 -1
  19. package/tencentcloud/common/sdk_version.js +1 -1
  20. package/tencentcloud/services/ims/v20201229/ims_client.d.ts +2 -0
  21. package/tencentcloud/services/ims/v20201229/ims_client.js +2 -0
  22. package/tencentcloud/services/ims/v20201229/ims_models.d.ts +52 -12
  23. package/tencentcloud/services/mariadb/v20170312/mariadb_client.d.ts +5 -1
  24. package/tencentcloud/services/mariadb/v20170312/mariadb_client.js +6 -0
  25. package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +48 -18
  26. package/tencentcloud/services/rum/v20210622/rum_client.d.ts +7 -7
  27. package/tencentcloud/services/rum/v20210622/rum_client.js +7 -7
  28. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +14 -14
  29. package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +1 -7
  30. package/tencentcloud/services/tdid/v20210519/tdid_client.js +0 -8
  31. package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +0 -13
  32. package/tencentcloud/services/trp/v20210515/trp_client.d.ts +9 -1
  33. package/tencentcloud/services/trp/v20210515/trp_client.js +12 -0
  34. package/tencentcloud/services/trp/v20210515/trp_models.d.ts +258 -63
  35. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +2 -2
  36. package/tencentcloud/services/waf/v20180125/waf_client.js +2 -2
  37. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +17 -13
  38. package/test/mariadb.v20170312.test.js +10 -0
  39. package/test/tdid.v20210519.test.js +0 -10
  40. package/test/trp.v20210515.test.js +20 -0
@@ -88,6 +88,183 @@ export interface CodeBatch {
88
88
  */
89
89
  Job?: Job;
90
90
  }
91
+ /**
92
+ * DescribeScanLogs返回参数结构体
93
+ */
94
+ export interface DescribeScanLogsResponse {
95
+ /**
96
+ * 【弃用】
97
+ 注意:此字段可能返回 null,表示取不到有效值。
98
+ */
99
+ Products: Array<ScanLog>;
100
+ /**
101
+ * 条数
102
+ */
103
+ TotalCount: number;
104
+ /**
105
+ * 扫描记录
106
+ */
107
+ ScanLogs: Array<ScanLog>;
108
+ /**
109
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
110
+ */
111
+ RequestId?: string;
112
+ }
113
+ /**
114
+ * 企业配额信息
115
+ */
116
+ export interface Quota {
117
+ /**
118
+ * 服务开始时间
119
+ 注意:此字段可能返回 null,表示取不到有效值。
120
+ */
121
+ StartTime: string;
122
+ /**
123
+ * 服务结束时间
124
+ 注意:此字段可能返回 null,表示取不到有效值。
125
+ */
126
+ EndTime: string;
127
+ /**
128
+ * 配额ID
129
+ 注意:此字段可能返回 null,表示取不到有效值。
130
+ */
131
+ QuotaId?: number;
132
+ /**
133
+ * 企业ID
134
+ 注意:此字段可能返回 null,表示取不到有效值。
135
+ */
136
+ CorpId?: number;
137
+ /**
138
+ * 开通服务
139
+ 注意:此字段可能返回 null,表示取不到有效值。
140
+ */
141
+ Services?: Array<string>;
142
+ /**
143
+ * 商户配额
144
+ 注意:此字段可能返回 null,表示取不到有效值。
145
+ */
146
+ FactoryQuota?: number;
147
+ /**
148
+ * 商品配额
149
+ 注意:此字段可能返回 null,表示取不到有效值。
150
+ */
151
+ ItemQuota?: number;
152
+ /**
153
+ * 溯源码配额
154
+ 注意:此字段可能返回 null,表示取不到有效值。
155
+ */
156
+ TrackQuota?: number;
157
+ /**
158
+ * 销售码配额
159
+ 注意:此字段可能返回 null,表示取不到有效值。
160
+ */
161
+ SaleQuota?: number;
162
+ /**
163
+ * 上链配额
164
+ 注意:此字段可能返回 null,表示取不到有效值。
165
+ */
166
+ ChainQuota?: number;
167
+ /**
168
+ * 风控配额
169
+ 注意:此字段可能返回 null,表示取不到有效值。
170
+ */
171
+ RiskQuota?: number;
172
+ /**
173
+ * 溯源类型
174
+ 注意:此字段可能返回 null,表示取不到有效值。
175
+ */
176
+ TrackType?: number;
177
+ /**
178
+ * 开通版本 lite:轻量版, basic:基础版, standard:标准版
179
+ 注意:此字段可能返回 null,表示取不到有效值。
180
+ */
181
+ Version?: string;
182
+ }
183
+ /**
184
+ * 扫码明细
185
+ */
186
+ export interface ScanLog {
187
+ /**
188
+ * 行ID
189
+ 注意:此字段可能返回 null,表示取不到有效值。
190
+ */
191
+ LogId: number;
192
+ /**
193
+ * 微信openid
194
+ 注意:此字段可能返回 null,表示取不到有效值。
195
+ */
196
+ Openid: string;
197
+ /**
198
+ * 微信昵称
199
+ 注意:此字段可能返回 null,表示取不到有效值。
200
+ */
201
+ Nickname: string;
202
+ /**
203
+ * 创建时间
204
+ 注意:此字段可能返回 null,表示取不到有效值。
205
+ */
206
+ CreateTime: string;
207
+ /**
208
+ * 码
209
+ 注意:此字段可能返回 null,表示取不到有效值。
210
+ */
211
+ Code: string;
212
+ /**
213
+ * 企业ID
214
+ 注意:此字段可能返回 null,表示取不到有效值。
215
+ */
216
+ CorpId: number;
217
+ /**
218
+ * 商户ID
219
+ 注意:此字段可能返回 null,表示取不到有效值。
220
+ */
221
+ MerchantId: string;
222
+ /**
223
+ * 商品ID
224
+ 注意:此字段可能返回 null,表示取不到有效值。
225
+ */
226
+ ProductId: string;
227
+ /**
228
+ * ip地址
229
+ 注意:此字段可能返回 null,表示取不到有效值。
230
+ */
231
+ Ip: string;
232
+ /**
233
+ * 国家
234
+ 注意:此字段可能返回 null,表示取不到有效值。
235
+ */
236
+ Country: string;
237
+ /**
238
+ * 省份
239
+ 注意:此字段可能返回 null,表示取不到有效值。
240
+ */
241
+ Province: string;
242
+ /**
243
+ * 城市
244
+ 注意:此字段可能返回 null,表示取不到有效值。
245
+ */
246
+ City: string;
247
+ /**
248
+ * 县/区
249
+ 注意:此字段可能返回 null,表示取不到有效值。
250
+ */
251
+ District: string;
252
+ /**
253
+ * 微信 unionid
254
+ 注意:此字段可能返回 null,表示取不到有效值。
255
+ */
256
+ Unionid?: string;
257
+ /**
258
+ * 首次扫码 0:否, 1:是
259
+ 注意:此字段可能返回 null,表示取不到有效值。
260
+ */
261
+ First?: number;
262
+ /**
263
+ * 批次ID
264
+ 注意:此字段可能返回 null,表示取不到有效值。
265
+ */
266
+ BatchId?: string;
267
+ }
91
268
  /**
92
269
  * DescribeProducts请求参数结构体
93
270
  */
@@ -1947,6 +2124,19 @@ export interface DeleteTraceDataRequest {
1947
2124
  */
1948
2125
  CorpId?: number;
1949
2126
  }
2127
+ /**
2128
+ * DescribeScanLogs请求参数结构体
2129
+ */
2130
+ export interface DescribeScanLogsRequest {
2131
+ /**
2132
+ * 码
2133
+ */
2134
+ Code: string;
2135
+ /**
2136
+ * 企业ID
2137
+ */
2138
+ CorpId?: number;
2139
+ }
1950
2140
  /**
1951
2141
  * ModifyTraceCodeUnlink返回参数结构体
1952
2142
  */
@@ -2135,74 +2325,17 @@ export interface TraceCode {
2135
2325
  Level?: number;
2136
2326
  }
2137
2327
  /**
2138
- * 企业配额信息
2328
+ * DescribeScanStats返回参数结构体
2139
2329
  */
2140
- export interface Quota {
2330
+ export interface DescribeScanStatsResponse {
2141
2331
  /**
2142
- * 服务开始时间
2143
- 注意:此字段可能返回 null,表示取不到有效值。
2332
+ * 统计记录
2144
2333
  */
2145
- StartTime: string;
2334
+ ScanStats?: Array<ScanStat>;
2146
2335
  /**
2147
- * 服务结束时间
2148
- 注意:此字段可能返回 null,表示取不到有效值。
2149
- */
2150
- EndTime: string;
2151
- /**
2152
- * 配额ID
2153
- 注意:此字段可能返回 null,表示取不到有效值。
2154
- */
2155
- QuotaId?: number;
2156
- /**
2157
- * 企业ID
2158
- 注意:此字段可能返回 null,表示取不到有效值。
2159
- */
2160
- CorpId?: number;
2161
- /**
2162
- * 开通服务
2163
- 注意:此字段可能返回 null,表示取不到有效值。
2164
- */
2165
- Services?: Array<string>;
2166
- /**
2167
- * 商户配额
2168
- 注意:此字段可能返回 null,表示取不到有效值。
2169
- */
2170
- FactoryQuota?: number;
2171
- /**
2172
- * 商品配额
2173
- 注意:此字段可能返回 null,表示取不到有效值。
2174
- */
2175
- ItemQuota?: number;
2176
- /**
2177
- * 溯源码配额
2178
- 注意:此字段可能返回 null,表示取不到有效值。
2179
- */
2180
- TrackQuota?: number;
2181
- /**
2182
- * 销售码配额
2183
- 注意:此字段可能返回 null,表示取不到有效值。
2184
- */
2185
- SaleQuota?: number;
2186
- /**
2187
- * 上链配额
2188
- 注意:此字段可能返回 null,表示取不到有效值。
2189
- */
2190
- ChainQuota?: number;
2191
- /**
2192
- * 风控配额
2193
- 注意:此字段可能返回 null,表示取不到有效值。
2194
- */
2195
- RiskQuota?: number;
2196
- /**
2197
- * 溯源类型
2198
- 注意:此字段可能返回 null,表示取不到有效值。
2199
- */
2200
- TrackType?: number;
2201
- /**
2202
- * 开通版本 lite:轻量版, basic:基础版, standard:标准版
2203
- 注意:此字段可能返回 null,表示取不到有效值。
2336
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2204
2337
  */
2205
- Version?: string;
2338
+ RequestId?: string;
2206
2339
  }
2207
2340
  /**
2208
2341
  * CreateMerchant返回参数结构体
@@ -2270,6 +2403,27 @@ export interface DescribeTraceDataListRequest {
2270
2403
  */
2271
2404
  PageSize?: number;
2272
2405
  }
2406
+ /**
2407
+ * DescribeScanStats请求参数结构体
2408
+ */
2409
+ export interface DescribeScanStatsRequest {
2410
+ /**
2411
+ * 批次ID
2412
+ */
2413
+ BatchId: string;
2414
+ /**
2415
+ * 企业ID
2416
+ */
2417
+ CorpId?: number;
2418
+ /**
2419
+ * 分页数量
2420
+ */
2421
+ PageSize?: number;
2422
+ /**
2423
+ * 当前分页
2424
+ */
2425
+ PageNumber?: number;
2426
+ }
2273
2427
  /**
2274
2428
  * DeleteMerchant返回参数结构体
2275
2429
  */
@@ -2402,6 +2556,47 @@ export interface DeleteMerchantRequest {
2402
2556
  */
2403
2557
  CorpId?: number;
2404
2558
  }
2559
+ /**
2560
+ * 扫码统计
2561
+ */
2562
+ export interface ScanStat {
2563
+ /**
2564
+ * 安心码
2565
+ */
2566
+ Code?: string;
2567
+ /**
2568
+ * 企业ID
2569
+ */
2570
+ CorpId?: number;
2571
+ /**
2572
+ * 商户ID
2573
+ */
2574
+ MerchantId?: string;
2575
+ /**
2576
+ * 产品ID
2577
+ */
2578
+ ProductId?: string;
2579
+ /**
2580
+ * 批次ID
2581
+ */
2582
+ BatchId?: string;
2583
+ /**
2584
+ * 扫码次数
2585
+ */
2586
+ Pv?: number;
2587
+ /**
2588
+ * 扫码人数
2589
+ */
2590
+ Uv?: number;
2591
+ /**
2592
+ * 创建时间
2593
+ */
2594
+ CreateTime?: string;
2595
+ /**
2596
+ * 更新时间
2597
+ */
2598
+ UpdateTime?: string;
2599
+ }
2405
2600
  /**
2406
2601
  * ModifyTraceCode返回参数结构体
2407
2602
  */
@@ -12,7 +12,7 @@ export declare class Client extends AbstractClient {
12
12
  */
13
13
  DescribeAccessExports(req: DescribeAccessExportsRequest, cb?: (error: string, rep: DescribeAccessExportsResponse) => void): Promise<DescribeAccessExportsResponse>;
14
14
  /**
15
- * 开启或禁用自定义策略
15
+ * 开启或禁用访问控制(自定义策略)
16
16
  */
17
17
  ModifyCustomRuleStatus(req: ModifyCustomRuleStatusRequest, cb?: (error: string, rep: ModifyCustomRuleStatusResponse) => void): Promise<ModifyCustomRuleStatusResponse>;
18
18
  /**
@@ -86,7 +86,7 @@ export declare class Client extends AbstractClient {
86
86
  */
87
87
  GetAttackDownloadRecords(req?: GetAttackDownloadRecordsRequest, cb?: (error: string, rep: GetAttackDownloadRecordsResponse) => void): Promise<GetAttackDownloadRecordsResponse>;
88
88
  /**
89
- * 增加自定义策略
89
+ * 增加访问控制(自定义策略)
90
90
  */
91
91
  AddCustomRule(req: AddCustomRuleRequest, cb?: (error: string, rep: AddCustomRuleResponse) => void): Promise<AddCustomRuleResponse>;
92
92
  /**
@@ -34,7 +34,7 @@ class Client extends abstract_client_1.AbstractClient {
34
34
  return this.request("DescribeAccessExports", req, cb);
35
35
  }
36
36
  /**
37
- * 开启或禁用自定义策略
37
+ * 开启或禁用访问控制(自定义策略)
38
38
  */
39
39
  async ModifyCustomRuleStatus(req, cb) {
40
40
  return this.request("ModifyCustomRuleStatus", req, cb);
@@ -144,7 +144,7 @@ class Client extends abstract_client_1.AbstractClient {
144
144
  return this.request("GetAttackDownloadRecords", req, cb);
145
145
  }
146
146
  /**
147
- * 增加自定义策略
147
+ * 增加访问控制(自定义策略)
148
148
  */
149
149
  async AddCustomRule(req, cb) {
150
150
  return this.request("AddCustomRule", req, cb);
@@ -430,12 +430,12 @@ export interface AddCustomRuleResponse {
430
430
  /**
431
431
  * 操作的状态码,如果所有的资源操作成功则返回的是成功的状态码,如果有资源操作失败则需要解析Message的内容来查看哪个资源失败
432
432
  */
433
- Success: ResponseCode;
433
+ Success?: ResponseCode;
434
434
  /**
435
435
  * 添加成功的规则ID
436
436
  注意:此字段可能返回 null,表示取不到有效值。
437
437
  */
438
- RuleId: number;
438
+ RuleId?: number;
439
439
  /**
440
440
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
441
441
  */
@@ -471,7 +471,7 @@ export interface UpsertIpAccessControlRequest {
471
471
  */
472
472
  Items: Array<string>;
473
473
  /**
474
- * clb-waf或者sparta-waf
474
+ * WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
475
475
  */
476
476
  Edition?: string;
477
477
  /**
@@ -1245,7 +1245,7 @@ export interface ModifyCustomRuleStatusResponse {
1245
1245
  /**
1246
1246
  * 操作的状态码,如果所有的资源操作成功则返回的是成功的状态码,如果有资源操作失败则需要解析Message的内容来查看哪个资源失败
1247
1247
  */
1248
- Success: ResponseCode;
1248
+ Success?: ResponseCode;
1249
1249
  /**
1250
1250
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1251
1251
  */
@@ -1738,13 +1738,17 @@ export interface AddCustomRuleRequest {
1738
1738
  */
1739
1739
  Redirect?: string;
1740
1740
  /**
1741
- * "clb-waf"或者"sparta-waf"
1741
+ * WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
1742
1742
  */
1743
1743
  Edition?: string;
1744
1744
  /**
1745
1745
  * 放行的详情
1746
1746
  */
1747
1747
  Bypass?: string;
1748
+ /**
1749
+ * 添加规则的来源,默认为空
1750
+ */
1751
+ EventId?: string;
1748
1752
  }
1749
1753
  /**
1750
1754
  * 业务安全资源信息
@@ -1895,12 +1899,12 @@ export interface DescribeDomainsResponse {
1895
1899
  /**
1896
1900
  * 总数
1897
1901
  */
1898
- Total: number;
1902
+ Total?: number;
1899
1903
  /**
1900
1904
  * domain列表
1901
1905
  注意:此字段可能返回 null,表示取不到有效值。
1902
1906
  */
1903
- Domains: Array<DomainInfo>;
1907
+ Domains?: Array<DomainInfo>;
1904
1908
  /**
1905
1909
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1906
1910
  */
@@ -2177,12 +2181,12 @@ export interface UpsertIpAccessControlResponse {
2177
2181
  * 添加或修改失败的条目
2178
2182
  注意:此字段可能返回 null,表示取不到有效值。
2179
2183
  */
2180
- FailedItems: string;
2184
+ FailedItems?: string;
2181
2185
  /**
2182
2186
  * 添加或修改失败的数目
2183
2187
  注意:此字段可能返回 null,表示取不到有效值。
2184
2188
  */
2185
- FailedCount: number;
2189
+ FailedCount?: number;
2186
2190
  /**
2187
2191
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2188
2192
  */
@@ -2289,19 +2293,19 @@ export declare type DescribeWafThreatenIntelligenceRequest = null;
2289
2293
  */
2290
2294
  export interface DescribeAccessIndexResponse {
2291
2295
  /**
2292
- * 是否生效
2296
+ * 是否生效,true表示生效,false表示未生效
2293
2297
  */
2294
- Status: boolean;
2298
+ Status?: boolean;
2295
2299
  /**
2296
2300
  * 索引配置信息
2297
2301
  注意:此字段可能返回 null,表示取不到有效值。
2298
2302
  注意:此字段可能返回 null,表示取不到有效值。
2299
2303
  */
2300
- Rule: AccessRuleInfo;
2304
+ Rule?: AccessRuleInfo;
2301
2305
  /**
2302
2306
  * 索引修改时间,初始值为索引创建时间。
2303
2307
  */
2304
- ModifyTime: string;
2308
+ ModifyTime?: string;
2305
2309
  /**
2306
2310
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2307
2311
  */
@@ -668,6 +668,16 @@ it("mariadb.v20170312.DisassociateSecurityGroups", async function () {
668
668
  }
669
669
  })
670
670
 
671
+ it("mariadb.v20170312.DescribeDBEncryptAttributes", async function () {
672
+ try {
673
+ const data = await client.DescribeDBEncryptAttributes({})
674
+ expect(data).to.be.ok
675
+ } catch(error) {
676
+ expect(error.requestId).to.be.ok
677
+ expect(error.code).to.be.ok
678
+ }
679
+ })
680
+
671
681
  it("mariadb.v20170312.ModifyLogFileRetentionPeriod", async function () {
672
682
  try {
673
683
  const data = await client.ModifyLogFileRetentionPeriod({})
@@ -368,16 +368,6 @@ it("tdid.v20210519.GetDidDocument", async function () {
368
368
  }
369
369
  })
370
370
 
371
- it("tdid.v20210519.VerifyPurchase", async function () {
372
- try {
373
- const data = await client.VerifyPurchase({})
374
- expect(data).to.be.ok
375
- } catch(error) {
376
- expect(error.requestId).to.be.ok
377
- expect(error.code).to.be.ok
378
- }
379
- })
380
-
381
371
  it("tdid.v20210519.GetDidServiceList", async function () {
382
372
  try {
383
373
  const data = await client.GetDidServiceList({})
@@ -268,6 +268,16 @@ it("trp.v20210515.DeleteMerchant", async function () {
268
268
  }
269
269
  })
270
270
 
271
+ it("trp.v20210515.DescribeScanStats", async function () {
272
+ try {
273
+ const data = await client.DescribeScanStats({})
274
+ expect(data).to.be.ok
275
+ } catch(error) {
276
+ expect(error.requestId).to.be.ok
277
+ expect(error.code).to.be.ok
278
+ }
279
+ })
280
+
271
281
  it("trp.v20210515.DescribeCodePackStatus", async function () {
272
282
  try {
273
283
  const data = await client.DescribeCodePackStatus({})
@@ -398,6 +408,16 @@ it("trp.v20210515.DescribeCodePacks", async function () {
398
408
  }
399
409
  })
400
410
 
411
+ it("trp.v20210515.DescribeScanLogs", async function () {
412
+ try {
413
+ const data = await client.DescribeScanLogs({})
414
+ expect(data).to.be.ok
415
+ } catch(error) {
416
+ expect(error.requestId).to.be.ok
417
+ expect(error.code).to.be.ok
418
+ }
419
+ })
420
+
401
421
  it("trp.v20210515.ModifyCodeBatch", async function () {
402
422
  try {
403
423
  const data = await client.ModifyCodeBatch({})