@buildinternet/releases-api-types 0.26.0 → 0.27.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.26.0",
3
+ "version": "0.27.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",
@@ -112,6 +112,8 @@ export const UpdateOrgBodySchema = z.object({
112
112
  autoGenerateContent: z.boolean().optional(),
113
113
  /** Admin-only: promote this org on the home-page featured rail. */
114
114
  featured: z.boolean().optional(),
115
+ /** Admin-only: promote or demote the org's discovery status (curated/agent/on_demand). */
116
+ discovery: z.enum(["curated", "agent", "on_demand"]).optional(),
115
117
  });
116
118
 
117
119
  // Org detail's products query selects a strict subset of `ProductListItem` —
@@ -246,6 +246,8 @@ export const SourcePatchInputSchema = z.object({
246
246
  changeDetectedAt: z.string().nullable().optional(),
247
247
  lastPolledAt: z.string().nullable().optional(),
248
248
  kind: z.enum(KIND_VALUES).nullable().optional(),
249
+ /** Admin-only: promote or demote the source's discovery status (curated/agent/on_demand). */
250
+ discovery: SourceDiscoverySchema.optional(),
249
251
  });
250
252
 
251
253
  /** Body accepted by `POST /v1/sources`. */