tencentcloud-sdk-nodejs 4.0.627 → 4.0.629

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 (90) hide show
  1. package/CHANGELOG.md +508 -0
  2. package/SERVICE_CHANGELOG.md +642 -100
  3. package/package.json +1 -1
  4. package/products.md +30 -30
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/antiddos/v20200309/antiddos_models.ts +35 -26
  7. package/src/services/apigateway/v20180808/apigateway_models.ts +17 -13
  8. package/src/services/asr/v20190614/asr_client.ts +1 -1
  9. package/src/services/asr/v20190614/asr_models.ts +2 -2
  10. package/src/services/cdb/v20170320/cdb_models.ts +2 -2
  11. package/src/services/cdn/v20180606/cdn_client.ts +16 -0
  12. package/src/services/cdn/v20180606/cdn_models.ts +28 -0
  13. package/src/services/ckafka/v20190819/ckafka_client.ts +26 -12
  14. package/src/services/ckafka/v20190819/ckafka_models.ts +271 -130
  15. package/src/services/cls/v20201016/cls_client.ts +1 -1
  16. package/src/services/cynosdb/v20190107/cynosdb_client.ts +13 -1
  17. package/src/services/cynosdb/v20190107/cynosdb_models.ts +42 -8
  18. package/src/services/ess/v20201111/ess_models.ts +4 -4
  19. package/src/services/essbasic/v20210526/essbasic_models.ts +4 -36
  20. package/src/services/live/v20180801/live_models.ts +4 -4
  21. package/src/services/nlp/v20190408/nlp_client.ts +54 -5
  22. package/src/services/nlp/v20190408/nlp_models.ts +206 -32
  23. package/src/services/postgres/v20170312/postgres_models.ts +5 -5
  24. package/src/services/sqlserver/v20180328/sqlserver_client.ts +1 -0
  25. package/src/services/sqlserver/v20180328/sqlserver_models.ts +33 -2
  26. package/src/services/tbaas/v20180416/tbaas_client.ts +53 -123
  27. package/src/services/tbaas/v20180416/tbaas_models.ts +192 -516
  28. package/src/services/tdid/v20210519/tdid_client.ts +111 -518
  29. package/src/services/tdid/v20210519/tdid_models.ts +354 -1911
  30. package/src/services/tdmq/v20200217/tdmq_models.ts +2 -2
  31. package/src/services/tione/v20211111/tione_models.ts +10 -0
  32. package/src/services/tke/v20180525/tke_client.ts +1 -1
  33. package/src/services/tke/v20180525/tke_models.ts +4 -4
  34. package/src/services/trp/v20210515/trp_client.ts +1 -0
  35. package/src/services/trp/v20210515/trp_models.ts +152 -40
  36. package/src/services/tts/v20190823/tts_models.ts +3 -3
  37. package/src/services/waf/v20180125/waf_client.ts +13 -0
  38. package/src/services/waf/v20180125/waf_models.ts +170 -0
  39. package/src/services/wedata/v20210820/wedata_models.ts +76 -5
  40. package/tencentcloud/common/sdk_version.d.ts +1 -1
  41. package/tencentcloud/common/sdk_version.js +1 -1
  42. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +35 -26
  43. package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +17 -13
  44. package/tencentcloud/services/asr/v20190614/asr_client.d.ts +1 -1
  45. package/tencentcloud/services/asr/v20190614/asr_client.js +1 -1
  46. package/tencentcloud/services/asr/v20190614/asr_models.d.ts +2 -2
  47. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +2 -2
  48. package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +9 -1
  49. package/tencentcloud/services/cdn/v20180606/cdn_client.js +10 -0
  50. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +26 -0
  51. package/tencentcloud/services/ckafka/v20190819/ckafka_client.d.ts +7 -3
  52. package/tencentcloud/services/ckafka/v20190819/ckafka_client.js +9 -3
  53. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +266 -129
  54. package/tencentcloud/services/cls/v20201016/cls_client.d.ts +1 -1
  55. package/tencentcloud/services/cls/v20201016/cls_client.js +1 -1
  56. package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.d.ts +5 -1
  57. package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.js +6 -0
  58. package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +40 -8
  59. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +4 -4
  60. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +4 -36
  61. package/tencentcloud/services/live/v20180801/live_models.d.ts +4 -4
  62. package/tencentcloud/services/nlp/v20190408/nlp_client.d.ts +17 -1
  63. package/tencentcloud/services/nlp/v20190408/nlp_client.js +24 -0
  64. package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +197 -32
  65. package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +5 -5
  66. package/tencentcloud/services/sqlserver/v20180328/sqlserver_models.d.ts +32 -2
  67. package/tencentcloud/services/tbaas/v20180416/tbaas_client.d.ts +27 -47
  68. package/tencentcloud/services/tbaas/v20180416/tbaas_client.js +27 -59
  69. package/tencentcloud/services/tbaas/v20180416/tbaas_models.d.ts +193 -503
  70. package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +41 -197
  71. package/tencentcloud/services/tdid/v20210519/tdid_client.js +50 -266
  72. package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +353 -1839
  73. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +2 -2
  74. package/tencentcloud/services/tione/v20211111/tione_models.d.ts +10 -0
  75. package/tencentcloud/services/tke/v20180525/tke_client.d.ts +1 -1
  76. package/tencentcloud/services/tke/v20180525/tke_client.js +1 -1
  77. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +4 -4
  78. package/tencentcloud/services/trp/v20210515/trp_models.d.ts +151 -40
  79. package/tencentcloud/services/tts/v20190823/tts_models.d.ts +3 -3
  80. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +5 -1
  81. package/tencentcloud/services/waf/v20180125/waf_client.js +6 -0
  82. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +167 -0
  83. package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +76 -5
  84. package/test/cdn.v20180606.test.js +10 -0
  85. package/test/ckafka.v20190819.test.js +12 -2
  86. package/test/cynosdb.v20190107.test.js +10 -0
  87. package/test/nlp.v20190408.test.js +40 -0
  88. package/test/tbaas.v20180416.test.js +2 -62
  89. package/test/tdid.v20210519.test.js +20 -320
  90. package/test/waf.v20180125.test.js +10 -0
