@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 +1 -1
- package/src/schemas/orgs.ts +2 -0
- package/src/schemas/sources.ts +2 -0
package/package.json
CHANGED
package/src/schemas/orgs.ts
CHANGED
|
@@ -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` —
|
package/src/schemas/sources.ts
CHANGED
|
@@ -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`. */
|