tencentcloud-sdk-nodejs 4.0.778 → 4.0.780

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 (47) hide show
  1. package/CHANGELOG.md +112 -0
  2. package/SERVICE_CHANGELOG.md +91 -6
  3. package/package.json +1 -1
  4. package/products.md +14 -14
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/antiddos/v20200309/antiddos_models.ts +16 -6
  7. package/src/services/dts/v20211206/dts_models.ts +6 -1
  8. package/src/services/faceid/v20180301/faceid_models.ts +8 -0
  9. package/src/services/monitor/v20180724/monitor_client.ts +88 -21
  10. package/src/services/monitor/v20180724/monitor_models.ts +487 -137
  11. package/src/services/ocr/v20181119/ocr_models.ts +8 -0
  12. package/src/services/rum/v20210622/rum_client.ts +36 -72
  13. package/src/services/rum/v20210622/rum_models.ts +36 -120
  14. package/src/services/tcb/v20180608/tcb_models.ts +9 -0
  15. package/src/services/tdid/v20210519/tdid_client.ts +178 -144
  16. package/src/services/tdid/v20210519/tdid_models.ts +462 -241
  17. package/src/services/tdmq/v20200217/tdmq_client.ts +12 -0
  18. package/src/services/tdmq/v20200217/tdmq_models.ts +95 -0
  19. package/src/services/teo/v20220901/teo_models.ts +2 -2
  20. package/src/services/tse/v20201207/tse_models.ts +1 -1
  21. package/src/services/tsf/v20180326/tsf_models.ts +1 -1
  22. package/tencentcloud/common/sdk_version.d.ts +1 -1
  23. package/tencentcloud/common/sdk_version.js +1 -1
  24. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +16 -6
  25. package/tencentcloud/services/dts/v20211206/dts_models.d.ts +6 -1
  26. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +8 -0
  27. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +28 -5
  28. package/tencentcloud/services/monitor/v20180724/monitor_client.js +39 -6
  29. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +471 -135
  30. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +8 -0
  31. package/tencentcloud/services/rum/v20210622/rum_client.d.ts +13 -25
  32. package/tencentcloud/services/rum/v20210622/rum_client.js +18 -36
  33. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +36 -114
  34. package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +9 -0
  35. package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +47 -54
  36. package/tencentcloud/services/tdid/v20210519/tdid_client.js +69 -66
  37. package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +451 -241
  38. package/tencentcloud/services/tdmq/v20200217/tdmq_client.d.ts +5 -1
  39. package/tencentcloud/services/tdmq/v20200217/tdmq_client.js +6 -0
  40. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +93 -0
  41. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +2 -2
  42. package/tencentcloud/services/tse/v20201207/tse_models.d.ts +1 -1
  43. package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +1 -1
  44. package/test/monitor.v20180724.test.js +54 -4
  45. package/test/rum.v20210622.test.js +14 -44
  46. package/test/tdid.v20210519.test.js +76 -26
  47. package/test/tdmq.v20200217.test.js +10 -0
@@ -1,522 +1,732 @@
1
1
  /**
2
- * 凭证链上状态信息
2
+ * GetTDidDocument返回参数结构体
3
3
  */