@@ -18,56 +18,6 @@ const client = new tencentcloud.tdid.v20210519.Client({
18
18
  })
19
19
  describe("tdid.v20210519.test.js", function () {
20
20
 
21
- it("tdid.v20210519.CreateSelectiveCredential", async function () {
22
- try {
23
- const data = await client.CreateSelectiveCredential({})
24
- expect(data).to.be.ok
25
- } catch(error) {
26
- expect(error.requestId).to.be.ok
27
- expect(error.code).to.be.ok
28
- }
29
- })
30
-
31
- it("tdid.v20210519.GetAuthoritiesList", async function () {
32
- try {
33
- const data = await client.GetAuthoritiesList({})
34
- expect(data).to.be.ok
35
- } catch(error) {
36
- expect(error.requestId).to.be.ok
37
- expect(error.code).to.be.ok
38
- }
39
- })
40
-
41
- it("tdid.v20210519.GetPolicyList", async function () {
42
- try {
43
- const data = await client.GetPolicyList({})
44
- expect(data).to.be.ok
45
- } catch(error) {
46
- expect(error.requestId).to.be.ok
47
- expect(error.code).to.be.ok
48
- }
49
- })
50
-
51
- it("tdid.v20210519.GetCredentialStatus", async function () {
52
- try {
53
- const data = await client.GetCredentialStatus({})
54
- expect(data).to.be.ok
55
- } catch(error) {
56
- expect(error.requestId).to.be.ok
57
- expect(error.code).to.be.ok
58
- }
59
- })
60
-
61
- it("tdid.v20210519.GetPublicKey", async function () {
62
- try {
63
- const data = await client.GetPublicKey({})
64
- expect(data).to.be.ok
65
- } catch(error) {
66
- expect(error.requestId).to.be.ok
67
- expect(error.code).to.be.ok
68
- }
69
- })
70
-
71
21
  it("tdid.v20210519.CheckChain", async function () {
72
22
  try {
73
23
  const data = await client.CheckChain({})
@@ -78,209 +28,9 @@ it("tdid.v20210519.CheckChain", async function () {
78
28
  }
79
29
  })
80
30
 
81
- it("tdid.v20210519.QueryPolicy", async function () {
82
- try {
83
- const data = await client.QueryPolicy({})
84
- expect(data).to.be.ok
85
- } catch(error) {
86
- expect(error.requestId).to.be.ok
87
- expect(error.code).to.be.ok
88
- }
89
- })
90
-
91
- it("tdid.v20210519.CheckDidDeploy", async function () {
92
- try {
93
- const data = await client.CheckDidDeploy({})
94
- expect(data).to.be.ok
95
- } catch(error) {
96
- expect(error.requestId).to.be.ok
97
- expect(error.code).to.be.ok
98
- }
99
- })
100
-
101
- it("tdid.v20210519.RecognizeAuthorityIssuer", async function () {
102
- try {
103
- const data = await client.RecognizeAuthorityIssuer({})
104
- expect(data).to.be.ok
105
- } catch(error) {
106
- expect(error.requestId).to.be.ok
107
- expect(error.code).to.be.ok
108
- }
109
- })
110
-
111
- it("tdid.v20210519.CancelAuthorityIssuer", async function () {
112
- try {
113
- const data = await client.CancelAuthorityIssuer({})
114
- expect(data).to.be.ok
115
- } catch(error) {
116
- expect(error.requestId).to.be.ok
117
- expect(error.code).to.be.ok
118
- }
119
- })
120
-
121
- it("tdid.v20210519.GetDidRegisterTrend", async function () {
122
- try {
123
- const data = await client.GetDidRegisterTrend({})
124
- expect(data).to.be.ok
125
- } catch(error) {
126
- expect(error.requestId).to.be.ok
127
- expect(error.code).to.be.ok
128
- }
129
- })
130
-
131
- it("tdid.v20210519.GetDidDetail", async function () {
132
- try {
133
- const data = await client.GetDidDetail({})
134
- expect(data).to.be.ok
135
- } catch(error) {
136
- expect(error.requestId).to.be.ok
137
- expect(error.code).to.be.ok
138
- }
139
- })
140
-
141
- it("tdid.v20210519.RemoveHash", async function () {
142
- try {
143
- const data = await client.RemoveHash({})
144
- expect(data).to.be.ok
145
- } catch(error) {
146
- expect(error.requestId).to.be.ok
147
- expect(error.code).to.be.ok
148
- }
149
- })
150
-
151
- it("tdid.v20210519.GetCredentialIssueRank", async function () {
152
- try {
153
- const data = await client.GetCredentialIssueRank({})
154
- expect(data).to.be.ok
155
- } catch(error) {
156
- expect(error.requestId).to.be.ok
157
- expect(error.code).to.be.ok
158
- }
159
- })
160
-
161
- it("tdid.v20210519.GetGroupList", async function () {
162
- try {
163
- const data = await client.GetGroupList({})
164
- expect(data).to.be.ok
165
- } catch(error) {
166
- expect(error.requestId).to.be.ok
167
- expect(error.code).to.be.ok
168
- }
169
- })
170
-
171
- it("tdid.v20210519.RegisterClaimPolicy", async function () {
172
- try {
173
- const data = await client.RegisterClaimPolicy({})
174
- expect(data).to.be.ok
175
- } catch(error) {
176
- expect(error.requestId).to.be.ok
177
- expect(error.code).to.be.ok
178
- }
179
- })
180
-
181
- it("tdid.v20210519.GetConsortiumList", async function () {
182
- try {
183
- const data = await client.GetConsortiumList({})
184
- expect(data).to.be.ok
185
- } catch(error) {
186
- expect(error.requestId).to.be.ok
187
- expect(error.code).to.be.ok
188
- }
189
- })
190
-
191
- it("tdid.v20210519.GetDidClusterList", async function () {
192
- try {
193
- const data = await client.GetDidClusterList({})
194
- expect(data).to.be.ok
195
- } catch(error) {
196
- expect(error.requestId).to.be.ok
197
- expect(error.code).to.be.ok
198
- }
199
- })
200
-
201
- it("tdid.v20210519.GetDidServiceDetail", async function () {
202
- try {
203
- const data = await client.GetDidServiceDetail({})
204
- expect(data).to.be.ok
205
- } catch(error) {
206
- expect(error.requestId).to.be.ok
207
- expect(error.code).to.be.ok
208
- }
209
- })
210
-
211
- it("tdid.v20210519.GetCptList", async function () {
212
- try {
213
- const data = await client.GetCptList({})
214
- expect(data).to.be.ok
215
- } catch(error) {
216
- expect(error.requestId).to.be.ok
217
- expect(error.code).to.be.ok
218
- }
219
- })
220
-
221
- it("tdid.v20210519.GetCredentialIssueTrend", async function () {
222
- try {
223
- const data = await client.GetCredentialIssueTrend({})
224
- expect(data).to.be.ok
225
- } catch(error) {
226
- expect(error.requestId).to.be.ok
227
- expect(error.code).to.be.ok
228
- }
229
- })
230
-
231
- it("tdid.v20210519.DeployByName", async function () {
232
- try {
233
- const data = await client.DeployByName({})
234
- expect(data).to.be.ok
235
- } catch(error) {
236
- expect(error.requestId).to.be.ok
237
- expect(error.code).to.be.ok
238
- }
239
- })
240
-
241
- it("tdid.v20210519.CreateDidService", async function () {
242
- try {
243
- const data = await client.CreateDidService({})
244
- expect(data).to.be.ok
245
- } catch(error) {
246
- expect(error.requestId).to.be.ok
247
- expect(error.code).to.be.ok
248
- }
249
- })
250
-
251
- it("tdid.v20210519.CreateCredential", async function () {
252
- try {
253
- const data = await client.CreateCredential({})
254
- expect(data).to.be.ok
255
- } catch(error) {
256
- expect(error.requestId).to.be.ok
257
- expect(error.code).to.be.ok
258
- }
259
- })
260
-
261
- it("tdid.v20210519.GetDidClusterDetail", async function () {
262
- try {
263
- const data = await client.GetDidClusterDetail({})
264
- expect(data).to.be.ok
265
- } catch(error) {
266
- expect(error.requestId).to.be.ok
267
- expect(error.code).to.be.ok
268
- }
269
- })
270
-
271
- it("tdid.v20210519.SetCredentialStatus", async function () {
272
- try {
273
- const data = await client.SetCredentialStatus({})
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
-
281
- it("tdid.v20210519.GetLabelList", async function () {
31
+ it("tdid.v20210519.GetCptInfo", async function () {
282
32
  try {
283
- const data = await client.GetLabelList({})
33
+ const data = await client.GetCptInfo({})
284
34
  expect(data).to.be.ok
285
35
  } catch(error) {
286
36
  expect(error.requestId).to.be.ok
@@ -288,9 +38,9 @@ it("tdid.v20210519.GetLabelList", async function () {
288
38
  }
289
39
  })
290
40
 
291
- it("tdid.v20210519.EnableHash", async function () {
41
+ it("tdid.v20210519.GetDidDocument", async function () {
292
42
  try {
293
- const data = await client.EnableHash({})
43
+ const data = await client.GetDidDocument({})
294
44
  expect(data).to.be.ok
295
45
  } catch(error) {
296
46
  expect(error.requestId).to.be.ok
@@ -298,9 +48,9 @@ it("tdid.v20210519.EnableHash", async function () {
298
48
  }
299
49
  })
300
50
 
301
- it("tdid.v20210519.GetDeployList", async function () {
51
+ it("tdid.v20210519.CreateSelectiveCredential", async function () {
302
52
  try {
303
- const data = await client.GetDeployList({})
53
+ const data = await client.CreateSelectiveCredential({})
304
54
  expect(data).to.be.ok
305
55
  } catch(error) {
306
56
  expect(error.requestId).to.be.ok
@@ -318,26 +68,6 @@ it("tdid.v20210519.CreateTDid", async function () {
318
68
  }
319
69
  })
320
70
 
321
- it("tdid.v20210519.RegisterIssuer", async function () {
322
- try {
323
- const data = await client.RegisterIssuer({})
324
- expect(data).to.be.ok
325
- } catch(error) {
326
- expect(error.requestId).to.be.ok
327
- expect(error.code).to.be.ok
328
- }
329
- })
330
-
331
- it("tdid.v20210519.GetDeployInfo", async function () {
332
- try {
333
- const data = await client.GetDeployInfo({})
334
- expect(data).to.be.ok
335
- } catch(error) {
336
- expect(error.requestId).to.be.ok
337
- expect(error.code).to.be.ok
338
- }
339
- })
340
-
341
71
  it("tdid.v20210519.GetCredentialCptRank", async function () {
342
72
  try {
343
73
  const data = await client.GetCredentialCptRank({})
@@ -348,29 +78,9 @@ it("tdid.v20210519.GetCredentialCptRank", async function () {
348
78
  }
349
79
  })
350
80
 
351
- it("tdid.v20210519.GetCptInfo", async function () {
352
- try {
353
- const data = await client.GetCptInfo({})
354
- expect(data).to.be.ok
355
- } catch(error) {
356
- expect(error.requestId).to.be.ok
357
- expect(error.code).to.be.ok
358
- }
359
- })
360
-
361
- it("tdid.v20210519.GetDidDocument", async function () {
362
- try {
363
- const data = await client.GetDidDocument({})
364
- expect(data).to.be.ok
365
- } catch(error) {
366
- expect(error.requestId).to.be.ok
367
- expect(error.code).to.be.ok
368
- }
369
- })
370
-
371
- it("tdid.v20210519.GetDidServiceList", async function () {
81
+ it("tdid.v20210519.CreateCredential", async function () {
372
82
  try {
373
- const data = await client.GetDidServiceList({})
83
+ const data = await client.CreateCredential({})
374
84
  expect(data).to.be.ok
375
85
  } catch(error) {
376
86
  expect(error.requestId).to.be.ok
@@ -378,9 +88,9 @@ it("tdid.v20210519.GetDidServiceList", async function () {
378
88
  }
379
89
  })
380
90
 
381
- it("tdid.v20210519.GetDidList", async function () {
91
+ it("tdid.v20210519.CreateTDidByPublicKey", async function () {
382
92
  try {
383
- const data = await client.GetDidList({})
93
+ const data = await client.CreateTDidByPublicKey({})
384
94
  expect(data).to.be.ok
385
95
  } catch(error) {
386
96
  expect(error.requestId).to.be.ok
@@ -388,9 +98,9 @@ it("tdid.v20210519.GetDidList", async function () {
388
98
  }
389
99
  })
390
100
 
391
- it("tdid.v20210519.CreateTDidByPublicKey", async function () {
101
+ it("tdid.v20210519.GetConsortiumList", async function () {
392
102
  try {
393
- const data = await client.CreateTDidByPublicKey({})
103
+ const data = await client.GetConsortiumList({})
394
104
  expect(data).to.be.ok
395
105
  } catch(error) {
396
106
  expect(error.requestId).to.be.ok
@@ -428,19 +138,9 @@ it("tdid.v20210519.AddLabel", async function () {
428
138
  }
429
139
  })
430
140
 
431
- it("tdid.v20210519.DownCpt", async function () {
432
- try {
433
- const data = await client.DownCpt({})
434
- expect(data).to.be.ok
435
- } catch(error) {
436
- expect(error.requestId).to.be.ok
437
- expect(error.code).to.be.ok
438
- }
439
- })
440
-
441
- it("tdid.v20210519.RegisterCpt", async function () {
141
+ it("tdid.v20210519.GetCredentialStatus", async function () {
442
142
  try {
443
- const data = await client.RegisterCpt({})
143
+ const data = await client.GetCredentialStatus({})
444
144
  expect(data).to.be.ok
445
145
  } catch(error) {
446
146
  expect(error.requestId).to.be.ok
@@ -468,9 +168,9 @@ it("tdid.v20210519.VerifyCredential", async function () {
468
168
  }
469
169
  })
470
170
 
471
- it("tdid.v20210519.GetDataPanel", async function () {
171
+ it("tdid.v20210519.GetAuthorityIssuer", async function () {
472
172
  try {
473
- const data = await client.GetDataPanel({})
173
+ const data = await client.GetAuthorityIssuer({})
474
174
  expect(data).to.be.ok
475
175
  } catch(error) {
476
176
  expect(error.requestId).to.be.ok
@@ -478,9 +178,9 @@ it("tdid.v20210519.GetDataPanel", async function () {
478
178
  }
479
179
  })
480
180
 
481
- it("tdid.v20210519.GetAuthorityIssuer", async function () {
181
+ it("tdid.v20210519.SetCredentialStatus", async function () {
482
182
  try {
483
- const data = await client.GetAuthorityIssuer({})
183
+ const data = await client.SetCredentialStatus({})
484
184
  expect(data).to.be.ok
485
185
  } catch(error) {
486
186
  expect(error.requestId).to.be.ok
@@ -488,9 +188,9 @@ it("tdid.v20210519.GetAuthorityIssuer", async function () {
488
188
  }
489
189
  })
490
190
 
491
- it("tdid.v20210519.CreateLabel", async function () {
191
+ it("tdid.v20210519.RegisterCpt", async function () {
492
192
  try {
493
- const data = await client.CreateLabel({})
193
+ const data = await client.RegisterCpt({})
494
194
  expect(data).to.be.ok
495
195
  } catch(error) {
496
196
  expect(error.requestId).to.be.ok
@@ -328,6 +328,16 @@ it("waf.v20180125.ModifyWafThreatenIntelligence", async function () {
328
328
  }
329
329
  })
330
330
 
331
+ it("waf.v20180125.ModifySpartaProtection", async function () {
332
+ try {
333
+ const data = await client.ModifySpartaProtection({})
334
+ expect(data).to.be.ok
335
+ } catch(error) {
336
+ expect(error.requestId).to.be.ok
337
+ expect(error.code).to.be.ok
338
+ }
339
+ })
340
+
331
341
  it("waf.v20180125.AddCustomWhiteRule", async function () {
332
342
  try {
333
343
  const data = await client.AddCustomWhiteRule({})