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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,59 @@
1
+ # Release 4.0.779
2
+
3
+ ## 分布式身份(tdid) 版本:2021-05-19
4
+
5
+ ### 第 11 次发布
6
+
7
+ 发布时间:2024-01-11 10:56:14
8
+
9
+ 本次发布包含了以下内容:
10
+
11
+ 改善已有的文档。
12
+
13
+ 新增接口:
14
+
15
+ * [CheckNewPurchase](https://cloud.tencent.com/document/api/1439/102971)
16
+ * [CreateTDidByHost](https://cloud.tencent.com/document/api/1439/102970)
17
+ * [CreateTDidByPubKey](https://cloud.tencent.com/document/api/1439/102969)
18
+ * [DeactivateTDid](https://cloud.tencent.com/document/api/1439/102968)
19
+ * [GetCredentialState](https://cloud.tencent.com/document/api/1439/102966)
20
+ * [GetTDidDocument](https://cloud.tencent.com/document/api/1439/102967)
21
+ * [IssueCredential](https://cloud.tencent.com/document/api/1439/102965)
22
+ * [UpdateCredentialState](https://cloud.tencent.com/document/api/1439/102964)
23
+ * [VerifyCredentials](https://cloud.tencent.com/document/api/1439/102963)
24
+
25
+ <font color="#dd0000">**删除接口**:</font>
26
+
27
+ * CheckChain
28
+ * CreateCredential
29
+ * CreateSelectiveCredential
30
+ * CreateTDid
31
+ * CreateTDidByPrivateKey
32
+ * CreateTDidByPublicKey
33
+ * GetAuthorityIssuer
34
+ * GetCptInfo
35
+ * GetCredentialStatus
36
+ * GetDidDocument
37
+ * RegisterCpt
38
+ * SetCredentialStatus
39
+ * VerifyCredential
40
+
41
+ 新增数据结构:
42
+
43
+ * [CRDLArg](https://cloud.tencent.com/document/api/1439/60283#CRDLArg)
44
+ * [ChainTransaction](https://cloud.tencent.com/document/api/1439/60283#ChainTransaction)
45
+ * [CredentialState](https://cloud.tencent.com/document/api/1439/60283#CredentialState)
46
+
47
+ <font color="#dd0000">**删除数据结构**:</font>
48
+
49
+ * CredentialStatus
50
+ * FunctionArg
51
+ * Proof
52
+ * TransactionArg
53
+ * VerifyFunctionArg
54
+
55
+
56
+
1
57
  # Release 4.0.778
2
58
 
3
59
  ## 操作审计(cloudaudit) 版本:2019-03-19
@@ -1,21 +1,56 @@
1
1
  # 本版本更新包含以下内容:
2
2
 
3
- ## 操作审计(cloudaudit) 版本:2019-03-19
3
+ ## 分布式身份(tdid) 版本:2021-05-19
4
4
 
5
- ### 第 13 次发布
5
+ ### 第 11 次发布
6
6
 
7
- 发布时间:2024-01-11 01:09:52
7
+ 发布时间:2024-01-11 10:56:14
8
8
 
9
9
  本次发布包含了以下内容:
10
10
 
11
11
  改善已有的文档。
12
12
 
13
- 修改数据结构:
13
+ 新增接口:
14
14
 
15
- * [Storage](https://cloud.tencent.com/document/api/629/35353#Storage)
15
+ * [CheckNewPurchase](https://cloud.tencent.com/document/api/1439/102971)
16
+ * [CreateTDidByHost](https://cloud.tencent.com/document/api/1439/102970)
17
+ * [CreateTDidByPubKey](https://cloud.tencent.com/document/api/1439/102969)
18
+ * [DeactivateTDid](https://cloud.tencent.com/document/api/1439/102968)
19
+ * [GetCredentialState](https://cloud.tencent.com/document/api/1439/102966)
20
+ * [GetTDidDocument](https://cloud.tencent.com/document/api/1439/102967)
21
+ * [IssueCredential](https://cloud.tencent.com/document/api/1439/102965)
22
+ * [UpdateCredentialState](https://cloud.tencent.com/document/api/1439/102964)
23
+ * [VerifyCredentials](https://cloud.tencent.com/document/api/1439/102963)
16
24
 
17
- * 新增成员:StorageAccountId, StorageAppId
25
+ <font color="#dd0000">**删除接口**:</font>
18
26
 
27
+ * CheckChain
28
+ * CreateCredential
29
+ * CreateSelectiveCredential
30
+ * CreateTDid
31
+ * CreateTDidByPrivateKey
32
+ * CreateTDidByPublicKey
33
+ * GetAuthorityIssuer
34
+ * GetCptInfo
35
+ * GetCredentialStatus
36
+ * GetDidDocument
37
+ * RegisterCpt
38
+ * SetCredentialStatus
39
+ * VerifyCredential
40
+
41
+ 新增数据结构:
42
+
43
+ * [CRDLArg](https://cloud.tencent.com/document/api/1439/60283#CRDLArg)
44
+ * [ChainTransaction](https://cloud.tencent.com/document/api/1439/60283#ChainTransaction)
45
+ * [CredentialState](https://cloud.tencent.com/document/api/1439/60283#CredentialState)
46
+
47
+ <font color="#dd0000">**删除数据结构**:</font>
48
+
49
+ * CredentialStatus
50
+ * FunctionArg
51
+ * Proof
52
+ * TransactionArg
53
+ * VerifyFunctionArg
19
54
 
20
55
 
21
56
 
@@ -111648,6 +111683,56 @@
111648
111683
 
111649
111684
  ## 分布式身份(tdid) 版本:2021-05-19
111650
111685
 
111686
+ ### 第 11 次发布
111687
+
111688
+ 发布时间:2024-01-11 10:56:14
111689
+
111690
+ 本次发布包含了以下内容:
111691
+
111692
+ 改善已有的文档。
111693
+
111694
+ 新增接口:
111695
+
111696
+ * [[CheckNewPurchase](https://cloud.tencent.com/document/api/1439/102971)](https://cloud.tencent.com/document/api/#/#)
111697
+ * [[CreateTDidByHost](https://cloud.tencent.com/document/api/1439/102970)](https://cloud.tencent.com/document/api/#/#)
111698
+ * [[CreateTDidByPubKey](https://cloud.tencent.com/document/api/1439/102969)](https://cloud.tencent.com/document/api/#/#)
111699
+ * [[DeactivateTDid](https://cloud.tencent.com/document/api/1439/102968)](https://cloud.tencent.com/document/api/#/#)
111700
+ * [[GetCredentialState](https://cloud.tencent.com/document/api/1439/102966)](https://cloud.tencent.com/document/api/#/#)
111701
+ * [[GetTDidDocument](https://cloud.tencent.com/document/api/1439/102967)](https://cloud.tencent.com/document/api/#/#)
111702
+ * [[IssueCredential](https://cloud.tencent.com/document/api/1439/102965)](https://cloud.tencent.com/document/api/#/#)
111703
+ * [[UpdateCredentialState](https://cloud.tencent.com/document/api/1439/102964)](https://cloud.tencent.com/document/api/#/#)
111704
+ * [[VerifyCredentials](https://cloud.tencent.com/document/api/1439/102963)](https://cloud.tencent.com/document/api/#/#)
111705
+
111706
+ <font color="#dd0000">**删除接口**:</font>
111707
+
111708
+ * CheckChain
111709
+ * CreateCredential
111710
+ * CreateSelectiveCredential
111711
+ * CreateTDid
111712
+ * CreateTDidByPrivateKey
111713
+ * CreateTDidByPublicKey
111714
+ * GetAuthorityIssuer
111715
+ * GetCptInfo
111716
+ * GetCredentialStatus
111717
+ * GetDidDocument
111718
+ * RegisterCpt
111719
+ * SetCredentialStatus
111720
+ * VerifyCredential
111721
+
111722
+ 新增数据结构:
111723
+
111724
+ * [[CRDLArg](https://cloud.tencent.com/document/api/1439/60283#CRDLArg)](https://cloud.tencent.com/document/api/1439/60283#[CRDLArg](https://cloud.tencent.com/document/api/1439/60283#CRDLArg))
111725
+ * [[ChainTransaction](https://cloud.tencent.com/document/api/1439/60283#ChainTransaction)](https://cloud.tencent.com/document/api/1439/60283#[ChainTransaction](https://cloud.tencent.com/document/api/1439/60283#ChainTransaction))
111726
+ * [[CredentialState](https://cloud.tencent.com/document/api/1439/60283#CredentialState)](https://cloud.tencent.com/document/api/1439/60283#[CredentialState](https://cloud.tencent.com/document/api/1439/60283#CredentialState))
111727
+
111728
+ <font color="#dd0000">**删除数据结构**:</font>
111729
+
111730
+ * CredentialStatus
111731
+ * FunctionArg
111732
+ * Proof
111733
+ * TransactionArg
111734
+ * VerifyFunctionArg
111735
+
111651
111736
  ### 第 10 次发布
111652
111737
 
111653
111738
  发布时间:2023-07-24 01:49:20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs",
3
- "version": "4.0.778",
3
+ "version": "4.0.779",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
package/products.md CHANGED
@@ -200,7 +200,7 @@
200
200
  | tcr | [容器镜像服务](https://cloud.tencent.com/document/product/1141) | 2023-12-12 02:27:39 |
201
201
  | tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2024-01-05 01:25:17 |
202
202
  | tdcpg | [TDSQL-C PostgreSQL 版](https://cloud.tencent.com/document/product/1556) | 2023-06-21 01:36:25 |
203
- | tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2023-07-24 01:49:20 |
203
+ | tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2024-01-11 10:56:14 |
204
204
  | tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2023-12-21 02:11:13 |
205
205
  | tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2023-11-15 02:26:59 |
206
206
  | tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2023-12-20 02:13:36 |
@@ -1 +1 @@
1
- export const sdkVersion = "4.0.778"
1
+ export const sdkVersion = "4.0.779"
@@ -18,37 +18,27 @@
18
18
  import { AbstractClient } from "../../../common/abstract_client"
19
19
  import { ClientConfig } from "../../../common/interface"
20
20
  import {
21
- CredentialStatus,
22
- CreateTDidRequest,
23
- CreateSelectiveCredentialRequest,
24
- CreateTDidByPrivateKeyResponse,
25
- CheckChainResponse,
26
- CreateTDidByPublicKeyRequest,
27
- CreateCredentialResponse,
28
- GetAuthorityIssuerRequest,
29
- CreateCredentialRequest,
30
- GetDidDocumentRequest,
31
- GetCredentialStatusRequest,
32
- VerifyCredentialResponse,
33
- SetCredentialStatusResponse,
34
- GetCptInfoResponse,
35
- TransactionArg,
36
- CheckChainRequest,
37
- GetAuthorityIssuerResponse,
38
- GetDidDocumentResponse,
39
- CreateTDidResponse,
40
- CreateSelectiveCredentialResponse,
41
- RegisterCptRequest,
42
- CreateTDidByPublicKeyResponse,
43
- Proof,
44
- VerifyFunctionArg,
45
- FunctionArg,
46
- CreateTDidByPrivateKeyRequest,
47
- VerifyCredentialRequest,
48
- SetCredentialStatusRequest,
49
- GetCptInfoRequest,
50
- GetCredentialStatusResponse,
51
- RegisterCptResponse,
21
+ CreateTDidByPubKeyResponse,
22
+ GetTDidDocumentResponse,
23
+ GetCredentialStateRequest,
24
+ CheckNewPurchaseRequest,
25
+ VerifyCredentialsRequest,
26
+ CRDLArg,
27
+ GetTDidDocumentRequest,
28
+ IssueCredentialResponse,
29
+ GetCredentialStateResponse,
30
+ CreateTDidByHostRequest,
31
+ IssueCredentialRequest,
32
+ VerifyCredentialsResponse,
33
+ UpdateCredentialStateRequest,
34
+ CredentialState,
35
+ CreateTDidByPubKeyRequest,
36
+ DeactivateTDidRequest,
37
+ CheckNewPurchaseResponse,
38
+ UpdateCredentialStateResponse,
39
+ ChainTransaction,
40
+ DeactivateTDidResponse,
41
+ CreateTDidByHostResponse,
52
42
  } from "./tdid_models"
53
43
 
54
44
  /**
@@ -61,159 +51,92 @@ export class Client extends AbstractClient {
61
51
  }
62
52
 
63
53
  /**
64
- * 该接口不再使用
65
-
66
- 凭证模版详情
67
- */
68
- async GetCptInfo(
69
- req: GetCptInfoRequest,
70
- cb?: (error: string, rep: GetCptInfoResponse) => void
71
- ): Promise<GetCptInfoResponse> {
72
- return this.request("GetCptInfo", req, cb)
73
- }
74
-
75
- /**
76
- * 该接口不再使用
77
-
78
- 查看DID文档
79
-
80
- */
81
- async GetDidDocument(
82
- req: GetDidDocumentRequest,
83
- cb?: (error: string, rep: GetDidDocumentResponse) => void
84
- ): Promise<GetDidDocumentResponse> {
85
- return this.request("GetDidDocument", req, cb)
86
- }
87
-
88
- /**
89
- * 该接口不再使用
90
-
91
- 创建选择性批露凭证
92
- */
93
- async CreateSelectiveCredential(
94
- req: CreateSelectiveCredentialRequest,
95
- cb?: (error: string, rep: CreateSelectiveCredentialResponse) => void
96
- ): Promise<CreateSelectiveCredentialResponse> {
97
- return this.request("CreateSelectiveCredential", req, cb)
98
- }
99
-
100
- /**
101
- * 该接口不再使用
102
-
103
- 创建机构DID
104
- */
105
- async CreateTDid(
106
- req: CreateTDidRequest,
107
- cb?: (error: string, rep: CreateTDidResponse) => void
108
- ): Promise<CreateTDidResponse> {
109
- return this.request("CreateTDid", req, cb)
54
+ * 验证已签名的可验证凭证
55
+ */
56
+ async VerifyCredentials(
57
+ req: VerifyCredentialsRequest,
58
+ cb?: (error: string, rep: VerifyCredentialsResponse) => void
59
+ ): Promise<VerifyCredentialsResponse> {
60
+ return this.request("VerifyCredentials", req, cb)
110
61
  }
111
62
 
112
63
  /**
113
- * 该接口不再使用
114
-
115
- 创建凭证
116
- */
117
- async CreateCredential(
118
- req: CreateCredentialRequest,
119
- cb?: (error: string, rep: CreateCredentialResponse) => void
120
- ): Promise<CreateCredentialResponse> {
121
- return this.request("CreateCredential", req, cb)
64
+ * 自动生成公私钥对托管在DID平台,并注册DID标识
65
+ */
66
+ async CreateTDidByHost(
67
+ req: CreateTDidByHostRequest,
68
+ cb?: (error: string, rep: CreateTDidByHostResponse) => void
69
+ ): Promise<CreateTDidByHostResponse> {
70
+ return this.request("CreateTDidByHost", req, cb)
122
71
  }
123
72
 
124
73
  /**
125
- * 该接口不再使用
126
-
127
- 新建DID根据公钥生成Tdid
128
- */
129
- async CreateTDidByPublicKey(
130
- req: CreateTDidByPublicKeyRequest,
131
- cb?: (error: string, rep: CreateTDidByPublicKeyResponse) => void
132
- ): Promise<CreateTDidByPublicKeyResponse> {
133
- return this.request("CreateTDidByPublicKey", req, cb)
74
+ * 使用导入的公钥文件注册DID标识
75
+ */
76
+ async CreateTDidByPubKey(
77
+ req: CreateTDidByPubKeyRequest,
78
+ cb?: (error: string, rep: CreateTDidByPubKeyResponse) => void
79
+ ): Promise<CreateTDidByPubKeyResponse> {
80
+ return this.request("CreateTDidByPubKey", req, cb)
134
81
  }
135
82
 
136
83
  /**
137
- * 该接口不再使用
138
-
139
- 获取凭证链上状态信息
140
- */
141
- async GetCredentialStatus(
142
- req: GetCredentialStatusRequest,
143
- cb?: (error: string, rep: GetCredentialStatusResponse) => void
144
- ): Promise<GetCredentialStatusResponse> {
145
- return this.request("GetCredentialStatus", req, cb)
84
+ * 获取DID标识的文档
85
+ */
86
+ async GetTDidDocument(
87
+ req: GetTDidDocumentRequest,
88
+ cb?: (error: string, rep: GetTDidDocumentResponse) => void
89
+ ): Promise<GetTDidDocumentResponse> {
90
+ return this.request("GetTDidDocument", req, cb)
146
91
  }
147
92
 
148
93
  /**
149
- * 该接口不再使用
150
-
151
- 新建DID根据私钥生成Tdid
152
- */
153
- async CreateTDidByPrivateKey(
154
- req: CreateTDidByPrivateKeyRequest,
155
- cb?: (error: string, rep: CreateTDidByPrivateKeyResponse) => void
156
- ): Promise<CreateTDidByPrivateKeyResponse> {
157
- return this.request("CreateTDidByPrivateKey", req, cb)
94
+ * 更新凭证的链上状态
95
+ */
96
+ async UpdateCredentialState(
97
+ req: UpdateCredentialStateRequest,
98
+ cb?: (error: string, rep: UpdateCredentialStateResponse) => void
99
+ ): Promise<UpdateCredentialStateResponse> {
100
+ return this.request("UpdateCredentialState", req, cb)
158
101
  }
159
102
 
160
103
  /**
161
- * 该接口不再使用
162
-
163
- 检查区块链信息
164
- */
165
- async CheckChain(
166
- req: CheckChainRequest,
167
- cb?: (error: string, rep: CheckChainResponse) => void
168
- ): Promise<CheckChainResponse> {
169
- return this.request("CheckChain", req, cb)
104
+ * 更新DID标识的禁用状态
105
+ */
106
+ async DeactivateTDid(
107
+ req: DeactivateTDidRequest,
108
+ cb?: (error: string, rep: DeactivateTDidResponse) => void
109
+ ): Promise<DeactivateTDidResponse> {
110
+ return this.request("DeactivateTDid", req, cb)
170
111
  }
171
112
 
172
113
  /**
173
- * 该接口不再使用
174
-
175
- 凭证模版新建
176
- */
177
- async RegisterCpt(
178
- req: RegisterCptRequest,
179
- cb?: (error: string, rep: RegisterCptResponse) => void
180
- ): Promise<RegisterCptResponse> {
181
- return this.request("RegisterCpt", req, cb)
114
+ * 获取凭证链上状态信息
115
+ */
116
+ async GetCredentialState(
117
+ req: GetCredentialStateRequest,
118
+ cb?: (error: string, rep: GetCredentialStateResponse) => void
119
+ ): Promise<GetCredentialStateResponse> {
120
+ return this.request("GetCredentialState", req, cb)
182
121
  }
183
122
 
184
123
  /**
185
- * 该接口不再使用
186
-
187
- 验证凭证
188
- */
189
- async VerifyCredential(
190
- req: VerifyCredentialRequest,
191
- cb?: (error: string, rep: VerifyCredentialResponse) => void
192
- ): Promise<VerifyCredentialResponse> {
193
- return this.request("VerifyCredential", req, cb)
194
- }
195
-
196
- /**
197
- * 该接口不再使用
198
-
199
- 获取权威机构信息
200
- */
201
- async GetAuthorityIssuer(
202
- req: GetAuthorityIssuerRequest,
203
- cb?: (error: string, rep: GetAuthorityIssuerResponse) => void
204
- ): Promise<GetAuthorityIssuerResponse> {
205
- return this.request("GetAuthorityIssuer", req, cb)
124
+ * 颁发可验证凭证
125
+ */
126
+ async IssueCredential(
127
+ req: IssueCredentialRequest,
128
+ cb?: (error: string, rep: IssueCredentialResponse) => void
129
+ ): Promise<IssueCredentialResponse> {
130
+ return this.request("IssueCredential", req, cb)
206
131
  }
207
132
 
208
133
  /**
209
- * 该接口不再使用
210
-
211
- 设置凭证链上状态
212
- */
213
- async SetCredentialStatus(
214
- req: SetCredentialStatusRequest,
215
- cb?: (error: string, rep: SetCredentialStatusResponse) => void
216
- ): Promise<SetCredentialStatusResponse> {
217
- return this.request("SetCredentialStatus", req, cb)
134
+ * 检查用户套餐购买状态
135
+ */
136
+ async CheckNewPurchase(
137
+ req?: CheckNewPurchaseRequest,
138
+ cb?: (error: string, rep: CheckNewPurchaseResponse) => void
139
+ ): Promise<CheckNewPurchaseResponse> {
140
+ return this.request("CheckNewPurchase", req, cb)
218
141
  }
219
142
  }