@nodaro/shared 2.11.0 → 2.12.1
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 +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -1
- package/dist/index.d.ts +52 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/video-analysis-shot-craft.test.ts +38 -0
- package/src/i18n/framing.ar.ts +0 -1
- package/src/i18n/framing.de.ts +0 -1
- package/src/i18n/framing.es.ts +0 -1
- package/src/i18n/framing.fr.ts +0 -1
- package/src/i18n/framing.he.ts +0 -1
- package/src/i18n/framing.hi.ts +0 -1
- package/src/i18n/framing.ja.ts +0 -1
- package/src/i18n/framing.ko.ts +0 -1
- package/src/i18n/framing.pt-BR.ts +0 -1
- package/src/i18n/framing.ru.ts +0 -1
- package/src/i18n/framing.zh-CN.ts +0 -1
- package/src/video-analysis.ts +21 -0
package/dist/index.cjs
CHANGED
|
@@ -13027,6 +13027,8 @@ var VIDEO_ANALYSIS_VISUAL_EFFECTS = [
|
|
|
13027
13027
|
"double-exposure"
|
|
13028
13028
|
];
|
|
13029
13029
|
var VIDEO_ANALYSIS_TRANSITIONS = ["cut", "fade", "dissolve", "wipe", "whip"];
|
|
13030
|
+
var VIDEO_ANALYSIS_TEXT_KINDS = ["title", "caption", "lower-third", "subtitle", "logo", "other"];
|
|
13031
|
+
var VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN = ["fade"];
|
|
13030
13032
|
var VIDEO_ANALYSIS_SPEED_EFFECTS = ["slow-motion", "ramp-in", "ramp-out", "timelapse", "freeze", "reverse"];
|
|
13031
13033
|
var VIDEO_ANALYSIS_TIMES_OF_DAY = ["dawn", "day", "dusk", "night", "ambiguous"];
|
|
13032
13034
|
var VIDEO_ANALYSIS_STORY_JUMPS = ["continuous", "same-day", "another-day", "years-later", "unclear"];
|
|
@@ -13173,6 +13175,8 @@ var windowSceneBase = zod.z.object({
|
|
|
13173
13175
|
* earlier scene's speech means the shot is replayed footage under a voice-over.
|
|
13174
13176
|
*/
|
|
13175
13177
|
onScreenText: zod.z.string().optional(),
|
|
13178
|
+
/** What the on-screen text IS. Meaningful only when `onScreenText` is non-empty. */
|
|
13179
|
+
onScreenTextKind: zod.z.enum(VIDEO_ANALYSIS_TEXT_KINDS).optional(),
|
|
13176
13180
|
/** Effects on this shot's PICTURE. Absent ⇒ a clean image. */
|
|
13177
13181
|
effects: zod.z.array(zod.z.enum(VIDEO_ANALYSIS_VISUAL_EFFECTS)).optional(),
|
|
13178
13182
|
transitionOut: zod.z.enum(VIDEO_ANALYSIS_TRANSITIONS).optional(),
|
|
@@ -13190,6 +13194,8 @@ var windowAnalysisSchema = zod.z.object({
|
|
|
13190
13194
|
/** The clip-level look as read from THIS window. Merge folds the windows
|
|
13191
13195
|
* field-by-field (first non-empty wins), like `language`. */
|
|
13192
13196
|
look: clipLookSchema.optional(),
|
|
13197
|
+
/** The clip opens with a fade-in. Folded from window 0 only. */
|
|
13198
|
+
transitionIn: zod.z.enum(VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN).optional(),
|
|
13193
13199
|
slots: zod.z.array(entitySlotSchema),
|
|
13194
13200
|
scenes: zod.z.array(windowSceneSchema)
|
|
13195
13201
|
});
|
|
@@ -13212,6 +13218,8 @@ var videoAnalysisResultSchema = zod.z.object({
|
|
|
13212
13218
|
* rather than a member: `meta` is probed fact (ffprobe dimensions, probed
|
|
13213
13219
|
* duration), while this is the model's reading of the photography. */
|
|
13214
13220
|
look: clipLookSchema.optional(),
|
|
13221
|
+
/** The clip opens with a fade-in. Folded from window 0 only. */
|
|
13222
|
+
transitionIn: zod.z.enum(VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN).optional(),
|
|
13215
13223
|
slots: zod.z.array(entitySlotSchema),
|
|
13216
13224
|
scenes: zod.z.array(analyzedSceneSchema).min(1),
|
|
13217
13225
|
/** CAST VARIATIONS (§4 cap handling): looks the analyzer's merge FOLDED into
|
|
@@ -14013,6 +14021,7 @@ exports.VEHICLE_SUBCATEGORY_LABELS = VEHICLE_SUBCATEGORY_LABELS;
|
|
|
14013
14021
|
exports.VEHICLE_SUBCATEGORY_ORDER = VEHICLE_SUBCATEGORY_ORDER;
|
|
14014
14022
|
exports.VEO_PROVIDERS = VEO_PROVIDERS;
|
|
14015
14023
|
exports.VIDEO_ANALYSIS_BUCKET_CREDITS = VIDEO_ANALYSIS_BUCKET_CREDITS;
|
|
14024
|
+
exports.VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN = VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN;
|
|
14016
14025
|
exports.VIDEO_ANALYSIS_DEFAULT_VARIATION = VIDEO_ANALYSIS_DEFAULT_VARIATION;
|
|
14017
14026
|
exports.VIDEO_ANALYSIS_DURATION_BUCKETS = VIDEO_ANALYSIS_DURATION_BUCKETS;
|
|
14018
14027
|
exports.VIDEO_ANALYSIS_DURATION_TOLERANCE_SEC = VIDEO_ANALYSIS_DURATION_TOLERANCE_SEC;
|
|
@@ -14027,6 +14036,7 @@ exports.VIDEO_ANALYSIS_MIXED_TIERS = VIDEO_ANALYSIS_MIXED_TIERS;
|
|
|
14027
14036
|
exports.VIDEO_ANALYSIS_SHOT_ANGLES = VIDEO_ANALYSIS_SHOT_ANGLES;
|
|
14028
14037
|
exports.VIDEO_ANALYSIS_SPEED_EFFECTS = VIDEO_ANALYSIS_SPEED_EFFECTS;
|
|
14029
14038
|
exports.VIDEO_ANALYSIS_STORY_JUMPS = VIDEO_ANALYSIS_STORY_JUMPS;
|
|
14039
|
+
exports.VIDEO_ANALYSIS_TEXT_KINDS = VIDEO_ANALYSIS_TEXT_KINDS;
|
|
14030
14040
|
exports.VIDEO_ANALYSIS_TIERS = VIDEO_ANALYSIS_TIERS;
|
|
14031
14041
|
exports.VIDEO_ANALYSIS_TIER_LABELS = VIDEO_ANALYSIS_TIER_LABELS;
|
|
14032
14042
|
exports.VIDEO_ANALYSIS_TIER_ORDER = VIDEO_ANALYSIS_TIER_ORDER;
|