tencentcloud-sdk-nodejs 4.0.1037 → 4.0.1039

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 (62) hide show
  1. package/package.json +1 -1
  2. package/src/common/sdk_version.ts +1 -1
  3. package/src/services/batch/v20170312/batch_models.ts +0 -28
  4. package/src/services/captcha/v20190722/captcha_models.ts +0 -24
  5. package/src/services/ccc/v20200210/ccc_client.ts +6 -2
  6. package/src/services/ccc/v20200210/ccc_models.ts +2 -2
  7. package/src/services/cdwch/v20200915/cdwch_models.ts +34 -10
  8. package/src/services/clb/v20180317/clb_client.ts +69 -8
  9. package/src/services/clb/v20180317/clb_models.ts +404 -247
  10. package/src/services/cvm/v20170312/cvm_models.ts +0 -28
  11. package/src/services/cwp/v20180228/cwp_models.ts +2 -20
  12. package/src/services/dts/v20211206/dts_models.ts +1 -1
  13. package/src/services/faceid/v20180301/faceid_models.ts +16 -9
  14. package/src/services/hunyuan/v20230901/hunyuan_models.ts +1 -5
  15. package/src/services/lke/v20231130/lke_models.ts +33 -3
  16. package/src/services/lkeap/v20240522/lkeap_client.ts +9 -9
  17. package/src/services/lkeap/v20240522/lkeap_models.ts +6 -1
  18. package/src/services/lowcode/v20210108/lowcode_client.ts +128 -4
  19. package/src/services/lowcode/v20210108/lowcode_models.ts +916 -97
  20. package/src/services/monitor/v20180724/monitor_client.ts +13 -0
  21. package/src/services/monitor/v20180724/monitor_models.ts +90 -0
  22. package/src/services/rce/v20201103/rce_models.ts +0 -42
  23. package/src/services/redis/v20180412/redis_models.ts +0 -55
  24. package/src/services/tcr/v20190924/tcr_models.ts +6 -13
  25. package/src/services/tdid/v20210519/tdid_client.ts +8 -4
  26. package/src/services/tdid/v20210519/tdid_models.ts +49 -25
  27. package/src/services/tsf/v20180326/tsf_models.ts +0 -44
  28. package/src/services/waf/v20180125/waf_models.ts +1 -1
  29. package/tencentcloud/common/sdk_version.d.ts +1 -1
  30. package/tencentcloud/common/sdk_version.js +1 -1
  31. package/tencentcloud/services/batch/v20170312/batch_models.d.ts +0 -28
  32. package/tencentcloud/services/captcha/v20190722/captcha_models.d.ts +0 -24
  33. package/tencentcloud/services/ccc/v20200210/ccc_client.d.ts +5 -1
  34. package/tencentcloud/services/ccc/v20200210/ccc_client.js +5 -1
  35. package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +2 -2
  36. package/tencentcloud/services/cdwch/v20200915/cdwch_models.d.ts +34 -10
  37. package/tencentcloud/services/clb/v20180317/clb_client.d.ts +21 -1
  38. package/tencentcloud/services/clb/v20180317/clb_client.js +30 -0
  39. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +393 -247
  40. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +0 -28
  41. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +2 -20
  42. package/tencentcloud/services/dts/v20211206/dts_models.d.ts +1 -1
  43. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +16 -9
  44. package/tencentcloud/services/hunyuan/v20230901/hunyuan_models.d.ts +1 -5
  45. package/tencentcloud/services/lke/v20231130/lke_models.d.ts +33 -3
  46. package/tencentcloud/services/lkeap/v20240522/lkeap_client.d.ts +9 -9
  47. package/tencentcloud/services/lkeap/v20240522/lkeap_client.js +9 -9
  48. package/tencentcloud/services/lkeap/v20240522/lkeap_models.d.ts +6 -1
  49. package/tencentcloud/services/lowcode/v20210108/lowcode_client.d.ts +37 -1
  50. package/tencentcloud/services/lowcode/v20210108/lowcode_client.js +54 -0
  51. package/tencentcloud/services/lowcode/v20210108/lowcode_models.d.ts +882 -97
  52. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +5 -1
  53. package/tencentcloud/services/monitor/v20180724/monitor_client.js +6 -0
  54. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +87 -0
  55. package/tencentcloud/services/rce/v20201103/rce_models.d.ts +0 -42
  56. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +0 -55
  57. package/tencentcloud/services/tcr/v20190924/tcr_models.d.ts +6 -13
  58. package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +5 -2
  59. package/tencentcloud/services/tdid/v20210519/tdid_client.js +4 -1
  60. package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +46 -23
  61. package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +0 -44
  62. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +1 -1
