@clipwright/core 0.60.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 +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/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 +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 +1 -0
- package/dist/index.js +1 -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 +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 +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 +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 +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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** What outlives a signed URL: where the object is and what it measures. No URL and no expiry. */
|
|
3
2
|
export declare const storedObject: z.ZodObject<{
|
|
4
3
|
kind: z.ZodEnum<{
|
|
5
4
|
audio: "audio";
|
|
@@ -15,9 +14,7 @@ export declare const storedObject: z.ZodObject<{
|
|
|
15
14
|
duration_sec: z.ZodNullable<z.ZodNumber>;
|
|
16
15
|
}, z.core.$strict>;
|
|
17
16
|
export type StoredObject = z.infer<typeof storedObject>;
|
|
18
|
-
/** The looks a faceless cut can take. */
|
|
19
17
|
export declare const FACELESS_TRANSITION_LOOKS: readonly ["flash", "light_leak"];
|
|
20
|
-
/** The cut transitions a run drew: the look, and the shots whose cut in it falls on. */
|
|
21
18
|
export declare const facelessRecordTransitions: z.ZodObject<{
|
|
22
19
|
look: z.ZodEnum<{
|
|
23
20
|
flash: "flash";
|
|
@@ -26,7 +23,6 @@ export declare const facelessRecordTransitions: z.ZodObject<{
|
|
|
26
23
|
at: z.ZodArray<z.ZodString>;
|
|
27
24
|
}, z.core.$strict>;
|
|
28
25
|
export type FacelessRecordTransitions = z.infer<typeof facelessRecordTransitions>;
|
|
29
|
-
/** Cut transitions as a revision asks for them: every scene change, or the cuts into the named shots. */
|
|
30
26
|
export declare const facelessShotTransitions: z.ZodObject<{
|
|
31
27
|
look: z.ZodEnum<{
|
|
32
28
|
flash: "flash";
|
|
@@ -35,7 +31,6 @@ export declare const facelessShotTransitions: z.ZodObject<{
|
|
|
35
31
|
at: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"scene_changes">, z.ZodArray<z.ZodString>]>>;
|
|
36
32
|
}, z.core.$strict>;
|
|
37
33
|
export type FacelessShotTransitions = z.infer<typeof facelessShotTransitions>;
|
|
38
|
-
/** The sounds a run chose by beat (#1067), `{}` when muted; a run that chose nothing records none and plays the looks' defaults. */
|
|
39
34
|
export declare const facelessRecordSounds: z.ZodObject<{
|
|
40
35
|
flash: z.ZodOptional<z.ZodEnum<{
|
|
41
36
|
glitch: "glitch";
|
|
@@ -71,7 +66,6 @@ export declare const facelessRecordSounds: z.ZodObject<{
|
|
|
71
66
|
}>>;
|
|
72
67
|
}, z.core.$strict>;
|
|
73
68
|
export type FacelessRecordSounds = z.infer<typeof facelessRecordSounds>;
|
|
74
|
-
/** The media a faceless run was made from, written by the run beside the plan. */
|
|
75
69
|
export declare const facelessMediaRecord: z.ZodObject<{
|
|
76
70
|
v: z.ZodLiteral<1>;
|
|
77
71
|
shots: z.ZodArray<z.ZodObject<{
|
|
@@ -4,46 +4,35 @@ import { EDIT_MAX_SHOTS } from "./edit-rules.js";
|
|
|
4
4
|
import { MAX_TEMPLATE_MEDIA } from "./templates/index.js";
|
|
5
5
|
import { TEMPLATE_SOUNDS } from "./templates/sounds.js";
|
|
6
6
|
const size = z.number().int().positive().safe();
|
|
7
|
-
/** What outlives a signed URL: where the object is and what it measures. No URL and no expiry. */
|
|
8
7
|
export const storedObject = z.strictObject({
|
|
9
8
|
kind: z.enum(["image", "video", "audio"]),
|
|
10
9
|
key: z.string().min(1).max(1024),
|
|
11
10
|
sha256: z.string().regex(/^[a-f0-9]{64}$/),
|
|
12
|
-
/** New marked bytes keep their retained pre-marking identity; historical records omit it. */
|
|
13
11
|
content_sha256: z.string().regex(/^[a-f0-9]{64}$/).optional(),
|
|
14
12
|
bytes: size,
|
|
15
13
|
width: size.nullable(), height: size.nullable(),
|
|
16
14
|
duration_sec: z.number().positive().nullable(),
|
|
17
15
|
});
|
|
18
|
-
/** The looks a faceless cut can take. */
|
|
19
16
|
export const FACELESS_TRANSITION_LOOKS = ["flash", "light_leak"];
|
|
20
|
-
/** The cut transitions a run drew: the look, and the shots whose cut in it falls on. */
|
|
21
17
|
export const facelessRecordTransitions = z.strictObject({
|
|
22
18
|
look: z.enum(FACELESS_TRANSITION_LOOKS),
|
|
23
19
|
at: z.array(shotId).min(1).max(EDIT_MAX_SHOTS),
|
|
24
20
|
});
|
|
25
|
-
/** Cut transitions as a revision asks for them: every scene change, or the cuts into the named shots. */
|
|
26
21
|
export const facelessShotTransitions = facelessRecordTransitions.extend({
|
|
27
22
|
at: z.union([z.literal("scene_changes"), facelessRecordTransitions.shape.at]).default("scene_changes"),
|
|
28
23
|
});
|
|
29
|
-
/** The sounds a run chose by beat (#1067), `{}` when muted; a run that chose nothing records none and plays the looks' defaults. */
|
|
30
24
|
export const facelessRecordSounds = z.strictObject({ flash: z.enum(TEMPLATE_SOUNDS.flash.names).optional(),
|
|
31
25
|
whoosh: z.enum(TEMPLATE_SOUNDS.whoosh.names).optional(), edit: z.enum(TEMPLATE_SOUNDS.edit.names).optional() });
|
|
32
|
-
/** The media a faceless run was made from, written by the run beside the plan. */
|
|
33
26
|
export const facelessMediaRecord = z.strictObject({
|
|
34
27
|
v: z.literal(1),
|
|
35
28
|
shots: z.array(z.strictObject({ id: shotId, source: z.enum(["generated", "customer"]),
|
|
36
29
|
motion: z.enum(["PAN_UP", "PAN_DOWN", "ZOOM_IN", "ZOOM_OUT"]).nullable(), media: storedObject })),
|
|
37
|
-
/** The picture under shot 0, whose own media is the clip made from it. */
|
|
38
30
|
opener_still: storedObject,
|
|
39
31
|
references: z.array(storedObject.extend({ role: z.enum(["style", "character", "product"]), from: z.enum(["customer", "lead_picture"]) })),
|
|
40
32
|
narration: storedObject,
|
|
41
|
-
/** The customer's pictures and clips a template slot showed, staged for the render; absent on a run with none. As many as admission pins. */
|
|
42
33
|
template_media: z.array(z.strictObject({ template_id: z.string().min(1).max(64), slot: z.string().min(1).max(32), media: storedObject }))
|
|
43
34
|
.max(MAX_TEMPLATE_MEDIA).optional(),
|
|
44
35
|
settings: z.strictObject({ captions: z.boolean(), character_reference: z.boolean(), character_details: z.string().nullable(),
|
|
45
36
|
image_model: z.string(), voice: z.string().nullable(), lambda_site_sha256: z.string(),
|
|
46
|
-
/** Present only on a run drawn with transitions: a revision keeps them unless its document says otherwise. */
|
|
47
37
|
transitions: facelessRecordTransitions.optional(), sounds: facelessRecordSounds.optional() }),
|
|
48
38
|
});
|
|
49
|
-
//# sourceMappingURL=faceless-media-record.js.map
|
package/dist/faceless-price.d.ts
CHANGED
|
@@ -1,32 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type MusicRequest } from "./music.js";
|
|
3
|
-
/** The tariff new faceless runs are admitted on (#800); runs admitted on `faceless-image-i2v-v1` keep it. */
|
|
4
3
|
export declare const FACELESS_TARIFF_ID: "faceless-parts-v1";
|
|
5
4
|
export declare const FACELESS_LEGACY_TARIFF_ID: "faceless-image-i2v-v1";
|
|
6
|
-
/** A directed video's tariff (#1573): its level, live seconds and direction line, frozen at admission. */
|
|
7
5
|
export declare const FACELESS_DIRECTED_TARIFF_ID: "faceless-parts-v2";
|
|
8
6
|
export declare const FACELESS_TARIFF_IDS: readonly ["faceless-parts-v1", "faceless-image-i2v-v1", "faceless-parts-v2"];
|
|
9
|
-
/** A picture video ends with its speech and runs at least 25 s. */
|
|
10
7
|
export declare const FACELESS_MIN_OUTPUT_FRAMES = 625;
|
|
11
|
-
/** An explainer runs to its last word and 0.8 s past it, however short; one second is the shortest its composition draws (#1216). */
|
|
12
8
|
export declare const FACELESS_EXPLAINER_MIN_OUTPUT_FRAMES = 25;
|
|
13
|
-
/** The length a caller selects, in seconds. */
|
|
14
9
|
export declare const FACELESS_MIN_SELECTED_SECONDS = 30;
|
|
15
10
|
export declare const FACELESS_MAX_SELECTED_SECONDS = 90;
|
|
16
|
-
/** The pre-speech estimate floor keeps the 4 s offset the 26 s floor had from the former 30 s minimum. */
|
|
17
11
|
export declare const FACELESS_MIN_ESTIMATE_SEC = 21;
|
|
18
|
-
/** A script is admitted when its estimate fits the selection plus 5 s; a video longer than that is named in `warnings[]`. */
|
|
19
12
|
export declare const facelessMaxEstimateFrames: (selectedFrames: number) => number;
|
|
20
|
-
/** A video is planned within a quarter past its selection, at most 90 s; the charge stays within the selection's quote. */
|
|
21
13
|
export declare const facelessMaxOutputFrames: (selectedFrames: number) => number;
|
|
22
|
-
/** The most characters one narration speaks, and a pace below every voice's: the slowest measured one reads 13.87 a second. */
|
|
23
14
|
export declare const FACELESS_SPEECH_MAX_CHARACTERS = 2500;
|
|
24
15
|
export declare const FACELESS_SLOWEST_CHARACTERS_PER_SECOND = 13;
|
|
25
|
-
/** A narration longer than its plan is delivered at its length: the longest one at that pace, a 5 s lead, whole seconds. */
|
|
26
16
|
export declare const FACELESS_MAX_OUTPUT_FRAMES: number;
|
|
27
|
-
/** Pictures a public run may generate, the opener's first frame included. */
|
|
28
17
|
export declare const FACELESS_PUBLIC_MAX_GENERATED_IMAGES = 31;
|
|
29
|
-
/** One picture per two selected seconds plus four, never past the runtime's ceiling: the run's beat limit and the admission cap read it. */
|
|
30
18
|
export declare const facelessMaxGeneratedImages: (selectedFrames: number, imageCeiling?: number) => number;
|
|
31
19
|
export declare const facelessQuote: z.ZodObject<{
|
|
32
20
|
outputFrames: z.ZodNumber;
|
|
@@ -58,7 +46,6 @@ export declare const facelessQuote: z.ZodObject<{
|
|
|
58
46
|
directionCredits: z.ZodOptional<z.ZodNumber>;
|
|
59
47
|
}, z.core.$strict>;
|
|
60
48
|
export type FacelessQuote = z.infer<typeof facelessQuote>;
|
|
61
|
-
/** A run's bill names the delivered frames, which may pass the selection or, on an explainer, fall short of 25 s; its total stays within the quote. */
|
|
62
49
|
export declare const facelessRunBilling: z.ZodObject<{
|
|
63
50
|
baseCredits: z.ZodNumber;
|
|
64
51
|
openerCredits: z.ZodNumber;
|
|
@@ -88,46 +75,30 @@ export declare const facelessRunBilling: z.ZodObject<{
|
|
|
88
75
|
directionCredits: z.ZodOptional<z.ZodNumber>;
|
|
89
76
|
outputFrames: z.ZodNumber;
|
|
90
77
|
}, z.core.$strict>;
|
|
91
|
-
/** The legacy tariff's numbers: base credits per 1500 frames (a minute at 25 fps), the base's floor, and the opening clip. */
|
|
92
78
|
export declare const FACELESS_LEGACY_CREDITS_PER_1500_FRAMES = 180;
|
|
93
79
|
export declare const FACELESS_LEGACY_MIN_BASE_CREDITS = 200;
|
|
94
80
|
export declare const FACELESS_LEGACY_OPENER_CREDITS = 150;
|
|
95
|
-
/** The parts tariff: a generated picture, the opening clip, */
|
|
96
|
-
/** and every second of the video for story, voice, checks and render, at least 50 for a delivered video. */
|
|
97
81
|
export declare const FACELESS_IMAGE_CREDITS = 7;
|
|
98
82
|
export declare const FACELESS_OPENER_CREDITS = 49;
|
|
99
83
|
export declare const FACELESS_CREDITS_PER_1500_FRAMES: number;
|
|
100
84
|
export declare const FACELESS_MIN_BASE_CREDITS = 50;
|
|
101
|
-
/** An action shot (#1113): its seconds at make_ugc's shot rate, at most ten a run (#1192) and five seconds each. */
|
|
102
85
|
export declare const FACELESS_SHOT_CREDITS_PER_SECOND = 30;
|
|
103
86
|
export declare const FACELESS_MAX_SHOTS = 10;
|
|
104
87
|
export declare const FACELESS_SHOT_MAX_SEC = 5;
|
|
105
|
-
/** The largest dollar cap a faceless run may be configured with; a larger env value turns faceless off. Ten 5 s shots on a 90 s run need $8.47. */
|
|
106
88
|
export declare const FACELESS_MAX_CAP_USD_MICROS = 10000000;
|
|
107
|
-
/** The seconds a run with `shots` action shots may be charged for, every shot at its longest. */
|
|
108
|
-
/** Faceless scenes have their own switch beside make_ugc's (#1113): their model calls join the faceless cost journal first. */
|
|
109
89
|
export declare const facelessScenesEnabled: (env: Record<string, string | undefined>) => boolean;
|
|
110
90
|
export declare const facelessShotSecondsCeiling: (shots: number) => number;
|
|
111
|
-
/** The parts price of `images` generated pictures in `outputFrames` frames: the production seconds rounded up once. */
|
|
112
91
|
export declare function facelessPartsBase(images: number, outputFrames: number): number;
|
|
113
|
-
/** The explainer format (#1216) is off unless switched on: it draws its scenes and makes no opening clip. */
|
|
114
92
|
export declare const facelessExplainerEnabled: (env: Record<string, string | undefined>) => boolean;
|
|
115
|
-
/** The explainer hero's pose set: one generated picture a pose, made when the run names a character. */
|
|
116
93
|
export declare const FACELESS_EXPLAINER_POSE_PICTURES = 9;
|
|
117
|
-
/** An explainer scene drawn for its video: its price, the most a video draws, and their switch; charged only when the delivered video draws it. */
|
|
118
94
|
export declare const EXPLAINER_BEAT_CREDITS = 65;
|
|
119
95
|
export declare const EXPLAINER_MAX_AUTHORED_BEATS = 8;
|
|
120
96
|
export declare const explainerBeatsEnabled: (env: Record<string, string | undefined>) => boolean;
|
|
121
|
-
/** An explainer's pictures of the things its script names (#1277): one for each sentence naming a thing in a list of things, at most 12, none
|
|
122
|
-
* for steps through software; each a generated picture once shown. */
|
|
123
97
|
export declare const EXPLAINER_MAX_OBJECT_PICTURES = 12;
|
|
124
98
|
export declare const explainerObjectCeiling: (script: string) => number;
|
|
125
|
-
/** A drawn explainer film (#1291): one price for a film up to 60 s, and each second past it; its hero's poses are priced as pictures. */
|
|
126
99
|
export declare const EXPLAINER_FILM_CREDITS = 500;
|
|
127
100
|
export declare const EXPLAINER_FILM_INCLUDED_SECONDS = 60;
|
|
128
101
|
export declare const EXPLAINER_FILM_CREDITS_PER_EXTRA_SECOND = 8;
|
|
129
|
-
/** The drawn-film tariffs and their film price: up to the included seconds, then each second past them. A snapshot names its tariff, so a
|
|
130
|
-
* price change is a new tariff: a run admitted at the old price settles at it. */
|
|
131
102
|
export declare const SKILL_FILM_TARIFFS: {
|
|
132
103
|
readonly "skill-explainer-v1": {
|
|
133
104
|
readonly filmCredits: 500;
|
|
@@ -150,7 +121,6 @@ export type SkillFilmTariff = keyof typeof SKILL_FILM_TARIFFS;
|
|
|
150
121
|
export declare const isSkillFilmTariff: (value: unknown) => value is SkillFilmTariff;
|
|
151
122
|
export declare const skillFilmCredits: (tariff: SkillFilmTariff, outputFrames: number) => number;
|
|
152
123
|
export declare const explainerFilmCredits: (outputFrames: number) => number;
|
|
153
|
-
/** The explainer's two levels a customer picks by name (#1291 F4): each freezes its film tariff at admission; omitted is `standard`. */
|
|
154
124
|
export declare const EXPLAINER_TIERS: readonly ["standard", "pro"];
|
|
155
125
|
export type ExplainerTier = (typeof EXPLAINER_TIERS)[number];
|
|
156
126
|
export declare const EXPLAINER_TIER_TARIFFS: {
|
|
@@ -158,13 +128,8 @@ export declare const EXPLAINER_TIER_TARIFFS: {
|
|
|
158
128
|
readonly pro: "skill-agent-opus-v1";
|
|
159
129
|
};
|
|
160
130
|
export declare const explainerTierTariff: (tier: ExplainerTier | undefined) => SkillFilmTariff;
|
|
161
|
-
/** The explainer's film switch on `api` (#1291 F4): off, every explainer is refused before any reserve. */
|
|
162
131
|
export declare const skillAgentEnabled: (env: Record<string, string | undefined>) => boolean;
|
|
163
|
-
/** The picture counts a parts snapshot's base may hold for `selectedFrames`: a picture video's ceiling, or an explainer's poses with or without a
|
|
164
|
-
* named character. */
|
|
165
132
|
export declare const facelessImageCeilings: (selectedFrames: number) => number[];
|
|
166
|
-
/** The most a selection is charged: every picture the run may generate, every selected second, the opening clip. */
|
|
167
|
-
/** An explainer makes no opening clip; its pictures are the hero's poses, charged as generated pictures when delivered. */
|
|
168
133
|
export declare function quoteFaceless(input: {
|
|
169
134
|
outputFrames: number;
|
|
170
135
|
captions: boolean;
|
|
@@ -178,17 +143,12 @@ export declare function quoteFaceless(input: {
|
|
|
178
143
|
film?: SkillFilmTariff;
|
|
179
144
|
} | undefined;
|
|
180
145
|
}): FacelessQuote;
|
|
181
|
-
/** A directed video's prices (#1573): a live second, the direction line, and a picture made for the video; production and the minimum are
|
|
182
|
-
* the parts tariff's, with no opening clip. A video mostly on the caller's own pictures pays the smaller direction line. */
|
|
183
146
|
export declare const FACELESS_DIRECTED_PLAIN_LIVE_CREDITS_PER_SECOND = 12;
|
|
184
147
|
export declare const FACELESS_DIRECTED_TEXT_LIVE_CREDITS_PER_SECOND = 20;
|
|
185
148
|
export declare const FACELESS_DIRECTED_DIRECTION_CREDITS = 120;
|
|
186
149
|
export declare const FACELESS_DIRECTED_OWN_PICTURES_DIRECTION_CREDITS = 60;
|
|
187
150
|
export declare const FACELESS_DIRECTED_IMAGE_CREDITS = 9;
|
|
188
|
-
/** The pictures a directed video may make: one per 2.5 selected seconds, at most 24, less the caller's own pictures. */
|
|
189
151
|
export declare const facelessDirectedPictures: (selectedSeconds: number) => number;
|
|
190
|
-
/** The share of the selected seconds each level plays live: standard about a third, pro every second. Live shots are made at 720p only,
|
|
191
|
-
* so a 1080p video has none. */
|
|
192
152
|
export declare const FACELESS_DIRECTED_LIVE_SHARE: {
|
|
193
153
|
readonly standard: number;
|
|
194
154
|
readonly pro: 1;
|
|
@@ -202,8 +162,6 @@ export interface DirectedFacelessAsk {
|
|
|
202
162
|
resolution: "720p" | "1080p";
|
|
203
163
|
maxCredits?: number | undefined;
|
|
204
164
|
}
|
|
205
|
-
/** A directed quote and the terms admission freezes from it: the level's live seconds, those `max_credits` leaves held at the text rate, and
|
|
206
|
-
* the live seconds that hold pays when none shows text. */
|
|
207
165
|
export interface DirectedFacelessTerms {
|
|
208
166
|
quote: FacelessQuote;
|
|
209
167
|
liveSecondsCeiling: number;
|
|
@@ -211,8 +169,5 @@ export interface DirectedFacelessTerms {
|
|
|
211
169
|
stillsCeiling: number;
|
|
212
170
|
ownPicturesRun: boolean;
|
|
213
171
|
}
|
|
214
|
-
/** The most a directed video is charged on its level, which is also the budget it is planned within: every picture it may
|
|
215
|
-
* make, every selected second, the direction, and the level's live seconds held at the text rate, whole seconds that fit `maxCredits`. */
|
|
216
172
|
export declare function quoteDirectedFaceless(ask: DirectedFacelessAsk): DirectedFacelessTerms;
|
|
217
|
-
/** The parts base at a picture price: `images` pictures and every second of `outputFrames`, the seconds rounded up once. */
|
|
218
173
|
export declare function facelessPartsBaseAt(images: number, imageCredits: number, outputFrames: number): number;
|
package/dist/faceless-price.js
CHANGED
|
@@ -3,33 +3,21 @@ import { DELIVERED_VIDEO_MINIMUM_CREDITS, PRODUCTION_CREDITS_PER_SECOND, SCENE_C
|
|
|
3
3
|
import { MUSIC_BED_CREDITS } from "./music.js";
|
|
4
4
|
import { MAX_SCENES } from "./ugc-scenes.js";
|
|
5
5
|
import { namedThings } from "./explainer-fit.js";
|
|
6
|
-
/** The tariff new faceless runs are admitted on (#800); runs admitted on `faceless-image-i2v-v1` keep it. */
|
|
7
6
|
export const FACELESS_TARIFF_ID = "faceless-parts-v1";
|
|
8
7
|
export const FACELESS_LEGACY_TARIFF_ID = "faceless-image-i2v-v1";
|
|
9
|
-
/** A directed video's tariff (#1573): its level, live seconds and direction line, frozen at admission. */
|
|
10
8
|
export const FACELESS_DIRECTED_TARIFF_ID = "faceless-parts-v2";
|
|
11
9
|
export const FACELESS_TARIFF_IDS = [FACELESS_TARIFF_ID, FACELESS_LEGACY_TARIFF_ID, FACELESS_DIRECTED_TARIFF_ID];
|
|
12
|
-
/** A picture video ends with its speech and runs at least 25 s. */
|
|
13
10
|
export const FACELESS_MIN_OUTPUT_FRAMES = 625;
|
|
14
|
-
/** An explainer runs to its last word and 0.8 s past it, however short; one second is the shortest its composition draws (#1216). */
|
|
15
11
|
export const FACELESS_EXPLAINER_MIN_OUTPUT_FRAMES = 25;
|
|
16
|
-
/** The length a caller selects, in seconds. */
|
|
17
12
|
export const FACELESS_MIN_SELECTED_SECONDS = 30;
|
|
18
13
|
export const FACELESS_MAX_SELECTED_SECONDS = 90;
|
|
19
|
-
/** The pre-speech estimate floor keeps the 4 s offset the 26 s floor had from the former 30 s minimum. */
|
|
20
14
|
export const FACELESS_MIN_ESTIMATE_SEC = 21;
|
|
21
|
-
/** A script is admitted when its estimate fits the selection plus 5 s; a video longer than that is named in `warnings[]`. */
|
|
22
15
|
export const facelessMaxEstimateFrames = (selectedFrames) => Math.min(selectedFrames + 125, 2250);
|
|
23
|
-
/** A video is planned within a quarter past its selection, at most 90 s; the charge stays within the selection's quote. */
|
|
24
16
|
export const facelessMaxOutputFrames = (selectedFrames) => Math.min(Math.floor(selectedFrames * 1.25), 2250);
|
|
25
|
-
/** The most characters one narration speaks, and a pace below every voice's: the slowest measured one reads 13.87 a second. */
|
|
26
17
|
export const FACELESS_SPEECH_MAX_CHARACTERS = 2500;
|
|
27
18
|
export const FACELESS_SLOWEST_CHARACTERS_PER_SECOND = 13;
|
|
28
|
-
/** A narration longer than its plan is delivered at its length: the longest one at that pace, a 5 s lead, whole seconds. */
|
|
29
19
|
export const FACELESS_MAX_OUTPUT_FRAMES = Math.ceil(FACELESS_SPEECH_MAX_CHARACTERS / FACELESS_SLOWEST_CHARACTERS_PER_SECOND + 5) * 25;
|
|
30
|
-
/** Pictures a public run may generate, the opener's first frame included. */
|
|
31
20
|
export const FACELESS_PUBLIC_MAX_GENERATED_IMAGES = 31;
|
|
32
|
-
/** One picture per two selected seconds plus four, never past the runtime's ceiling: the run's beat limit and the admission cap read it. */
|
|
33
21
|
export const facelessMaxGeneratedImages = (selectedFrames, imageCeiling = Infinity) => Math.min(imageCeiling, Math.floor(selectedFrames / 50) + 4);
|
|
34
22
|
export const facelessQuote = z.object({
|
|
35
23
|
outputFrames: z.number().int().min(FACELESS_MIN_OUTPUT_FRAMES).max(2250),
|
|
@@ -38,81 +26,52 @@ export const facelessQuote = z.object({
|
|
|
38
26
|
totalCredits: z.number().int().nonnegative(),
|
|
39
27
|
tariffId: z.enum(FACELESS_TARIFF_IDS),
|
|
40
28
|
captions: z.boolean(),
|
|
41
|
-
/** On the parts tariff: the generated pictures priced (at most, on a quote; delivered, on a run) and each one's price. */
|
|
42
29
|
images: z.number().int().nonnegative().optional(),
|
|
43
30
|
imageCredits: z.number().int().nonnegative().optional(),
|
|
44
|
-
/** Asked-for music, inside `totalCredits` (#1063); absent when not asked. */
|
|
45
31
|
musicCredits: z.number().int().positive().optional(),
|
|
46
|
-
/** Action shots (#1113) inside `totalCredits`: on a quote the ceiling, on a run the drawn seconds; absent when none was asked. A directed
|
|
47
|
-
* video's live seconds: on its quote all of them at the text-in-frame rate, the most it charges; on its run those with no text in frame. */
|
|
48
32
|
shotSeconds: z.number().int().nonnegative().optional(),
|
|
49
33
|
shotCredits: z.number().int().nonnegative().optional(),
|
|
50
|
-
/** A directed video's run: its live seconds whose frame shows readable text, a logo or a sign, inside `totalCredits`; absent elsewhere. */
|
|
51
34
|
textShotSeconds: z.number().int().nonnegative().optional(),
|
|
52
35
|
textShotCredits: z.number().int().nonnegative().optional(),
|
|
53
|
-
/** A directed video's quote: what it is charged when no live second shows readable text, at most `totalCredits`; absent elsewhere. */
|
|
54
36
|
totalCreditsWithoutText: z.number().int().nonnegative().optional(),
|
|
55
|
-
/** Scenes made for the video (#1107 on faceless, #1113), inside `totalCredits`: asked on a quote, drawn on a run; absent when none was asked. */
|
|
56
37
|
scenes: z.number().int().nonnegative().optional(),
|
|
57
38
|
sceneCredits: z.number().int().nonnegative().optional(),
|
|
58
|
-
/** The explainer format: the hero's pose pictures it makes, each a generated picture inside `images`; absent on other runs. */
|
|
59
39
|
posePictures: z.number().int().nonnegative().optional(),
|
|
60
|
-
/** The explainer's scenes drawn for this video, inside `totalCredits`: on a quote the most, on a run the drawn; absent when none are made. */
|
|
61
40
|
authoredScenes: z.number().int().nonnegative().optional(),
|
|
62
41
|
authoredSceneCredits: z.number().int().nonnegative().optional(),
|
|
63
|
-
/** An explainer's pictures of named things (#1277), outside `images`: on a quote the most, on a run the shown; absent when none. */
|
|
64
42
|
objectPictures: z.number().int().nonnegative().optional(),
|
|
65
43
|
objectPictureCredits: z.number().int().nonnegative().optional(),
|
|
66
|
-
/** A drawn explainer film's price, inside `baseCredits` beside its hero's poses: on a quote at the selection, on a run at the delivered length. */
|
|
67
44
|
filmCredits: z.number().int().positive().optional(),
|
|
68
|
-
/** A directed video's direction (its storyboard, look and sound), inside `totalCredits`; absent on other videos. */
|
|
69
45
|
directionCredits: z.number().int().positive().optional(),
|
|
70
46
|
}).strict();
|
|
71
|
-
/** A run's bill names the delivered frames, which may pass the selection or, on an explainer, fall short of 25 s; its total stays within the quote. */
|
|
72
47
|
export const facelessRunBilling = facelessQuote.extend({ outputFrames: z.number().int().min(FACELESS_EXPLAINER_MIN_OUTPUT_FRAMES)
|
|
73
48
|
.max(FACELESS_MAX_OUTPUT_FRAMES) }).strict();
|
|
74
|
-
/** The legacy tariff's numbers: base credits per 1500 frames (a minute at 25 fps), the base's floor, and the opening clip. */
|
|
75
49
|
export const FACELESS_LEGACY_CREDITS_PER_1500_FRAMES = 180;
|
|
76
50
|
export const FACELESS_LEGACY_MIN_BASE_CREDITS = 200;
|
|
77
51
|
export const FACELESS_LEGACY_OPENER_CREDITS = 150;
|
|
78
|
-
/** The parts tariff: a generated picture, the opening clip, */
|
|
79
|
-
/** and every second of the video for story, voice, checks and render, at least 50 for a delivered video. */
|
|
80
52
|
export const FACELESS_IMAGE_CREDITS = 7;
|
|
81
53
|
export const FACELESS_OPENER_CREDITS = 49;
|
|
82
54
|
export const FACELESS_CREDITS_PER_1500_FRAMES = PRODUCTION_CREDITS_PER_SECOND * 60;
|
|
83
55
|
export const FACELESS_MIN_BASE_CREDITS = DELIVERED_VIDEO_MINIMUM_CREDITS;
|
|
84
|
-
/** An action shot (#1113): its seconds at make_ugc's shot rate, at most ten a run (#1192) and five seconds each. */
|
|
85
56
|
export const FACELESS_SHOT_CREDITS_PER_SECOND = 30;
|
|
86
57
|
export const FACELESS_MAX_SHOTS = 10;
|
|
87
58
|
export const FACELESS_SHOT_MAX_SEC = 5;
|
|
88
|
-
/** The largest dollar cap a faceless run may be configured with; a larger env value turns faceless off. Ten 5 s shots on a 90 s run need $8.47. */
|
|
89
59
|
export const FACELESS_MAX_CAP_USD_MICROS = 10_000_000;
|
|
90
|
-
/** The seconds a run with `shots` action shots may be charged for, every shot at its longest. */
|
|
91
|
-
/** Faceless scenes have their own switch beside make_ugc's (#1113): their model calls join the faceless cost journal first. */
|
|
92
60
|
export const facelessScenesEnabled = (env) => env.CLIPWRIGHT_FACELESS_SCENES === "1";
|
|
93
61
|
export const facelessShotSecondsCeiling = (shots) => shots * FACELESS_SHOT_MAX_SEC;
|
|
94
|
-
/** The parts price of `images` generated pictures in `outputFrames` frames: the production seconds rounded up once. */
|
|
95
62
|
export function facelessPartsBase(images, outputFrames) {
|
|
96
63
|
return images * FACELESS_IMAGE_CREDITS + Math.ceil(FACELESS_CREDITS_PER_1500_FRAMES * outputFrames / 1500);
|
|
97
64
|
}
|
|
98
|
-
/** The explainer format (#1216) is off unless switched on: it draws its scenes and makes no opening clip. */
|
|
99
65
|
export const facelessExplainerEnabled = (env) => env.CLIPWRIGHT_FACELESS_EXPLAINER === "1";
|
|
100
|
-
/** The explainer hero's pose set: one generated picture a pose, made when the run names a character. */
|
|
101
66
|
export const FACELESS_EXPLAINER_POSE_PICTURES = 9;
|
|
102
|
-
/** An explainer scene drawn for its video: its price, the most a video draws, and their switch; charged only when the delivered video draws it. */
|
|
103
67
|
export const EXPLAINER_BEAT_CREDITS = 65;
|
|
104
68
|
export const EXPLAINER_MAX_AUTHORED_BEATS = 8;
|
|
105
69
|
export const explainerBeatsEnabled = (env) => env.CLIPWRIGHT_EXPLAINER_BEATS === "1";
|
|
106
|
-
/** An explainer's pictures of the things its script names (#1277): one for each sentence naming a thing in a list of things, at most 12, none
|
|
107
|
-
* for steps through software; each a generated picture once shown. */
|
|
108
70
|
export const EXPLAINER_MAX_OBJECT_PICTURES = 12;
|
|
109
71
|
export const explainerObjectCeiling = (script) => Math.min(EXPLAINER_MAX_OBJECT_PICTURES, namedThings(script));
|
|
110
|
-
/** A drawn explainer film (#1291): one price for a film up to 60 s, and each second past it; its hero's poses are priced as pictures. */
|
|
111
72
|
export const EXPLAINER_FILM_CREDITS = 500;
|
|
112
73
|
export const EXPLAINER_FILM_INCLUDED_SECONDS = 60;
|
|
113
74
|
export const EXPLAINER_FILM_CREDITS_PER_EXTRA_SECOND = 8;
|
|
114
|
-
/** The drawn-film tariffs and their film price: up to the included seconds, then each second past them. A snapshot names its tariff, so a
|
|
115
|
-
* price change is a new tariff: a run admitted at the old price settles at it. */
|
|
116
75
|
export const SKILL_FILM_TARIFFS = {
|
|
117
76
|
"skill-explainer-v1": { filmCredits: EXPLAINER_FILM_CREDITS, perExtraSecond: EXPLAINER_FILM_CREDITS_PER_EXTRA_SECOND },
|
|
118
77
|
"skill-agent-opus-v1": { filmCredits: 1200, perExtraSecond: 20 },
|
|
@@ -123,25 +82,17 @@ export const isSkillFilmTariff = (value) => typeof value === "string" && Object.
|
|
|
123
82
|
export const skillFilmCredits = (tariff, outputFrames) => SKILL_FILM_TARIFFS[tariff].filmCredits +
|
|
124
83
|
SKILL_FILM_TARIFFS[tariff].perExtraSecond * Math.max(0, Math.ceil(outputFrames / 25) - EXPLAINER_FILM_INCLUDED_SECONDS);
|
|
125
84
|
export const explainerFilmCredits = (outputFrames) => skillFilmCredits("skill-explainer-v1", outputFrames);
|
|
126
|
-
/** The explainer's two levels a customer picks by name (#1291 F4): each freezes its film tariff at admission; omitted is `standard`. */
|
|
127
85
|
export const EXPLAINER_TIERS = ["standard", "pro"];
|
|
128
86
|
export const EXPLAINER_TIER_TARIFFS = { standard: "skill-agent-sonnet-v2", pro: "skill-agent-opus-v1" };
|
|
129
87
|
export const explainerTierTariff = (tier) => EXPLAINER_TIER_TARIFFS[tier ?? "standard"];
|
|
130
|
-
/** The explainer's film switch on `api` (#1291 F4): off, every explainer is refused before any reserve. */
|
|
131
88
|
export const skillAgentEnabled = (env) => env.CLIPWRIGHT_SKILL_AGENT === "1";
|
|
132
|
-
/** The picture counts a parts snapshot's base may hold for `selectedFrames`: a picture video's ceiling, or an explainer's poses with or without a
|
|
133
|
-
* named character. */
|
|
134
89
|
export const facelessImageCeilings = (selectedFrames) => [facelessMaxGeneratedImages(selectedFrames, FACELESS_PUBLIC_MAX_GENERATED_IMAGES), FACELESS_EXPLAINER_POSE_PICTURES, 0];
|
|
135
|
-
/** The most a selection is charged: every picture the run may generate, every selected second, the opening clip. */
|
|
136
|
-
/** An explainer makes no opening clip; its pictures are the hero's poses, charged as generated pictures when delivered. */
|
|
137
90
|
export function quoteFaceless(input) {
|
|
138
91
|
const outputFrames = z.number().int().min(FACELESS_MIN_OUTPUT_FRAMES).max(2250).parse(input.outputFrames);
|
|
139
92
|
const captions = z.boolean().parse(input.captions);
|
|
140
93
|
const openerCredits = input.explainer ? 0 : FACELESS_OPENER_CREDITS;
|
|
141
94
|
const posePictures = input.explainer ? (input.explainer.character ? FACELESS_EXPLAINER_POSE_PICTURES : 0) : undefined;
|
|
142
|
-
// An explainer generates only its hero's poses; a picture video, one picture per two selected seconds plus four.
|
|
143
95
|
const images = posePictures ?? facelessMaxGeneratedImages(outputFrames, FACELESS_PUBLIC_MAX_GENERATED_IMAGES);
|
|
144
|
-
// A drawn film (#1291) is priced whole: its poses and the film, with no line of the scenes and pictures the film draws itself.
|
|
145
96
|
if (input.explainer?.film) {
|
|
146
97
|
const filmCredits = skillFilmCredits(input.explainer.film, outputFrames), baseCredits = images * FACELESS_IMAGE_CREDITS + filmCredits;
|
|
147
98
|
return { outputFrames, baseCredits, openerCredits, totalCredits: Math.max(FACELESS_MIN_BASE_CREDITS, baseCredits), tariffId: FACELESS_TARIFF_ID,
|
|
@@ -151,13 +102,10 @@ export function quoteFaceless(input) {
|
|
|
151
102
|
const musicCredits = input.music === undefined ? 0 : MUSIC_BED_CREDITS;
|
|
152
103
|
const shots = z.number().int().min(0).max(FACELESS_MAX_SHOTS).parse(input.shots ?? 0);
|
|
153
104
|
const shotSeconds = facelessShotSecondsCeiling(shots), shotCredits = shotSeconds * FACELESS_SHOT_CREDITS_PER_SECOND;
|
|
154
|
-
// A scene costs what it costs on make_ugc: one price per scene drawn.
|
|
155
105
|
const scenes = z.number().int().min(0).max(MAX_SCENES).parse(input.scenes ?? 0), sceneCredits = scenes * SCENE_CREDITS;
|
|
156
106
|
const authoredScenes = input.explainer?.beats ? EXPLAINER_MAX_AUTHORED_BEATS : 0, authoredSceneCredits = authoredScenes * EXPLAINER_BEAT_CREDITS;
|
|
157
107
|
const objectPictures = z.number().int().min(0).max(EXPLAINER_MAX_OBJECT_PICTURES).parse(input.explainer?.objects ?? 0);
|
|
158
108
|
const objectPictureCredits = objectPictures * FACELESS_IMAGE_CREDITS;
|
|
159
|
-
// A delivered video costs at least the minimum, and the quote is the most it costs: an explainer with our drawn hero holds the minimum,
|
|
160
|
-
// since its seconds alone may fall under it (a picture video's ceiling is always past it).
|
|
161
109
|
return { outputFrames, baseCredits, openerCredits,
|
|
162
110
|
totalCredits: Math.max(FACELESS_MIN_BASE_CREDITS, baseCredits + openerCredits) + musicCredits + shotCredits + sceneCredits + authoredSceneCredits +
|
|
163
111
|
objectPictureCredits,
|
|
@@ -165,23 +113,14 @@ export function quoteFaceless(input) {
|
|
|
165
113
|
...(shots ? { shotSeconds, shotCredits } : {}), ...(scenes ? { scenes, sceneCredits } : {}), ...(posePictures === undefined ? {} : { posePictures }),
|
|
166
114
|
...(authoredScenes ? { authoredScenes, authoredSceneCredits } : {}), ...(objectPictures ? { objectPictures, objectPictureCredits } : {}) };
|
|
167
115
|
}
|
|
168
|
-
/** A directed video's prices (#1573): a live second, the direction line, and a picture made for the video; production and the minimum are
|
|
169
|
-
* the parts tariff's, with no opening clip. A video mostly on the caller's own pictures pays the smaller direction line. */
|
|
170
116
|
export const FACELESS_DIRECTED_PLAIN_LIVE_CREDITS_PER_SECOND = 12;
|
|
171
|
-
// A live second whose frame shows readable text, a logo or a sign costs the text rate; the hold counts every live second at it.
|
|
172
117
|
export const FACELESS_DIRECTED_TEXT_LIVE_CREDITS_PER_SECOND = 20;
|
|
173
118
|
export const FACELESS_DIRECTED_DIRECTION_CREDITS = 120;
|
|
174
119
|
export const FACELESS_DIRECTED_OWN_PICTURES_DIRECTION_CREDITS = 60;
|
|
175
120
|
export const FACELESS_DIRECTED_IMAGE_CREDITS = 9;
|
|
176
|
-
/** The pictures a directed video may make: one per 2.5 selected seconds, at most 24, less the caller's own pictures. */
|
|
177
121
|
export const facelessDirectedPictures = (selectedSeconds) => Math.min(24, Math.ceil(selectedSeconds / 2.5));
|
|
178
|
-
/** The share of the selected seconds each level plays live: standard about a third, pro every second. Live shots are made at 720p only,
|
|
179
|
-
* so a 1080p video has none. */
|
|
180
122
|
export const FACELESS_DIRECTED_LIVE_SHARE = { standard: 1 / 3, pro: 1 };
|
|
181
|
-
/** The most a directed video is charged on its level, which is also the budget it is planned within: every picture it may
|
|
182
|
-
* make, every selected second, the direction, and the level's live seconds held at the text rate, whole seconds that fit `maxCredits`. */
|
|
183
123
|
export function quoteDirectedFaceless(ask) {
|
|
184
|
-
// The run is charged what it shows, text seconds at 20 and the rest at 12: `totalCreditsWithoutText` is the charge when none shows text.
|
|
185
124
|
const outputFrames = z.number().int().min(FACELESS_MIN_OUTPUT_FRAMES).max(2250).multipleOf(25).parse(ask.outputFrames);
|
|
186
125
|
const seconds = outputFrames / 25, pictures = facelessDirectedPictures(seconds);
|
|
187
126
|
const own = z.number().int().nonnegative().parse(ask.ownPictures), stillsCeiling = Math.max(0, pictures - own);
|
|
@@ -194,15 +133,12 @@ export function quoteDirectedFaceless(ask) {
|
|
|
194
133
|
const text = FACELESS_DIRECTED_TEXT_LIVE_CREDITS_PER_SECOND, plain = FACELESS_DIRECTED_PLAIN_LIVE_CREDITS_PER_SECOND;
|
|
195
134
|
const fits = ask.maxCredits === undefined ? liveSecondsCeiling : Math.floor((ask.maxCredits - fixed) / text);
|
|
196
135
|
const shotSeconds = Math.max(0, Math.min(liveSecondsCeiling, fits)), shotCredits = shotSeconds * text;
|
|
197
|
-
// A level plays at most its held seconds with or without text: the hold covers them at the text rate.
|
|
198
136
|
const plainLiveSeconds = shotSeconds;
|
|
199
137
|
return { liveSecondsCeiling, plainLiveSeconds, stillsCeiling, ownPicturesRun, quote: { outputFrames, baseCredits, openerCredits: 0,
|
|
200
138
|
totalCredits: fixed + shotCredits, totalCreditsWithoutText: fixed + plainLiveSeconds * plain, tariffId: FACELESS_DIRECTED_TARIFF_ID,
|
|
201
139
|
captions: z.boolean().parse(ask.captions), images: stillsCeiling, imageCredits: FACELESS_DIRECTED_IMAGE_CREDITS, directionCredits, shotSeconds,
|
|
202
140
|
shotCredits, ...(musicCredits ? { musicCredits } : {}) } };
|
|
203
141
|
}
|
|
204
|
-
/** The parts base at a picture price: `images` pictures and every second of `outputFrames`, the seconds rounded up once. */
|
|
205
142
|
export function facelessPartsBaseAt(images, imageCredits, outputFrames) {
|
|
206
143
|
return images * imageCredits + Math.ceil(FACELESS_CREDITS_PER_1500_FRAMES * outputFrames / 1500);
|
|
207
144
|
}
|
|
208
|
-
//# sourceMappingURL=faceless-price.js.map
|
|
@@ -47,7 +47,6 @@ export declare function facelessSpeechWordSpans(script: string): Array<{
|
|
|
47
47
|
export declare function facelessSpeechLexicalWords(script: string): string[];
|
|
48
48
|
export declare function parseFacelessPublicStory(input: unknown, expectedScript?: string): FacelessPublicStory;
|
|
49
49
|
type Score = ReturnType<typeof facelessCutScore>;
|
|
50
|
-
/** The opening VIDEO lasts 3–5 s at 25 fps. */
|
|
51
50
|
export declare const FACELESS_OPENER_MIN_FRAMES = 75, FACELESS_OPENER_MAX_FRAMES = 125;
|
|
52
51
|
export declare const FACELESS_IMAGE_MIN_FRAMES = 25, FACELESS_IMAGE_MAX_FRAMES = 150;
|
|
53
52
|
export declare const FACELESS_OPENER_BOUNDS_ERROR = "mandatory opening VIDEO requires 75\u2013125 frames";
|
|
@@ -58,9 +57,7 @@ export type FacelessPublicPlan = {
|
|
|
58
57
|
words: WordTiming[];
|
|
59
58
|
narrationStartFrame: number;
|
|
60
59
|
captionPhrases: z.infer<typeof phrase>[];
|
|
61
|
-
/** Present only past `FACELESS_IMAGE_MAX_FRAMES`: the longest IMAGE shot this plan was made under. */
|
|
62
60
|
imageMaxFrames?: number;
|
|
63
|
-
/** Present only when positive: frames the last picture holds past the narration's tail, so a template plays out (#1462). */
|
|
64
61
|
endHoldFrames?: number;
|
|
65
62
|
shots: Array<{
|
|
66
63
|
id: string;
|
|
@@ -70,38 +67,28 @@ export type FacelessPublicPlan = {
|
|
|
70
67
|
beatIds: string[];
|
|
71
68
|
visualPrompts: string[];
|
|
72
69
|
phase: FacelessPublicStory["beats"][number]["phase"];
|
|
73
|
-
/** The planner pans; the closing picture may zoom out instead (#1067). */
|
|
74
70
|
motion?: "PAN_UP" | "PAN_DOWN" | "ZOOM_IN" | "ZOOM_OUT";
|
|
75
71
|
cutAfterWord?: number;
|
|
76
72
|
score: Score;
|
|
77
|
-
/** An action shot (#1113): a VIDEO after the opener, the clip made from its picture. */
|
|
78
73
|
action?: true;
|
|
79
74
|
}>;
|
|
80
75
|
};
|
|
81
|
-
/** `keepBeats`: beat indices (1 and up) the opener may not absorb, such as beats a customer image is anchored to. */
|
|
82
76
|
export type FacelessPublicPlanOptions = {
|
|
83
77
|
keepBeats?: ReadonlySet<number>;
|
|
84
|
-
/** With no beat boundary inside the opener bounds, end the opener at a word gap inside beat 1. */
|
|
85
78
|
openerWordGap?: boolean;
|
|
86
|
-
/** Word ranges [first, end) no cut may fall inside, such as the words a customer image is anchored to. */
|
|
87
79
|
keepTogether?: ReadonlyArray<{
|
|
88
80
|
first: number;
|
|
89
81
|
end: number;
|
|
90
82
|
}>;
|
|
91
|
-
/** Lets the word gap fall after words of a kept range, which the opener then covers; the caller warns about them. */
|
|
92
83
|
openerGapPastKept?: boolean;
|
|
93
|
-
/** Word ranges whose shot may last at most `maxFrames` (an action shot's clip, #1113); a shot over them that runs longer is not planned. */
|
|
94
84
|
capFrames?: ReadonlyArray<{
|
|
95
85
|
first: number;
|
|
96
86
|
end: number;
|
|
97
87
|
maxFrames: number;
|
|
98
88
|
}>;
|
|
99
|
-
/** The longest IMAGE shot, from `FACELESS_IMAGE_MAX_FRAMES` up: a narration longer than its plan keeps its pictures and holds each longer. */
|
|
100
89
|
imageMaxFrames?: number;
|
|
101
|
-
/** Frames the video runs past its narration's tail, the last picture held, so a series or call to action plays out (#1462). */
|
|
102
90
|
endHoldFrames?: number;
|
|
103
91
|
};
|
|
104
|
-
/** Speech boundaries and planner cuts share the native nearest-frame clock. */
|
|
105
92
|
export declare const facelessSpeechFrame: (seconds: number) => number;
|
|
106
93
|
export declare function planPublicFacelessStory(input: FacelessPublicStory, words: readonly WordTiming[], inputStyle: CutStyleProfile, outputFrames: number, options?: FacelessPublicPlanOptions): FacelessPublicPlan;
|
|
107
94
|
export {};
|
|
@@ -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
|