@buildinternet/releases-api-types 0.9.0 → 0.10.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/api-types.ts +16 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildinternet/releases-api-types",
3
- "version": "0.9.0",
3
+ "version": "0.10.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",
package/src/api-types.ts CHANGED
@@ -133,6 +133,7 @@ export interface SitemapPayload {
133
133
  orgs: Array<{ slug: string; lastActivity: string | null }>;
134
134
  sources: Array<{ orgSlug: string; slug: string; latestDate: string | null }>;
135
135
  products: Array<{ orgSlug: string; slug: string }>;
136
+ collections: Array<{ slug: string; updatedAt: string }>;
136
137
  }
137
138
 
138
139
  // ── Organizations ──
@@ -703,6 +704,21 @@ export interface CollectionDetail {
703
704
  orgs: CollectionMemberOrg[];
704
705
  }
705
706
 
707
+ /**
708
+ * Cross-org release feed row. Same shape as `OrgReleaseItem` plus the origin
709
+ * `org` block, so the web's release card can render it identically — full
710
+ * `content` lets "Show more" expand to the body instead of the truncated
711
+ * `summary`.
712
+ */
713
+ export interface CollectionReleaseItem extends OrgReleaseItem {
714
+ org: { slug: string; name: string };
715
+ }
716
+
717
+ export interface CollectionReleasesResponse {
718
+ releases: CollectionReleaseItem[];
719
+ pagination: { nextCursor: string | null; limit: number };
720
+ }
721
+
706
722
  /** Body for POST /v1/collections. `slug` derives from `name` via toSlug() if omitted. */
707
723
  export interface CreateCollectionRequest {
708
724
  slug?: string;