@buildinternet/releases-api-types 0.17.0 → 0.18.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildinternet/releases-api-types",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "Wire protocol — request/response types for the Releases registry API. Shared by web, workers, and clients.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -31,6 +31,7 @@ export const ReleaseLatestItemSchema = z.object({
31
31
  url: z.string().nullable(),
32
32
  media: z.array(MediaItemSchema),
33
33
  source: ReleaseLatestSourceSchema,
34
+ coverageCount: z.number().int().min(0).optional(),
34
35
  });
35
36
 
36
37
  export const ReleaseLatestResponseSchema = z.object({
@@ -77,6 +77,7 @@ export const SearchReleaseHitSchema = z.object({
77
77
  // Hybrid fusion score; absent on pure-lexical results.
78
78
  score: z.number().optional(),
79
79
  type: ReleaseTypeSchema.optional(),
80
+ coverageCount: z.number().int().min(0).optional(),
80
81
  });
81
82
 
82
83
  /**
@@ -69,6 +69,11 @@ export const ReleaseItemSchema = z.object({
69
69
  // `.optional()` for the same mid-deploy / pinned-worker reason as `type`.
70
70
  titleGenerated: z.string().nullable().optional(),
71
71
  titleShort: z.string().nullable().optional(),
72
+ // Count of demoted siblings rolling up into this row via `release_coverage`
73
+ // (0 when standalone). Lets list views show a cluster indicator without a
74
+ // detail-page round trip. `.optional()` — older API responses and pinned
75
+ // workers omit the field; treat undefined as 0.
76
+ coverageCount: z.number().int().min(0).optional(),
72
77
  });
73
78
 
74
79
  export const ReleaseSummaryItemSchema = z.object({