@buildinternet/releases-api-types 0.58.2 → 0.58.3

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.58.2",
3
+ "version": "0.58.3",
4
4
  "description": "Wire protocol — request/response types for the Releases Index API. Shared by web, workers, and clients.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -35,9 +35,34 @@ export const SitemapSourceSchema = z.object({
35
35
  * excluded.
36
36
  */
37
37
  export const SitemapPayloadSchema = z.object({
38
- orgs: z.array(z.object({ slug: z.string(), lastActivity: z.string().nullable() })),
38
+ orgs: z.array(
39
+ z.object({
40
+ slug: z.string(),
41
+ lastActivity: z.string().nullable(),
42
+ /**
43
+ * Total releases across the org's sources — the same count org detail
44
+ * reports as `releaseCount`. With `hasOverview`, drives the web's index
45
+ * bar for the org and its products/sources. `.optional()` for backwards
46
+ * compatibility with older cached responses.
47
+ */
48
+ releaseCount: z.number().int().optional(),
49
+ /** Whether the org has a generated overview page. */
50
+ hasOverview: z.boolean().optional(),
51
+ }),
52
+ ),
39
53
  sources: z.array(SitemapSourceSchema),
40
- products: z.array(z.object({ orgSlug: z.string(), slug: z.string() })),
54
+ products: z.array(
55
+ z.object({
56
+ orgSlug: z.string(),
57
+ slug: z.string(),
58
+ /**
59
+ * Visible releases across the product's visible sources — the same count
60
+ * org detail reports per product. Drives the web's product index bar.
61
+ * `.optional()` for backwards compatibility with older cached responses.
62
+ */
63
+ releaseCount: z.number().int().optional(),
64
+ }),
65
+ ),
41
66
  collections: z.array(z.object({ slug: z.string(), updatedAt: z.string() })),
42
67
  /**
43
68
  * Weekly collection digest permalinks (`/collections/:slug/digest/:week`),