@buildinternet/releases-api-types 0.24.0 → 0.25.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.24.0",
3
+ "version": "0.25.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,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { KIND_VALUES } from "@buildinternet/releases-core/kinds";
3
- import { MediaItemSchema, ReleaseTypeSchema } from "./shared.js";
3
+ import { AppStoreSourceInfoSchema, MediaItemSchema, ReleaseTypeSchema } from "./shared.js";
4
4
  import { SourceTypeSchema } from "./sources.js";
5
5
  import { LookupStatusSchema } from "./lookups.js";
6
6
 
@@ -66,6 +66,11 @@ export const SearchReleaseHitSchema = z.object({
66
66
  // without re-validating; legacy rows occasionally drift from the
67
67
  // canonical four-value set. Used by the web byline icon.
68
68
  sourceType: z.string().optional(),
69
+ /**
70
+ * App Store platform + icon for `type: "appstore"` sources, null/absent
71
+ * otherwise. Powers the compact app-update treatment on the search card. #1206
72
+ */
73
+ appStore: AppStoreSourceInfoSchema.nullable().optional(),
69
74
  orgSlug: z.string().nullable(),
70
75
  orgName: z.string().nullable().optional(),
71
76
  /** Owning product slug — present when the source belongs to a product. Lets