@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
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FACELESS_BEAT_KINDS: readonly ["live", "still_move", "static_insert", "customer_image", "card"];
|
|
3
|
+
export declare const FACELESS_SHOT_SIZES: readonly ["ecu", "cu", "mcu", "ms", "mws", "ws", "ews"];
|
|
4
|
+
export declare const facelessDirectionSummary: z.ZodObject<{
|
|
5
|
+
beats: z.ZodArray<z.ZodObject<{
|
|
6
|
+
words: z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
7
|
+
kind: z.ZodEnum<{
|
|
8
|
+
card: "card";
|
|
9
|
+
customer_image: "customer_image";
|
|
10
|
+
live: "live";
|
|
11
|
+
static_insert: "static_insert";
|
|
12
|
+
still_move: "still_move";
|
|
13
|
+
}>;
|
|
14
|
+
shot_size: z.ZodEnum<{
|
|
15
|
+
cu: "cu";
|
|
16
|
+
ecu: "ecu";
|
|
17
|
+
ews: "ews";
|
|
18
|
+
mcu: "mcu";
|
|
19
|
+
ms: "ms";
|
|
20
|
+
mws: "mws";
|
|
21
|
+
ws: "ws";
|
|
22
|
+
}>;
|
|
23
|
+
}, z.core.$strict>>;
|
|
24
|
+
live_seconds: z.ZodNumber;
|
|
25
|
+
pictures: z.ZodNumber;
|
|
26
|
+
}, z.core.$strict>;
|
|
27
|
+
export type FacelessDirectionSummary = z.infer<typeof facelessDirectionSummary>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const FACELESS_BEAT_KINDS = ["live", "still_move", "static_insert", "customer_image", "card"];
|
|
3
|
+
export const FACELESS_SHOT_SIZES = ["ecu", "cu", "mcu", "ms", "mws", "ws", "ews"];
|
|
4
|
+
const word = z.number().int().nonnegative().safe();
|
|
5
|
+
export const facelessDirectionSummary = z.strictObject({
|
|
6
|
+
beats: z.array(z.strictObject({ words: z.tuple([word, word]).nullable(), kind: z.enum(FACELESS_BEAT_KINDS), shot_size: z.enum(FACELESS_SHOT_SIZES) })),
|
|
7
|
+
live_seconds: z.number().nonnegative(), pictures: z.number().int().nonnegative(),
|
|
8
|
+
});
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { AssetBinding } from "./contracts/v1/workflow-evidence.js";
|
|
2
|
-
/** Includes the live caption box's stroke/shadow; rendering tests check this bound. */
|
|
3
2
|
export declare const FACELESS_CAPTION_OCCLUSION: Readonly<{
|
|
4
3
|
left: 48;
|
|
5
4
|
top: 1296;
|
|
6
5
|
right: 1032;
|
|
7
6
|
bottom: 1392;
|
|
8
7
|
}>;
|
|
9
|
-
/** The source rectangle must survive every native PAN position, including a swept caption overlap. */
|
|
10
8
|
export declare function protectedFacelessPlacement(source: {
|
|
11
9
|
width: number;
|
|
12
10
|
height: number;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/** Includes the live caption box's stroke/shadow; rendering tests check this bound. */
|
|
2
1
|
export const FACELESS_CAPTION_OCCLUSION = Object.freeze({ left: 48, top: 1296, right: 1032, bottom: 1392 });
|
|
3
|
-
/** The source rectangle must survive every native PAN position, including a swept caption overlap. */
|
|
4
2
|
export function protectedFacelessPlacement(source, area, options) {
|
|
5
3
|
const crop = options.cropBottomPx ?? 0;
|
|
6
4
|
if (![source.width, source.height, area.x, area.y, area.width, area.height, crop].every(Number.isFinite) ||
|
|
@@ -27,4 +25,3 @@ export function protectedFacelessPlacement(source, area, options) {
|
|
|
27
25
|
}
|
|
28
26
|
return { visibleArea: { x, y, width: right - x, height: bottom - y } };
|
|
29
27
|
}
|
|
30
|
-
//# sourceMappingURL=faceless-image-placement.js.map
|
|
@@ -6,7 +6,6 @@ import { DEFAULT_TTS_MODEL, speechTextFor, TTS_MODEL_CHAR_CAP } from "./voices.j
|
|
|
6
6
|
const id = z.string().min(1);
|
|
7
7
|
const suppliedSource = z.strictObject({
|
|
8
8
|
kind: z.literal("supplied"),
|
|
9
|
-
// Offline source eligibility only: remote bytes and geometry remain unqualified.
|
|
10
9
|
url: z.url().max(MAX_URL_LENGTH).refine(url => {
|
|
11
10
|
const source = new URL(url);
|
|
12
11
|
return source.protocol === "https:" && /\.(png|jpe?g)$/i.test(source.pathname);
|
|
@@ -142,4 +141,3 @@ export function quoteFacelessImage(input) {
|
|
|
142
141
|
maxUsdSpend: 0,
|
|
143
142
|
};
|
|
144
143
|
}
|
|
145
|
-
//# sourceMappingURL=faceless-image-qualification.js.map
|
|
@@ -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,30 +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
|
-
export declare const
|
|
7
|
-
|
|
5
|
+
export declare const FACELESS_DIRECTED_TARIFF_ID: "faceless-parts-v2";
|
|
6
|
+
export declare const FACELESS_TARIFF_IDS: readonly ["faceless-parts-v1", "faceless-image-i2v-v1", "faceless-parts-v2"];
|
|
8
7
|
export declare const FACELESS_MIN_OUTPUT_FRAMES = 625;
|
|
9
|
-
/** An explainer runs to its last word and 0.8 s past it, however short; one second is the shortest its composition draws (#1216). */
|
|
10
8
|
export declare const FACELESS_EXPLAINER_MIN_OUTPUT_FRAMES = 25;
|
|
11
|
-
/** The length a caller selects, in seconds. */
|
|
12
9
|
export declare const FACELESS_MIN_SELECTED_SECONDS = 30;
|
|
13
10
|
export declare const FACELESS_MAX_SELECTED_SECONDS = 90;
|
|
14
|
-
/** The pre-speech estimate floor keeps the 4 s offset the 26 s floor had from the former 30 s minimum. */
|
|
15
11
|
export declare const FACELESS_MIN_ESTIMATE_SEC = 21;
|
|
16
|
-
/** A script is admitted when its estimate fits the selection plus 5 s; a video longer than that is named in `warnings[]`. */
|
|
17
12
|
export declare const facelessMaxEstimateFrames: (selectedFrames: number) => number;
|
|
18
|
-
/** A video is planned within a quarter past its selection, at most 90 s; the charge stays within the selection's quote. */
|
|
19
13
|
export declare const facelessMaxOutputFrames: (selectedFrames: number) => number;
|
|
20
|
-
/** The most characters one narration speaks, and a pace below every voice's: the slowest measured one reads 13.87 a second. */
|
|
21
14
|
export declare const FACELESS_SPEECH_MAX_CHARACTERS = 2500;
|
|
22
15
|
export declare const FACELESS_SLOWEST_CHARACTERS_PER_SECOND = 13;
|
|
23
|
-
/** A narration longer than its plan is delivered at its length: the longest one at that pace, a 5 s lead, whole seconds. */
|
|
24
16
|
export declare const FACELESS_MAX_OUTPUT_FRAMES: number;
|
|
25
|
-
/** Pictures a public run may generate, the opener's first frame included. */
|
|
26
17
|
export declare const FACELESS_PUBLIC_MAX_GENERATED_IMAGES = 31;
|
|
27
|
-
/** 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. */
|
|
28
18
|
export declare const facelessMaxGeneratedImages: (selectedFrames: number, imageCeiling?: number) => number;
|
|
29
19
|
export declare const facelessQuote: z.ZodObject<{
|
|
30
20
|
outputFrames: z.ZodNumber;
|
|
@@ -34,6 +24,7 @@ export declare const facelessQuote: z.ZodObject<{
|
|
|
34
24
|
tariffId: z.ZodEnum<{
|
|
35
25
|
"faceless-image-i2v-v1": "faceless-image-i2v-v1";
|
|
36
26
|
"faceless-parts-v1": "faceless-parts-v1";
|
|
27
|
+
"faceless-parts-v2": "faceless-parts-v2";
|
|
37
28
|
}>;
|
|
38
29
|
captions: z.ZodBoolean;
|
|
39
30
|
images: z.ZodOptional<z.ZodNumber>;
|
|
@@ -41,6 +32,9 @@ export declare const facelessQuote: z.ZodObject<{
|
|
|
41
32
|
musicCredits: z.ZodOptional<z.ZodNumber>;
|
|
42
33
|
shotSeconds: z.ZodOptional<z.ZodNumber>;
|
|
43
34
|
shotCredits: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
textShotSeconds: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
textShotCredits: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
totalCreditsWithoutText: z.ZodOptional<z.ZodNumber>;
|
|
44
38
|
scenes: z.ZodOptional<z.ZodNumber>;
|
|
45
39
|
sceneCredits: z.ZodOptional<z.ZodNumber>;
|
|
46
40
|
posePictures: z.ZodOptional<z.ZodNumber>;
|
|
@@ -49,9 +43,9 @@ export declare const facelessQuote: z.ZodObject<{
|
|
|
49
43
|
objectPictures: z.ZodOptional<z.ZodNumber>;
|
|
50
44
|
objectPictureCredits: z.ZodOptional<z.ZodNumber>;
|
|
51
45
|
filmCredits: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
directionCredits: z.ZodOptional<z.ZodNumber>;
|
|
52
47
|
}, z.core.$strict>;
|
|
53
48
|
export type FacelessQuote = z.infer<typeof facelessQuote>;
|
|
54
|
-
/** 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. */
|
|
55
49
|
export declare const facelessRunBilling: z.ZodObject<{
|
|
56
50
|
baseCredits: z.ZodNumber;
|
|
57
51
|
openerCredits: z.ZodNumber;
|
|
@@ -59,6 +53,7 @@ export declare const facelessRunBilling: z.ZodObject<{
|
|
|
59
53
|
tariffId: z.ZodEnum<{
|
|
60
54
|
"faceless-image-i2v-v1": "faceless-image-i2v-v1";
|
|
61
55
|
"faceless-parts-v1": "faceless-parts-v1";
|
|
56
|
+
"faceless-parts-v2": "faceless-parts-v2";
|
|
62
57
|
}>;
|
|
63
58
|
captions: z.ZodBoolean;
|
|
64
59
|
images: z.ZodOptional<z.ZodNumber>;
|
|
@@ -66,6 +61,9 @@ export declare const facelessRunBilling: z.ZodObject<{
|
|
|
66
61
|
musicCredits: z.ZodOptional<z.ZodNumber>;
|
|
67
62
|
shotSeconds: z.ZodOptional<z.ZodNumber>;
|
|
68
63
|
shotCredits: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
textShotSeconds: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
textShotCredits: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
totalCreditsWithoutText: z.ZodOptional<z.ZodNumber>;
|
|
69
67
|
scenes: z.ZodOptional<z.ZodNumber>;
|
|
70
68
|
sceneCredits: z.ZodOptional<z.ZodNumber>;
|
|
71
69
|
posePictures: z.ZodOptional<z.ZodNumber>;
|
|
@@ -74,48 +72,33 @@ export declare const facelessRunBilling: z.ZodObject<{
|
|
|
74
72
|
objectPictures: z.ZodOptional<z.ZodNumber>;
|
|
75
73
|
objectPictureCredits: z.ZodOptional<z.ZodNumber>;
|
|
76
74
|
filmCredits: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
directionCredits: z.ZodOptional<z.ZodNumber>;
|
|
77
76
|
outputFrames: z.ZodNumber;
|
|
78
77
|
}, z.core.$strict>;
|
|
79
|
-
/** The legacy tariff's numbers: base credits per 1500 frames (a minute at 25 fps), the base's floor, and the opening clip. */
|
|
80
78
|
export declare const FACELESS_LEGACY_CREDITS_PER_1500_FRAMES = 180;
|
|
81
79
|
export declare const FACELESS_LEGACY_MIN_BASE_CREDITS = 200;
|
|
82
80
|
export declare const FACELESS_LEGACY_OPENER_CREDITS = 150;
|
|
83
|
-
/** The parts tariff: a generated picture, the opening clip, */
|
|
84
|
-
/** and every second of the video for story, voice, checks and render, at least 50 for a delivered video. */
|
|
85
81
|
export declare const FACELESS_IMAGE_CREDITS = 7;
|
|
86
82
|
export declare const FACELESS_OPENER_CREDITS = 49;
|
|
87
83
|
export declare const FACELESS_CREDITS_PER_1500_FRAMES: number;
|
|
88
84
|
export declare const FACELESS_MIN_BASE_CREDITS = 50;
|
|
89
|
-
/** An action shot (#1113): its seconds at make_ugc's shot rate, at most ten a run (#1192) and five seconds each. */
|
|
90
85
|
export declare const FACELESS_SHOT_CREDITS_PER_SECOND = 30;
|
|
91
86
|
export declare const FACELESS_MAX_SHOTS = 10;
|
|
92
87
|
export declare const FACELESS_SHOT_MAX_SEC = 5;
|
|
93
|
-
/** 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. */
|
|
94
88
|
export declare const FACELESS_MAX_CAP_USD_MICROS = 10000000;
|
|
95
|
-
/** The seconds a run with `shots` action shots may be charged for, every shot at its longest. */
|
|
96
|
-
/** Faceless scenes have their own switch beside make_ugc's (#1113): their model calls join the faceless cost journal first. */
|
|
97
89
|
export declare const facelessScenesEnabled: (env: Record<string, string | undefined>) => boolean;
|
|
98
90
|
export declare const facelessShotSecondsCeiling: (shots: number) => number;
|
|
99
|
-
/** The parts price of `images` generated pictures in `outputFrames` frames: the production seconds rounded up once. */
|
|
100
91
|
export declare function facelessPartsBase(images: number, outputFrames: number): number;
|
|
101
|
-
/** The explainer format (#1216) is off unless switched on: it draws its scenes and makes no opening clip. */
|
|
102
92
|
export declare const facelessExplainerEnabled: (env: Record<string, string | undefined>) => boolean;
|
|
103
|
-
/** The explainer hero's pose set: one generated picture a pose, made when the run names a character. */
|
|
104
93
|
export declare const FACELESS_EXPLAINER_POSE_PICTURES = 9;
|
|
105
|
-
/** 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. */
|
|
106
94
|
export declare const EXPLAINER_BEAT_CREDITS = 65;
|
|
107
95
|
export declare const EXPLAINER_MAX_AUTHORED_BEATS = 8;
|
|
108
96
|
export declare const explainerBeatsEnabled: (env: Record<string, string | undefined>) => boolean;
|
|
109
|
-
/** 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
|
|
110
|
-
* for steps through software; each a generated picture once shown. */
|
|
111
97
|
export declare const EXPLAINER_MAX_OBJECT_PICTURES = 12;
|
|
112
98
|
export declare const explainerObjectCeiling: (script: string) => number;
|
|
113
|
-
/** 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. */
|
|
114
99
|
export declare const EXPLAINER_FILM_CREDITS = 500;
|
|
115
100
|
export declare const EXPLAINER_FILM_INCLUDED_SECONDS = 60;
|
|
116
101
|
export declare const EXPLAINER_FILM_CREDITS_PER_EXTRA_SECOND = 8;
|
|
117
|
-
/** 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
|
|
118
|
-
* price change is a new tariff: a run admitted at the old price settles at it. */
|
|
119
102
|
export declare const SKILL_FILM_TARIFFS: {
|
|
120
103
|
readonly "skill-explainer-v1": {
|
|
121
104
|
readonly filmCredits: 500;
|
|
@@ -138,7 +121,6 @@ export type SkillFilmTariff = keyof typeof SKILL_FILM_TARIFFS;
|
|
|
138
121
|
export declare const isSkillFilmTariff: (value: unknown) => value is SkillFilmTariff;
|
|
139
122
|
export declare const skillFilmCredits: (tariff: SkillFilmTariff, outputFrames: number) => number;
|
|
140
123
|
export declare const explainerFilmCredits: (outputFrames: number) => number;
|
|
141
|
-
/** The explainer's two levels a customer picks by name (#1291 F4): each freezes its film tariff at admission; omitted is `standard`. */
|
|
142
124
|
export declare const EXPLAINER_TIERS: readonly ["standard", "pro"];
|
|
143
125
|
export type ExplainerTier = (typeof EXPLAINER_TIERS)[number];
|
|
144
126
|
export declare const EXPLAINER_TIER_TARIFFS: {
|
|
@@ -146,13 +128,8 @@ export declare const EXPLAINER_TIER_TARIFFS: {
|
|
|
146
128
|
readonly pro: "skill-agent-opus-v1";
|
|
147
129
|
};
|
|
148
130
|
export declare const explainerTierTariff: (tier: ExplainerTier | undefined) => SkillFilmTariff;
|
|
149
|
-
/** The explainer's film switch on `api` (#1291 F4): off, every explainer is refused before any reserve. */
|
|
150
131
|
export declare const skillAgentEnabled: (env: Record<string, string | undefined>) => boolean;
|
|
151
|
-
/** 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
|
|
152
|
-
* named character. */
|
|
153
132
|
export declare const facelessImageCeilings: (selectedFrames: number) => number[];
|
|
154
|
-
/** The most a selection is charged: every picture the run may generate, every selected second, the opening clip. */
|
|
155
|
-
/** An explainer makes no opening clip; its pictures are the hero's poses, charged as generated pictures when delivered. */
|
|
156
133
|
export declare function quoteFaceless(input: {
|
|
157
134
|
outputFrames: number;
|
|
158
135
|
captions: boolean;
|
|
@@ -166,3 +143,31 @@ export declare function quoteFaceless(input: {
|
|
|
166
143
|
film?: SkillFilmTariff;
|
|
167
144
|
} | undefined;
|
|
168
145
|
}): FacelessQuote;
|
|
146
|
+
export declare const FACELESS_DIRECTED_PLAIN_LIVE_CREDITS_PER_SECOND = 12;
|
|
147
|
+
export declare const FACELESS_DIRECTED_TEXT_LIVE_CREDITS_PER_SECOND = 20;
|
|
148
|
+
export declare const FACELESS_DIRECTED_DIRECTION_CREDITS = 120;
|
|
149
|
+
export declare const FACELESS_DIRECTED_OWN_PICTURES_DIRECTION_CREDITS = 60;
|
|
150
|
+
export declare const FACELESS_DIRECTED_IMAGE_CREDITS = 9;
|
|
151
|
+
export declare const facelessDirectedPictures: (selectedSeconds: number) => number;
|
|
152
|
+
export declare const FACELESS_DIRECTED_LIVE_SHARE: {
|
|
153
|
+
readonly standard: number;
|
|
154
|
+
readonly pro: 1;
|
|
155
|
+
};
|
|
156
|
+
export interface DirectedFacelessAsk {
|
|
157
|
+
outputFrames: number;
|
|
158
|
+
captions: boolean;
|
|
159
|
+
music?: MusicRequest | undefined;
|
|
160
|
+
ownPictures: number;
|
|
161
|
+
tier: ExplainerTier;
|
|
162
|
+
resolution: "720p" | "1080p";
|
|
163
|
+
maxCredits?: number | undefined;
|
|
164
|
+
}
|
|
165
|
+
export interface DirectedFacelessTerms {
|
|
166
|
+
quote: FacelessQuote;
|
|
167
|
+
liveSecondsCeiling: number;
|
|
168
|
+
plainLiveSeconds: number;
|
|
169
|
+
stillsCeiling: number;
|
|
170
|
+
ownPicturesRun: boolean;
|
|
171
|
+
}
|
|
172
|
+
export declare function quoteDirectedFaceless(ask: DirectedFacelessAsk): DirectedFacelessTerms;
|
|
173
|
+
export declare function facelessPartsBaseAt(images: number, imageCredits: number, outputFrames: number): number;
|
package/dist/faceless-price.js
CHANGED
|
@@ -3,31 +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
|
-
export const
|
|
10
|
-
|
|
8
|
+
export const FACELESS_DIRECTED_TARIFF_ID = "faceless-parts-v2";
|
|
9
|
+
export const FACELESS_TARIFF_IDS = [FACELESS_TARIFF_ID, FACELESS_LEGACY_TARIFF_ID, FACELESS_DIRECTED_TARIFF_ID];
|
|
11
10
|
export const FACELESS_MIN_OUTPUT_FRAMES = 625;
|
|
12
|
-
/** An explainer runs to its last word and 0.8 s past it, however short; one second is the shortest its composition draws (#1216). */
|
|
13
11
|
export const FACELESS_EXPLAINER_MIN_OUTPUT_FRAMES = 25;
|
|
14
|
-
/** The length a caller selects, in seconds. */
|
|
15
12
|
export const FACELESS_MIN_SELECTED_SECONDS = 30;
|
|
16
13
|
export const FACELESS_MAX_SELECTED_SECONDS = 90;
|
|
17
|
-
/** The pre-speech estimate floor keeps the 4 s offset the 26 s floor had from the former 30 s minimum. */
|
|
18
14
|
export const FACELESS_MIN_ESTIMATE_SEC = 21;
|
|
19
|
-
/** A script is admitted when its estimate fits the selection plus 5 s; a video longer than that is named in `warnings[]`. */
|
|
20
15
|
export const facelessMaxEstimateFrames = (selectedFrames) => Math.min(selectedFrames + 125, 2250);
|
|
21
|
-
/** A video is planned within a quarter past its selection, at most 90 s; the charge stays within the selection's quote. */
|
|
22
16
|
export const facelessMaxOutputFrames = (selectedFrames) => Math.min(Math.floor(selectedFrames * 1.25), 2250);
|
|
23
|
-
/** The most characters one narration speaks, and a pace below every voice's: the slowest measured one reads 13.87 a second. */
|
|
24
17
|
export const FACELESS_SPEECH_MAX_CHARACTERS = 2500;
|
|
25
18
|
export const FACELESS_SLOWEST_CHARACTERS_PER_SECOND = 13;
|
|
26
|
-
/** A narration longer than its plan is delivered at its length: the longest one at that pace, a 5 s lead, whole seconds. */
|
|
27
19
|
export const FACELESS_MAX_OUTPUT_FRAMES = Math.ceil(FACELESS_SPEECH_MAX_CHARACTERS / FACELESS_SLOWEST_CHARACTERS_PER_SECOND + 5) * 25;
|
|
28
|
-
/** Pictures a public run may generate, the opener's first frame included. */
|
|
29
20
|
export const FACELESS_PUBLIC_MAX_GENERATED_IMAGES = 31;
|
|
30
|
-
/** 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. */
|
|
31
21
|
export const facelessMaxGeneratedImages = (selectedFrames, imageCeiling = Infinity) => Math.min(imageCeiling, Math.floor(selectedFrames / 50) + 4);
|
|
32
22
|
export const facelessQuote = z.object({
|
|
33
23
|
outputFrames: z.number().int().min(FACELESS_MIN_OUTPUT_FRAMES).max(2250),
|
|
@@ -36,73 +26,52 @@ export const facelessQuote = z.object({
|
|
|
36
26
|
totalCredits: z.number().int().nonnegative(),
|
|
37
27
|
tariffId: z.enum(FACELESS_TARIFF_IDS),
|
|
38
28
|
captions: z.boolean(),
|
|
39
|
-
/** On the parts tariff: the generated pictures priced (at most, on a quote; delivered, on a run) and each one's price. */
|
|
40
29
|
images: z.number().int().nonnegative().optional(),
|
|
41
30
|
imageCredits: z.number().int().nonnegative().optional(),
|
|
42
|
-
/** Asked-for music, inside `totalCredits` (#1063); absent when not asked. */
|
|
43
31
|
musicCredits: z.number().int().positive().optional(),
|
|
44
|
-
/** Action shots (#1113), inside `totalCredits`: on a quote the ceiling, on a run the drawn seconds; absent when none was asked. */
|
|
45
32
|
shotSeconds: z.number().int().nonnegative().optional(),
|
|
46
33
|
shotCredits: z.number().int().nonnegative().optional(),
|
|
47
|
-
|
|
34
|
+
textShotSeconds: z.number().int().nonnegative().optional(),
|
|
35
|
+
textShotCredits: z.number().int().nonnegative().optional(),
|
|
36
|
+
totalCreditsWithoutText: z.number().int().nonnegative().optional(),
|
|
48
37
|
scenes: z.number().int().nonnegative().optional(),
|
|
49
38
|
sceneCredits: z.number().int().nonnegative().optional(),
|
|
50
|
-
/** The explainer format: the hero's pose pictures it makes, each a generated picture inside `images`; absent on other runs. */
|
|
51
39
|
posePictures: z.number().int().nonnegative().optional(),
|
|
52
|
-
/** 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. */
|
|
53
40
|
authoredScenes: z.number().int().nonnegative().optional(),
|
|
54
41
|
authoredSceneCredits: z.number().int().nonnegative().optional(),
|
|
55
|
-
/** An explainer's pictures of named things (#1277), outside `images`: on a quote the most, on a run the shown; absent when none. */
|
|
56
42
|
objectPictures: z.number().int().nonnegative().optional(),
|
|
57
43
|
objectPictureCredits: z.number().int().nonnegative().optional(),
|
|
58
|
-
/** 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. */
|
|
59
44
|
filmCredits: z.number().int().positive().optional(),
|
|
45
|
+
directionCredits: z.number().int().positive().optional(),
|
|
60
46
|
}).strict();
|
|
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
47
|
export const facelessRunBilling = facelessQuote.extend({ outputFrames: z.number().int().min(FACELESS_EXPLAINER_MIN_OUTPUT_FRAMES)
|
|
63
48
|
.max(FACELESS_MAX_OUTPUT_FRAMES) }).strict();
|
|
64
|
-
/** The legacy tariff's numbers: base credits per 1500 frames (a minute at 25 fps), the base's floor, and the opening clip. */
|
|
65
49
|
export const FACELESS_LEGACY_CREDITS_PER_1500_FRAMES = 180;
|
|
66
50
|
export const FACELESS_LEGACY_MIN_BASE_CREDITS = 200;
|
|
67
51
|
export const FACELESS_LEGACY_OPENER_CREDITS = 150;
|
|
68
|
-
/** The parts tariff: a generated picture, the opening clip, */
|
|
69
|
-
/** and every second of the video for story, voice, checks and render, at least 50 for a delivered video. */
|
|
70
52
|
export const FACELESS_IMAGE_CREDITS = 7;
|
|
71
53
|
export const FACELESS_OPENER_CREDITS = 49;
|
|
72
54
|
export const FACELESS_CREDITS_PER_1500_FRAMES = PRODUCTION_CREDITS_PER_SECOND * 60;
|
|
73
55
|
export const FACELESS_MIN_BASE_CREDITS = DELIVERED_VIDEO_MINIMUM_CREDITS;
|
|
74
|
-
/** An action shot (#1113): its seconds at make_ugc's shot rate, at most ten a run (#1192) and five seconds each. */
|
|
75
56
|
export const FACELESS_SHOT_CREDITS_PER_SECOND = 30;
|
|
76
57
|
export const FACELESS_MAX_SHOTS = 10;
|
|
77
58
|
export const FACELESS_SHOT_MAX_SEC = 5;
|
|
78
|
-
/** 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. */
|
|
79
59
|
export const FACELESS_MAX_CAP_USD_MICROS = 10_000_000;
|
|
80
|
-
/** The seconds a run with `shots` action shots may be charged for, every shot at its longest. */
|
|
81
|
-
/** Faceless scenes have their own switch beside make_ugc's (#1113): their model calls join the faceless cost journal first. */
|
|
82
60
|
export const facelessScenesEnabled = (env) => env.CLIPWRIGHT_FACELESS_SCENES === "1";
|
|
83
61
|
export const facelessShotSecondsCeiling = (shots) => shots * FACELESS_SHOT_MAX_SEC;
|
|
84
|
-
/** The parts price of `images` generated pictures in `outputFrames` frames: the production seconds rounded up once. */
|
|
85
62
|
export function facelessPartsBase(images, outputFrames) {
|
|
86
63
|
return images * FACELESS_IMAGE_CREDITS + Math.ceil(FACELESS_CREDITS_PER_1500_FRAMES * outputFrames / 1500);
|
|
87
64
|
}
|
|
88
|
-
/** The explainer format (#1216) is off unless switched on: it draws its scenes and makes no opening clip. */
|
|
89
65
|
export const facelessExplainerEnabled = (env) => env.CLIPWRIGHT_FACELESS_EXPLAINER === "1";
|
|
90
|
-
/** The explainer hero's pose set: one generated picture a pose, made when the run names a character. */
|
|
91
66
|
export const FACELESS_EXPLAINER_POSE_PICTURES = 9;
|
|
92
|
-
/** 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. */
|
|
93
67
|
export const EXPLAINER_BEAT_CREDITS = 65;
|
|
94
68
|
export const EXPLAINER_MAX_AUTHORED_BEATS = 8;
|
|
95
69
|
export const explainerBeatsEnabled = (env) => env.CLIPWRIGHT_EXPLAINER_BEATS === "1";
|
|
96
|
-
/** 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
|
|
97
|
-
* for steps through software; each a generated picture once shown. */
|
|
98
70
|
export const EXPLAINER_MAX_OBJECT_PICTURES = 12;
|
|
99
71
|
export const explainerObjectCeiling = (script) => Math.min(EXPLAINER_MAX_OBJECT_PICTURES, namedThings(script));
|
|
100
|
-
/** 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. */
|
|
101
72
|
export const EXPLAINER_FILM_CREDITS = 500;
|
|
102
73
|
export const EXPLAINER_FILM_INCLUDED_SECONDS = 60;
|
|
103
74
|
export const EXPLAINER_FILM_CREDITS_PER_EXTRA_SECOND = 8;
|
|
104
|
-
/** 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
|
|
105
|
-
* price change is a new tariff: a run admitted at the old price settles at it. */
|
|
106
75
|
export const SKILL_FILM_TARIFFS = {
|
|
107
76
|
"skill-explainer-v1": { filmCredits: EXPLAINER_FILM_CREDITS, perExtraSecond: EXPLAINER_FILM_CREDITS_PER_EXTRA_SECOND },
|
|
108
77
|
"skill-agent-opus-v1": { filmCredits: 1200, perExtraSecond: 20 },
|
|
@@ -113,25 +82,17 @@ export const isSkillFilmTariff = (value) => typeof value === "string" && Object.
|
|
|
113
82
|
export const skillFilmCredits = (tariff, outputFrames) => SKILL_FILM_TARIFFS[tariff].filmCredits +
|
|
114
83
|
SKILL_FILM_TARIFFS[tariff].perExtraSecond * Math.max(0, Math.ceil(outputFrames / 25) - EXPLAINER_FILM_INCLUDED_SECONDS);
|
|
115
84
|
export const explainerFilmCredits = (outputFrames) => skillFilmCredits("skill-explainer-v1", outputFrames);
|
|
116
|
-
/** The explainer's two levels a customer picks by name (#1291 F4): each freezes its film tariff at admission; omitted is `standard`. */
|
|
117
85
|
export const EXPLAINER_TIERS = ["standard", "pro"];
|
|
118
86
|
export const EXPLAINER_TIER_TARIFFS = { standard: "skill-agent-sonnet-v2", pro: "skill-agent-opus-v1" };
|
|
119
87
|
export const explainerTierTariff = (tier) => EXPLAINER_TIER_TARIFFS[tier ?? "standard"];
|
|
120
|
-
/** The explainer's film switch on `api` (#1291 F4): off, every explainer is refused before any reserve. */
|
|
121
88
|
export const skillAgentEnabled = (env) => env.CLIPWRIGHT_SKILL_AGENT === "1";
|
|
122
|
-
/** 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
|
|
123
|
-
* named character. */
|
|
124
89
|
export const facelessImageCeilings = (selectedFrames) => [facelessMaxGeneratedImages(selectedFrames, FACELESS_PUBLIC_MAX_GENERATED_IMAGES), FACELESS_EXPLAINER_POSE_PICTURES, 0];
|
|
125
|
-
/** The most a selection is charged: every picture the run may generate, every selected second, the opening clip. */
|
|
126
|
-
/** An explainer makes no opening clip; its pictures are the hero's poses, charged as generated pictures when delivered. */
|
|
127
90
|
export function quoteFaceless(input) {
|
|
128
91
|
const outputFrames = z.number().int().min(FACELESS_MIN_OUTPUT_FRAMES).max(2250).parse(input.outputFrames);
|
|
129
92
|
const captions = z.boolean().parse(input.captions);
|
|
130
93
|
const openerCredits = input.explainer ? 0 : FACELESS_OPENER_CREDITS;
|
|
131
94
|
const posePictures = input.explainer ? (input.explainer.character ? FACELESS_EXPLAINER_POSE_PICTURES : 0) : undefined;
|
|
132
|
-
// An explainer generates only its hero's poses; a picture video, one picture per two selected seconds plus four.
|
|
133
95
|
const images = posePictures ?? facelessMaxGeneratedImages(outputFrames, FACELESS_PUBLIC_MAX_GENERATED_IMAGES);
|
|
134
|
-
// A drawn film (#1291) is priced whole: its poses and the film, with no line of the scenes and pictures the film draws itself.
|
|
135
96
|
if (input.explainer?.film) {
|
|
136
97
|
const filmCredits = skillFilmCredits(input.explainer.film, outputFrames), baseCredits = images * FACELESS_IMAGE_CREDITS + filmCredits;
|
|
137
98
|
return { outputFrames, baseCredits, openerCredits, totalCredits: Math.max(FACELESS_MIN_BASE_CREDITS, baseCredits), tariffId: FACELESS_TARIFF_ID,
|
|
@@ -141,13 +102,10 @@ export function quoteFaceless(input) {
|
|
|
141
102
|
const musicCredits = input.music === undefined ? 0 : MUSIC_BED_CREDITS;
|
|
142
103
|
const shots = z.number().int().min(0).max(FACELESS_MAX_SHOTS).parse(input.shots ?? 0);
|
|
143
104
|
const shotSeconds = facelessShotSecondsCeiling(shots), shotCredits = shotSeconds * FACELESS_SHOT_CREDITS_PER_SECOND;
|
|
144
|
-
// A scene costs what it costs on make_ugc: one price per scene drawn.
|
|
145
105
|
const scenes = z.number().int().min(0).max(MAX_SCENES).parse(input.scenes ?? 0), sceneCredits = scenes * SCENE_CREDITS;
|
|
146
106
|
const authoredScenes = input.explainer?.beats ? EXPLAINER_MAX_AUTHORED_BEATS : 0, authoredSceneCredits = authoredScenes * EXPLAINER_BEAT_CREDITS;
|
|
147
107
|
const objectPictures = z.number().int().min(0).max(EXPLAINER_MAX_OBJECT_PICTURES).parse(input.explainer?.objects ?? 0);
|
|
148
108
|
const objectPictureCredits = objectPictures * FACELESS_IMAGE_CREDITS;
|
|
149
|
-
// 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,
|
|
150
|
-
// since its seconds alone may fall under it (a picture video's ceiling is always past it).
|
|
151
109
|
return { outputFrames, baseCredits, openerCredits,
|
|
152
110
|
totalCredits: Math.max(FACELESS_MIN_BASE_CREDITS, baseCredits + openerCredits) + musicCredits + shotCredits + sceneCredits + authoredSceneCredits +
|
|
153
111
|
objectPictureCredits,
|
|
@@ -155,4 +113,32 @@ export function quoteFaceless(input) {
|
|
|
155
113
|
...(shots ? { shotSeconds, shotCredits } : {}), ...(scenes ? { scenes, sceneCredits } : {}), ...(posePictures === undefined ? {} : { posePictures }),
|
|
156
114
|
...(authoredScenes ? { authoredScenes, authoredSceneCredits } : {}), ...(objectPictures ? { objectPictures, objectPictureCredits } : {}) };
|
|
157
115
|
}
|
|
158
|
-
|
|
116
|
+
export const FACELESS_DIRECTED_PLAIN_LIVE_CREDITS_PER_SECOND = 12;
|
|
117
|
+
export const FACELESS_DIRECTED_TEXT_LIVE_CREDITS_PER_SECOND = 20;
|
|
118
|
+
export const FACELESS_DIRECTED_DIRECTION_CREDITS = 120;
|
|
119
|
+
export const FACELESS_DIRECTED_OWN_PICTURES_DIRECTION_CREDITS = 60;
|
|
120
|
+
export const FACELESS_DIRECTED_IMAGE_CREDITS = 9;
|
|
121
|
+
export const facelessDirectedPictures = (selectedSeconds) => Math.min(24, Math.ceil(selectedSeconds / 2.5));
|
|
122
|
+
export const FACELESS_DIRECTED_LIVE_SHARE = { standard: 1 / 3, pro: 1 };
|
|
123
|
+
export function quoteDirectedFaceless(ask) {
|
|
124
|
+
const outputFrames = z.number().int().min(FACELESS_MIN_OUTPUT_FRAMES).max(2250).multipleOf(25).parse(ask.outputFrames);
|
|
125
|
+
const seconds = outputFrames / 25, pictures = facelessDirectedPictures(seconds);
|
|
126
|
+
const own = z.number().int().nonnegative().parse(ask.ownPictures), stillsCeiling = Math.max(0, pictures - own);
|
|
127
|
+
const ownPicturesRun = own > 0 && own * 2 >= pictures;
|
|
128
|
+
const directionCredits = ownPicturesRun ? FACELESS_DIRECTED_OWN_PICTURES_DIRECTION_CREDITS : FACELESS_DIRECTED_DIRECTION_CREDITS;
|
|
129
|
+
const liveSecondsCeiling = ask.resolution === "1080p" ? 0 : Math.floor(seconds * FACELESS_DIRECTED_LIVE_SHARE[ask.tier]);
|
|
130
|
+
const baseCredits = facelessPartsBaseAt(stillsCeiling, FACELESS_DIRECTED_IMAGE_CREDITS, outputFrames);
|
|
131
|
+
const musicCredits = ask.music === undefined ? 0 : MUSIC_BED_CREDITS;
|
|
132
|
+
const fixed = Math.max(FACELESS_MIN_BASE_CREDITS, baseCredits + directionCredits) + musicCredits;
|
|
133
|
+
const text = FACELESS_DIRECTED_TEXT_LIVE_CREDITS_PER_SECOND, plain = FACELESS_DIRECTED_PLAIN_LIVE_CREDITS_PER_SECOND;
|
|
134
|
+
const fits = ask.maxCredits === undefined ? liveSecondsCeiling : Math.floor((ask.maxCredits - fixed) / text);
|
|
135
|
+
const shotSeconds = Math.max(0, Math.min(liveSecondsCeiling, fits)), shotCredits = shotSeconds * text;
|
|
136
|
+
const plainLiveSeconds = shotSeconds;
|
|
137
|
+
return { liveSecondsCeiling, plainLiveSeconds, stillsCeiling, ownPicturesRun, quote: { outputFrames, baseCredits, openerCredits: 0,
|
|
138
|
+
totalCredits: fixed + shotCredits, totalCreditsWithoutText: fixed + plainLiveSeconds * plain, tariffId: FACELESS_DIRECTED_TARIFF_ID,
|
|
139
|
+
captions: z.boolean().parse(ask.captions), images: stillsCeiling, imageCredits: FACELESS_DIRECTED_IMAGE_CREDITS, directionCredits, shotSeconds,
|
|
140
|
+
shotCredits, ...(musicCredits ? { musicCredits } : {}) } };
|
|
141
|
+
}
|
|
142
|
+
export function facelessPartsBaseAt(images, imageCredits, outputFrames) {
|
|
143
|
+
return images * imageCredits + Math.ceil(FACELESS_CREDITS_PER_1500_FRAMES * outputFrames / 1500);
|
|
144
|
+
}
|
|
@@ -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 {};
|