@nodaro/shared 1.14.0 → 1.15.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/dist/index.d.cts CHANGED
@@ -8725,6 +8725,11 @@ declare const videoAnalysisResultSchema: z.ZodObject<{
8725
8725
  oversized: z.ZodOptional<z.ZodBoolean>;
8726
8726
  slotRefs: z.ZodArray<z.ZodString>;
8727
8727
  }, z.core.$strip>>;
8728
+ variationFolds: z.ZodOptional<z.ZodArray<z.ZodObject<{
8729
+ slotId: z.ZodString;
8730
+ variationId: z.ZodString;
8731
+ label: z.ZodString;
8732
+ }, z.core.$strip>>>;
8728
8733
  }, z.core.$strip>;
8729
8734
  type VideoAnalysisResult = z.infer<typeof videoAnalysisResultSchema>;
8730
8735
  declare function deriveSlotRefs(visual: string): string[];
package/dist/index.d.ts CHANGED
@@ -8725,6 +8725,11 @@ declare const videoAnalysisResultSchema: z.ZodObject<{
8725
8725
  oversized: z.ZodOptional<z.ZodBoolean>;
8726
8726
  slotRefs: z.ZodArray<z.ZodString>;
8727
8727
  }, z.core.$strip>>;
8728
+ variationFolds: z.ZodOptional<z.ZodArray<z.ZodObject<{
8729
+ slotId: z.ZodString;
8730
+ variationId: z.ZodString;
8731
+ label: z.ZodString;
8732
+ }, z.core.$strip>>>;
8728
8733
  }, z.core.$strip>;
8729
8734
  type VideoAnalysisResult = z.infer<typeof videoAnalysisResultSchema>;
8730
8735
  declare function deriveSlotRefs(visual: string): string[];
package/dist/index.js CHANGED
@@ -12142,7 +12142,17 @@ var videoAnalysisResultSchema = z.object({
12142
12142
  language: z.string().optional()
12143
12143
  }),
12144
12144
  slots: z.array(entitySlotSchema),
12145
- scenes: z.array(analyzedSceneSchema).min(1)
12145
+ scenes: z.array(analyzedSceneSchema).min(1),
12146
+ /** CAST VARIATIONS (§4 cap handling): looks the analyzer's merge FOLDED into
12147
+ * the default at VIDEO_ANALYSIS_MAX_VARIATIONS — recorded, never silent. In
12148
+ * the wire schema so strip-mode consumers (the recast client's validated
12149
+ * blueprint view) keep it: the §6 "folded into default look" note is the
12150
+ * user's only pre-pay defense against a wrong split. */
12151
+ variationFolds: z.array(z.object({
12152
+ slotId: z.string(),
12153
+ variationId: z.string(),
12154
+ label: z.string()
12155
+ })).optional()
12146
12156
  });
12147
12157
  function deriveSlotRefs(visual) {
12148
12158
  const out = [];