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