tencentcloud-sdk-nodejs 4.0.646 → 4.0.648
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 +384 -0
- package/SERVICE_CHANGELOG.md +814 -684
- package/package.json +1 -1
- package/products.md +29 -29
- package/src/common/sdk_version.ts +1 -1
- package/src/services/asr/v20190614/asr_models.ts +3 -0
- package/src/services/cbs/v20170312/cbs_client.ts +20 -51
- package/src/services/cbs/v20170312/cbs_models.ts +16 -165
- package/src/services/cdb/v20170320/cdb_client.ts +4 -84
- package/src/services/cdb/v20170320/cdb_models.ts +41 -568
- package/src/services/cdn/v20180606/cdn_models.ts +3 -3
- package/src/services/cloudstudio/v20230508/cloudstudio_models.ts +4 -0
- package/src/services/cme/v20191029/cme_models.ts +4 -0
- package/src/services/domain/v20180808/domain_client.ts +13 -1
- package/src/services/domain/v20180808/domain_models.ts +40 -20
- package/src/services/ess/v20201111/ess_client.ts +6 -5
- package/src/services/ess/v20201111/ess_models.ts +63 -4
- package/src/services/essbasic/v20210526/essbasic_models.ts +9 -0
- package/src/services/faceid/v20180301/faceid_models.ts +31 -26
- package/src/services/gme/v20180711/gme_models.ts +1 -1
- package/src/services/iai/v20180301/iai_models.ts +20 -20
- package/src/services/lcic/v20220817/lcic_models.ts +12 -0
- package/src/services/ocr/v20181119/ocr_models.ts +8 -8
- package/src/services/partners/v20180321/partners_client.ts +1 -0
- package/src/services/partners/v20180321/partners_models.ts +49 -28
- package/src/services/postgres/v20170312/postgres_client.ts +4 -2
- package/src/services/postgres/v20170312/postgres_models.ts +237 -149
- package/src/services/tdid/v20210519/tdid_client.ts +25 -100
- package/src/services/tdid/v20210519/tdid_models.ts +64 -323
- package/src/services/teo/v20220901/teo_models.ts +1 -1
- package/src/services/tiw/v20190919/tiw_client.ts +17 -5
- package/src/services/tiw/v20190919/tiw_models.ts +120 -65
- package/src/services/tke/v20180525/tke_models.ts +2 -2
- package/src/services/trtc/v20190722/trtc_client.ts +2 -2
- package/src/services/vpc/v20170312/vpc_models.ts +7 -7
- package/src/services/waf/v20180125/waf_models.ts +8 -7
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/asr/v20190614/asr_models.d.ts +3 -0
- package/tencentcloud/services/cbs/v20170312/cbs_client.d.ts +10 -23
- package/tencentcloud/services/cbs/v20170312/cbs_client.js +11 -28
- package/tencentcloud/services/cbs/v20170312/cbs_models.d.ts +16 -159
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +1 -31
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +0 -40
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +41 -548
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +3 -3
- package/tencentcloud/services/cloudstudio/v20230508/cloudstudio_models.d.ts +4 -0
- package/tencentcloud/services/cme/v20191029/cme_models.d.ts +4 -0
- package/tencentcloud/services/domain/v20180808/domain_client.d.ts +5 -1
- package/tencentcloud/services/domain/v20180808/domain_client.js +6 -0
- package/tencentcloud/services/domain/v20180808/domain_models.d.ts +38 -20
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +6 -5
- package/tencentcloud/services/ess/v20201111/ess_client.js +6 -5
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +63 -4
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +9 -0
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +31 -26
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +1 -1
- package/tencentcloud/services/iai/v20180301/iai_models.d.ts +20 -20
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +12 -0
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +8 -8
- package/tencentcloud/services/partners/v20180321/partners_models.d.ts +48 -28
- package/tencentcloud/services/postgres/v20170312/postgres_client.d.ts +2 -0
- package/tencentcloud/services/postgres/v20170312/postgres_client.js +2 -0
- package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +237 -149
- package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +9 -40
- package/tencentcloud/services/tdid/v20210519/tdid_client.js +11 -52
- package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +63 -308
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +1 -1
- package/tencentcloud/services/tiw/v20190919/tiw_client.d.ts +5 -1
- package/tencentcloud/services/tiw/v20190919/tiw_client.js +6 -0
- package/tencentcloud/services/tiw/v20190919/tiw_models.d.ts +118 -65
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +2 -2
- package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +2 -2
- package/tencentcloud/services/trtc/v20190722/trtc_client.js +2 -2
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +7 -7
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +8 -7
- package/test/cbs.v20170312.test.js +4 -24
- package/test/cdb.v20170320.test.js +0 -50
- package/test/domain.v20180808.test.js +10 -0
- package/test/tdid.v20210519.test.js +6 -56
- package/test/tiw.v20190919.test.js +10 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import { CreateTDidRequest, CreateSelectiveCredentialRequest, CreateTDidByPrivateKeyResponse, CheckChainResponse, CreateTDidByPublicKeyRequest, CreateCredentialResponse,
|
|
3
|
+
import { CreateTDidRequest, CreateSelectiveCredentialRequest, CreateTDidByPrivateKeyResponse, CheckChainResponse, CreateTDidByPublicKeyRequest, CreateCredentialResponse, GetAuthorityIssuerRequest, CreateCredentialRequest, GetDidDocumentRequest, GetCredentialStatusRequest, VerifyCredentialResponse, SetCredentialStatusResponse, GetCptInfoResponse, CheckChainRequest, GetAuthorityIssuerResponse, GetDidDocumentResponse, CreateTDidResponse, CreateSelectiveCredentialResponse, RegisterCptRequest, CreateTDidByPublicKeyResponse, CreateTDidByPrivateKeyRequest, VerifyCredentialRequest, SetCredentialStatusRequest, GetCptInfoRequest, GetCredentialStatusResponse, RegisterCptResponse } from "./tdid_models";
|
|
4
4
|
/**
|
|
5
5
|
* tdid client
|
|
6
6
|
* @class
|
|
@@ -10,12 +10,6 @@ export declare class Client extends AbstractClient {
|
|
|
10
10
|
/**
|
|
11
11
|
* 该接口不再使用
|
|
12
12
|
|
|
13
|
-
检查区块链信息
|
|
14
|
-
*/
|
|
15
|
-
CheckChain(req: CheckChainRequest, cb?: (error: string, rep: CheckChainResponse) => void): Promise<CheckChainResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* 该接口不再使用
|
|
18
|
-
|
|
19
13
|
凭证模版详情
|
|
20
14
|
*/
|
|
21
15
|
GetCptInfo(req: GetCptInfoRequest, cb?: (error: string, rep: GetCptInfoResponse) => void): Promise<GetCptInfoResponse>;
|
|
@@ -38,12 +32,6 @@ export declare class Client extends AbstractClient {
|
|
|
38
32
|
创建机构DID
|
|
39
33
|
*/
|
|
40
34
|
CreateTDid(req: CreateTDidRequest, cb?: (error: string, rep: CreateTDidResponse) => void): Promise<CreateTDidResponse>;
|
|
41
|
-
/**
|
|
42
|
-
* 下线已有内测接口,待上线正式版本的接口
|
|
43
|
-
|
|
44
|
-
凭证颁发按机构排行
|
|
45
|
-
*/
|
|
46
|
-
GetCredentialCptRank(req: GetCredentialCptRankRequest, cb?: (error: string, rep: GetCredentialCptRankResponse) => void): Promise<GetCredentialCptRankResponse>;
|
|
47
35
|
/**
|
|
48
36
|
* 该接口不再使用
|
|
49
37
|
|
|
@@ -57,42 +45,29 @@ export declare class Client extends AbstractClient {
|
|
|
57
45
|
*/
|
|
58
46
|
CreateTDidByPublicKey(req: CreateTDidByPublicKeyRequest, cb?: (error: string, rep: CreateTDidByPublicKeyResponse) => void): Promise<CreateTDidByPublicKeyResponse>;
|
|
59
47
|
/**
|
|
60
|
-
*
|
|
61
|
-
|
|
62
|
-
获取联盟列表
|
|
63
|
-
*/
|
|
64
|
-
GetConsortiumList(req?: GetConsortiumListRequest, cb?: (error: string, rep: GetConsortiumListResponse) => void): Promise<GetConsortiumListResponse>;
|
|
65
|
-
/**
|
|
66
|
-
* 该接口已废弃
|
|
48
|
+
* 该接口不再使用
|
|
67
49
|
|
|
68
|
-
|
|
50
|
+
获取凭证链上状态信息
|
|
69
51
|
*/
|
|
70
|
-
|
|
52
|
+
GetCredentialStatus(req: GetCredentialStatusRequest, cb?: (error: string, rep: GetCredentialStatusResponse) => void): Promise<GetCredentialStatusResponse>;
|
|
71
53
|
/**
|
|
72
54
|
* 该接口不再使用
|
|
73
55
|
|
|
74
56
|
新建DID根据私钥生成Tdid
|
|
75
57
|
*/
|
|
76
58
|
CreateTDidByPrivateKey(req: CreateTDidByPrivateKeyRequest, cb?: (error: string, rep: CreateTDidByPrivateKeyResponse) => void): Promise<CreateTDidByPrivateKeyResponse>;
|
|
77
|
-
/**
|
|
78
|
-
* 下线已有内测接口,待上线正式版本的接口
|
|
79
|
-
|
|
80
|
-
DID添加标签
|
|
81
|
-
|
|
82
|
-
*/
|
|
83
|
-
AddLabel(req: AddLabelRequest, cb?: (error: string, rep: AddLabelResponse) => void): Promise<AddLabelResponse>;
|
|
84
59
|
/**
|
|
85
60
|
* 该接口不再使用
|
|
86
61
|
|
|
87
|
-
|
|
62
|
+
检查区块链信息
|
|
88
63
|
*/
|
|
89
|
-
|
|
64
|
+
CheckChain(req: CheckChainRequest, cb?: (error: string, rep: CheckChainResponse) => void): Promise<CheckChainResponse>;
|
|
90
65
|
/**
|
|
91
|
-
*
|
|
66
|
+
* 该接口不再使用
|
|
92
67
|
|
|
93
|
-
|
|
68
|
+
凭证模版新建
|
|
94
69
|
*/
|
|
95
|
-
|
|
70
|
+
RegisterCpt(req: RegisterCptRequest, cb?: (error: string, rep: RegisterCptResponse) => void): Promise<RegisterCptResponse>;
|
|
96
71
|
/**
|
|
97
72
|
* 该接口不再使用
|
|
98
73
|
|
|
@@ -111,10 +86,4 @@ DID添加标签
|
|
|
111
86
|
设置凭证链上状态
|
|
112
87
|
*/
|
|
113
88
|
SetCredentialStatus(req: SetCredentialStatusRequest, cb?: (error: string, rep: SetCredentialStatusResponse) => void): Promise<SetCredentialStatusResponse>;
|
|
114
|
-
/**
|
|
115
|
-
* 该接口不再使用
|
|
116
|
-
|
|
117
|
-
凭证模版新建
|
|
118
|
-
*/
|
|
119
|
-
RegisterCpt(req: RegisterCptRequest, cb?: (error: string, rep: RegisterCptResponse) => void): Promise<RegisterCptResponse>;
|
|
120
89
|
}
|
|
@@ -30,14 +30,6 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
30
30
|
/**
|
|
31
31
|
* 该接口不再使用
|
|
32
32
|
|
|
33
|
-
检查区块链信息
|
|
34
|
-
*/
|
|
35
|
-
async CheckChain(req, cb) {
|
|
36
|
-
return this.request("CheckChain", req, cb);
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* 该接口不再使用
|
|
40
|
-
|
|
41
33
|
凭证模版详情
|
|
42
34
|
*/
|
|
43
35
|
async GetCptInfo(req, cb) {
|
|
@@ -68,14 +60,6 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
68
60
|
async CreateTDid(req, cb) {
|
|
69
61
|
return this.request("CreateTDid", req, cb);
|
|
70
62
|
}
|
|
71
|
-
/**
|
|
72
|
-
* 下线已有内测接口,待上线正式版本的接口
|
|
73
|
-
|
|
74
|
-
凭证颁发按机构排行
|
|
75
|
-
*/
|
|
76
|
-
async GetCredentialCptRank(req, cb) {
|
|
77
|
-
return this.request("GetCredentialCptRank", req, cb);
|
|
78
|
-
}
|
|
79
63
|
/**
|
|
80
64
|
* 该接口不再使用
|
|
81
65
|
|
|
@@ -93,20 +77,12 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
93
77
|
return this.request("CreateTDidByPublicKey", req, cb);
|
|
94
78
|
}
|
|
95
79
|
/**
|
|
96
|
-
*
|
|
97
|
-
|
|
98
|
-
获取联盟列表
|
|
99
|
-
*/
|
|
100
|
-
async GetConsortiumList(req, cb) {
|
|
101
|
-
return this.request("GetConsortiumList", req, cb);
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* 该接口已废弃
|
|
80
|
+
* 该接口不再使用
|
|
105
81
|
|
|
106
|
-
|
|
82
|
+
获取凭证链上状态信息
|
|
107
83
|
*/
|
|
108
|
-
async
|
|
109
|
-
return this.request("
|
|
84
|
+
async GetCredentialStatus(req, cb) {
|
|
85
|
+
return this.request("GetCredentialStatus", req, cb);
|
|
110
86
|
}
|
|
111
87
|
/**
|
|
112
88
|
* 该接口不再使用
|
|
@@ -116,30 +92,21 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
116
92
|
async CreateTDidByPrivateKey(req, cb) {
|
|
117
93
|
return this.request("CreateTDidByPrivateKey", req, cb);
|
|
118
94
|
}
|
|
119
|
-
/**
|
|
120
|
-
* 下线已有内测接口,待上线正式版本的接口
|
|
121
|
-
|
|
122
|
-
DID添加标签
|
|
123
|
-
|
|
124
|
-
*/
|
|
125
|
-
async AddLabel(req, cb) {
|
|
126
|
-
return this.request("AddLabel", req, cb);
|
|
127
|
-
}
|
|
128
95
|
/**
|
|
129
96
|
* 该接口不再使用
|
|
130
97
|
|
|
131
|
-
|
|
98
|
+
检查区块链信息
|
|
132
99
|
*/
|
|
133
|
-
async
|
|
134
|
-
return this.request("
|
|
100
|
+
async CheckChain(req, cb) {
|
|
101
|
+
return this.request("CheckChain", req, cb);
|
|
135
102
|
}
|
|
136
103
|
/**
|
|
137
|
-
*
|
|
104
|
+
* 该接口不再使用
|
|
138
105
|
|
|
139
|
-
|
|
106
|
+
凭证模版新建
|
|
140
107
|
*/
|
|
141
|
-
async
|
|
142
|
-
return this.request("
|
|
108
|
+
async RegisterCpt(req, cb) {
|
|
109
|
+
return this.request("RegisterCpt", req, cb);
|
|
143
110
|
}
|
|
144
111
|
/**
|
|
145
112
|
* 该接口不再使用
|
|
@@ -165,13 +132,5 @@ DID添加标签
|
|
|
165
132
|
async SetCredentialStatus(req, cb) {
|
|
166
133
|
return this.request("SetCredentialStatus", req, cb);
|
|
167
134
|
}
|
|
168
|
-
/**
|
|
169
|
-
* 该接口不再使用
|
|
170
|
-
|
|
171
|
-
凭证模版新建
|
|
172
|
-
*/
|
|
173
|
-
async RegisterCpt(req, cb) {
|
|
174
|
-
return this.request("RegisterCpt", req, cb);
|
|
175
|
-
}
|
|
176
135
|
}
|
|
177
136
|
exports.Client = Client;
|
|
@@ -94,15 +94,6 @@ export interface CheckChainResponse {
|
|
|
94
94
|
*/
|
|
95
95
|
RequestId?: string;
|
|
96
96
|
}
|
|
97
|
-
/**
|
|
98
|
-
* 创建凭证第二个
|
|
99
|
-
*/
|
|
100
|
-
export interface TransactionArg {
|
|
101
|
-
/**
|
|
102
|
-
* 凭证did
|
|
103
|
-
*/
|
|
104
|
-
InvokerTDid: string;
|
|
105
|
-
}
|
|
106
97
|
/**
|
|
107
98
|
* CreateTDidByPublicKey请求参数结构体
|
|
108
99
|
*/
|
|
@@ -137,23 +128,6 @@ export interface CreateCredentialResponse {
|
|
|
137
128
|
*/
|
|
138
129
|
RequestId?: string;
|
|
139
130
|
}
|
|
140
|
-
/**
|
|
141
|
-
* CheckChain请求参数结构体
|
|
142
|
-
*/
|
|
143
|
-
export interface CheckChainRequest {
|
|
144
|
-
/**
|
|
145
|
-
* 群组ID
|
|
146
|
-
*/
|
|
147
|
-
GroupId: number;
|
|
148
|
-
/**
|
|
149
|
-
* 网络ID
|
|
150
|
-
*/
|
|
151
|
-
ClusterId: string;
|
|
152
|
-
/**
|
|
153
|
-
* did服务机构名称
|
|
154
|
-
*/
|
|
155
|
-
AgencyName: string;
|
|
156
|
-
}
|
|
157
131
|
/**
|
|
158
132
|
* GetAuthorityIssuer请求参数结构体
|
|
159
133
|
*/
|
|
@@ -163,51 +137,6 @@ export interface GetAuthorityIssuerRequest {
|
|
|
163
137
|
*/
|
|
164
138
|
Did: string;
|
|
165
139
|
}
|
|
166
|
-
/**
|
|
167
|
-
* 验证凭证参数值
|
|
168
|
-
*/
|
|
169
|
-
export interface VerifyFunctionArg {
|
|
170
|
-
/**
|
|
171
|
-
* CPT ID
|
|
172
|
-
*/
|
|
173
|
-
CptId: number;
|
|
174
|
-
/**
|
|
175
|
-
* issuer did
|
|
176
|
-
*/
|
|
177
|
-
Issuer: string;
|
|
178
|
-
/**
|
|
179
|
-
* 过期时间
|
|
180
|
-
*/
|
|
181
|
-
ExpirationDate: number;
|
|
182
|
-
/**
|
|
183
|
-
* 声明
|
|
184
|
-
*/
|
|
185
|
-
ClaimJson: string;
|
|
186
|
-
/**
|
|
187
|
-
* 颁发时间
|
|
188
|
-
*/
|
|
189
|
-
IssuanceDate: number;
|
|
190
|
-
/**
|
|
191
|
-
* context值
|
|
192
|
-
*/
|
|
193
|
-
Context: string;
|
|
194
|
-
/**
|
|
195
|
-
* id值
|
|
196
|
-
*/
|
|
197
|
-
Id: string;
|
|
198
|
-
/**
|
|
199
|
-
* 签名值
|
|
200
|
-
*/
|
|
201
|
-
Proof: Proof;
|
|
202
|
-
/**
|
|
203
|
-
* type值
|
|
204
|
-
*/
|
|
205
|
-
Type: Array<string>;
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* GetConsortiumList请求参数结构体
|
|
209
|
-
*/
|
|
210
|
-
export declare type GetConsortiumListRequest = null;
|
|
211
140
|
/**
|
|
212
141
|
* CreateCredential请求参数结构体
|
|
213
142
|
*/
|
|
@@ -238,32 +167,6 @@ export interface GetDidDocumentRequest {
|
|
|
238
167
|
*/
|
|
239
168
|
Did: string;
|
|
240
169
|
}
|
|
241
|
-
/**
|
|
242
|
-
* GetConsortiumList返回参数结构体
|
|
243
|
-
*/
|
|
244
|
-
export interface GetConsortiumListResponse {
|
|
245
|
-
/**
|
|
246
|
-
* 联盟列表
|
|
247
|
-
*/
|
|
248
|
-
ConsortiumList: Array<ConsortiumItem>;
|
|
249
|
-
/**
|
|
250
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
251
|
-
*/
|
|
252
|
-
RequestId?: string;
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* 联盟信息
|
|
256
|
-
*/
|
|
257
|
-
export interface ConsortiumItem {
|
|
258
|
-
/**
|
|
259
|
-
* 联盟id
|
|
260
|
-
*/
|
|
261
|
-
Id: number;
|
|
262
|
-
/**
|
|
263
|
-
* 联盟名称
|
|
264
|
-
*/
|
|
265
|
-
Name: string;
|
|
266
|
-
}
|
|
267
170
|
/**
|
|
268
171
|
* GetCredentialStatus请求参数结构体
|
|
269
172
|
*/
|
|
@@ -273,32 +176,6 @@ export interface GetCredentialStatusRequest {
|
|
|
273
176
|
*/
|
|
274
177
|
CredentialId: string;
|
|
275
178
|
}
|
|
276
|
-
/**
|
|
277
|
-
* GetAgencyTDid返回参数结构体
|
|
278
|
-
*/
|
|
279
|
-
export interface GetAgencyTDidResponse {
|
|
280
|
-
/**
|
|
281
|
-
* 固定前缀
|
|
282
|
-
*/
|
|
283
|
-
Prefix: string;
|
|
284
|
-
/**
|
|
285
|
-
* did详情
|
|
286
|
-
*/
|
|
287
|
-
Identity: Array<Identity>;
|
|
288
|
-
/**
|
|
289
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
290
|
-
*/
|
|
291
|
-
RequestId?: string;
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* AddLabel返回参数结构体
|
|
295
|
-
*/
|
|
296
|
-
export interface AddLabelResponse {
|
|
297
|
-
/**
|
|
298
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
299
|
-
*/
|
|
300
|
-
RequestId?: string;
|
|
301
|
-
}
|
|
302
179
|
/**
|
|
303
180
|
* VerifyCredential返回参数结构体
|
|
304
181
|
*/
|
|
@@ -343,68 +220,30 @@ export interface GetCptInfoResponse {
|
|
|
343
220
|
RequestId?: string;
|
|
344
221
|
}
|
|
345
222
|
/**
|
|
346
|
-
*
|
|
347
|
-
*/
|
|
348
|
-
export interface CptIssueRank {
|
|
349
|
-
/**
|
|
350
|
-
* 模板名称
|
|
351
|
-
*/
|
|
352
|
-
CptName: string;
|
|
353
|
-
/**
|
|
354
|
-
* 名次
|
|
355
|
-
*/
|
|
356
|
-
Rank: number;
|
|
357
|
-
/**
|
|
358
|
-
* 颁发量
|
|
359
|
-
*/
|
|
360
|
-
Count: number;
|
|
361
|
-
/**
|
|
362
|
-
* 应用名称
|
|
363
|
-
*/
|
|
364
|
-
ApplyName: string;
|
|
365
|
-
/**
|
|
366
|
-
* 应用ID
|
|
367
|
-
*/
|
|
368
|
-
ApplyId: number;
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* GetCredentialCptRank返回参数结构体
|
|
223
|
+
* 创建凭证第二个
|
|
372
224
|
*/
|
|
373
|
-
export interface
|
|
374
|
-
/**
|
|
375
|
-
* Rank集合
|
|
376
|
-
*/
|
|
377
|
-
RankIssueResult: Array<CptIssueRank>;
|
|
225
|
+
export interface TransactionArg {
|
|
378
226
|
/**
|
|
379
|
-
*
|
|
227
|
+
* 凭证did
|
|
380
228
|
*/
|
|
381
|
-
|
|
229
|
+
InvokerTDid: string;
|
|
382
230
|
}
|
|
383
231
|
/**
|
|
384
|
-
*
|
|
232
|
+
* CheckChain请求参数结构体
|
|
385
233
|
*/
|
|
386
|
-
export interface
|
|
387
|
-
/**
|
|
388
|
-
* 网络列表
|
|
389
|
-
*/
|
|
390
|
-
ClusterList: Array<BcosClusterItem>;
|
|
234
|
+
export interface CheckChainRequest {
|
|
391
235
|
/**
|
|
392
|
-
*
|
|
236
|
+
* 群组ID
|
|
393
237
|
*/
|
|
394
|
-
|
|
395
|
-
}
|
|
396
|
-
/**
|
|
397
|
-
* AddLabel请求参数结构体
|
|
398
|
-
*/
|
|
399
|
-
export interface AddLabelRequest {
|
|
238
|
+
GroupId: number;
|
|
400
239
|
/**
|
|
401
|
-
*
|
|
240
|
+
* 网络ID
|
|
402
241
|
*/
|
|
403
|
-
|
|
242
|
+
ClusterId: string;
|
|
404
243
|
/**
|
|
405
|
-
*
|
|
244
|
+
* did服务机构名称
|
|
406
245
|
*/
|
|
407
|
-
|
|
246
|
+
AgencyName: string;
|
|
408
247
|
}
|
|
409
248
|
/**
|
|
410
249
|
* GetAuthorityIssuer返回参数结构体
|
|
@@ -486,45 +325,6 @@ export interface CreateSelectiveCredentialResponse {
|
|
|
486
325
|
*/
|
|
487
326
|
RequestId?: string;
|
|
488
327
|
}
|
|
489
|
-
/**
|
|
490
|
-
* GetAgencyTDid请求参数结构体
|
|
491
|
-
*/
|
|
492
|
-
export interface GetAgencyTDidRequest {
|
|
493
|
-
/**
|
|
494
|
-
* 网络ID
|
|
495
|
-
*/
|
|
496
|
-
ClusterId: string;
|
|
497
|
-
}
|
|
498
|
-
/**
|
|
499
|
-
* CreateTDidByPublicKey返回参数结构体
|
|
500
|
-
*/
|
|
501
|
-
export interface CreateTDidByPublicKeyResponse {
|
|
502
|
-
/**
|
|
503
|
-
* did具体信息
|
|
504
|
-
*/
|
|
505
|
-
Did: string;
|
|
506
|
-
/**
|
|
507
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
508
|
-
*/
|
|
509
|
-
RequestId?: string;
|
|
510
|
-
}
|
|
511
|
-
/**
|
|
512
|
-
* GetCredentialCptRank请求参数结构体
|
|
513
|
-
*/
|
|
514
|
-
export interface GetCredentialCptRankRequest {
|
|
515
|
-
/**
|
|
516
|
-
* 开始时间(支持到天 2021-4-23)
|
|
517
|
-
*/
|
|
518
|
-
StartTime: string;
|
|
519
|
-
/**
|
|
520
|
-
* 结束时间(支持到天 2021-4-23)
|
|
521
|
-
*/
|
|
522
|
-
EndTime: string;
|
|
523
|
-
/**
|
|
524
|
-
* 网络ID
|
|
525
|
-
*/
|
|
526
|
-
ClusterId?: string;
|
|
527
|
-
}
|
|
528
328
|
/**
|
|
529
329
|
* RegisterCpt请求参数结构体
|
|
530
330
|
*/
|
|
@@ -546,6 +346,19 @@ export interface RegisterCptRequest {
|
|
|
546
346
|
*/
|
|
547
347
|
CptId?: number;
|
|
548
348
|
}
|
|
349
|
+
/**
|
|
350
|
+
* CreateTDidByPublicKey返回参数结构体
|
|
351
|
+
*/
|
|
352
|
+
export interface CreateTDidByPublicKeyResponse {
|
|
353
|
+
/**
|
|
354
|
+
* did具体信息
|
|
355
|
+
*/
|
|
356
|
+
Did: string;
|
|
357
|
+
/**
|
|
358
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
359
|
+
*/
|
|
360
|
+
RequestId?: string;
|
|
361
|
+
}
|
|
549
362
|
/**
|
|
550
363
|
* 验证凭证签名
|
|
551
364
|
*/
|
|
@@ -572,22 +385,45 @@ export interface Proof {
|
|
|
572
385
|
Type: string;
|
|
573
386
|
}
|
|
574
387
|
/**
|
|
575
|
-
*
|
|
388
|
+
* 验证凭证参数值
|
|
576
389
|
*/
|
|
577
|
-
export interface
|
|
390
|
+
export interface VerifyFunctionArg {
|
|
578
391
|
/**
|
|
579
|
-
*
|
|
392
|
+
* CPT ID
|
|
580
393
|
*/
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
394
|
+
CptId: number;
|
|
395
|
+
/**
|
|
396
|
+
* issuer did
|
|
397
|
+
*/
|
|
398
|
+
Issuer: string;
|
|
399
|
+
/**
|
|
400
|
+
* 过期时间
|
|
401
|
+
*/
|
|
402
|
+
ExpirationDate: number;
|
|
403
|
+
/**
|
|
404
|
+
* 声明
|
|
405
|
+
*/
|
|
406
|
+
ClaimJson: string;
|
|
587
407
|
/**
|
|
588
|
-
*
|
|
408
|
+
* 颁发时间
|
|
409
|
+
*/
|
|
410
|
+
IssuanceDate: number;
|
|
411
|
+
/**
|
|
412
|
+
* context值
|
|
413
|
+
*/
|
|
414
|
+
Context: string;
|
|
415
|
+
/**
|
|
416
|
+
* id值
|
|
589
417
|
*/
|
|
590
|
-
|
|
418
|
+
Id: string;
|
|
419
|
+
/**
|
|
420
|
+
* 签名值
|
|
421
|
+
*/
|
|
422
|
+
Proof: Proof;
|
|
423
|
+
/**
|
|
424
|
+
* type值
|
|
425
|
+
*/
|
|
426
|
+
Type: Array<string>;
|
|
591
427
|
}
|
|
592
428
|
/**
|
|
593
429
|
* 创建凭证入参的FunctionArg
|
|
@@ -628,69 +464,13 @@ export interface CreateTDidByPrivateKeyRequest {
|
|
|
628
464
|
PrivateKey: string;
|
|
629
465
|
}
|
|
630
466
|
/**
|
|
631
|
-
*
|
|
467
|
+
* VerifyCredential请求参数结构体
|
|
632
468
|
*/
|
|
633
|
-
export interface
|
|
634
|
-
/**
|
|
635
|
-
* 网络索引id
|
|
636
|
-
*/
|
|
637
|
-
ChainId: number;
|
|
638
|
-
/**
|
|
639
|
-
* 网络名称
|
|
640
|
-
*/
|
|
641
|
-
ChainName: string;
|
|
642
|
-
/**
|
|
643
|
-
* 机构数量
|
|
644
|
-
*/
|
|
645
|
-
AgencyCount: number;
|
|
646
|
-
/**
|
|
647
|
-
* 联盟id
|
|
648
|
-
*/
|
|
649
|
-
ConsortiumId: number;
|
|
650
|
-
/**
|
|
651
|
-
* 创建时间
|
|
652
|
-
*/
|
|
653
|
-
CreateTime: string;
|
|
654
|
-
/**
|
|
655
|
-
* 过期时间
|
|
656
|
-
*/
|
|
657
|
-
ExpireTime: string;
|
|
658
|
-
/**
|
|
659
|
-
* 网络状态
|
|
660
|
-
*/
|
|
661
|
-
ChainStatus: number;
|
|
662
|
-
/**
|
|
663
|
-
* 资源 id
|
|
664
|
-
*/
|
|
665
|
-
ResourceId: string;
|
|
666
|
-
/**
|
|
667
|
-
* 集群id
|
|
668
|
-
*/
|
|
669
|
-
ClusterId: string;
|
|
670
|
-
/**
|
|
671
|
-
* 组织名称
|
|
672
|
-
*/
|
|
673
|
-
ConsortiumName: string;
|
|
674
|
-
/**
|
|
675
|
-
* 机构id
|
|
676
|
-
*/
|
|
677
|
-
AgencyId: number;
|
|
678
|
-
/**
|
|
679
|
-
* 续费状态
|
|
680
|
-
*/
|
|
681
|
-
AutoRenewFlag: number;
|
|
682
|
-
/**
|
|
683
|
-
* 网络模式
|
|
684
|
-
*/
|
|
685
|
-
TotalNetworkNode: number;
|
|
686
|
-
/**
|
|
687
|
-
* 创建节点数
|
|
688
|
-
*/
|
|
689
|
-
TotalCreateNode: number;
|
|
469
|
+
export interface VerifyCredentialRequest {
|
|
690
470
|
/**
|
|
691
|
-
*
|
|
471
|
+
* 参数集合
|
|
692
472
|
*/
|
|
693
|
-
|
|
473
|
+
FunctionArg: VerifyFunctionArg;
|
|
694
474
|
}
|
|
695
475
|
/**
|
|
696
476
|
* SetCredentialStatus请求参数结构体
|
|
@@ -710,31 +490,6 @@ export interface GetCptInfoRequest {
|
|
|
710
490
|
*/
|
|
711
491
|
CptIndex: number;
|
|
712
492
|
}
|
|
713
|
-
/**
|
|
714
|
-
* did详情
|
|
715
|
-
*/
|
|
716
|
-
export interface Identity {
|
|
717
|
-
/**
|
|
718
|
-
* 账户标识符
|
|
719
|
-
*/
|
|
720
|
-
AccountIdentifier: string;
|
|
721
|
-
/**
|
|
722
|
-
* 链ID
|
|
723
|
-
*/
|
|
724
|
-
ChainID: string;
|
|
725
|
-
/**
|
|
726
|
-
* 完整tdid
|
|
727
|
-
*/
|
|
728
|
-
Did: string;
|
|
729
|
-
/**
|
|
730
|
-
* 群组ID
|
|
731
|
-
*/
|
|
732
|
-
GroupId: number;
|
|
733
|
-
/**
|
|
734
|
-
* 群组名称
|
|
735
|
-
*/
|
|
736
|
-
GroupName: string;
|
|
737
|
-
}
|
|
738
493
|
/**
|
|
739
494
|
* GetCredentialStatus返回参数结构体
|
|
740
495
|
*/
|