@buildinternet/releases-api-types 0.47.0 → 0.48.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.47.0",
3
+ "version": "0.48.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",
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { ReleaseItemSchema } from "./shared.js";
2
+ import { ImportanceScoreSchema, ReleaseItemSchema } from "./shared.js";
3
3
 
4
4
  /**
5
5
  * One org as it appears inside a collection's preview list or detail page.
@@ -275,6 +275,12 @@ export const DigestCoveredReleaseSchema = z.object({
275
275
  title: z.string(),
276
276
  path: z.string(),
277
277
  org: z.object({ slug: z.string(), name: z.string() }),
278
+ /**
279
+ * AI-scored importance 1–5. Null when unscored; optional for older
280
+ * servers. Cheap to project on the existing hydrate — powers the flame
281
+ * marker on the collapsed "Releases covered" list.
282
+ */
283
+ importance: ImportanceScoreSchema,
278
284
  });
279
285
 
280
286
  /** Full row returned by `GET /v1/collections/:slug/digests/:weekStart`. */
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { ImportanceScoreSchema } from "./shared.js";
2
3
 
3
4
  /**
4
5
  * Anchor scope for related-* lookups. `org` filters the Vectorize query by
@@ -38,6 +39,11 @@ export const RelatedReleaseItemSchema = z.object({
38
39
  summary: z.string(),
39
40
  titleGenerated: z.string().nullable(),
40
41
  titleShort: z.string().nullable(),
42
+ /**
43
+ * AI-scored importance 1–5 (5=landmark, 1=housekeeping). Null when
44
+ * unscored; optional for older servers / mid-deploy pin tolerance.
45
+ */
46
+ importance: ImportanceScoreSchema,
41
47
  thumbnail: RelatedReleaseThumbnailSchema.nullable(),
42
48
  score: z.number(),
43
49
  source: RelatedReleaseSourceSchema,
@@ -2,6 +2,7 @@ import { z } from "zod";
2
2
  import { KIND_VALUES } from "@buildinternet/releases-core/kinds";
3
3
  import {
4
4
  AppStoreSourceInfoSchema,
5
+ ImportanceScoreSchema,
5
6
  MediaItemSchema,
6
7
  OrgStatusSchema,
7
8
  ReleaseThumbnailSchema,
@@ -109,6 +110,11 @@ export const SearchReleaseHitSchema = z.object({
109
110
  summary: z.string(),
110
111
  titleGenerated: z.string().nullable().optional(),
111
112
  titleShort: z.string().nullable().optional(),
113
+ /**
114
+ * AI-scored importance 1–5 (5=landmark, 1=housekeeping). Null when
115
+ * unscored; optional for older servers / mid-deploy pin tolerance.
116
+ */
117
+ importance: ImportanceScoreSchema,
112
118
  /**
113
119
  * Full markdown body. Omitted on list hits by default (summary + media
114
120
  * cover the card/snippet surfaces). Opt in with `?include_content=true`