@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.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/video-analysis.test.ts +17 -0
- package/src/video-analysis.ts +10 -0
package/dist/index.cjs
CHANGED
|
@@ -12144,7 +12144,17 @@ var videoAnalysisResultSchema = zod.z.object({
|
|
|
12144
12144
|
language: zod.z.string().optional()
|
|
12145
12145
|
}),
|
|
12146
12146
|
slots: zod.z.array(entitySlotSchema),
|
|
12147
|
-
scenes: zod.z.array(analyzedSceneSchema).min(1)
|
|
12147
|
+
scenes: zod.z.array(analyzedSceneSchema).min(1),
|
|
12148
|
+
/** CAST VARIATIONS (§4 cap handling): looks the analyzer's merge FOLDED into
|
|
12149
|
+
* the default at VIDEO_ANALYSIS_MAX_VARIATIONS — recorded, never silent. In
|
|
12150
|
+
* the wire schema so strip-mode consumers (the recast client's validated
|
|
12151
|
+
* blueprint view) keep it: the §6 "folded into default look" note is the
|
|
12152
|
+
* user's only pre-pay defense against a wrong split. */
|
|
12153
|
+
variationFolds: zod.z.array(zod.z.object({
|
|
12154
|
+
slotId: zod.z.string(),
|
|
12155
|
+
variationId: zod.z.string(),
|
|
12156
|
+
label: zod.z.string()
|
|
12157
|
+
})).optional()
|
|
12148
12158
|
});
|
|
12149
12159
|
function deriveSlotRefs(visual) {
|
|
12150
12160
|
const out = [];
|