feedkeeper 0.36.2 → 0.36.4

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.
@@ -69,15 +69,15 @@ function writeEdition(userId, itemIds, source, expiry, now, title = null, summar
69
69
  return serialize(storedEdition(userId));
70
70
  }
71
71
  export const publishEditionFields = {
72
- itemIds: z.array(z.number().int().positive()).min(1).max(24),
73
- expiresAt: z.string().datetime({ offset: true }).optional(),
74
- durationHours: z.number().positive().max(168).optional(),
75
- expectedRevision: z.number().int().min(0).optional(),
76
- requestId: z.uuid().optional(),
77
- title: z.string().trim().min(1).max(200).optional(),
78
- summary: z.string().trim().min(1).max(2000).optional(),
79
- overview: overviewSchema.optional(),
80
- layout: editionLayoutSchema.optional(),
72
+ itemIds: z.array(z.number().int().positive()).min(1).max(24).describe("Ordered list of 1 to 24 article IDs to include in this edition"),
73
+ expiresAt: z.string().datetime({ offset: true }).optional().describe("ISO datetime when this edition expires and a new issue is due (max 7 days)"),
74
+ durationHours: z.number().positive().max(168).optional().describe("Duration in hours until this edition expires (1 to 168 hours, default: 24)"),
75
+ expectedRevision: z.number().int().min(0).optional().describe("The revision from get_edition to ensure optimistic concurrency and avoid conflicts"),
76
+ requestId: z.uuid().optional().describe("Idempotency key (UUID v4) to safely retry publication without duplicate processing"),
77
+ title: z.string().trim().min(1).max(200).optional().describe("Optional editorial headline for this edition (e.g. 'Monday Morning Briefing')"),
78
+ summary: z.string().trim().min(1).max(2000).optional().describe("Optional editorial summary or introduction text for the edition"),
79
+ overview: overviewSchema.optional().describe("Optional structured briefing sections grouping items with editorial commentary"),
80
+ layout: editionLayoutSchema.optional().describe("Optional visual layout specification (character and editorial blocks)"),
81
81
  };
82
82
  const publishSchema = z.object(publishEditionFields).strict().refine((input) => !(input.expiresAt && input.durationHours), "Use expiresAt or durationHours, not both");
83
83
  /** Legacy ensure requests read the latest publication; they never select or publish articles. */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedkeeper/server",
3
- "version": "0.36.2",
3
+ "version": "0.36.4",
4
4
  "private": true,
5
5
  "type": "module"
6
6
  }