@clipwright/core 0.60.0 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account-actors.d.ts +0 -43
- package/dist/account-actors.js +0 -55
- package/dist/account.d.ts +0 -6
- package/dist/account.js +0 -18
- package/dist/actor-bounds.d.ts +0 -5
- package/dist/actor-bounds.js +0 -6
- package/dist/actor-qualities.d.ts +0 -3
- package/dist/actor-qualities.js +0 -4
- package/dist/actors.d.ts +0 -16
- package/dist/actors.js +0 -21
- package/dist/ad-guide.js +0 -2
- package/dist/ad-pause-trim.d.ts +0 -5
- package/dist/ad-pause-trim.js +0 -8
- package/dist/api-failure.d.ts +0 -44
- package/dist/api-failure.js +0 -62
- package/dist/aspect.d.ts +0 -29
- package/dist/aspect.js +1 -34
- package/dist/asset-identity.d.ts +0 -2
- package/dist/asset-identity.js +0 -3
- package/dist/assets.d.ts +0 -34
- package/dist/assets.js +0 -42
- package/dist/billing-terms.d.ts +0 -3
- package/dist/billing-terms.js +0 -4
- package/dist/brand-styles.d.ts +0 -6
- package/dist/brand-styles.js +0 -13
- package/dist/broll-policy.js +0 -1
- package/dist/canvas-fit.d.ts +0 -2
- package/dist/canvas-fit.js +0 -4
- package/dist/caption-funnel.d.ts +0 -2
- package/dist/caption-funnel.js +0 -15
- package/dist/caption-geometry.d.ts +0 -6
- package/dist/caption-geometry.js +0 -10
- package/dist/caption-language.d.ts +0 -3
- package/dist/caption-language.js +0 -6
- package/dist/contract-dispositions.d.ts +0 -61
- package/dist/contract-dispositions.js +3 -96
- package/dist/contracts/v1/workflow-brief.d.ts +57 -3
- package/dist/contracts/v1/workflow-brief.js +0 -13
- package/dist/contracts/v1/workflow-catalog.d.ts +114 -0
- package/dist/contracts/v1/workflow-catalog.js +0 -3
- package/dist/contracts/v1/workflow-client.d.ts +114 -0
- package/dist/contracts/v1/workflow-client.js +0 -1
- package/dist/contracts/v1/workflow-dto.js +0 -1
- package/dist/contracts/v1/workflow-evidence.js +0 -1
- package/dist/contracts/v1/workflow-execution.d.ts +0 -1
- package/dist/contracts/v1/workflow-execution.js +0 -4
- package/dist/contracts/v1/workflow-next.d.ts +0 -2
- package/dist/contracts/v1/workflow-next.js +0 -3
- package/dist/contracts/v1/workflow-plan.d.ts +171 -0
- package/dist/contracts/v1/workflow-plan.js +0 -1
- package/dist/contracts/v1/workflow-primitives.d.ts +0 -1
- package/dist/contracts/v1/workflow-primitives.js +0 -2
- package/dist/contracts/v1/workflow-run-read.d.ts +0 -1
- package/dist/contracts/v1/workflow-run-read.js +0 -3
- package/dist/creator-profile.d.ts +0 -30
- package/dist/creator-profile.js +0 -45
- package/dist/default-actor.js +0 -2
- package/dist/design.d.ts +0 -17
- package/dist/design.js +0 -18
- package/dist/edit-billing.d.ts +0 -6
- package/dist/edit-billing.js +0 -10
- package/dist/edit-candidate.d.ts +0 -6
- package/dist/edit-candidate.js +0 -9
- package/dist/edit-document.d.ts +0 -12
- package/dist/edit-document.js +0 -15
- package/dist/edit-faceless.d.ts +0 -3
- package/dist/edit-faceless.js +0 -4
- package/dist/edit-long-form.d.ts +0 -13
- package/dist/edit-long-form.js +0 -17
- package/dist/edit-operations.d.ts +0 -1
- package/dist/edit-operations.js +0 -2
- package/dist/edit-primitives.d.ts +0 -3
- package/dist/edit-primitives.js +0 -5
- package/dist/edit-revision.d.ts +0 -4
- package/dist/edit-revision.js +0 -6
- package/dist/edit-rules.d.ts +0 -3
- package/dist/edit-rules.js +0 -9
- package/dist/edit-shots.d.ts +45 -5
- package/dist/edit-shots.js +7 -11
- package/dist/edit-validate.d.ts +0 -10
- package/dist/edit-validate.js +0 -14
- package/dist/edit.js +0 -3
- package/dist/endpoint-notes.d.ts +0 -2
- package/dist/endpoint-notes.js +0 -3
- package/dist/endpoints.d.ts +0 -11
- package/dist/endpoints.js +7 -21
- package/dist/errors.d.ts +0 -42
- package/dist/errors.js +0 -54
- package/dist/explainer-fit.d.ts +0 -7
- package/dist/explainer-fit.js +0 -10
- package/dist/face-billing.d.ts +0 -9
- package/dist/face-billing.js +0 -23
- package/dist/face-delivery.d.ts +0 -1
- package/dist/face-delivery.js +0 -2
- package/dist/faceless-action-shots.d.ts +0 -8
- package/dist/faceless-action-shots.js +0 -8
- package/dist/faceless-customer-anchors.d.ts +0 -1
- package/dist/faceless-customer-anchors.js +0 -2
- package/dist/faceless-cut-style.js +0 -1
- package/dist/faceless-direction-summary.d.ts +0 -2
- package/dist/faceless-direction-summary.js +0 -3
- package/dist/faceless-image-placement.d.ts +0 -2
- package/dist/faceless-image-placement.js +0 -3
- package/dist/faceless-image-qualification.js +0 -2
- package/dist/faceless-media-record.d.ts +0 -6
- package/dist/faceless-media-record.js +0 -11
- package/dist/faceless-price.d.ts +0 -45
- package/dist/faceless-price.js +0 -64
- package/dist/faceless-public-plan.d.ts +0 -13
- package/dist/faceless-public-plan.js +0 -11
- package/dist/faceless-public.d.ts +0 -26
- package/dist/faceless-public.js +0 -59
- package/dist/faceless-short-61.js +0 -1
- package/dist/faceless-storyboard-timing.js +0 -1
- package/dist/faceless-storyboard-v2-plan.js +0 -1
- package/dist/faceless-storyboard-v2-timing.d.ts +0 -4
- package/dist/faceless-storyboard-v2-timing.js +0 -3
- package/dist/faceless-storyboard-v2.js +0 -1
- package/dist/faceless-storyboard.js +0 -1
- package/dist/faceless-voices.d.ts +0 -16
- package/dist/faceless-voices.js +0 -18
- package/dist/feedback.d.ts +0 -4
- package/dist/feedback.js +0 -5
- package/dist/film-directions.d.ts +0 -2
- package/dist/film-directions.js +0 -7
- package/dist/film-drafts.d.ts +0 -8
- package/dist/film-drafts.js +0 -19
- package/dist/film-guide.d.ts +0 -3
- package/dist/film-guide.js +0 -6
- package/dist/film-styles.d.ts +0 -5
- package/dist/film-styles.js +0 -8
- package/dist/generation-shot.d.ts +0 -5
- package/dist/generation-shot.js +0 -8
- package/dist/generations-output.d.ts +0 -2
- package/dist/generations-output.js +0 -5
- package/dist/generations.d.ts +0 -22
- package/dist/generations.js +21 -44
- package/dist/idempotency.d.ts +1 -21
- package/dist/idempotency.js +8 -29
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -28
- package/dist/live-shot-kinds.d.ts +16 -25
- package/dist/live-shot-kinds.js +12 -28
- package/dist/long-form-pricing.d.ts +0 -5
- package/dist/long-form-pricing.js +0 -6
- package/dist/long-form-profile.d.ts +0 -3
- package/dist/long-form-profile.js +0 -4
- package/dist/long-form-revision.d.ts +0 -9
- package/dist/long-form-revision.js +0 -11
- package/dist/markdown-quote.d.ts +0 -2
- package/dist/markdown-quote.js +0 -3
- package/dist/mascots.d.ts +0 -5
- package/dist/mascots.js +0 -10
- package/dist/max-credits.d.ts +0 -1
- package/dist/max-credits.js +0 -2
- package/dist/mcp-ugc-descriptions.d.ts +0 -2
- package/dist/mcp-ugc-descriptions.js +1 -6
- package/dist/media-timebase.d.ts +0 -2
- package/dist/media-timebase.js +0 -6
- package/dist/motion-styles.d.ts +0 -8
- package/dist/motion-styles.js +0 -11
- package/dist/moves.d.ts +0 -7
- package/dist/moves.js +0 -9
- package/dist/music.d.ts +0 -5
- package/dist/music.js +0 -8
- package/dist/naming.d.ts +0 -3
- package/dist/naming.js +0 -19
- package/dist/openapi.d.ts +0 -13
- package/dist/openapi.js +6 -11
- package/dist/output-provenance.d.ts +0 -4
- package/dist/output-provenance.js +0 -5
- package/dist/own-agent-price.d.ts +19 -22
- package/dist/own-agent-price.js +30 -25
- package/dist/own-agent-runs.d.ts +111 -11
- package/dist/own-agent-runs.js +89 -24
- package/dist/pacing.d.ts +3 -15
- package/dist/pacing.js +18 -18
- package/dist/parts-pricing.d.ts +0 -28
- package/dist/parts-pricing.js +0 -32
- package/dist/post-text.d.ts +0 -2
- package/dist/post-text.js +0 -4
- package/dist/presenter-beats.d.ts +0 -10
- package/dist/presenter-beats.js +0 -14
- package/dist/presenter-matte.d.ts +0 -7
- package/dist/presenter-matte.js +0 -9
- package/dist/presenter-takes.d.ts +0 -3
- package/dist/presenter-takes.js +0 -8
- package/dist/prices.d.ts +2 -8
- package/dist/prices.js +13 -23
- package/dist/public-endpoints.d.ts +0 -11
- package/dist/public-endpoints.js +0 -14
- package/dist/public-responses.d.ts +0 -2
- package/dist/public-responses.js +0 -3
- package/dist/rate-limit.d.ts +0 -24
- package/dist/rate-limit.js +0 -29
- package/dist/reference-analysis.d.ts +57 -34
- package/dist/reference-analysis.js +0 -69
- package/dist/reference-bring.d.ts +33 -0
- package/dist/reference-bring.js +28 -0
- package/dist/reference-display.d.ts +0 -3
- package/dist/reference-display.js +37 -4
- package/dist/reference-kinds.d.ts +0 -4
- package/dist/reference-kinds.js +0 -6
- package/dist/reference-lyrics.d.ts +0 -6
- package/dist/reference-lyrics.js +0 -6
- package/dist/reference-profile.d.ts +270 -39
- package/dist/reference-profile.js +64 -50
- package/dist/reference-staging.d.ts +0 -10
- package/dist/reference-staging.js +0 -14
- package/dist/reference-text-spans.d.ts +0 -4
- package/dist/reference-text-spans.js +0 -7
- package/dist/reference-voice-over.d.ts +0 -6
- package/dist/reference-voice-over.js +0 -7
- package/dist/reference-voice.d.ts +0 -7
- package/dist/reference-voice.js +0 -12
- package/dist/render-backend.d.ts +0 -30
- package/dist/render-backend.js +0 -5
- package/dist/resolved-timeline.d.ts +0 -4
- package/dist/resolved-timeline.js +1 -31
- package/dist/run-media.d.ts +0 -1
- package/dist/run-media.js +0 -2
- package/dist/run-preflight.d.ts +0 -4
- package/dist/run-preflight.js +0 -11
- package/dist/run-static-warnings.d.ts +0 -8
- package/dist/run-static-warnings.js +0 -38
- package/dist/runs.d.ts +0 -32
- package/dist/runs.js +0 -50
- package/dist/scene-bible.d.ts +15 -7
- package/dist/scene-bible.js +15 -10
- package/dist/scene-graph.d.ts +0 -12
- package/dist/scene-graph.js +0 -24
- package/dist/scene-place.d.ts +0 -25
- package/dist/scene-place.js +0 -24
- package/dist/scene-proposal.d.ts +0 -3
- package/dist/scene-proposal.js +0 -9
- package/dist/script-integrity.d.ts +0 -6
- package/dist/script-integrity.js +0 -8
- package/dist/script-voice.d.ts +0 -7
- package/dist/script-voice.js +0 -16
- package/dist/semantic-inserts.d.ts +0 -7
- package/dist/semantic-inserts.js +0 -10
- package/dist/skill-theme-explainer.js +0 -5
- package/dist/skill-theme.d.ts +0 -13
- package/dist/skill-theme.js +0 -25
- package/dist/skills.d.ts +22 -86
- package/dist/skills.js +21 -167
- package/dist/speech-rhythm-contract.js +0 -1
- package/dist/speech-rhythm.d.ts +0 -4
- package/dist/speech-rhythm.js +0 -2
- package/dist/templates/backdrop.d.ts +0 -3
- package/dist/templates/backdrop.js +0 -5
- package/dist/templates/callout.d.ts +0 -4
- package/dist/templates/callout.js +0 -6
- package/dist/templates/chart.d.ts +0 -4
- package/dist/templates/chart.js +0 -6
- package/dist/templates/chat-window.d.ts +0 -8
- package/dist/templates/chat-window.js +0 -10
- package/dist/templates/checklist.d.ts +0 -3
- package/dist/templates/checklist.js +0 -6
- package/dist/templates/comment-cta.d.ts +0 -14
- package/dist/templates/comment-cta.js +0 -19
- package/dist/templates/compare.d.ts +0 -6
- package/dist/templates/compare.js +0 -7
- package/dist/templates/cover-story.d.ts +0 -1
- package/dist/templates/cover-story.js +0 -3
- package/dist/templates/end-card.d.ts +0 -2
- package/dist/templates/end-card.js +0 -3
- package/dist/templates/hand-title.d.ts +0 -5
- package/dist/templates/hand-title.js +0 -9
- package/dist/templates/index.d.ts +0 -57
- package/dist/templates/index.js +0 -60
- package/dist/templates/lower-third.d.ts +0 -4
- package/dist/templates/lower-third.js +0 -5
- package/dist/templates/notification.d.ts +0 -6
- package/dist/templates/notification.js +0 -7
- package/dist/templates/phone-call.d.ts +0 -2
- package/dist/templates/phone-call.js +0 -6
- package/dist/templates/phone-screen.d.ts +0 -5
- package/dist/templates/phone-screen.js +0 -7
- package/dist/templates/pointer-chips.d.ts +0 -4
- package/dist/templates/pointer-chips.js +0 -6
- package/dist/templates/progress.d.ts +0 -3
- package/dist/templates/progress.js +0 -5
- package/dist/templates/quote.d.ts +0 -3
- package/dist/templates/quote.js +0 -4
- package/dist/templates/race.d.ts +0 -5
- package/dist/templates/race.js +0 -7
- package/dist/templates/rating.d.ts +0 -3
- package/dist/templates/rating.js +0 -5
- package/dist/templates/series-frame.d.ts +0 -16
- package/dist/templates/series-frame.js +0 -19
- package/dist/templates/size.d.ts +0 -7
- package/dist/templates/size.js +0 -8
- package/dist/templates/slot.d.ts +0 -2
- package/dist/templates/slot.js +0 -2
- package/dist/templates/sounds.d.ts +0 -12
- package/dist/templates/sounds.js +0 -16
- package/dist/templates/stat.d.ts +0 -3
- package/dist/templates/stat.js +0 -5
- package/dist/templates/tag.d.ts +0 -3
- package/dist/templates/tag.js +0 -5
- package/dist/templates/terminal.d.ts +0 -6
- package/dist/templates/terminal.js +0 -8
- package/dist/templates/theme.d.ts +0 -7
- package/dist/templates/theme.js +0 -9
- package/dist/templates/title-card.d.ts +0 -3
- package/dist/templates/title-card.js +0 -5
- package/dist/templates/video-grid.d.ts +0 -5
- package/dist/templates/video-grid.js +0 -8
- package/dist/templates/word-fill.d.ts +0 -3
- package/dist/templates/word-fill.js +0 -4
- package/dist/templates/word-title.d.ts +0 -2
- package/dist/templates/word-title.js +0 -4
- package/dist/trend-niches.d.ts +0 -11
- package/dist/trend-niches.js +0 -16
- package/dist/trend-search.d.ts +0 -66
- package/dist/trend-search.js +0 -70
- package/dist/tts-backend.d.ts +0 -19
- package/dist/tts-backend.js +0 -7
- package/dist/ugc-call.d.ts +0 -16
- package/dist/ugc-call.js +0 -21
- package/dist/ugc-delivery.d.ts +0 -2
- package/dist/ugc-delivery.js +0 -4
- package/dist/ugc-framing.d.ts +0 -4
- package/dist/ugc-framing.js +0 -6
- package/dist/ugc-interview.d.ts +0 -18
- package/dist/ugc-interview.js +0 -24
- package/dist/ugc-layers.d.ts +0 -39
- package/dist/ugc-layers.js +0 -39
- package/dist/ugc-scenes.d.ts +0 -2
- package/dist/ugc-scenes.js +0 -5
- package/dist/ugc-video-media.d.ts +0 -5
- package/dist/ugc-video-media.js +0 -7
- package/dist/uploads.d.ts +0 -14
- package/dist/uploads.js +0 -17
- package/dist/vendor-response.d.ts +0 -19
- package/dist/vendor-response.js +0 -22
- package/dist/video-size.d.ts +0 -4
- package/dist/video-size.js +0 -7
- package/dist/voice-admission.d.ts +0 -11
- package/dist/voice-admission.js +0 -13
- package/dist/voice-catalog-data.d.ts +0 -2
- package/dist/voice-catalog-data.js +0 -3
- package/dist/voice-catalog.d.ts +0 -6
- package/dist/voice-catalog.js +0 -8
- package/dist/voice-listing.d.ts +0 -6
- package/dist/voice-listing.js +0 -14
- package/dist/voice-pace.d.ts +0 -4
- package/dist/voice-pace.js +0 -7
- package/dist/voice-preview-approval.js +0 -1
- package/dist/voices.d.ts +4 -69
- package/dist/voices.js +3 -88
- package/dist/workflows/catalog.d.ts +0 -2
- package/dist/workflows/catalog.js +0 -4
- package/dist/workflows/film-directions.d.ts +0 -3
- package/dist/workflows/film-directions.js +0 -4
- package/dist/workflows/index.js +0 -1
- package/dist/workflows/methods/faceless-explainer.d.ts +31 -0
- package/dist/workflows/methods/faceless-explainer.js +0 -1
- package/dist/workflows/methods/kinetic-launch.d.ts +62 -1
- package/dist/workflows/methods/kinetic-launch.js +0 -2
- package/dist/workflows/methods/product-image-story.d.ts +31 -0
- package/dist/workflows/methods/product-image-story.js +0 -1
- package/dist/workflows/methods/reference-remake.d.ts +31 -0
- package/dist/workflows/methods/reference-remake.js +0 -1
- package/dist/workflows/methods/shared.d.ts +31 -1
- package/dist/workflows/methods/shared.js +0 -3
- package/dist/workflows/methods/ugc-faq-answer.d.ts +31 -0
- package/dist/workflows/methods/ugc-faq-answer.js +0 -1
- package/dist/workflows/methods/ugc-product-intro.d.ts +31 -0
- package/dist/workflows/methods/ugc-product-intro.js +0 -1
- package/dist/workflows/methods/website-proof-demo.d.ts +62 -1
- package/dist/workflows/methods/website-proof-demo.js +0 -2
- package/dist/workflows/motion-director.d.ts +0 -11
- package/dist/workflows/motion-director.js +0 -11
- package/dist/workflows/product-references.js +0 -1
- package/dist/workflows/reference-remake.d.ts +114 -17
- package/dist/workflows/reference-remake.js +0 -167
- package/dist/workflows/remake-chooser.d.ts +0 -6
- package/dist/workflows/remake-chooser.js +0 -4
- package/dist/workflows/remake-motion.d.ts +0 -16
- package/dist/workflows/remake-motion.js +0 -19
- package/dist/workflows/validate.d.ts +0 -1
- package/dist/workflows/validate.js +0 -5
- package/dist/workflows.js +0 -1
- package/package.json +1 -1
- package/dist/account-actors.js.map +0 -1
- package/dist/account.js.map +0 -1
- package/dist/actor-bounds.js.map +0 -1
- package/dist/actor-qualities.js.map +0 -1
- package/dist/actors.js.map +0 -1
- package/dist/ad-guide.js.map +0 -1
- package/dist/ad-pause-trim.js.map +0 -1
- package/dist/api-failure.js.map +0 -1
- package/dist/aspect.js.map +0 -1
- package/dist/asset-identity.js.map +0 -1
- package/dist/assets.js.map +0 -1
- package/dist/billing-terms.js.map +0 -1
- package/dist/brand-styles.js.map +0 -1
- package/dist/broll-policy.js.map +0 -1
- package/dist/canvas-fit.js.map +0 -1
- package/dist/caption-funnel.js.map +0 -1
- package/dist/caption-geometry.js.map +0 -1
- package/dist/caption-language.js.map +0 -1
- package/dist/contract-dispositions.js.map +0 -1
- package/dist/contracts/v1/workflow-brief.js.map +0 -1
- package/dist/contracts/v1/workflow-catalog.js.map +0 -1
- package/dist/contracts/v1/workflow-client.js.map +0 -1
- package/dist/contracts/v1/workflow-dto.js.map +0 -1
- package/dist/contracts/v1/workflow-evidence.js.map +0 -1
- package/dist/contracts/v1/workflow-execution.js.map +0 -1
- package/dist/contracts/v1/workflow-next.js.map +0 -1
- package/dist/contracts/v1/workflow-plan.js.map +0 -1
- package/dist/contracts/v1/workflow-primitives.js.map +0 -1
- package/dist/contracts/v1/workflow-run-read.js.map +0 -1
- package/dist/creator-profile.js.map +0 -1
- package/dist/default-actor.js.map +0 -1
- package/dist/design.js.map +0 -1
- package/dist/edit-billing.js.map +0 -1
- package/dist/edit-candidate.js.map +0 -1
- package/dist/edit-document.js.map +0 -1
- package/dist/edit-faceless.js.map +0 -1
- package/dist/edit-long-form.js.map +0 -1
- package/dist/edit-operations.js.map +0 -1
- package/dist/edit-primitives.js.map +0 -1
- package/dist/edit-revision.js.map +0 -1
- package/dist/edit-rules.js.map +0 -1
- package/dist/edit-shots.js.map +0 -1
- package/dist/edit-validate.js.map +0 -1
- package/dist/edit.js.map +0 -1
- package/dist/endpoint-notes.js.map +0 -1
- package/dist/endpoints.js.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/explainer-fit.js.map +0 -1
- package/dist/face-billing.js.map +0 -1
- package/dist/face-delivery.js.map +0 -1
- package/dist/faceless-action-shots.js.map +0 -1
- package/dist/faceless-customer-anchors.js.map +0 -1
- package/dist/faceless-cut-style.js.map +0 -1
- package/dist/faceless-direction-summary.js.map +0 -1
- package/dist/faceless-image-placement.js.map +0 -1
- package/dist/faceless-image-qualification.js.map +0 -1
- package/dist/faceless-media-record.js.map +0 -1
- package/dist/faceless-price.js.map +0 -1
- package/dist/faceless-public-plan.js.map +0 -1
- package/dist/faceless-public.js.map +0 -1
- package/dist/faceless-short-61.js.map +0 -1
- package/dist/faceless-storyboard-timing.js.map +0 -1
- package/dist/faceless-storyboard-v2-plan.js.map +0 -1
- package/dist/faceless-storyboard-v2-timing.js.map +0 -1
- package/dist/faceless-storyboard-v2.js.map +0 -1
- package/dist/faceless-storyboard.js.map +0 -1
- package/dist/faceless-voices.js.map +0 -1
- package/dist/feedback.js.map +0 -1
- package/dist/film-directions.js.map +0 -1
- package/dist/film-drafts.js.map +0 -1
- package/dist/film-guide.js.map +0 -1
- package/dist/film-styles.js.map +0 -1
- package/dist/generation-shot.js.map +0 -1
- package/dist/generations-output.js.map +0 -1
- package/dist/generations.js.map +0 -1
- package/dist/idempotency.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/live-shot-kinds.js.map +0 -1
- package/dist/long-form-pricing.js.map +0 -1
- package/dist/long-form-profile.js.map +0 -1
- package/dist/long-form-revision.js.map +0 -1
- package/dist/markdown-quote.js.map +0 -1
- package/dist/mascots.js.map +0 -1
- package/dist/max-credits.js.map +0 -1
- package/dist/mcp-ugc-descriptions.js.map +0 -1
- package/dist/media-timebase.js.map +0 -1
- package/dist/motion-styles.js.map +0 -1
- package/dist/moves.js.map +0 -1
- package/dist/music.js.map +0 -1
- package/dist/naming.js.map +0 -1
- package/dist/openapi.js.map +0 -1
- package/dist/output-provenance.js.map +0 -1
- package/dist/own-agent-price.js.map +0 -1
- package/dist/own-agent-runs.js.map +0 -1
- package/dist/pacing.js.map +0 -1
- package/dist/parts-pricing.js.map +0 -1
- package/dist/post-text.js.map +0 -1
- package/dist/presenter-beats.js.map +0 -1
- package/dist/presenter-matte.js.map +0 -1
- package/dist/presenter-takes.js.map +0 -1
- package/dist/prices.js.map +0 -1
- package/dist/public-endpoints.js.map +0 -1
- package/dist/public-responses.js.map +0 -1
- package/dist/rate-limit.js.map +0 -1
- package/dist/reference-analysis.js.map +0 -1
- package/dist/reference-display.js.map +0 -1
- package/dist/reference-kinds.js.map +0 -1
- package/dist/reference-lyrics.js.map +0 -1
- package/dist/reference-profile.js.map +0 -1
- package/dist/reference-staging.js.map +0 -1
- package/dist/reference-text-spans.js.map +0 -1
- package/dist/reference-voice-over.js.map +0 -1
- package/dist/reference-voice.js.map +0 -1
- package/dist/render-backend.js.map +0 -1
- package/dist/resolved-timeline.js.map +0 -1
- package/dist/run-media.js.map +0 -1
- package/dist/run-preflight.js.map +0 -1
- package/dist/run-static-warnings.js.map +0 -1
- package/dist/runs.js.map +0 -1
- package/dist/scene-bible.js.map +0 -1
- package/dist/scene-graph.js.map +0 -1
- package/dist/scene-place.js.map +0 -1
- package/dist/scene-proposal.js.map +0 -1
- package/dist/script-integrity.js.map +0 -1
- package/dist/script-voice.js.map +0 -1
- package/dist/semantic-inserts.js.map +0 -1
- package/dist/skill-theme-explainer.js.map +0 -1
- package/dist/skill-theme.js.map +0 -1
- package/dist/skills.js.map +0 -1
- package/dist/speech-rhythm-contract.js.map +0 -1
- package/dist/speech-rhythm.js.map +0 -1
- package/dist/templates/backdrop.js.map +0 -1
- package/dist/templates/callout.js.map +0 -1
- package/dist/templates/chart.js.map +0 -1
- package/dist/templates/chat-window.js.map +0 -1
- package/dist/templates/checklist.js.map +0 -1
- package/dist/templates/comment-cta.js.map +0 -1
- package/dist/templates/compare.js.map +0 -1
- package/dist/templates/cover-story.js.map +0 -1
- package/dist/templates/end-card.js.map +0 -1
- package/dist/templates/hand-title.js.map +0 -1
- package/dist/templates/index.js.map +0 -1
- package/dist/templates/lower-third.js.map +0 -1
- package/dist/templates/notification.js.map +0 -1
- package/dist/templates/phone-call.js.map +0 -1
- package/dist/templates/phone-screen.js.map +0 -1
- package/dist/templates/pointer-chips.js.map +0 -1
- package/dist/templates/progress.js.map +0 -1
- package/dist/templates/quote.js.map +0 -1
- package/dist/templates/race.js.map +0 -1
- package/dist/templates/rating.js.map +0 -1
- package/dist/templates/series-frame.js.map +0 -1
- package/dist/templates/size.js.map +0 -1
- package/dist/templates/slot.js.map +0 -1
- package/dist/templates/sounds.js.map +0 -1
- package/dist/templates/stat.js.map +0 -1
- package/dist/templates/tag.js.map +0 -1
- package/dist/templates/terminal.js.map +0 -1
- package/dist/templates/theme.js.map +0 -1
- package/dist/templates/title-card.js.map +0 -1
- package/dist/templates/video-grid.js.map +0 -1
- package/dist/templates/word-fill.js.map +0 -1
- package/dist/templates/word-title.js.map +0 -1
- package/dist/trend-niches.js.map +0 -1
- package/dist/trend-search.js.map +0 -1
- package/dist/tts-backend.js.map +0 -1
- package/dist/ugc-call.js.map +0 -1
- package/dist/ugc-delivery.js.map +0 -1
- package/dist/ugc-framing.js.map +0 -1
- package/dist/ugc-interview.js.map +0 -1
- package/dist/ugc-layers.js.map +0 -1
- package/dist/ugc-scenes.js.map +0 -1
- package/dist/ugc-video-media.js.map +0 -1
- package/dist/uploads.js.map +0 -1
- package/dist/vendor-response.js.map +0 -1
- package/dist/video-size.js.map +0 -1
- package/dist/voice-admission.js.map +0 -1
- package/dist/voice-catalog-data.js.map +0 -1
- package/dist/voice-catalog.js.map +0 -1
- package/dist/voice-listing.js.map +0 -1
- package/dist/voice-pace.js.map +0 -1
- package/dist/voice-preview-approval.js.map +0 -1
- package/dist/voices.js.map +0 -1
- package/dist/workflows/catalog.js.map +0 -1
- package/dist/workflows/film-directions.js.map +0 -1
- package/dist/workflows/index.js.map +0 -1
- package/dist/workflows/methods/faceless-explainer.js.map +0 -1
- package/dist/workflows/methods/kinetic-launch.js.map +0 -1
- package/dist/workflows/methods/product-image-story.js.map +0 -1
- package/dist/workflows/methods/reference-remake.js.map +0 -1
- package/dist/workflows/methods/shared.js.map +0 -1
- package/dist/workflows/methods/ugc-faq-answer.js.map +0 -1
- package/dist/workflows/methods/ugc-product-intro.js.map +0 -1
- package/dist/workflows/methods/website-proof-demo.js.map +0 -1
- package/dist/workflows/motion-director.js.map +0 -1
- package/dist/workflows/product-references.js.map +0 -1
- package/dist/workflows/reference-remake.js.map +0 -1
- package/dist/workflows/remake-chooser.js.map +0 -1
- package/dist/workflows/remake-motion.js.map +0 -1
- package/dist/workflows/validate.js.map +0 -1
- package/dist/workflows.js.map +0 -1
|
@@ -37,7 +37,6 @@ declare const scriptTransitions: z.ZodObject<{
|
|
|
37
37
|
}, z.core.$strict>>]>>;
|
|
38
38
|
}, z.core.$strict>;
|
|
39
39
|
export type FacelessTransitionsInput = z.infer<typeof scriptTransitions>;
|
|
40
|
-
/** A brief that names no transitions gets a flash on every scene change at admission (#1067); `false` keeps plain cuts. */
|
|
41
40
|
export declare const FACELESS_BRIEF_DEFAULT_TRANSITIONS: Readonly<{
|
|
42
41
|
readonly look: "flash";
|
|
43
42
|
readonly at: "scene_changes";
|
|
@@ -45,45 +44,34 @@ export declare const FACELESS_BRIEF_DEFAULT_TRANSITIONS: Readonly<{
|
|
|
45
44
|
export declare const FACELESS_FORMATS: readonly ["standard", "explainer"];
|
|
46
45
|
export declare const FACELESS_EXPLAINER_DISABLED_MESSAGE = "format explainer is not available on make_faceless right now; omit format";
|
|
47
46
|
export declare const FACELESS_EXPLAINER_BRIEF_REFUSAL = "format explainer needs input_mode script: write it as a hook, three to five steps and a result";
|
|
48
|
-
/** The frame a faceless run delivers: 720 by 1280 when admission pinned 720p (#911), else the 1080 by 1920 of every earlier run and every revision. */
|
|
49
47
|
export declare function facelessRunFrame(storedInput: unknown): {
|
|
50
48
|
width: number;
|
|
51
49
|
height: number;
|
|
52
50
|
};
|
|
53
|
-
/** The explainer (#1216) draws its own scene on every phrase, so the fields that place pictures, clips or graphics have no room in it. */
|
|
54
51
|
export declare const EXPLAINER_OWN_FIELDS: readonly ["style_reference", "transitions", "templates", "shots", "scenes", "moves", "motion_style", "music"];
|
|
55
52
|
export declare const explainerOwnFieldMessage: (field: string) => string;
|
|
56
|
-
/** An explainer places at most this many of the customer's product pictures, each on its own words (#1322). */
|
|
57
53
|
export declare const EXPLAINER_MAX_PRODUCT_PICTURES = 3;
|
|
58
54
|
export declare const EXPLAINER_PRODUCT_PICTURES_REFUSAL = "format explainer places at most 3 of your pictures";
|
|
59
|
-
/** Why an explainer's pictures cannot be placed: too many, or words of the script none or more than one of them names alone. */
|
|
60
55
|
export declare function explainerPictureRefusals(script: unknown, images: unknown): {
|
|
61
56
|
path: (string | number)[];
|
|
62
57
|
message: string;
|
|
63
58
|
}[];
|
|
64
|
-
/** What an explainer request may not carry: a brief, a field the explainer draws itself, or pictures it cannot place. */
|
|
65
59
|
export declare function explainerFieldRefusals(input: Record<string, unknown>): {
|
|
66
60
|
path: (string | number)[];
|
|
67
61
|
message: string;
|
|
68
62
|
}[];
|
|
69
|
-
/** A mascot is the explainer's hero already made: it needs the format, and it replaces a character the run would draw. */
|
|
70
63
|
export declare function mascotFieldRefusals(input: Record<string, unknown>): {
|
|
71
64
|
path: string[];
|
|
72
65
|
message: string;
|
|
73
66
|
}[];
|
|
74
|
-
/** A tier picks the explainer's level, or a directed video's (#1573), so it means nothing on another run. */
|
|
75
67
|
export declare const EXPLAINER_TIER_REFUSAL = "tier needs format explainer: it picks the explainer's level";
|
|
76
|
-
/** The schema takes `tier` on any format; admission refuses it before any reserve unless the run is an explainer or directed. */
|
|
77
68
|
export declare function facelessTierRefusal(input: {
|
|
78
69
|
tier?: unknown;
|
|
79
70
|
format?: unknown;
|
|
80
71
|
}, directed: boolean): string | null;
|
|
81
|
-
/** A directed run's level: `standard` unless asked, so the cheaper level is never a surprise. */
|
|
82
72
|
export declare function directedFacelessTier(input: {
|
|
83
73
|
tier?: (typeof EXPLAINER_TIERS)[number] | undefined;
|
|
84
74
|
}): (typeof EXPLAINER_TIERS)[number];
|
|
85
|
-
/** Server-only: admission freezes a directed video's level and how the caller's pictures may be placed (#1573): `none` without pictures,
|
|
86
|
-
* `keep` on their anchors, `by_meaning` where one plainly shows another sentence. A public body naming it is refused as an unknown field. */
|
|
87
75
|
export declare const facelessDirectedMark: z.ZodObject<{
|
|
88
76
|
version: z.ZodLiteral<1>;
|
|
89
77
|
tier: z.ZodEnum<{
|
|
@@ -97,14 +85,12 @@ export declare const facelessDirectedMark: z.ZodObject<{
|
|
|
97
85
|
}>;
|
|
98
86
|
}, z.core.$strict>;
|
|
99
87
|
export type FacelessDirectedMark = z.infer<typeof facelessDirectedMark>;
|
|
100
|
-
/** The line a faceless quote and run name when a style has nothing to dress: captions off and no templates or scenes (#1123). */
|
|
101
88
|
export declare function facelessMotionStyleWarnings(input: {
|
|
102
89
|
motion_style?: Parameters<typeof motionStyleAsked>[0]["motion_style"];
|
|
103
90
|
captions?: boolean | undefined;
|
|
104
91
|
templates?: readonly unknown[] | undefined;
|
|
105
92
|
scenes?: readonly unknown[] | undefined;
|
|
106
93
|
}): string[];
|
|
107
|
-
/** Action shots (#1113): a moving clip from the picture under the named words, on those words, instead of the still. */
|
|
108
94
|
export declare const facelessActionShot: z.ZodObject<{
|
|
109
95
|
id: z.ZodString;
|
|
110
96
|
anchor: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -3472,7 +3458,6 @@ export declare const makeFacelessInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3472
3458
|
}, z.core.$strict>], "input_mode">;
|
|
3473
3459
|
export type MakeFacelessInput = z.infer<typeof makeFacelessInput>;
|
|
3474
3460
|
export type MakeFacelessInputArgs = z.input<typeof makeFacelessInput>;
|
|
3475
|
-
/** The stored input of a revision: the request as resolved, and what admission froze about it. */
|
|
3476
3461
|
export declare const facelessRevisionInput: z.ZodObject<{
|
|
3477
3462
|
input_mode: z.ZodLiteral<"revision">;
|
|
3478
3463
|
revision: z.ZodObject<{
|
|
@@ -3588,7 +3573,6 @@ export declare const facelessRevisionInput: z.ZodObject<{
|
|
|
3588
3573
|
}, z.core.$strict>;
|
|
3589
3574
|
}, z.core.$strict>;
|
|
3590
3575
|
export type FacelessRevisionInput = z.infer<typeof facelessRevisionInput>;
|
|
3591
|
-
/** What a `make_faceless` run stores as its input: a generate request or a revision. */
|
|
3592
3576
|
export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3593
3577
|
duration_seconds: z.ZodNumber;
|
|
3594
3578
|
style_reference: z.ZodOptional<z.ZodString>;
|
|
@@ -7165,27 +7149,19 @@ export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7165
7149
|
}, z.core.$strict>;
|
|
7166
7150
|
}, z.core.$strict>], "input_mode">;
|
|
7167
7151
|
export type FacelessStoredInput = z.infer<typeof facelessStoredInput>;
|
|
7168
|
-
/** Admission and the run validate accepted input without canonicalizing its narration again. */
|
|
7169
|
-
/** A brief's default flash is frozen here, so the stored input names what the video draws; a stored input is read as stored. */
|
|
7170
7152
|
export declare function parseFacelessInputPreservingScript(input: unknown): MakeFacelessInput;
|
|
7171
7153
|
export declare function parseFacelessStoredInputPreservingScript(input: unknown): FacelessStoredInput;
|
|
7172
|
-
/** A request's quote: what the quote shows and admission reserves, read from the same fields by the same call. */
|
|
7173
|
-
/** `explainerBeats`: an explainer's drawn scenes are on, so the quote holds them. `explainerFilm`: the explainer is priced as one drawn film. */
|
|
7174
7154
|
export declare function quoteFacelessInput(input: MakeFacelessInput, options?: {
|
|
7175
7155
|
explainerBeats?: boolean;
|
|
7176
7156
|
explainerFilm?: SkillFilmTariff;
|
|
7177
7157
|
}): FacelessQuote;
|
|
7178
|
-
/** Both levels' totals for one explainer request (#1291 F4), each as admission would reserve it on that level; the quote names the chosen one. */
|
|
7179
7158
|
export declare function explainerTierTotals(input: MakeFacelessInput): {
|
|
7180
7159
|
tier: (typeof EXPLAINER_TIERS)[number];
|
|
7181
7160
|
standard: number;
|
|
7182
7161
|
pro: number;
|
|
7183
7162
|
};
|
|
7184
|
-
/** The API routes repeat these paths as literals, and a test keeps them equal. */
|
|
7185
7163
|
export declare const FACELESS_QUOTE_PATH = "/v1/skills/make_faceless/quote";
|
|
7186
7164
|
export declare const FACELESS_RUN_PATH = "/v1/skills/make_faceless/run";
|
|
7187
|
-
/** Flat form of `makeFacelessInput` for MCP, which needs an object shape, not a union. */
|
|
7188
|
-
/** Clients still parse with `makeFacelessInput` before sending, so the union stays the contract. */
|
|
7189
7165
|
export declare const offeredFacelessInputShape: {
|
|
7190
7166
|
input_mode: z.ZodEnum<{
|
|
7191
7167
|
brief: "brief";
|
|
@@ -7267,8 +7243,6 @@ export declare const offeredFacelessInputShape: {
|
|
|
7267
7243
|
}, z.core.$strict>>;
|
|
7268
7244
|
propose: z.ZodOptional<z.ZodLiteral<false>>;
|
|
7269
7245
|
};
|
|
7270
|
-
/** The flat form as a tool input: an undeclared key is refused at the tool boundary, */
|
|
7271
|
-
/** a field refused by name with its registry reason. */
|
|
7272
7246
|
export declare const offeredFacelessInput: z.ZodObject<{
|
|
7273
7247
|
input_mode: z.ZodEnum<{
|
|
7274
7248
|
brief: "brief";
|
package/dist/faceless-public.js
CHANGED
|
@@ -41,28 +41,23 @@ export const facelessCustomerSceneImage = z.object({
|
|
|
41
41
|
anchor: facelessSceneAnchor,
|
|
42
42
|
}).strict();
|
|
43
43
|
const customIssue = "custom";
|
|
44
|
-
/** Cut transitions of a new run: every scene change, or the one nearest each anchor's first word. */
|
|
45
44
|
const transitionLook = z.enum(FACELESS_TRANSITION_LOOKS);
|
|
46
45
|
const scriptTransitions = z.strictObject({
|
|
47
46
|
look: transitionLook,
|
|
48
47
|
at: z.union([z.literal("scene_changes"), z.array(z.strictObject({ anchor: facelessSceneAnchor })).min(1).max(100)]).default("scene_changes"),
|
|
49
48
|
});
|
|
50
|
-
// A brief's narration is written by the run, so no word of it can be named in advance.
|
|
51
49
|
const briefTransitions = z.strictObject({
|
|
52
50
|
look: transitionLook,
|
|
53
51
|
at: z.literal("scene_changes", { error: "transitions.at word anchors need input_mode script; a brief takes \"scene_changes\"" })
|
|
54
52
|
.default("scene_changes"),
|
|
55
53
|
});
|
|
56
|
-
/** A brief that names no transitions gets a flash on every scene change at admission (#1067); `false` keeps plain cuts. */
|
|
57
54
|
export const FACELESS_BRIEF_DEFAULT_TRANSITIONS = Object.freeze({ look: "flash", at: "scene_changes" });
|
|
58
|
-
/** `false` or the object; a union names no branch on its own, so the refusal carries the object's first issue with its path. */
|
|
59
55
|
const orPlainCuts = (schema) => z.union([z.literal(false), schema], { error: issue => {
|
|
60
56
|
if (issue.input === null || typeof issue.input !== "object" || Array.isArray(issue.input))
|
|
61
57
|
return "transitions is false (plain cuts) or { look, at }";
|
|
62
58
|
const inner = schema.safeParse(issue.input).error?.issues[0];
|
|
63
59
|
return inner && `${["transitions", ...inner.path.map(String)].join(".")}: ${inner.message}`;
|
|
64
60
|
} });
|
|
65
|
-
/** Sound refusals against the look the run draws: a brief without the field draws the default flash. */
|
|
66
61
|
function refuseSounds(input, context) {
|
|
67
62
|
const look = input.transitions === undefined && input.input_mode === "brief" ? FACELESS_BRIEF_DEFAULT_TRANSITIONS.look
|
|
68
63
|
: input.transitions ? input.transitions.look : undefined;
|
|
@@ -75,51 +70,39 @@ export const FACELESS_EXPLAINER_BRIEF_REFUSAL = "format explainer needs input_mo
|
|
|
75
70
|
const common = {
|
|
76
71
|
duration_seconds: z.number().min(FACELESS_MIN_SELECTED_SECONDS).max(FACELESS_MAX_SELECTED_SECONDS).refine((seconds) => Number.isInteger(seconds * 25), "duration_seconds must align to a 25 fps frame boundary"),
|
|
77
72
|
style_reference: qualifiedImageUrl.optional(),
|
|
78
|
-
// Described here once: the MCP shape and OpenAPI both read this schema (#1359).
|
|
79
73
|
character_reference: qualifiedImageUrl.optional()
|
|
80
74
|
.describe("A picture of a person or figure: a public https image, or a picture you uploaded or saved in your assets. Standard format: the figure is in every picture we generate and in the opening clip; " +
|
|
81
75
|
"your own scene_images are shown as they are. Format explainer: the figure is the hero, a person's photo drawn as a cartoon unless " +
|
|
82
76
|
"character_details ask for a photoreal look."),
|
|
83
77
|
character_details: z.string().trim().min(1).max(2000).optional(),
|
|
84
|
-
/** A saved mascot of this account (#1257) the explainer's hero is drawn from: its poses are not made again, and the quote shows none. */
|
|
85
78
|
mascot_id: assetId.optional(),
|
|
86
79
|
scene_images: z.array(facelessCustomerSceneImage).max(60).optional(),
|
|
87
80
|
captions: z.boolean().default(true),
|
|
88
|
-
// A name form only: the server checks the name, so the list grows without a client release.
|
|
89
81
|
voice: z.string({ error: "voice must be a voice name from list_voices, as a string" })
|
|
90
82
|
.regex(VOICE_NAME_PATTERN, "voice is not a voice name: take one from list_voices with skill=make_faceless")
|
|
91
83
|
.optional(),
|
|
92
84
|
voice_id: z.never({ error: FACELESS_REJECTED_FIELDS.voice_id.message }).optional(),
|
|
93
|
-
// Opt-in, so a run that never asked keeps its silent scene changes (rule 3).
|
|
94
85
|
edit_sounds: z.boolean().optional(),
|
|
95
86
|
template_sounds: facelessTemplateSounds.optional(),
|
|
96
87
|
music: musicRequest.optional(),
|
|
97
|
-
// A style dresses the captions, templates and scenes over the pictures (#1123); its spans sit on a script's words.
|
|
98
88
|
motion_style: motionStyle.optional(),
|
|
99
89
|
format: z.enum(FACELESS_FORMATS).optional(),
|
|
100
90
|
tier: z.enum(EXPLAINER_TIERS).optional(),
|
|
101
|
-
// No .default(): admission pins it, and a stored run without it is read as the 1080p it was rendered at (#911).
|
|
102
91
|
resolution: offeredResolution.optional().describe("Output resolution: 720p (720x1280) or 1080p (1080x1920). Omitted means 720p. " +
|
|
103
92
|
"The price does not depend on it."),
|
|
104
93
|
max_credits: maxCreditsField,
|
|
105
|
-
// make_ugc's scene (#1491); its posture is the main character's.
|
|
106
94
|
scene: sceneBible.optional(),
|
|
107
|
-
// quote_faceless's scene proposal (#1491), as on make_ugc: admission expands an accepted one into the fields above.
|
|
108
95
|
proposal: facelessSceneProposalAccept.optional(),
|
|
109
96
|
propose: facelessProposeField,
|
|
110
97
|
};
|
|
111
|
-
/** The frame a faceless run delivers: 720 by 1280 when admission pinned 720p (#911), else the 1080 by 1920 of every earlier run and every revision. */
|
|
112
98
|
export function facelessRunFrame(storedInput) {
|
|
113
99
|
const resolution = storedInput !== null && typeof storedInput === "object" ? storedInput.resolution : undefined;
|
|
114
100
|
return resolution === "720p" ? { width: 720, height: 1280 } : { width: 1080, height: 1920 };
|
|
115
101
|
}
|
|
116
|
-
/** The explainer (#1216) draws its own scene on every phrase, so the fields that place pictures, clips or graphics have no room in it. */
|
|
117
102
|
export const EXPLAINER_OWN_FIELDS = ["style_reference", "transitions", "templates", "shots", "scenes", "moves", "motion_style", "music"];
|
|
118
103
|
export const explainerOwnFieldMessage = (field) => `format explainer draws its own scenes; omit ${field}`;
|
|
119
|
-
/** An explainer places at most this many of the customer's product pictures, each on its own words (#1322). */
|
|
120
104
|
export const EXPLAINER_MAX_PRODUCT_PICTURES = 3;
|
|
121
105
|
export const EXPLAINER_PRODUCT_PICTURES_REFUSAL = `format explainer places at most ${EXPLAINER_MAX_PRODUCT_PICTURES} of your pictures`;
|
|
122
|
-
/** Why an explainer's pictures cannot be placed: too many, or words of the script none or more than one of them names alone. */
|
|
123
106
|
export function explainerPictureRefusals(script, images) {
|
|
124
107
|
if (!Array.isArray(images) || typeof script !== "string")
|
|
125
108
|
return [];
|
|
@@ -143,7 +126,6 @@ export function explainerPictureRefusals(script, images) {
|
|
|
143
126
|
}
|
|
144
127
|
return [];
|
|
145
128
|
}
|
|
146
|
-
/** What an explainer request may not carry: a brief, a field the explainer draws itself, or pictures it cannot place. */
|
|
147
129
|
export function explainerFieldRefusals(input) {
|
|
148
130
|
if (input.format !== "explainer")
|
|
149
131
|
return [];
|
|
@@ -151,7 +133,6 @@ export function explainerFieldRefusals(input) {
|
|
|
151
133
|
...EXPLAINER_OWN_FIELDS.filter(field => input[field] !== undefined).map(field => ({ path: [field], message: explainerOwnFieldMessage(field) })),
|
|
152
134
|
...explainerPictureRefusals(input.script, input.scene_images)];
|
|
153
135
|
}
|
|
154
|
-
/** A mascot is the explainer's hero already made: it needs the format, and it replaces a character the run would draw. */
|
|
155
136
|
export function mascotFieldRefusals(input) {
|
|
156
137
|
if (input.mascot_id === undefined)
|
|
157
138
|
return [];
|
|
@@ -161,37 +142,28 @@ export function mascotFieldRefusals(input) {
|
|
|
161
142
|
.map(field => ({ path: [field], message: `mascot_id is the hero already made; omit ${field}` })),
|
|
162
143
|
];
|
|
163
144
|
}
|
|
164
|
-
/** A tier picks the explainer's level, or a directed video's (#1573), so it means nothing on another run. */
|
|
165
145
|
export const EXPLAINER_TIER_REFUSAL = "tier needs format explainer: it picks the explainer's level";
|
|
166
146
|
function refuseExplainerFields(input, context) {
|
|
167
147
|
for (const { path, message } of [...explainerFieldRefusals(input), ...mascotFieldRefusals(input)])
|
|
168
148
|
context.addIssue({ code: customIssue, path, message });
|
|
169
149
|
}
|
|
170
|
-
/** The schema takes `tier` on any format; admission refuses it before any reserve unless the run is an explainer or directed. */
|
|
171
150
|
export function facelessTierRefusal(input, directed) {
|
|
172
151
|
return input.tier !== undefined && input.format !== "explainer" && !directed ? EXPLAINER_TIER_REFUSAL : null;
|
|
173
152
|
}
|
|
174
|
-
/** A directed run's level: `standard` unless asked, so the cheaper level is never a surprise. */
|
|
175
153
|
export function directedFacelessTier(input) {
|
|
176
154
|
return input.tier ?? "standard";
|
|
177
155
|
}
|
|
178
|
-
/** Server-only: admission freezes a directed video's level and how the caller's pictures may be placed (#1573): `none` without pictures,
|
|
179
|
-
* `keep` on their anchors, `by_meaning` where one plainly shows another sentence. A public body naming it is refused as an unknown field. */
|
|
180
156
|
export const facelessDirectedMark = z.strictObject({ version: z.literal(1), tier: z.enum(EXPLAINER_TIERS),
|
|
181
157
|
pairing: z.enum(["none", "keep", "by_meaning"]) });
|
|
182
|
-
/** The line a faceless quote and run name when a style has nothing to dress: captions off and no templates or scenes (#1123). */
|
|
183
158
|
export function facelessMotionStyleWarnings(input) {
|
|
184
159
|
return motionStyleAsked(input) && !motionStyleHasCanvas({ ...input, captions: input.captions !== false }) ? [MOTION_STYLE_UNUSED_WARNING] : [];
|
|
185
160
|
}
|
|
186
|
-
/** Templates over the pictures (#1113): kinds on the script's words; a slot may show the account's own picture or clip (asset_id), as on make_ugc.
|
|
187
|
-
* A cover or a backdrop stands the subject of the picture under its words in front (#1438); a series item without a clip shows that picture. */
|
|
188
161
|
function refuseTemplates(input, context) {
|
|
189
162
|
if (!input.templates)
|
|
190
163
|
return;
|
|
191
164
|
for (const { path, message } of templateRefusals({ script: input.script, templates: input.templates, aspect_ratio: "9:16" })) {
|
|
192
165
|
context.addIssue({ code: customIssue, path, message });
|
|
193
166
|
}
|
|
194
|
-
// A cover or a backdrop is behind the cut-out switch here too, refused by value before any reserve (#1438).
|
|
195
167
|
if (isPresenterMatteEnabled())
|
|
196
168
|
return;
|
|
197
169
|
input.templates.forEach((item, index) => {
|
|
@@ -199,13 +171,11 @@ function refuseTemplates(input, context) {
|
|
|
199
171
|
context.addIssue({ code: customIssue, path: ["templates", index, "kind"], message: PRESENTER_MATTE_DISABLED_MESSAGE });
|
|
200
172
|
});
|
|
201
173
|
}
|
|
202
|
-
/** Action shots (#1113): a moving clip from the picture under the named words, on those words, instead of the still. */
|
|
203
174
|
export const facelessActionShot = z.strictObject({
|
|
204
175
|
id: z.string().trim().min(1).max(64),
|
|
205
176
|
anchor: facelessSceneAnchor,
|
|
206
177
|
action: z.string().trim().min(1).max(1500),
|
|
207
178
|
transition: z.enum(FACELESS_SHOT_TRANSITIONS).optional(),
|
|
208
|
-
/** An image asset of this account (rights_confirmed) the clip starts from, in place of a picture the run draws; that picture is not charged. */
|
|
209
179
|
asset_id: assetId.optional(),
|
|
210
180
|
});
|
|
211
181
|
export const FACELESS_SHOTS_BRIEF_REFUSAL = "shots need input_mode script: they sit on the narration's words";
|
|
@@ -219,9 +189,7 @@ const scriptShape = { ...common,
|
|
|
219
189
|
shots: z.array(facelessActionShot).min(1).max(FACELESS_MAX_SHOTS, `at most ${FACELESS_MAX_SHOTS} shots a video`).optional(),
|
|
220
190
|
scenes: z.array(ugcScene).min(1).max(MAX_SCENES).optional(),
|
|
221
191
|
moves: z.array(ugcMove).min(1).max(MAX_MOVES).optional(),
|
|
222
|
-
// make_ugc's field (#1228): the narration's pauses are cut before its words are timed, so everything drawn on them follows the cut.
|
|
223
192
|
pause_trim: z.union([z.literal(false), pauseTrim]).optional(),
|
|
224
|
-
// #1573: true pins every scene image to its anchor; otherwise a picture that plainly shows another sentence may move there, named in warnings[].
|
|
225
193
|
keep_anchors: z.boolean().optional(),
|
|
226
194
|
};
|
|
227
195
|
const scriptBase = z.object(scriptShape).strict();
|
|
@@ -231,7 +199,6 @@ function refineScript(input, context) {
|
|
|
231
199
|
refuseTemplates(input, context);
|
|
232
200
|
for (const { path, message } of moveRefusals({ script: input.script, moves: input.moves }))
|
|
233
201
|
context.addIssue({ code: customIssue, path, message });
|
|
234
|
-
// Scenes sit on the script's words as on make_ugc and share the templates' ids (#1113).
|
|
235
202
|
for (const { path, message } of sceneRefusals({ script: input.script, scenes: input.scenes, templates: input.templates }, { presenter: false })) {
|
|
236
203
|
context.addIssue({ code: customIssue, path, message });
|
|
237
204
|
}
|
|
@@ -256,14 +223,10 @@ function refineScript(input, context) {
|
|
|
256
223
|
}
|
|
257
224
|
}
|
|
258
225
|
const scriptInput = scriptBase.superRefine(refineScript);
|
|
259
|
-
/** What a run stores for a script: the request plus the assets admission pinned for it, which a public body never carries. */
|
|
260
226
|
const storedScriptInput = z.object({ ...scriptShape,
|
|
261
227
|
insert_assets: z.array(pinnedInsertAsset).min(1).max(MAX_TEMPLATE_MEDIA + FACELESS_MAX_SHOTS).optional(),
|
|
262
|
-
/** The mascot a run reuses, as admission read it (#1257). */
|
|
263
228
|
mascot: pinnedMascot.optional(),
|
|
264
|
-
/** What the workflow method the run was launched from requires of its film (#1461). */
|
|
265
229
|
workflow_directions: filmDirections.optional(),
|
|
266
|
-
/** Set when admission froze the scene director for the run (#1491). */
|
|
267
230
|
scene_direction: sceneDirectionMark.optional(),
|
|
268
231
|
directed: facelessDirectedMark.optional(),
|
|
269
232
|
}).strict().superRefine(refineScript);
|
|
@@ -271,7 +234,6 @@ const briefShape = { ...common,
|
|
|
271
234
|
input_mode: z.literal("brief"),
|
|
272
235
|
brief: z.string().trim().min(1).max(10_000),
|
|
273
236
|
transitions: orPlainCuts(briefTransitions).optional(),
|
|
274
|
-
// A brief's narration is written by the run, so no template can name its words.
|
|
275
237
|
templates: z.never({ error: "templates need input_mode script: they sit on the narration's words" }).optional(),
|
|
276
238
|
shots: z.never({ error: FACELESS_SHOTS_BRIEF_REFUSAL }).optional(),
|
|
277
239
|
scenes: z.never({ error: "scenes need input_mode script: they sit on the narration's words" }).optional(),
|
|
@@ -290,16 +252,12 @@ const briefInput = z.object(briefShape).strict().superRefine(refineBrief);
|
|
|
290
252
|
const storedBriefInput = z.object({ ...briefShape, scene_direction: sceneDirectionMark.optional(), directed: facelessDirectedMark.optional() })
|
|
291
253
|
.strict().superRefine(refineBrief);
|
|
292
254
|
export const makeFacelessInput = z.discriminatedUnion("input_mode", [scriptInput, briefInput]);
|
|
293
|
-
/** The stored input of a revision: the request as resolved, and what admission froze about it. */
|
|
294
255
|
export const facelessRevisionInput = z.strictObject({
|
|
295
256
|
input_mode: z.literal("revision"),
|
|
296
257
|
revision: z.strictObject({ source_run_id: runId, document: editDocument }),
|
|
297
258
|
resolved_revision: z.strictObject({ root_run_id: runId, own_images: z.boolean(), summary: editSummaryWire, billing: revisionBilling }),
|
|
298
259
|
});
|
|
299
|
-
/** What a `make_faceless` run stores as its input: a generate request or a revision. */
|
|
300
260
|
export const facelessStoredInput = z.discriminatedUnion("input_mode", [storedScriptInput, storedBriefInput, facelessRevisionInput]);
|
|
301
|
-
/** Admission and the run validate accepted input without canonicalizing its narration again. */
|
|
302
|
-
/** A brief's default flash is frozen here, so the stored input names what the video draws; a stored input is read as stored. */
|
|
303
261
|
export function parseFacelessInputPreservingScript(input) {
|
|
304
262
|
const parsed = makeFacelessInput.parse(input);
|
|
305
263
|
if (parsed.input_mode === "script")
|
|
@@ -310,29 +268,22 @@ export function parseFacelessStoredInputPreservingScript(input) {
|
|
|
310
268
|
const parsed = facelessStoredInput.parse(input);
|
|
311
269
|
return parsed.input_mode === "script" ? { ...parsed, script: input.script } : parsed;
|
|
312
270
|
}
|
|
313
|
-
/** A request's quote: what the quote shows and admission reserves, read from the same fields by the same call. */
|
|
314
|
-
/** `explainerBeats`: an explainer's drawn scenes are on, so the quote holds them. `explainerFilm`: the explainer is priced as one drawn film. */
|
|
315
271
|
export function quoteFacelessInput(input, options = {}) {
|
|
316
272
|
const character = !!(input.character_reference || input.character_details);
|
|
317
|
-
// A drawn film with no character and no mascot draws a hero that fits its script, priced as a named character's poses.
|
|
318
273
|
const filmHero = character || !(input.input_mode === "script" && input.mascot_id);
|
|
319
274
|
return quoteFaceless({ outputFrames: input.duration_seconds * 25, captions: input.captions, music: input.music,
|
|
320
275
|
shots: input.input_mode === "script" ? input.shots?.length ?? 0 : 0, scenes: input.input_mode === "script" ? input.scenes?.length ?? 0 : 0,
|
|
321
276
|
...(input.format !== "explainer" ? {} : options.explainerFilm ? { explainer: { character: filmHero, film: options.explainerFilm } } : { explainer: { character,
|
|
322
277
|
...(options.explainerBeats ? { beats: true } : {}), ...(input.input_mode === "script" ? { objects: explainerObjectCeiling(input.script) } : {}) } }) });
|
|
323
278
|
}
|
|
324
|
-
/** Both levels' totals for one explainer request (#1291 F4), each as admission would reserve it on that level; the quote names the chosen one. */
|
|
325
279
|
export function explainerTierTotals(input) {
|
|
326
280
|
const total = (tier) => quoteFacelessInput(input, { explainerFilm: EXPLAINER_TIER_TARIFFS[tier] }).totalCredits;
|
|
327
281
|
return { tier: input.tier ?? "standard", standard: total("standard"), pro: total("pro") };
|
|
328
282
|
}
|
|
329
283
|
const tierFilm = (tier) => SKILL_FILM_TARIFFS[EXPLAINER_TIER_TARIFFS[tier]];
|
|
330
284
|
const tierPrice = (tier) => `${tierFilm(tier).filmCredits} credits for a film up to ${EXPLAINER_FILM_INCLUDED_SECONDS} s plus ${tierFilm(tier).perExtraSecond} each second over`;
|
|
331
|
-
/** The API routes repeat these paths as literals, and a test keeps them equal. */
|
|
332
285
|
export const FACELESS_QUOTE_PATH = "/v1/skills/make_faceless/quote";
|
|
333
286
|
export const FACELESS_RUN_PATH = "/v1/skills/make_faceless/run";
|
|
334
|
-
/** Flat form of `makeFacelessInput` for MCP, which needs an object shape, not a union. */
|
|
335
|
-
/** Clients still parse with `makeFacelessInput` before sending, so the union stays the contract. */
|
|
336
287
|
export const offeredFacelessInputShape = {
|
|
337
288
|
input_mode: z.enum(["script", "brief"])
|
|
338
289
|
.describe("'script' narrates your exact text; 'brief' writes the narration from a short description. Send exactly one of script or brief, matching this mode."),
|
|
@@ -358,10 +309,8 @@ export const offeredFacelessInputShape = {
|
|
|
358
309
|
.describe("Flash or light leak on the cuts, with its sound: every scene change, or the one nearest each anchor (script only). " +
|
|
359
310
|
"Omitted on a brief: a flash on every scene change; false for plain cuts. No extra charge."),
|
|
360
311
|
edit_sounds: common.edit_sounds.describe("A low sound on every scene change, its peak on the cut; template_sounds.edit picks it. Price unchanged."),
|
|
361
|
-
// The slim form keeps tools/list small; the client parses with makeFacelessInput, which checks beats and names.
|
|
362
312
|
template_sounds: mcpTemplateSounds.optional().describe("false for no sounds, or { flash, whoosh (light leak), edit: name } from list_template_sounds."),
|
|
363
313
|
music: common.music.describe(MUSIC_DESCRIPTION),
|
|
364
|
-
// No shape here keeps tools/list small: the items are make_ugc's, which the client and the server check strictly.
|
|
365
314
|
templates: z.unknown().optional().describe("Script only: as make_ugc, a slot may show your image or video asset (asset_id, rights_confirmed). Free."),
|
|
366
315
|
shots: z.unknown().optional().describe(`Script only: 1-${FACELESS_MAX_SHOTS} {id, anchor, action, asset_id?}, 5 s max each.`),
|
|
367
316
|
scenes: z.unknown().optional().describe("Script only: as make_ugc scenes."),
|
|
@@ -379,7 +328,6 @@ export const offeredFacelessInputShape = {
|
|
|
379
328
|
"Other formats, where your account has the two levels: 'standard' (default) is your story in pictures that move, with captions and " +
|
|
380
329
|
"sound and about a third of it live; 'pro' plays every shot as live footage. quote_faceless names both totals in tiers. " +
|
|
381
330
|
"Elsewhere tier is refused."),
|
|
382
|
-
// No shape here keeps tools/list small, as for templates: the field is make_ugc's, which the client and the server check strictly.
|
|
383
331
|
pause_trim: z.unknown().optional().describe("Script only: as make_ugc pause_trim, same default with templates, scenes, shots or format explainer."),
|
|
384
332
|
keep_anchors: scriptInput.shape.keep_anchors.describe("Script only, with scene_images. true keeps each picture on the words you anchored it to. " +
|
|
385
333
|
"Omitted or false: a picture that plainly shows another sentence of the script may be shown on that sentence instead; warnings[] names " +
|
|
@@ -398,8 +346,6 @@ export const offeredFacelessInputShape = {
|
|
|
398
346
|
const rejectedFacelessField = (key) => Object.hasOwn(FACELESS_REJECTED_FIELDS, key)
|
|
399
347
|
? FACELESS_REJECTED_FIELDS[key].message
|
|
400
348
|
: undefined;
|
|
401
|
-
/** The flat form as a tool input: an undeclared key is refused at the tool boundary, */
|
|
402
|
-
/** a field refused by name with its registry reason. */
|
|
403
349
|
export const offeredFacelessInput = z.strictObject(offeredFacelessInputShape, {
|
|
404
350
|
error: (issue) => issue.code === "unrecognized_keys"
|
|
405
351
|
? issue.keys.map((key) => rejectedFacelessField(key) ?? `"${key}" is not a field of this tool`).join("; ")
|
|
@@ -418,15 +364,10 @@ export const facelessPlannerInput = z.object({
|
|
|
418
364
|
}).strict();
|
|
419
365
|
export const facelessQuoteResponse = facelessQuote.extend({
|
|
420
366
|
skill: z.literal("make_faceless"),
|
|
421
|
-
/** Whether the script suits the explainer format, with the reason, and a rewrite into actions when it does not. */
|
|
422
367
|
explainer_fit: z.strictObject({ fits: z.boolean(), reason: z.string(), rewrite: z.string().optional() }).optional(),
|
|
423
|
-
/** An explainer's two levels on the same request: each one's total, and the level `totalCredits` is for. */
|
|
424
368
|
explainer_tiers: z.strictObject({ tier: z.enum(EXPLAINER_TIERS), standard: z.number().int().positive(), pro: z.number().int().positive() }).optional(),
|
|
425
|
-
/** The two levels of a video that has them, on the same request and `max_credits`: each one's total, and the level `totalCredits` is for. */
|
|
426
369
|
tiers: z.strictObject({ tier: z.enum(EXPLAINER_TIERS), standard: z.number().int().positive(), pro: z.number().int().positive() }).optional(),
|
|
427
|
-
/** The scene the quote proposes and its options with their prices (#1491); absent where the quote proposes none. */
|
|
428
370
|
scene_proposal: sceneProposal.optional(),
|
|
429
371
|
warnings: z.array(z.string()).default([]),
|
|
430
372
|
contract_version: z.string().min(1),
|
|
431
373
|
}).strict();
|
|
432
|
-
//# sourceMappingURL=faceless-public.js.map
|
|
@@ -94,4 +94,3 @@ export function planStoryboardFrames(input, words, narrationStartFrame) {
|
|
|
94
94
|
reason: candidate.rejection ?? `unselected ${candidate.reason} boundary under timing and image budget constraints`,
|
|
95
95
|
}]), imageBudget: storyboardImageBudget(imageCount, 2) };
|
|
96
96
|
}
|
|
97
|
-
//# sourceMappingURL=faceless-storyboard-timing.js.map
|
|
@@ -28,8 +28,6 @@ export type StoryboardV2FramePlan = {
|
|
|
28
28
|
cutReason?: string;
|
|
29
29
|
score: Score;
|
|
30
30
|
}>;
|
|
31
|
-
/** Rejected scores are local incoming-edge estimates, not alternate complete-path scores.
|
|
32
|
-
* Null pacePenalty/net means no feasible incoming edge was reachable. */
|
|
33
31
|
rejectedCandidates: Array<{
|
|
34
32
|
afterWord: number;
|
|
35
33
|
frame: number;
|
|
@@ -54,8 +52,6 @@ declare const semantic: {
|
|
|
54
52
|
readonly action: 3;
|
|
55
53
|
readonly emphasis: 1;
|
|
56
54
|
};
|
|
57
|
-
/** Shared semantic objective; duration feasibility belongs to each profile. */
|
|
58
|
-
/** `overPenalty` prices a second above the pace band; a second below it always costs the base penalty. */
|
|
59
55
|
export declare function facelessCutScore(reason: keyof typeof semantic | null, duration: number, range: {
|
|
60
56
|
p25: number | null;
|
|
61
57
|
p75: number | null;
|
|
@@ -5,8 +5,6 @@ const CUT_COST = 2;
|
|
|
5
5
|
const PACE_PENALTY = 0.25;
|
|
6
6
|
const OUTPUT_FRAMES = 1522;
|
|
7
7
|
const FPS = 25;
|
|
8
|
-
/** Shared semantic objective; duration feasibility belongs to each profile. */
|
|
9
|
-
/** `overPenalty` prices a second above the pace band; a second below it always costs the base penalty. */
|
|
10
8
|
export function facelessCutScore(reason, duration, range, overPenalty = PACE_PENALTY) {
|
|
11
9
|
const value = reason === null ? 0 : semantic[reason];
|
|
12
10
|
const cost = reason === null ? 0 : CUT_COST;
|
|
@@ -142,4 +140,3 @@ export function planStoryboardV2(input, words, narrationStartFrame, style) {
|
|
|
142
140
|
scoreBreakdown: { semanticValue: best.semantic, cutCost: best.cutCost,
|
|
143
141
|
pacePenalty: best.pacePenalty, total: best.total, cuts: best.cuts } };
|
|
144
142
|
}
|
|
145
|
-
//# sourceMappingURL=faceless-storyboard-v2-timing.js.map
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import type { Gender } from "./default-actor.js";
|
|
2
2
|
import type { CatalogLanguage } from "./voice-catalog.js";
|
|
3
|
-
/** Our label for the speech model that reads `make_faceless` narration. Not a `tts_model`: `make_ugc` does not speak it. */
|
|
4
3
|
export declare const FACELESS_SPEECH_MODEL = "narrator-v1";
|
|
5
|
-
/** A narration voice of `make_faceless` by OUR name; our service holds its measured pace. */
|
|
6
4
|
export interface FacelessVoice {
|
|
7
5
|
language: CatalogLanguage;
|
|
8
6
|
gender: Gender;
|
|
9
7
|
description: string;
|
|
10
8
|
}
|
|
11
|
-
/** The voices `make_faceless` speaks, each measured live. Every name starts */
|
|
12
|
-
/** with `narrator_`, which no preset, model voice or catalog slug does. */
|
|
13
9
|
export declare const FACELESS_VOICES: {
|
|
14
10
|
readonly narrator_en_wise_lady: {
|
|
15
11
|
readonly language: "en";
|
|
@@ -114,36 +110,24 @@ export declare const FACELESS_VOICES: {
|
|
|
114
110
|
};
|
|
115
111
|
export type FacelessVoiceName = keyof typeof FACELESS_VOICES;
|
|
116
112
|
export declare const FACELESS_VOICE_NAMES: [FacelessVoiceName, ...FacelessVoiceName[]];
|
|
117
|
-
/** The voice a run speaks when it names none; an explainer speaks the fastest voice of its script's language instead (#1216). */
|
|
118
113
|
export declare const DEFAULT_FACELESS_VOICE = "narrator_en_wise_lady";
|
|
119
114
|
export declare function isFacelessVoiceName(name: string): name is FacelessVoiceName;
|
|
120
|
-
/** Whole-take words per second of the voices measured live. A voice absent here is unmeasured. */
|
|
121
115
|
export declare const FACELESS_MEASURED_WORDS_PER_SECOND: Partial<Record<FacelessVoiceName, number>>;
|
|
122
|
-
/** Whole-take characters per second, spaces included, of the same voices. Words vary in length, so a script's length is */
|
|
123
|
-
/** estimated on its characters where the voice has this measure. */
|
|
124
116
|
export declare const FACELESS_MEASURED_CHARACTERS_PER_SECOND: Partial<Record<FacelessVoiceName, number>>;
|
|
125
|
-
/** The voice a run speaks when it names none: an explainer's script is read by the fastest measured voice of its language,
|
|
126
|
-
* every other format and a language without a measured voice by the default. */
|
|
127
117
|
export declare function facelessDefaultVoiceName(input: {
|
|
128
118
|
format?: string | undefined;
|
|
129
119
|
script?: string | undefined;
|
|
130
120
|
} | undefined): FacelessVoiceName;
|
|
131
|
-
/** The words per second a script's length is estimated at: the measured pace of the voice that will speak it (the named one, else the default for
|
|
132
|
-
* the format and the script's language), the flat estimate when that voice is unmeasured or reads another alphabet than the script. */
|
|
133
121
|
export declare function facelessSpeechWordsPerSecond(input: {
|
|
134
122
|
voice?: string | undefined;
|
|
135
123
|
format?: string | undefined;
|
|
136
124
|
script: string;
|
|
137
125
|
}): number;
|
|
138
|
-
/** A faceless script's estimated narration length in seconds: its characters at the voice's measured rate, else its words at the */
|
|
139
|
-
/** voice's pace; an estimate, as `estimateDurationSec` is. */
|
|
140
126
|
export declare function facelessEstimatedSeconds(input: {
|
|
141
127
|
voice?: string | undefined;
|
|
142
128
|
format?: string | undefined;
|
|
143
129
|
script: string;
|
|
144
130
|
}): number;
|
|
145
|
-
/** Fires only for a voice the client named. A script is judged by the alphabet most of its letters say; a brief */
|
|
146
|
-
/** only when it holds no letter of the voice's alphabet, since it may ask for another language. */
|
|
147
131
|
export declare function buildFacelessVoiceWarnings(input: {
|
|
148
132
|
voice?: string | undefined;
|
|
149
133
|
script?: string | undefined;
|
package/dist/faceless-voices.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { scriptLanguageOf } from "./caption-language.js";
|
|
2
2
|
import { countWords, estimateWordsPerSecond } from "./pacing.js";
|
|
3
3
|
import { detectScriptFamily, scriptLetterCounts } from "./voices.js";
|
|
4
|
-
/** Our label for the speech model that reads `make_faceless` narration. Not a `tts_model`: `make_ugc` does not speak it. */
|
|
5
4
|
export const FACELESS_SPEECH_MODEL = "narrator-v1";
|
|
6
|
-
/** The voices `make_faceless` speaks, each measured live. Every name starts */
|
|
7
|
-
/** with `narrator_`, which no preset, model voice or catalog slug does. */
|
|
8
5
|
export const FACELESS_VOICES = {
|
|
9
6
|
narrator_en_wise_lady: { language: "en", gender: "female", description: "Wise, genial middle-aged woman with a British accent" },
|
|
10
7
|
narrator_en_kind_girl: { language: "en", gender: "female", description: "Kind, calm young woman with an American accent" },
|
|
@@ -28,26 +25,20 @@ export const FACELESS_VOICES = {
|
|
|
28
25
|
narrator_tr_mature_man: { language: "tr", gender: "male", description: "Deep, mature, soft-spoken man for social video (Turkish)" },
|
|
29
26
|
};
|
|
30
27
|
export const FACELESS_VOICE_NAMES = Object.keys(FACELESS_VOICES);
|
|
31
|
-
/** The voice a run speaks when it names none; an explainer speaks the fastest voice of its script's language instead (#1216). */
|
|
32
28
|
export const DEFAULT_FACELESS_VOICE = "narrator_en_wise_lady";
|
|
33
29
|
export function isFacelessVoiceName(name) {
|
|
34
30
|
return Object.hasOwn(FACELESS_VOICES, name);
|
|
35
31
|
}
|
|
36
|
-
/** Whole-take words per second of the voices measured live. A voice absent here is unmeasured. */
|
|
37
32
|
export const FACELESS_MEASURED_WORDS_PER_SECOND = {
|
|
38
33
|
narrator_en_wise_lady: 3.095, narrator_en_kind_girl: 3.125, narrator_en_firm_lady: 3.074, narrator_en_gentle_man: 3.324,
|
|
39
34
|
narrator_en_deep_gentleman: 3.119, narrator_en_storyteller: 2.848, narrator_en_brisk_man: 3.606,
|
|
40
35
|
narrator_tr_confident_woman: 2.418, narrator_tr_mature_man: 2.277,
|
|
41
36
|
};
|
|
42
|
-
/** Whole-take characters per second, spaces included, of the same voices. Words vary in length, so a script's length is */
|
|
43
|
-
/** estimated on its characters where the voice has this measure. */
|
|
44
37
|
export const FACELESS_MEASURED_CHARACTERS_PER_SECOND = {
|
|
45
38
|
narrator_en_wise_lady: 15.115, narrator_en_kind_girl: 15.262, narrator_en_firm_lady: 15.011, narrator_en_gentle_man: 16.232,
|
|
46
39
|
narrator_en_deep_gentleman: 15.229, narrator_en_storyteller: 13.908, narrator_en_brisk_man: 17.608,
|
|
47
40
|
narrator_tr_confident_woman: 16.05, narrator_tr_mature_man: 15.118,
|
|
48
41
|
};
|
|
49
|
-
/** The voice a run speaks when it names none: an explainer's script is read by the fastest measured voice of its language,
|
|
50
|
-
* every other format and a language without a measured voice by the default. */
|
|
51
42
|
export function facelessDefaultVoiceName(input) {
|
|
52
43
|
if (input?.format !== "explainer" || input.script === undefined)
|
|
53
44
|
return DEFAULT_FACELESS_VOICE;
|
|
@@ -62,26 +53,20 @@ export function facelessDefaultVoiceName(input) {
|
|
|
62
53
|
}
|
|
63
54
|
return fastest ?? DEFAULT_FACELESS_VOICE;
|
|
64
55
|
}
|
|
65
|
-
/** The words per second a script's length is estimated at: the measured pace of the voice that will speak it (the named one, else the default for
|
|
66
|
-
* the format and the script's language), the flat estimate when that voice is unmeasured or reads another alphabet than the script. */
|
|
67
56
|
export function facelessSpeechWordsPerSecond(input) {
|
|
68
57
|
const voice = measuredSpeaker(input);
|
|
69
58
|
return (voice ? FACELESS_MEASURED_WORDS_PER_SECOND[voice] : undefined) ?? estimateWordsPerSecond(input.script);
|
|
70
59
|
}
|
|
71
|
-
/** The voice that will speak `input`, when its measures apply: none when it reads another alphabet than the script. */
|
|
72
60
|
function measuredSpeaker(input) {
|
|
73
61
|
const voice = input.voice !== undefined && isFacelessVoiceName(input.voice) ? input.voice : facelessDefaultVoiceName(input);
|
|
74
62
|
const alphabet = detectScriptFamily(input.script);
|
|
75
63
|
return alphabet === "neutral" || alphabet === VOICE_LANGUAGE[FACELESS_VOICES[voice].language].alphabet ? voice : undefined;
|
|
76
64
|
}
|
|
77
|
-
/** A faceless script's estimated narration length in seconds: its characters at the voice's measured rate, else its words at the */
|
|
78
|
-
/** voice's pace; an estimate, as `estimateDurationSec` is. */
|
|
79
65
|
export function facelessEstimatedSeconds(input) {
|
|
80
66
|
const voice = measuredSpeaker(input), perSecond = voice ? FACELESS_MEASURED_CHARACTERS_PER_SECOND[voice] : undefined;
|
|
81
67
|
const seconds = perSecond ? Array.from(input.script.trim()).length / perSecond : countWords(input.script) / facelessSpeechWordsPerSecond(input);
|
|
82
68
|
return Math.max(1, Math.round(seconds));
|
|
83
69
|
}
|
|
84
|
-
/** How a warning names each offered language, and its alphabet; a language without a row does not compile. */
|
|
85
70
|
const VOICE_LANGUAGE = {
|
|
86
71
|
en: { voice: "an English voice", alphabet: "latin" },
|
|
87
72
|
ru: { voice: "a Russian voice", alphabet: "cyrillic" },
|
|
@@ -93,8 +78,6 @@ const VOICE_LANGUAGE = {
|
|
|
93
78
|
};
|
|
94
79
|
const ALPHABET_LETTERS = { cyrillic: "Cyrillic letters", latin: "Latin letters" };
|
|
95
80
|
const LIST_HINT = "list_voices with skill=make_faceless names the voices of each language";
|
|
96
|
-
/** Fires only for a voice the client named. A script is judged by the alphabet most of its letters say; a brief */
|
|
97
|
-
/** only when it holds no letter of the voice's alphabet, since it may ask for another language. */
|
|
98
81
|
export function buildFacelessVoiceWarnings(input) {
|
|
99
82
|
if (input.voice === undefined || !isFacelessVoiceName(input.voice))
|
|
100
83
|
return [];
|
|
@@ -121,4 +104,3 @@ export function buildFacelessVoiceWarnings(input) {
|
|
|
121
104
|
`a brief may ask for the narration's language in words; ${LIST_HINT}`,
|
|
122
105
|
];
|
|
123
106
|
}
|
|
124
|
-
//# sourceMappingURL=faceless-voices.js.map
|
package/dist/feedback.d.ts
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** Feedback from an agent (#941): a missing capability or a confusing answer, filed instead of rephrasing and giving up. */
|
|
3
|
-
/** Free; it lands in the same queue a person's support request does, under the key's account. */
|
|
4
2
|
export declare const FEEDBACK_PATH = "/v1/feedback";
|
|
5
3
|
export declare const FEEDBACK_KINDS: readonly ["missing_capability", "confusing", "wrong_result", "slow"];
|
|
6
4
|
export type FeedbackKind = (typeof FEEDBACK_KINDS)[number];
|
|
7
5
|
export declare const FEEDBACK_TEXT_MAX_CHARS = 2000;
|
|
8
|
-
/** New feedback per account per hour; a resend of the same feedback answers the first one and is not counted. */
|
|
9
6
|
export declare const FEEDBACK_PER_HOUR = 20;
|
|
10
7
|
export declare const FEEDBACK_WINDOW_SECONDS = 3600;
|
|
11
|
-
/** How long the same kind, text and run answer the feedback already filed instead of filing it again. */
|
|
12
8
|
export declare const FEEDBACK_REPLAY_WINDOW_SECONDS: number;
|
|
13
9
|
export declare const feedbackRequest: z.ZodObject<{
|
|
14
10
|
kind: z.ZodEnum<{
|
package/dist/feedback.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { runId } from "./runs.js";
|
|
3
|
-
/** Feedback from an agent (#941): a missing capability or a confusing answer, filed instead of rephrasing and giving up. */
|
|
4
|
-
/** Free; it lands in the same queue a person's support request does, under the key's account. */
|
|
5
3
|
export const FEEDBACK_PATH = "/v1/feedback";
|
|
6
4
|
export const FEEDBACK_KINDS = ["missing_capability", "confusing", "wrong_result", "slow"];
|
|
7
5
|
export const FEEDBACK_TEXT_MAX_CHARS = 2000;
|
|
8
|
-
/** New feedback per account per hour; a resend of the same feedback answers the first one and is not counted. */
|
|
9
6
|
export const FEEDBACK_PER_HOUR = 20;
|
|
10
7
|
export const FEEDBACK_WINDOW_SECONDS = 3600;
|
|
11
|
-
/** How long the same kind, text and run answer the feedback already filed instead of filing it again. */
|
|
12
8
|
export const FEEDBACK_REPLAY_WINDOW_SECONDS = 24 * 3600;
|
|
13
9
|
export const feedbackRequest = z.strictObject({
|
|
14
10
|
kind: z.enum(FEEDBACK_KINDS).describe("missing_capability: no tool does what the user asked; confusing: an answer or description was unclear; " +
|
|
@@ -27,4 +23,3 @@ export const SEND_FEEDBACK_DESCRIPTION = "Tell Clipwright what is missing or wro
|
|
|
27
23
|
"We read every one; when we reply, get_account lists the reply under support_replies with this feedback_id. " +
|
|
28
24
|
"Free, spends nothing. Sending the same kind, text and run again within 24 hours answers the same " +
|
|
29
25
|
`feedback_id. ${FEEDBACK_PER_HOUR} per hour per account.`;
|
|
30
|
-
//# sourceMappingURL=feedback.js.map
|