@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
package/dist/parts-pricing.d.ts
CHANGED
|
@@ -1,32 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type FaceBillingInterval, type PartsFaceTariff, type PresenterEngine, type ShotEngine, type TakeEngine } from "./face-billing.js";
|
|
3
|
+
import type { Resolution } from "./skills.js";
|
|
3
4
|
export declare const PARTS_PRICING_VERSION = "parts-v2";
|
|
4
|
-
/** Credits per second a presenter is in the video, covered or not, by the engine that rendered the take. */
|
|
5
5
|
export declare const PRESENTER_CREDITS_PER_SECOND: Readonly<Record<PresenterEngine, number>>;
|
|
6
|
-
/** Voice and render, per second of the finished video. */
|
|
7
6
|
export declare const PRODUCTION_CREDITS_PER_SECOND = 1;
|
|
8
|
-
/** A call scene's live avatar: one HeyGen photo avatar of the still, per still in the delivered video. */
|
|
9
7
|
export declare const LIVE_AVATAR_STILL_CREDITS = 400;
|
|
10
|
-
/** The least a delivered video costs. */
|
|
11
8
|
export declare const DELIVERED_VIDEO_MINIMUM_CREDITS = 50;
|
|
12
|
-
/** A graphic made for the run (#1107), per scene drawn in the delivered video. */
|
|
13
9
|
export declare const SCENE_CREDITS = 25;
|
|
14
10
|
export declare const PRESENTER_ENGINE_LABELS: Readonly<Record<PresenterEngine, string>>;
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
type MethodShotEngine = "shot_omni" | "shot_seedance" | "shot_omni_no_text" | "shot_seedance_no_text";
|
|
12
|
+
export declare const METHOD_SHOT_CREDITS_PER_SECOND: Readonly<Record<Exclude<Resolution, "4k">, Readonly<Record<MethodShotEngine, number>>>>;
|
|
17
13
|
export declare const SHOT_CREDITS_PER_SECOND: Readonly<Record<ShotEngine, number>>;
|
|
18
14
|
export declare const SHOT_ENGINE_LABELS: Readonly<Record<ShotEngine, string>>;
|
|
19
|
-
/** The long-form run's tariff, frozen at admission like long-form-v1 before it. */
|
|
20
15
|
export declare const PARTS_FACE_TARIFF: PartsFaceTariff;
|
|
21
|
-
/** parts-v3 (#1535): parts-v2 and the Omni live-shot second; a run with an Omni shot is admitted on it. */
|
|
22
16
|
export declare const PARTS_OMNI_PRICING_VERSION = "parts-v3";
|
|
23
17
|
export declare const PARTS_OMNI_FACE_TARIFF: PartsFaceTariff;
|
|
24
|
-
|
|
25
|
-
export declare
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
export declare const PARTS_METHOD_PRICING_VERSION = "parts-v4";
|
|
19
|
+
export declare function partsMethodFaceTariff(resolution: Resolution): PartsFaceTariff;
|
|
20
|
+
export declare const partsFaceTariffFor: (omni: boolean, resolution: Resolution) => PartsFaceTariff;
|
|
21
|
+
export declare const PRE_PRODUCTION_CREDITS = 270;
|
|
28
22
|
export declare const FACE_BILLING_TARIFFS: readonly PartsFaceTariff[];
|
|
29
|
-
/** A short run's tariff: one take, so the presenter is in every second of the video. Its failures keep the short run's outcomes. */
|
|
30
23
|
export declare const durationPartsTariffSchema: z.ZodReadonly<z.ZodObject<{
|
|
31
24
|
version: z.ZodLiteral<1>;
|
|
32
25
|
pricingVersion: z.ZodString;
|
|
@@ -39,7 +32,6 @@ export declare const durationPartsTariffSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
39
32
|
}, z.core.$strict>>;
|
|
40
33
|
export type DurationPartsTariff = z.infer<typeof durationPartsTariffSchema>;
|
|
41
34
|
export declare const PARTS_DURATION_TARIFF: DurationPartsTariff;
|
|
42
|
-
/** One line of an itemized price: what was counted, how many, at what rate, and the product. */
|
|
43
35
|
export declare const partsLineSchema: z.ZodObject<{
|
|
44
36
|
label: z.ZodString;
|
|
45
37
|
unit: z.ZodEnum<{
|
|
@@ -55,32 +47,23 @@ export declare const partsLineSchema: z.ZodObject<{
|
|
|
55
47
|
credits: z.ZodNumber;
|
|
56
48
|
}, z.core.$strict>;
|
|
57
49
|
export type PartsLine = z.infer<typeof partsLineSchema>;
|
|
58
|
-
/** The quote's and the bill's line for the scenes made for a run: asked for on a quote, drawn on a bill. */
|
|
59
50
|
export declare function sceneLine(scenes: number, credits?: number): PartsLine;
|
|
60
51
|
export interface PartsCharge {
|
|
61
52
|
lines: PartsLine[];
|
|
62
|
-
/** The lines added up, before the minimum. */
|
|
63
53
|
usageCredits: number;
|
|
64
54
|
credits: number;
|
|
65
55
|
minimumApplied: boolean;
|
|
66
|
-
/** Presenter frames over all engines, an overlap counted once. */
|
|
67
56
|
faceFrames: number;
|
|
68
57
|
billableFaceSeconds: number;
|
|
69
58
|
}
|
|
70
59
|
export interface PartsMeasure {
|
|
71
|
-
/** Each engine's presenter intervals: a take's whole slot, covered or not; a live shot's under its shot engine. */
|
|
72
60
|
presenter: Partial<Record<TakeEngine, readonly FaceBillingInterval[]>>;
|
|
73
61
|
outputFrames: number;
|
|
74
62
|
fps: number;
|
|
75
63
|
liveAvatarStills: number;
|
|
76
64
|
}
|
|
77
|
-
/** A long-form video's price under a parts tariff: each engine's presenter seconds rounded up once over the video, every */
|
|
78
|
-
/** second of the video, each witnessed still; the minimum when delivered. Failure policy is settlement's, not this function's. */
|
|
79
65
|
export declare function calculatePartsCharge(measure: PartsMeasure, tariffInput: PartsFaceTariff, delivered: boolean): PartsCharge;
|
|
80
|
-
/** A short video's price: the presenter is in every second of its one take. Rounding is the legacy rule: whole seconds, at least one. */
|
|
81
|
-
/** `heldSec` is the still the video holds past its take (#1452): production seconds, never the presenter's, since it is no vendor work. */
|
|
82
66
|
export declare function calculateDurationPartsCharge(durationSec: number, engine: PresenterEngine, tariffInput: DurationPartsTariff, delivered: boolean, heldSec?: number): PartsCharge;
|
|
83
|
-
/** What a delivered parts-tariff video records about its price. */
|
|
84
67
|
export declare const partsBillingSummarySchema: z.ZodReadonly<z.ZodObject<{
|
|
85
68
|
pricingVersion: z.ZodString;
|
|
86
69
|
lines: z.ZodArray<z.ZodObject<{
|
|
@@ -103,3 +86,4 @@ export declare const partsBillingSummarySchema: z.ZodReadonly<z.ZodObject<{
|
|
|
103
86
|
finalCreditsCharged: z.ZodNumber;
|
|
104
87
|
}, z.core.$strict>>;
|
|
105
88
|
export type PartsBillingSummary = z.infer<typeof partsBillingSummarySchema>;
|
|
89
|
+
export {};
|
package/dist/parts-pricing.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { identifier, partsFaceTariffSchema, presenterRatesSchema, PRESENTER_ENGINES, SHOT_ENGINES, } from "./face-billing.js";
|
|
3
3
|
import { unionFaceFrames } from "./long-form-pricing.js";
|
|
4
|
-
// Parts prices: one tariff for short and long make_ugc.
|
|
5
|
-
// parts-v2: the HeyGen second 12 → 9; parts-v1, long-form-v1 and 30 a second stay with their snapshots.
|
|
6
4
|
export const PARTS_PRICING_VERSION = "parts-v2";
|
|
7
|
-
/** Credits per second a presenter is in the video, covered or not, by the engine that rendered the take. */
|
|
8
5
|
export const PRESENTER_CREDITS_PER_SECOND = Object.freeze({ heygen: 9, omnihuman: 22 });
|
|
9
|
-
/** Voice and render, per second of the finished video. */
|
|
10
6
|
export const PRODUCTION_CREDITS_PER_SECOND = 1;
|
|
11
|
-
/** A call scene's live avatar: one HeyGen photo avatar of the still, per still in the delivered video. */
|
|
12
7
|
export const LIVE_AVATAR_STILL_CREDITS = 400;
|
|
13
|
-
/** The least a delivered video costs. */
|
|
14
8
|
export const DELIVERED_VIDEO_MINIMUM_CREDITS = 50;
|
|
15
|
-
/** A graphic made for the run (#1107), per scene drawn in the delivered video. */
|
|
16
9
|
export const SCENE_CREDITS = 25;
|
|
17
10
|
export const PRESENTER_ENGINE_LABELS = Object.freeze({
|
|
18
11
|
heygen: "presenter, HeyGen Avatar IV", omnihuman: "presenter, OmniHuman 2.0",
|
|
19
12
|
});
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
export const METHOD_SHOT_CREDITS_PER_SECOND = Object.freeze({
|
|
14
|
+
"720p": Object.freeze({ shot_omni: 20, shot_omni_no_text: 12, shot_seedance: 89, shot_seedance_no_text: 42 }),
|
|
15
|
+
"1080p": Object.freeze({ shot_omni: 20, shot_omni_no_text: 20, shot_seedance: 217, shot_seedance_no_text: 217 }),
|
|
16
|
+
});
|
|
17
|
+
export const SHOT_CREDITS_PER_SECOND = Object.freeze({ shot_talking_action: 30, shot_action: 30,
|
|
18
|
+
...METHOD_SHOT_CREDITS_PER_SECOND["720p"] });
|
|
23
19
|
export const SHOT_ENGINE_LABELS = Object.freeze({
|
|
24
20
|
shot_talking_action: "live shot, speaking while acting", shot_action: "live shot, acting under voice-over",
|
|
25
|
-
shot_omni: "live shot, Gemini Omni 1.2",
|
|
21
|
+
shot_omni: "live shot, Gemini Omni 1.2", shot_seedance: "live shot, Seedance 2.5",
|
|
22
|
+
shot_omni_no_text: "live shot, Gemini Omni 1.2, no text in frame", shot_seedance_no_text: "live shot, Seedance 2.5, no text in frame",
|
|
26
23
|
});
|
|
27
24
|
const TAKE_ENGINE_LABELS = { ...PRESENTER_ENGINE_LABELS, ...SHOT_ENGINE_LABELS };
|
|
28
|
-
/** The long-form run's tariff, frozen at admission like long-form-v1 before it. */
|
|
29
25
|
export const PARTS_FACE_TARIFF = Object.freeze({
|
|
30
26
|
version: 3, pricingVersion: PARTS_PRICING_VERSION, presenterCreditsPerSecond: PRESENTER_CREDITS_PER_SECOND,
|
|
31
27
|
shotCreditsPerSecond: Object.freeze({ shot_talking_action: SHOT_CREDITS_PER_SECOND.shot_talking_action, shot_action: SHOT_CREDITS_PER_SECOND.shot_action }),
|
|
32
28
|
productionCreditsPerSecond: PRODUCTION_CREDITS_PER_SECOND, liveAvatarStillCredits: LIVE_AVATAR_STILL_CREDITS,
|
|
33
29
|
minimumCredits: DELIVERED_VIDEO_MINIMUM_CREDITS, rounding: "ceil_aggregate_seconds", failurePolicy: "verified_delivery_only",
|
|
34
30
|
});
|
|
35
|
-
/** parts-v3 (#1535): parts-v2 and the Omni live-shot second; a run with an Omni shot is admitted on it. */
|
|
36
31
|
export const PARTS_OMNI_PRICING_VERSION = "parts-v3";
|
|
37
32
|
export const PARTS_OMNI_FACE_TARIFF = Object.freeze({ ...PARTS_FACE_TARIFF, pricingVersion: PARTS_OMNI_PRICING_VERSION,
|
|
38
|
-
shotCreditsPerSecond: SHOT_CREDITS_PER_SECOND
|
|
39
|
-
|
|
40
|
-
export const
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
shotCreditsPerSecond: Object.freeze({ shot_talking_action: SHOT_CREDITS_PER_SECOND.shot_talking_action,
|
|
34
|
+
shot_action: SHOT_CREDITS_PER_SECOND.shot_action, shot_omni: SHOT_CREDITS_PER_SECOND.shot_omni }) });
|
|
35
|
+
export const PARTS_METHOD_PRICING_VERSION = "parts-v4";
|
|
36
|
+
export function partsMethodFaceTariff(resolution) {
|
|
37
|
+
if (resolution === "4k")
|
|
38
|
+
throw new RangeError("no method shot second at 4k");
|
|
39
|
+
return Object.freeze({ ...PARTS_OMNI_FACE_TARIFF, pricingVersion: PARTS_METHOD_PRICING_VERSION,
|
|
40
|
+
shotCreditsPerSecond: Object.freeze({ ...PARTS_OMNI_FACE_TARIFF.shotCreditsPerSecond, ...METHOD_SHOT_CREDITS_PER_SECOND[resolution] }) });
|
|
41
|
+
}
|
|
42
|
+
export const partsFaceTariffFor = (omni, resolution) => (omni ? partsMethodFaceTariff(resolution) : PARTS_FACE_TARIFF);
|
|
43
|
+
export const PRE_PRODUCTION_CREDITS = 270;
|
|
43
44
|
export const FACE_BILLING_TARIFFS = Object.freeze([PARTS_FACE_TARIFF]);
|
|
44
|
-
/** A short run's tariff: one take, so the presenter is in every second of the video. Its failures keep the short run's outcomes. */
|
|
45
45
|
export const durationPartsTariffSchema = z.object({
|
|
46
46
|
version: z.literal(1),
|
|
47
47
|
pricingVersion: identifier,
|
|
@@ -53,7 +53,6 @@ export const PARTS_DURATION_TARIFF = Object.freeze({
|
|
|
53
53
|
version: 1, pricingVersion: PARTS_PRICING_VERSION, presenterCreditsPerSecond: PRESENTER_CREDITS_PER_SECOND,
|
|
54
54
|
productionCreditsPerSecond: PRODUCTION_CREDITS_PER_SECOND, minimumCredits: DELIVERED_VIDEO_MINIMUM_CREDITS,
|
|
55
55
|
});
|
|
56
|
-
/** One line of an itemized price: what was counted, how many, at what rate, and the product. */
|
|
57
56
|
export const partsLineSchema = z.object({
|
|
58
57
|
label: z.string().min(1),
|
|
59
58
|
unit: z.enum(["face_second", "second", "still", "track", "scene", "template"]),
|
|
@@ -61,14 +60,12 @@ export const partsLineSchema = z.object({
|
|
|
61
60
|
unit_credits: z.number().int().nonnegative(),
|
|
62
61
|
credits: z.number().int().nonnegative(),
|
|
63
62
|
}).strict();
|
|
64
|
-
/** The quote's and the bill's line for the scenes made for a run: asked for on a quote, drawn on a bill. */
|
|
65
63
|
export function sceneLine(scenes, credits = SCENE_CREDITS) {
|
|
66
64
|
return { label: "scenes made for the video", unit: "scene", quantity: scenes, unit_credits: credits, credits: scenes * credits };
|
|
67
65
|
}
|
|
68
66
|
const MAX_CREDITS = 2147483647n;
|
|
69
67
|
function settle(lines, minimum, delivered, faceFrames, billableFaceSeconds) {
|
|
70
68
|
const usage = lines.reduce((sum, line) => sum + BigInt(line.credits), 0n);
|
|
71
|
-
// The minimum is per DELIVERED video: a failed run that still bills is charged its parts only.
|
|
72
69
|
const minimumApplied = delivered && usage < BigInt(minimum);
|
|
73
70
|
const credits = minimumApplied ? BigInt(minimum) : usage;
|
|
74
71
|
if (credits > MAX_CREDITS)
|
|
@@ -82,8 +79,6 @@ function line(label, unit, quantity, unitCredits) {
|
|
|
82
79
|
return { label, unit, quantity: Number(quantity), unit_credits: unitCredits, credits: Number(credits) };
|
|
83
80
|
}
|
|
84
81
|
const ceilSeconds = (frames, fps) => (frames + fps - 1n) / fps;
|
|
85
|
-
/** A long-form video's price under a parts tariff: each engine's presenter seconds rounded up once over the video, every */
|
|
86
|
-
/** second of the video, each witnessed still; the minimum when delivered. Failure policy is settlement's, not this function's. */
|
|
87
82
|
export function calculatePartsCharge(measure, tariffInput, delivered) {
|
|
88
83
|
const tariff = partsFaceTariffSchema.parse(tariffInput);
|
|
89
84
|
const fps = BigInt(z.number().int().positive().max(Number.MAX_SAFE_INTEGER).parse(measure.fps));
|
|
@@ -97,7 +92,6 @@ export function calculatePartsCharge(measure, tariffInput, delivered) {
|
|
|
97
92
|
continue;
|
|
98
93
|
const rate = PRESENTER_ENGINES.includes(engine) ? tariff.presenterCreditsPerSecond[engine]
|
|
99
94
|
: tariff.shotCreditsPerSecond?.[engine];
|
|
100
|
-
// A snapshot admitted before live shots has no shot rate: such a take is never priced by a guess.
|
|
101
95
|
if (rate === undefined)
|
|
102
96
|
throw new RangeError(`the tariff has no rate for ${engine}`);
|
|
103
97
|
const seconds = ceilSeconds(unionFaceFrames(intervals), fps);
|
|
@@ -110,8 +104,6 @@ export function calculatePartsCharge(measure, tariffInput, delivered) {
|
|
|
110
104
|
const faceFrames = unionFaceFrames([...PRESENTER_ENGINES, ...SHOT_ENGINES].flatMap((engine) => [...(measure.presenter[engine] ?? [])]));
|
|
111
105
|
return settle(lines, tariff.minimumCredits, delivered, Number(faceFrames), Number(billableFaceSeconds));
|
|
112
106
|
}
|
|
113
|
-
/** A short video's price: the presenter is in every second of its one take. Rounding is the legacy rule: whole seconds, at least one. */
|
|
114
|
-
/** `heldSec` is the still the video holds past its take (#1452): production seconds, never the presenter's, since it is no vendor work. */
|
|
115
107
|
export function calculateDurationPartsCharge(durationSec, engine, tariffInput, delivered, heldSec = 0) {
|
|
116
108
|
const tariff = durationPartsTariffSchema.parse(tariffInput);
|
|
117
109
|
if (!Number.isFinite(durationSec) || durationSec < 0)
|
|
@@ -119,13 +111,11 @@ export function calculateDurationPartsCharge(durationSec, engine, tariffInput, d
|
|
|
119
111
|
if (!Number.isFinite(heldSec) || heldSec < 0 || heldSec > durationSec)
|
|
120
112
|
throw new RangeError("the held still must lie within the video");
|
|
121
113
|
const seconds = BigInt(Math.max(1, Math.ceil(durationSec)));
|
|
122
|
-
// Rounded to the microsecond first: 9.4 − 2.4 is 7.000000000000001 in floating point and must not bill an eighth second.
|
|
123
114
|
const take = heldSec === 0 ? seconds : BigInt(Math.max(1, Math.ceil(Number((durationSec - heldSec).toFixed(6)))));
|
|
124
115
|
const lines = [line(PRESENTER_ENGINE_LABELS[engine], "face_second", take, tariff.presenterCreditsPerSecond[engine]),
|
|
125
116
|
line("production (voice and render)", "second", seconds, tariff.productionCreditsPerSecond)];
|
|
126
117
|
return settle(lines, tariff.minimumCredits, delivered, 0, Number(take));
|
|
127
118
|
}
|
|
128
|
-
/** What a delivered parts-tariff video records about its price. */
|
|
129
119
|
export const partsBillingSummarySchema = z.object({
|
|
130
120
|
pricingVersion: identifier,
|
|
131
121
|
lines: z.array(partsLineSchema),
|
|
@@ -134,4 +124,3 @@ export const partsBillingSummarySchema = z.object({
|
|
|
134
124
|
actualDurationSec: z.number().positive().max(Number.MAX_SAFE_INTEGER),
|
|
135
125
|
finalCreditsCharged: z.number().int().nonnegative(),
|
|
136
126
|
}).strict().readonly();
|
|
137
|
-
//# sourceMappingURL=parts-pricing.js.map
|
package/dist/post-text.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** The lines to publish with a delivered film: at most three lines and this many characters in all. */
|
|
3
2
|
export declare const POST_TEXT_MAX_LINES = 3, POST_TEXT_MAX_CHARS = 500;
|
|
4
3
|
export declare const postText: z.ZodString;
|
|
5
|
-
/** The writer's lines as the run carries them: trimmed, blank lines dropped; undefined when they are not 1–3 lines of the script's alphabet. */
|
|
6
4
|
export declare function postTextFor(raw: string, script: string): string | undefined;
|
package/dist/post-text.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { captionLanguageOf } from "./caption-language.js";
|
|
3
|
-
/** The lines to publish with a delivered film: at most three lines and this many characters in all. */
|
|
4
3
|
export const POST_TEXT_MAX_LINES = 3, POST_TEXT_MAX_CHARS = 500;
|
|
5
4
|
const lines = (text) => text.split("\n");
|
|
6
5
|
const shaped = (text) => {
|
|
@@ -10,12 +9,9 @@ const shaped = (text) => {
|
|
|
10
9
|
export const postText = z.string().min(1).max(POST_TEXT_MAX_CHARS)
|
|
11
10
|
.refine(shaped, { message: `1–${POST_TEXT_MAX_LINES} non-empty lines` })
|
|
12
11
|
.describe("1–3 lines to publish with the video, in its script's language, saying nothing the script does not; absent when none was written");
|
|
13
|
-
/** Latin-alphabet languages read as one family: a caption without diacritics on a Polish film is still in its alphabet. */
|
|
14
12
|
const family = (text) => { const language = captionLanguageOf(text); return ["en", "pl", "vi"].includes(language) ? "latin" : language; };
|
|
15
|
-
/** The writer's lines as the run carries them: trimmed, blank lines dropped; undefined when they are not 1–3 lines of the script's alphabet. */
|
|
16
13
|
export function postTextFor(raw, script) {
|
|
17
14
|
const kept = lines(raw.replace(/\r\n?/g, "\n")).map(line => line.trim()).filter(Boolean).join("\n");
|
|
18
15
|
const parsed = postText.safeParse(kept);
|
|
19
16
|
return parsed.success && family(parsed.data) === family(script) ? parsed.data : undefined;
|
|
20
17
|
}
|
|
21
|
-
//# sourceMappingURL=post-text.js.map
|
|
@@ -1,27 +1,21 @@
|
|
|
1
1
|
import type { GenerateVideoRequest, GenerationReference } from "./generations.js";
|
|
2
2
|
import type { ReferenceProfileAnswer as ReferenceProfile } from "./reference-profile.js";
|
|
3
3
|
import type { UgcInsert, UgcTemplate } from "./skills.js";
|
|
4
|
-
/** Silent presenter beats of a reference (#857 S3): the presenter listens or reacts while the narration goes on. */
|
|
5
|
-
/** A beat is a seedance-2.0 clip whose first frame is the actor portrait, placed as a video insert on its words. */
|
|
6
4
|
export declare const PRESENTER_BEAT_BEHAVIOURS: readonly ["listening", "reacting"];
|
|
7
5
|
export type PresenterBeatBehaviour = (typeof PRESENTER_BEAT_BEHAVIOURS)[number];
|
|
8
|
-
/** The seedance-2.0 row measured live: 720p 9:16, 4–15 s (`GENERATION_CAPABILITIES`). */
|
|
9
6
|
export declare const PRESENTER_BEAT_MODEL = "seedance-2.0";
|
|
10
7
|
export declare const PRESENTER_BEAT_MIN_SEC = 4;
|
|
11
8
|
export declare function presenterBeatPrompt(behaviour: PresenterBeatBehaviour): string;
|
|
12
|
-
/** Long enough for the words at the slowest speech the admission assumes; the insert cuts the rest where its words end. */
|
|
13
9
|
export declare function presenterBeatSeconds(words: number): number;
|
|
14
10
|
export interface PresenterBeat {
|
|
15
11
|
id: string;
|
|
16
12
|
beatIndex: number;
|
|
17
13
|
behaviour: PresenterBeatBehaviour;
|
|
18
|
-
/** Script words as make_ugc counts them; `endWord` is exclusive. */
|
|
19
14
|
startWord: number;
|
|
20
15
|
endWord: number;
|
|
21
16
|
durationS: number;
|
|
22
17
|
prompt: string;
|
|
23
18
|
}
|
|
24
|
-
/** The profile's listening and reacting beats on their script spans, one span per profile beat (null: no words). */
|
|
25
19
|
export declare function planPresenterBeats(input: {
|
|
26
20
|
script: string;
|
|
27
21
|
profile: Pick<ReferenceProfile, "beats">;
|
|
@@ -33,13 +27,9 @@ export declare function planPresenterBeats(input: {
|
|
|
33
27
|
beats: PresenterBeat[];
|
|
34
28
|
warnings: string[];
|
|
35
29
|
};
|
|
36
|
-
/** Over-presenter templates that meet a beat move to the free words right before it, else right after, else are dropped and named. */
|
|
37
|
-
/** A full-frame template stays: it is drawn over inserts. */
|
|
38
30
|
export declare function fitTemplatesAroundBeats(script: string, templates: readonly UgcTemplate[], beats: readonly PresenterBeat[]): {
|
|
39
31
|
templates: UgcTemplate[];
|
|
40
32
|
warnings: string[];
|
|
41
33
|
};
|
|
42
|
-
/** The generate_video request of one beat: frame 0 is the actor portrait, so the identity is the portrait's. */
|
|
43
34
|
export declare function presenterBeatGeneration(beat: PresenterBeat, portrait: GenerationReference): GenerateVideoRequest;
|
|
44
|
-
/** The beat as a video insert over the narration: it starts on its first word and ends where its last word ends. */
|
|
45
35
|
export declare function presenterBeatInsert(beat: PresenterBeat, assetId: string): UgcInsert;
|
package/dist/presenter-beats.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { WORDS_PER_SECOND_MIN } from "./pacing.js";
|
|
2
2
|
import { lexicalTokens, quoteOccurrences } from "./semantic-inserts.js";
|
|
3
3
|
import { TEMPLATE_KINDS, templateFieldValues } from "./templates/index.js";
|
|
4
|
-
/** Silent presenter beats of a reference (#857 S3): the presenter listens or reacts while the narration goes on. */
|
|
5
|
-
/** A beat is a seedance-2.0 clip whose first frame is the actor portrait, placed as a video insert on its words. */
|
|
6
4
|
export const PRESENTER_BEAT_BEHAVIOURS = ["listening", "reacting"];
|
|
7
|
-
/** The seedance-2.0 row measured live: 720p 9:16, 4–15 s (`GENERATION_CAPABILITIES`). */
|
|
8
5
|
export const PRESENTER_BEAT_MODEL = "seedance-2.0";
|
|
9
6
|
export const PRESENTER_BEAT_MIN_SEC = 4;
|
|
10
7
|
const PRESENTER_BEAT_MAX_SEC = 15;
|
|
11
8
|
const KEEP = "Same person, same face, hair, clothes, props and room as the first frame. Locked-off camera, vertical UGC video, " +
|
|
12
9
|
"natural light, realistic skin.";
|
|
13
|
-
/** An open-mouth surprise under a voiceover reads as broken lip-sync: every action is asked closed-mouthed. */
|
|
14
10
|
const SILENT = "The person never speaks: the mouth stays closed or in a closed-lip smile the whole time, even when surprised. " +
|
|
15
11
|
"No talking, no lip movement, no captions, no text overlays.";
|
|
16
12
|
const ACTIONS = {
|
|
@@ -22,11 +18,9 @@ const ACTIONS = {
|
|
|
22
18
|
export function presenterBeatPrompt(behaviour) {
|
|
23
19
|
return `${KEEP} ${ACTIONS[behaviour]} ${SILENT}`;
|
|
24
20
|
}
|
|
25
|
-
/** Long enough for the words at the slowest speech the admission assumes; the insert cuts the rest where its words end. */
|
|
26
21
|
export function presenterBeatSeconds(words) {
|
|
27
22
|
return Math.min(PRESENTER_BEAT_MAX_SEC, Math.max(PRESENTER_BEAT_MIN_SEC, Math.ceil(words / WORDS_PER_SECOND_MIN)));
|
|
28
23
|
}
|
|
29
|
-
/** The profile's listening and reacting beats on their script spans, one span per profile beat (null: no words). */
|
|
30
24
|
export function planPresenterBeats(input) {
|
|
31
25
|
const words = lexicalTokens(input.script).length;
|
|
32
26
|
if (input.spans.length !== input.profile.beats.length)
|
|
@@ -60,7 +54,6 @@ export function planPresenterBeats(input) {
|
|
|
60
54
|
}
|
|
61
55
|
return { beats, warnings };
|
|
62
56
|
}
|
|
63
|
-
/** A beat's insert is a cutaway: an over-presenter template under it would be refused, so it moves next to the beat. */
|
|
64
57
|
const MIN_TEMPLATE_WORDS = 2;
|
|
65
58
|
function templateSpan(tokens, template) {
|
|
66
59
|
const anchor = template.anchor;
|
|
@@ -69,7 +62,6 @@ function templateSpan(tokens, template) {
|
|
|
69
62
|
return null;
|
|
70
63
|
return { start: range.startWord, end: template.cover_words === undefined ? range.endWord : range.startWord + template.cover_words };
|
|
71
64
|
}
|
|
72
|
-
/** The template moved onto `span`: anchored on those words, its inner quotes spread over them in order. */
|
|
73
65
|
function moved(template, tokens, span) {
|
|
74
66
|
const { cover_words: _cover, ...rest } = template;
|
|
75
67
|
let data = structuredClone(template.data);
|
|
@@ -78,7 +70,6 @@ function moved(template, tokens, span) {
|
|
|
78
70
|
let from = span.start;
|
|
79
71
|
values.forEach(({ path }, index) => {
|
|
80
72
|
const target = Math.max(from, span.start + Math.floor(((index + 0.5) * (span.end - span.start)) / values.length));
|
|
81
|
-
// The shortest phrase from `target` whose first match inside the span, after the previous one, is `target` itself.
|
|
82
73
|
let length = 1;
|
|
83
74
|
while (target + length < span.end && quoteOccurrences(tokens.slice(from, span.end), tokens.slice(target, target + length).join(" "))[0]
|
|
84
75
|
.startWord + from !== target)
|
|
@@ -96,8 +87,6 @@ function setAt(data, path, value) {
|
|
|
96
87
|
copy[head] = tail.length ? setAt(data[head], tail, value) : value;
|
|
97
88
|
return copy;
|
|
98
89
|
}
|
|
99
|
-
/** Over-presenter templates that meet a beat move to the free words right before it, else right after, else are dropped and named. */
|
|
100
|
-
/** A full-frame template stays: it is drawn over inserts. */
|
|
101
90
|
export function fitTemplatesAroundBeats(script, templates, beats) {
|
|
102
91
|
const tokens = lexicalTokens(script);
|
|
103
92
|
const spans = templates.map(template => templateSpan(tokens, template));
|
|
@@ -132,13 +121,10 @@ export function fitTemplatesAroundBeats(script, templates, beats) {
|
|
|
132
121
|
});
|
|
133
122
|
return { templates: out, warnings };
|
|
134
123
|
}
|
|
135
|
-
/** The generate_video request of one beat: frame 0 is the actor portrait, so the identity is the portrait's. */
|
|
136
124
|
export function presenterBeatGeneration(beat, portrait) {
|
|
137
125
|
return { prompt: beat.prompt, model: PRESENTER_BEAT_MODEL, mode: "first_frame", aspect_ratio: "9:16", resolution: "720p",
|
|
138
126
|
duration_s: beat.durationS, first_frame: portrait };
|
|
139
127
|
}
|
|
140
|
-
/** The beat as a video insert over the narration: it starts on its first word and ends where its last word ends. */
|
|
141
128
|
export function presenterBeatInsert(beat, assetId) {
|
|
142
129
|
return { id: beat.id, asset_id: assetId, media_type: "video", anchor: { startWord: beat.startWord, endWord: beat.endWord } };
|
|
143
130
|
}
|
|
144
|
-
//# sourceMappingURL=presenter-beats.js.map
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import type { PartsLine } from "./parts-pricing.js";
|
|
2
|
-
/** The switch on the server; off, a template that needs the cut-out is refused before any money. */
|
|
3
2
|
export declare function isPresenterMatteEnabled(env?: Record<string, string | undefined>): boolean;
|
|
4
|
-
/** The kinds drawn with the presenter cut out in front of them, each with its quote line's words. */
|
|
5
3
|
declare const CUTOUT_LABELS: {
|
|
6
4
|
readonly cover_story: "cover story, presenter in front";
|
|
7
5
|
readonly backdrop: "backdrop, presenter in front";
|
|
8
6
|
};
|
|
9
7
|
export declare const CUTOUT_TEMPLATE_KINDS: readonly (keyof typeof CUTOUT_LABELS)[];
|
|
10
8
|
export declare const PRESENTER_MATTE_DISABLED_MESSAGE = "cover_story and backdrop are not available right now; use another template kind";
|
|
11
|
-
/** Whether any of the templates stands the presenter in front of it. */
|
|
12
9
|
export declare function needsPresenterCutout(templates: unknown): boolean;
|
|
13
|
-
/** The quote's lines for these templates, one per kind: listed so the user sees them, at no charge. */
|
|
14
10
|
export declare function cutoutTemplateLines(templates: unknown): PartsLine[];
|
|
15
|
-
/** A faceless run's line when the subject of the picture under a template's words could not be cut out (#1438): drawn with the picture as a
|
|
16
|
-
* photo inside it, or, with no picture there, without one. */
|
|
17
11
|
export declare function pictureCutoutMissingWarning(id: string, photo?: boolean): string;
|
|
18
|
-
/** The run's line when the presenter could not be cut out: the template is drawn, with the take as a photo in it or without it, and the run says so. */
|
|
19
12
|
export declare function presenterCutoutMissingWarning(id: string, photo?: boolean): string;
|
|
20
13
|
export {};
|
package/dist/presenter-matte.js
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
// Templates that stand the presenter in front of their own picture (#1428): the presenter is cut out of the take over the template's words.
|
|
2
|
-
/** The switch on the server; off, a template that needs the cut-out is refused before any money. */
|
|
3
1
|
export function isPresenterMatteEnabled(env = typeof process === "undefined" ? {} : process.env) {
|
|
4
2
|
return env.CLIPWRIGHT_PRESENTER_MATTE === "1";
|
|
5
3
|
}
|
|
6
|
-
/** The kinds drawn with the presenter cut out in front of them, each with its quote line's words. */
|
|
7
4
|
const CUTOUT_LABELS = { cover_story: "cover story, presenter in front", backdrop: "backdrop, presenter in front" };
|
|
8
5
|
export const CUTOUT_TEMPLATE_KINDS = Object.keys(CUTOUT_LABELS);
|
|
9
6
|
export const PRESENTER_MATTE_DISABLED_MESSAGE = "cover_story and backdrop are not available right now; use another template kind";
|
|
10
7
|
const cutoutKindOf = (item) => (typeof item === "object" && item !== null
|
|
11
8
|
? CUTOUT_TEMPLATE_KINDS.find(kind => kind === item.kind) : undefined);
|
|
12
|
-
/** Whether any of the templates stands the presenter in front of it. */
|
|
13
9
|
export function needsPresenterCutout(templates) {
|
|
14
10
|
return Array.isArray(templates) && templates.some(item => cutoutKindOf(item) !== undefined);
|
|
15
11
|
}
|
|
16
|
-
/** The quote's lines for these templates, one per kind: listed so the user sees them, at no charge. */
|
|
17
12
|
export function cutoutTemplateLines(templates) {
|
|
18
13
|
const kinds = Array.isArray(templates) ? templates.map(cutoutKindOf) : [];
|
|
19
14
|
return CUTOUT_TEMPLATE_KINDS.flatMap(kind => {
|
|
@@ -21,15 +16,11 @@ export function cutoutTemplateLines(templates) {
|
|
|
21
16
|
return count ? [{ label: CUTOUT_LABELS[kind], unit: "template", quantity: count, unit_credits: 0, credits: 0 }] : [];
|
|
22
17
|
});
|
|
23
18
|
}
|
|
24
|
-
/** A faceless run's line when the subject of the picture under a template's words could not be cut out (#1438): drawn with the picture as a
|
|
25
|
-
* photo inside it, or, with no picture there, without one. */
|
|
26
19
|
export function pictureCutoutMissingWarning(id, photo = true) {
|
|
27
20
|
return `template "${id}" was drawn without the subject of its picture cut out: ` +
|
|
28
21
|
(photo ? "the picture shows as a photo inside the template" : "the template shows without the picture");
|
|
29
22
|
}
|
|
30
|
-
/** The run's line when the presenter could not be cut out: the template is drawn, with the take as a photo in it or without it, and the run says so. */
|
|
31
23
|
export function presenterCutoutMissingWarning(id, photo = true) {
|
|
32
24
|
return `template "${id}" was drawn without the presenter cut out: ` +
|
|
33
25
|
(photo ? "the presenter shows as a photo inside the template" : "the template shows without the presenter");
|
|
34
26
|
}
|
|
35
|
-
//# sourceMappingURL=presenter-matte.js.map
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { type MakeUgcInput } from "./skills.js";
|
|
2
|
-
/** The most items one labelled video names as its sources (#1192). */
|
|
3
2
|
export declare const UGC_MARKED_COMPONENTS_MAX = 32;
|
|
4
|
-
/** What a make_ugc run's labelled video names (#1192): your pictures and videos it shows, and the presenter takes it may render. */
|
|
5
3
|
export declare function ugcMarkedComponents(input: MakeUgcInput): {
|
|
6
4
|
originals: number;
|
|
7
5
|
takes: number;
|
|
8
6
|
};
|
|
9
|
-
/** The refusal of a narrated run with more takes than a video renders or, labelled, more than it names beside your pictures; null when it fits. */
|
|
10
7
|
export declare function ugcMarkedComponentsRefusal(input: MakeUgcInput, marked: boolean): string | null;
|
package/dist/presenter-takes.js
CHANGED
|
@@ -3,22 +3,17 @@ import { countActorShots, coverWordOf, planSemanticInserts } from "./semantic-in
|
|
|
3
3
|
import { isNarratedUgcInput, MAX_PRESENTER_TAKES } from "./skills.js";
|
|
4
4
|
import { templateMediaOf } from "./templates/index.js";
|
|
5
5
|
import { presenterTakeCount } from "./ugc-interview.js";
|
|
6
|
-
/** The most items one labelled video names as its sources (#1192). */
|
|
7
6
|
export const UGC_MARKED_COMPONENTS_MAX = 32;
|
|
8
|
-
/** A live shot's take lasts at most 14 s; at the slowest pace that many words. */
|
|
9
7
|
const SHOT_PIECE_WORDS = 14 * WORDS_PER_SECOND_MIN;
|
|
10
8
|
const instruction = (item, mediaId) => ({ insertId: item.id, mediaId,
|
|
11
9
|
anchor: "startWord" in item.anchor ? item.anchor : { quote: item.anchor.quote, ...(item.anchor.occurrence === undefined ? {} : { occurrence: item.anchor.occurrence }) },
|
|
12
10
|
...(item.cover_words === undefined ? {} : { coverWords: item.cover_words }) });
|
|
13
11
|
const shotPieces = (anchor) => Math.max(1, Math.ceil((coverWordOf(anchor) - anchor.startWord) / SHOT_PIECE_WORDS));
|
|
14
|
-
/** The presenter takes a narrated run renders at most: each stretch between inserts and live shots, each shot in its pieces, */
|
|
15
|
-
/** and a call's listener with the take its hold splits. A shot's cast is in the shot's own take. */
|
|
16
12
|
function narratedTakes(script, input) {
|
|
17
13
|
const inserts = (input.inserts ?? []).map(insert => instruction(insert, "insert"));
|
|
18
14
|
const shots = (input.shots ?? []).map(shot => instruction(shot, "shot"));
|
|
19
15
|
const call = input.call === undefined ? 0 : 2;
|
|
20
16
|
if (input.interview !== undefined || input.presenter_gaze !== undefined) {
|
|
21
|
-
// The gaze's own takes, then each shot in its pieces and the two pieces it may split off a take around it.
|
|
22
17
|
const pieces = shots.length ? planSemanticInserts(script, shots).inserts.reduce((sum, anchor) => sum + shotPieces(anchor) + 2, 0) : 0;
|
|
23
18
|
return presenterTakeCount(script, input) + pieces + call;
|
|
24
19
|
}
|
|
@@ -33,7 +28,6 @@ function narratedTakes(script, input) {
|
|
|
33
28
|
const pieces = plan.inserts.filter(anchor => anchor.mediaId === "shot").reduce((sum, anchor) => sum + shotPieces(anchor), 0);
|
|
34
29
|
return countActorShots(plan) + pieces + call;
|
|
35
30
|
}
|
|
36
|
-
/** What a make_ugc run's labelled video names (#1192): your pictures and videos it shows, and the presenter takes it may render. */
|
|
37
31
|
export function ugcMarkedComponents(input) {
|
|
38
32
|
const originals = (input.image ? 1 : 0) + (input.segments ?? []).filter(segment => segment.kind === "media").length + (input.inserts ?? []).length +
|
|
39
33
|
(input.overlays ?? []).length + (input.layout_windows ?? []).length + templateMediaOf(input.templates).length;
|
|
@@ -43,7 +37,6 @@ export function ugcMarkedComponents(input) {
|
|
|
43
37
|
return { originals, takes: 1 };
|
|
44
38
|
return { originals, takes: narratedTakes(input.script, input) };
|
|
45
39
|
}
|
|
46
|
-
/** The refusal of a narrated run with more takes than a video renders or, labelled, more than it names beside your pictures; null when it fits. */
|
|
47
40
|
export function ugcMarkedComponentsRefusal(input, marked) {
|
|
48
41
|
const { originals, takes } = ugcMarkedComponents(input);
|
|
49
42
|
if (takes > MAX_PRESENTER_TAKES) {
|
|
@@ -56,4 +49,3 @@ export function ugcMarkedComponentsRefusal(input, marked) {
|
|
|
56
49
|
return `this video has ${originals} of your pictures and videos and up to ${takes} presenter takes, more than one video holds: ` +
|
|
57
50
|
`with ${takes} takes it holds at most ${room} pictures and videos; use fewer inserts, overlays, windows, template pictures or live shots`;
|
|
58
51
|
}
|
|
59
|
-
//# sourceMappingURL=presenter-takes.js.map
|
package/dist/prices.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** The public price list (#927): every number is read from the constant billing charges by, never typed here. */
|
|
3
2
|
export declare const PRICES_PATH = "/v1/public/prices";
|
|
4
3
|
export declare const PRICE_UNITS: readonly ["call", "second", "face_second", "image", "clip", "clip_second", "still", "scene", "track"];
|
|
5
4
|
export type PriceUnit = (typeof PRICE_UNITS)[number];
|
|
6
|
-
/** One part of a price: credits per unit. A price of several parts adds them, then applies the entry's minimum. */
|
|
7
5
|
export declare const priceEntryLine: z.ZodObject<{
|
|
8
6
|
label: z.ZodNullable<z.ZodString>;
|
|
9
7
|
unit: z.ZodEnum<{
|
|
@@ -74,7 +72,6 @@ export declare const pricesResponse: z.ZodObject<{
|
|
|
74
72
|
}, z.core.$strict>>;
|
|
75
73
|
}, z.core.$strict>;
|
|
76
74
|
export type PricesResponse = z.infer<typeof pricesResponse>;
|
|
77
|
-
/** What a client reads: a unit or a field it does not know yet must not break it. */
|
|
78
75
|
export declare const pricesResponseRead: z.ZodObject<{
|
|
79
76
|
prices: z.ZodArray<z.ZodObject<{
|
|
80
77
|
action: z.ZodString;
|
|
@@ -93,14 +90,11 @@ export declare const pricesResponseRead: z.ZodObject<{
|
|
|
93
90
|
}, z.core.$loose>>;
|
|
94
91
|
}, z.core.$loose>;
|
|
95
92
|
export type PricesResponseRead = z.infer<typeof pricesResponseRead>;
|
|
96
|
-
/** Whether calling the entry's action may cost credits. */
|
|
97
93
|
export declare const isPaidEntry: (entry: PriceEntry) => boolean;
|
|
98
|
-
|
|
94
|
+
export declare const FREE_RUN_ROUTES: ReadonlySet<string>;
|
|
95
|
+
export declare const AD_DIY_PRICES: readonly PriceEntry[];
|
|
99
96
|
export declare function priceListFor(env: Record<string, string | undefined>): readonly PriceEntry[];
|
|
100
97
|
export declare const PRICE_LIST: readonly PriceEntry[];
|
|
101
|
-
/** One entry's price in words: its lines added up and its minimum, or its formula. */
|
|
102
98
|
export declare const priceText: (entry: PriceEntry) => string;
|
|
103
|
-
/** The price sentence a billed tool's description ends with; `null` for a free tool. */
|
|
104
99
|
export declare function priceLine(tool: string, list?: readonly PriceEntry[]): string | null;
|
|
105
|
-
/** A billed tool's description with its price line at the end. */
|
|
106
100
|
export declare const withPriceLine: (tool: string, description: string, list?: readonly PriceEntry[]) => string;
|