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 +56 -0
- package/SERVICE_CHANGELOG.md +91 -6
- package/package.json +1 -1
- package/products.md +1 -1
- package/src/common/sdk_version.ts +1 -1
- package/src/services/tdid/v20210519/tdid_client.ts +84 -161
- package/src/services/tdid/v20210519/tdid_models.ts +154 -340
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +19 -62
- package/tencentcloud/services/tdid/v20210519/tdid_client.js +27 -78
- package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +154 -330
- package/test/tdid.v20210519.test.js +18 -58
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
|
package/SERVICE_CHANGELOG.md
CHANGED
|
@@ -1,21 +1,56 @@
|
|
|
1
1
|
# 本版本更新包含以下内容:
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 分布式身份(tdid) 版本:2021-05-19
|
|
4
4
|
|
|
5
|
-
### 第
|
|
5
|
+
### 第 11 次发布
|
|
6
6
|
|
|
7
|
-
发布时间:2024-01-11
|
|
7
|
+
发布时间:2024-01-11 10:56:14
|
|
8
8
|
|
|
9
9
|
本次发布包含了以下内容:
|
|
10
10
|
|
|
11
11
|
改善已有的文档。
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
新增接口:
|
|
14
14
|
|
|
15
|
-
* [
|
|
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
|
-
|
|
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
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) |
|
|
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.
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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
|
-
|
|
166
|
-
|
|
167
|
-
|
|
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
|
-
|
|
178
|
-
|
|
179
|
-
|
|
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
|
-
|
|
190
|
-
|
|
191
|
-
|
|
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
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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
|
}
|