@clipwright/core 0.60.0 → 0.62.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/account-actors.d.ts +0 -43
- package/dist/account-actors.js +0 -55
- package/dist/account.d.ts +0 -6
- package/dist/account.js +0 -18
- package/dist/actor-bounds.d.ts +0 -5
- package/dist/actor-bounds.js +0 -6
- package/dist/actor-qualities.d.ts +0 -3
- package/dist/actor-qualities.js +0 -4
- package/dist/actors.d.ts +0 -16
- package/dist/actors.js +0 -21
- package/dist/ad-guide.d.ts +27 -0
- package/dist/ad-guide.js +7 -2
- package/dist/ad-ids.d.ts +3 -0
- package/dist/ad-ids.js +4 -0
- package/dist/ad-pause-trim.d.ts +0 -5
- package/dist/ad-pause-trim.js +0 -8
- package/dist/ads.d.ts +145 -0
- package/dist/ads.js +56 -0
- package/dist/api-failure.d.ts +6 -44
- package/dist/api-failure.js +16 -67
- package/dist/aspect.d.ts +0 -29
- package/dist/aspect.js +1 -34
- package/dist/asset-identity.d.ts +0 -2
- package/dist/asset-identity.js +0 -3
- package/dist/assets.d.ts +0 -34
- package/dist/assets.js +0 -42
- package/dist/billing-terms.d.ts +0 -3
- package/dist/billing-terms.js +0 -4
- package/dist/brand-styles.d.ts +0 -6
- package/dist/brand-styles.js +0 -13
- package/dist/broll-policy.js +0 -1
- package/dist/canvas-fit.d.ts +0 -2
- package/dist/canvas-fit.js +0 -4
- package/dist/caption-funnel.d.ts +0 -2
- package/dist/caption-funnel.js +0 -15
- package/dist/caption-geometry.d.ts +0 -6
- package/dist/caption-geometry.js +0 -10
- package/dist/caption-language.d.ts +0 -3
- package/dist/caption-language.js +0 -6
- package/dist/contract-dispositions.d.ts +0 -61
- package/dist/contract-dispositions.js +3 -96
- package/dist/contracts/v1/workflow-brief.d.ts +57 -3
- package/dist/contracts/v1/workflow-brief.js +0 -13
- package/dist/contracts/v1/workflow-catalog.d.ts +114 -0
- package/dist/contracts/v1/workflow-catalog.js +0 -3
- package/dist/contracts/v1/workflow-client.d.ts +114 -0
- package/dist/contracts/v1/workflow-client.js +0 -1
- package/dist/contracts/v1/workflow-dto.js +0 -1
- package/dist/contracts/v1/workflow-evidence.js +0 -1
- package/dist/contracts/v1/workflow-execution.d.ts +0 -1
- package/dist/contracts/v1/workflow-execution.js +0 -4
- package/dist/contracts/v1/workflow-next.d.ts +0 -2
- package/dist/contracts/v1/workflow-next.js +0 -3
- package/dist/contracts/v1/workflow-plan.d.ts +171 -0
- package/dist/contracts/v1/workflow-plan.js +0 -1
- package/dist/contracts/v1/workflow-primitives.d.ts +0 -1
- package/dist/contracts/v1/workflow-primitives.js +0 -2
- package/dist/contracts/v1/workflow-run-read.d.ts +0 -1
- package/dist/contracts/v1/workflow-run-read.js +0 -3
- package/dist/creator-profile.d.ts +0 -30
- package/dist/creator-profile.js +0 -45
- package/dist/default-actor.js +0 -2
- package/dist/design.d.ts +0 -17
- package/dist/design.js +0 -18
- package/dist/diy-next.d.ts +18 -0
- package/dist/diy-next.js +13 -0
- package/dist/edit-billing.d.ts +0 -6
- package/dist/edit-billing.js +0 -10
- package/dist/edit-candidate.d.ts +0 -6
- package/dist/edit-candidate.js +0 -9
- package/dist/edit-document.d.ts +0 -12
- package/dist/edit-document.js +0 -15
- package/dist/edit-faceless.d.ts +0 -3
- package/dist/edit-faceless.js +0 -4
- package/dist/edit-long-form.d.ts +0 -13
- package/dist/edit-long-form.js +0 -17
- package/dist/edit-music.d.ts +397 -0
- package/dist/edit-music.js +77 -0
- package/dist/edit-operations.d.ts +0 -1
- package/dist/edit-operations.js +0 -2
- package/dist/edit-primitives.d.ts +0 -3
- package/dist/edit-primitives.js +0 -5
- package/dist/edit-revision.d.ts +0 -4
- package/dist/edit-revision.js +0 -6
- package/dist/edit-rules.d.ts +0 -3
- package/dist/edit-rules.js +0 -9
- package/dist/edit-shots.d.ts +45 -5
- package/dist/edit-shots.js +7 -11
- package/dist/edit-validate.d.ts +0 -10
- package/dist/edit-validate.js +0 -14
- package/dist/edit.js +0 -3
- package/dist/endpoint-notes.d.ts +0 -2
- package/dist/endpoint-notes.js +0 -3
- package/dist/endpoints.d.ts +0 -11
- package/dist/endpoints.js +11 -21
- package/dist/errors.d.ts +29 -43
- package/dist/errors.js +18 -54
- package/dist/explainer-fit.d.ts +0 -7
- package/dist/explainer-fit.js +0 -10
- package/dist/face-billing.d.ts +0 -9
- package/dist/face-billing.js +0 -23
- package/dist/face-delivery.d.ts +0 -1
- package/dist/face-delivery.js +0 -2
- package/dist/faceless-action-shots.d.ts +0 -8
- package/dist/faceless-action-shots.js +0 -8
- package/dist/faceless-customer-anchors.d.ts +0 -1
- package/dist/faceless-customer-anchors.js +0 -2
- package/dist/faceless-cut-style.js +0 -1
- package/dist/faceless-direction-summary.d.ts +0 -2
- package/dist/faceless-direction-summary.js +0 -3
- package/dist/faceless-image-placement.d.ts +0 -2
- package/dist/faceless-image-placement.js +0 -3
- package/dist/faceless-image-qualification.js +0 -2
- package/dist/faceless-media-record.d.ts +0 -6
- package/dist/faceless-media-record.js +0 -11
- package/dist/faceless-price.d.ts +0 -45
- package/dist/faceless-price.js +0 -64
- package/dist/faceless-public-plan.d.ts +0 -13
- package/dist/faceless-public-plan.js +0 -11
- package/dist/faceless-public.d.ts +0 -26
- package/dist/faceless-public.js +0 -59
- package/dist/faceless-short-61.js +0 -1
- package/dist/faceless-storyboard-timing.js +0 -1
- package/dist/faceless-storyboard-v2-plan.js +0 -1
- package/dist/faceless-storyboard-v2-timing.d.ts +0 -4
- package/dist/faceless-storyboard-v2-timing.js +0 -3
- package/dist/faceless-storyboard-v2.js +0 -1
- package/dist/faceless-storyboard.js +0 -1
- package/dist/faceless-voices.d.ts +0 -16
- package/dist/faceless-voices.js +0 -18
- package/dist/feedback.d.ts +0 -4
- package/dist/feedback.js +0 -5
- package/dist/film-directions.d.ts +0 -2
- package/dist/film-directions.js +0 -7
- package/dist/film-drafts.d.ts +0 -8
- package/dist/film-drafts.js +0 -19
- package/dist/film-guide.d.ts +0 -3
- package/dist/film-guide.js +0 -6
- package/dist/film-styles.d.ts +0 -5
- package/dist/film-styles.js +0 -8
- package/dist/generation-shot.d.ts +0 -5
- package/dist/generation-shot.js +0 -8
- package/dist/generations-output.d.ts +0 -2
- package/dist/generations-output.js +0 -5
- package/dist/generations.d.ts +0 -22
- package/dist/generations.js +21 -44
- package/dist/idempotency.d.ts +1 -21
- package/dist/idempotency.js +8 -29
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -28
- package/dist/live-shot-kinds.d.ts +16 -25
- package/dist/live-shot-kinds.js +12 -28
- package/dist/long-form-pricing.d.ts +0 -5
- package/dist/long-form-pricing.js +0 -6
- package/dist/long-form-profile.d.ts +0 -3
- package/dist/long-form-profile.js +0 -4
- package/dist/long-form-revision.d.ts +0 -9
- package/dist/long-form-revision.js +0 -11
- package/dist/markdown-quote.d.ts +0 -2
- package/dist/markdown-quote.js +0 -3
- package/dist/mascots.d.ts +0 -5
- package/dist/mascots.js +0 -10
- package/dist/max-credits.d.ts +0 -1
- package/dist/max-credits.js +0 -2
- package/dist/mcp-ugc-descriptions.d.ts +0 -2
- package/dist/mcp-ugc-descriptions.js +1 -6
- package/dist/media-timebase.d.ts +0 -2
- package/dist/media-timebase.js +0 -6
- package/dist/motion-styles.d.ts +0 -8
- package/dist/motion-styles.js +0 -11
- package/dist/moves.d.ts +0 -7
- package/dist/moves.js +0 -9
- package/dist/music.d.ts +0 -5
- package/dist/music.js +0 -8
- package/dist/naming.d.ts +0 -3
- package/dist/naming.js +0 -19
- package/dist/openapi.d.ts +0 -13
- package/dist/openapi.js +9 -11
- package/dist/output-provenance.d.ts +0 -4
- package/dist/output-provenance.js +0 -5
- package/dist/own-agent-price.d.ts +21 -22
- package/dist/own-agent-price.js +34 -25
- package/dist/own-agent-runs.d.ts +351 -11
- package/dist/own-agent-runs.js +144 -24
- package/dist/pacing.d.ts +3 -15
- package/dist/pacing.js +18 -18
- package/dist/parts-pricing.d.ts +0 -28
- package/dist/parts-pricing.js +0 -32
- package/dist/post-text.d.ts +0 -2
- package/dist/post-text.js +0 -4
- package/dist/presenter-beats.d.ts +0 -10
- package/dist/presenter-beats.js +0 -14
- package/dist/presenter-matte.d.ts +0 -7
- package/dist/presenter-matte.js +0 -9
- package/dist/presenter-takes.d.ts +0 -3
- package/dist/presenter-takes.js +0 -8
- package/dist/prices.d.ts +2 -8
- package/dist/prices.js +13 -23
- package/dist/public-endpoints.d.ts +0 -11
- package/dist/public-endpoints.js +0 -14
- package/dist/public-responses.d.ts +0 -2
- package/dist/public-responses.js +0 -3
- package/dist/rate-limit.d.ts +0 -24
- package/dist/rate-limit.js +0 -29
- package/dist/reference-analysis.d.ts +57 -34
- package/dist/reference-analysis.js +0 -69
- package/dist/reference-bring.d.ts +33 -0
- package/dist/reference-bring.js +28 -0
- package/dist/reference-display.d.ts +0 -3
- package/dist/reference-display.js +37 -4
- package/dist/reference-kinds.d.ts +0 -4
- package/dist/reference-kinds.js +0 -6
- package/dist/reference-lyrics.d.ts +0 -6
- package/dist/reference-lyrics.js +0 -6
- package/dist/reference-profile.d.ts +270 -39
- package/dist/reference-profile.js +64 -50
- package/dist/reference-staging.d.ts +0 -10
- package/dist/reference-staging.js +0 -14
- package/dist/reference-text-spans.d.ts +0 -4
- package/dist/reference-text-spans.js +0 -7
- package/dist/reference-voice-over.d.ts +0 -6
- package/dist/reference-voice-over.js +0 -7
- package/dist/reference-voice.d.ts +0 -7
- package/dist/reference-voice.js +0 -12
- package/dist/render-backend.d.ts +0 -30
- package/dist/render-backend.js +0 -5
- package/dist/resolved-timeline.d.ts +0 -4
- package/dist/resolved-timeline.js +1 -31
- package/dist/run-media.d.ts +0 -1
- package/dist/run-media.js +0 -2
- package/dist/run-preflight.d.ts +0 -4
- package/dist/run-preflight.js +0 -11
- package/dist/run-static-warnings.d.ts +0 -8
- package/dist/run-static-warnings.js +0 -38
- package/dist/runs.d.ts +0 -32
- package/dist/runs.js +0 -50
- package/dist/scene-bible.d.ts +15 -7
- package/dist/scene-bible.js +15 -10
- package/dist/scene-graph.d.ts +0 -12
- package/dist/scene-graph.js +0 -24
- package/dist/scene-place.d.ts +0 -25
- package/dist/scene-place.js +0 -24
- package/dist/scene-proposal.d.ts +0 -3
- package/dist/scene-proposal.js +0 -9
- package/dist/script-integrity.d.ts +0 -6
- package/dist/script-integrity.js +0 -8
- package/dist/script-voice.d.ts +0 -7
- package/dist/script-voice.js +0 -16
- package/dist/semantic-inserts.d.ts +0 -7
- package/dist/semantic-inserts.js +0 -10
- package/dist/skill-theme-explainer.js +0 -5
- package/dist/skill-theme.d.ts +0 -13
- package/dist/skill-theme.js +0 -25
- package/dist/skills.d.ts +22 -86
- package/dist/skills.js +21 -167
- package/dist/speech-rhythm-contract.js +0 -1
- package/dist/speech-rhythm.d.ts +0 -4
- package/dist/speech-rhythm.js +0 -2
- package/dist/templates/backdrop.d.ts +0 -3
- package/dist/templates/backdrop.js +0 -5
- package/dist/templates/callout.d.ts +0 -4
- package/dist/templates/callout.js +0 -6
- package/dist/templates/chart.d.ts +0 -4
- package/dist/templates/chart.js +0 -6
- package/dist/templates/chat-window.d.ts +0 -8
- package/dist/templates/chat-window.js +0 -10
- package/dist/templates/checklist.d.ts +0 -3
- package/dist/templates/checklist.js +0 -6
- package/dist/templates/comment-cta.d.ts +0 -14
- package/dist/templates/comment-cta.js +0 -19
- package/dist/templates/compare.d.ts +0 -6
- package/dist/templates/compare.js +0 -7
- package/dist/templates/cover-story.d.ts +0 -1
- package/dist/templates/cover-story.js +0 -3
- package/dist/templates/end-card.d.ts +0 -2
- package/dist/templates/end-card.js +0 -3
- package/dist/templates/hand-title.d.ts +0 -5
- package/dist/templates/hand-title.js +0 -9
- package/dist/templates/index.d.ts +0 -57
- package/dist/templates/index.js +0 -60
- package/dist/templates/lower-third.d.ts +0 -4
- package/dist/templates/lower-third.js +0 -5
- package/dist/templates/notification.d.ts +0 -6
- package/dist/templates/notification.js +0 -7
- package/dist/templates/phone-call.d.ts +0 -2
- package/dist/templates/phone-call.js +0 -6
- package/dist/templates/phone-screen.d.ts +0 -5
- package/dist/templates/phone-screen.js +0 -7
- package/dist/templates/pointer-chips.d.ts +0 -4
- package/dist/templates/pointer-chips.js +0 -6
- package/dist/templates/progress.d.ts +0 -3
- package/dist/templates/progress.js +0 -5
- package/dist/templates/quote.d.ts +0 -3
- package/dist/templates/quote.js +0 -4
- package/dist/templates/race.d.ts +0 -5
- package/dist/templates/race.js +0 -7
- package/dist/templates/rating.d.ts +0 -3
- package/dist/templates/rating.js +0 -5
- package/dist/templates/series-frame.d.ts +0 -16
- package/dist/templates/series-frame.js +0 -19
- package/dist/templates/size.d.ts +0 -7
- package/dist/templates/size.js +0 -8
- package/dist/templates/slot.d.ts +0 -2
- package/dist/templates/slot.js +0 -2
- package/dist/templates/sounds.d.ts +24 -12
- package/dist/templates/sounds.js +2 -16
- package/dist/templates/stat.d.ts +0 -3
- package/dist/templates/stat.js +0 -5
- package/dist/templates/tag.d.ts +0 -3
- package/dist/templates/tag.js +0 -5
- package/dist/templates/terminal.d.ts +0 -6
- package/dist/templates/terminal.js +0 -8
- package/dist/templates/theme.d.ts +0 -7
- package/dist/templates/theme.js +0 -9
- package/dist/templates/title-card.d.ts +0 -3
- package/dist/templates/title-card.js +0 -5
- package/dist/templates/video-grid.d.ts +0 -5
- package/dist/templates/video-grid.js +0 -8
- package/dist/templates/word-fill.d.ts +0 -3
- package/dist/templates/word-fill.js +0 -4
- package/dist/templates/word-title.d.ts +0 -2
- package/dist/templates/word-title.js +0 -4
- package/dist/trend-niches.d.ts +0 -11
- package/dist/trend-niches.js +0 -16
- package/dist/trend-search.d.ts +0 -66
- package/dist/trend-search.js +0 -70
- package/dist/tts-backend.d.ts +0 -19
- package/dist/tts-backend.js +0 -7
- package/dist/ugc-call.d.ts +0 -16
- package/dist/ugc-call.js +0 -21
- package/dist/ugc-delivery.d.ts +0 -2
- package/dist/ugc-delivery.js +0 -4
- package/dist/ugc-framing.d.ts +0 -4
- package/dist/ugc-framing.js +0 -6
- package/dist/ugc-interview.d.ts +0 -18
- package/dist/ugc-interview.js +0 -24
- package/dist/ugc-layers.d.ts +0 -39
- package/dist/ugc-layers.js +0 -39
- package/dist/ugc-scenes.d.ts +0 -2
- package/dist/ugc-scenes.js +0 -5
- package/dist/ugc-video-media.d.ts +0 -5
- package/dist/ugc-video-media.js +0 -7
- package/dist/uploads.d.ts +0 -14
- package/dist/uploads.js +0 -17
- package/dist/vendor-response.d.ts +0 -19
- package/dist/vendor-response.js +0 -22
- package/dist/video-size.d.ts +0 -4
- package/dist/video-size.js +0 -7
- package/dist/voice-admission.d.ts +0 -11
- package/dist/voice-admission.js +0 -13
- package/dist/voice-catalog-data.d.ts +0 -2
- package/dist/voice-catalog-data.js +0 -3
- package/dist/voice-catalog.d.ts +0 -6
- package/dist/voice-catalog.js +0 -8
- package/dist/voice-listing.d.ts +0 -6
- package/dist/voice-listing.js +0 -14
- package/dist/voice-pace.d.ts +0 -4
- package/dist/voice-pace.js +0 -7
- package/dist/voice-preview-approval.js +0 -1
- package/dist/voices.d.ts +4 -69
- package/dist/voices.js +3 -88
- package/dist/workflows/catalog.d.ts +0 -2
- package/dist/workflows/catalog.js +0 -4
- package/dist/workflows/film-directions.d.ts +0 -3
- package/dist/workflows/film-directions.js +0 -4
- package/dist/workflows/index.js +0 -1
- package/dist/workflows/methods/faceless-explainer.d.ts +31 -0
- package/dist/workflows/methods/faceless-explainer.js +0 -1
- package/dist/workflows/methods/kinetic-launch.d.ts +62 -1
- package/dist/workflows/methods/kinetic-launch.js +0 -2
- package/dist/workflows/methods/product-image-story.d.ts +31 -0
- package/dist/workflows/methods/product-image-story.js +0 -1
- package/dist/workflows/methods/reference-remake.d.ts +31 -0
- package/dist/workflows/methods/reference-remake.js +0 -1
- package/dist/workflows/methods/shared.d.ts +31 -1
- package/dist/workflows/methods/shared.js +0 -3
- package/dist/workflows/methods/ugc-faq-answer.d.ts +31 -0
- package/dist/workflows/methods/ugc-faq-answer.js +0 -1
- package/dist/workflows/methods/ugc-product-intro.d.ts +31 -0
- package/dist/workflows/methods/ugc-product-intro.js +0 -1
- package/dist/workflows/methods/website-proof-demo.d.ts +62 -1
- package/dist/workflows/methods/website-proof-demo.js +0 -2
- package/dist/workflows/motion-director.d.ts +0 -11
- package/dist/workflows/motion-director.js +0 -11
- package/dist/workflows/product-references.js +0 -1
- package/dist/workflows/reference-remake.d.ts +114 -17
- package/dist/workflows/reference-remake.js +0 -167
- package/dist/workflows/remake-chooser.d.ts +0 -6
- package/dist/workflows/remake-chooser.js +0 -4
- package/dist/workflows/remake-motion.d.ts +0 -16
- package/dist/workflows/remake-motion.js +0 -19
- package/dist/workflows/validate.d.ts +0 -1
- package/dist/workflows/validate.js +0 -5
- package/dist/workflows.js +0 -1
- package/package.json +1 -1
- package/dist/account-actors.js.map +0 -1
- package/dist/account.js.map +0 -1
- package/dist/actor-bounds.js.map +0 -1
- package/dist/actor-qualities.js.map +0 -1
- package/dist/actors.js.map +0 -1
- package/dist/ad-guide.js.map +0 -1
- package/dist/ad-pause-trim.js.map +0 -1
- package/dist/api-failure.js.map +0 -1
- package/dist/aspect.js.map +0 -1
- package/dist/asset-identity.js.map +0 -1
- package/dist/assets.js.map +0 -1
- package/dist/billing-terms.js.map +0 -1
- package/dist/brand-styles.js.map +0 -1
- package/dist/broll-policy.js.map +0 -1
- package/dist/canvas-fit.js.map +0 -1
- package/dist/caption-funnel.js.map +0 -1
- package/dist/caption-geometry.js.map +0 -1
- package/dist/caption-language.js.map +0 -1
- package/dist/contract-dispositions.js.map +0 -1
- package/dist/contracts/v1/workflow-brief.js.map +0 -1
- package/dist/contracts/v1/workflow-catalog.js.map +0 -1
- package/dist/contracts/v1/workflow-client.js.map +0 -1
- package/dist/contracts/v1/workflow-dto.js.map +0 -1
- package/dist/contracts/v1/workflow-evidence.js.map +0 -1
- package/dist/contracts/v1/workflow-execution.js.map +0 -1
- package/dist/contracts/v1/workflow-next.js.map +0 -1
- package/dist/contracts/v1/workflow-plan.js.map +0 -1
- package/dist/contracts/v1/workflow-primitives.js.map +0 -1
- package/dist/contracts/v1/workflow-run-read.js.map +0 -1
- package/dist/creator-profile.js.map +0 -1
- package/dist/default-actor.js.map +0 -1
- package/dist/design.js.map +0 -1
- package/dist/edit-billing.js.map +0 -1
- package/dist/edit-candidate.js.map +0 -1
- package/dist/edit-document.js.map +0 -1
- package/dist/edit-faceless.js.map +0 -1
- package/dist/edit-long-form.js.map +0 -1
- package/dist/edit-operations.js.map +0 -1
- package/dist/edit-primitives.js.map +0 -1
- package/dist/edit-revision.js.map +0 -1
- package/dist/edit-rules.js.map +0 -1
- package/dist/edit-shots.js.map +0 -1
- package/dist/edit-validate.js.map +0 -1
- package/dist/edit.js.map +0 -1
- package/dist/endpoint-notes.js.map +0 -1
- package/dist/endpoints.js.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/explainer-fit.js.map +0 -1
- package/dist/face-billing.js.map +0 -1
- package/dist/face-delivery.js.map +0 -1
- package/dist/faceless-action-shots.js.map +0 -1
- package/dist/faceless-customer-anchors.js.map +0 -1
- package/dist/faceless-cut-style.js.map +0 -1
- package/dist/faceless-direction-summary.js.map +0 -1
- package/dist/faceless-image-placement.js.map +0 -1
- package/dist/faceless-image-qualification.js.map +0 -1
- package/dist/faceless-media-record.js.map +0 -1
- package/dist/faceless-price.js.map +0 -1
- package/dist/faceless-public-plan.js.map +0 -1
- package/dist/faceless-public.js.map +0 -1
- package/dist/faceless-short-61.js.map +0 -1
- package/dist/faceless-storyboard-timing.js.map +0 -1
- package/dist/faceless-storyboard-v2-plan.js.map +0 -1
- package/dist/faceless-storyboard-v2-timing.js.map +0 -1
- package/dist/faceless-storyboard-v2.js.map +0 -1
- package/dist/faceless-storyboard.js.map +0 -1
- package/dist/faceless-voices.js.map +0 -1
- package/dist/feedback.js.map +0 -1
- package/dist/film-directions.js.map +0 -1
- package/dist/film-drafts.js.map +0 -1
- package/dist/film-guide.js.map +0 -1
- package/dist/film-styles.js.map +0 -1
- package/dist/generation-shot.js.map +0 -1
- package/dist/generations-output.js.map +0 -1
- package/dist/generations.js.map +0 -1
- package/dist/idempotency.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/live-shot-kinds.js.map +0 -1
- package/dist/long-form-pricing.js.map +0 -1
- package/dist/long-form-profile.js.map +0 -1
- package/dist/long-form-revision.js.map +0 -1
- package/dist/markdown-quote.js.map +0 -1
- package/dist/mascots.js.map +0 -1
- package/dist/max-credits.js.map +0 -1
- package/dist/mcp-ugc-descriptions.js.map +0 -1
- package/dist/media-timebase.js.map +0 -1
- package/dist/motion-styles.js.map +0 -1
- package/dist/moves.js.map +0 -1
- package/dist/music.js.map +0 -1
- package/dist/naming.js.map +0 -1
- package/dist/openapi.js.map +0 -1
- package/dist/output-provenance.js.map +0 -1
- package/dist/own-agent-price.js.map +0 -1
- package/dist/own-agent-runs.js.map +0 -1
- package/dist/pacing.js.map +0 -1
- package/dist/parts-pricing.js.map +0 -1
- package/dist/post-text.js.map +0 -1
- package/dist/presenter-beats.js.map +0 -1
- package/dist/presenter-matte.js.map +0 -1
- package/dist/presenter-takes.js.map +0 -1
- package/dist/prices.js.map +0 -1
- package/dist/public-endpoints.js.map +0 -1
- package/dist/public-responses.js.map +0 -1
- package/dist/rate-limit.js.map +0 -1
- package/dist/reference-analysis.js.map +0 -1
- package/dist/reference-display.js.map +0 -1
- package/dist/reference-kinds.js.map +0 -1
- package/dist/reference-lyrics.js.map +0 -1
- package/dist/reference-profile.js.map +0 -1
- package/dist/reference-staging.js.map +0 -1
- package/dist/reference-text-spans.js.map +0 -1
- package/dist/reference-voice-over.js.map +0 -1
- package/dist/reference-voice.js.map +0 -1
- package/dist/render-backend.js.map +0 -1
- package/dist/resolved-timeline.js.map +0 -1
- package/dist/run-media.js.map +0 -1
- package/dist/run-preflight.js.map +0 -1
- package/dist/run-static-warnings.js.map +0 -1
- package/dist/runs.js.map +0 -1
- package/dist/scene-bible.js.map +0 -1
- package/dist/scene-graph.js.map +0 -1
- package/dist/scene-place.js.map +0 -1
- package/dist/scene-proposal.js.map +0 -1
- package/dist/script-integrity.js.map +0 -1
- package/dist/script-voice.js.map +0 -1
- package/dist/semantic-inserts.js.map +0 -1
- package/dist/skill-theme-explainer.js.map +0 -1
- package/dist/skill-theme.js.map +0 -1
- package/dist/skills.js.map +0 -1
- package/dist/speech-rhythm-contract.js.map +0 -1
- package/dist/speech-rhythm.js.map +0 -1
- package/dist/templates/backdrop.js.map +0 -1
- package/dist/templates/callout.js.map +0 -1
- package/dist/templates/chart.js.map +0 -1
- package/dist/templates/chat-window.js.map +0 -1
- package/dist/templates/checklist.js.map +0 -1
- package/dist/templates/comment-cta.js.map +0 -1
- package/dist/templates/compare.js.map +0 -1
- package/dist/templates/cover-story.js.map +0 -1
- package/dist/templates/end-card.js.map +0 -1
- package/dist/templates/hand-title.js.map +0 -1
- package/dist/templates/index.js.map +0 -1
- package/dist/templates/lower-third.js.map +0 -1
- package/dist/templates/notification.js.map +0 -1
- package/dist/templates/phone-call.js.map +0 -1
- package/dist/templates/phone-screen.js.map +0 -1
- package/dist/templates/pointer-chips.js.map +0 -1
- package/dist/templates/progress.js.map +0 -1
- package/dist/templates/quote.js.map +0 -1
- package/dist/templates/race.js.map +0 -1
- package/dist/templates/rating.js.map +0 -1
- package/dist/templates/series-frame.js.map +0 -1
- package/dist/templates/size.js.map +0 -1
- package/dist/templates/slot.js.map +0 -1
- package/dist/templates/sounds.js.map +0 -1
- package/dist/templates/stat.js.map +0 -1
- package/dist/templates/tag.js.map +0 -1
- package/dist/templates/terminal.js.map +0 -1
- package/dist/templates/theme.js.map +0 -1
- package/dist/templates/title-card.js.map +0 -1
- package/dist/templates/video-grid.js.map +0 -1
- package/dist/templates/word-fill.js.map +0 -1
- package/dist/templates/word-title.js.map +0 -1
- package/dist/trend-niches.js.map +0 -1
- package/dist/trend-search.js.map +0 -1
- package/dist/tts-backend.js.map +0 -1
- package/dist/ugc-call.js.map +0 -1
- package/dist/ugc-delivery.js.map +0 -1
- package/dist/ugc-framing.js.map +0 -1
- package/dist/ugc-interview.js.map +0 -1
- package/dist/ugc-layers.js.map +0 -1
- package/dist/ugc-scenes.js.map +0 -1
- package/dist/ugc-video-media.js.map +0 -1
- package/dist/uploads.js.map +0 -1
- package/dist/vendor-response.js.map +0 -1
- package/dist/video-size.js.map +0 -1
- package/dist/voice-admission.js.map +0 -1
- package/dist/voice-catalog-data.js.map +0 -1
- package/dist/voice-catalog.js.map +0 -1
- package/dist/voice-listing.js.map +0 -1
- package/dist/voice-pace.js.map +0 -1
- package/dist/voice-preview-approval.js.map +0 -1
- package/dist/voices.js.map +0 -1
- package/dist/workflows/catalog.js.map +0 -1
- package/dist/workflows/film-directions.js.map +0 -1
- package/dist/workflows/index.js.map +0 -1
- package/dist/workflows/methods/faceless-explainer.js.map +0 -1
- package/dist/workflows/methods/kinetic-launch.js.map +0 -1
- package/dist/workflows/methods/product-image-story.js.map +0 -1
- package/dist/workflows/methods/reference-remake.js.map +0 -1
- package/dist/workflows/methods/shared.js.map +0 -1
- package/dist/workflows/methods/ugc-faq-answer.js.map +0 -1
- package/dist/workflows/methods/ugc-product-intro.js.map +0 -1
- package/dist/workflows/methods/website-proof-demo.js.map +0 -1
- package/dist/workflows/motion-director.js.map +0 -1
- package/dist/workflows/product-references.js.map +0 -1
- package/dist/workflows/reference-remake.js.map +0 -1
- package/dist/workflows/remake-chooser.js.map +0 -1
- package/dist/workflows/remake-motion.js.map +0 -1
- package/dist/workflows/validate.js.map +0 -1
- package/dist/workflows.js.map +0 -1
package/dist/ugc-call.d.ts
CHANGED
|
@@ -4,33 +4,24 @@ export type CallSpeaker = (typeof CALL_SPEAKERS)[number];
|
|
|
4
4
|
export declare const MAX_CALL_LINES = 30;
|
|
5
5
|
export declare const MAX_CALL_LINE_CHARS = 1000;
|
|
6
6
|
export declare const MAX_CALL_CHARS = 5000;
|
|
7
|
-
/** A call's length before synthesis, at the reference's 19 characters a second (D10). */
|
|
8
7
|
export declare const CALL_CHARS_PER_SEC = 19;
|
|
9
8
|
export declare const MAX_CALL_SEC = 120;
|
|
10
|
-
/** Past this the presenter holds still long enough to name it (D1). */
|
|
11
9
|
export declare const CALL_WARN_SEC = 20;
|
|
12
|
-
/** The bake-off's pair (S5-0): agent Cassidy, caller Mark; the agent is never the narration's voice. */
|
|
13
10
|
export declare const DEFAULT_CALL_VOICES: Readonly<Record<CallSpeaker, string>>;
|
|
14
11
|
export declare const SECOND_CALL_AGENT = "sarah";
|
|
15
|
-
/** The reference's in-call screen (D8): a US number shown only to its area code and the hold banner, generic phone UI. */
|
|
16
12
|
export declare const CALL_PHONE_DEFAULTS: Readonly<{
|
|
17
13
|
caller: "+1 (305) 555-0147";
|
|
18
14
|
banner: "Hold This Call?";
|
|
19
15
|
banner_note: "You'll be notified to pick up.";
|
|
20
16
|
mask_number: true;
|
|
21
17
|
}>;
|
|
22
|
-
/** The phone the run draws over a call: an id no client template can spell, so it never meets one. */
|
|
23
18
|
export declare const CALL_PHONE_ID = "call.phone";
|
|
24
|
-
/** The ring starts this long after the phone enters, rings for CALL_RING_SEC (the `ring_double` file) and the first word follows it. */
|
|
25
19
|
export declare const CALL_RING_LEAD_SEC = 0.07;
|
|
26
20
|
export declare const CALL_RING_SEC = 1.35;
|
|
27
21
|
export declare const CALL_RING_TO_VOICE_SEC = 0.1;
|
|
28
|
-
/** From the call's last word to the end of the freeze. */
|
|
29
22
|
export declare const CALL_TAIL_SEC = 0.4;
|
|
30
|
-
/** The presenter's live listening before the freeze (S4d), and how far before the freeze the phone enters behind it. */
|
|
31
23
|
export declare const CALL_LIVE_SEC = 3.58;
|
|
32
24
|
export declare const CALL_PHONE_LEAD_SEC = 3.96;
|
|
33
|
-
/** A staged phone (#914 D1e) rises from one of these sides, within these bounds; the composition draws no other entry for it. */
|
|
34
25
|
export declare const CALL_STAGE_SIDES: readonly ["bottom", "lower_left", "lower_right"];
|
|
35
26
|
export declare const CALL_STAGE_MAX_ENTER_SEC = 5;
|
|
36
27
|
export declare const CALL_STAGE_MAX_LEAD_SEC = 10;
|
|
@@ -54,11 +45,8 @@ export interface CallInput {
|
|
|
54
45
|
}
|
|
55
46
|
export declare const callChars: (call: Pick<CallInput, "lines">) => number;
|
|
56
47
|
export declare const callEstimateSec: (call: Pick<CallInput, "lines">) => number;
|
|
57
|
-
/** The seconds a call adds to the video: its lines, the ring before them and the tail after (D10). */
|
|
58
48
|
export declare const callGapEstimateSec: (call: Pick<CallInput, "lines">) => number;
|
|
59
|
-
/** The lexical word the presenter resumes on: the one after the quote's last word, or why there is none. */
|
|
60
49
|
export declare function callResumeWord(script: string, after: CallInput["after"]): number | string;
|
|
61
|
-
/** The agent and caller voices: the named ones, else the defaults, the agent kept off the narration's voice. */
|
|
62
50
|
export declare function callVoices(call: Pick<CallInput, "voices">, narrationVoice: string | undefined): Record<CallSpeaker, string>;
|
|
63
51
|
export interface CallCheckInput {
|
|
64
52
|
script?: string | undefined;
|
|
@@ -68,14 +56,10 @@ export interface CallCheckInput {
|
|
|
68
56
|
inserts?: readonly AnchoredItem[] | undefined;
|
|
69
57
|
call?: CallInput | undefined;
|
|
70
58
|
}
|
|
71
|
-
/** Every refusal of `call` before money, named by path (C1); the schema already bounds each line and the count. */
|
|
72
59
|
export declare function callRefusals(input: CallCheckInput): LayerRefusal[];
|
|
73
|
-
/** A long call is delivered, and named (rule 3). */
|
|
74
60
|
export declare function callWarnings(input: {
|
|
75
61
|
call?: unknown;
|
|
76
62
|
}): string[];
|
|
77
|
-
/** Where a call sits in its gap, in frames from the presenter's last word before it (D2): the phone enters, the ring starts, the first word,
|
|
78
|
-
* and the gap and hold lengths. Gap = ring lead + ring + call + tail after the phone; hold = gap − live. */
|
|
79
63
|
export declare function callGapFrames(args: {
|
|
80
64
|
callFrames: number;
|
|
81
65
|
liveFrames: number;
|
package/dist/ugc-call.js
CHANGED
|
@@ -1,54 +1,39 @@
|
|
|
1
1
|
import { lexicalTokens } from "./semantic-inserts.js";
|
|
2
2
|
import { layerWordRange } from "./ugc-layers.js";
|
|
3
|
-
// A phone call over a hold (#857 S5): two voices after a quote, the presenter listening, then frozen, until the call ends.
|
|
4
|
-
// Numbers are the reference's, as measured on it.
|
|
5
3
|
export const CALL_SPEAKERS = ["agent", "caller"];
|
|
6
4
|
export const MAX_CALL_LINES = 30;
|
|
7
5
|
export const MAX_CALL_LINE_CHARS = 1000;
|
|
8
6
|
export const MAX_CALL_CHARS = 5000;
|
|
9
|
-
/** A call's length before synthesis, at the reference's 19 characters a second (D10). */
|
|
10
7
|
export const CALL_CHARS_PER_SEC = 19;
|
|
11
8
|
export const MAX_CALL_SEC = 120;
|
|
12
|
-
/** Past this the presenter holds still long enough to name it (D1). */
|
|
13
9
|
export const CALL_WARN_SEC = 20;
|
|
14
|
-
/** The bake-off's pair (S5-0): agent Cassidy, caller Mark; the agent is never the narration's voice. */
|
|
15
10
|
export const DEFAULT_CALL_VOICES = Object.freeze({ agent: "en_female_cassidy", caller: "en_male_mark" });
|
|
16
11
|
export const SECOND_CALL_AGENT = "sarah";
|
|
17
|
-
/** The reference's in-call screen (D8): a US number shown only to its area code and the hold banner, generic phone UI. */
|
|
18
12
|
export const CALL_PHONE_DEFAULTS = Object.freeze({ caller: "+1 (305) 555-0147", banner: "Hold This Call?", banner_note: "You'll be notified to pick up.",
|
|
19
13
|
mask_number: true });
|
|
20
|
-
/** The phone the run draws over a call: an id no client template can spell, so it never meets one. */
|
|
21
14
|
export const CALL_PHONE_ID = "call.phone";
|
|
22
|
-
/** The ring starts this long after the phone enters, rings for CALL_RING_SEC (the `ring_double` file) and the first word follows it. */
|
|
23
15
|
export const CALL_RING_LEAD_SEC = 0.07;
|
|
24
16
|
export const CALL_RING_SEC = 1.35;
|
|
25
17
|
export const CALL_RING_TO_VOICE_SEC = 0.1;
|
|
26
|
-
/** From the call's last word to the end of the freeze. */
|
|
27
18
|
export const CALL_TAIL_SEC = 0.4;
|
|
28
|
-
/** The presenter's live listening before the freeze (S4d), and how far before the freeze the phone enters behind it. */
|
|
29
19
|
export const CALL_LIVE_SEC = 3.58;
|
|
30
20
|
export const CALL_PHONE_LEAD_SEC = 3.96;
|
|
31
|
-
/** A staged phone (#914 D1e) rises from one of these sides, within these bounds; the composition draws no other entry for it. */
|
|
32
21
|
export const CALL_STAGE_SIDES = ["bottom", "lower_left", "lower_right"];
|
|
33
22
|
export const CALL_STAGE_MAX_ENTER_SEC = 5;
|
|
34
23
|
export const CALL_STAGE_MAX_LEAD_SEC = 10;
|
|
35
24
|
export const callChars = (call) => call.lines.reduce((sum, line) => sum + line.text.length, 0);
|
|
36
25
|
export const callEstimateSec = (call) => Math.ceil(callChars(call) / CALL_CHARS_PER_SEC);
|
|
37
|
-
/** The seconds a call adds to the video: its lines, the ring before them and the tail after (D10). */
|
|
38
26
|
export const callGapEstimateSec = (call) => callEstimateSec(call) + Math.ceil(CALL_RING_LEAD_SEC + CALL_RING_SEC + CALL_RING_TO_VOICE_SEC + CALL_TAIL_SEC);
|
|
39
|
-
/** The lexical word the presenter resumes on: the one after the quote's last word, or why there is none. */
|
|
40
27
|
export function callResumeWord(script, after) {
|
|
41
28
|
const tokens = lexicalTokens(script), range = layerWordRange(tokens, { id: "call", anchor: after });
|
|
42
29
|
if (typeof range === "string")
|
|
43
30
|
return range;
|
|
44
31
|
return range.coverWord < tokens.length ? range.coverWord : "the call needs words after it: the presenter resumes on the word after its quote";
|
|
45
32
|
}
|
|
46
|
-
/** The agent and caller voices: the named ones, else the defaults, the agent kept off the narration's voice. */
|
|
47
33
|
export function callVoices(call, narrationVoice) {
|
|
48
34
|
const agent = call.voices?.agent ?? (narrationVoice === DEFAULT_CALL_VOICES.agent ? SECOND_CALL_AGENT : DEFAULT_CALL_VOICES.agent);
|
|
49
35
|
return { agent, caller: call.voices?.caller ?? DEFAULT_CALL_VOICES.caller };
|
|
50
36
|
}
|
|
51
|
-
/** Every refusal of `call` before money, named by path (C1); the schema already bounds each line and the count. */
|
|
52
37
|
export function callRefusals(input) {
|
|
53
38
|
const call = input.call;
|
|
54
39
|
if (call === undefined)
|
|
@@ -85,7 +70,6 @@ export function callRefusals(input) {
|
|
|
85
70
|
}
|
|
86
71
|
return refusals;
|
|
87
72
|
}
|
|
88
|
-
/** A long call is delivered, and named (rule 3). */
|
|
89
73
|
export function callWarnings(input) {
|
|
90
74
|
const call = input.call;
|
|
91
75
|
if (!Array.isArray(call?.lines))
|
|
@@ -93,19 +77,14 @@ export function callWarnings(input) {
|
|
|
93
77
|
const seconds = callEstimateSec({ lines: call.lines });
|
|
94
78
|
return seconds > CALL_WARN_SEC ? [`the call runs about ${seconds} s, longer than ${CALL_WARN_SEC} s: the presenter holds still through all of it`] : [];
|
|
95
79
|
}
|
|
96
|
-
/** Where a call sits in its gap, in frames from the presenter's last word before it (D2): the phone enters, the ring starts, the first word,
|
|
97
|
-
* and the gap and hold lengths. Gap = ring lead + ring + call + tail after the phone; hold = gap − live. */
|
|
98
80
|
export function callGapFrames(args) {
|
|
99
81
|
const { callFrames, liveFrames, fps } = args;
|
|
100
82
|
if (![callFrames, liveFrames, fps].every(Number.isSafeInteger) || callFrames < 1 || liveFrames < 0 || fps < 1) {
|
|
101
83
|
throw new Error("a call's gap needs whole frames");
|
|
102
84
|
}
|
|
103
|
-
// Never before the gap: over the talking take the phone is not drawn, and a ring there plays over the last word (#924).
|
|
104
85
|
const phoneEntry = Math.max(0, liveFrames - Math.round(CALL_PHONE_LEAD_SEC * fps));
|
|
105
86
|
const ringFrom = phoneEntry + Math.round(CALL_RING_LEAD_SEC * fps);
|
|
106
87
|
const voiceFrom = phoneEntry + Math.round((CALL_RING_LEAD_SEC + CALL_RING_SEC + CALL_RING_TO_VOICE_SEC) * fps);
|
|
107
|
-
// A call too short to outlast the listening keeps a hold of one tail.
|
|
108
88
|
const gapFrames = Math.max(voiceFrom + callFrames + Math.round(CALL_TAIL_SEC * fps), liveFrames + Math.round(CALL_TAIL_SEC * fps));
|
|
109
89
|
return { phoneEntry, ringFrom, voiceFrom, gapFrames, holdFrames: gapFrames - liveFrames };
|
|
110
90
|
}
|
|
111
|
-
//# sourceMappingURL=ugc-call.js.map
|
package/dist/ugc-delivery.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** The run's delivery proof; v1 remains readable, v2 separates stream timing from the container. */
|
|
3
2
|
export declare const ugcDeliveryEvidenceSchema: z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
3
|
runId: z.ZodString;
|
|
5
4
|
accountId: z.ZodString;
|
|
@@ -29,7 +28,6 @@ export declare const ugcDeliveryEvidenceSchema: z.ZodReadonly<z.ZodDiscriminated
|
|
|
29
28
|
audioSampleRate: z.ZodNumber;
|
|
30
29
|
}, z.core.$strict>], "version">>;
|
|
31
30
|
export type UgcDeliveryEvidence = z.infer<typeof ugcDeliveryEvidenceSchema>;
|
|
32
|
-
/** The server checks this canonical record hash before projecting a stored proof. */
|
|
33
31
|
export declare const ugcDeliveryRecordSchema: z.ZodReadonly<z.ZodObject<{
|
|
34
32
|
record: z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
35
33
|
runId: z.ZodString;
|
package/dist/ugc-delivery.js
CHANGED
|
@@ -7,9 +7,7 @@ const fields = {
|
|
|
7
7
|
width: count, height: count, fps: z.number().positive().finite(), outputFrames: count,
|
|
8
8
|
durationSec: z.number().positive().finite(),
|
|
9
9
|
};
|
|
10
|
-
/** Two 1024-sample AAC-LC frames bound the qualified encoder's audio tail. */
|
|
11
10
|
const AAC_MAX_TAIL_SAMPLES = 2048;
|
|
12
|
-
/** The run's delivery proof; v1 remains readable, v2 separates stream timing from the container. */
|
|
13
11
|
export const ugcDeliveryEvidenceSchema = z.discriminatedUnion("version", [
|
|
14
12
|
z.strictObject({ version: z.literal(1), ...fields }),
|
|
15
13
|
z.strictObject({ version: z.literal(2), ...fields, videoDurationSec: z.number().positive().finite(),
|
|
@@ -29,6 +27,4 @@ export const ugcDeliveryEvidenceSchema = z.discriminatedUnion("version", [
|
|
|
29
27
|
return Math.abs(value.durationSec - streamEnd) <= 0.001 + arithmeticEpsilon &&
|
|
30
28
|
value.audioDurationSec - value.videoDurationSec <= AAC_MAX_TAIL_SAMPLES / value.audioSampleRate + 0.000001;
|
|
31
29
|
}, { message: "UGC artifact key or measured duration does not match its evidence" }).readonly();
|
|
32
|
-
/** The server checks this canonical record hash before projecting a stored proof. */
|
|
33
30
|
export const ugcDeliveryRecordSchema = z.strictObject({ record: ugcDeliveryEvidenceSchema, record_hash: digest }).readonly();
|
|
34
|
-
//# sourceMappingURL=ugc-delivery.js.map
|
package/dist/ugc-framing.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { type AnchoredItem, type LayerRefusal, type LayoutWindowKind } from "./ugc-layers.js";
|
|
2
|
-
/** full (#1175 S7) shows the take as rendered, like medium: it is full height only on a full view, and a narrower take is named, never widened. */
|
|
3
2
|
export declare const FRAMING_SIZES: readonly ["close", "medium", "full"];
|
|
4
3
|
export type FramingSize = (typeof FRAMING_SIZES)[number];
|
|
5
4
|
export declare const FRAMING_TRANSITIONS: readonly ["cut", "flash"];
|
|
6
5
|
export type FramingTransition = (typeof FRAMING_TRANSITIONS)[number];
|
|
7
6
|
export declare const MAX_FRAMING = 60;
|
|
8
|
-
/** The presenter's scale about the face: close clears a scene detector's 10% with margin and stays under the ×1.25 a 720p take stands. */
|
|
9
7
|
export declare const FRAMING_SCALE: Readonly<Record<FramingSize, number>>;
|
|
10
8
|
export interface FramingCheckInput {
|
|
11
9
|
script: string;
|
|
@@ -17,9 +15,7 @@ export interface FramingCheckInput {
|
|
|
17
15
|
templates?: readonly AnchoredItem[] | undefined;
|
|
18
16
|
framing?: readonly AnchoredItem[] | undefined;
|
|
19
17
|
}
|
|
20
|
-
/** Every refusal of `framing` against the script and the run's other parts, named by path; empty when it renders. */
|
|
21
18
|
export declare function framingRefusals(input: FramingCheckInput): LayerRefusal[];
|
|
22
|
-
/** A framing that never shows, named for the quote and the run (rule 3): it lies wholly under full-frame templates. */
|
|
23
19
|
export declare function framingWarnings(input: {
|
|
24
20
|
script?: unknown;
|
|
25
21
|
framing?: unknown;
|
package/dist/ugc-framing.js
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { lexicalTokens } from "./semantic-inserts.js";
|
|
2
2
|
import { TEMPLATE_KINDS } from "./templates/index.js";
|
|
3
3
|
import { layerWordRange } from "./ugc-layers.js";
|
|
4
|
-
// Framing (reference-elements S2): word-anchored presenter sizes, cut or flashed in, drawn by the composition over the actor slots.
|
|
5
|
-
/** full (#1175 S7) shows the take as rendered, like medium: it is full height only on a full view, and a narrower take is named, never widened. */
|
|
6
4
|
export const FRAMING_SIZES = ["close", "medium", "full"];
|
|
7
5
|
export const FRAMING_TRANSITIONS = ["cut", "flash"];
|
|
8
6
|
export const MAX_FRAMING = 60;
|
|
9
|
-
/** The presenter's scale about the face: close clears a scene detector's 10% with margin and stays under the ×1.25 a 720p take stands. */
|
|
10
7
|
export const FRAMING_SCALE = Object.freeze({ close: 1.18, medium: 1, full: 1 });
|
|
11
8
|
const overlaps = (a, b) => a.startWord < b.coverWord && b.startWord < a.coverWord;
|
|
12
9
|
const coveredBy = (range, cover) => Array.from({ length: range.coverWord - range.startWord }, (_, offset) => range.startWord + offset).every(word => cover.some(other => word >= other.startWord && word < other.coverWord));
|
|
13
10
|
const ID_FIELDS = ["inserts", "overlays", "layout_windows", "templates"];
|
|
14
|
-
/** Every refusal of `framing` against the script and the run's other parts, named by path; empty when it renders. */
|
|
15
11
|
export function framingRefusals(input) {
|
|
16
12
|
const refusals = [];
|
|
17
13
|
const tokens = lexicalTokens(input.script);
|
|
@@ -46,7 +42,6 @@ export function framingRefusals(input) {
|
|
|
46
42
|
}
|
|
47
43
|
return refusals;
|
|
48
44
|
}
|
|
49
|
-
/** A framing that never shows, named for the quote and the run (rule 3): it lies wholly under full-frame templates. */
|
|
50
45
|
export function framingWarnings(input) {
|
|
51
46
|
if (typeof input.script !== "string" || !Array.isArray(input.framing) || !Array.isArray(input.templates))
|
|
52
47
|
return [];
|
|
@@ -62,4 +57,3 @@ export function framingWarnings(input) {
|
|
|
62
57
|
? [`framing "${item.id}" is not drawn: it lies wholly under full-frame templates, where the presenter is not on screen`] : [];
|
|
63
58
|
});
|
|
64
59
|
}
|
|
65
|
-
//# sourceMappingURL=ugc-framing.js.map
|
package/dist/ugc-interview.d.ts
CHANGED
|
@@ -4,20 +4,15 @@ export declare const INTERVIEW_GAZES: readonly ["camera", "left", "right"];
|
|
|
4
4
|
export type InterviewGaze = (typeof INTERVIEW_GAZES)[number];
|
|
5
5
|
export declare const INTERVIEW_LISTENING: readonly ["freeze", "live"];
|
|
6
6
|
export declare const MAX_INTERVIEW_TURNS = 30;
|
|
7
|
-
/** The presenter's takes in one interview: one per answer, and one more at each change of gaze. */
|
|
8
7
|
export declare const MAX_INTERVIEW_TAKES = 16;
|
|
9
8
|
export declare const MAX_PRESENTER_GAZE = 20;
|
|
10
|
-
/** Past this the presenter holds still long enough to name it. */
|
|
11
9
|
export declare const INTERVIEW_FREEZE_WARN_SEC = 6;
|
|
12
|
-
/** An off-screen line's length before synthesis, at a conversation's 19 characters a second. */
|
|
13
10
|
export declare const INTERVIEW_CHARS_PER_SEC = 19;
|
|
14
|
-
/** The conversation's pauses, cut down to a tenth of a second unless pause_trim names others: an interview answers without waiting. */
|
|
15
11
|
export declare const INTERVIEW_PAUSE_TRIM: Readonly<{
|
|
16
12
|
sentence_end_s: 0.1;
|
|
17
13
|
comma_s: 0.1;
|
|
18
14
|
mid_phrase_s: 0.1;
|
|
19
15
|
}>;
|
|
20
|
-
/** The off-screen voice when none is named, never the presenter's own. */
|
|
21
16
|
export declare const DEFAULT_INTERVIEW_VOICE = "en_male_mark";
|
|
22
17
|
export declare const SECOND_INTERVIEW_VOICE = "en_female_cassidy";
|
|
23
18
|
type Anchor = AnchoredItem["anchor"];
|
|
@@ -42,7 +37,6 @@ export interface PresenterGazeItem {
|
|
|
42
37
|
cover_words?: number | undefined;
|
|
43
38
|
gaze: InterviewGaze;
|
|
44
39
|
}
|
|
45
|
-
/** The off-screen speaker's word ranges in script order, adjacent turns joined; a string names the first turn that does not resolve or overlaps. */
|
|
46
40
|
export declare function interviewTurnRanges(script: string, turns: readonly InterviewTurn[]): WordRange[] | {
|
|
47
41
|
index: number;
|
|
48
42
|
message: string;
|
|
@@ -54,29 +48,22 @@ export interface InterviewLine {
|
|
|
54
48
|
startWord: number;
|
|
55
49
|
coverWord: number;
|
|
56
50
|
}
|
|
57
|
-
/** The script cut into the lines of the conversation, at word boundaries with each word's punctuation kept, in order. */
|
|
58
51
|
export declare function interviewTexts(script: string, turns: readonly WordRange[]): InterviewLine[];
|
|
59
|
-
/** A conversation's pace before synthesis (#991): each line takes a start and a time per word, a short answer reading slower than narration. */
|
|
60
52
|
export declare const INTERVIEW_LINE_SEC = 0.43;
|
|
61
53
|
export declare const INTERVIEW_WORD_SEC = 0.39;
|
|
62
|
-
/** An interview's estimated length and the presenter's share of it, line by line. */
|
|
63
54
|
export declare function interviewSecondsEstimate(script: string, turns: readonly WordRange[]): {
|
|
64
55
|
totalSec: number;
|
|
65
56
|
presenterSec: number;
|
|
66
57
|
};
|
|
67
|
-
/** Each lexical word's speaker. */
|
|
68
58
|
export declare function wordSpeakers(total: number, turns: readonly WordRange[]): InterviewSpeaker[];
|
|
69
|
-
/** The presenter's gaze on each lexical word: the interview's own, else camera, then each presenter_gaze item on its words. */
|
|
70
59
|
export declare function wordGazes(script: string, input: {
|
|
71
60
|
interview?: Pick<InterviewInput, "gaze"> | undefined;
|
|
72
61
|
presenter_gaze?: readonly PresenterGazeItem[] | undefined;
|
|
73
62
|
}): InterviewGaze[];
|
|
74
|
-
/** Every view of the actor the run needs, the main one first. */
|
|
75
63
|
export declare function gazesNeeded(input: {
|
|
76
64
|
interview?: Pick<InterviewInput, "gaze"> | undefined;
|
|
77
65
|
presenter_gaze?: readonly Pick<PresenterGazeItem, "gaze">[] | undefined;
|
|
78
66
|
}): InterviewGaze[];
|
|
79
|
-
/** The presenter's takes before timing: each run of words on screen is one, and a change of gaze inside a run starts another. */
|
|
80
67
|
export declare function presenterTakeCount(script: string, input: {
|
|
81
68
|
interview?: InterviewInput | undefined;
|
|
82
69
|
presenter_gaze?: readonly PresenterGazeItem[] | undefined;
|
|
@@ -100,23 +87,18 @@ export interface InterviewCheckInput {
|
|
|
100
87
|
interview?: InterviewInput | undefined;
|
|
101
88
|
presenter_gaze?: readonly PresenterGazeItem[] | undefined;
|
|
102
89
|
}
|
|
103
|
-
/** The one model that speaks a conversation in one request. */
|
|
104
90
|
export declare const INTERVIEW_TTS_MODEL = "eleven_v4";
|
|
105
|
-
/** Every refusal of `interview` and `presenter_gaze` before money, named by path. */
|
|
106
91
|
export declare function interviewRefusals(input: InterviewCheckInput): LayerRefusal[];
|
|
107
|
-
/** What an interview does differently from what was asked, named before money (rule 3). */
|
|
108
92
|
export declare function interviewWarnings(input: {
|
|
109
93
|
script?: unknown;
|
|
110
94
|
interview?: unknown;
|
|
111
95
|
voice_pace?: unknown;
|
|
112
96
|
}): string[];
|
|
113
97
|
export declare const INTERVIEW_SHARED_VOICE_REFUSAL = "the off-screen speaker needs a voice other than the presenter's";
|
|
114
|
-
/** The presenter's voice by name: the named one, else its model's default for the gender; a raw voice_id has no name. */
|
|
115
98
|
export declare function interviewPresenterVoice(input: {
|
|
116
99
|
voice?: string | undefined;
|
|
117
100
|
voice_id?: string | undefined;
|
|
118
101
|
tts_model?: string | undefined;
|
|
119
102
|
}, gender: Gender | undefined): string | undefined;
|
|
120
|
-
/** The off-screen voice: the named one, else the default, kept off the presenter's voice; the server compares by vendor id (#987). */
|
|
121
103
|
export declare function interviewOffScreenVoice(interview: Pick<InterviewInput, "off_screen">, speaksPresenterVoice: (voice: string) => boolean): string;
|
|
122
104
|
export {};
|
package/dist/ugc-interview.js
CHANGED
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { lexicalTokens, quoteOccurrences } from "./semantic-inserts.js";
|
|
2
2
|
import { defaultVoiceOf } from "./voices.js";
|
|
3
3
|
import { layerWordRange } from "./ugc-layers.js";
|
|
4
|
-
// An interview (#972): an off-screen speaker's words inside the script, the presenter answering on screen and holding still while they speak.
|
|
5
4
|
export const INTERVIEW_GAZES = ["camera", "left", "right"];
|
|
6
5
|
export const INTERVIEW_LISTENING = ["freeze", "live"];
|
|
7
6
|
export const MAX_INTERVIEW_TURNS = 30;
|
|
8
|
-
/** The presenter's takes in one interview: one per answer, and one more at each change of gaze. */
|
|
9
7
|
export const MAX_INTERVIEW_TAKES = 16;
|
|
10
8
|
export const MAX_PRESENTER_GAZE = 20;
|
|
11
|
-
/** Past this the presenter holds still long enough to name it. */
|
|
12
9
|
export const INTERVIEW_FREEZE_WARN_SEC = 6;
|
|
13
|
-
/** An off-screen line's length before synthesis, at a conversation's 19 characters a second. */
|
|
14
10
|
export const INTERVIEW_CHARS_PER_SEC = 19;
|
|
15
|
-
/** The conversation's pauses, cut down to a tenth of a second unless pause_trim names others: an interview answers without waiting. */
|
|
16
11
|
export const INTERVIEW_PAUSE_TRIM = Object.freeze({ sentence_end_s: 0.1, comma_s: 0.1, mid_phrase_s: 0.1 });
|
|
17
|
-
/** The off-screen voice when none is named, never the presenter's own. */
|
|
18
12
|
export const DEFAULT_INTERVIEW_VOICE = "en_male_mark";
|
|
19
13
|
export const SECOND_INTERVIEW_VOICE = "en_female_cassidy";
|
|
20
|
-
/** The off-screen speaker's word ranges in script order, adjacent turns joined; a string names the first turn that does not resolve or overlaps. */
|
|
21
14
|
export function interviewTurnRanges(script, turns) {
|
|
22
15
|
const tokens = lexicalTokens(script), ranges = [];
|
|
23
16
|
for (const [index, turn] of turns.entries()) {
|
|
@@ -39,7 +32,6 @@ export function interviewTurnRanges(script, turns) {
|
|
|
39
32
|
}
|
|
40
33
|
return joined;
|
|
41
34
|
}
|
|
42
|
-
/** The script cut into the lines of the conversation, at word boundaries with each word's punctuation kept, in order. */
|
|
43
35
|
export function interviewTexts(script, turns) {
|
|
44
36
|
const total = lexicalTokens(script).length, cuts = new Set();
|
|
45
37
|
for (const turn of turns) {
|
|
@@ -56,10 +48,8 @@ export function interviewTexts(script, turns) {
|
|
|
56
48
|
return { speaker, text, startWord, coverWord };
|
|
57
49
|
});
|
|
58
50
|
}
|
|
59
|
-
/** A conversation's pace before synthesis (#991): each line takes a start and a time per word, a short answer reading slower than narration. */
|
|
60
51
|
export const INTERVIEW_LINE_SEC = 0.43;
|
|
61
52
|
export const INTERVIEW_WORD_SEC = 0.39;
|
|
62
|
-
/** An interview's estimated length and the presenter's share of it, line by line. */
|
|
63
53
|
export function interviewSecondsEstimate(script, turns) {
|
|
64
54
|
let totalSec = 0, presenterSec = 0;
|
|
65
55
|
for (const line of interviewTexts(script, turns)) {
|
|
@@ -70,8 +60,6 @@ export function interviewSecondsEstimate(script, turns) {
|
|
|
70
60
|
}
|
|
71
61
|
return { totalSec, presenterSec };
|
|
72
62
|
}
|
|
73
|
-
/** The script split before each lexical word in `boundaries`: whole whitespace chunks where possible, else inside one at the shortest prefix
|
|
74
|
-
* that holds exactly the words before the cut. */
|
|
75
63
|
function splitAtWords(script, boundaries) {
|
|
76
64
|
const chunks = script.split(/(\s+)/u), pieces = [];
|
|
77
65
|
let current = "", words = 0, next = 0;
|
|
@@ -89,7 +77,6 @@ function splitAtWords(script, boundaries) {
|
|
|
89
77
|
current = "";
|
|
90
78
|
}
|
|
91
79
|
else {
|
|
92
|
-
// The longest such prefix, so the punctuation after the last word stays with it.
|
|
93
80
|
const cut = [...Array(rest.length).keys()].map(i => i + 1).findLast(p => lexicalTokens(rest.slice(0, p)).length === need &&
|
|
94
81
|
lexicalTokens(rest.slice(p)).length === count - need);
|
|
95
82
|
pieces.push(current + rest.slice(0, cut));
|
|
@@ -106,11 +93,9 @@ function splitAtWords(script, boundaries) {
|
|
|
106
93
|
pieces.push(current);
|
|
107
94
|
return pieces.map(piece => piece.trim());
|
|
108
95
|
}
|
|
109
|
-
/** Each lexical word's speaker. */
|
|
110
96
|
export function wordSpeakers(total, turns) {
|
|
111
97
|
return Array.from({ length: total }, (_, word) => turns.some(turn => turn.startWord <= word && word < turn.coverWord) ? "off_screen" : "presenter");
|
|
112
98
|
}
|
|
113
|
-
/** The presenter's gaze on each lexical word: the interview's own, else camera, then each presenter_gaze item on its words. */
|
|
114
99
|
export function wordGazes(script, input) {
|
|
115
100
|
const tokens = lexicalTokens(script), gazes = tokens.map(() => input.interview?.gaze ?? "camera");
|
|
116
101
|
for (const item of input.presenter_gaze ?? []) {
|
|
@@ -122,11 +107,9 @@ export function wordGazes(script, input) {
|
|
|
122
107
|
}
|
|
123
108
|
return gazes;
|
|
124
109
|
}
|
|
125
|
-
/** Every view of the actor the run needs, the main one first. */
|
|
126
110
|
export function gazesNeeded(input) {
|
|
127
111
|
return [...new Set([input.interview?.gaze ?? "camera", ...(input.presenter_gaze ?? []).map(item => item.gaze)])];
|
|
128
112
|
}
|
|
129
|
-
/** The presenter's takes before timing: each run of words on screen is one, and a change of gaze inside a run starts another. */
|
|
130
113
|
export function presenterTakeCount(script, input) {
|
|
131
114
|
const tokens = lexicalTokens(script), turns = input.interview ? interviewTurnRanges(script, input.interview.turns) : [];
|
|
132
115
|
if (!Array.isArray(turns))
|
|
@@ -148,9 +131,7 @@ export function presenterTakeCount(script, input) {
|
|
|
148
131
|
}
|
|
149
132
|
return takes;
|
|
150
133
|
}
|
|
151
|
-
/** The one model that speaks a conversation in one request. */
|
|
152
134
|
export const INTERVIEW_TTS_MODEL = "eleven_v4";
|
|
153
|
-
/** Every refusal of `interview` and `presenter_gaze` before money, named by path. */
|
|
154
135
|
export function interviewRefusals(input) {
|
|
155
136
|
const { interview } = input;
|
|
156
137
|
if (interview === undefined && input.presenter_gaze === undefined)
|
|
@@ -171,7 +152,6 @@ export function interviewRefusals(input) {
|
|
|
171
152
|
refusals.push({ path: ["interview", "turns"], message: "every word is the off-screen speaker's: the presenter needs words" });
|
|
172
153
|
}
|
|
173
154
|
}
|
|
174
|
-
// An actor_id's gender is the pin's, so admission checks its default voice (#972 I2); an unknown gender speaks the default actor's voice.
|
|
175
155
|
const presenter = input.actor_id === undefined || input.voice !== undefined
|
|
176
156
|
? interviewPresenterVoice(input, input.image === undefined ? undefined : input.actor_gender) : undefined;
|
|
177
157
|
if (interview.off_screen?.voice !== undefined && interview.off_screen.voice === presenter) {
|
|
@@ -225,7 +205,6 @@ export function interviewRefusals(input) {
|
|
|
225
205
|
}
|
|
226
206
|
return refusals;
|
|
227
207
|
}
|
|
228
|
-
/** What an interview does differently from what was asked, named before money (rule 3). */
|
|
229
208
|
export function interviewWarnings(input) {
|
|
230
209
|
const interview = input.interview;
|
|
231
210
|
if (typeof input.script !== "string" || !interview || !Array.isArray(interview.turns))
|
|
@@ -247,14 +226,11 @@ export function interviewWarnings(input) {
|
|
|
247
226
|
return warnings;
|
|
248
227
|
}
|
|
249
228
|
export const INTERVIEW_SHARED_VOICE_REFUSAL = "the off-screen speaker needs a voice other than the presenter's";
|
|
250
|
-
/** The presenter's voice by name: the named one, else its model's default for the gender; a raw voice_id has no name. */
|
|
251
229
|
export function interviewPresenterVoice(input, gender) {
|
|
252
230
|
if (input.voice_id !== undefined)
|
|
253
231
|
return undefined;
|
|
254
232
|
return input.voice ?? defaultVoiceOf(input.tts_model, gender).name;
|
|
255
233
|
}
|
|
256
|
-
/** The off-screen voice: the named one, else the default, kept off the presenter's voice; the server compares by vendor id (#987). */
|
|
257
234
|
export function interviewOffScreenVoice(interview, speaksPresenterVoice) {
|
|
258
235
|
return interview.off_screen?.voice ?? (speaksPresenterVoice(DEFAULT_INTERVIEW_VOICE) ? SECOND_INTERVIEW_VOICE : DEFAULT_INTERVIEW_VOICE);
|
|
259
236
|
}
|
|
260
|
-
//# sourceMappingURL=ugc-interview.js.map
|
package/dist/ugc-layers.d.ts
CHANGED
|
@@ -5,28 +5,20 @@ export declare const OVERLAY_POSITIONS: readonly ["top_left", "top_right", "bott
|
|
|
5
5
|
export type OverlayPosition = (typeof OVERLAY_POSITIONS)[number];
|
|
6
6
|
export declare const LAYER_ENTERS: readonly ["cut", "fade", "slide", "tilt_in", "pop", "scale_up"];
|
|
7
7
|
export type LayerEnter = (typeof LAYER_ENTERS)[number];
|
|
8
|
-
/** How an overlay leaves (#973 S3); absent is a cut, as every overlay before it. */
|
|
9
8
|
export declare const LAYER_EXITS: readonly ["cut", "fade", "pop_out", "slide"];
|
|
10
9
|
export type LayerExit = (typeof LAYER_EXITS)[number];
|
|
11
|
-
/** The most an overlay's appearance moves off its first word, in seconds. */
|
|
12
10
|
export declare const MAX_ENTER_OFFSET_S = 0.5;
|
|
13
11
|
export declare const LAYOUT_WINDOW_KINDS: readonly ["split", "card"];
|
|
14
12
|
export type LayoutWindowKind = (typeof LAYOUT_WINDOW_KINDS)[number];
|
|
15
13
|
export declare const FULL_FRAME_TRANSITIONS: readonly ["cut", "wipe", "flash", "zoom"];
|
|
16
|
-
/** `glitch` breaks the cut with a colour split and an inverted frame (#1175 S5 C8); `power` closes the screen to a line and a dot and opens it the
|
|
17
|
-
* same way (C9). */
|
|
18
14
|
export declare const INSERT_TRANSITIONS: readonly ["cut", "wipe", "flash", "zoom", "light_leak", "glitch", "power"];
|
|
19
15
|
export type InsertTransition = (typeof INSERT_TRANSITIONS)[number];
|
|
20
|
-
/** A video insert's key moment slowed down and back (`ramp`) or caught in a short repeating loop (`stutter`) (#1175 S5 C6). */
|
|
21
16
|
export declare const INSERT_RETIMES: readonly ["ramp", "stutter"];
|
|
22
17
|
export type InsertRetimeMode = (typeof INSERT_RETIMES)[number];
|
|
23
18
|
export declare const INSERT_FITS: readonly ["cover", "contain", "auto"];
|
|
24
19
|
export type InsertFit = (typeof INSERT_FITS)[number];
|
|
25
|
-
/** `auto` holds a picture still while filling cuts at most this share of it, and past it scrolls or pans it end to end (#1051 S2). */
|
|
26
20
|
export declare const INSERT_STILL_CUT = 0.08;
|
|
27
|
-
/** `auto` moves a picture only while this share of it shows at once: a 16:10 screenshot (35% in 9:16) pans; past it, it shows whole over blur. */
|
|
28
21
|
export declare const INSERT_MIN_SHOWN = 0.25;
|
|
29
|
-
/** A picture's scroll runs down or up a tall picture, its pan left or right across a wide one (#1051 S2). */
|
|
30
22
|
export declare const INSERT_MOTIONS: {
|
|
31
23
|
readonly scroll: readonly ["down", "up"];
|
|
32
24
|
readonly pan: readonly ["left", "right"];
|
|
@@ -38,7 +30,6 @@ export type InsertMotion = {
|
|
|
38
30
|
kind: "pan";
|
|
39
31
|
direction: "left" | "right";
|
|
40
32
|
};
|
|
41
|
-
/** How a product picture comes onto its stage: tilted in depth and settling flat, slid in as a card, lit by a spotlight, or pushed in slowly. */
|
|
42
33
|
export declare const INSERT_STAGE_ENTRANCES: readonly ["lean_in", "slide_card", "spotlight", "push"];
|
|
43
34
|
export type InsertStageEntrance = (typeof INSERT_STAGE_ENTRANCES)[number];
|
|
44
35
|
export declare const SPLIT_MEDIA_SIDES: readonly ["top", "bottom"];
|
|
@@ -50,35 +41,26 @@ export declare const SPLIT_MEDIA_SHARE: {
|
|
|
50
41
|
export declare const MAX_OVERLAYS = 30;
|
|
51
42
|
export declare const MAX_LAYOUT_WINDOWS = 15;
|
|
52
43
|
export declare const MAX_OVERLAYS_AT_ONCE = 3;
|
|
53
|
-
/** The first MAX_OVERLAYS_AT_ONCE of `others` on screen together at a word of `range`, or undefined when fewer ever are. */
|
|
54
44
|
export declare function overlayCrowd<T extends {
|
|
55
45
|
range: WordRange;
|
|
56
46
|
}>(others: readonly T[], range: WordRange): T[] | undefined;
|
|
57
|
-
/** A footprint on the frame, in shares of its width and height (#778 S3 D5). */
|
|
58
47
|
export interface LayerRect {
|
|
59
48
|
left: number;
|
|
60
49
|
top: number;
|
|
61
50
|
width: number;
|
|
62
51
|
height: number;
|
|
63
52
|
}
|
|
64
|
-
/** The frame of a `W:H` format in pixels, as the composition's `canvasForRatio` derives it: the short side 1080, both sides even. */
|
|
65
53
|
export declare function frameCanvasOf(aspectRatio: string): {
|
|
66
54
|
width: number;
|
|
67
55
|
height: number;
|
|
68
56
|
};
|
|
69
|
-
/** The most an overlay at `position` takes, as `overlayBox` draws it: a corner 42% wide, a band the width less margins, 30% high. */
|
|
70
57
|
export declare function overlayRect(position: OverlayPosition, canvas: {
|
|
71
58
|
width: number;
|
|
72
59
|
height: number;
|
|
73
60
|
}): LayerRect;
|
|
74
|
-
/** Two footprints collide when they share an area; touching edges do not. */
|
|
75
61
|
export declare function rectsOverlap(a: LayerRect, b: LayerRect): boolean;
|
|
76
|
-
/** How the presenter is framed: close as every portrait was, wide, lower with room above (#884 S5d), or full, head to feet (#1175 S7). */
|
|
77
|
-
/** wide and full are 9:16 views only. */
|
|
78
62
|
export declare const PRESENTER_FRAMINGS: readonly ["close", "wide", "full"];
|
|
79
63
|
export type PresenterFraming = (typeof PRESENTER_FRAMINGS)[number];
|
|
80
|
-
/** Where the presenter's face sits: 12–48% of the height and the middle 60% of a 9:16 clip, which other formats fit whole and centre (#778 S3). */
|
|
81
|
-
/** A wide 9:16 view puts it at 33–58% and the middle half, as measured on a HeyGen render (#884 S5d). */
|
|
82
64
|
export declare function faceZone(aspectRatio: string, framing?: PresenterFraming): LayerRect;
|
|
83
65
|
type WordAnchor = {
|
|
84
66
|
startWord: number;
|
|
@@ -96,20 +78,16 @@ export interface WordRange {
|
|
|
96
78
|
startWord: number;
|
|
97
79
|
coverWord: number;
|
|
98
80
|
}
|
|
99
|
-
/** The words an item covers, `[startWord, coverWord)`, as an insert anchor resolves; a string names why it does not resolve. */
|
|
100
81
|
export declare function layerWordRange(tokens: readonly string[], item: AnchoredItem): WordRange | string;
|
|
101
82
|
export interface LayerRefusal {
|
|
102
83
|
path: (string | number)[];
|
|
103
84
|
message: string;
|
|
104
85
|
}
|
|
105
|
-
/** An overlay at a preset position or at a place: exactly one of the two. */
|
|
106
|
-
/** A template drawn over the presenter carries `own`, the rect its kind draws (#973 S4): its box without a place, its shape scaled whole with one. */
|
|
107
86
|
export type PlaceableOverlay = AnchoredItem & {
|
|
108
87
|
position?: OverlayPosition | undefined;
|
|
109
88
|
place?: Place | undefined;
|
|
110
89
|
own?: LayerRect | undefined;
|
|
111
90
|
};
|
|
112
|
-
/** The templates a scene adds to the overlays for one framing; templates/index.ts gives them, which this module cannot import. */
|
|
113
91
|
export type SceneExtras = (framing: PresenterFraming) => readonly PlaceableOverlay[];
|
|
114
92
|
export interface LayerCheckInput {
|
|
115
93
|
script: string;
|
|
@@ -127,24 +105,18 @@ export interface LayerCheckInput {
|
|
|
127
105
|
caption_place?: CaptionPlace | undefined;
|
|
128
106
|
presenter_place?: PresenterPlace | undefined;
|
|
129
107
|
}
|
|
130
|
-
/** What a placed overlay may stand by at admission: the planned face and, with captions, the tallest page's box where they sit (#973 S2). */
|
|
131
108
|
export interface AdmissionScene {
|
|
132
109
|
face: LayerRect;
|
|
133
110
|
captions?: LayerRect | undefined;
|
|
134
111
|
}
|
|
135
112
|
export declare function admissionScene(input: Pick<LayerCheckInput, "captions" | "caption_style" | "caption_position" | "caption_place" | "presenter_place">, aspectRatio: string, framing: PresenterFraming): AdmissionScene;
|
|
136
|
-
/** The sides a place may take next to the captions: a page grows sideways with its words. */
|
|
137
113
|
export declare const CAPTION_SIDES: readonly string[];
|
|
138
|
-
/** The framings an admitted run may render: a wider request renders narrower when the actor has no such view (full falls to wide, then close); */
|
|
139
|
-
/** wide and full need an actor and 9:16. */
|
|
140
114
|
export declare function admissionFramings(input: {
|
|
141
115
|
aspect_ratio?: string | undefined;
|
|
142
116
|
presenter_framing?: unknown;
|
|
143
117
|
actor_id?: unknown;
|
|
144
118
|
}): PresenterFraming[];
|
|
145
|
-
/** How many layers a place leans on through `{ layer }`, Infinity in a loop or past a missing or preset anchor; a template is an anchor as drawn. */
|
|
146
119
|
export declare function placeDepth(overlays: readonly PlaceableOverlay[], id: string, seen?: ReadonlySet<string>): number;
|
|
147
|
-
/** A template's own rect in pixels: the shape its place scales it to. */
|
|
148
120
|
export declare const ownPixels: (own: LayerRect, canvas: {
|
|
149
121
|
width: number;
|
|
150
122
|
height: number;
|
|
@@ -152,23 +124,16 @@ export declare const ownPixels: (own: LayerRect, canvas: {
|
|
|
152
124
|
width: number;
|
|
153
125
|
height: number;
|
|
154
126
|
};
|
|
155
|
-
/** Each layer's box at admission, by id: a preset's footprint, a template's own rect, a place resolved on the usual face (a template's shape scaled
|
|
156
|
-
* whole into it); a place on a broken chain has none. */
|
|
157
127
|
export declare function overlayFootprints(overlays: readonly PlaceableOverlay[], aspectRatio: string, framing: PresenterFraming, scene?: AdmissionScene): Map<string, LayerRect>;
|
|
158
|
-
/** Over this share of the face's box a placed overlay covers the face; under it, it touches the edge (#973 S1). */
|
|
159
128
|
export declare const FACE_COVER_SHARE = 0.1;
|
|
160
|
-
/** Under this share of the frame's short side an overlay would not read. */
|
|
161
129
|
export declare const OVERLAY_MIN_SIDE = 0.03;
|
|
162
|
-
/** Over this share of the frame an overlay hides a presenter who is still billed. */
|
|
163
130
|
export declare const OVERLAY_COVERED_PRESENTER = 0.6;
|
|
164
|
-
/** Admission warnings for placed overlays and templates: a box at the face's edge, and a box that hides most of a billed presenter. */
|
|
165
131
|
export declare function placeWarnings(input: {
|
|
166
132
|
overlays?: unknown;
|
|
167
133
|
aspect_ratio?: unknown;
|
|
168
134
|
presenter_framing?: unknown;
|
|
169
135
|
actor_id?: unknown;
|
|
170
136
|
}, extras?: SceneExtras): string[];
|
|
171
|
-
/** The refusals a placed overlay or template meets on its anchor and on its box in every framing, at the path `at` names (#973 S1, S4). */
|
|
172
137
|
export declare function placedRefusals(what: "overlay" | "template", item: PlaceableOverlay & {
|
|
173
138
|
place: Place;
|
|
174
139
|
}, range: WordRange, at: (...rest: string[]) => (string | number)[], scene: {
|
|
@@ -183,20 +148,16 @@ export declare function placedRefusals(what: "overlay" | "template", item: Place
|
|
|
183
148
|
height: number;
|
|
184
149
|
};
|
|
185
150
|
}): LayerRefusal[];
|
|
186
|
-
/** Every refusal of overlays and layout windows against the script, named by path; empty when they render. `extras` adds the run's templates. */
|
|
187
151
|
export declare function layerRefusals(input: LayerCheckInput, extras?: SceneExtras): LayerRefusal[];
|
|
188
152
|
export interface LayerFrames {
|
|
189
153
|
id: string;
|
|
190
154
|
startFrame: number;
|
|
191
155
|
endFrame: number;
|
|
192
156
|
}
|
|
193
|
-
/** Each overlay's first frame moved by its enter_offset_s (#973 S3), inside its own frames and the video. Overlays that left on or before its first */
|
|
194
|
-
/** word and still show then leave as it enters, so no more overlays share the screen than their words allow. */
|
|
195
157
|
export declare function offsetOverlayFrames(frames: readonly LayerFrames[], overlays: readonly {
|
|
196
158
|
id: string;
|
|
197
159
|
enter_offset_s?: number | undefined;
|
|
198
160
|
}[], fps: number, warnings: string[]): LayerFrames[];
|
|
199
|
-
/** Frames of each word range on the run's narration, by the rule inserts follow: a range ends where its first uncovered word starts. */
|
|
200
161
|
export declare function resolveLayerFrames(input: {
|
|
201
162
|
tokens: readonly string[];
|
|
202
163
|
words: readonly WordTiming[];
|