securewithtrace 0.13.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/README.md CHANGED
@@ -142,7 +142,7 @@ Flags:
142
142
  Supported filter values:
143
143
 
144
144
  - `--severity`: `CRITICAL`, `HIGH`, `MEDIUM`, `LOW`
145
- - `--status`: `OPEN`, `IN_PROGRESS`, `FIXED`, `IGNORED`, `FALSE_POSITIVE`
145
+ - `--status`: `OPEN`, `IN_PROGRESS`, `FIXED`, `ARCHIVED`, `FALSE_POSITIVE`
146
146
 
147
147
  Repository filter options:
148
148
 
package/dist/index.js CHANGED
@@ -23781,7 +23781,7 @@ var VulnerabilityStatusValues = [
23781
23781
  "OPEN",
23782
23782
  "IN_PROGRESS",
23783
23783
  "FIXED",
23784
- "IGNORED",
23784
+ "ARCHIVED",
23785
23785
  "FALSE_POSITIVE",
23786
23786
  "DISMISSED"
23787
23787
  ];
@@ -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",
@@ -24543,7 +24572,7 @@ var PrVulnerabilitySummarySchema = external_exports.object({
24543
24572
  byStatus: external_exports.object({
24544
24573
  open: external_exports.number(),
24545
24574
  falsePositive: external_exports.number(),
24546
- acceptedRisk: external_exports.number(),
24575
+ archived: external_exports.number(),
24547
24576
  fixed: external_exports.number()
24548
24577
  })
24549
24578
  });
@@ -26601,7 +26630,7 @@ function createListCommand3() {
26601
26630
  (value) => value.toUpperCase()
26602
26631
  ).option(
26603
26632
  "--status <status>",
26604
- "Filter by status (OPEN, IN_PROGRESS, FIXED, IGNORED, FALSE_POSITIVE)",
26633
+ "Filter by status (OPEN, IN_PROGRESS, FIXED, ARCHIVED, FALSE_POSITIVE)",
26605
26634
  (value) => value.toUpperCase()
26606
26635
  ).option(
26607
26636
  "-L, --limit <n>",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "securewithtrace",
3
- "version": "0.13.0",
3
+ "version": "0.14.1",
4
4
  "description": "Official Trace CLI for vulnerability intelligence in your terminal",
5
5
  "type": "module",
6
6
  "bin": {