@buildinternet/releases-api-types 0.41.0 → 0.42.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.41.0",
3
+ "version": "0.42.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",
@@ -37,6 +37,13 @@ export const OrgListItemSchema = z.object({
37
37
  recentReleaseCount: z.number().int().min(0),
38
38
  lastActivity: z.string().nullable(),
39
39
  topProducts: z.array(z.string()),
40
+ /**
41
+ * Org-level alternate domains (`domain_aliases`, product-scoped aliases
42
+ * excluded), sorted. Surfaced next to the primary `domain` in catalog rows so
43
+ * a self-declared name reads against every domain the org actually controls.
44
+ * Optional for mid-deploy tolerance; absent ⇒ treat as none.
45
+ */
46
+ aliasDomains: z.array(z.string()).optional(),
40
47
  sparkline: z.array(z.number().int().min(0)).length(30),
41
48
  /**
42
49
  * Additive, admin-only field (#1947 phase 2). Only populated on the
@@ -3,6 +3,7 @@ import { KIND_VALUES } from "@buildinternet/releases-core/kinds";
3
3
  import {
4
4
  AppStoreSourceInfoSchema,
5
5
  MediaItemSchema,
6
+ OrgStatusSchema,
6
7
  ReleaseTypeSchema,
7
8
  VideoSourceInfoSchema,
8
9
  } from "./shared.js";
@@ -27,6 +28,17 @@ export const SearchOrgHitSchema = z.object({
27
28
  domain: z.string().nullable(),
28
29
  avatarUrl: z.string().nullable(),
29
30
  category: z.string().nullable(),
31
+ /**
32
+ * Org tier (#1947/#2034). Optional for mid-deploy tolerance; absent ⇒
33
+ * `"tracked"`. Lets search render the icon-only stub marker (#2031 parity).
34
+ */
35
+ status: OrgStatusSchema.optional(),
36
+ /**
37
+ * Org-level alternate domains (product-scoped aliases excluded, sorted),
38
+ * for the `+N` hover on the origin domain — the anti-impersonation anchor
39
+ * mirrored from the catalog row (#2031/#2034). Optional; absent ⇒ none.
40
+ */
41
+ aliasDomains: z.array(z.string()).optional(),
30
42
  });
31
43
 
32
44
  /**