@clipwright/core 0.59.0 → 0.61.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.js +0 -2
- package/dist/ad-pause-trim.d.ts +0 -5
- package/dist/ad-pause-trim.js +0 -8
- package/dist/api-failure.d.ts +0 -44
- package/dist/api-failure.js +0 -62
- 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 +6 -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 +61 -3
- package/dist/contracts/v1/workflow-brief.js +0 -13
- package/dist/contracts/v1/workflow-catalog.d.ts +118 -0
- package/dist/contracts/v1/workflow-catalog.js +0 -3
- package/dist/contracts/v1/workflow-client.d.ts +116 -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 +47 -1
- package/dist/contracts/v1/workflow-execution.js +0 -4
- package/dist/contracts/v1/workflow-next.d.ts +13 -2
- package/dist/contracts/v1/workflow-next.js +0 -3
- package/dist/contracts/v1/workflow-plan.d.ts +177 -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 +15 -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/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-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 +7 -21
- package/dist/errors.d.ts +0 -42
- package/dist/errors.js +0 -54
- package/dist/explainer-fit.d.ts +0 -7
- package/dist/explainer-fit.js +0 -10
- package/dist/face-billing.d.ts +29 -11
- package/dist/face-billing.js +6 -25
- 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 +27 -0
- package/dist/faceless-direction-summary.js +8 -0
- 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 +40 -35
- package/dist/faceless-price.js +35 -49
- package/dist/faceless-public-plan.d.ts +0 -13
- package/dist/faceless-public-plan.js +0 -11
- package/dist/faceless-public.d.ts +63 -22
- package/dist/faceless-public.js +23 -58
- 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 +3 -0
- package/dist/index.js +3 -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 +2 -9
- package/dist/naming.d.ts +0 -3
- package/dist/naming.js +0 -19
- package/dist/openapi.d.ts +0 -13
- package/dist/openapi.js +6 -11
- package/dist/output-provenance.d.ts +0 -4
- package/dist/output-provenance.js +0 -5
- package/dist/own-agent-price.d.ts +19 -22
- package/dist/own-agent-price.js +30 -25
- package/dist/own-agent-runs.d.ts +111 -11
- package/dist/own-agent-runs.js +89 -24
- package/dist/pacing.d.ts +3 -15
- package/dist/pacing.js +18 -18
- package/dist/parts-pricing.d.ts +8 -24
- package/dist/parts-pricing.js +19 -30
- 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 +4 -5
- 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 +16 -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 +0 -12
- package/dist/templates/sounds.js +0 -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 +1 -15
- package/dist/uploads.js +3 -20
- 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 +2 -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 +33 -0
- package/dist/workflows/methods/faceless-explainer.js +0 -1
- package/dist/workflows/methods/kinetic-launch.d.ts +66 -1
- package/dist/workflows/methods/kinetic-launch.js +0 -2
- package/dist/workflows/methods/product-image-story.d.ts +33 -0
- package/dist/workflows/methods/product-image-story.js +0 -1
- package/dist/workflows/methods/reference-remake.d.ts +33 -0
- package/dist/workflows/methods/reference-remake.js +0 -1
- package/dist/workflows/methods/shared.d.ts +33 -1
- package/dist/workflows/methods/shared.js +0 -3
- package/dist/workflows/methods/ugc-faq-answer.d.ts +33 -0
- package/dist/workflows/methods/ugc-faq-answer.js +0 -1
- package/dist/workflows/methods/ugc-product-intro.d.ts +33 -0
- package/dist/workflows/methods/ugc-product-intro.js +0 -1
- package/dist/workflows/methods/website-proof-demo.d.ts +66 -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-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
|
@@ -77,13 +77,10 @@ export function parseFacelessPublicStory(input, expectedScript) {
|
|
|
77
77
|
}
|
|
78
78
|
return story;
|
|
79
79
|
}
|
|
80
|
-
/** Per second above the pace band: an emphasis cut is dropped only while the merged shot stays within 0.5 s of the band's top. */
|
|
81
80
|
const PACE_OVER_PENALTY = 2;
|
|
82
|
-
/** The opening VIDEO lasts 3–5 s at 25 fps. */
|
|
83
81
|
export const FACELESS_OPENER_MIN_FRAMES = 75, FACELESS_OPENER_MAX_FRAMES = 125;
|
|
84
82
|
export const FACELESS_IMAGE_MIN_FRAMES = 25, FACELESS_IMAGE_MAX_FRAMES = 150;
|
|
85
83
|
export const FACELESS_OPENER_BOUNDS_ERROR = `mandatory opening VIDEO requires ${FACELESS_OPENER_MIN_FRAMES}–${FACELESS_OPENER_MAX_FRAMES} frames`;
|
|
86
|
-
/** Speech boundaries and planner cuts share the native nearest-frame clock. */
|
|
87
84
|
export const facelessSpeechFrame = (seconds) => Math.round(seconds * 25);
|
|
88
85
|
export function planPublicFacelessStory(input, words, inputStyle, outputFrames, options = {}) {
|
|
89
86
|
if (!Number.isSafeInteger(outputFrames) || outputFrames < FACELESS_MIN_OUTPUT_FRAMES || outputFrames > FACELESS_MAX_OUTPUT_FRAMES) {
|
|
@@ -136,7 +133,6 @@ export function planPublicFacelessStory(input, words, inputStyle, outputFrames,
|
|
|
136
133
|
const openerScore = facelessCutScore(story.beats[nodes[k].beatIndex].reason, 0, { p25: 0, p75: 0 });
|
|
137
134
|
states[k] = { total: openerScore.net, path: [k], scores: [openerScore] };
|
|
138
135
|
};
|
|
139
|
-
// The opener may end at any beat boundary inside its bounds, absorbing the beats before it.
|
|
140
136
|
for (const [k, node] of nodes.entries()) {
|
|
141
137
|
if (k > 0 && options.keepBeats?.has(k))
|
|
142
138
|
break;
|
|
@@ -144,9 +140,7 @@ export function planPublicFacelessStory(input, words, inputStyle, outputFrames,
|
|
|
144
140
|
seedOpener(k);
|
|
145
141
|
}
|
|
146
142
|
if (!states.some(Boolean)) {
|
|
147
|
-
// Word-gap opener: beat 0 alone, cut at beat 1's first in-bounds gap that leaves beat 1 an IMAGE shot's minimum.
|
|
148
143
|
const next = story.beats[1], nextEndFrame = nodes[1]?.frame ?? outputFrames;
|
|
149
|
-
// A kept range reaching into beat 1 belongs to that beat's picture, so the gap falls before its first word.
|
|
150
144
|
const pastKept = (cut) => options.keepTogether?.some(range => range.end > next.wordStart && range.first <= cut.afterWord) ?? false;
|
|
151
145
|
const gap = options.openerWordGap ? Array.from({ length: next.wordEnd - next.wordStart - 1 }, (_, i) => cutAfter(next.wordStart + i))
|
|
152
146
|
.find(cut => inOpenerBounds(cut.frame) && (options.openerGapPastKept || !pastKept(cut))) : undefined;
|
|
@@ -163,10 +157,8 @@ export function planPublicFacelessStory(input, words, inputStyle, outputFrames,
|
|
|
163
157
|
for (let start = 0; start < end; start++) {
|
|
164
158
|
const prior = states[start];
|
|
165
159
|
const duration = nodes[end].frame - nodes[start].frame;
|
|
166
|
-
// The last picture also holds the end; its own words keep to the usual bound.
|
|
167
160
|
if (!prior || duration < FACELESS_IMAGE_MIN_FRAMES || duration > imageMaxFrames + (end === final ? endHoldFrames : 0))
|
|
168
161
|
continue;
|
|
169
|
-
// The shot speaks words (nodes[start].afterWord, nodes[end].afterWord]; one holding a capped range keeps to its cap.
|
|
170
162
|
if (options.capFrames?.some(range => duration > range.maxFrames && range.first <= nodes[end].afterWord &&
|
|
171
163
|
range.end > nodes[start].afterWord + 1))
|
|
172
164
|
continue;
|
|
@@ -193,12 +185,10 @@ export function planPublicFacelessStory(input, words, inputStyle, outputFrames,
|
|
|
193
185
|
const node = nodes[nodeIndex];
|
|
194
186
|
const included = story.beats.slice(beatStart, node.beatIndex);
|
|
195
187
|
const hold = style.motion.pan_transition_n > 0 && style.motion.pan_flip_probability !== null && style.motion.pan_flip_probability < .5;
|
|
196
|
-
// One picture shows one scene: a shot of several beats takes the prompt of the beat on screen longest, the earlier on a tie.
|
|
197
188
|
const onScreen = included.map((_, k) => Math.min(node.frame, beatFrame(beatStart + k + 1)) - Math.max(startFrame, beatFrame(beatStart + k)));
|
|
198
189
|
const lead = onScreen.indexOf(Math.max(...onScreen));
|
|
199
190
|
const shot = {
|
|
200
191
|
id: included[0].id, mediaType: i ? "image" : "video", startFrame, endFrame: node.frame,
|
|
201
|
-
// Absorbed beats carry IMAGE prompts, so the opener keeps only its own beat's prompt.
|
|
202
192
|
beatIds: included.map(b => b.id), visualPrompts: [included[i ? lead : 0].visualPrompt], phase: included[0].phase,
|
|
203
193
|
...(i ? { motion: hold || i % 2 === 1 ? "PAN_UP" : "PAN_DOWN" } : {}),
|
|
204
194
|
...(nodeIndex < final ? { cutAfterWord: node.afterWord } : {}), score: selected.scores[i],
|
|
@@ -211,4 +201,3 @@ export function planPublicFacelessStory(input, words, inputStyle, outputFrames,
|
|
|
211
201
|
narrationStartFrame: story.narrationStartFrame, captionPhrases,
|
|
212
202
|
...(imageMaxFrames > FACELESS_IMAGE_MAX_FRAMES ? { imageMaxFrames } : {}), ...(endHoldFrames > 0 ? { endHoldFrames } : {}), shots };
|
|
213
203
|
}
|
|
214
|
-
//# sourceMappingURL=faceless-public-plan.js.map
|
|
@@ -37,7 +37,6 @@ declare const scriptTransitions: z.ZodObject<{
|
|
|
37
37
|
}, z.core.$strict>>]>>;
|
|
38
38
|
}, z.core.$strict>;
|
|
39
39
|
export type FacelessTransitionsInput = z.infer<typeof scriptTransitions>;
|
|
40
|
-
/** A brief that names no transitions gets a flash on every scene change at admission (#1067); `false` keeps plain cuts. */
|
|
41
40
|
export declare const FACELESS_BRIEF_DEFAULT_TRANSITIONS: Readonly<{
|
|
42
41
|
readonly look: "flash";
|
|
43
42
|
readonly at: "scene_changes";
|
|
@@ -45,42 +44,53 @@ export declare const FACELESS_BRIEF_DEFAULT_TRANSITIONS: Readonly<{
|
|
|
45
44
|
export declare const FACELESS_FORMATS: readonly ["standard", "explainer"];
|
|
46
45
|
export declare const FACELESS_EXPLAINER_DISABLED_MESSAGE = "format explainer is not available on make_faceless right now; omit format";
|
|
47
46
|
export declare const FACELESS_EXPLAINER_BRIEF_REFUSAL = "format explainer needs input_mode script: write it as a hook, three to five steps and a result";
|
|
48
|
-
/** The frame a faceless run delivers: 720 by 1280 when admission pinned 720p (#911), else the 1080 by 1920 of every earlier run and every revision. */
|
|
49
47
|
export declare function facelessRunFrame(storedInput: unknown): {
|
|
50
48
|
width: number;
|
|
51
49
|
height: number;
|
|
52
50
|
};
|
|
53
|
-
/** The explainer (#1216) draws its own scene on every phrase, so the fields that place pictures, clips or graphics have no room in it. */
|
|
54
51
|
export declare const EXPLAINER_OWN_FIELDS: readonly ["style_reference", "transitions", "templates", "shots", "scenes", "moves", "motion_style", "music"];
|
|
55
52
|
export declare const explainerOwnFieldMessage: (field: string) => string;
|
|
56
|
-
/** An explainer places at most this many of the customer's product pictures, each on its own words (#1322). */
|
|
57
53
|
export declare const EXPLAINER_MAX_PRODUCT_PICTURES = 3;
|
|
58
54
|
export declare const EXPLAINER_PRODUCT_PICTURES_REFUSAL = "format explainer places at most 3 of your pictures";
|
|
59
|
-
/** Why an explainer's pictures cannot be placed: too many, or words of the script none or more than one of them names alone. */
|
|
60
55
|
export declare function explainerPictureRefusals(script: unknown, images: unknown): {
|
|
61
56
|
path: (string | number)[];
|
|
62
57
|
message: string;
|
|
63
58
|
}[];
|
|
64
|
-
/** What an explainer request may not carry: a brief, a field the explainer draws itself, or pictures it cannot place. */
|
|
65
59
|
export declare function explainerFieldRefusals(input: Record<string, unknown>): {
|
|
66
60
|
path: (string | number)[];
|
|
67
61
|
message: string;
|
|
68
62
|
}[];
|
|
69
|
-
/** A mascot is the explainer's hero already made: it needs the format, and it replaces a character the run would draw. */
|
|
70
63
|
export declare function mascotFieldRefusals(input: Record<string, unknown>): {
|
|
71
64
|
path: string[];
|
|
72
65
|
message: string;
|
|
73
66
|
}[];
|
|
74
|
-
/** A tier picks the explainer's level, so it means nothing on another format. */
|
|
75
67
|
export declare const EXPLAINER_TIER_REFUSAL = "tier needs format explainer: it picks the explainer's level";
|
|
76
|
-
|
|
68
|
+
export declare function facelessTierRefusal(input: {
|
|
69
|
+
tier?: unknown;
|
|
70
|
+
format?: unknown;
|
|
71
|
+
}, directed: boolean): string | null;
|
|
72
|
+
export declare function directedFacelessTier(input: {
|
|
73
|
+
tier?: (typeof EXPLAINER_TIERS)[number] | undefined;
|
|
74
|
+
}): (typeof EXPLAINER_TIERS)[number];
|
|
75
|
+
export declare const facelessDirectedMark: z.ZodObject<{
|
|
76
|
+
version: z.ZodLiteral<1>;
|
|
77
|
+
tier: z.ZodEnum<{
|
|
78
|
+
pro: "pro";
|
|
79
|
+
standard: "standard";
|
|
80
|
+
}>;
|
|
81
|
+
pairing: z.ZodEnum<{
|
|
82
|
+
by_meaning: "by_meaning";
|
|
83
|
+
keep: "keep";
|
|
84
|
+
none: "none";
|
|
85
|
+
}>;
|
|
86
|
+
}, z.core.$strict>;
|
|
87
|
+
export type FacelessDirectedMark = z.infer<typeof facelessDirectedMark>;
|
|
77
88
|
export declare function facelessMotionStyleWarnings(input: {
|
|
78
89
|
motion_style?: Parameters<typeof motionStyleAsked>[0]["motion_style"];
|
|
79
90
|
captions?: boolean | undefined;
|
|
80
91
|
templates?: readonly unknown[] | undefined;
|
|
81
92
|
scenes?: readonly unknown[] | undefined;
|
|
82
93
|
}): string[];
|
|
83
|
-
/** Action shots (#1113): a moving clip from the picture under the named words, on those words, instead of the still. */
|
|
84
94
|
export declare const facelessActionShot: z.ZodObject<{
|
|
85
95
|
id: z.ZodString;
|
|
86
96
|
anchor: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -3143,6 +3153,7 @@ export declare const makeFacelessInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3143
3153
|
comma_s: z.ZodOptional<z.ZodNumber>;
|
|
3144
3154
|
mid_phrase_s: z.ZodOptional<z.ZodNumber>;
|
|
3145
3155
|
}, z.core.$strict>]>>;
|
|
3156
|
+
keep_anchors: z.ZodOptional<z.ZodBoolean>;
|
|
3146
3157
|
}, z.core.$strict>, z.ZodObject<{
|
|
3147
3158
|
duration_seconds: z.ZodNumber;
|
|
3148
3159
|
style_reference: z.ZodOptional<z.ZodString>;
|
|
@@ -3443,10 +3454,10 @@ export declare const makeFacelessInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3443
3454
|
scenes: z.ZodOptional<z.ZodNever>;
|
|
3444
3455
|
moves: z.ZodOptional<z.ZodNever>;
|
|
3445
3456
|
pause_trim: z.ZodOptional<z.ZodNever>;
|
|
3457
|
+
keep_anchors: z.ZodOptional<z.ZodNever>;
|
|
3446
3458
|
}, z.core.$strict>], "input_mode">;
|
|
3447
3459
|
export type MakeFacelessInput = z.infer<typeof makeFacelessInput>;
|
|
3448
3460
|
export type MakeFacelessInputArgs = z.input<typeof makeFacelessInput>;
|
|
3449
|
-
/** The stored input of a revision: the request as resolved, and what admission froze about it. */
|
|
3450
3461
|
export declare const facelessRevisionInput: z.ZodObject<{
|
|
3451
3462
|
input_mode: z.ZodLiteral<"revision">;
|
|
3452
3463
|
revision: z.ZodObject<{
|
|
@@ -3562,7 +3573,6 @@ export declare const facelessRevisionInput: z.ZodObject<{
|
|
|
3562
3573
|
}, z.core.$strict>;
|
|
3563
3574
|
}, z.core.$strict>;
|
|
3564
3575
|
export type FacelessRevisionInput = z.infer<typeof facelessRevisionInput>;
|
|
3565
|
-
/** What a `make_faceless` run stores as its input: a generate request or a revision. */
|
|
3566
3576
|
export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3567
3577
|
duration_seconds: z.ZodNumber;
|
|
3568
3578
|
style_reference: z.ZodOptional<z.ZodString>;
|
|
@@ -6603,6 +6613,7 @@ export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6603
6613
|
comma_s: z.ZodOptional<z.ZodNumber>;
|
|
6604
6614
|
mid_phrase_s: z.ZodOptional<z.ZodNumber>;
|
|
6605
6615
|
}, z.core.$strict>]>>;
|
|
6616
|
+
keep_anchors: z.ZodOptional<z.ZodBoolean>;
|
|
6606
6617
|
insert_assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6607
6618
|
insert_id: z.ZodString;
|
|
6608
6619
|
slot: z.ZodOptional<z.ZodString>;
|
|
@@ -6689,6 +6700,18 @@ export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6689
6700
|
}, z.core.$strict>>;
|
|
6690
6701
|
knowledge: z.ZodOptional<z.ZodLiteral<"ugc_ad">>;
|
|
6691
6702
|
}, z.core.$strict>>;
|
|
6703
|
+
directed: z.ZodOptional<z.ZodObject<{
|
|
6704
|
+
version: z.ZodLiteral<1>;
|
|
6705
|
+
tier: z.ZodEnum<{
|
|
6706
|
+
pro: "pro";
|
|
6707
|
+
standard: "standard";
|
|
6708
|
+
}>;
|
|
6709
|
+
pairing: z.ZodEnum<{
|
|
6710
|
+
by_meaning: "by_meaning";
|
|
6711
|
+
keep: "keep";
|
|
6712
|
+
none: "none";
|
|
6713
|
+
}>;
|
|
6714
|
+
}, z.core.$strict>>;
|
|
6692
6715
|
}, z.core.$strict>, z.ZodObject<{
|
|
6693
6716
|
duration_seconds: z.ZodNumber;
|
|
6694
6717
|
style_reference: z.ZodOptional<z.ZodString>;
|
|
@@ -6989,6 +7012,7 @@ export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6989
7012
|
scenes: z.ZodOptional<z.ZodNever>;
|
|
6990
7013
|
moves: z.ZodOptional<z.ZodNever>;
|
|
6991
7014
|
pause_trim: z.ZodOptional<z.ZodNever>;
|
|
7015
|
+
keep_anchors: z.ZodOptional<z.ZodNever>;
|
|
6992
7016
|
scene_direction: z.ZodOptional<z.ZodObject<{
|
|
6993
7017
|
mode: z.ZodLiteral<"complete">;
|
|
6994
7018
|
proposal: z.ZodOptional<z.ZodObject<{
|
|
@@ -6998,6 +7022,18 @@ export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6998
7022
|
}, z.core.$strict>>;
|
|
6999
7023
|
knowledge: z.ZodOptional<z.ZodLiteral<"ugc_ad">>;
|
|
7000
7024
|
}, z.core.$strict>>;
|
|
7025
|
+
directed: z.ZodOptional<z.ZodObject<{
|
|
7026
|
+
version: z.ZodLiteral<1>;
|
|
7027
|
+
tier: z.ZodEnum<{
|
|
7028
|
+
pro: "pro";
|
|
7029
|
+
standard: "standard";
|
|
7030
|
+
}>;
|
|
7031
|
+
pairing: z.ZodEnum<{
|
|
7032
|
+
by_meaning: "by_meaning";
|
|
7033
|
+
keep: "keep";
|
|
7034
|
+
none: "none";
|
|
7035
|
+
}>;
|
|
7036
|
+
}, z.core.$strict>>;
|
|
7001
7037
|
}, z.core.$strict>, z.ZodObject<{
|
|
7002
7038
|
input_mode: z.ZodLiteral<"revision">;
|
|
7003
7039
|
revision: z.ZodObject<{
|
|
@@ -7113,27 +7149,19 @@ export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7113
7149
|
}, z.core.$strict>;
|
|
7114
7150
|
}, z.core.$strict>], "input_mode">;
|
|
7115
7151
|
export type FacelessStoredInput = z.infer<typeof facelessStoredInput>;
|
|
7116
|
-
/** Admission and the run validate accepted input without canonicalizing its narration again. */
|
|
7117
|
-
/** A brief's default flash is frozen here, so the stored input names what the video draws; a stored input is read as stored. */
|
|
7118
7152
|
export declare function parseFacelessInputPreservingScript(input: unknown): MakeFacelessInput;
|
|
7119
7153
|
export declare function parseFacelessStoredInputPreservingScript(input: unknown): FacelessStoredInput;
|
|
7120
|
-
/** A request's quote: what the quote shows and admission reserves, read from the same fields by the same call. */
|
|
7121
|
-
/** `explainerBeats`: an explainer's drawn scenes are on, so the quote holds them. `explainerFilm`: the explainer is priced as one drawn film. */
|
|
7122
7154
|
export declare function quoteFacelessInput(input: MakeFacelessInput, options?: {
|
|
7123
7155
|
explainerBeats?: boolean;
|
|
7124
7156
|
explainerFilm?: SkillFilmTariff;
|
|
7125
7157
|
}): FacelessQuote;
|
|
7126
|
-
/** Both levels' totals for one explainer request (#1291 F4), each as admission would reserve it on that level; the quote names the chosen one. */
|
|
7127
7158
|
export declare function explainerTierTotals(input: MakeFacelessInput): {
|
|
7128
7159
|
tier: (typeof EXPLAINER_TIERS)[number];
|
|
7129
7160
|
standard: number;
|
|
7130
7161
|
pro: number;
|
|
7131
7162
|
};
|
|
7132
|
-
/** The API routes repeat these paths as literals, and a test keeps them equal. */
|
|
7133
7163
|
export declare const FACELESS_QUOTE_PATH = "/v1/skills/make_faceless/quote";
|
|
7134
7164
|
export declare const FACELESS_RUN_PATH = "/v1/skills/make_faceless/run";
|
|
7135
|
-
/** Flat form of `makeFacelessInput` for MCP, which needs an object shape, not a union. */
|
|
7136
|
-
/** Clients still parse with `makeFacelessInput` before sending, so the union stays the contract. */
|
|
7137
7165
|
export declare const offeredFacelessInputShape: {
|
|
7138
7166
|
input_mode: z.ZodEnum<{
|
|
7139
7167
|
brief: "brief";
|
|
@@ -7191,6 +7219,7 @@ export declare const offeredFacelessInputShape: {
|
|
|
7191
7219
|
standard: "standard";
|
|
7192
7220
|
}>>;
|
|
7193
7221
|
pause_trim: z.ZodOptional<z.ZodUnknown>;
|
|
7222
|
+
keep_anchors: z.ZodOptional<z.ZodBoolean>;
|
|
7194
7223
|
voice: z.ZodOptional<z.ZodString>;
|
|
7195
7224
|
resolution: z.ZodOptional<z.ZodEnum<{
|
|
7196
7225
|
"1080p": "1080p";
|
|
@@ -7214,8 +7243,6 @@ export declare const offeredFacelessInputShape: {
|
|
|
7214
7243
|
}, z.core.$strict>>;
|
|
7215
7244
|
propose: z.ZodOptional<z.ZodLiteral<false>>;
|
|
7216
7245
|
};
|
|
7217
|
-
/** The flat form as a tool input: an undeclared key is refused at the tool boundary, */
|
|
7218
|
-
/** a field refused by name with its registry reason. */
|
|
7219
7246
|
export declare const offeredFacelessInput: z.ZodObject<{
|
|
7220
7247
|
input_mode: z.ZodEnum<{
|
|
7221
7248
|
brief: "brief";
|
|
@@ -7273,6 +7300,7 @@ export declare const offeredFacelessInput: z.ZodObject<{
|
|
|
7273
7300
|
standard: "standard";
|
|
7274
7301
|
}>>;
|
|
7275
7302
|
pause_trim: z.ZodOptional<z.ZodUnknown>;
|
|
7303
|
+
keep_anchors: z.ZodOptional<z.ZodBoolean>;
|
|
7276
7304
|
voice: z.ZodOptional<z.ZodString>;
|
|
7277
7305
|
resolution: z.ZodOptional<z.ZodEnum<{
|
|
7278
7306
|
"1080p": "1080p";
|
|
@@ -7315,6 +7343,7 @@ export declare const facelessQuoteResponse: z.ZodObject<{
|
|
|
7315
7343
|
tariffId: z.ZodEnum<{
|
|
7316
7344
|
"faceless-image-i2v-v1": "faceless-image-i2v-v1";
|
|
7317
7345
|
"faceless-parts-v1": "faceless-parts-v1";
|
|
7346
|
+
"faceless-parts-v2": "faceless-parts-v2";
|
|
7318
7347
|
}>;
|
|
7319
7348
|
captions: z.ZodBoolean;
|
|
7320
7349
|
images: z.ZodOptional<z.ZodNumber>;
|
|
@@ -7322,6 +7351,9 @@ export declare const facelessQuoteResponse: z.ZodObject<{
|
|
|
7322
7351
|
musicCredits: z.ZodOptional<z.ZodNumber>;
|
|
7323
7352
|
shotSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7324
7353
|
shotCredits: z.ZodOptional<z.ZodNumber>;
|
|
7354
|
+
textShotSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7355
|
+
textShotCredits: z.ZodOptional<z.ZodNumber>;
|
|
7356
|
+
totalCreditsWithoutText: z.ZodOptional<z.ZodNumber>;
|
|
7325
7357
|
scenes: z.ZodOptional<z.ZodNumber>;
|
|
7326
7358
|
sceneCredits: z.ZodOptional<z.ZodNumber>;
|
|
7327
7359
|
posePictures: z.ZodOptional<z.ZodNumber>;
|
|
@@ -7330,6 +7362,7 @@ export declare const facelessQuoteResponse: z.ZodObject<{
|
|
|
7330
7362
|
objectPictures: z.ZodOptional<z.ZodNumber>;
|
|
7331
7363
|
objectPictureCredits: z.ZodOptional<z.ZodNumber>;
|
|
7332
7364
|
filmCredits: z.ZodOptional<z.ZodNumber>;
|
|
7365
|
+
directionCredits: z.ZodOptional<z.ZodNumber>;
|
|
7333
7366
|
skill: z.ZodLiteral<"make_faceless">;
|
|
7334
7367
|
explainer_fit: z.ZodOptional<z.ZodObject<{
|
|
7335
7368
|
fits: z.ZodBoolean;
|
|
@@ -7344,6 +7377,14 @@ export declare const facelessQuoteResponse: z.ZodObject<{
|
|
|
7344
7377
|
standard: z.ZodNumber;
|
|
7345
7378
|
pro: z.ZodNumber;
|
|
7346
7379
|
}, z.core.$strict>>;
|
|
7380
|
+
tiers: z.ZodOptional<z.ZodObject<{
|
|
7381
|
+
tier: z.ZodEnum<{
|
|
7382
|
+
pro: "pro";
|
|
7383
|
+
standard: "standard";
|
|
7384
|
+
}>;
|
|
7385
|
+
standard: z.ZodNumber;
|
|
7386
|
+
pro: z.ZodNumber;
|
|
7387
|
+
}, z.core.$strict>>;
|
|
7347
7388
|
scene_proposal: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7348
7389
|
state: z.ZodLiteral<"writing">;
|
|
7349
7390
|
retry_after_s: z.ZodNumber;
|
package/dist/faceless-public.js
CHANGED
|
@@ -41,28 +41,23 @@ export const facelessCustomerSceneImage = z.object({
|
|
|
41
41
|
anchor: facelessSceneAnchor,
|
|
42
42
|
}).strict();
|
|
43
43
|
const customIssue = "custom";
|
|
44
|
-
/** Cut transitions of a new run: every scene change, or the one nearest each anchor's first word. */
|
|
45
44
|
const transitionLook = z.enum(FACELESS_TRANSITION_LOOKS);
|
|
46
45
|
const scriptTransitions = z.strictObject({
|
|
47
46
|
look: transitionLook,
|
|
48
47
|
at: z.union([z.literal("scene_changes"), z.array(z.strictObject({ anchor: facelessSceneAnchor })).min(1).max(100)]).default("scene_changes"),
|
|
49
48
|
});
|
|
50
|
-
// A brief's narration is written by the run, so no word of it can be named in advance.
|
|
51
49
|
const briefTransitions = z.strictObject({
|
|
52
50
|
look: transitionLook,
|
|
53
51
|
at: z.literal("scene_changes", { error: "transitions.at word anchors need input_mode script; a brief takes \"scene_changes\"" })
|
|
54
52
|
.default("scene_changes"),
|
|
55
53
|
});
|
|
56
|
-
/** A brief that names no transitions gets a flash on every scene change at admission (#1067); `false` keeps plain cuts. */
|
|
57
54
|
export const FACELESS_BRIEF_DEFAULT_TRANSITIONS = Object.freeze({ look: "flash", at: "scene_changes" });
|
|
58
|
-
/** `false` or the object; a union names no branch on its own, so the refusal carries the object's first issue with its path. */
|
|
59
55
|
const orPlainCuts = (schema) => z.union([z.literal(false), schema], { error: issue => {
|
|
60
56
|
if (issue.input === null || typeof issue.input !== "object" || Array.isArray(issue.input))
|
|
61
57
|
return "transitions is false (plain cuts) or { look, at }";
|
|
62
58
|
const inner = schema.safeParse(issue.input).error?.issues[0];
|
|
63
59
|
return inner && `${["transitions", ...inner.path.map(String)].join(".")}: ${inner.message}`;
|
|
64
60
|
} });
|
|
65
|
-
/** Sound refusals against the look the run draws: a brief without the field draws the default flash. */
|
|
66
61
|
function refuseSounds(input, context) {
|
|
67
62
|
const look = input.transitions === undefined && input.input_mode === "brief" ? FACELESS_BRIEF_DEFAULT_TRANSITIONS.look
|
|
68
63
|
: input.transitions ? input.transitions.look : undefined;
|
|
@@ -75,51 +70,39 @@ export const FACELESS_EXPLAINER_BRIEF_REFUSAL = "format explainer needs input_mo
|
|
|
75
70
|
const common = {
|
|
76
71
|
duration_seconds: z.number().min(FACELESS_MIN_SELECTED_SECONDS).max(FACELESS_MAX_SELECTED_SECONDS).refine((seconds) => Number.isInteger(seconds * 25), "duration_seconds must align to a 25 fps frame boundary"),
|
|
77
72
|
style_reference: qualifiedImageUrl.optional(),
|
|
78
|
-
// Described here once: the MCP shape and OpenAPI both read this schema (#1359).
|
|
79
73
|
character_reference: qualifiedImageUrl.optional()
|
|
80
74
|
.describe("A picture of a person or figure: a public https image, or a picture you uploaded or saved in your assets. Standard format: the figure is in every picture we generate and in the opening clip; " +
|
|
81
75
|
"your own scene_images are shown as they are. Format explainer: the figure is the hero, a person's photo drawn as a cartoon unless " +
|
|
82
76
|
"character_details ask for a photoreal look."),
|
|
83
77
|
character_details: z.string().trim().min(1).max(2000).optional(),
|
|
84
|
-
/** A saved mascot of this account (#1257) the explainer's hero is drawn from: its poses are not made again, and the quote shows none. */
|
|
85
78
|
mascot_id: assetId.optional(),
|
|
86
79
|
scene_images: z.array(facelessCustomerSceneImage).max(60).optional(),
|
|
87
80
|
captions: z.boolean().default(true),
|
|
88
|
-
// A name form only: the server checks the name, so the list grows without a client release.
|
|
89
81
|
voice: z.string({ error: "voice must be a voice name from list_voices, as a string" })
|
|
90
82
|
.regex(VOICE_NAME_PATTERN, "voice is not a voice name: take one from list_voices with skill=make_faceless")
|
|
91
83
|
.optional(),
|
|
92
84
|
voice_id: z.never({ error: FACELESS_REJECTED_FIELDS.voice_id.message }).optional(),
|
|
93
|
-
// Opt-in, so a run that never asked keeps its silent scene changes (rule 3).
|
|
94
85
|
edit_sounds: z.boolean().optional(),
|
|
95
86
|
template_sounds: facelessTemplateSounds.optional(),
|
|
96
87
|
music: musicRequest.optional(),
|
|
97
|
-
// A style dresses the captions, templates and scenes over the pictures (#1123); its spans sit on a script's words.
|
|
98
88
|
motion_style: motionStyle.optional(),
|
|
99
89
|
format: z.enum(FACELESS_FORMATS).optional(),
|
|
100
90
|
tier: z.enum(EXPLAINER_TIERS).optional(),
|
|
101
|
-
// No .default(): admission pins it, and a stored run without it is read as the 1080p it was rendered at (#911).
|
|
102
91
|
resolution: offeredResolution.optional().describe("Output resolution: 720p (720x1280) or 1080p (1080x1920). Omitted means 720p. " +
|
|
103
92
|
"The price does not depend on it."),
|
|
104
93
|
max_credits: maxCreditsField,
|
|
105
|
-
// make_ugc's scene (#1491); its posture is the main character's.
|
|
106
94
|
scene: sceneBible.optional(),
|
|
107
|
-
// quote_faceless's scene proposal (#1491), as on make_ugc: admission expands an accepted one into the fields above.
|
|
108
95
|
proposal: facelessSceneProposalAccept.optional(),
|
|
109
96
|
propose: facelessProposeField,
|
|
110
97
|
};
|
|
111
|
-
/** The frame a faceless run delivers: 720 by 1280 when admission pinned 720p (#911), else the 1080 by 1920 of every earlier run and every revision. */
|
|
112
98
|
export function facelessRunFrame(storedInput) {
|
|
113
99
|
const resolution = storedInput !== null && typeof storedInput === "object" ? storedInput.resolution : undefined;
|
|
114
100
|
return resolution === "720p" ? { width: 720, height: 1280 } : { width: 1080, height: 1920 };
|
|
115
101
|
}
|
|
116
|
-
/** The explainer (#1216) draws its own scene on every phrase, so the fields that place pictures, clips or graphics have no room in it. */
|
|
117
102
|
export const EXPLAINER_OWN_FIELDS = ["style_reference", "transitions", "templates", "shots", "scenes", "moves", "motion_style", "music"];
|
|
118
103
|
export const explainerOwnFieldMessage = (field) => `format explainer draws its own scenes; omit ${field}`;
|
|
119
|
-
/** An explainer places at most this many of the customer's product pictures, each on its own words (#1322). */
|
|
120
104
|
export const EXPLAINER_MAX_PRODUCT_PICTURES = 3;
|
|
121
105
|
export const EXPLAINER_PRODUCT_PICTURES_REFUSAL = `format explainer places at most ${EXPLAINER_MAX_PRODUCT_PICTURES} of your pictures`;
|
|
122
|
-
/** Why an explainer's pictures cannot be placed: too many, or words of the script none or more than one of them names alone. */
|
|
123
106
|
export function explainerPictureRefusals(script, images) {
|
|
124
107
|
if (!Array.isArray(images) || typeof script !== "string")
|
|
125
108
|
return [];
|
|
@@ -143,7 +126,6 @@ export function explainerPictureRefusals(script, images) {
|
|
|
143
126
|
}
|
|
144
127
|
return [];
|
|
145
128
|
}
|
|
146
|
-
/** What an explainer request may not carry: a brief, a field the explainer draws itself, or pictures it cannot place. */
|
|
147
129
|
export function explainerFieldRefusals(input) {
|
|
148
130
|
if (input.format !== "explainer")
|
|
149
131
|
return [];
|
|
@@ -151,7 +133,6 @@ export function explainerFieldRefusals(input) {
|
|
|
151
133
|
...EXPLAINER_OWN_FIELDS.filter(field => input[field] !== undefined).map(field => ({ path: [field], message: explainerOwnFieldMessage(field) })),
|
|
152
134
|
...explainerPictureRefusals(input.script, input.scene_images)];
|
|
153
135
|
}
|
|
154
|
-
/** A mascot is the explainer's hero already made: it needs the format, and it replaces a character the run would draw. */
|
|
155
136
|
export function mascotFieldRefusals(input) {
|
|
156
137
|
if (input.mascot_id === undefined)
|
|
157
138
|
return [];
|
|
@@ -161,26 +142,28 @@ export function mascotFieldRefusals(input) {
|
|
|
161
142
|
.map(field => ({ path: [field], message: `mascot_id is the hero already made; omit ${field}` })),
|
|
162
143
|
];
|
|
163
144
|
}
|
|
164
|
-
/** A tier picks the explainer's level, so it means nothing on another format. */
|
|
165
145
|
export const EXPLAINER_TIER_REFUSAL = "tier needs format explainer: it picks the explainer's level";
|
|
166
146
|
function refuseExplainerFields(input, context) {
|
|
167
|
-
const
|
|
168
|
-
for (const { path, message } of [...explainerFieldRefusals(input), ...mascotFieldRefusals(input), ...tier])
|
|
147
|
+
for (const { path, message } of [...explainerFieldRefusals(input), ...mascotFieldRefusals(input)])
|
|
169
148
|
context.addIssue({ code: customIssue, path, message });
|
|
170
149
|
}
|
|
171
|
-
|
|
150
|
+
export function facelessTierRefusal(input, directed) {
|
|
151
|
+
return input.tier !== undefined && input.format !== "explainer" && !directed ? EXPLAINER_TIER_REFUSAL : null;
|
|
152
|
+
}
|
|
153
|
+
export function directedFacelessTier(input) {
|
|
154
|
+
return input.tier ?? "standard";
|
|
155
|
+
}
|
|
156
|
+
export const facelessDirectedMark = z.strictObject({ version: z.literal(1), tier: z.enum(EXPLAINER_TIERS),
|
|
157
|
+
pairing: z.enum(["none", "keep", "by_meaning"]) });
|
|
172
158
|
export function facelessMotionStyleWarnings(input) {
|
|
173
159
|
return motionStyleAsked(input) && !motionStyleHasCanvas({ ...input, captions: input.captions !== false }) ? [MOTION_STYLE_UNUSED_WARNING] : [];
|
|
174
160
|
}
|
|
175
|
-
/** Templates over the pictures (#1113): kinds on the script's words; a slot may show the account's own picture or clip (asset_id), as on make_ugc.
|
|
176
|
-
* A cover or a backdrop stands the subject of the picture under its words in front (#1438); a series item without a clip shows that picture. */
|
|
177
161
|
function refuseTemplates(input, context) {
|
|
178
162
|
if (!input.templates)
|
|
179
163
|
return;
|
|
180
164
|
for (const { path, message } of templateRefusals({ script: input.script, templates: input.templates, aspect_ratio: "9:16" })) {
|
|
181
165
|
context.addIssue({ code: customIssue, path, message });
|
|
182
166
|
}
|
|
183
|
-
// A cover or a backdrop is behind the cut-out switch here too, refused by value before any reserve (#1438).
|
|
184
167
|
if (isPresenterMatteEnabled())
|
|
185
168
|
return;
|
|
186
169
|
input.templates.forEach((item, index) => {
|
|
@@ -188,13 +171,11 @@ function refuseTemplates(input, context) {
|
|
|
188
171
|
context.addIssue({ code: customIssue, path: ["templates", index, "kind"], message: PRESENTER_MATTE_DISABLED_MESSAGE });
|
|
189
172
|
});
|
|
190
173
|
}
|
|
191
|
-
/** Action shots (#1113): a moving clip from the picture under the named words, on those words, instead of the still. */
|
|
192
174
|
export const facelessActionShot = z.strictObject({
|
|
193
175
|
id: z.string().trim().min(1).max(64),
|
|
194
176
|
anchor: facelessSceneAnchor,
|
|
195
177
|
action: z.string().trim().min(1).max(1500),
|
|
196
178
|
transition: z.enum(FACELESS_SHOT_TRANSITIONS).optional(),
|
|
197
|
-
/** An image asset of this account (rights_confirmed) the clip starts from, in place of a picture the run draws; that picture is not charged. */
|
|
198
179
|
asset_id: assetId.optional(),
|
|
199
180
|
});
|
|
200
181
|
export const FACELESS_SHOTS_BRIEF_REFUSAL = "shots need input_mode script: they sit on the narration's words";
|
|
@@ -208,8 +189,8 @@ const scriptShape = { ...common,
|
|
|
208
189
|
shots: z.array(facelessActionShot).min(1).max(FACELESS_MAX_SHOTS, `at most ${FACELESS_MAX_SHOTS} shots a video`).optional(),
|
|
209
190
|
scenes: z.array(ugcScene).min(1).max(MAX_SCENES).optional(),
|
|
210
191
|
moves: z.array(ugcMove).min(1).max(MAX_MOVES).optional(),
|
|
211
|
-
// make_ugc's field (#1228): the narration's pauses are cut before its words are timed, so everything drawn on them follows the cut.
|
|
212
192
|
pause_trim: z.union([z.literal(false), pauseTrim]).optional(),
|
|
193
|
+
keep_anchors: z.boolean().optional(),
|
|
213
194
|
};
|
|
214
195
|
const scriptBase = z.object(scriptShape).strict();
|
|
215
196
|
function refineScript(input, context) {
|
|
@@ -218,7 +199,6 @@ function refineScript(input, context) {
|
|
|
218
199
|
refuseTemplates(input, context);
|
|
219
200
|
for (const { path, message } of moveRefusals({ script: input.script, moves: input.moves }))
|
|
220
201
|
context.addIssue({ code: customIssue, path, message });
|
|
221
|
-
// Scenes sit on the script's words as on make_ugc and share the templates' ids (#1113).
|
|
222
202
|
for (const { path, message } of sceneRefusals({ script: input.script, scenes: input.scenes, templates: input.templates }, { presenter: false })) {
|
|
223
203
|
context.addIssue({ code: customIssue, path, message });
|
|
224
204
|
}
|
|
@@ -243,26 +223,23 @@ function refineScript(input, context) {
|
|
|
243
223
|
}
|
|
244
224
|
}
|
|
245
225
|
const scriptInput = scriptBase.superRefine(refineScript);
|
|
246
|
-
/** What a run stores for a script: the request plus the assets admission pinned for it, which a public body never carries. */
|
|
247
226
|
const storedScriptInput = z.object({ ...scriptShape,
|
|
248
227
|
insert_assets: z.array(pinnedInsertAsset).min(1).max(MAX_TEMPLATE_MEDIA + FACELESS_MAX_SHOTS).optional(),
|
|
249
|
-
/** The mascot a run reuses, as admission read it (#1257). */
|
|
250
228
|
mascot: pinnedMascot.optional(),
|
|
251
|
-
/** What the workflow method the run was launched from requires of its film (#1461). */
|
|
252
229
|
workflow_directions: filmDirections.optional(),
|
|
253
|
-
/** Set when admission froze the scene director for the run (#1491). */
|
|
254
230
|
scene_direction: sceneDirectionMark.optional(),
|
|
231
|
+
directed: facelessDirectedMark.optional(),
|
|
255
232
|
}).strict().superRefine(refineScript);
|
|
256
233
|
const briefShape = { ...common,
|
|
257
234
|
input_mode: z.literal("brief"),
|
|
258
235
|
brief: z.string().trim().min(1).max(10_000),
|
|
259
236
|
transitions: orPlainCuts(briefTransitions).optional(),
|
|
260
|
-
// A brief's narration is written by the run, so no template can name its words.
|
|
261
237
|
templates: z.never({ error: "templates need input_mode script: they sit on the narration's words" }).optional(),
|
|
262
238
|
shots: z.never({ error: FACELESS_SHOTS_BRIEF_REFUSAL }).optional(),
|
|
263
239
|
scenes: z.never({ error: "scenes need input_mode script: they sit on the narration's words" }).optional(),
|
|
264
240
|
moves: z.never({ error: "moves need input_mode script: they sit on the narration's words" }).optional(),
|
|
265
241
|
pause_trim: z.never({ error: "pause_trim needs input_mode script" }).optional(),
|
|
242
|
+
keep_anchors: z.never({ error: "keep_anchors needs input_mode script: it keeps your scene_images on the words you anchored them to" }).optional(),
|
|
266
243
|
};
|
|
267
244
|
function refineBrief(input, context) {
|
|
268
245
|
refuseSounds(input, context);
|
|
@@ -272,18 +249,15 @@ function refineBrief(input, context) {
|
|
|
272
249
|
message: "motion_style spans need input_mode script: they sit on the narration's words; a brief takes style only" });
|
|
273
250
|
}
|
|
274
251
|
const briefInput = z.object(briefShape).strict().superRefine(refineBrief);
|
|
275
|
-
const storedBriefInput = z.object({ ...briefShape, scene_direction: sceneDirectionMark.optional()
|
|
252
|
+
const storedBriefInput = z.object({ ...briefShape, scene_direction: sceneDirectionMark.optional(), directed: facelessDirectedMark.optional() })
|
|
253
|
+
.strict().superRefine(refineBrief);
|
|
276
254
|
export const makeFacelessInput = z.discriminatedUnion("input_mode", [scriptInput, briefInput]);
|
|
277
|
-
/** The stored input of a revision: the request as resolved, and what admission froze about it. */
|
|
278
255
|
export const facelessRevisionInput = z.strictObject({
|
|
279
256
|
input_mode: z.literal("revision"),
|
|
280
257
|
revision: z.strictObject({ source_run_id: runId, document: editDocument }),
|
|
281
258
|
resolved_revision: z.strictObject({ root_run_id: runId, own_images: z.boolean(), summary: editSummaryWire, billing: revisionBilling }),
|
|
282
259
|
});
|
|
283
|
-
/** What a `make_faceless` run stores as its input: a generate request or a revision. */
|
|
284
260
|
export const facelessStoredInput = z.discriminatedUnion("input_mode", [storedScriptInput, storedBriefInput, facelessRevisionInput]);
|
|
285
|
-
/** Admission and the run validate accepted input without canonicalizing its narration again. */
|
|
286
|
-
/** A brief's default flash is frozen here, so the stored input names what the video draws; a stored input is read as stored. */
|
|
287
261
|
export function parseFacelessInputPreservingScript(input) {
|
|
288
262
|
const parsed = makeFacelessInput.parse(input);
|
|
289
263
|
if (parsed.input_mode === "script")
|
|
@@ -294,29 +268,22 @@ export function parseFacelessStoredInputPreservingScript(input) {
|
|
|
294
268
|
const parsed = facelessStoredInput.parse(input);
|
|
295
269
|
return parsed.input_mode === "script" ? { ...parsed, script: input.script } : parsed;
|
|
296
270
|
}
|
|
297
|
-
/** A request's quote: what the quote shows and admission reserves, read from the same fields by the same call. */
|
|
298
|
-
/** `explainerBeats`: an explainer's drawn scenes are on, so the quote holds them. `explainerFilm`: the explainer is priced as one drawn film. */
|
|
299
271
|
export function quoteFacelessInput(input, options = {}) {
|
|
300
272
|
const character = !!(input.character_reference || input.character_details);
|
|
301
|
-
// A drawn film with no character and no mascot draws a hero that fits its script, priced as a named character's poses.
|
|
302
273
|
const filmHero = character || !(input.input_mode === "script" && input.mascot_id);
|
|
303
274
|
return quoteFaceless({ outputFrames: input.duration_seconds * 25, captions: input.captions, music: input.music,
|
|
304
275
|
shots: input.input_mode === "script" ? input.shots?.length ?? 0 : 0, scenes: input.input_mode === "script" ? input.scenes?.length ?? 0 : 0,
|
|
305
276
|
...(input.format !== "explainer" ? {} : options.explainerFilm ? { explainer: { character: filmHero, film: options.explainerFilm } } : { explainer: { character,
|
|
306
277
|
...(options.explainerBeats ? { beats: true } : {}), ...(input.input_mode === "script" ? { objects: explainerObjectCeiling(input.script) } : {}) } }) });
|
|
307
278
|
}
|
|
308
|
-
/** Both levels' totals for one explainer request (#1291 F4), each as admission would reserve it on that level; the quote names the chosen one. */
|
|
309
279
|
export function explainerTierTotals(input) {
|
|
310
280
|
const total = (tier) => quoteFacelessInput(input, { explainerFilm: EXPLAINER_TIER_TARIFFS[tier] }).totalCredits;
|
|
311
281
|
return { tier: input.tier ?? "standard", standard: total("standard"), pro: total("pro") };
|
|
312
282
|
}
|
|
313
283
|
const tierFilm = (tier) => SKILL_FILM_TARIFFS[EXPLAINER_TIER_TARIFFS[tier]];
|
|
314
284
|
const tierPrice = (tier) => `${tierFilm(tier).filmCredits} credits for a film up to ${EXPLAINER_FILM_INCLUDED_SECONDS} s plus ${tierFilm(tier).perExtraSecond} each second over`;
|
|
315
|
-
/** The API routes repeat these paths as literals, and a test keeps them equal. */
|
|
316
285
|
export const FACELESS_QUOTE_PATH = "/v1/skills/make_faceless/quote";
|
|
317
286
|
export const FACELESS_RUN_PATH = "/v1/skills/make_faceless/run";
|
|
318
|
-
/** Flat form of `makeFacelessInput` for MCP, which needs an object shape, not a union. */
|
|
319
|
-
/** Clients still parse with `makeFacelessInput` before sending, so the union stays the contract. */
|
|
320
287
|
export const offeredFacelessInputShape = {
|
|
321
288
|
input_mode: z.enum(["script", "brief"])
|
|
322
289
|
.describe("'script' narrates your exact text; 'brief' writes the narration from a short description. Send exactly one of script or brief, matching this mode."),
|
|
@@ -342,10 +309,8 @@ export const offeredFacelessInputShape = {
|
|
|
342
309
|
.describe("Flash or light leak on the cuts, with its sound: every scene change, or the one nearest each anchor (script only). " +
|
|
343
310
|
"Omitted on a brief: a flash on every scene change; false for plain cuts. No extra charge."),
|
|
344
311
|
edit_sounds: common.edit_sounds.describe("A low sound on every scene change, its peak on the cut; template_sounds.edit picks it. Price unchanged."),
|
|
345
|
-
// The slim form keeps tools/list small; the client parses with makeFacelessInput, which checks beats and names.
|
|
346
312
|
template_sounds: mcpTemplateSounds.optional().describe("false for no sounds, or { flash, whoosh (light leak), edit: name } from list_template_sounds."),
|
|
347
313
|
music: common.music.describe(MUSIC_DESCRIPTION),
|
|
348
|
-
// No shape here keeps tools/list small: the items are make_ugc's, which the client and the server check strictly.
|
|
349
314
|
templates: z.unknown().optional().describe("Script only: as make_ugc, a slot may show your image or video asset (asset_id, rights_confirmed). Free."),
|
|
350
315
|
shots: z.unknown().optional().describe(`Script only: 1-${FACELESS_MAX_SHOTS} {id, anchor, action, asset_id?}, 5 s max each.`),
|
|
351
316
|
scenes: z.unknown().optional().describe("Script only: as make_ugc scenes."),
|
|
@@ -358,10 +323,15 @@ export const offeredFacelessInputShape = {
|
|
|
358
323
|
"rewrite into actions before asking. The hero: mascot_id, else your brand's mascot, free; else the character you name or one that fits " +
|
|
359
324
|
`the script, its ${FACELESS_EXPLAINER_POSE_PICTURES} pose pictures at ${FACELESS_IMAGE_CREDITS} each on the quote. Priced as one film by tier; ` +
|
|
360
325
|
"a film takes about half an hour. Without voice, an English script is read by our fastest voice."),
|
|
361
|
-
tier: common.tier.describe(`Format explainer
|
|
362
|
-
`richer scenes, ${tierPrice("pro")}. Pose pictures are on top. quote_faceless names both totals: show them and let the user pick
|
|
363
|
-
|
|
326
|
+
tier: common.tier.describe(`Format explainer: 'standard' (default): ${tierPrice("standard")}. 'pro': more careful direction and ` +
|
|
327
|
+
`richer scenes, ${tierPrice("pro")}. Pose pictures are on top. quote_faceless names both totals: show them and let the user pick. ` +
|
|
328
|
+
"Other formats, where your account has the two levels: 'standard' (default) is your story in pictures that move, with captions and " +
|
|
329
|
+
"sound and about a third of it live; 'pro' plays every shot as live footage. quote_faceless names both totals in tiers. " +
|
|
330
|
+
"Elsewhere tier is refused."),
|
|
364
331
|
pause_trim: z.unknown().optional().describe("Script only: as make_ugc pause_trim, same default with templates, scenes, shots or format explainer."),
|
|
332
|
+
keep_anchors: scriptInput.shape.keep_anchors.describe("Script only, with scene_images. true keeps each picture on the words you anchored it to. " +
|
|
333
|
+
"Omitted or false: a picture that plainly shows another sentence of the script may be shown on that sentence instead; warnings[] names " +
|
|
334
|
+
"each move, and keep_anchors true keeps yours."),
|
|
365
335
|
voice: common.voice
|
|
366
336
|
.describe("Narration voice: a name from list_voices with skill=make_faceless (kind faceless_voice). " +
|
|
367
337
|
`Omitted means ${DEFAULT_FACELESS_VOICE}; for an English explainer, the fastest voice. Choose a voice in the language of the narration: a voice reads any ` +
|
|
@@ -376,8 +346,6 @@ export const offeredFacelessInputShape = {
|
|
|
376
346
|
const rejectedFacelessField = (key) => Object.hasOwn(FACELESS_REJECTED_FIELDS, key)
|
|
377
347
|
? FACELESS_REJECTED_FIELDS[key].message
|
|
378
348
|
: undefined;
|
|
379
|
-
/** The flat form as a tool input: an undeclared key is refused at the tool boundary, */
|
|
380
|
-
/** a field refused by name with its registry reason. */
|
|
381
349
|
export const offeredFacelessInput = z.strictObject(offeredFacelessInputShape, {
|
|
382
350
|
error: (issue) => issue.code === "unrecognized_keys"
|
|
383
351
|
? issue.keys.map((key) => rejectedFacelessField(key) ?? `"${key}" is not a field of this tool`).join("; ")
|
|
@@ -396,13 +364,10 @@ export const facelessPlannerInput = z.object({
|
|
|
396
364
|
}).strict();
|
|
397
365
|
export const facelessQuoteResponse = facelessQuote.extend({
|
|
398
366
|
skill: z.literal("make_faceless"),
|
|
399
|
-
/** Whether the script suits the explainer format, with the reason, and a rewrite into actions when it does not. */
|
|
400
367
|
explainer_fit: z.strictObject({ fits: z.boolean(), reason: z.string(), rewrite: z.string().optional() }).optional(),
|
|
401
|
-
/** An explainer's two levels on the same request: each one's total, and the level `totalCredits` is for. */
|
|
402
368
|
explainer_tiers: z.strictObject({ tier: z.enum(EXPLAINER_TIERS), standard: z.number().int().positive(), pro: z.number().int().positive() }).optional(),
|
|
403
|
-
|
|
369
|
+
tiers: z.strictObject({ tier: z.enum(EXPLAINER_TIERS), standard: z.number().int().positive(), pro: z.number().int().positive() }).optional(),
|
|
404
370
|
scene_proposal: sceneProposal.optional(),
|
|
405
371
|
warnings: z.array(z.string()).default([]),
|
|
406
372
|
contract_version: z.string().min(1),
|
|
407
373
|
}).strict();
|
|
408
|
-
//# sourceMappingURL=faceless-public.js.map
|
|
@@ -94,4 +94,3 @@ export function planStoryboardFrames(input, words, narrationStartFrame) {
|
|
|
94
94
|
reason: candidate.rejection ?? `unselected ${candidate.reason} boundary under timing and image budget constraints`,
|
|
95
95
|
}]), imageBudget: storyboardImageBudget(imageCount, 2) };
|
|
96
96
|
}
|
|
97
|
-
//# sourceMappingURL=faceless-storyboard-timing.js.map
|
|
@@ -28,8 +28,6 @@ export type StoryboardV2FramePlan = {
|
|
|
28
28
|
cutReason?: string;
|
|
29
29
|
score: Score;
|
|
30
30
|
}>;
|
|
31
|
-
/** Rejected scores are local incoming-edge estimates, not alternate complete-path scores.
|
|
32
|
-
* Null pacePenalty/net means no feasible incoming edge was reachable. */
|
|
33
31
|
rejectedCandidates: Array<{
|
|
34
32
|
afterWord: number;
|
|
35
33
|
frame: number;
|
|
@@ -54,8 +52,6 @@ declare const semantic: {
|
|
|
54
52
|
readonly action: 3;
|
|
55
53
|
readonly emphasis: 1;
|
|
56
54
|
};
|
|
57
|
-
/** Shared semantic objective; duration feasibility belongs to each profile. */
|
|
58
|
-
/** `overPenalty` prices a second above the pace band; a second below it always costs the base penalty. */
|
|
59
55
|
export declare function facelessCutScore(reason: keyof typeof semantic | null, duration: number, range: {
|
|
60
56
|
p25: number | null;
|
|
61
57
|
p75: number | null;
|