tencentcloud-sdk-nodejs 4.0.319 → 4.0.320
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 +2 -0
- package/SERVICE_CHANGELOG.md +431 -193
- package/package.json +1 -1
- package/products.md +170 -169
- package/src/common/sdk_version.ts +1 -1
- package/src/services/ame/v20190916/ame_models.ts +14 -4
- package/src/services/ams/v20201229/ams_models.ts +14 -0
- package/src/services/as/v20180419/as_client.ts +2 -18
- package/src/services/as/v20180419/as_models.ts +32 -97
- package/src/services/batch/v20170312/batch_models.ts +69 -69
- package/src/services/bsca/index.ts +5 -0
- package/src/services/bsca/v20210811/bsca_client.ts +93 -0
- package/src/services/bsca/v20210811/bsca_models.ts +636 -0
- package/src/services/bsca/v20210811/index.ts +6 -0
- package/src/services/cam/v20190116/cam_client.ts +59 -11
- package/src/services/cam/v20190116/cam_models.ts +275 -68
- package/src/services/cdb/v20170320/cdb_models.ts +7 -2
- package/src/services/cdn/v20180606/cdn_client.ts +2 -2
- package/src/services/cdn/v20180606/cdn_models.ts +20 -14
- package/src/services/cls/v20201016/cls_models.ts +2 -2
- package/src/services/cwp/v20180228/cwp_models.ts +17 -9
- package/src/services/ess/v20201111/ess_models.ts +7 -3
- package/src/services/essbasic/v20210526/essbasic_models.ts +1 -1
- package/src/services/faceid/v20180301/faceid_models.ts +7 -1
- package/src/services/index.ts +1 -0
- package/src/services/iotcloud/v20180614/iotcloud_client.ts +24 -0
- package/src/services/iotcloud/v20180614/iotcloud_models.ts +85 -0
- package/src/services/iotcloud/v20210408/iotcloud_client.ts +175 -64
- package/src/services/iotcloud/v20210408/iotcloud_models.ts +579 -82
- package/src/services/lighthouse/v20200324/lighthouse_client.ts +1 -1
- package/src/services/lighthouse/v20200324/lighthouse_models.ts +13 -7
- package/src/services/mongodb/v20190725/mongodb_client.ts +13 -0
- package/src/services/mongodb/v20190725/mongodb_models.ts +55 -0
- package/src/services/ocr/v20181119/ocr_models.ts +5 -7
- package/src/services/ssa/v20180608/ssa_models.ts +70 -23
- package/src/services/ssl/v20191205/ssl_models.ts +2 -2
- package/src/services/thpc/index.ts +2 -0
- package/src/services/thpc/v20211109/thpc_client.ts +3 -1
- package/src/services/thpc/v20211109/thpc_models.ts +93 -14
- package/src/services/thpc/v20220401/index.ts +6 -0
- package/src/services/thpc/v20220401/thpc_client.ts +121 -0
- package/src/services/thpc/v20220401/thpc_models.ts +805 -0
- package/src/services/tke/v20180525/tke_client.ts +63 -11
- package/src/services/tke/v20180525/tke_models.ts +398 -117
- package/src/services/vpc/v20170312/vpc_models.ts +2 -2
- package/src/services/wav/v20210129/wav_client.ts +154 -76
- package/src/services/wav/v20210129/wav_models.ts +541 -25
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/ame/v20190916/ame_models.d.ts +9 -0
- package/tencentcloud/services/ams/v20201229/ams_models.d.ts +12 -0
- package/tencentcloud/services/as/v20180419/as_client.d.ts +1 -8
- package/tencentcloud/services/as/v20180419/as_client.js +0 -9
- package/tencentcloud/services/as/v20180419/as_models.d.ts +28 -83
- package/tencentcloud/services/batch/v20170312/batch_models.d.ts +69 -69
- package/tencentcloud/services/bsca/index.d.ts +6 -0
- package/tencentcloud/services/bsca/index.js +7 -0
- package/tencentcloud/services/bsca/v20210811/bsca_client.d.ts +26 -0
- package/tencentcloud/services/bsca/v20210811/bsca_client.js +55 -0
- package/tencentcloud/services/bsca/v20210811/bsca_models.d.ts +533 -0
- package/tencentcloud/services/bsca/v20210811/bsca_models.js +18 -0
- package/tencentcloud/services/bsca/v20210811/index.d.ts +6 -0
- package/tencentcloud/services/bsca/v20210811/index.js +9 -0
- package/tencentcloud/services/cam/v20190116/cam_client.d.ts +19 -3
- package/tencentcloud/services/cam/v20190116/cam_client.js +27 -3
- package/tencentcloud/services/cam/v20190116/cam_models.d.ts +232 -60
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +6 -2
- package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +2 -2
- package/tencentcloud/services/cdn/v20180606/cdn_client.js +2 -2
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +18 -13
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +2 -2
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +16 -9
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +6 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +1 -1
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +6 -1
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/iotcloud/v20180614/iotcloud_client.d.ts +9 -1
- package/tencentcloud/services/iotcloud/v20180614/iotcloud_client.js +12 -0
- package/tencentcloud/services/iotcloud/v20180614/iotcloud_models.d.ts +72 -0
- package/tencentcloud/services/iotcloud/v20210408/iotcloud_client.d.ts +57 -21
- package/tencentcloud/services/iotcloud/v20210408/iotcloud_client.js +84 -30
- package/tencentcloud/services/iotcloud/v20210408/iotcloud_models.d.ts +497 -77
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.d.ts +1 -1
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.js +1 -1
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +12 -7
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +5 -1
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +6 -0
- package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +47 -0
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +5 -7
- package/tencentcloud/services/ssa/v20180608/ssa_models.d.ts +62 -23
- package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +2 -2
- package/tencentcloud/services/thpc/index.d.ts +4 -0
- package/tencentcloud/services/thpc/index.js +2 -0
- package/tencentcloud/services/thpc/v20211109/thpc_client.d.ts +1 -1
- package/tencentcloud/services/thpc/v20211109/thpc_models.d.ts +79 -12
- package/tencentcloud/services/thpc/v20220401/index.d.ts +6 -0
- package/tencentcloud/services/thpc/v20220401/index.js +9 -0
- package/tencentcloud/services/thpc/v20220401/thpc_client.d.ts +34 -0
- package/tencentcloud/services/thpc/v20220401/thpc_client.js +67 -0
- package/tencentcloud/services/thpc/v20220401/thpc_models.d.ts +671 -0
- package/tencentcloud/services/thpc/v20220401/thpc_models.js +18 -0
- package/tencentcloud/services/tke/v20180525/tke_client.d.ts +19 -3
- package/tencentcloud/services/tke/v20180525/tke_client.js +27 -3
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +337 -100
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +2 -2
- package/tencentcloud/services/wav/v20210129/wav_client.d.ts +51 -27
- package/tencentcloud/services/wav/v20210129/wav_client.js +75 -39
- package/tencentcloud/services/wav/v20210129/wav_models.d.ts +459 -24
- package/test/as.v20180419.test.js +0 -10
- package/test/bsca.v20210811.test.js +61 -0
- package/test/cam.v20190116.test.js +42 -2
- package/test/iotcloud.v20180614.test.js +20 -0
- package/test/iotcloud.v20210408.test.js +110 -20
- package/test/mongodb.v20190725.test.js +10 -0
- package/test/thpc.v20220401.test.js +81 -0
- package/test/tke.v20180525.test.js +42 -2
- package/test/wav.v20210129.test.js +86 -26
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { AbstractClient } from "../../../common/abstract_client"
|
|
19
|
+
import { ClientConfig } from "../../../common/interface"
|
|
20
|
+
import {
|
|
21
|
+
DescribeKBComponentVulnerabilityRequest,
|
|
22
|
+
ComponentVulnerabilityUnion,
|
|
23
|
+
LicenseUnion,
|
|
24
|
+
DescribeKBComponentVulnerabilityResponse,
|
|
25
|
+
LicenseSummary,
|
|
26
|
+
Qualifier,
|
|
27
|
+
CVSSV3Info,
|
|
28
|
+
Component,
|
|
29
|
+
DescribeKBVulnerabilityResponse,
|
|
30
|
+
DescribeKBLicenseResponse,
|
|
31
|
+
VulnerabilityUnion,
|
|
32
|
+
LicenseDetail,
|
|
33
|
+
DescribeKBVulnerabilityRequest,
|
|
34
|
+
VulnerabilityDetail,
|
|
35
|
+
DescribeKBComponentResponse,
|
|
36
|
+
VulnerabilitySummary,
|
|
37
|
+
DescribeKBLicenseRequest,
|
|
38
|
+
CVSSV2Info,
|
|
39
|
+
DescribeKBComponentRequest,
|
|
40
|
+
LicenseRestriction,
|
|
41
|
+
ComponentVulnerabilitySummary,
|
|
42
|
+
PURL,
|
|
43
|
+
} from "./bsca_models"
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* bsca client
|
|
47
|
+
* @class
|
|
48
|
+
*/
|
|
49
|
+
export class Client extends AbstractClient {
|
|
50
|
+
constructor(clientConfig: ClientConfig) {
|
|
51
|
+
super("bsca.tencentcloudapi.com", "2021-08-11", clientConfig)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* 本接口(DescribeKBComponentVulnerability)用于在知识库中查询开源组件的漏洞信息。
|
|
56
|
+
*/
|
|
57
|
+
async DescribeKBComponentVulnerability(
|
|
58
|
+
req: DescribeKBComponentVulnerabilityRequest,
|
|
59
|
+
cb?: (error: string, rep: DescribeKBComponentVulnerabilityResponse) => void
|
|
60
|
+
): Promise<DescribeKBComponentVulnerabilityResponse> {
|
|
61
|
+
return this.request("DescribeKBComponentVulnerability", req, cb)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* 本接口(DescribeKBComponent)用于在知识库中查询开源组件信息。本接口根据用户输入的PURL在知识库中寻找对应的开源组件,其中Name为必填字段。
|
|
66
|
+
*/
|
|
67
|
+
async DescribeKBComponent(
|
|
68
|
+
req: DescribeKBComponentRequest,
|
|
69
|
+
cb?: (error: string, rep: DescribeKBComponentResponse) => void
|
|
70
|
+
): Promise<DescribeKBComponentResponse> {
|
|
71
|
+
return this.request("DescribeKBComponent", req, cb)
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 本接口(DescribeKBLicense)用于在知识库中查询许可证信息。
|
|
76
|
+
*/
|
|
77
|
+
async DescribeKBLicense(
|
|
78
|
+
req: DescribeKBLicenseRequest,
|
|
79
|
+
cb?: (error: string, rep: DescribeKBLicenseResponse) => void
|
|
80
|
+
): Promise<DescribeKBLicenseResponse> {
|
|
81
|
+
return this.request("DescribeKBLicense", req, cb)
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* 本接口(DescribeKBVulnerability)用于在知识库中查询漏洞详细信息,支持根据CVE ID查询或者根据Vul ID查询。
|
|
86
|
+
*/
|
|
87
|
+
async DescribeKBVulnerability(
|
|
88
|
+
req: DescribeKBVulnerabilityRequest,
|
|
89
|
+
cb?: (error: string, rep: DescribeKBVulnerabilityResponse) => void
|
|
90
|
+
): Promise<DescribeKBVulnerabilityResponse> {
|
|
91
|
+
return this.request("DescribeKBVulnerability", req, cb)
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,636 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* DescribeKBComponentVulnerability请求参数结构体
|
|
20
|
+
*/
|
|
21
|
+
export interface DescribeKBComponentVulnerabilityRequest {
|
|
22
|
+
/**
|
|
23
|
+
* 组件的PURL,其中Name和Version为必填字段
|
|
24
|
+
*/
|
|
25
|
+
PURL: PURL
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 描述组件漏洞相关概览信息。
|
|
30
|
+
*/
|
|
31
|
+
export interface ComponentVulnerabilityUnion {
|
|
32
|
+
/**
|
|
33
|
+
* 漏洞概览信息
|
|
34
|
+
*/
|
|
35
|
+
Summary: VulnerabilitySummary
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 与组件相关的漏洞概览信息
|
|
39
|
+
*/
|
|
40
|
+
SummaryInComponent: ComponentVulnerabilitySummary
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 许可证详细信息。
|
|
45
|
+
*/
|
|
46
|
+
export interface LicenseUnion {
|
|
47
|
+
/**
|
|
48
|
+
* 许可证概览信息
|
|
49
|
+
*/
|
|
50
|
+
LicenseSummary: LicenseSummary
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 许可证详细信息
|
|
54
|
+
*/
|
|
55
|
+
LicenseDetail: LicenseDetail
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* DescribeKBComponentVulnerability返回参数结构体
|
|
60
|
+
*/
|
|
61
|
+
export interface DescribeKBComponentVulnerabilityResponse {
|
|
62
|
+
/**
|
|
63
|
+
* 漏洞信息列表
|
|
64
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
65
|
+
*/
|
|
66
|
+
VulnerabilityList: Array<ComponentVulnerabilityUnion>
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
70
|
+
*/
|
|
71
|
+
RequestId?: string
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 描述许可证的概览信息。
|
|
76
|
+
*/
|
|
77
|
+
export interface LicenseSummary {
|
|
78
|
+
/**
|
|
79
|
+
* 许可证标识符
|
|
80
|
+
*/
|
|
81
|
+
Key: string
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* 许可证的SPDX标识符,见 https://spdx.org/licenses/
|
|
85
|
+
*/
|
|
86
|
+
SPDXKey: string
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* 许可证短名称
|
|
90
|
+
*/
|
|
91
|
+
ShortName: string
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* 许可证完整名称
|
|
95
|
+
*/
|
|
96
|
+
Name: string
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* License风险等级
|
|
100
|
+
<li>NotDefined</li>
|
|
101
|
+
<li>LowRisk</li>
|
|
102
|
+
<li>MediumRisk</li>
|
|
103
|
+
<li>HighRisk</li>
|
|
104
|
+
*/
|
|
105
|
+
Risk: string
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* 许可证来源URL
|
|
109
|
+
*/
|
|
110
|
+
Source: string
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* PURL下的Qualifier属性类型,用于定义第三方组件的额外属性,见 https://github.com/package-url/purl-spec。
|
|
115
|
+
*/
|
|
116
|
+
export interface Qualifier {
|
|
117
|
+
/**
|
|
118
|
+
* 额外属性的名称。
|
|
119
|
+
*/
|
|
120
|
+
Key: string
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* 额外属性的值。
|
|
124
|
+
*/
|
|
125
|
+
Value: string
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Cvssv3.0详细信息。
|
|
130
|
+
*/
|
|
131
|
+
export interface CVSSV3Info {
|
|
132
|
+
/**
|
|
133
|
+
* CVE评分。
|
|
134
|
+
*/
|
|
135
|
+
CVSS: number
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* AttackVector 攻击途径。
|
|
139
|
+
取值范围:
|
|
140
|
+
<li>NETWORK 远程</li>
|
|
141
|
+
<li>ADJACENT_NETWORK 近邻</li>
|
|
142
|
+
<li>LOCAL 本地</li>
|
|
143
|
+
<li>PHYSICAL 物理</li>
|
|
144
|
+
*/
|
|
145
|
+
AttackVector: string
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* AttackComplexity 攻击复杂度。
|
|
149
|
+
取值范围:
|
|
150
|
+
<li>HIGH 高</li>
|
|
151
|
+
<li>LOW 低</li>
|
|
152
|
+
*/
|
|
153
|
+
AttackComplexity: string
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* PrivilegesRequired 触发特权。
|
|
157
|
+
取值范围:
|
|
158
|
+
<li>HIGH 高</li>
|
|
159
|
+
<li>LOW 低</li>
|
|
160
|
+
<li>NONE 无</li>
|
|
161
|
+
*/
|
|
162
|
+
PrivilegesRequired: string
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* UserInteraction 交互必要性。
|
|
166
|
+
取值范围:
|
|
167
|
+
<li>NONE 无</li>
|
|
168
|
+
<li>REQUIRED 需要</li>
|
|
169
|
+
*/
|
|
170
|
+
UserInteraction: string
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Scope 绕过安全边界。
|
|
174
|
+
取值范围:
|
|
175
|
+
<li>UNCHANGED 否</li>
|
|
176
|
+
<li>CHANGED 能</li>
|
|
177
|
+
*/
|
|
178
|
+
Scope: string
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* ConfidentialityImpact 机密性影响。
|
|
182
|
+
取值范围:
|
|
183
|
+
<li>NONE 无</li>
|
|
184
|
+
<li>LOW 低</li>
|
|
185
|
+
<li>HIGH 高</li>
|
|
186
|
+
*/
|
|
187
|
+
ConImpact: string
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* IntegrityImpact 完整性影响。
|
|
191
|
+
取值范围:
|
|
192
|
+
<li>NONE 无</li>
|
|
193
|
+
<li>LOW 低</li>
|
|
194
|
+
<li>HIGH 高</li>
|
|
195
|
+
*/
|
|
196
|
+
IntegrityImpact: string
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* AvailabilityImpact 可用性影响。
|
|
200
|
+
取值范围:
|
|
201
|
+
<li>NONE 无</li>
|
|
202
|
+
<li>LOW 低</li>
|
|
203
|
+
<li>HIGH 高</li>
|
|
204
|
+
*/
|
|
205
|
+
AvailabilityImpact: string
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* 描述一个第三方组件的源信息。
|
|
210
|
+
*/
|
|
211
|
+
export interface Component {
|
|
212
|
+
/**
|
|
213
|
+
* 第三方组件的PURL
|
|
214
|
+
*/
|
|
215
|
+
PURL: PURL
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* 第三方组件的主页
|
|
219
|
+
*/
|
|
220
|
+
Homepage: string
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* 第三方组件的简介
|
|
224
|
+
*/
|
|
225
|
+
Summary: string
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* 第三方组件的别名列表
|
|
229
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
230
|
+
*/
|
|
231
|
+
NicknameList: Array<string>
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* 第三方组件的代码位置列表
|
|
235
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
236
|
+
*/
|
|
237
|
+
CodeLocationList: Array<string>
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* 第三方组件的许可证表达式
|
|
241
|
+
*/
|
|
242
|
+
LicenseExpression: string
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* DescribeKBVulnerability返回参数结构体
|
|
247
|
+
*/
|
|
248
|
+
export interface DescribeKBVulnerabilityResponse {
|
|
249
|
+
/**
|
|
250
|
+
* 漏洞详细信息列表
|
|
251
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
252
|
+
*/
|
|
253
|
+
VulnerabilityDetailList: Array<VulnerabilityUnion>
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
257
|
+
*/
|
|
258
|
+
RequestId?: string
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* DescribeKBLicense返回参数结构体
|
|
263
|
+
*/
|
|
264
|
+
export interface DescribeKBLicenseResponse {
|
|
265
|
+
/**
|
|
266
|
+
* 许可证列表
|
|
267
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
268
|
+
*/
|
|
269
|
+
LicenseList: Array<LicenseUnion>
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* 用于匹配的License表达式
|
|
273
|
+
*/
|
|
274
|
+
NormalizedLicenseExpression: string
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
278
|
+
*/
|
|
279
|
+
RequestId?: string
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* 描述漏洞的详细信息。
|
|
284
|
+
*/
|
|
285
|
+
export interface VulnerabilityUnion {
|
|
286
|
+
/**
|
|
287
|
+
* 漏洞概览信息
|
|
288
|
+
*/
|
|
289
|
+
Summary: VulnerabilitySummary
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* 漏洞详细信息
|
|
293
|
+
*/
|
|
294
|
+
Detail: VulnerabilityDetail
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* 描述许可证的详细信息。
|
|
299
|
+
*/
|
|
300
|
+
export interface LicenseDetail {
|
|
301
|
+
/**
|
|
302
|
+
* 许可证内容
|
|
303
|
+
*/
|
|
304
|
+
Content: string
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* 许可证允许信息列表
|
|
308
|
+
*/
|
|
309
|
+
ConditionSet: Array<LicenseRestriction>
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* 许可证要求信息列表
|
|
313
|
+
*/
|
|
314
|
+
ForbiddenSet: Array<LicenseRestriction>
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* 许可证禁止信息列表
|
|
318
|
+
*/
|
|
319
|
+
PermissionSet: Array<LicenseRestriction>
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* DescribeKBVulnerability请求参数结构体
|
|
324
|
+
*/
|
|
325
|
+
export interface DescribeKBVulnerabilityRequest {
|
|
326
|
+
/**
|
|
327
|
+
* CVE ID列表(不能与Vul ID同时存在)
|
|
328
|
+
*/
|
|
329
|
+
CVEID?: Array<string>
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Vul ID列表(不能与CVE ID 同时存在)
|
|
333
|
+
*/
|
|
334
|
+
VulID?: Array<string>
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* 描述漏洞详细信息。
|
|
339
|
+
*/
|
|
340
|
+
export interface VulnerabilityDetail {
|
|
341
|
+
/**
|
|
342
|
+
* 漏洞类别
|
|
343
|
+
*/
|
|
344
|
+
Category: string
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* 漏洞分类
|
|
348
|
+
*/
|
|
349
|
+
CategoryType: string
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* 漏洞描述
|
|
353
|
+
*/
|
|
354
|
+
Description: string
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* 漏洞官方解决方案
|
|
358
|
+
*/
|
|
359
|
+
OfficialSolution: string
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* 漏洞信息参考列表
|
|
363
|
+
*/
|
|
364
|
+
ReferenceList: Array<string>
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* 漏洞防御方案
|
|
368
|
+
*/
|
|
369
|
+
DefenseSolution: string
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* 漏洞CVSSv2信息
|
|
373
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
374
|
+
*/
|
|
375
|
+
CVSSv2Info: CVSSV2Info
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* 漏洞CVSSv3信息
|
|
379
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
380
|
+
*/
|
|
381
|
+
CVSSv3Info: CVSSV3Info
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* 漏洞提交时间
|
|
385
|
+
*/
|
|
386
|
+
SubmitTime: string
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* CWE编号
|
|
390
|
+
*/
|
|
391
|
+
CWEID: string
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* 漏洞CVSSv2向量
|
|
395
|
+
*/
|
|
396
|
+
CVSSv2Vector: string
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* 漏洞CVSSv3向量
|
|
400
|
+
*/
|
|
401
|
+
CVSSv3Vector: string
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* DescribeKBComponent返回参数结构体
|
|
406
|
+
*/
|
|
407
|
+
export interface DescribeKBComponentResponse {
|
|
408
|
+
/**
|
|
409
|
+
* 匹配的组件信息
|
|
410
|
+
*/
|
|
411
|
+
Component: Component
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
415
|
+
*/
|
|
416
|
+
RequestId?: string
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* 描述漏洞的摘要信息。
|
|
421
|
+
*/
|
|
422
|
+
export interface VulnerabilitySummary {
|
|
423
|
+
/**
|
|
424
|
+
* 漏洞ID
|
|
425
|
+
*/
|
|
426
|
+
VulID: string
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* 漏洞所属CVE编号
|
|
430
|
+
*/
|
|
431
|
+
CVEID: string
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* 漏洞所属CNVD编号
|
|
435
|
+
*/
|
|
436
|
+
CNVDID: string
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* 漏洞所属CNNVD编号
|
|
440
|
+
*/
|
|
441
|
+
CNNVDID: string
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* 漏洞名称
|
|
445
|
+
*/
|
|
446
|
+
Name: string
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* 该漏洞是否是需重点关注的漏洞
|
|
450
|
+
*/
|
|
451
|
+
IsSuggest: boolean
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* 漏洞风险等级
|
|
455
|
+
<li>Critical</li>
|
|
456
|
+
<li>High</li>
|
|
457
|
+
<li>Medium</li>
|
|
458
|
+
<li>Low</li>
|
|
459
|
+
*/
|
|
460
|
+
Severity: string
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* DescribeKBLicense请求参数结构体
|
|
465
|
+
*/
|
|
466
|
+
export interface DescribeKBLicenseRequest {
|
|
467
|
+
/**
|
|
468
|
+
* License表达式
|
|
469
|
+
*/
|
|
470
|
+
LicenseExpression?: string
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* CVSSv2.0详细信息。
|
|
475
|
+
*/
|
|
476
|
+
export interface CVSSV2Info {
|
|
477
|
+
/**
|
|
478
|
+
* CVE评分。
|
|
479
|
+
*/
|
|
480
|
+
CVSS: number
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* AccessVector 攻击途径。
|
|
484
|
+
取值范围:
|
|
485
|
+
<li>NETWORK 远程</li>
|
|
486
|
+
<li>ADJACENT_NETWORK 近邻</li>
|
|
487
|
+
<li>LOCAL 本地</li>
|
|
488
|
+
*/
|
|
489
|
+
AccessVector: string
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* AccessComplexity 攻击复杂度。
|
|
493
|
+
取值范围:
|
|
494
|
+
<li>HIGH 高</li>
|
|
495
|
+
<li>MEDIUM 中</li>
|
|
496
|
+
<li>LOW 低</li>
|
|
497
|
+
*/
|
|
498
|
+
AccessComplexity: string
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Authentication 身份验证。
|
|
502
|
+
取值范围:
|
|
503
|
+
<li>MULTIPLE 多系统认证</li>
|
|
504
|
+
<li>SINGLE 单系统认证</li>
|
|
505
|
+
<li>NONE 无</li>
|
|
506
|
+
*/
|
|
507
|
+
Authentication: string
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* ConfidentialityImpact 机密性影响。
|
|
511
|
+
取值范围:
|
|
512
|
+
<li>NONE 无</li>
|
|
513
|
+
<li>PARTIAL 部分</li>
|
|
514
|
+
<li>COMPLETE 完整</li>
|
|
515
|
+
*/
|
|
516
|
+
ConImpact: string
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* IntegrityImpact 完整性影响。
|
|
520
|
+
取值范围:
|
|
521
|
+
<li>NONE 无</li>
|
|
522
|
+
<li>PARTIAL 部分</li>
|
|
523
|
+
<li>COMPLETE 完整</li>
|
|
524
|
+
*/
|
|
525
|
+
IntegrityImpact: string
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* AvailabilityImpact 可用性影响。
|
|
529
|
+
取值范围:
|
|
530
|
+
<li>NONE 无</li>
|
|
531
|
+
<li>PARTIAL 部分</li>
|
|
532
|
+
<li>COMPLETE 完整</li>
|
|
533
|
+
*/
|
|
534
|
+
AvailabilityImpact: string
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* DescribeKBComponent请求参数结构体
|
|
539
|
+
*/
|
|
540
|
+
export interface DescribeKBComponentRequest {
|
|
541
|
+
/**
|
|
542
|
+
* 组件的PURL
|
|
543
|
+
*/
|
|
544
|
+
PURL: PURL
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* License约束信息。
|
|
549
|
+
*/
|
|
550
|
+
export interface LicenseRestriction {
|
|
551
|
+
/**
|
|
552
|
+
* license约束的名称。
|
|
553
|
+
*/
|
|
554
|
+
Name: string
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* license约束的描述。
|
|
558
|
+
*/
|
|
559
|
+
Description: string
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* 与输入组件相关的漏洞信息摘要信息。
|
|
564
|
+
*/
|
|
565
|
+
export interface ComponentVulnerabilitySummary {
|
|
566
|
+
/**
|
|
567
|
+
* 用于匹配漏洞的PURL
|
|
568
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
569
|
+
*/
|
|
570
|
+
PURL: PURL
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* 该组件是否包含修复漏洞的官方补丁
|
|
574
|
+
*/
|
|
575
|
+
CanBeFixed: boolean
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* 修复漏洞的组件版本号
|
|
579
|
+
*/
|
|
580
|
+
FixedVersion: string
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* 漏洞影响的组件版本号
|
|
584
|
+
*/
|
|
585
|
+
AffectedVersion: string
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* 漏洞影响组件
|
|
589
|
+
*/
|
|
590
|
+
AffectedComponent: string
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* 漏洞在该产品中的风险等级
|
|
594
|
+
<li>Critical</li>
|
|
595
|
+
<li>High</li>
|
|
596
|
+
<li>Medium</li>
|
|
597
|
+
<li>Low</li>
|
|
598
|
+
*/
|
|
599
|
+
RiskLevel: string
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* PURL(Package URL)用于定位一个产品或组件,见 https://github.com/package-url/purl-spec。
|
|
604
|
+
*/
|
|
605
|
+
export interface PURL {
|
|
606
|
+
/**
|
|
607
|
+
* 组件名称
|
|
608
|
+
*/
|
|
609
|
+
Name: string
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* 组件所属的类型,如:github, gitlab, generic, deb, rpm, maven 等
|
|
613
|
+
*/
|
|
614
|
+
Protocol?: string
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* 组件名的前缀名,如github和gitlab的用户名,deb的操作系统,maven包的group id等
|
|
618
|
+
*/
|
|
619
|
+
Namespace?: string
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* 修饰组件的额外属性
|
|
623
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
624
|
+
*/
|
|
625
|
+
Qualifiers?: Array<Qualifier>
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* 相对于组件包根位置的子目录
|
|
629
|
+
*/
|
|
630
|
+
Subpath?: string
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* 组件版本号
|
|
634
|
+
*/
|
|
635
|
+
Version?: string
|
|
636
|
+
}
|