securewithtrace 0.14.0 → 0.14.1
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/dist/index.js +29 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23945,6 +23945,21 @@ var UpdateVulnerabilityRequestSchema = external_exports.object({
|
|
|
23945
23945
|
statusReason: external_exports.string().optional(),
|
|
23946
23946
|
dismissReason: DismissReason.optional()
|
|
23947
23947
|
});
|
|
23948
|
+
var BulkUpdateVulnerabilitiesRequestSchema = external_exports.object({
|
|
23949
|
+
vulnerabilityIds: external_exports.array(external_exports.uuid()).min(1).max(500),
|
|
23950
|
+
status: VulnerabilityStatus,
|
|
23951
|
+
statusReason: external_exports.string().optional(),
|
|
23952
|
+
dismissReason: DismissReason.optional()
|
|
23953
|
+
});
|
|
23954
|
+
var BulkUpdateVulnerabilitiesResponseSchema = external_exports.object({
|
|
23955
|
+
succeeded: external_exports.array(external_exports.uuid()),
|
|
23956
|
+
failed: external_exports.array(
|
|
23957
|
+
external_exports.object({
|
|
23958
|
+
vulnerabilityId: external_exports.uuid(),
|
|
23959
|
+
error: external_exports.string()
|
|
23960
|
+
})
|
|
23961
|
+
)
|
|
23962
|
+
});
|
|
23948
23963
|
|
|
23949
23964
|
// ../../packages/api-contracts/src/contracts/v1/vulnerability.ts
|
|
23950
23965
|
var c16 = initContract();
|
|
@@ -24013,6 +24028,20 @@ var vulnerabilityContract = c16.router({
|
|
|
24013
24028
|
500: ErrorResponseSchema
|
|
24014
24029
|
}
|
|
24015
24030
|
},
|
|
24031
|
+
bulkUpdateVulnerabilities: {
|
|
24032
|
+
method: "PATCH",
|
|
24033
|
+
path: "/organizations/:organizationId/vulnerabilities/bulk",
|
|
24034
|
+
pathParams: OrgIdParamsSchema,
|
|
24035
|
+
body: BulkUpdateVulnerabilitiesRequestSchema,
|
|
24036
|
+
responses: {
|
|
24037
|
+
200: BulkUpdateVulnerabilitiesResponseSchema,
|
|
24038
|
+
400: ErrorResponseSchema,
|
|
24039
|
+
401: ErrorResponseSchema,
|
|
24040
|
+
403: ErrorResponseSchema,
|
|
24041
|
+
404: ErrorResponseSchema,
|
|
24042
|
+
500: ErrorResponseSchema
|
|
24043
|
+
}
|
|
24044
|
+
},
|
|
24016
24045
|
deleteVulnerability: {
|
|
24017
24046
|
method: "DELETE",
|
|
24018
24047
|
path: "/organizations/:organizationId/vulnerabilities/:vulnerabilityId",
|