@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
package/dist/errors.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { EDIT_ISSUE_CODES } from "./edit-validate.js";
|
|
3
3
|
import { workflowCommandError } from "./contracts/v1/workflow-execution.js";
|
|
4
|
-
// Imported only for the 429 codes in the registry below: the names come from their
|
|
5
|
-
// schemas, not literals (`rate-limit.ts` is the only home of the 429 shape).
|
|
6
4
|
import { actorCreationLimitedError, rateLimitedError } from "./rate-limit.js";
|
|
7
|
-
// Refusal bodies are built through schemas, not handler literals: a 402 carries numbers the
|
|
8
|
-
// agent acts on. Numbers sit INSIDE `error`, since an error response has one envelope.
|
|
9
|
-
/** The generic error envelope. Tolerates extra fields inside `error`: the typed refusals */
|
|
10
|
-
/** below extend it, and generic parsing must not break when a code brings numbers. */
|
|
11
5
|
export const apiError = z.object({
|
|
12
6
|
error: z.object({
|
|
13
7
|
code: z.string().min(1),
|
|
@@ -17,25 +11,19 @@ export const apiError = z.object({
|
|
|
17
11
|
export function workflowCommandErrorBody(args) {
|
|
18
12
|
return workflowCommandError.parse({ error: args });
|
|
19
13
|
}
|
|
20
|
-
/** Fewer credits on the balance than the run weighs: "top up". */
|
|
21
14
|
export const insufficientCreditsError = z.object({
|
|
22
15
|
error: z.object({
|
|
23
16
|
code: z.literal("insufficient_credits"),
|
|
24
17
|
message: z.string().min(1),
|
|
25
|
-
/** What the balance holds NOW. Zero is a legal value. */
|
|
26
18
|
balance_credits: z.number().int().nonnegative(),
|
|
27
|
-
/** What this run needs: the same estimate `quote` returned. */
|
|
28
19
|
required_credits: z.number().int().positive(),
|
|
29
20
|
}),
|
|
30
21
|
});
|
|
31
|
-
/** The call's reserve is above the `max_credits` it was sent with (#942): nothing was reserved or started. */
|
|
32
22
|
export const maxCreditsExceededError = z.object({
|
|
33
23
|
error: z.object({
|
|
34
24
|
code: z.literal("max_credits_exceeded"),
|
|
35
25
|
message: z.string().min(1),
|
|
36
|
-
/** The most this run could be charged: the same total its quote names. */
|
|
37
26
|
hold_credits: z.number().int().positive(),
|
|
38
|
-
/** The ceiling the call was sent with. */
|
|
39
27
|
max_credits: z.number().int().nonnegative(),
|
|
40
28
|
}),
|
|
41
29
|
});
|
|
@@ -51,8 +39,6 @@ export function maxCreditsExceededBody(args) {
|
|
|
51
39
|
},
|
|
52
40
|
});
|
|
53
41
|
}
|
|
54
|
-
/** The account carries an unpaid debt. A separate code because an indebted account may */
|
|
55
|
-
/** still hold a balance, so "insufficient credits" would be false. Buying credits clears it. */
|
|
56
42
|
export const debtOutstandingError = z.object({
|
|
57
43
|
error: z.object({
|
|
58
44
|
code: z.literal("debt_outstanding"),
|
|
@@ -60,16 +46,12 @@ export const debtOutstandingError = z.object({
|
|
|
60
46
|
debt_credits: z.number().int().positive(),
|
|
61
47
|
}),
|
|
62
48
|
});
|
|
63
|
-
/** Account not admitted to the beta; money does not change that, so it has its own code. */
|
|
64
|
-
/** Terminal; the body names no timeline, since a revoked account answers the same way. */
|
|
65
49
|
export const accountNotAdmittedError = z.object({
|
|
66
50
|
error: z.object({
|
|
67
51
|
code: z.literal("account_not_admitted"),
|
|
68
52
|
message: z.string().min(1),
|
|
69
53
|
}),
|
|
70
54
|
});
|
|
71
|
-
/** Builds the "not enough credits" body. The wording lives here so every place that */
|
|
72
|
-
/** answers 402 explains the refusal the same way. */
|
|
73
55
|
export function insufficientCreditsBody(args) {
|
|
74
56
|
return insufficientCreditsError.parse({
|
|
75
57
|
error: {
|
|
@@ -81,13 +63,11 @@ export function insufficientCreditsBody(args) {
|
|
|
81
63
|
},
|
|
82
64
|
});
|
|
83
65
|
}
|
|
84
|
-
/** One "needs / has / short" sentence for the 402 refusal and the `quote` warning. */
|
|
85
66
|
export function creditsNeededSentence(args) {
|
|
86
67
|
const short = args.requiredCredits - args.balanceCredits;
|
|
87
68
|
return (`This run needs ${args.requiredCredits} credits, the account has ${args.balanceCredits}` +
|
|
88
69
|
(short > 0 ? ` (${short} short).` : "."));
|
|
89
70
|
}
|
|
90
|
-
/** `quote` warning: `make_ugc` with the same input will get this refusal. */
|
|
91
71
|
export function insufficientCreditsWarning(args) {
|
|
92
72
|
return (`${creditsNeededSentence(args)} make_ugc will be refused with insufficient_credits ` +
|
|
93
73
|
"until the account buys credits.");
|
|
@@ -100,7 +80,6 @@ export function accountNotAdmittedWarning() {
|
|
|
100
80
|
return ("This account is not admitted to the beta; make_ugc will be refused with " +
|
|
101
81
|
"account_not_admitted, and buying credits does not change that.");
|
|
102
82
|
}
|
|
103
|
-
/** Builds the "not admitted to the beta" body; see the wording rule above. */
|
|
104
83
|
export function accountNotAdmittedBody() {
|
|
105
84
|
return accountNotAdmittedError.parse({
|
|
106
85
|
error: {
|
|
@@ -110,7 +89,6 @@ export function accountNotAdmittedBody() {
|
|
|
110
89
|
},
|
|
111
90
|
});
|
|
112
91
|
}
|
|
113
|
-
/** Builds the "outstanding debt" body; see the wording rule above. */
|
|
114
92
|
export function debtOutstandingBody(args) {
|
|
115
93
|
return debtOutstandingError.parse({
|
|
116
94
|
error: {
|
|
@@ -123,8 +101,6 @@ export function debtOutstandingBody(args) {
|
|
|
123
101
|
},
|
|
124
102
|
});
|
|
125
103
|
}
|
|
126
|
-
/** The input holds a field the product rejects. `fields` names them: the agent cannot */
|
|
127
|
-
/** fix anything until it knows which one to drop. */
|
|
128
104
|
export const rejectedFieldError = z.object({
|
|
129
105
|
error: z.object({
|
|
130
106
|
code: z.literal("rejected_field"),
|
|
@@ -132,7 +108,6 @@ export const rejectedFieldError = z.object({
|
|
|
132
108
|
fields: z.array(z.string().min(1)).min(1),
|
|
133
109
|
}),
|
|
134
110
|
});
|
|
135
|
-
/** Builds the "field rejected" body. The reason comes from the disposition registry. */
|
|
136
111
|
export function rejectedFieldBody(hits) {
|
|
137
112
|
return rejectedFieldError.parse({
|
|
138
113
|
error: {
|
|
@@ -142,8 +117,6 @@ export function rejectedFieldBody(hits) {
|
|
|
142
117
|
},
|
|
143
118
|
});
|
|
144
119
|
}
|
|
145
|
-
/** A key outside the contract. The schema strips such keys silently, so a misspelled */
|
|
146
|
-
/** `aspectRatio` became the 9:16 default without a trace; hence a refusal. */
|
|
147
120
|
export const unknownFieldError = z.object({
|
|
148
121
|
error: z.object({
|
|
149
122
|
code: z.literal("unknown_field"),
|
|
@@ -151,7 +124,6 @@ export const unknownFieldError = z.object({
|
|
|
151
124
|
fields: z.array(z.string()).min(1),
|
|
152
125
|
}),
|
|
153
126
|
});
|
|
154
|
-
/** Builds the "unknown key" body: each name, a suggestion and the accepted fields. */
|
|
155
127
|
export function unknownFieldBody(hits, acceptedFields) {
|
|
156
128
|
const named = hits.map((hit) => hit.suggestion === undefined
|
|
157
129
|
? `unknown field "${hit.field}"`
|
|
@@ -165,7 +137,6 @@ export function unknownFieldBody(hits, acceptedFields) {
|
|
|
165
137
|
},
|
|
166
138
|
});
|
|
167
139
|
}
|
|
168
|
-
/** Text arrived with lost bytes: a replacement character in a string leaf of the input. */
|
|
169
140
|
export const scriptEncodingLostError = z.object({
|
|
170
141
|
error: z.object({
|
|
171
142
|
code: z.literal("script_encoding_lost"),
|
|
@@ -173,14 +144,8 @@ export const scriptEncodingLostError = z.object({
|
|
|
173
144
|
fields: z.array(z.string().min(1)).min(1),
|
|
174
145
|
}),
|
|
175
146
|
});
|
|
176
|
-
/** As many paths as `invalid_request` shows: a long list is unreadable, a silently */
|
|
177
|
-
/** shortened one lies, so the rest is given as a number. */
|
|
178
147
|
const MAX_LISTED_PATHS = 12;
|
|
179
|
-
/** An empty path means the root itself is corrupt (a string instead of an object). The */
|
|
180
|
-
/** schema requires a non-empty name, so the root gets a label. */
|
|
181
148
|
const ROOT_PATH_LABEL = "(root)";
|
|
182
|
-
/** Builds the "encoding lost" body. Takes BOTH numbers of the predicate, so the caller */
|
|
183
|
-
/** does not choose where the character count comes from. */
|
|
184
149
|
export function scriptEncodingLostBody(args) {
|
|
185
150
|
const named = args.paths.map((path) => (path === "" ? ROOT_PATH_LABEL : path));
|
|
186
151
|
const listed = named.slice(0, MAX_LISTED_PATHS);
|
|
@@ -198,7 +163,6 @@ export function scriptEncodingLostBody(args) {
|
|
|
198
163
|
},
|
|
199
164
|
});
|
|
200
165
|
}
|
|
201
|
-
/** A save of a draft lost to a newer one: `version` is what is stored now, 0 when nothing is. */
|
|
202
166
|
export const editConflictError = z.object({
|
|
203
167
|
error: z.object({
|
|
204
168
|
code: z.literal("edit_conflict"),
|
|
@@ -206,7 +170,6 @@ export const editConflictError = z.object({
|
|
|
206
170
|
version: z.number().int().nonnegative(),
|
|
207
171
|
}),
|
|
208
172
|
});
|
|
209
|
-
/** Builds the "the draft moved on" body. Nothing was stored. */
|
|
210
173
|
export function editConflictBody(args) {
|
|
211
174
|
return editConflictError.parse({
|
|
212
175
|
error: {
|
|
@@ -217,7 +180,6 @@ export function editConflictBody(args) {
|
|
|
217
180
|
},
|
|
218
181
|
});
|
|
219
182
|
}
|
|
220
|
-
/** The run has no draft to read or to save: `state` and `reason` are the ones its shots state. */
|
|
221
183
|
export const runNotEditableError = z.object({
|
|
222
184
|
error: z.object({
|
|
223
185
|
code: z.literal("run_not_editable"),
|
|
@@ -226,7 +188,6 @@ export const runNotEditableError = z.object({
|
|
|
226
188
|
reason: z.string().min(1).nullable(),
|
|
227
189
|
}),
|
|
228
190
|
});
|
|
229
|
-
/** Builds the "this run cannot be edited" body. Nothing was stored. */
|
|
230
191
|
export function runNotEditableBody(args) {
|
|
231
192
|
return runNotEditableError.parse({
|
|
232
193
|
error: {
|
|
@@ -238,7 +199,6 @@ export function runNotEditableBody(args) {
|
|
|
238
199
|
},
|
|
239
200
|
});
|
|
240
201
|
}
|
|
241
|
-
/** Paid edits are closed: the flag is off, or a ceiling is not set yet. */
|
|
242
202
|
export const editingDisabledError = z.object({
|
|
243
203
|
error: z.object({
|
|
244
204
|
code: z.literal("editing_disabled"),
|
|
@@ -255,7 +215,6 @@ export function editingDisabledBody(args) {
|
|
|
255
215
|
},
|
|
256
216
|
});
|
|
257
217
|
}
|
|
258
|
-
/** A paid edit has no price: each seam still unset is named, and an empty list is a revision total of zero no rule allows. */
|
|
259
218
|
export const editingNotPricedError = z.object({
|
|
260
219
|
error: z.object({
|
|
261
220
|
code: z.literal("editing_not_priced"),
|
|
@@ -273,7 +232,6 @@ export function editingNotPricedBody(args) {
|
|
|
273
232
|
},
|
|
274
233
|
});
|
|
275
234
|
}
|
|
276
|
-
/** The document breaks the rules of the run it edits; `issues` are the validator's, in its order. */
|
|
277
235
|
export const editInvalidError = z.object({
|
|
278
236
|
error: z.object({
|
|
279
237
|
code: z.literal("edit_invalid"),
|
|
@@ -295,7 +253,6 @@ export function editInvalidBody(args) {
|
|
|
295
253
|
},
|
|
296
254
|
});
|
|
297
255
|
}
|
|
298
|
-
/** A root has as many revisions (or candidates) running, or failed and unfinished, as it may have; `run_ids` are the ones counted. */
|
|
299
256
|
export const editCeilingReachedError = z.object({
|
|
300
257
|
error: z.object({
|
|
301
258
|
code: z.literal("edit_ceiling_reached"),
|
|
@@ -317,19 +274,13 @@ export function editCeilingReachedBody(args, counting = "revision") {
|
|
|
317
274
|
},
|
|
318
275
|
});
|
|
319
276
|
}
|
|
320
|
-
/** Keeps the tool description's promise ("refused before any charge"): an unusable */
|
|
321
|
-
/** source is refused, not estimated. */
|
|
322
277
|
export function unusableSourceMessage(errorClass, detail) {
|
|
323
278
|
return (`image cannot be used: ${detail} (${errorClass}). It is refused before any charge, so ` +
|
|
324
279
|
"no credits were reserved and no run was created. Fix the url, or send the file through " +
|
|
325
280
|
"upload_image (POST /v1/uploads) and pass the url it returns.");
|
|
326
281
|
}
|
|
327
|
-
/** Says both "fix the input" and "a retry will not help": on a 500 agents re-sent bytes */
|
|
328
|
-
/** that would never parse. */
|
|
329
282
|
export const MALFORMED_BODY_MESSAGE = "the request body is not valid JSON, so no field of it was read. Send a JSON object as the body " +
|
|
330
283
|
"and check the quoting of whatever built it. The same bytes will fail the same way on a retry.";
|
|
331
|
-
/** Codes with a bare envelope, in one registry: the published list of error codes is */
|
|
332
|
-
/** declared exhaustive. */
|
|
333
284
|
const BARE_ERROR_CODES = [
|
|
334
285
|
"analysis_enqueue_failed",
|
|
335
286
|
"aspect_conflict",
|
|
@@ -409,8 +360,6 @@ const BARE_ERROR_CODES = [
|
|
|
409
360
|
"url_fetch_refused",
|
|
410
361
|
"url_import_disabled",
|
|
411
362
|
];
|
|
412
|
-
/** EVERY code the API can return: bare plus typed. Typed values come from their schemas, */
|
|
413
|
-
/** so a rename reaches here on its own. */
|
|
414
363
|
export const API_ERROR_CODES = [
|
|
415
364
|
...BARE_ERROR_CODES,
|
|
416
365
|
...workflowCommandError.shape.error.shape.code.options,
|
|
@@ -430,9 +379,6 @@ export const API_ERROR_CODES = [
|
|
|
430
379
|
rateLimitedError.shape.error.shape.code.value,
|
|
431
380
|
actorCreationLimitedError.shape.error.shape.code.value,
|
|
432
381
|
];
|
|
433
|
-
/** A bare refusal body. The only path to one: a code outside the registry does not */
|
|
434
|
-
/** compile, and an envelope built around this function fails the envelope guard test. */
|
|
435
382
|
export function apiErrorBody(args) {
|
|
436
383
|
return apiError.parse({ error: { code: args.code, message: args.message } });
|
|
437
384
|
}
|
|
438
|
-
//# sourceMappingURL=errors.js.map
|
package/dist/explainer-fit.d.ts
CHANGED
|
@@ -4,9 +4,7 @@ export interface ExplainerFit {
|
|
|
4
4
|
fits: boolean;
|
|
5
5
|
shape: ExplainerFitShape | null;
|
|
6
6
|
misfit: ExplainerMisfit | null;
|
|
7
|
-
/** One sentence for the customer: why it fits, or why not. */
|
|
8
7
|
reason: string;
|
|
9
|
-
/** Present when it does not fit: how to rewrite the text into actions. */
|
|
10
8
|
rewrite?: string;
|
|
11
9
|
}
|
|
12
10
|
export declare const EXPLAINER_FIT_SECONDS: {
|
|
@@ -14,11 +12,6 @@ export declare const EXPLAINER_FIT_SECONDS: {
|
|
|
14
12
|
readonly max: 60;
|
|
15
13
|
};
|
|
16
14
|
export declare const EXPLAINER_REWRITE: string;
|
|
17
|
-
/** The sentences that each name a thing when the script reads as a list of things, else 0 (#1277): what an explainer's object pictures are
|
|
18
|
-
* counted from, so steps through software name none. */
|
|
19
15
|
export declare function namedThings(script: string): number;
|
|
20
|
-
/** Whether `part` of a list `script` has a sentence naming a thing, so its scene shows its own item (#1280); false when the script is no list. */
|
|
21
16
|
export declare function namesListItem(script: string, part: string): boolean;
|
|
22
|
-
/** The explainer format's fit for a script: the shape it takes when it fits, else the misfit and a rewrite into actions. `wordsPerSecond` is the pace
|
|
23
|
-
* of the voice that will speak it, default the format's flat 2.5. */
|
|
24
17
|
export declare function explainerFit(script: string, wordsPerSecond?: number): ExplainerFit;
|
package/dist/explainer-fit.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { scriptLanguageOf } from "./caption-language.js";
|
|
2
2
|
import { namesThing, namingLanguageOf } from "./naming.js";
|
|
3
|
-
/** Narration words a second, the pace the length bounds assume. */
|
|
4
3
|
const WORDS_PER_SECOND = 2.5;
|
|
5
4
|
export const EXPLAINER_FIT_SECONDS = { min: 12, max: 60 };
|
|
6
|
-
/** Word boundaries that hold for every script, not only ASCII. */
|
|
7
5
|
const word = (body, flags = "giu") => new RegExp(`(?<![\\p{L}\\p{N}_])(?:${body})(?![\\p{L}\\p{N}_])`, flags);
|
|
8
6
|
const ORDINALS = word("first(?:ly)?|second(?:ly)?|third(?:ly)?|fourth|fifth|then|next|after that|finally|last(?:ly)?|step \\d+|step (?:one|two|three|four|five)" +
|
|
9
7
|
"|перв(?:ый|ое|ая|ым)|втор(?:ой|ое|ая)|трет(?:ий|ье|ья)|четв[её]рт\\p{L}*|пят(?:ый|ое)|затем|потом|дальше|наконец|шаг \\d+");
|
|
@@ -22,26 +20,19 @@ const PAST = word("\\p{L}{3,}ed|was|were|had|went|came|saw|met|told|took|got|bec
|
|
|
22
20
|
const count = (re, text) => [...text.matchAll(re)].length;
|
|
23
21
|
export const EXPLAINER_REWRITE = "Rewrite it as actions: a hook (everyone does X, nobody shows how, here's how), three to five steps that each name " +
|
|
24
22
|
"a thing to show (a screen, a button, a file, a number), and one result line; 20 to 45 seconds, one narrator.";
|
|
25
|
-
/** A list needs at least this many naming sentences, and this share of all sentences, so an essay with a few "that's a ..." stays an argument. */
|
|
26
23
|
const LIST_MIN_NAMING = 4, LIST_MIN_SHARE = 0.4;
|
|
27
24
|
const sentencesOf = (text) => text.split(/(?<=[.!?])\s+|\n+/u).filter(part => /\p{L}/u.test(part));
|
|
28
|
-
/** The sentences that each name a thing when the script reads as a list of things, else 0 (#1277): what an explainer's object pictures are
|
|
29
|
-
* counted from, so steps through software name none. */
|
|
30
25
|
export function namedThings(script) {
|
|
31
|
-
// A sentence names a thing by its language's rules (#1284): "it's a heart", "it's cold brew", tr "bir servo motor var", "Soğutma fanı, …".
|
|
32
26
|
const language = namingLanguageOf(script, scriptLanguageOf(script));
|
|
33
27
|
const sentences = sentencesOf(script.trim()), naming = sentences.filter(part => namesThing(part, language)).length;
|
|
34
28
|
return naming >= LIST_MIN_NAMING && naming >= LIST_MIN_SHARE * sentences.length ? naming : 0;
|
|
35
29
|
}
|
|
36
|
-
/** Whether `part` of a list `script` has a sentence naming a thing, so its scene shows its own item (#1280); false when the script is no list. */
|
|
37
30
|
export function namesListItem(script, part) {
|
|
38
31
|
if (namedThings(script) === 0)
|
|
39
32
|
return false;
|
|
40
33
|
const language = namingLanguageOf(script, scriptLanguageOf(script));
|
|
41
34
|
return sentencesOf(part.trim()).some(sentence => namesThing(sentence, language));
|
|
42
35
|
}
|
|
43
|
-
/** The explainer format's fit for a script: the shape it takes when it fits, else the misfit and a rewrite into actions. `wordsPerSecond` is the pace
|
|
44
|
-
* of the voice that will speak it, default the format's flat 2.5. */
|
|
45
36
|
export function explainerFit(script, wordsPerSecond = WORDS_PER_SECOND) {
|
|
46
37
|
const text = script.trim(), words = text.split(/\s+/).filter(Boolean).length, seconds = words / wordsPerSecond;
|
|
47
38
|
const named = namedThings(text) > 0;
|
|
@@ -71,4 +62,3 @@ export function explainerFit(script, wordsPerSecond = WORDS_PER_SECOND) {
|
|
|
71
62
|
: "A walkthrough of concrete actions: each action gets a drawn screen, cursor or typed line on its words.";
|
|
72
63
|
return { fits: true, shape, misfit: null, reason };
|
|
73
64
|
}
|
|
74
|
-
//# sourceMappingURL=explainer-fit.js.map
|
package/dist/face-billing.d.ts
CHANGED
|
@@ -4,21 +4,16 @@ export declare const faceBillingIntervalSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
4
4
|
startFrame: z.ZodNumber;
|
|
5
5
|
endFrame: z.ZodNumber;
|
|
6
6
|
}, z.core.$strict>>;
|
|
7
|
-
/** The engines that render a presenter take; each has its own presenter-second price under a parts tariff (#800). */
|
|
8
7
|
export declare const PRESENTER_ENGINES: readonly ["heygen", "omnihuman"];
|
|
9
8
|
export type PresenterEngine = (typeof PRESENTER_ENGINES)[number];
|
|
10
9
|
export declare const presenterRatesSchema: z.ZodReadonly<z.ZodObject<{
|
|
11
10
|
heygen: z.ZodNumber;
|
|
12
11
|
omnihuman: z.ZodNumber;
|
|
13
12
|
}, z.core.$strict>>;
|
|
14
|
-
/** Live-shot engines (#1103): talking_action and action; silent shots on Gemini Omni 1.2 (#1535) and Seedance 2.5 (#1539 C4), each also */
|
|
15
|
-
/** with no text in frame (`_no_text`) at its own second. */
|
|
16
13
|
export declare const SHOT_ENGINES: readonly ["shot_talking_action", "shot_action", "shot_omni", "shot_seedance", "shot_omni_no_text", "shot_seedance_no_text"];
|
|
17
14
|
export type ShotEngine = (typeof SHOT_ENGINES)[number];
|
|
18
|
-
/** Every engine a face unit may be charged at. */
|
|
19
15
|
export declare const TAKE_ENGINES: readonly ["heygen", "omnihuman", "shot_talking_action", "shot_action", "shot_omni", "shot_seedance", "shot_omni_no_text", "shot_seedance_no_text"];
|
|
20
16
|
export type TakeEngine = (typeof TAKE_ENGINES)[number];
|
|
21
|
-
/** The model engines are absent on every snapshot admitted before them, which then prices no such shot. */
|
|
22
17
|
export declare const shotRatesSchema: z.ZodReadonly<z.ZodObject<{
|
|
23
18
|
shot_talking_action: z.ZodNumber;
|
|
24
19
|
shot_action: z.ZodNumber;
|
|
@@ -27,12 +22,9 @@ export declare const shotRatesSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
27
22
|
shot_omni_no_text: z.ZodOptional<z.ZodNumber>;
|
|
28
23
|
shot_seedance_no_text: z.ZodOptional<z.ZodNumber>;
|
|
29
24
|
}, z.core.$strict>>;
|
|
30
|
-
/** The model a live shot's unit was frozen to draw on (#1535); absent is the shot kind's own engine. */
|
|
31
25
|
export declare const SHOT_MODELS: readonly ["omni", "seedance", "omni_no_text", "seedance_no_text"];
|
|
32
26
|
export type ShotModel = (typeof SHOT_MODELS)[number];
|
|
33
|
-
/** The engine a unit frozen to a model is charged at, whatever route drew it. */
|
|
34
27
|
export declare const SHOT_MODEL_ENGINE: Readonly<Record<ShotModel, ShotEngine>>;
|
|
35
|
-
/** A parts tariff: presenter seconds by engine, plus every second of the video, plus each live-avatar still. */
|
|
36
28
|
export declare const partsFaceTariffSchema: z.ZodReadonly<z.ZodObject<{
|
|
37
29
|
version: z.ZodLiteral<3>;
|
|
38
30
|
pricingVersion: z.ZodString;
|
|
@@ -144,7 +136,6 @@ export declare const faceBillingPlanSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
144
136
|
}, z.core.$strict>>>>;
|
|
145
137
|
hash: z.ZodString;
|
|
146
138
|
}, z.core.$strict>>;
|
|
147
|
-
/** The steps a live shot may be delivered simplified to (#1560). */
|
|
148
139
|
export declare const SIMPLIFIED_STEPS: readonly ["head", "card"];
|
|
149
140
|
export declare const faceBillingAcceptanceSchema: z.ZodReadonly<z.ZodObject<{
|
|
150
141
|
operationId: z.ZodString;
|
package/dist/face-billing.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { LIVE_SHOT_KINDS } from "./live-shot-kinds.js";
|
|
3
|
-
// Internal, closed-mode facts. These schemas do not enable a public input or tariff.
|
|
4
3
|
export const identifier = z.string().min(1).max(200);
|
|
5
4
|
const hash = z.string().regex(/^[a-f0-9]{64}$/);
|
|
6
5
|
const frames = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
@@ -14,35 +13,24 @@ export const faceBillingIntervalSchema = z.object({
|
|
|
14
13
|
const legacyFaceBillingTariffSchema = z.object({
|
|
15
14
|
version: z.literal(1),
|
|
16
15
|
id: identifier,
|
|
17
|
-
// Credits are whole numbers. Fractional rates need a separate policy.
|
|
18
16
|
creditsPerSecond: z.number().int().positive().max(2_147_483_647),
|
|
19
|
-
// An explicit caller choice, not a default.
|
|
20
17
|
rounding: z.literal("ceil_aggregate_seconds"),
|
|
21
18
|
}).strict().readonly();
|
|
22
|
-
/** The engines that render a presenter take; each has its own presenter-second price under a parts tariff (#800). */
|
|
23
19
|
export const PRESENTER_ENGINES = ["heygen", "omnihuman"];
|
|
24
20
|
const tariffCredits = z.number().int().nonnegative().max(2_147_483_647);
|
|
25
21
|
export const presenterRatesSchema = z.object({ heygen: tariffCredits.positive(), omnihuman: tariffCredits.positive() }).strict().readonly();
|
|
26
|
-
/** Live-shot engines (#1103): talking_action and action; silent shots on Gemini Omni 1.2 (#1535) and Seedance 2.5 (#1539 C4), each also */
|
|
27
|
-
/** with no text in frame (`_no_text`) at its own second. */
|
|
28
22
|
export const SHOT_ENGINES = ["shot_talking_action", "shot_action", "shot_omni", "shot_seedance", "shot_omni_no_text", "shot_seedance_no_text"];
|
|
29
|
-
/** Every engine a face unit may be charged at. */
|
|
30
23
|
export const TAKE_ENGINES = [...PRESENTER_ENGINES, ...SHOT_ENGINES];
|
|
31
|
-
/** The model engines are absent on every snapshot admitted before them, which then prices no such shot. */
|
|
32
24
|
export const shotRatesSchema = z.object({ shot_talking_action: tariffCredits.positive(), shot_action: tariffCredits.positive(),
|
|
33
25
|
shot_omni: tariffCredits.positive().optional(), shot_seedance: tariffCredits.positive().optional(),
|
|
34
26
|
shot_omni_no_text: tariffCredits.positive().optional(), shot_seedance_no_text: tariffCredits.positive().optional() }).strict().readonly();
|
|
35
|
-
/** The model a live shot's unit was frozen to draw on (#1535); absent is the shot kind's own engine. */
|
|
36
27
|
export const SHOT_MODELS = ["omni", "seedance", "omni_no_text", "seedance_no_text"];
|
|
37
|
-
/** The engine a unit frozen to a model is charged at, whatever route drew it. */
|
|
38
28
|
export const SHOT_MODEL_ENGINE = Object.freeze({ omni: "shot_omni", seedance: "shot_seedance",
|
|
39
29
|
omni_no_text: "shot_omni_no_text", seedance_no_text: "shot_seedance_no_text" });
|
|
40
|
-
/** A parts tariff: presenter seconds by engine, plus every second of the video, plus each live-avatar still. */
|
|
41
30
|
export const partsFaceTariffSchema = z.object({
|
|
42
31
|
version: z.literal(3),
|
|
43
32
|
pricingVersion: identifier,
|
|
44
33
|
presenterCreditsPerSecond: presenterRatesSchema,
|
|
45
|
-
/** Live-shot seconds by engine (#1103); absent on every snapshot admitted before them, which then prices no shot. */
|
|
46
34
|
shotCreditsPerSecond: shotRatesSchema.optional(),
|
|
47
35
|
productionCreditsPerSecond: tariffCredits,
|
|
48
36
|
liveAvatarStillCredits: tariffCredits,
|
|
@@ -67,11 +55,8 @@ const unitSchema = z.object({
|
|
|
67
55
|
requestHash: hash,
|
|
68
56
|
audioDurationSec: seconds,
|
|
69
57
|
faceIntervals: z.array(faceBillingIntervalSchema).min(1).readonly(),
|
|
70
|
-
/** A unit the video may go without (S4d D8: a live take that fell back): charged only when accepted, never required for delivery. */
|
|
71
58
|
optional: z.literal(true).optional(),
|
|
72
|
-
/** A live shot's kind (#1103), frozen with the plan; absent is the presenter's usual take. Its witness row must agree with it. */
|
|
73
59
|
shot: z.enum(LIVE_SHOT_KINDS).optional(),
|
|
74
|
-
/** A silent shot drawn on Gemini Omni 1.2 (#1535), frozen with the plan: it is charged at `shot_omni`. */
|
|
75
60
|
shotModel: z.enum(SHOT_MODELS).optional(),
|
|
76
61
|
}).strict().readonly();
|
|
77
62
|
const planShape = {
|
|
@@ -79,7 +64,6 @@ const planShape = {
|
|
|
79
64
|
fps: z.number().int().positive().max(Number.MAX_SAFE_INTEGER),
|
|
80
65
|
outputFrames: frames.positive(),
|
|
81
66
|
fullSpeechDurationSec: seconds,
|
|
82
|
-
// Zero-face economics are unresolved; this version cannot represent that product.
|
|
83
67
|
units: z.array(unitSchema).min(1).readonly(),
|
|
84
68
|
};
|
|
85
69
|
function validPlan(plan) {
|
|
@@ -90,7 +74,6 @@ export const faceBillingPlanContentSchema = z.object(planShape).strict()
|
|
|
90
74
|
.refine(validPlan, { message: "plan unit ids must be unique and intervals within output" }).readonly();
|
|
91
75
|
export const faceBillingPlanSchema = z.object({ ...planShape, hash }).strict()
|
|
92
76
|
.refine(validPlan, { message: "plan unit ids must be unique and intervals within output" }).readonly();
|
|
93
|
-
/** The steps a live shot may be delivered simplified to (#1560). */
|
|
94
77
|
export const SIMPLIFIED_STEPS = ["head", "card"];
|
|
95
78
|
export const faceBillingAcceptanceSchema = z.object({
|
|
96
79
|
operationId: identifier,
|
|
@@ -98,7 +81,6 @@ export const faceBillingAcceptanceSchema = z.object({
|
|
|
98
81
|
planHash: hash,
|
|
99
82
|
requestHash: hash,
|
|
100
83
|
providerJobId: identifier,
|
|
101
|
-
/** A live take made from a photo avatar of its still: the avatar's job, witnessed by its paid `live_avatar` operation (#800). */
|
|
102
84
|
liveAvatarJobId: identifier.optional(),
|
|
103
85
|
}).strict().readonly();
|
|
104
86
|
export const faceBillingFactsSchema = z.object({
|
|
@@ -107,12 +89,8 @@ export const faceBillingFactsSchema = z.object({
|
|
|
107
89
|
tariff: faceBillingTariffSchema,
|
|
108
90
|
plan: faceBillingPlanSchema,
|
|
109
91
|
acceptedUnits: z.array(faceBillingAcceptanceSchema).readonly(),
|
|
110
|
-
// Unknown vendor responses stay unresolved until authoritative reconciliation.
|
|
111
92
|
unknownUnitIds: z.array(identifier).readonly(),
|
|
112
|
-
/** Read from the vendor witnesses at settlement, never frozen: the engine each accepted unit's operation was sent to. */
|
|
113
93
|
acceptedEngines: z.record(identifier, z.enum(TAKE_ENGINES)).readonly().optional(),
|
|
114
|
-
/** Read at settlement, never frozen (#1560): a live shot delivered simplified, as the presenter talking (charged as a presenter's */
|
|
115
|
-
/** seconds) or as a still card, whose seconds charge no presenter. */
|
|
116
94
|
simplifiedUnits: z.record(identifier, z.enum(SIMPLIFIED_STEPS)).readonly().optional(),
|
|
117
95
|
}).strict().readonly();
|
|
118
96
|
export const faceBillingOutcomeSchema = z.discriminatedUnion("runState", [
|
|
@@ -128,4 +106,3 @@ export const faceBillingOutcomeSchema = z.discriminatedUnion("runState", [
|
|
|
128
106
|
delivered: z.object({ planHash: hash, outputFrames: frames.positive() }).strict().readonly(),
|
|
129
107
|
}).strict().readonly(),
|
|
130
108
|
]);
|
|
131
|
-
//# sourceMappingURL=face-billing.js.map
|
package/dist/face-delivery.d.ts
CHANGED
package/dist/face-delivery.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
const count = z.number().int().positive().max(Number.MAX_SAFE_INTEGER);
|
|
3
3
|
const digest = z.string().regex(/^[a-f0-9]{64}$/);
|
|
4
|
-
/** Trusted run evidence after probing the file and verifying its persisted bytes. */
|
|
5
4
|
export const faceDeliverySchema = z.object({
|
|
6
5
|
version: z.literal(1), runId: z.string().regex(/^[A-Za-z0-9_-]+$/).max(200),
|
|
7
6
|
accountId: z.string().min(1).max(200), planHash: digest,
|
|
@@ -9,4 +8,3 @@ export const faceDeliverySchema = z.object({
|
|
|
9
8
|
width: count, height: count, fps: count, outputFrames: count, durationSec: z.number().positive().finite(),
|
|
10
9
|
}).strict().refine(value => value.videoKey === `runs/${value.runId}/deliveries/${value.sha256}.mp4` &&
|
|
11
10
|
Math.abs(value.durationSec - value.outputFrames / value.fps) <= 1 / value.fps, { message: "delivery key or measured duration does not match its evidence" }).readonly();
|
|
12
|
-
//# sourceMappingURL=face-delivery.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { FacelessSceneAnchor } from "./faceless-public.js";
|
|
2
|
-
/** How an action shot (#1113) may enter: a plain cut, or one of the looks a faceless cut already draws. */
|
|
3
2
|
export declare const FACELESS_SHOT_TRANSITIONS: readonly ["cut", "flash", "light_leak", "whoosh"];
|
|
4
3
|
export type FacelessShotTransition = (typeof FACELESS_SHOT_TRANSITIONS)[number];
|
|
5
4
|
export type FacelessActionShotInput = {
|
|
@@ -9,9 +8,7 @@ export type FacelessActionShotInput = {
|
|
|
9
8
|
transition?: FacelessShotTransition | undefined;
|
|
10
9
|
asset_id?: string | undefined;
|
|
11
10
|
};
|
|
12
|
-
/** A shot that starts from the account's own image asset reaches the stage as a scene image under this source name, like a picture by link. */
|
|
13
11
|
export declare const facelessAssetSource: (assetId: string) => string;
|
|
14
|
-
/** The scene images of a run as the stage plans them: the customer's own, then one for each shot that starts from an asset. */
|
|
15
12
|
export declare function facelessSceneImagesOf(input: {
|
|
16
13
|
scene_images?: ReadonlyArray<{
|
|
17
14
|
image_url: string;
|
|
@@ -22,17 +19,12 @@ export declare function facelessSceneImagesOf(input: {
|
|
|
22
19
|
image_url: string;
|
|
23
20
|
anchor: FacelessSceneAnchor;
|
|
24
21
|
}>;
|
|
25
|
-
/** A shot on the script's lexical words [first, end), as the planner reads it. */
|
|
26
22
|
export type ResolvedFacelessActionShot = FacelessActionShotInput & {
|
|
27
23
|
first: number;
|
|
28
24
|
end: number;
|
|
29
25
|
};
|
|
30
|
-
/** The look a shot's transition draws on the cut into it; `whoosh` is the light leak, whose sound it is. A cut draws none. */
|
|
31
26
|
export declare function facelessShotTransitionLook(transition: FacelessShotTransition | undefined): "flash" | "light_leak" | undefined;
|
|
32
|
-
/** Each shot's words in the script, in the order asked; throws as the customer anchors do. */
|
|
33
27
|
export declare function resolveFacelessActionShots(script: string, shots: readonly FacelessActionShotInput[]): ResolvedFacelessActionShot[];
|
|
34
|
-
/** What admission refuses before any money: an anchor naming no words, a repeated id, two shots on the same words, */
|
|
35
|
-
/** and a shot on the words of a scene image of the customer's (a shot animates a picture the run draws). */
|
|
36
28
|
export declare function facelessActionShotRefusals(input: {
|
|
37
29
|
script: string;
|
|
38
30
|
shots: readonly FacelessActionShotInput[];
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
import { resolveFacelessCustomerAnchors } from "./faceless-customer-anchors.js";
|
|
2
|
-
/** How an action shot (#1113) may enter: a plain cut, or one of the looks a faceless cut already draws. */
|
|
3
2
|
export const FACELESS_SHOT_TRANSITIONS = ["cut", "flash", "light_leak", "whoosh"];
|
|
4
|
-
/** A shot that starts from the account's own image asset reaches the stage as a scene image under this source name, like a picture by link. */
|
|
5
3
|
export const facelessAssetSource = (assetId) => `asset:${assetId}`;
|
|
6
|
-
/** The scene images of a run as the stage plans them: the customer's own, then one for each shot that starts from an asset. */
|
|
7
4
|
export function facelessSceneImagesOf(input) {
|
|
8
5
|
return [...input.scene_images ?? [], ...(input.shots ?? []).flatMap(shot => shot.asset_id === undefined ? []
|
|
9
6
|
: [{ image_url: facelessAssetSource(shot.asset_id), anchor: shot.anchor }])];
|
|
10
7
|
}
|
|
11
|
-
/** The look a shot's transition draws on the cut into it; `whoosh` is the light leak, whose sound it is. A cut draws none. */
|
|
12
8
|
export function facelessShotTransitionLook(transition) {
|
|
13
9
|
return transition === "flash" ? "flash" : transition === "light_leak" || transition === "whoosh" ? "light_leak" : undefined;
|
|
14
10
|
}
|
|
15
|
-
/** Each shot's words in the script, in the order asked; throws as the customer anchors do. */
|
|
16
11
|
export function resolveFacelessActionShots(script, shots) {
|
|
17
12
|
return shots.map(shot => {
|
|
18
13
|
const [range] = resolveFacelessCustomerAnchors(script, [{ image_url: "", anchor: shot.anchor }]);
|
|
19
14
|
return { ...shot, first: range.first, end: range.end };
|
|
20
15
|
});
|
|
21
16
|
}
|
|
22
|
-
/** What admission refuses before any money: an anchor naming no words, a repeated id, two shots on the same words, */
|
|
23
|
-
/** and a shot on the words of a scene image of the customer's (a shot animates a picture the run draws). */
|
|
24
17
|
export function facelessActionShotRefusals(input) {
|
|
25
18
|
const issues = [];
|
|
26
19
|
const ranges = [];
|
|
@@ -59,4 +52,3 @@ export function facelessActionShotRefusals(input) {
|
|
|
59
52
|
}
|
|
60
53
|
return issues;
|
|
61
54
|
}
|
|
62
|
-
//# sourceMappingURL=faceless-action-shots.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { FacelessCustomerSceneImage } from "./faceless-public.js";
|
|
2
|
-
/** Lexical ranges only; measured speech still decides the frames and supported shot placement. */
|
|
3
2
|
export declare function resolveFacelessCustomerAnchors(script: string, images: readonly FacelessCustomerSceneImage[]): Array<{
|
|
4
3
|
first: number;
|
|
5
4
|
end: number;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { facelessSpeechLexicalWords } from "./faceless-public-plan.js";
|
|
2
|
-
/** Lexical ranges only; measured speech still decides the frames and supported shot placement. */
|
|
3
2
|
export function resolveFacelessCustomerAnchors(script, images) {
|
|
4
3
|
const words = facelessSpeechLexicalWords(script);
|
|
5
4
|
const resolved = images.map(image => {
|
|
@@ -28,4 +27,3 @@ export function resolveFacelessCustomerAnchors(script, images) {
|
|
|
28
27
|
throw new Error("overlapping_customer_anchors");
|
|
29
28
|
return resolved;
|
|
30
29
|
}
|
|
31
|
-
//# sourceMappingURL=faceless-customer-anchors.js.map
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** What a directed faceless video's shots are: moving footage, a picture with a camera move, a held picture, your own picture or a card. */
|
|
3
2
|
export declare const FACELESS_BEAT_KINDS: readonly ["live", "still_move", "static_insert", "customer_image", "card"];
|
|
4
3
|
export declare const FACELESS_SHOT_SIZES: readonly ["ecu", "cu", "mcu", "ms", "mws", "ws", "ews"];
|
|
5
|
-
/** What a quote or a run says about a directed video: each shot's words, kind and size, the seconds of moving footage, the pictures made. */
|
|
6
4
|
export declare const facelessDirectionSummary: z.ZodObject<{
|
|
7
5
|
beats: z.ZodArray<z.ZodObject<{
|
|
8
6
|
words: z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** What a directed faceless video's shots are: moving footage, a picture with a camera move, a held picture, your own picture or a card. */
|
|
3
2
|
export const FACELESS_BEAT_KINDS = ["live", "still_move", "static_insert", "customer_image", "card"];
|
|
4
3
|
export const FACELESS_SHOT_SIZES = ["ecu", "cu", "mcu", "ms", "mws", "ws", "ews"];
|
|
5
4
|
const word = z.number().int().nonnegative().safe();
|
|
6
|
-
/** What a quote or a run says about a directed video: each shot's words, kind and size, the seconds of moving footage, the pictures made. */
|
|
7
5
|
export const facelessDirectionSummary = z.strictObject({
|
|
8
6
|
beats: z.array(z.strictObject({ words: z.tuple([word, word]).nullable(), kind: z.enum(FACELESS_BEAT_KINDS), shot_size: z.enum(FACELESS_SHOT_SIZES) })),
|
|
9
7
|
live_seconds: z.number().nonnegative(), pictures: z.number().int().nonnegative(),
|
|
10
8
|
});
|
|
11
|
-
//# sourceMappingURL=faceless-direction-summary.js.map
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { AssetBinding } from "./contracts/v1/workflow-evidence.js";
|
|
2
|
-
/** Includes the live caption box's stroke/shadow; rendering tests check this bound. */
|
|
3
2
|
export declare const FACELESS_CAPTION_OCCLUSION: Readonly<{
|
|
4
3
|
left: 48;
|
|
5
4
|
top: 1296;
|
|
6
5
|
right: 1032;
|
|
7
6
|
bottom: 1392;
|
|
8
7
|
}>;
|
|
9
|
-
/** The source rectangle must survive every native PAN position, including a swept caption overlap. */
|
|
10
8
|
export declare function protectedFacelessPlacement(source: {
|
|
11
9
|
width: number;
|
|
12
10
|
height: number;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/** Includes the live caption box's stroke/shadow; rendering tests check this bound. */
|
|
2
1
|
export const FACELESS_CAPTION_OCCLUSION = Object.freeze({ left: 48, top: 1296, right: 1032, bottom: 1392 });
|
|
3
|
-
/** The source rectangle must survive every native PAN position, including a swept caption overlap. */
|
|
4
2
|
export function protectedFacelessPlacement(source, area, options) {
|
|
5
3
|
const crop = options.cropBottomPx ?? 0;
|
|
6
4
|
if (![source.width, source.height, area.x, area.y, area.width, area.height, crop].every(Number.isFinite) ||
|
|
@@ -27,4 +25,3 @@ export function protectedFacelessPlacement(source, area, options) {
|
|
|
27
25
|
}
|
|
28
26
|
return { visibleArea: { x, y, width: right - x, height: bottom - y } };
|
|
29
27
|
}
|
|
30
|
-
//# sourceMappingURL=faceless-image-placement.js.map
|
|
@@ -6,7 +6,6 @@ import { DEFAULT_TTS_MODEL, speechTextFor, TTS_MODEL_CHAR_CAP } from "./voices.j
|
|
|
6
6
|
const id = z.string().min(1);
|
|
7
7
|
const suppliedSource = z.strictObject({
|
|
8
8
|
kind: z.literal("supplied"),
|
|
9
|
-
// Offline source eligibility only: remote bytes and geometry remain unqualified.
|
|
10
9
|
url: z.url().max(MAX_URL_LENGTH).refine(url => {
|
|
11
10
|
const source = new URL(url);
|
|
12
11
|
return source.protocol === "https:" && /\.(png|jpe?g)$/i.test(source.pathname);
|
|
@@ -142,4 +141,3 @@ export function quoteFacelessImage(input) {
|
|
|
142
141
|
maxUsdSpend: 0,
|
|
143
142
|
};
|
|
144
143
|
}
|
|
145
|
-
//# sourceMappingURL=faceless-image-qualification.js.map
|