tencentcloud-sdk-nodejs 4.0.778 → 4.0.779

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.
@@ -18,9 +18,9 @@ const client = new tencentcloud.tdid.v20210519.Client({
18
18
  })
19
19
  describe("tdid.v20210519.test.js", function () {
20
20
 
21
- it("tdid.v20210519.GetCptInfo", async function () {
21
+ it("tdid.v20210519.VerifyCredentials", async function () {
22
22
  try {
23
- const data = await client.GetCptInfo({})
23
+ const data = await client.VerifyCredentials({})
24
24
  expect(data).to.be.ok
25
25
  } catch(error) {
26
26
  expect(error.requestId).to.be.ok
@@ -28,9 +28,9 @@ it("tdid.v20210519.GetCptInfo", async function () {
28
28
  }
29
29
  })
30
30
 
31
- it("tdid.v20210519.GetDidDocument", async function () {
31
+ it("tdid.v20210519.CreateTDidByHost", async function () {
32
32
  try {
33
- const data = await client.GetDidDocument({})
33
+ const data = await client.CreateTDidByHost({})
34
34
  expect(data).to.be.ok
35
35
  } catch(error) {
36
36
  expect(error.requestId).to.be.ok
@@ -38,9 +38,9 @@ it("tdid.v20210519.GetDidDocument", async function () {
38
38
  }
39
39
  })
40
40
 
41
- it("tdid.v20210519.CreateSelectiveCredential", async function () {
41
+ it("tdid.v20210519.CreateTDidByPubKey", async function () {
42
42
  try {
43
- const data = await client.CreateSelectiveCredential({})
43
+ const data = await client.CreateTDidByPubKey({})
44
44
  expect(data).to.be.ok
45
45
  } catch(error) {
46
46
  expect(error.requestId).to.be.ok
@@ -48,9 +48,9 @@ it("tdid.v20210519.CreateSelectiveCredential", async function () {
48
48
  }
49
49
  })
50
50
 
51
- it("tdid.v20210519.CreateTDid", async function () {
51
+ it("tdid.v20210519.GetTDidDocument", async function () {
52
52
  try {
53
- const data = await client.CreateTDid({})
53
+ const data = await client.GetTDidDocument({})
54
54
  expect(data).to.be.ok
55
55
  } catch(error) {
56
56
  expect(error.requestId).to.be.ok
@@ -58,9 +58,9 @@ it("tdid.v20210519.CreateTDid", async function () {
58
58
  }
59
59
  })
60
60
 
61
- it("tdid.v20210519.CreateCredential", async function () {
61
+ it("tdid.v20210519.UpdateCredentialState", async function () {
62
62
  try {
63
- const data = await client.CreateCredential({})
63
+ const data = await client.UpdateCredentialState({})
64
64
  expect(data).to.be.ok
65
65
  } catch(error) {
66
66
  expect(error.requestId).to.be.ok
@@ -68,9 +68,9 @@ it("tdid.v20210519.CreateCredential", async function () {
68
68
  }
69
69
  })
70
70
 
71
- it("tdid.v20210519.CreateTDidByPublicKey", async function () {
71
+ it("tdid.v20210519.DeactivateTDid", async function () {
72
72
  try {
73
- const data = await client.CreateTDidByPublicKey({})
73
+ const data = await client.DeactivateTDid({})
74
74
  expect(data).to.be.ok
75
75
  } catch(error) {
76
76
  expect(error.requestId).to.be.ok
@@ -78,9 +78,9 @@ it("tdid.v20210519.CreateTDidByPublicKey", async function () {
78
78
  }
79
79
  })
80
80
 
81
- it("tdid.v20210519.GetCredentialStatus", async function () {
81
+ it("tdid.v20210519.GetCredentialState", async function () {
82
82
  try {
83
- const data = await client.GetCredentialStatus({})
83
+ const data = await client.GetCredentialState({})
84
84
  expect(data).to.be.ok
85
85
  } catch(error) {
86
86
  expect(error.requestId).to.be.ok
@@ -88,9 +88,9 @@ it("tdid.v20210519.GetCredentialStatus", async function () {
88
88
  }
89
89
  })
90
90
 
91
- it("tdid.v20210519.CreateTDidByPrivateKey", async function () {
91
+ it("tdid.v20210519.IssueCredential", async function () {
92
92
  try {
93
- const data = await client.CreateTDidByPrivateKey({})
93
+ const data = await client.IssueCredential({})
94
94
  expect(data).to.be.ok
95
95
  } catch(error) {
96
96
  expect(error.requestId).to.be.ok
@@ -98,49 +98,9 @@ it("tdid.v20210519.CreateTDidByPrivateKey", async function () {
98
98
  }
99
99
  })
100
100
 
101
- it("tdid.v20210519.CheckChain", async function () {
101
+ it("tdid.v20210519.CheckNewPurchase", async function () {
102
102
  try {
103
- const data = await client.CheckChain({})
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.RegisterCpt", async function () {
112
- try {
113
- const data = await client.RegisterCpt({})
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.VerifyCredential", async function () {
122
- try {
123
- const data = await client.VerifyCredential({})
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.GetAuthorityIssuer", async function () {
132
- try {
133
- const data = await client.GetAuthorityIssuer({})
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.SetCredentialStatus", async function () {
142
- try {
143
- const data = await client.SetCredentialStatus({})
103
+ const data = await client.CheckNewPurchase({})
144
104
  expect(data).to.be.ok
145
105
  } catch(error) {
146
106
  expect(error.requestId).to.be.ok