@@ -995,17 +995,14 @@ export interface DescribeInstanceZoneInfoResponse {
995
995
  export interface Account {
996
996
  /**
997
997
  * 实例 ID。
998
- 注意:此字段可能返回 null,表示取不到有效值。
999
998
  */
1000
999
  InstanceId?: string;
1001
1000
  /**
1002
1001
  * 账号名称。
1003
- 注意:此字段可能返回 null,表示取不到有效值。
1004
1002
  */
1005
1003
  AccountName?: string;
1006
1004
  /**
1007
1005
  * 账号描述信息。
1008
- 注意:此字段可能返回 null,表示取不到有效值。
1009
1006
  */
1010
1007
  Remark?: string;
1011
1008
  /**
@@ -1013,14 +1010,12 @@ export interface Account {
1013
1010
  - r:只读。
1014
1011
  - w:只写。
1015
1012
  - rw:读写。
1016
- 注意:此字段可能返回 null,表示取不到有效值。
1017
1013
  */
1018
1014
  Privilege?: string;
1019
1015
  /**
1020
1016
  * 只读路由策略。
1021
1017
  - master:主节点。
1022
1018
  - replication:从节点。
1023
- 注意:此字段可能返回 null,表示取不到有效值。
1024
1019
  */
1025
1020
  ReadonlyPolicy?: Array<string>;
1026
1021
  /**
@@ -1028,12 +1023,10 @@ export interface Account {
1028
1023
  - 1:账号变更中。
1029
1024
  - 2:账号有效。
1030
1025
  - 4:账号已删除。
1031
- 注意:此字段可能返回 null,表示取不到有效值。
1032
1026
  */
1033
1027
  Status?: number;
1034
1028
  /**
1035
1029
  * 创建时间
1036
- 注意:此字段可能返回 null,表示取不到有效值。
1037
1030
  */
1038
1031
  CreateTime?: string;
1039
1032
  }
@@ -2584,7 +2577,6 @@ export interface InstanceIntegerParam {
2584
2577
  Status?: number;
2585
2578
  /**
2586
2579
  * 参数单位
2587
- 注意:此字段可能返回 null,表示取不到有效值。
2588
2580
  */
2589
2581
  Unit?: string;
2590
2582
  }
@@ -3966,42 +3958,34 @@ export interface StartupInstanceResponse {
3966
3958
  export interface DescribeInstanceDTSInstanceInfo {
3967
3959
  /**
3968
3960
  * 地域 ID。
3969
- 注意:此字段可能返回 null,表示取不到有效值。
3970
3961
  */
3971
3962
  RegionId?: number;
3972
3963
  /**
3973
3964
  * 实例 ID。
3974
- 注意:此字段可能返回 null,表示取不到有效值。
3975
3965
  */
3976
3966
  InstanceId?: string;
3977
3967
  /**
3978
3968
  * 仓库ID。
3979
- 注意:此字段可能返回 null,表示取不到有效值。
3980
3969
  */
3981
3970
  SetId?: number;
3982
3971
  /**
3983
3972
  * 可用区ID。
3984
- 注意:此字段可能返回 null,表示取不到有效值。
3985
3973
  */
3986
3974
  ZoneId?: number;
3987
3975
  /**
3988
3976
  * 实例类型。
3989
- 注意:此字段可能返回 null,表示取不到有效值。
3990
3977
  */
3991
3978
  Type?: number;
3992
3979
  /**
3993
3980
  * 实例名称。
3994
- 注意:此字段可能返回 null,表示取不到有效值。
3995
3981
  */
3996
3982
  InstanceName?: string;
3997
3983
  /**
3998
3984
  * 实例访问地址。
3999
- 注意:此字段可能返回 null,表示取不到有效值。
4000
3985
  */
4001
3986
  Vip?: string;
4002
3987
  /**
4003
3988
  * 状态。
4004
- 注意:此字段可能返回 null,表示取不到有效值。
4005
3989
  */
4006
3990
  Status?: number;
4007
3991
  }
@@ -4086,22 +4070,18 @@ export interface AssociateSecurityGroupsResponse {
4086
4070
  export interface LogDeliveryInfo {
4087
4071
  /**
4088
4072
  * 日志投递开启状态,开启:true,关闭:false
4089
- 注意:此字段可能返回 null,表示取不到有效值。
4090
4073
  */
4091
4074
  Enabled?: boolean;
4092
4075
  /**
4093
4076
  * 日志集ID。
4094
- 注意:此字段可能返回 null,表示取不到有效值。
4095
4077
  */
4096
4078
  LogsetId?: string;
4097
4079
  /**
4098
4080
  * 日志主题ID。
4099
- 注意:此字段可能返回 null,表示取不到有效值。
4100
4081
  */
4101
4082
  TopicId?: string;
4102
4083
  /**
4103
4084
  * 日志集所在地域
4104
- 注意:此字段可能返回 null,表示取不到有效值。
4105
4085
  */
4106
4086
  LogRegion?: string;
4107
4087
  }
@@ -4238,7 +4218,6 @@ export interface Groups {
4238
4218
  GroupId?: string;
4239
4219
  /**
4240
4220
  * 复制组名称。
4241
- 注意:此字段可能返回 null,表示取不到有效值。
4242
4221
  */
4243
4222
  GroupName?: string;
4244
4223
  /**
@@ -4256,12 +4235,10 @@ export interface Groups {
4256
4235
  InstanceCount?: number;
4257
4236
  /**
4258
4237
  * 复制组中的实例信息。
4259
- 注意:此字段可能返回 null,表示取不到有效值。
4260
4238
  */
4261
4239
  Instances?: Array<Instances>;
4262
4240
  /**
4263
4241
  * 备注信息。
4264
- 注意:此字段可能返回 null,表示取不到有效值。
4265
4242
  */
4266
4243
  Remark?: string;
4267
4244
  }
@@ -4752,12 +4729,10 @@ export interface ModifyParamTemplateRequest {
4752
4729
  export interface AvailableRegion {
4753
4730
  /**
4754
4731
  * 地域
4755
- 注意:此字段可能返回 null,表示取不到有效值。
4756
4732
  */
4757
4733
  Region?: string;
4758
4734
  /**
4759
4735
  * 可用区信息
4760
- 注意:此字段可能返回 null,表示取不到有效值。
4761
4736
  */
4762
4737
  AvailableZones?: Array<string>;
4763
4738
  }
@@ -4914,137 +4889,110 @@ export interface InstanceSet {
4914
4889
  SlaveReadWeight?: number;
4915
4890
  /**
4916
4891
  * 实例关联的标签信息。
4917
- 注意:此字段可能返回 null,表示取不到有效值。
4918
4892
  */
4919
4893
  InstanceTags?: Array<InstanceTagInfo>;
4920
4894
  /**
4921
4895
  * 项目名称。
4922
- 注意:此字段可能返回 null,表示取不到有效值。
4923
4896
  */
4924
4897
  ProjectName?: string;
4925
4898
  /**
4926
4899
  * 是否为免密实例。<ul><li>true:免密实例。</li><li>false:非免密实例。</li></ul>
4927
- 注意:此字段可能返回 null,表示取不到有效值。
4928
4900
  */
4929
4901
  NoAuth?: boolean;
4930
4902
  /**
4931
4903
  * 客户端连接数。
4932
- 注意:此字段可能返回 null,表示取不到有效值。
4933
4904
  */
4934
4905
  ClientLimit?: number;
4935
4906
  /**
4936
4907
  * DTS状态(内部参数,用户可忽略)。
4937
- 注意:此字段可能返回 null,表示取不到有效值。
4938
4908
  */
4939
4909
  DtsStatus?: number;
4940
4910
  /**
4941
4911
  * 分片带宽上限,单位MB。
4942
- 注意:此字段可能返回 null,表示取不到有效值。
4943
4912
  */
4944
4913
  NetLimit?: number;
4945
4914
  /**
4946
4915
  * 免密实例标识(内部参数,用户可忽略)。
4947
- 注意:此字段可能返回 null,表示取不到有效值。
4948
4916
  */
4949
4917
  PasswordFree?: number;
4950
4918
  /**
4951
4919
  * 该参数存在命名不规范问题,建议用参数IPv6取代。内部参数,用户可忽略。
4952
- 注意:此字段可能返回 null,表示取不到有效值。
4953
4920
  */
4954
4921
  Vip6?: string;
4955
4922
  /**
4956
4923
  * 内部参数,用户可忽略。
4957
- 注意:此字段可能返回 null,表示取不到有效值。
4958
4924
  */
4959
4925
  IPv6?: string;
4960
4926
  /**
4961
4927
  * 实例只读标识(内部参数,用户可忽略)。
4962
- 注意:此字段可能返回 null,表示取不到有效值。
4963
4928
  */
4964
4929
  ReadOnly?: number;
4965
4930
  /**
4966
4931
  * 内部参数,用户可忽略。
4967
- 注意:此字段可能返回 null,表示取不到有效值。
4968
4932
  */
4969
4933
  RemainBandwidthDuration?: string;
4970
4934
  /**
4971
4935
  * Redis实例请忽略该参数。
4972
- 注意:此字段可能返回 null,表示取不到有效值。
4973
4936
  */
4974
4937
  DiskSize?: number;
4975
4938
  /**
4976
4939
  * 监控版本。<ul><li>1m:1分钟粒度监控。目前该监控粒度已下线,具体信息,请参见[云数据库 Redis 1分钟粒度下线公告](https://cloud.tencent.com/document/product/239/80653)。</li><li>5s:5秒粒度监控。</li></ul>
4977
- 注意:此字段可能返回 null,表示取不到有效值。
4978
4940
  */
4979
4941
  MonitorVersion?: string;
4980
4942
  /**
4981
4943
  * 客户端最大连接数可设置的最小值。
4982
- 注意:此字段可能返回 null,表示取不到有效值。
4983
4944
  */
4984
4945
  ClientLimitMin?: number;
4985
4946
  /**
4986
4947
  * 客户端最大连接数可设置的最大值。
4987
- 注意:此字段可能返回 null,表示取不到有效值。
4988
4948
  */
4989
4949
  ClientLimitMax?: number;
4990
4950
  /**
4991
4951
  * 实例的节点详细信息。
4992
- 注意:此字段可能返回 null,表示取不到有效值。
4993
4952
  */
4994
4953
  NodeSet?: Array<RedisNodeInfo>;
4995
4954
  /**
4996
4955
  * 实例所在的地域信息,比如ap-guangzhou。
4997
- 注意:此字段可能返回 null,表示取不到有效值。
4998
4956
  */
4999
4957
  Region?: string;
5000
4958
  /**
5001
4959
  * 外网地址。
5002
- 注意:此字段可能返回 null,表示取不到有效值。
5003
4960
  */
5004
4961
  WanAddress?: string;
5005
4962
  /**
5006
4963
  * 北极星服务地址,内部使用。
5007
- 注意:此字段可能返回 null,表示取不到有效值。
5008
4964
  */
5009
4965
  PolarisServer?: string;
5010
4966
  /**
5011
4967
  * CDC Redis集群ID。
5012
- 注意:此字段可能返回 null,表示取不到有效值。
5013
4968
  */
5014
4969
  RedisClusterId?: string;
5015
4970
  /**
5016
4971
  * CDC 集群ID。
5017
- 注意:此字段可能返回 null,表示取不到有效值。
5018
4972
  */
5019
4973
  DedicatedClusterId?: string;
5020
4974
  /**
5021
4975
  * 产品版本。<ul><li>local:本地盘。</li><li>cloud:云盘版。</li><li>cdc:CDC 集群版本。</li></ul>
5022
- 注意:此字段可能返回 null,表示取不到有效值。
5023
4976
  */
5024
4977
  ProductVersion?: string;
5025
4978
  /**
5026
4979
  * 实例当前Proxy版本。
5027
- 注意:此字段可能返回 null,表示取不到有效值。
5028
4980
  */
5029
4981
  CurrentProxyVersion?: string;
5030
4982
  /**
5031
4983
  * 实例当前Cache小版本。如果实例加入全球复制组,显示全球复制的内核版本。
5032
- 注意:此字段可能返回 null,表示取不到有效值。
5033
4984
  */
5034
4985
  CurrentRedisVersion?: string;
5035
4986
  /**
5036
4987
  * 实例可升级Proxy版本。
5037
- 注意:此字段可能返回 null,表示取不到有效值。
5038
4988
  */
5039
4989
  UpgradeProxyVersion?: string;
5040
4990
  /**
5041
4991
  * 实例可升级Cache小版本。
5042
- 注意:此字段可能返回 null,表示取不到有效值。
5043
4992
  */
5044
4993
  UpgradeRedisVersion?: string;
5045
4994
  /**
5046
4995
  * 备份模式:- SecondLevelBackup 秒级备份- NormalLevelBackup 普通备份
5047
- 注意:此字段可能返回 null,表示取不到有效值。
5048
4996
  */
5049
4997
  BackupMode?: string;
5050
4998
  }
@@ -6335,7 +6283,6 @@ export interface Instances {
6335
6283
  RedisShardSize?: number;
6336
6284
  /**
6337
6285
  * 实例的磁盘大小。
6338
- 注意:此字段可能返回 null,表示取不到有效值。
6339
6286
  */
6340
6287
  DiskSize?: number;
6341
6288
  /**
@@ -6352,12 +6299,10 @@ export interface Instances {
6352
6299
  Vip?: string;
6353
6300
  /**
6354
6301
  * 该参数存在命名不规范问题,建议用参数IPv6取代。内部参数,用户可忽略。
6355
- 注意:此字段可能返回 null,表示取不到有效值。
6356
6302
  */
6357
6303
  Vip6?: string;
6358
6304
  /**
6359
6305
  * 内部参数,用户可忽略。
6360
- 注意:此字段可能返回 null,表示取不到有效值。
6361
6306
  */
6362
6307
  IPv6?: string;
6363
6308
  /**
@@ -440,7 +440,6 @@ export interface RegistryCondition {
440
440
  Status?: string;
441
441
  /**
442
442
  * 转换到该过程的简明原因
443
- 注意:此字段可能返回 null,表示取不到有效值。
444
443
  */
445
444
  Reason?: string;
446
445
  }
@@ -4928,34 +4927,28 @@ export interface CreateTagRetentionExecutionRequest {
4928
4927
  export interface ReplicationLog {
4929
4928
  /**
4930
4929
  * 资源类型
4931
- 注意:此字段可能返回 null,表示取不到有效值。
4932
4930
  */
4933
- ResourceType: string;
4931
+ ResourceType?: string;
4934
4932
  /**
4935
4933
  * 源资源
4936
- 注意:此字段可能返回 null,表示取不到有效值。
4937
4934
  */
4938
- Source: string;
4935
+ Source?: string;
4939
4936
  /**
4940
4937
  * 目的资源
4941
- 注意:此字段可能返回 null,表示取不到有效值。
4942
4938
  */
4943
- Destination: string;
4939
+ Destination?: string;
4944
4940
  /**
4945
4941
  * 同步状态
4946
- 注意:此字段可能返回 null,表示取不到有效值。
4947
4942
  */
4948
- Status: string;
4943
+ Status?: string;
4949
4944
  /**
4950
4945
  * 开始时间
4951
- 注意:此字段可能返回 null,表示取不到有效值。
4952
4946
  */
4953
- StartTime: string;
4947
+ StartTime?: string;
4954
4948
  /**
4955
4949
  * 结束时间
4956
- 注意:此字段可能返回 null,表示取不到有效值。
4957
4950
  */
4958
- EndTime: string;
4951
+ EndTime?: string;
4959
4952
  }
4960
4953
  /**
4961
4954
  * DescribeInstanceAllNamespaces返回参数结构体
@@ -1,6 +1,6 @@
1
1
  import { AbstractClient } from "../../../common/abstract_client";
2
2
  import { ClientConfig } from "../../../common/interface";
3
- import { GetTDidDocumentResponse, VerifyPresentationRequest, SetTDidAttributeResponse, IssueCredentialResponse, SetTDidAttributeRequest, CreateDisclosedCredentialRequest, QueryCPTResponse, CreateTDidByPubKeyResponse, QueryAuthorityInfoResponse, VerifyCredentialsResponse, GetCredentialStateResponse, IssueCredentialRequest, GetTDidByObjectIdResponse, CreateDisclosedCredentialResponse, GetOverSummaryRequest, GetTDidPubKeyRequest, GetTDidDocumentRequest, CreateTDidByHostResponse, VerifyCredentialsRequest, QueryAuthorityInfoRequest, VerifyPresentationResponse, GetCredentialStateRequest, QueryCPTRequest, CreatePresentationRequest, CreateTDidByHostRequest, GetAppSummaryResponse, GetTDidPubKeyResponse, UpdateCredentialStateResponse, DeactivateTDidResponse, CreatePresentationResponse, UpdateCredentialStateRequest, GetOverSummaryResponse, CreateTDidByPubKeyRequest, DeactivateTDidRequest, GetTDidByObjectIdRequest, GetAppSummaryRequest } from "./tdid_models";
3
+ import { GetTDidDocumentResponse, VerifyPresentationRequest, SetTDidAttributeResponse, IssueCredentialResponse, SetTDidAttributeRequest, CreateDisclosedCredentialRequest, QueryCPTResponse, CreateTDidByPubKeyResponse, QueryAuthorityInfoResponse, VerifyCredentialsResponse, GetCredentialStateResponse, IssueCredentialRequest, GetTDidByObjectIdResponse, CreateDisclosedCredentialResponse, GetOverSummaryRequest, GetTDidPubKeyRequest, GetTDidDocumentRequest, CreateTDidByHostResponse, VerifyCredentialsRequest, QueryAuthorityInfoRequest, VerifyPresentationResponse, GetCredentialStateRequest, QueryCPTRequest, CreatePresentationRequest, CreateTDidByHostRequest, GetAppSummaryResponse, GetTDidPubKeyResponse, UpdateCredentialStateResponse, DeactivateTDidResponse, GetTDidByObjectIdRequest, CreatePresentationResponse, UpdateCredentialStateRequest, GetOverSummaryResponse, CreateTDidByPubKeyRequest, DeactivateTDidRequest, GetAppSummaryRequest } from "./tdid_models";
4
4
  /**
5
5
  * tdid client
6
6
  * @class
@@ -64,7 +64,10 @@ export declare class Client extends AbstractClient {
64
64
  */
65
65
  SetTDidAttribute(req: SetTDidAttributeRequest, cb?: (error: string, rep: SetTDidAttributeResponse) => void): Promise<SetTDidAttributeResponse>;
66
66
  /**
67
- * 更新凭证的链上状态
67
+ * 1. 首次更新凭证状态基于不同场景参数有所差异,分以下两种场景:
68
+ (1) 颁发凭证的DID是本腾讯云账号创建
69
+ (2) 颁发凭证的DID是非本腾讯云账号创建(此调用方式也适用于场景1)
70
+ 2. 首次更新过凭证状态后,凭证状态已绑定该账号的链上用户,后续更新凭证状态只需参数CredentialStatus即可, OperateCredential和OriginCredential参数均不需要
68
71
  */
69
72
  UpdateCredentialState(req: UpdateCredentialStateRequest, cb?: (error: string, rep: UpdateCredentialStateResponse) => void): Promise<UpdateCredentialStateResponse>;
70
73
  /**
@@ -112,7 +112,10 @@ class Client extends abstract_client_1.AbstractClient {
112
112
  return this.request("SetTDidAttribute", req, cb);
113
113
  }
114
114
  /**
115
- * 更新凭证的链上状态
115
+ * 1. 首次更新凭证状态基于不同场景参数有所差异,分以下两种场景:
116
+ (1) 颁发凭证的DID是本腾讯云账号创建
117
+ (2) 颁发凭证的DID是非本腾讯云账号创建(此调用方式也适用于场景1)
118
+ 2. 首次更新过凭证状态后,凭证状态已绑定该账号的链上用户,后续更新凭证状态只需参数CredentialStatus即可, OperateCredential和OriginCredential参数均不需要
116
119
  */
117
120
  async UpdateCredentialState(req, cb) {
118
121
  return this.request("UpdateCredentialState", req, cb);
@@ -11,6 +11,23 @@ export interface GetTDidDocumentResponse {
11
11
  */
12
12
  RequestId?: string;
13
13
  }
14
+ /**
15
+ * 设置凭证状态信息
16
+ */
17
+ export interface CredentialStatusInfo {
18
+ /**
19
+ * 凭证唯一id
20
+ */
21
+ Id?: string;
22
+ /**
23
+ * 凭证状态(0:吊销;1:有效)
24
+ */
25
+ Issuer?: string;
26
+ /**
27
+ * 凭证颁发者Did
28
+ */
29
+ Status?: number;
30
+ }
14
31
  /**
15
32
  * VerifyPresentation请求参数结构体
16
33
  */
@@ -64,27 +81,22 @@ export interface IssueCredentialResponse {
64
81
  export interface ResourceCounterData {
65
82
  /**
66
83
  * DID总数
67
- 注意:此字段可能返回 null,表示取不到有效值。
68
84
  */
69
85
  DidCnt?: number;
70
86
  /**
71
87
  * VC总数
72
- 注意:此字段可能返回 null,表示取不到有效值。
73
88
  */
74
89
  VCCnt?: number;
75
90
  /**
76
91
  * CPT总数
77
- 注意:此字段可能返回 null,表示取不到有效值。
78
92
  */
79
93
  CPTCnt?: number;
80
94
  /**
81
95
  * VC验证总数
82
- 注意:此字段可能返回 null,表示取不到有效值。
83
96
  */
84
97
  VerifyCnt?: number;
85
98
  /**
86
99
  * 权威机构数量
87
- 注意:此字段可能返回 null,表示取不到有效值。
88
100
  */
89
101
  AuthCnt?: number;
90
102
  }
@@ -129,6 +141,10 @@ export interface CreateDisclosedCredentialRequest {
129
141
  * DID应用ID
130
142
  */
131
143
  DAPId?: number;
144
+ /**
145
+ * 用户应用ID
146
+ */
147
+ UAPId?: number;
132
148
  }
133
149
  /**
134
150
  * QueryCPT返回参数结构体
@@ -216,7 +232,6 @@ export interface VerifyCredentialsResponse {
216
232
  export interface GetCredentialStateResponse {
217
233
  /**
218
234
  * 凭证状态信息
219
- 注意:此字段可能返回 null,表示取不到有效值。
220
235
  */
221
236
  CredentialState?: CredentialState;
222
237
  /**
@@ -247,7 +262,6 @@ export interface IssueCredentialRequest {
247
262
  export interface GetTDidByObjectIdResponse {
248
263
  /**
249
264
  * DID标识
250
- 注意:此字段可能返回 null,表示取不到有效值。
251
265
  */
252
266
  Did?: string;
253
267
  /**
@@ -404,6 +418,10 @@ export interface CreatePresentationRequest {
404
418
  * DID应用id
405
419
  */
406
420
  DAPId?: number;
421
+ /**
422
+ * 用户应用id
423
+ */
424
+ UAPId?: number;
407
425
  /**
408
426
  * 凭证列表
409
427
  */
@@ -448,12 +466,10 @@ export interface CreateTDidByHostRequest {
448
466
  export interface GetAppSummaryResponse {
449
467
  /**
450
468
  * 用户参与应用的统计指标
451
- 注意:此字段可能返回 null,表示取不到有效值。
452
469
  */
453
470
  AppCounter?: ResourceCounterData;
454
471
  /**
455
472
  * 用户创建资源的统计指标
456
- 注意:此字段可能返回 null,表示取不到有效值。
457
473
  */
458
474
  UserCounter?: ResourceCounterData;
459
475
  /**
@@ -509,7 +525,6 @@ export interface GetTDidPubKeyResponse {
509
525
  export interface UpdateCredentialStateResponse {
510
526
  /**
511
527
  * 更新是否成功
512
- 注意:此字段可能返回 null,表示取不到有效值。
513
528
  */
514
529
  Result?: boolean;
515
530
  /**
@@ -585,13 +600,17 @@ export interface CredentialState {
585
600
  MetaDigest?: string;
586
601
  }
587
602
  /**
588
- * 链上交易信息
603
+ * GetTDidByObjectId请求参数结构体
589
604
  */
590
- export interface ChainTransaction {
605
+ export interface GetTDidByObjectIdRequest {
591
606
  /**
592
- * 交易哈希
607
+ * 业务层为DID设置的唯一标识
593
608
  */
594
- TransactionHash: string;
609
+ ObjectId?: string;
610
+ /**
611
+ * DID应用Id
612
+ */
613
+ DAPId?: number;
595
614
  }
596
615
  /**
597
616
  * CreatePresentation返回参数结构体
@@ -628,9 +647,17 @@ export interface UpdateCredentialStateRequest {
628
647
  */
629
648
  DAPId?: number;
630
649
  /**
631
- * 更新VC状态的临时凭证内容,通过创建凭证接口(CreateCredential)生成并签名,凭证类型为:OperateCredential, 为安全起见凭证过期时间不适合太长,建议设置为1分钟内
650
+ * 更新VC状态的临时凭证内容,通过创建凭证接口(CreateCredential)生成并签名,凭证类型为:OperateCredential, 为安全起见凭证过期时间不适合太长,如设置为1分钟内
632
651
  */
633
652
  OperateCredential?: string;
653
+ /**
654
+ * 待更新凭证状态的原始凭证内容
655
+ */
656
+ OriginCredential?: string;
657
+ /**
658
+ * 凭证状态信息
659
+ */
660
+ CredentialStatus?: CredentialStatusInfo;
634
661
  }
635
662
  /**
636
663
  * GetOverSummary返回参数结构体
@@ -709,17 +736,13 @@ export interface DeactivateTDidRequest {
709
736
  Deactivated?: string;
710
737
  }
711
738
  /**
712
- * GetTDidByObjectId请求参数结构体
739
+ * 链上交易信息
713
740
  */
714
- export interface GetTDidByObjectIdRequest {
715
- /**
716
- * 业务层为DID设置的唯一标识
717
- */
718
- ObjectId?: string;
741
+ export interface ChainTransaction {
719
742
  /**
720
- * DID应用Id
743
+ * 交易哈希
721
744
  */
722
- DAPId?: number;
745
+ TransactionHash: string;
723
746
  }
724
747
  /**
725
748
  * GetAppSummary请求参数结构体