4
- export interface CredentialStatus {
4
+ export interface GetTDidDocumentResponse {
5
5
  /**
6
- * 凭证唯一id
6
+ * DID文档内容
7
7
  */
8
- CredentialId: string;
8
+ Document?: string;
9
9
  /**
10
- * 凭证状态(0:吊销;1:有效)
10
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11
11
  */
12
- Status: number;
12
+ RequestId?: string;
13
+ }
14
+ /**
15
+ * VerifyPresentation请求参数结构体
16
+ */
17
+ export interface VerifyPresentationRequest {
13
18
  /**
14
- * 凭证颁发者Did
19
+ * VP持有人的did标识
15
20
  */
16
- Issuer: string;
21
+ Did?: string;
17
22
  /**
18
- * 凭证摘要
19
- 注意:此字段可能返回 null,表示取不到有效值。
23
+ * 可验证表达内容
20
24
  */
21
- Digest: string;
25
+ PresentationData?: string;
22
26
  /**
23
- * 凭证签名
24
- 注意:此字段可能返回 null,表示取不到有效值。
27
+ * DID应用id
25
28
  */
26
- Signature: string;
29
+ DAPId?: number;
27
30
  /**
28
- * 更新时间戳
29
- 注意:此字段可能返回 null,表示取不到有效值。
31
+ * 随机验证码
30
32
  */
31
- TimeStamp: number;
33
+ VerifyCode?: string;
32
34
  }
33
35
  /**
34
- * CreateTDid请求参数结构体
36
+ * SetTDidAttribute返回参数结构体
35
37
  */
36
- export interface CreateTDidRequest {
37
- /**
38
- * 群组ID
39
- */
40
- GroupId: number;
38
+ export interface SetTDidAttributeResponse {
41
39
  /**
42
- * 网络ID
40
+ * 上链交易信息
43
41
  */
44
- ClusterId: string;
42
+ Transaction?: ChainTransaction;
45
43
  /**
46
- * 部署机构为1,否则为0
44
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
47
45
  */
48
- Relegation: number;
46
+ RequestId?: string;
49
47
  }
50
48
  /**
51
- * CreateSelectiveCredential请求参数结构体
49
+ * IssueCredential返回参数结构体
52
50
  */
53
- export interface CreateSelectiveCredentialRequest {
51
+ export interface IssueCredentialResponse {
54
52
  /**
55
- * 参数集合
53
+ * 可验证凭证内容
56
54
  */
57
- FunctionArg: VerifyFunctionArg;
55
+ CredentialData?: string;
58
56
  /**
59
- * 批露策略id
57
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
60
58
  */
61
- PolicyId: number;
59
+ RequestId?: string;
62
60
  }
63
61
  /**
64
- * CreateTDidByPrivateKey返回参数结构体
62
+ * 资源计数统计数据
65
63
  */
66
- export interface CreateTDidByPrivateKeyResponse {
64
+ export interface ResourceCounterData {
67
65
  /**
68
- * did的具体信息
66
+ * DID总数
67
+ 注意:此字段可能返回 null,表示取不到有效值。
69
68
  */
70
- Did: string;
69
+ DidCnt?: number;
71
70
  /**
72
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
71
+ * VC总数
72
+ 注意:此字段可能返回 null,表示取不到有效值。
73
73
  */
74
- RequestId?: string;
74
+ VCCnt?: number;
75
+ /**
76
+ * CPT总数
77
+ 注意:此字段可能返回 null,表示取不到有效值。
78
+ */
79
+ CPTCnt?: number;
80
+ /**
81
+ * VC验证总数
82
+ 注意:此字段可能返回 null,表示取不到有效值。
83
+ */
84
+ VerifyCnt?: number;
85
+ /**
86
+ * 权威机构数量
87
+ 注意:此字段可能返回 null,表示取不到有效值。
88
+ */
89
+ AuthCnt?: number;
75
90
  }
76
91
  /**
77
- * CheckChain返回参数结构体
92
+ * SetTDidAttribute请求参数结构体
78
93
  */
79
- export interface CheckChainResponse {
94
+ export interface SetTDidAttributeRequest {
80
95
  /**
81
- * 1为盟主,0为非盟主
96
+ * DID标识符
82
97
  */
83
- RoleType: number;
98
+ Did?: string;
84
99
  /**
85
- * 链ID
100
+ * 属性名值对数组
86
101
  */
87
- ChainId: string;
102
+ Attributes?: Array<DidAttribute>;
88
103
  /**
89
- * 应用名称
104
+ * DID应用Id
90
105
  */
91
- AppName: string;
106
+ DAPId?: number;
92
107
  /**
93
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
108
+ * 操作鉴权凭证
94
109
  */
95
- RequestId?: string;
110
+ OperateCredential?: string;
96
111
  }
97
112
  /**
98
- * CreateTDidByPublicKey请求参数结构体
113
+ * CreateDisclosedCredential请求参数结构体
99
114
  */
100
- export interface CreateTDidByPublicKeyRequest {
115
+ export interface CreateDisclosedCredentialRequest {
101
116
  /**
102
- * 网络ID
117
+ * 披露策略id,PolicyJson和PolicyId任选其一
103
118
  */
104
- ClusterId: string;
119
+ PolicyId?: number;
105
120
  /**
106
- * 群组ID
121
+ * 凭证文本内容,FunctionArg和CredentialText任选其一
107
122
  */
108
- GroupId: number;
123
+ CredentialData?: string;
109
124
  /**
110
- * 身份公钥
125
+ * 披露策略文本
111
126
  */
112
- PublicKey: string;
127
+ PolicyJson?: string;
113
128
  /**
114
- * 加密公钥
129
+ * DID应用ID
115
130
  */
116
- EncryptPubKey?: string;
131
+ DAPId?: number;
117
132
  }
118
133
  /**
119
- * CreateCredential返回参数结构体
134
+ * QueryCPT返回参数结构体
120
135
  */
121
- export interface CreateCredentialResponse {
136
+ export interface QueryCPTResponse {
122
137
  /**
123
- * Credential的具体信息
138
+ * 凭证模板内容
124
139
  */
125
- CredentialData: string;
140
+ CPTJson?: string;
126
141
  /**
127
142
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
128
143
  */
129
144
  RequestId?: string;
130
145
  }
131
146
  /**
132
- * GetAuthorityIssuer请求参数结构体
147
+ * CreateTDidByPubKey返回参数结构体
133
148
  */
134
- export interface GetAuthorityIssuerRequest {
149
+ export interface CreateTDidByPubKeyResponse {
150
+ /**
151
+ * did标识
152
+ */
153
+ Did?: string;
135
154
  /**
136
- * tdid
155
+ * 链上交易信息
137
156
  */
138
- Did: string;
157
+ Transaction?: ChainTransaction;
158
+ /**
159
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
160
+ */
161
+ RequestId?: string;
139
162
  }
140
163
  /**
141
- * CreateCredential请求参数结构体
164
+ * QueryAuthorityInfo返回参数结构体
142
165
  */
143
- export interface CreateCredentialRequest {
166
+ export interface QueryAuthorityInfoResponse {
144
167
  /**
145
- * 参数集合,详见示例
168
+ * 名称
146
169
  */
147
- FunctionArg: FunctionArg;
170
+ Name?: string;
148
171
  /**
149
- * 参数集合,详见示例
172
+ * 权威机构did
150
173
  */
151
- TransactionArg: TransactionArg;
174
+ Did?: string;
152
175
  /**
153
- * 版本
176
+ * 状态:1为已认证,2为未认证
154
177
  */
155
- VersionCredential: string;
178
+ Status?: number;
156
179
  /**
157
- * 是否未签名
180
+ * 机构备注信息
158
181
  */
159
- UnSigned?: boolean;
160
- }
161
- /**
162
- * GetDidDocument请求参数结构体
163
- */
164
- export interface GetDidDocumentRequest {
182
+ Description?: string;
165
183
  /**
166
- * tdid
184
+ * 认证时间
167
185
  */
168
- Did: string;
169
- }
170
- /**
171
- * GetCredentialStatus请求参数结构体
172
- */
173
- export interface GetCredentialStatusRequest {
186
+ RecognizeTime?: string;
174
187
  /**
175
- * 凭证id
188
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
176
189
  */
177
- CredentialId: string;
190
+ RequestId?: string;
178
191
  }
179
192
  /**
180
- * VerifyCredential返回参数结构体
193
+ * VerifyCredentials返回参数结构体
181
194
  */
182
- export interface VerifyCredentialResponse {
195
+ export interface VerifyCredentialsResponse {
183
196
  /**
184
197
  * 是否验证成功
185
198
  */
186
- Result: boolean;
199
+ Result?: boolean;
187
200
  /**
188
201
  * 验证返回码
189
202
  */
190
- VerifyCode: number;
203
+ VerifyCode?: number;
191
204
  /**
192
- * 验证消息
205
+ * 验证结果信息
193
206
  */
194
- VerifyMessage: string;
207
+ VerifyMessage?: string;
195
208
  /**
196
209
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
197
210
  */
198
211
  RequestId?: string;
199
212
  }
200
213
  /**
201
- * SetCredentialStatus返回参数结构体
214
+ * GetCredentialState返回参数结构体
202
215
  */
203
- export interface SetCredentialStatusResponse {
216
+ export interface GetCredentialStateResponse {
217
+ /**
218
+ * 凭证状态信息
219
+ 注意:此字段可能返回 null,表示取不到有效值。
220
+ */
221
+ CredentialState?: CredentialState;
204
222
  /**
205
223
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
206
224
  */
207
225
  RequestId?: string;
208
226
  }
209
227
  /**
210
- * GetCptInfo返回参数结构体
228
+ * IssueCredential请求参数结构体
211
229
  */
212
- export interface GetCptInfoResponse {
230
+ export interface IssueCredentialRequest {
231
+ /**
232
+ * 参数集合,详见示例
233
+ */
234
+ CRDLArg?: CRDLArg;
213
235
  /**
214
- * CptJsonData的具体信息
236
+ * 是否未签名
215
237
  */
216
- CptJsonData: string;
238
+ UnSigned?: boolean;
239
+ /**
240
+ * DID应用id
241
+ */
242
+ DAPId?: number;
243
+ }
244
+ /**
245
+ * GetTDidByObjectId返回参数结构体
246
+ */
247
+ export interface GetTDidByObjectIdResponse {
248
+ /**
249
+ * DID标识
250
+ 注意:此字段可能返回 null,表示取不到有效值。
251
+ */
252
+ Did?: string;
217
253
  /**
218
254
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
219
255
  */
220
256
  RequestId?: string;
221
257
  }
222
258
  /**
223
- * 创建凭证第二个
259
+ * CreateDisclosedCredential返回参数结构体
224
260
  */
225
- export interface TransactionArg {
261
+ export interface CreateDisclosedCredentialResponse {
226
262
  /**
227
- * 凭证did
263
+ * 凭证字符串
228
264
  */
229
- InvokerTDid: string;
265
+ CredentialData?: string;
266
+ /**
267
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
268
+ */
269
+ RequestId?: string;
230
270
  }
231
271
  /**
232
- * CheckChain请求参数结构体
272
+ * GetOverSummary请求参数结构体
273
+ */
274
+ export declare type GetOverSummaryRequest = null;
275
+ /**
276
+ * GetTDidPubKey请求参数结构体
233
277
  */
234
- export interface CheckChainRequest {
278
+ export interface GetTDidPubKeyRequest {
235
279
  /**
236
- * 群组ID
280
+ * DID标识
237
281
  */
238
- GroupId: number;
282
+ Did?: string;
239
283
  /**
240
- * 网络ID
284
+ * DID应用Id
241
285
  */
242
- ClusterId: string;
286
+ DAPId?: number;
287
+ }
288
+ /**
289
+ * GetTDidDocument请求参数结构体
290
+ */
291
+ export interface GetTDidDocumentRequest {
243
292
  /**
244
- * did服务机构名称
293
+ * DID标识
245
294
  */
246
- AgencyName: string;
295
+ Did?: string;
296
+ /**
297
+ * DID应用ID
298
+ */
299
+ DAPId?: number;
247
300
  }
248
301
  /**
249
- * GetAuthorityIssuer返回参数结构体
302
+ * CreateTDidByHost返回参数结构体
250
303
  */
251
- export interface GetAuthorityIssuerResponse {
304
+ export interface CreateTDidByHostResponse {
252
305
  /**
253
- * 名称
306
+ * DID标识
254
307
  */
255
- Name: string;
308
+ Did?: string;
256
309
  /**
257
- * 区块链网络id
310
+ * 链上交易信息
258
311
  */
259
- ClusterId: string;
312
+ Transaction?: ChainTransaction;
260
313
  /**
261
- * 区块链群组id
314
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
262
315
  */
263
- GroupId: number;
316
+ RequestId?: string;
317
+ }
318
+ /**
319
+ * VerifyCredentials请求参数结构体
320
+ */
321
+ export interface VerifyCredentialsRequest {
264
322
  /**
265
- * 权威机构did
323
+ * 0:仅验证签名,1:验证签名和链上状态,2, 仅验证链上状态,默认为0, 3.验证DID和凭证状态以及签名,4. 验证历史凭证有效性
266
324
  */
267
- Did: string;
325
+ VerifyType?: number;
268
326
  /**
269
- * 机构备注信息
327
+ * 凭证内容
270
328
  */
271
- Remark: string;
329
+ CredentialData?: string;
272
330
  /**
273
- * 注册时间
331
+ * DID应用id
274
332
  */
275
- RegisterTime: string;
333
+ DAPId?: number;
334
+ }
335
+ /**
336
+ * QueryAuthorityInfo请求参数结构体
337
+ */
338
+ export interface QueryAuthorityInfoRequest {
276
339
  /**
277
- * 认证时间
340
+ * DID标识
278
341
  */
279
- RecognizeTime: string;
342
+ Did?: string;
280
343
  /**
281
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
344
+ * DID应用id
282
345
  */
283
- RequestId?: string;
346
+ DAPId?: number;
347
+ /**
348
+ * 权威机构名称
349
+ */
350
+ Name?: string;
284
351
  }
285
352
  /**
286
- * GetDidDocument返回参数结构体
353
+ * VerifyPresentation返回参数结构体
287
354
  */
288
- export interface GetDidDocumentResponse {
355
+ export interface VerifyPresentationResponse {
289
356
  /**
290
- * 名称
357
+ * 是否验证成功
291
358
  */
292
- Name: string;
359
+ Result?: boolean;
293
360
  /**
294
- * DID文档
361
+ * 验证返回码
295
362
  */
296
- Document: string;
363
+ VerifyCode?: number;
364
+ /**
365
+ * 验证消息
366
+ */
367
+ VerifyMessage?: string;
297
368
  /**
298
369
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
299
370
  */
300
371
  RequestId?: string;
301
372
  }
302
373
  /**
303
- * CreateTDid返回参数结构体
374
+ * GetCredentialState请求参数结构体
304
375
  */
305
- export interface CreateTDidResponse {
376
+ export interface GetCredentialStateRequest {
306
377
  /**
307
- * TDID
378
+ * 凭证唯一Id
308
379
  */
309
- Did: string;
380
+ CredentialId?: string;
310
381
  /**
311
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
382
+ * 用户应用Id
312
383
  */
313
- RequestId?: string;
384
+ DAPId?: number;
314
385
  }
315
386
  /**
316
- * CreateSelectiveCredential返回参数结构体
387
+ * QueryCPT请求参数结构体
317
388
  */
318
- export interface CreateSelectiveCredentialResponse {
389
+ export interface QueryCPTRequest {
319
390
  /**
320
- * 凭证字符串
391
+ * DID应用id
321
392
  */
322
- CredentialData: string;
393
+ DAPId?: number;
323
394
  /**
324
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
395
+ * 凭证模板id
325
396
  */
326
- RequestId?: string;
397
+ CPTId?: number;
327
398
  }
328
399
  /**
329
- * RegisterCpt请求参数结构体
400
+ * CreatePresentation请求参数结构体
330
401
  */
331
- export interface RegisterCptRequest {
402
+ export interface CreatePresentationRequest {
332
403
  /**
333
- * 群组ID
404
+ * DID应用id
334
405
  */
335
- GroupId: number;
406
+ DAPId?: number;
336
407
  /**
337
- * 网络ID
408
+ * 凭证列表
338
409
  */
339
- ClusterId: string;
410
+ Credentials?: Array<string>;
340
411
  /**
341
- * CptJson的具体信息
412
+ * VP持有人的DID标识
342
413
  */
343
- CptJson: string;
414
+ Did?: string;
344
415
  /**
345
- * cptId 不填默认自增
416
+ * VP随机验证码
346
417
  */
347
- CptId?: number;
348
- }
349
- /**
350
- * CreateTDidByPublicKey返回参数结构体
351
- */
352
- export interface CreateTDidByPublicKeyResponse {
418
+ VerifyCode?: string;
353
419
  /**
354
- * did具体信息
420
+ * 选择性披露策略
355
421
  */
356
- Did: string;
422
+ PolicyJson?: string;
357
423
  /**
358
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
424
+ * 是否签名,ture时signatureValue为待签名内容由调用端自行签名,false时signatureValue为平台自动已签名的内容。默认false
359
425
  */
360
- RequestId?: string;
426
+ Unsigned?: boolean;
427
+ /**
428
+ * 可验证凭证证明列表
429
+ */
430
+ CredentialList?: Array<CredentialProof>;
361
431
  }
362
432
  /**
363
- * 验证凭证签名
433
+ * CreateTDidByHost请求参数结构体
364
434
  */
365
- export interface Proof {
435
+ export interface CreateTDidByHostRequest {
366
436
  /**
367
- * 创建时间
437
+ * DID应用ID
368
438
  */
369
- Created: number;
439
+ DAPId?: number;
370
440
  /**
371
- * 创建着did
441
+ * 自定义DID文档json属性
372
442
  */
373
- Creator: string;
443
+ CustomAttribute?: string;
444
+ }
445
+ /**
446
+ * GetAppSummary返回参数结构体
447
+ */
448
+ export interface GetAppSummaryResponse {
374
449
  /**
375
- * salt值
450
+ * 用户参与应用的统计指标
451
+ 注意:此字段可能返回 null,表示取不到有效值。
376
452
  */
377
- SaltJson: string;
453
+ AppCounter?: ResourceCounterData;
378
454
  /**
379
- * 签名
455
+ * 用户创建资源的统计指标
456
+ 注意:此字段可能返回 null,表示取不到有效值。
380
457
  */
381
- SignatureValue: string;
458
+ UserCounter?: ResourceCounterData;
382
459
  /**
383
- * type类型
460
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
384
461
  */
385
- Type: string;
462
+ RequestId?: string;
386
463
  }
387
464
  /**
388
- * 验证凭证参数值
465
+ * 颁发凭证的数据参数
389
466
  */
390
- export interface VerifyFunctionArg {
467
+ export interface CRDLArg {
391
468
  /**
392
469
  * CPT ID
393
470
  */
394
- CptId: number;
471
+ CPTId: number;
395
472
  /**
396
- * issuer did
473
+ * 签发者 did
397
474
  */
398
475
  Issuer: string;
399
476
  /**
400
477
  * 过期时间
401
478
  */
402
- ExpirationDate: number;
479
+ ExpirationDate: string;
403
480
  /**
404
481
  * 声明
405
482
  */
406
483
  ClaimJson: string;
407
484
  /**
408
- * 颁发时间
485
+ * 凭证类型
409
486
  */
410
- IssuanceDate: number;
487
+ Type?: Array<string>;
411
488
  /**
412
- * context值
489
+ * 多方签名的用户did
413
490
  */
414
- Context: string;
415
- /**
416
- * id值
417
- */
418
- Id: string;
491
+ Parties?: Array<string>;
492
+ }
493
+ /**
494
+ * GetTDidPubKey返回参数结构体
495
+ */
496
+ export interface GetTDidPubKeyResponse {
419
497
  /**
420
- * 签名值
498
+ * DID公钥数组
421
499
  */
422
- Proof: Proof;
500
+ AuthPublicKeyList?: Array<string>;
423
501
  /**
424
- * type值
502
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
425
503
  */
426
- Type: Array<string>;
504
+ RequestId?: string;
427
505
  }
428
506
  /**
429
- * 创建凭证入参的FunctionArg
507
+ * UpdateCredentialState返回参数结构体
430
508
  */
431
- export interface FunctionArg {
509
+ export interface UpdateCredentialStateResponse {
432
510
  /**
433
- * CPT ID
511
+ * 更新是否成功
512
+ 注意:此字段可能返回 null,表示取不到有效值。
434
513
  */
435
- CptId: number;
514
+ Result?: boolean;
436
515
  /**
437
- * 签发者 did
516
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
438
517
  */
439
- Issuer: string;
518
+ RequestId?: string;
519
+ }
520
+ /**
521
+ * DeactivateTDid返回参数结构体
522
+ */
523
+ export interface DeactivateTDidResponse {
440
524
  /**
441
- * 过期时间
525
+ * 上链交易信息
442
526
  */
443
- ExpirationDate: string;
527
+ Transaction?: ChainTransaction;
444
528
  /**
445
- * 声明
529
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
446
530
  */
447
- ClaimJson: string;
531
+ RequestId?: string;
448
532
  }
449
533
  /**
450
- * CreateTDidByPrivateKey请求参数结构体
534
+ * 可验证凭证证明信息
451
535
  */
452
- export interface CreateTDidByPrivateKeyRequest {
536
+ export interface CredentialProof {
537
+ /**
538
+ * 可验证凭证内容
539
+ */
540
+ Credential: string;
541
+ }
542
+ /**
543
+ * 凭证链上状态信息
544
+ */
545
+ export interface CredentialState {
546
+ /**
547
+ * 凭证唯一id
548
+ */
549
+ Id?: string;
550
+ /**
551
+ * 凭证状态(0:吊销;1:有效)
552
+ */
553
+ Status?: number;
554
+ /**
555
+ * 凭证颁发者Did
556
+ */
557
+ Issuer?: string;
558
+ /**
559
+ * VC摘要,对应凭证Proof的vcDigest字段
560
+ */
561
+ VCDigest?: string;
562
+ /**
563
+ * 交易摘要,对应凭证Proof的txDigest字段
564
+ */
565
+ TXDigest?: string;
566
+ /**
567
+ * 颁布凭证的UTC时间戳
568
+ */
569
+ IssueTime?: number;
570
+ /**
571
+ * 凭证过期的UTC时间戳
572
+ */
573
+ ExpireTime?: number;
453
574
  /**
454
- * 网络ID
575
+ * 凭证模板id
455
576
  */
456
- ClusterId: string;
577
+ CPTId?: number;
457
578
  /**
458
- * 群组ID
579
+ * 凭证签名
459
580
  */
460
- GroupId: number;
581
+ Signature?: string;
461
582
  /**
462
- * 私钥
583
+ * 元数据摘要
463
584
  */
464
- PrivateKey: string;
585
+ MetaDigest?: string;
465
586
  }
466
587
  /**
467
- * VerifyCredential请求参数结构体
588
+ * 链上交易信息
468
589
  */
469
- export interface VerifyCredentialRequest {
590
+ export interface ChainTransaction {
470
591
  /**
471
- * 参数集合
592
+ * 交易哈希
472
593
  */
473
- FunctionArg: VerifyFunctionArg;
594
+ TransactionHash: string;
474
595
  }
475
596
  /**
476
- * SetCredentialStatus请求参数结构体
597
+ * CreatePresentation返回参数结构体
477
598
  */
478
- export interface SetCredentialStatusRequest {
599
+ export interface CreatePresentationResponse {
600
+ /**
601
+ * 可验证表达内容
602
+ */
603
+ PresentationData?: string;
479
604
  /**
480
- * 凭证状态
605
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
481
606
  */
482
- CredentialStatus: CredentialStatus;
607
+ RequestId?: string;
483
608
  }
484
609
  /**
485
- * GetCptInfo请求参数结构体
610
+ * did自定义属性
486
611
  */
487
- export interface GetCptInfoRequest {
612
+ export interface DidAttribute {
488
613
  /**
489
- * Cpt索引
614
+ * 键名
490
615
  */
491
- CptIndex: number;
616
+ Key: string;
617
+ /**
618
+ * 键值
619
+ */
620
+ Val: string;
492
621
  }
493
622
  /**
494
- * GetCredentialStatus返回参数结构体
623
+ * UpdateCredentialState请求参数结构体
495
624
  */
496
- export interface GetCredentialStatusResponse {
625
+ export interface UpdateCredentialStateRequest {
497
626
  /**
498
- * 凭证状态信息
627
+ * DID应用Id
499
628
  */
500
- CredentialStatus: CredentialStatus;
629
+ DAPId?: number;
501
630
  /**
502
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
631
+ * 更新VC状态的临时凭证内容,通过创建凭证接口(CreateCredential)生成并签名,凭证类型为:OperateCredential, 为安全起见凭证过期时间不适合太长,建议设置为1分钟内
503
632
  */
504
- RequestId?: string;
633
+ OperateCredential?: string;
505
634
  }
506
635
  /**
507
- * RegisterCpt返回参数结构体
636
+ * GetOverSummary返回参数结构体
508
637
  */
509
- export interface RegisterCptResponse {
638
+ export interface GetOverSummaryResponse {
510
639
  /**
511
- * 凭证模板索引
640
+ * 用户参与应用的统计指标
641
+ 注意:此字段可能返回 null,表示取不到有效值。
512
642
  */
513
- Id: number;
643
+ AppCounter?: ResourceCounterData;
514
644
  /**
515
- * 凭证模板id
645
+ * 用户部署应用的统计指标
646
+ 注意:此字段可能返回 null,表示取不到有效值。
516
647
  */
517
- CptId: number;
648
+ UserCounter?: ResourceCounterData;
649
+ /**
650
+ * 用户参与的应用总数
651
+ 注意:此字段可能返回 null,表示取不到有效值。
652
+ */
653
+ AppCnt?: number;
654
+ /**
655
+ * 用户部署的应用总数
656
+ 注意:此字段可能返回 null,表示取不到有效值。
657
+ */
658
+ DeployCnt?: number;
659
+ /**
660
+ * 部署网络子链总数
661
+ 注意:此字段可能返回 null,表示取不到有效值。
662
+ */
663
+ ChainCnt?: number;
518
664
  /**
519
665
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
520
666
  */
521
667
  RequestId?: string;
522
668
  }
669
+ /**
670
+ * CreateTDidByPubKey请求参数结构体
671
+ */
672
+ export interface CreateTDidByPubKeyRequest {
673
+ /**
674
+ * DID应用id
675
+ */
676
+ DAPId?: number;
677
+ /**
678
+ * pem格式的认证公钥
679
+ */
680
+ PublicKey?: string;
681
+ /**
682
+ * 自定义DID初始化属性json字符串
683
+ */
684
+ CustomAttribute?: string;
685
+ /**
686
+ * 0:did存在返回错误,1:did存在返回该did,默认:0
687
+ */
688
+ IgnoreExisted?: number;
689
+ }
690
+ /**
691
+ * DeactivateTDid请求参数结构体
692
+ */
693
+ export interface DeactivateTDidRequest {
694
+ /**
695
+ * DID标识符
696
+ */
697
+ Did?: string;
698
+ /**
699
+ * 设置DID禁用状态的临时凭证内容,通过创建凭证接口(CreateCredential)生成并签名,凭证类型为:OperateCredential, 为安全起见凭证过期时间不适合太长,建议设置为1分钟内
700
+ */
701
+ OperateCredential?: string;
702
+ /**
703
+ * DID应用Id
704
+ */
705
+ DAPId?: number;
706
+ /**
707
+ * 是否禁用
708
+ */
709
+ Deactivated?: string;
710
+ }
711
+ /**
712
+ * GetTDidByObjectId请求参数结构体
713
+ */
714
+ export interface GetTDidByObjectIdRequest {
715
+ /**
716
+ * 业务层为DID设置的唯一标识
717
+ */
718
+ ObjectId?: string;
719
+ /**
720
+ * DID应用Id
721
+ */
722
+ DAPId?: number;
723
+ }
724
+ /**
725
+ * GetAppSummary请求参数结构体
726
+ */
727
+ export interface GetAppSummaryRequest {
728
+ /**
729
+ * DID应用Id
730
+ */
731
+ DAPId?: number;
732
+ }