@clipwright/core 0.59.0 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account-actors.d.ts +0 -43
- package/dist/account-actors.js +0 -55
- package/dist/account.d.ts +0 -6
- package/dist/account.js +0 -18
- package/dist/actor-bounds.d.ts +0 -5
- package/dist/actor-bounds.js +0 -6
- package/dist/actor-qualities.d.ts +0 -3
- package/dist/actor-qualities.js +0 -4
- package/dist/actors.d.ts +0 -16
- package/dist/actors.js +0 -21
- package/dist/ad-guide.js +0 -2
- package/dist/ad-pause-trim.d.ts +0 -5
- package/dist/ad-pause-trim.js +0 -8
- package/dist/api-failure.d.ts +0 -44
- package/dist/api-failure.js +0 -62
- package/dist/aspect.d.ts +0 -29
- package/dist/aspect.js +1 -34
- package/dist/asset-identity.d.ts +0 -2
- package/dist/asset-identity.js +0 -3
- package/dist/assets.d.ts +0 -34
- package/dist/assets.js +0 -42
- package/dist/billing-terms.d.ts +6 -3
- package/dist/billing-terms.js +0 -4
- package/dist/brand-styles.d.ts +0 -6
- package/dist/brand-styles.js +0 -13
- package/dist/broll-policy.js +0 -1
- package/dist/canvas-fit.d.ts +0 -2
- package/dist/canvas-fit.js +0 -4
- package/dist/caption-funnel.d.ts +0 -2
- package/dist/caption-funnel.js +0 -15
- package/dist/caption-geometry.d.ts +0 -6
- package/dist/caption-geometry.js +0 -10
- package/dist/caption-language.d.ts +0 -3
- package/dist/caption-language.js +0 -6
- package/dist/contract-dispositions.d.ts +0 -61
- package/dist/contract-dispositions.js +3 -96
- package/dist/contracts/v1/workflow-brief.d.ts +61 -3
- package/dist/contracts/v1/workflow-brief.js +0 -13
- package/dist/contracts/v1/workflow-catalog.d.ts +118 -0
- package/dist/contracts/v1/workflow-catalog.js +0 -3
- package/dist/contracts/v1/workflow-client.d.ts +116 -0
- package/dist/contracts/v1/workflow-client.js +0 -1
- package/dist/contracts/v1/workflow-dto.js +0 -1
- package/dist/contracts/v1/workflow-evidence.js +0 -1
- package/dist/contracts/v1/workflow-execution.d.ts +47 -1
- package/dist/contracts/v1/workflow-execution.js +0 -4
- package/dist/contracts/v1/workflow-next.d.ts +13 -2
- package/dist/contracts/v1/workflow-next.js +0 -3
- package/dist/contracts/v1/workflow-plan.d.ts +177 -0
- package/dist/contracts/v1/workflow-plan.js +0 -1
- package/dist/contracts/v1/workflow-primitives.d.ts +0 -1
- package/dist/contracts/v1/workflow-primitives.js +0 -2
- package/dist/contracts/v1/workflow-run-read.d.ts +15 -1
- package/dist/contracts/v1/workflow-run-read.js +0 -3
- package/dist/creator-profile.d.ts +0 -30
- package/dist/creator-profile.js +0 -45
- package/dist/default-actor.js +0 -2
- package/dist/design.d.ts +0 -17
- package/dist/design.js +0 -18
- package/dist/edit-billing.d.ts +0 -6
- package/dist/edit-billing.js +0 -10
- package/dist/edit-candidate.d.ts +0 -6
- package/dist/edit-candidate.js +0 -9
- package/dist/edit-document.d.ts +0 -12
- package/dist/edit-document.js +0 -15
- package/dist/edit-faceless.d.ts +0 -3
- package/dist/edit-faceless.js +0 -4
- package/dist/edit-long-form.d.ts +0 -13
- package/dist/edit-long-form.js +0 -17
- package/dist/edit-operations.d.ts +0 -1
- package/dist/edit-operations.js +0 -2
- package/dist/edit-primitives.d.ts +0 -3
- package/dist/edit-primitives.js +0 -5
- package/dist/edit-revision.d.ts +0 -4
- package/dist/edit-revision.js +0 -6
- package/dist/edit-rules.d.ts +0 -3
- package/dist/edit-rules.js +0 -9
- package/dist/edit-shots.d.ts +45 -5
- package/dist/edit-shots.js +7 -11
- package/dist/edit-validate.d.ts +0 -10
- package/dist/edit-validate.js +0 -14
- package/dist/edit.js +0 -3
- package/dist/endpoint-notes.d.ts +0 -2
- package/dist/endpoint-notes.js +0 -3
- package/dist/endpoints.d.ts +0 -11
- package/dist/endpoints.js +7 -21
- package/dist/errors.d.ts +0 -42
- package/dist/errors.js +0 -54
- package/dist/explainer-fit.d.ts +0 -7
- package/dist/explainer-fit.js +0 -10
- package/dist/face-billing.d.ts +29 -11
- package/dist/face-billing.js +6 -25
- package/dist/face-delivery.d.ts +0 -1
- package/dist/face-delivery.js +0 -2
- package/dist/faceless-action-shots.d.ts +0 -8
- package/dist/faceless-action-shots.js +0 -8
- package/dist/faceless-customer-anchors.d.ts +0 -1
- package/dist/faceless-customer-anchors.js +0 -2
- package/dist/faceless-cut-style.js +0 -1
- package/dist/faceless-direction-summary.d.ts +27 -0
- package/dist/faceless-direction-summary.js +8 -0
- package/dist/faceless-image-placement.d.ts +0 -2
- package/dist/faceless-image-placement.js +0 -3
- package/dist/faceless-image-qualification.js +0 -2
- package/dist/faceless-media-record.d.ts +0 -6
- package/dist/faceless-media-record.js +0 -11
- package/dist/faceless-price.d.ts +40 -35
- package/dist/faceless-price.js +35 -49
- package/dist/faceless-public-plan.d.ts +0 -13
- package/dist/faceless-public-plan.js +0 -11
- package/dist/faceless-public.d.ts +63 -22
- package/dist/faceless-public.js +23 -58
- package/dist/faceless-short-61.js +0 -1
- package/dist/faceless-storyboard-timing.js +0 -1
- package/dist/faceless-storyboard-v2-plan.js +0 -1
- package/dist/faceless-storyboard-v2-timing.d.ts +0 -4
- package/dist/faceless-storyboard-v2-timing.js +0 -3
- package/dist/faceless-storyboard-v2.js +0 -1
- package/dist/faceless-storyboard.js +0 -1
- package/dist/faceless-voices.d.ts +0 -16
- package/dist/faceless-voices.js +0 -18
- package/dist/feedback.d.ts +0 -4
- package/dist/feedback.js +0 -5
- package/dist/film-directions.d.ts +0 -2
- package/dist/film-directions.js +0 -7
- package/dist/film-drafts.d.ts +0 -8
- package/dist/film-drafts.js +0 -19
- package/dist/film-guide.d.ts +0 -3
- package/dist/film-guide.js +0 -6
- package/dist/film-styles.d.ts +0 -5
- package/dist/film-styles.js +0 -8
- package/dist/generation-shot.d.ts +0 -5
- package/dist/generation-shot.js +0 -8
- package/dist/generations-output.d.ts +0 -2
- package/dist/generations-output.js +0 -5
- package/dist/generations.d.ts +0 -22
- package/dist/generations.js +21 -44
- package/dist/idempotency.d.ts +1 -21
- package/dist/idempotency.js +8 -29
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -28
- package/dist/live-shot-kinds.d.ts +16 -25
- package/dist/live-shot-kinds.js +12 -28
- package/dist/long-form-pricing.d.ts +0 -5
- package/dist/long-form-pricing.js +0 -6
- package/dist/long-form-profile.d.ts +0 -3
- package/dist/long-form-profile.js +0 -4
- package/dist/long-form-revision.d.ts +0 -9
- package/dist/long-form-revision.js +0 -11
- package/dist/markdown-quote.d.ts +0 -2
- package/dist/markdown-quote.js +0 -3
- package/dist/mascots.d.ts +0 -5
- package/dist/mascots.js +0 -10
- package/dist/max-credits.d.ts +0 -1
- package/dist/max-credits.js +0 -2
- package/dist/mcp-ugc-descriptions.d.ts +0 -2
- package/dist/mcp-ugc-descriptions.js +1 -6
- package/dist/media-timebase.d.ts +0 -2
- package/dist/media-timebase.js +0 -6
- package/dist/motion-styles.d.ts +0 -8
- package/dist/motion-styles.js +0 -11
- package/dist/moves.d.ts +0 -7
- package/dist/moves.js +0 -9
- package/dist/music.d.ts +0 -5
- package/dist/music.js +2 -9
- package/dist/naming.d.ts +0 -3
- package/dist/naming.js +0 -19
- package/dist/openapi.d.ts +0 -13
- package/dist/openapi.js +6 -11
- package/dist/output-provenance.d.ts +0 -4
- package/dist/output-provenance.js +0 -5
- package/dist/own-agent-price.d.ts +19 -22
- package/dist/own-agent-price.js +30 -25
- package/dist/own-agent-runs.d.ts +111 -11
- package/dist/own-agent-runs.js +89 -24
- package/dist/pacing.d.ts +3 -15
- package/dist/pacing.js +18 -18
- package/dist/parts-pricing.d.ts +8 -24
- package/dist/parts-pricing.js +19 -30
- package/dist/post-text.d.ts +0 -2
- package/dist/post-text.js +0 -4
- package/dist/presenter-beats.d.ts +0 -10
- package/dist/presenter-beats.js +0 -14
- package/dist/presenter-matte.d.ts +0 -7
- package/dist/presenter-matte.js +0 -9
- package/dist/presenter-takes.d.ts +0 -3
- package/dist/presenter-takes.js +0 -8
- package/dist/prices.d.ts +2 -8
- package/dist/prices.js +13 -23
- package/dist/public-endpoints.d.ts +0 -11
- package/dist/public-endpoints.js +0 -14
- package/dist/public-responses.d.ts +0 -2
- package/dist/public-responses.js +0 -3
- package/dist/rate-limit.d.ts +0 -24
- package/dist/rate-limit.js +0 -29
- package/dist/reference-analysis.d.ts +57 -34
- package/dist/reference-analysis.js +0 -69
- package/dist/reference-bring.d.ts +33 -0
- package/dist/reference-bring.js +28 -0
- package/dist/reference-display.d.ts +0 -3
- package/dist/reference-display.js +37 -4
- package/dist/reference-kinds.d.ts +0 -4
- package/dist/reference-kinds.js +0 -6
- package/dist/reference-lyrics.d.ts +0 -6
- package/dist/reference-lyrics.js +0 -6
- package/dist/reference-profile.d.ts +270 -39
- package/dist/reference-profile.js +64 -50
- package/dist/reference-staging.d.ts +0 -10
- package/dist/reference-staging.js +0 -14
- package/dist/reference-text-spans.d.ts +0 -4
- package/dist/reference-text-spans.js +0 -7
- package/dist/reference-voice-over.d.ts +0 -6
- package/dist/reference-voice-over.js +0 -7
- package/dist/reference-voice.d.ts +0 -7
- package/dist/reference-voice.js +0 -12
- package/dist/render-backend.d.ts +0 -30
- package/dist/render-backend.js +0 -5
- package/dist/resolved-timeline.d.ts +4 -5
- package/dist/resolved-timeline.js +1 -31
- package/dist/run-media.d.ts +0 -1
- package/dist/run-media.js +0 -2
- package/dist/run-preflight.d.ts +0 -4
- package/dist/run-preflight.js +0 -11
- package/dist/run-static-warnings.d.ts +0 -8
- package/dist/run-static-warnings.js +0 -38
- package/dist/runs.d.ts +16 -32
- package/dist/runs.js +0 -50
- package/dist/scene-bible.d.ts +15 -7
- package/dist/scene-bible.js +15 -10
- package/dist/scene-graph.d.ts +0 -12
- package/dist/scene-graph.js +0 -24
- package/dist/scene-place.d.ts +0 -25
- package/dist/scene-place.js +0 -24
- package/dist/scene-proposal.d.ts +0 -3
- package/dist/scene-proposal.js +0 -9
- package/dist/script-integrity.d.ts +0 -6
- package/dist/script-integrity.js +0 -8
- package/dist/script-voice.d.ts +0 -7
- package/dist/script-voice.js +0 -16
- package/dist/semantic-inserts.d.ts +0 -7
- package/dist/semantic-inserts.js +0 -10
- package/dist/skill-theme-explainer.js +0 -5
- package/dist/skill-theme.d.ts +0 -13
- package/dist/skill-theme.js +0 -25
- package/dist/skills.d.ts +22 -86
- package/dist/skills.js +21 -167
- package/dist/speech-rhythm-contract.js +0 -1
- package/dist/speech-rhythm.d.ts +0 -4
- package/dist/speech-rhythm.js +0 -2
- package/dist/templates/backdrop.d.ts +0 -3
- package/dist/templates/backdrop.js +0 -5
- package/dist/templates/callout.d.ts +0 -4
- package/dist/templates/callout.js +0 -6
- package/dist/templates/chart.d.ts +0 -4
- package/dist/templates/chart.js +0 -6
- package/dist/templates/chat-window.d.ts +0 -8
- package/dist/templates/chat-window.js +0 -10
- package/dist/templates/checklist.d.ts +0 -3
- package/dist/templates/checklist.js +0 -6
- package/dist/templates/comment-cta.d.ts +0 -14
- package/dist/templates/comment-cta.js +0 -19
- package/dist/templates/compare.d.ts +0 -6
- package/dist/templates/compare.js +0 -7
- package/dist/templates/cover-story.d.ts +0 -1
- package/dist/templates/cover-story.js +0 -3
- package/dist/templates/end-card.d.ts +0 -2
- package/dist/templates/end-card.js +0 -3
- package/dist/templates/hand-title.d.ts +0 -5
- package/dist/templates/hand-title.js +0 -9
- package/dist/templates/index.d.ts +0 -57
- package/dist/templates/index.js +0 -60
- package/dist/templates/lower-third.d.ts +0 -4
- package/dist/templates/lower-third.js +0 -5
- package/dist/templates/notification.d.ts +0 -6
- package/dist/templates/notification.js +0 -7
- package/dist/templates/phone-call.d.ts +0 -2
- package/dist/templates/phone-call.js +0 -6
- package/dist/templates/phone-screen.d.ts +0 -5
- package/dist/templates/phone-screen.js +0 -7
- package/dist/templates/pointer-chips.d.ts +0 -4
- package/dist/templates/pointer-chips.js +0 -6
- package/dist/templates/progress.d.ts +0 -3
- package/dist/templates/progress.js +0 -5
- package/dist/templates/quote.d.ts +0 -3
- package/dist/templates/quote.js +0 -4
- package/dist/templates/race.d.ts +0 -5
- package/dist/templates/race.js +0 -7
- package/dist/templates/rating.d.ts +0 -3
- package/dist/templates/rating.js +0 -5
- package/dist/templates/series-frame.d.ts +0 -16
- package/dist/templates/series-frame.js +0 -19
- package/dist/templates/size.d.ts +0 -7
- package/dist/templates/size.js +0 -8
- package/dist/templates/slot.d.ts +0 -2
- package/dist/templates/slot.js +0 -2
- package/dist/templates/sounds.d.ts +0 -12
- package/dist/templates/sounds.js +0 -16
- package/dist/templates/stat.d.ts +0 -3
- package/dist/templates/stat.js +0 -5
- package/dist/templates/tag.d.ts +0 -3
- package/dist/templates/tag.js +0 -5
- package/dist/templates/terminal.d.ts +0 -6
- package/dist/templates/terminal.js +0 -8
- package/dist/templates/theme.d.ts +0 -7
- package/dist/templates/theme.js +0 -9
- package/dist/templates/title-card.d.ts +0 -3
- package/dist/templates/title-card.js +0 -5
- package/dist/templates/video-grid.d.ts +0 -5
- package/dist/templates/video-grid.js +0 -8
- package/dist/templates/word-fill.d.ts +0 -3
- package/dist/templates/word-fill.js +0 -4
- package/dist/templates/word-title.d.ts +0 -2
- package/dist/templates/word-title.js +0 -4
- package/dist/trend-niches.d.ts +0 -11
- package/dist/trend-niches.js +0 -16
- package/dist/trend-search.d.ts +0 -66
- package/dist/trend-search.js +0 -70
- package/dist/tts-backend.d.ts +0 -19
- package/dist/tts-backend.js +0 -7
- package/dist/ugc-call.d.ts +0 -16
- package/dist/ugc-call.js +0 -21
- package/dist/ugc-delivery.d.ts +0 -2
- package/dist/ugc-delivery.js +0 -4
- package/dist/ugc-framing.d.ts +0 -4
- package/dist/ugc-framing.js +0 -6
- package/dist/ugc-interview.d.ts +0 -18
- package/dist/ugc-interview.js +0 -24
- package/dist/ugc-layers.d.ts +0 -39
- package/dist/ugc-layers.js +0 -39
- package/dist/ugc-scenes.d.ts +0 -2
- package/dist/ugc-scenes.js +0 -5
- package/dist/ugc-video-media.d.ts +0 -5
- package/dist/ugc-video-media.js +0 -7
- package/dist/uploads.d.ts +1 -15
- package/dist/uploads.js +3 -20
- package/dist/vendor-response.d.ts +0 -19
- package/dist/vendor-response.js +0 -22
- package/dist/video-size.d.ts +0 -4
- package/dist/video-size.js +0 -7
- package/dist/voice-admission.d.ts +2 -11
- package/dist/voice-admission.js +0 -13
- package/dist/voice-catalog-data.d.ts +0 -2
- package/dist/voice-catalog-data.js +0 -3
- package/dist/voice-catalog.d.ts +0 -6
- package/dist/voice-catalog.js +0 -8
- package/dist/voice-listing.d.ts +0 -6
- package/dist/voice-listing.js +0 -14
- package/dist/voice-pace.d.ts +0 -4
- package/dist/voice-pace.js +0 -7
- package/dist/voice-preview-approval.js +0 -1
- package/dist/voices.d.ts +4 -69
- package/dist/voices.js +3 -88
- package/dist/workflows/catalog.d.ts +0 -2
- package/dist/workflows/catalog.js +0 -4
- package/dist/workflows/film-directions.d.ts +0 -3
- package/dist/workflows/film-directions.js +0 -4
- package/dist/workflows/index.js +0 -1
- package/dist/workflows/methods/faceless-explainer.d.ts +33 -0
- package/dist/workflows/methods/faceless-explainer.js +0 -1
- package/dist/workflows/methods/kinetic-launch.d.ts +66 -1
- package/dist/workflows/methods/kinetic-launch.js +0 -2
- package/dist/workflows/methods/product-image-story.d.ts +33 -0
- package/dist/workflows/methods/product-image-story.js +0 -1
- package/dist/workflows/methods/reference-remake.d.ts +33 -0
- package/dist/workflows/methods/reference-remake.js +0 -1
- package/dist/workflows/methods/shared.d.ts +33 -1
- package/dist/workflows/methods/shared.js +0 -3
- package/dist/workflows/methods/ugc-faq-answer.d.ts +33 -0
- package/dist/workflows/methods/ugc-faq-answer.js +0 -1
- package/dist/workflows/methods/ugc-product-intro.d.ts +33 -0
- package/dist/workflows/methods/ugc-product-intro.js +0 -1
- package/dist/workflows/methods/website-proof-demo.d.ts +66 -1
- package/dist/workflows/methods/website-proof-demo.js +0 -2
- package/dist/workflows/motion-director.d.ts +0 -11
- package/dist/workflows/motion-director.js +0 -11
- package/dist/workflows/product-references.js +0 -1
- package/dist/workflows/reference-remake.d.ts +114 -17
- package/dist/workflows/reference-remake.js +0 -167
- package/dist/workflows/remake-chooser.d.ts +0 -6
- package/dist/workflows/remake-chooser.js +0 -4
- package/dist/workflows/remake-motion.d.ts +0 -16
- package/dist/workflows/remake-motion.js +0 -19
- package/dist/workflows/validate.d.ts +0 -1
- package/dist/workflows/validate.js +0 -5
- package/dist/workflows.js +0 -1
- package/package.json +1 -1
- package/dist/account-actors.js.map +0 -1
- package/dist/account.js.map +0 -1
- package/dist/actor-bounds.js.map +0 -1
- package/dist/actor-qualities.js.map +0 -1
- package/dist/actors.js.map +0 -1
- package/dist/ad-guide.js.map +0 -1
- package/dist/ad-pause-trim.js.map +0 -1
- package/dist/api-failure.js.map +0 -1
- package/dist/aspect.js.map +0 -1
- package/dist/asset-identity.js.map +0 -1
- package/dist/assets.js.map +0 -1
- package/dist/billing-terms.js.map +0 -1
- package/dist/brand-styles.js.map +0 -1
- package/dist/broll-policy.js.map +0 -1
- package/dist/canvas-fit.js.map +0 -1
- package/dist/caption-funnel.js.map +0 -1
- package/dist/caption-geometry.js.map +0 -1
- package/dist/caption-language.js.map +0 -1
- package/dist/contract-dispositions.js.map +0 -1
- package/dist/contracts/v1/workflow-brief.js.map +0 -1
- package/dist/contracts/v1/workflow-catalog.js.map +0 -1
- package/dist/contracts/v1/workflow-client.js.map +0 -1
- package/dist/contracts/v1/workflow-dto.js.map +0 -1
- package/dist/contracts/v1/workflow-evidence.js.map +0 -1
- package/dist/contracts/v1/workflow-execution.js.map +0 -1
- package/dist/contracts/v1/workflow-next.js.map +0 -1
- package/dist/contracts/v1/workflow-plan.js.map +0 -1
- package/dist/contracts/v1/workflow-primitives.js.map +0 -1
- package/dist/contracts/v1/workflow-run-read.js.map +0 -1
- package/dist/creator-profile.js.map +0 -1
- package/dist/default-actor.js.map +0 -1
- package/dist/design.js.map +0 -1
- package/dist/edit-billing.js.map +0 -1
- package/dist/edit-candidate.js.map +0 -1
- package/dist/edit-document.js.map +0 -1
- package/dist/edit-faceless.js.map +0 -1
- package/dist/edit-long-form.js.map +0 -1
- package/dist/edit-operations.js.map +0 -1
- package/dist/edit-primitives.js.map +0 -1
- package/dist/edit-revision.js.map +0 -1
- package/dist/edit-rules.js.map +0 -1
- package/dist/edit-shots.js.map +0 -1
- package/dist/edit-validate.js.map +0 -1
- package/dist/edit.js.map +0 -1
- package/dist/endpoint-notes.js.map +0 -1
- package/dist/endpoints.js.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/explainer-fit.js.map +0 -1
- package/dist/face-billing.js.map +0 -1
- package/dist/face-delivery.js.map +0 -1
- package/dist/faceless-action-shots.js.map +0 -1
- package/dist/faceless-customer-anchors.js.map +0 -1
- package/dist/faceless-cut-style.js.map +0 -1
- package/dist/faceless-image-placement.js.map +0 -1
- package/dist/faceless-image-qualification.js.map +0 -1
- package/dist/faceless-media-record.js.map +0 -1
- package/dist/faceless-price.js.map +0 -1
- package/dist/faceless-public-plan.js.map +0 -1
- package/dist/faceless-public.js.map +0 -1
- package/dist/faceless-short-61.js.map +0 -1
- package/dist/faceless-storyboard-timing.js.map +0 -1
- package/dist/faceless-storyboard-v2-plan.js.map +0 -1
- package/dist/faceless-storyboard-v2-timing.js.map +0 -1
- package/dist/faceless-storyboard-v2.js.map +0 -1
- package/dist/faceless-storyboard.js.map +0 -1
- package/dist/faceless-voices.js.map +0 -1
- package/dist/feedback.js.map +0 -1
- package/dist/film-directions.js.map +0 -1
- package/dist/film-drafts.js.map +0 -1
- package/dist/film-guide.js.map +0 -1
- package/dist/film-styles.js.map +0 -1
- package/dist/generation-shot.js.map +0 -1
- package/dist/generations-output.js.map +0 -1
- package/dist/generations.js.map +0 -1
- package/dist/idempotency.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/live-shot-kinds.js.map +0 -1
- package/dist/long-form-pricing.js.map +0 -1
- package/dist/long-form-profile.js.map +0 -1
- package/dist/long-form-revision.js.map +0 -1
- package/dist/markdown-quote.js.map +0 -1
- package/dist/mascots.js.map +0 -1
- package/dist/max-credits.js.map +0 -1
- package/dist/mcp-ugc-descriptions.js.map +0 -1
- package/dist/media-timebase.js.map +0 -1
- package/dist/motion-styles.js.map +0 -1
- package/dist/moves.js.map +0 -1
- package/dist/music.js.map +0 -1
- package/dist/naming.js.map +0 -1
- package/dist/openapi.js.map +0 -1
- package/dist/output-provenance.js.map +0 -1
- package/dist/own-agent-price.js.map +0 -1
- package/dist/own-agent-runs.js.map +0 -1
- package/dist/pacing.js.map +0 -1
- package/dist/parts-pricing.js.map +0 -1
- package/dist/post-text.js.map +0 -1
- package/dist/presenter-beats.js.map +0 -1
- package/dist/presenter-matte.js.map +0 -1
- package/dist/presenter-takes.js.map +0 -1
- package/dist/prices.js.map +0 -1
- package/dist/public-endpoints.js.map +0 -1
- package/dist/public-responses.js.map +0 -1
- package/dist/rate-limit.js.map +0 -1
- package/dist/reference-analysis.js.map +0 -1
- package/dist/reference-display.js.map +0 -1
- package/dist/reference-kinds.js.map +0 -1
- package/dist/reference-lyrics.js.map +0 -1
- package/dist/reference-profile.js.map +0 -1
- package/dist/reference-staging.js.map +0 -1
- package/dist/reference-text-spans.js.map +0 -1
- package/dist/reference-voice-over.js.map +0 -1
- package/dist/reference-voice.js.map +0 -1
- package/dist/render-backend.js.map +0 -1
- package/dist/resolved-timeline.js.map +0 -1
- package/dist/run-media.js.map +0 -1
- package/dist/run-preflight.js.map +0 -1
- package/dist/run-static-warnings.js.map +0 -1
- package/dist/runs.js.map +0 -1
- package/dist/scene-bible.js.map +0 -1
- package/dist/scene-graph.js.map +0 -1
- package/dist/scene-place.js.map +0 -1
- package/dist/scene-proposal.js.map +0 -1
- package/dist/script-integrity.js.map +0 -1
- package/dist/script-voice.js.map +0 -1
- package/dist/semantic-inserts.js.map +0 -1
- package/dist/skill-theme-explainer.js.map +0 -1
- package/dist/skill-theme.js.map +0 -1
- package/dist/skills.js.map +0 -1
- package/dist/speech-rhythm-contract.js.map +0 -1
- package/dist/speech-rhythm.js.map +0 -1
- package/dist/templates/backdrop.js.map +0 -1
- package/dist/templates/callout.js.map +0 -1
- package/dist/templates/chart.js.map +0 -1
- package/dist/templates/chat-window.js.map +0 -1
- package/dist/templates/checklist.js.map +0 -1
- package/dist/templates/comment-cta.js.map +0 -1
- package/dist/templates/compare.js.map +0 -1
- package/dist/templates/cover-story.js.map +0 -1
- package/dist/templates/end-card.js.map +0 -1
- package/dist/templates/hand-title.js.map +0 -1
- package/dist/templates/index.js.map +0 -1
- package/dist/templates/lower-third.js.map +0 -1
- package/dist/templates/notification.js.map +0 -1
- package/dist/templates/phone-call.js.map +0 -1
- package/dist/templates/phone-screen.js.map +0 -1
- package/dist/templates/pointer-chips.js.map +0 -1
- package/dist/templates/progress.js.map +0 -1
- package/dist/templates/quote.js.map +0 -1
- package/dist/templates/race.js.map +0 -1
- package/dist/templates/rating.js.map +0 -1
- package/dist/templates/series-frame.js.map +0 -1
- package/dist/templates/size.js.map +0 -1
- package/dist/templates/slot.js.map +0 -1
- package/dist/templates/sounds.js.map +0 -1
- package/dist/templates/stat.js.map +0 -1
- package/dist/templates/tag.js.map +0 -1
- package/dist/templates/terminal.js.map +0 -1
- package/dist/templates/theme.js.map +0 -1
- package/dist/templates/title-card.js.map +0 -1
- package/dist/templates/video-grid.js.map +0 -1
- package/dist/templates/word-fill.js.map +0 -1
- package/dist/templates/word-title.js.map +0 -1
- package/dist/trend-niches.js.map +0 -1
- package/dist/trend-search.js.map +0 -1
- package/dist/tts-backend.js.map +0 -1
- package/dist/ugc-call.js.map +0 -1
- package/dist/ugc-delivery.js.map +0 -1
- package/dist/ugc-framing.js.map +0 -1
- package/dist/ugc-interview.js.map +0 -1
- package/dist/ugc-layers.js.map +0 -1
- package/dist/ugc-scenes.js.map +0 -1
- package/dist/ugc-video-media.js.map +0 -1
- package/dist/uploads.js.map +0 -1
- package/dist/vendor-response.js.map +0 -1
- package/dist/video-size.js.map +0 -1
- package/dist/voice-admission.js.map +0 -1
- package/dist/voice-catalog-data.js.map +0 -1
- package/dist/voice-catalog.js.map +0 -1
- package/dist/voice-listing.js.map +0 -1
- package/dist/voice-pace.js.map +0 -1
- package/dist/voice-preview-approval.js.map +0 -1
- package/dist/voices.js.map +0 -1
- package/dist/workflows/catalog.js.map +0 -1
- package/dist/workflows/film-directions.js.map +0 -1
- package/dist/workflows/index.js.map +0 -1
- package/dist/workflows/methods/faceless-explainer.js.map +0 -1
- package/dist/workflows/methods/kinetic-launch.js.map +0 -1
- package/dist/workflows/methods/product-image-story.js.map +0 -1
- package/dist/workflows/methods/reference-remake.js.map +0 -1
- package/dist/workflows/methods/shared.js.map +0 -1
- package/dist/workflows/methods/ugc-faq-answer.js.map +0 -1
- package/dist/workflows/methods/ugc-product-intro.js.map +0 -1
- package/dist/workflows/methods/website-proof-demo.js.map +0 -1
- package/dist/workflows/motion-director.js.map +0 -1
- package/dist/workflows/product-references.js.map +0 -1
- package/dist/workflows/reference-remake.js.map +0 -1
- package/dist/workflows/remake-chooser.js.map +0 -1
- package/dist/workflows/remake-motion.js.map +0 -1
- package/dist/workflows/validate.js.map +0 -1
- package/dist/workflows.js.map +0 -1
package/dist/own-agent-price.js
CHANGED
|
@@ -1,28 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { FACELESS_EXPLAINER_POSE_PICTURES, FACELESS_IMAGE_CREDITS } from "./faceless-price.js";
|
|
3
|
-
// The «own agent» tariff (#1291 F2): your agent writes the film; Clipwright sells its stills, voice with word timings, render and hero. Prices
|
|
4
|
-
// are frozen per run at admission, and only delivered work is charged.
|
|
5
|
-
/** The tariff runs are admitted on now: the first stills of a draft in a rolling day are free on it (#1369). */
|
|
6
3
|
export const OWN_AGENT_TARIFF = "own-agent-v2";
|
|
7
|
-
/** The tariff of runs admitted before free stills: every still charged. */
|
|
8
4
|
export const OWN_AGENT_TARIFF_V1 = "own-agent-v1";
|
|
9
|
-
|
|
10
|
-
export const OWN_AGENT_SKILLS = ["film_stills", "film_voice", "film_render", "film_hero"];
|
|
11
|
-
/** One still the agent saw, past the free ones. */
|
|
5
|
+
export const OWN_AGENT_SKILLS = ["film_stills", "film_voice", "film_render", "film_hero", "film_edit", "film_take_frames", "film_take_check"];
|
|
12
6
|
export const OWN_STILL_CREDITS = 1;
|
|
13
|
-
/** Stills of one draft that are free in any rolling window of this many hours; a still past them is charged. */
|
|
14
7
|
export const OWN_FREE_STILLS = 120, OWN_FREE_STILLS_WINDOW_HOURS = 24;
|
|
15
|
-
/** A rendered film up to OWN_FILM_INCLUDED_SECONDS, then each second over it. */
|
|
16
8
|
export const OWN_FILM_RENDER_CREDITS = 100, OWN_FILM_INCLUDED_SECONDS = 60, OWN_FILM_EXTRA_SECOND_CREDITS = 2;
|
|
17
|
-
/** A second of delivered voice, rounded up once per take. */
|
|
18
9
|
export const OWN_VOICE_CREDITS_PER_SECOND = 2;
|
|
19
|
-
/** The bounds a run may ask: stills per call, the longest film and take. */
|
|
20
10
|
export const OWN_STILLS_MAX_PER_CALL = 24, OWN_FILM_MAX_SECONDS = 120, OWN_VOICE_MAX_SECONDS = 120;
|
|
21
|
-
/** Up to this many stills come one picture each; a round of more always comes with a sheet (#1372). */
|
|
22
11
|
export const OWN_STILLS_SINGLE_MAX = 8;
|
|
23
|
-
/** A hero's pose picture, priced as the done-for-you explainer's, and the poses a hero is made of. */
|
|
24
12
|
export const OWN_HERO_POSE_CREDITS = FACELESS_IMAGE_CREDITS, OWN_HERO_POSES = FACELESS_EXPLAINER_POSE_PICTURES;
|
|
25
|
-
|
|
13
|
+
export const OWN_EDIT_CREDITS = 10, OWN_EDIT_MAX_SECONDS = 60;
|
|
14
|
+
export const OWN_TAKE_FRAMES_MAX = 96;
|
|
15
|
+
export const OWN_TAKE_CHECK_CREDITS = 10;
|
|
26
16
|
export const ownAgentTerms = z.strictObject({
|
|
27
17
|
tariff: z.enum([OWN_AGENT_TARIFF_V1, OWN_AGENT_TARIFF]),
|
|
28
18
|
still_credits: z.number().int().nonnegative(),
|
|
@@ -30,16 +20,16 @@ export const ownAgentTerms = z.strictObject({
|
|
|
30
20
|
included_seconds: z.number().int().positive(),
|
|
31
21
|
extra_second_credits: z.number().int().nonnegative(),
|
|
32
22
|
voice_credits_per_second: z.number().int().nonnegative(),
|
|
33
|
-
/** A published hero pose; absent on terms frozen before the hero was sold, and a hero run without it is never charged. */
|
|
34
23
|
pose_credits: z.number().int().nonnegative().optional(),
|
|
35
|
-
|
|
24
|
+
edit_credits: z.number().int().nonnegative().optional(),
|
|
25
|
+
take_check_credits: z.number().int().nonnegative().optional(),
|
|
36
26
|
free_stills: z.number().int().nonnegative().optional(),
|
|
37
27
|
free_stills_window_hours: z.number().int().positive().optional(),
|
|
38
28
|
}).refine(t => (t.tariff === OWN_AGENT_TARIFF) === (t.free_stills !== undefined) && (t.free_stills === undefined) === (t.free_stills_window_hours === undefined), `free stills come with their window, and only on ${OWN_AGENT_TARIFF}`);
|
|
39
29
|
export const ownAgentTermsNow = () => ({ tariff: OWN_AGENT_TARIFF, still_credits: OWN_STILL_CREDITS, render_credits: OWN_FILM_RENDER_CREDITS,
|
|
40
30
|
included_seconds: OWN_FILM_INCLUDED_SECONDS, extra_second_credits: OWN_FILM_EXTRA_SECOND_CREDITS, voice_credits_per_second: OWN_VOICE_CREDITS_PER_SECOND,
|
|
41
|
-
pose_credits: OWN_HERO_POSE_CREDITS,
|
|
42
|
-
|
|
31
|
+
pose_credits: OWN_HERO_POSE_CREDITS, edit_credits: OWN_EDIT_CREDITS, take_check_credits: OWN_TAKE_CHECK_CREDITS, free_stills: OWN_FREE_STILLS,
|
|
32
|
+
free_stills_window_hours: OWN_FREE_STILLS_WINDOW_HOURS });
|
|
43
33
|
export const isOwnAgentEnabled = (env) => env.CLIPWRIGHT_OWN_AGENT === "1";
|
|
44
34
|
const seconds = (s, max, what) => {
|
|
45
35
|
if (!Number.isFinite(s) || s <= 0 || s > max)
|
|
@@ -51,17 +41,13 @@ const frames = (n) => {
|
|
|
51
41
|
throw new Error(`${n} stills is outside 0–${OWN_STILLS_MAX_PER_CALL}`);
|
|
52
42
|
return n;
|
|
53
43
|
};
|
|
54
|
-
/** A film of `s` seconds: the base up to the included length, each started second over it on top. */
|
|
55
44
|
export const ownFilmRenderCredits = (s, terms = ownAgentTermsNow()) => terms.render_credits + terms.extra_second_credits * Math.max(0, seconds(s, OWN_FILM_MAX_SECONDS, "a film") - terms.included_seconds);
|
|
56
|
-
/** A take of `s` seconds, rounded up once. */
|
|
57
45
|
export const ownVoiceCredits = (s, terms = ownAgentTermsNow()) => terms.voice_credits_per_second * seconds(s, OWN_VOICE_MAX_SECONDS, "a take");
|
|
58
|
-
/** `n` delivered stills, the first `free` of them granted free when the run was admitted; terms without free stills grant none. */
|
|
59
46
|
export function ownStillsCredits(n, terms = ownAgentTermsNow(), free = 0) {
|
|
60
47
|
if (!Number.isSafeInteger(free) || free < 0 || free > (terms.free_stills ?? 0))
|
|
61
48
|
throw new Error(`${free} free stills is outside these terms`);
|
|
62
49
|
return terms.still_credits * Math.max(0, frames(n) - free);
|
|
63
50
|
}
|
|
64
|
-
/** `n` published hero poses; terms without a pose price price none. */
|
|
65
51
|
export function ownHeroCredits(n, terms = ownAgentTermsNow()) {
|
|
66
52
|
if (!Number.isSafeInteger(n) || n < 0 || n > OWN_HERO_POSES)
|
|
67
53
|
throw new Error(`${n} poses is outside 0–${OWN_HERO_POSES}`);
|
|
@@ -69,13 +55,32 @@ export function ownHeroCredits(n, terms = ownAgentTermsNow()) {
|
|
|
69
55
|
throw new Error("these terms price no hero pose");
|
|
70
56
|
return terms.pose_credits * n;
|
|
71
57
|
}
|
|
72
|
-
|
|
58
|
+
export function ownEditCredits(s, terms = ownAgentTermsNow()) {
|
|
59
|
+
seconds(s, OWN_EDIT_MAX_SECONDS, "an edit");
|
|
60
|
+
if (terms.edit_credits === undefined)
|
|
61
|
+
throw new Error("these terms price no edit");
|
|
62
|
+
return terms.edit_credits;
|
|
63
|
+
}
|
|
64
|
+
export function ownTakeCheckCredits(n, terms = ownAgentTermsNow()) {
|
|
65
|
+
if (n !== 0 && n !== 1)
|
|
66
|
+
throw new Error(`${n} take verdicts is outside 0–1`);
|
|
67
|
+
if (terms.take_check_credits === undefined)
|
|
68
|
+
throw new Error("these terms price no take check");
|
|
69
|
+
return terms.take_check_credits * n;
|
|
70
|
+
}
|
|
71
|
+
export function ownTakeFramesCredits(sheets) {
|
|
72
|
+
if (!Number.isSafeInteger(sheets) || sheets < 0 || sheets > OWN_TAKE_FRAMES_MAX)
|
|
73
|
+
throw new Error(`${sheets} sheets is outside 0–${OWN_TAKE_FRAMES_MAX}`);
|
|
74
|
+
return 0;
|
|
75
|
+
}
|
|
73
76
|
export function ownAgentCharge(delivery, terms, heldCredits) {
|
|
74
77
|
const charge = delivery.skill === "film_stills" ? ownStillsCredits(delivery.frames, terms, delivery.free)
|
|
75
78
|
: delivery.skill === "film_voice" ? ownVoiceCredits(delivery.seconds, terms)
|
|
76
|
-
: delivery.skill === "film_hero" ? ownHeroCredits(delivery.poses, terms)
|
|
79
|
+
: delivery.skill === "film_hero" ? ownHeroCredits(delivery.poses, terms)
|
|
80
|
+
: delivery.skill === "film_edit" ? ownEditCredits(delivery.seconds, terms)
|
|
81
|
+
: delivery.skill === "film_take_frames" ? ownTakeFramesCredits(delivery.sheets)
|
|
82
|
+
: delivery.skill === "film_take_check" ? ownTakeCheckCredits(delivery.checks, terms) : ownFilmRenderCredits(delivery.seconds, terms);
|
|
77
83
|
if (!Number.isSafeInteger(heldCredits) || charge > heldCredits)
|
|
78
84
|
throw new Error(`${delivery.skill} charge ${charge} is over its hold ${heldCredits}`);
|
|
79
85
|
return charge;
|
|
80
86
|
}
|
|
81
|
-
//# sourceMappingURL=own-agent-price.js.map
|
package/dist/own-agent-runs.d.ts
CHANGED
|
@@ -8,15 +8,17 @@ export declare const FILM_RENDERS_QUOTE_PATH = "/v1/film-renders/quote";
|
|
|
8
8
|
export declare const FILM_RENDERS_PATH = "/v1/film-renders";
|
|
9
9
|
export declare const FILM_HEROES_QUOTE_PATH = "/v1/film-heroes/quote";
|
|
10
10
|
export declare const FILM_HEROES_PATH = "/v1/film-heroes";
|
|
11
|
+
export declare const FILM_EDITS_QUOTE_PATH = "/v1/film-edits/quote";
|
|
12
|
+
export declare const FILM_EDITS_PATH = "/v1/film-edits";
|
|
13
|
+
export declare const TAKE_FRAMES_QUOTE_PATH = "/v1/take-frames/quote";
|
|
14
|
+
export declare const TAKE_FRAMES_PATH = "/v1/take-frames";
|
|
15
|
+
export declare const TAKE_CHECKS_QUOTE_PATH = "/v1/take-checks/quote";
|
|
16
|
+
export declare const TAKE_CHECKS_PATH = "/v1/take-checks";
|
|
11
17
|
export declare const FILM_RUN_PATH = "/v1/film-runs/:id";
|
|
12
18
|
export declare const OWN_AGENT_FILM_TASK = "own-agent-film";
|
|
13
|
-
/** The frame rate of a still's timeline (the SkillFilm composition's) and of the delivered film. */
|
|
14
19
|
export declare const FILM_STILL_FPS = 30, FILM_RENDER_FPS = 25;
|
|
15
|
-
/** A still asked by anchor shows the moment this long after it, so the anchor's entrance has played. */
|
|
16
20
|
export declare const FILM_STILL_ANCHOR_LAG_SEC = 0.25;
|
|
17
|
-
/** The film runs this long after the voice's last sound. */
|
|
18
21
|
export declare const FILM_TAIL_SEC = 0.8;
|
|
19
|
-
/** The slowest narration pace a voice is held at, characters a second, and the most characters one take speaks. */
|
|
20
22
|
export declare const OWN_VOICE_SLOWEST_CHARS_PER_SECOND = 13, OWN_VOICE_MAX_CHARS = 1500;
|
|
21
23
|
export declare const filmStillsInput: z.ZodObject<{
|
|
22
24
|
draft_id: z.ZodString;
|
|
@@ -37,7 +39,6 @@ export declare const filmStillsInput: z.ZodObject<{
|
|
|
37
39
|
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
38
40
|
}, z.core.$strict>;
|
|
39
41
|
export type FilmStillsInput = z.infer<typeof filmStillsInput>;
|
|
40
|
-
/** What a client sends: `sheet` may be left out. */
|
|
41
42
|
export type FilmStillsRequest = z.input<typeof filmStillsInput>;
|
|
42
43
|
export declare const filmVoiceInput: z.ZodObject<{
|
|
43
44
|
text: z.ZodString;
|
|
@@ -83,7 +84,72 @@ export declare const filmRenderInput: z.ZodObject<{
|
|
|
83
84
|
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
84
85
|
}, z.core.$strict>;
|
|
85
86
|
export type FilmRenderInput = z.infer<typeof filmRenderInput>;
|
|
86
|
-
|
|
87
|
+
export declare const FILM_EDIT_WIDTH = 720, FILM_EDIT_HEIGHT = 1280, FILM_EDIT_FPS = 25;
|
|
88
|
+
export declare const FILM_EDIT_MAX_CLIPS = 24, FILM_EDIT_MAX_PIECES = 24, FILM_EDIT_MAX_CAPTIONS = 60, FILM_EDIT_MAX_HOLD_SEC = 3;
|
|
89
|
+
export declare const FILM_EDIT_CAPTION_POSITIONS: readonly ["top", "middle", "bottom", "low"];
|
|
90
|
+
export declare const filmEditInput: z.ZodObject<{
|
|
91
|
+
clips: z.ZodArray<z.ZodObject<{
|
|
92
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
93
|
+
asset_id: z.ZodOptional<z.ZodString>;
|
|
94
|
+
from: z.ZodNumber;
|
|
95
|
+
to: z.ZodNumber;
|
|
96
|
+
speed: z.ZodDefault<z.ZodNumber>;
|
|
97
|
+
}, z.core.$strict>>;
|
|
98
|
+
voice: z.ZodOptional<z.ZodObject<{
|
|
99
|
+
run_id: z.ZodString;
|
|
100
|
+
at: z.ZodDefault<z.ZodNumber>;
|
|
101
|
+
pieces: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
|
+
from: z.ZodNumber;
|
|
103
|
+
to: z.ZodNumber;
|
|
104
|
+
at: z.ZodNumber;
|
|
105
|
+
}, z.core.$strict>>>;
|
|
106
|
+
}, z.core.$strict>>;
|
|
107
|
+
captions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
108
|
+
text: z.ZodString;
|
|
109
|
+
start: z.ZodNumber;
|
|
110
|
+
end: z.ZodNumber;
|
|
111
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
112
|
+
bottom: "bottom";
|
|
113
|
+
low: "low";
|
|
114
|
+
middle: "middle";
|
|
115
|
+
top: "top";
|
|
116
|
+
}>>;
|
|
117
|
+
}, z.core.$strict>>>;
|
|
118
|
+
hold: z.ZodDefault<z.ZodNumber>;
|
|
119
|
+
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
}, z.core.$strict>;
|
|
121
|
+
export type FilmEditInput = z.infer<typeof filmEditInput>;
|
|
122
|
+
export type FilmEditRequest = z.input<typeof filmEditInput>;
|
|
123
|
+
export declare const TAKE_FRAMES_COLUMNS = 8, TAKE_FRAMES_CELL_WIDTH = 240, TAKE_FRAMES_PER_SHEET = 24;
|
|
124
|
+
export declare const TAKE_FRAMES_MIN_FPS = 1, TAKE_FRAMES_MAX_FPS = 24, TAKE_FRAMES_DEFAULT_FPS = 8;
|
|
125
|
+
export declare const TAKE_CHECK_PROMPT_MAX_CHARS = 1500, TAKE_CHECK_MAX_MOVES = 5;
|
|
126
|
+
export declare const takeFramesInput: z.ZodObject<{
|
|
127
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
128
|
+
asset_id: z.ZodOptional<z.ZodString>;
|
|
129
|
+
fps: z.ZodDefault<z.ZodNumber>;
|
|
130
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
crop: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
x: z.ZodNumber;
|
|
134
|
+
y: z.ZodNumber;
|
|
135
|
+
w: z.ZodNumber;
|
|
136
|
+
h: z.ZodNumber;
|
|
137
|
+
}, z.core.$strict>>;
|
|
138
|
+
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
export type TakeFramesInput = z.infer<typeof takeFramesInput>;
|
|
141
|
+
export type TakeFramesRequest = z.input<typeof takeFramesInput>;
|
|
142
|
+
export declare const takeCheckInput: z.ZodObject<{
|
|
143
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
144
|
+
asset_id: z.ZodOptional<z.ZodString>;
|
|
145
|
+
direction: z.ZodString;
|
|
146
|
+
product_image: z.ZodOptional<z.ZodString>;
|
|
147
|
+
moves: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
148
|
+
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
}, z.core.$strict>;
|
|
150
|
+
export type TakeCheckInput = z.infer<typeof takeCheckInput>;
|
|
151
|
+
export type TakeCheckRequest = z.input<typeof takeCheckInput>;
|
|
152
|
+
export declare const TAKE_DEFECT_LEVELS: readonly ["asset", "action", "camera", "roll"];
|
|
87
153
|
export declare const FILM_HERO_SOURCE_FIELDS: readonly ["character_reference", "character_details", "script", "voice_run_id"];
|
|
88
154
|
export declare const filmHeroInput: z.ZodObject<{
|
|
89
155
|
character_reference: z.ZodOptional<z.ZodString>;
|
|
@@ -94,30 +160,33 @@ export declare const filmHeroInput: z.ZodObject<{
|
|
|
94
160
|
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
95
161
|
}, z.core.$strict>;
|
|
96
162
|
export type FilmHeroInput = z.infer<typeof filmHeroInput>;
|
|
97
|
-
/** The seconds a take is held at before it is spoken: every character at the slowest pace, two seconds of lead and tail. */
|
|
98
163
|
export declare function ownVoiceCeilingSeconds(text: string): number;
|
|
99
|
-
/** A film's frames on its voice: the take, then the tail, at the delivered rate. */
|
|
100
164
|
export declare const ownFilmFrames: (voiceSeconds: number) => number;
|
|
101
|
-
/** How long the film on a take runs, to the hundredth (#1376): the take's length is not the film's. */
|
|
102
165
|
export declare const ownFilmSeconds: (voiceSeconds: number) => number;
|
|
103
166
|
export declare const ownAgentQuote: z.ZodObject<{
|
|
104
167
|
skill: z.ZodEnum<{
|
|
168
|
+
film_edit: "film_edit";
|
|
105
169
|
film_hero: "film_hero";
|
|
106
170
|
film_render: "film_render";
|
|
107
171
|
film_stills: "film_stills";
|
|
172
|
+
film_take_check: "film_take_check";
|
|
173
|
+
film_take_frames: "film_take_frames";
|
|
108
174
|
film_voice: "film_voice";
|
|
109
175
|
}>;
|
|
110
176
|
credits: z.ZodNumber;
|
|
111
177
|
unit: z.ZodEnum<{
|
|
178
|
+
check: "check";
|
|
112
179
|
film: "film";
|
|
113
180
|
pose: "pose";
|
|
114
181
|
second: "second";
|
|
182
|
+
sheet: "sheet";
|
|
115
183
|
still: "still";
|
|
116
184
|
}>;
|
|
117
185
|
units: z.ZodNumber;
|
|
118
186
|
film_sec: z.ZodOptional<z.ZodNumber>;
|
|
119
187
|
free_units: z.ZodOptional<z.ZodNumber>;
|
|
120
188
|
free_left: z.ZodOptional<z.ZodNumber>;
|
|
189
|
+
frames: z.ZodOptional<z.ZodNumber>;
|
|
121
190
|
warnings: z.ZodArray<z.ZodString>;
|
|
122
191
|
}, z.core.$strict>;
|
|
123
192
|
export type OwnAgentQuote = z.infer<typeof ownAgentQuote>;
|
|
@@ -133,13 +202,15 @@ export declare const filmWord: z.ZodObject<{
|
|
|
133
202
|
start: z.ZodNumber;
|
|
134
203
|
end: z.ZodNumber;
|
|
135
204
|
}, z.core.$strict>;
|
|
136
|
-
/** One run of the mode as the agent reads it: the run's money and state, and what it delivered. */
|
|
137
205
|
export declare const filmRun: z.ZodObject<{
|
|
138
206
|
run_id: z.ZodString;
|
|
139
207
|
skill: z.ZodEnum<{
|
|
208
|
+
film_edit: "film_edit";
|
|
140
209
|
film_hero: "film_hero";
|
|
141
210
|
film_render: "film_render";
|
|
142
211
|
film_stills: "film_stills";
|
|
212
|
+
film_take_check: "film_take_check";
|
|
213
|
+
film_take_frames: "film_take_frames";
|
|
143
214
|
film_voice: "film_voice";
|
|
144
215
|
}>;
|
|
145
216
|
state: z.ZodString;
|
|
@@ -189,10 +260,39 @@ export declare const filmRun: z.ZodObject<{
|
|
|
189
260
|
character: z.ZodNullable<z.ZodString>;
|
|
190
261
|
sheet_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
191
262
|
}, z.core.$strict>>;
|
|
263
|
+
take_frames: z.ZodOptional<z.ZodObject<{
|
|
264
|
+
fps: z.ZodNumber;
|
|
265
|
+
frames: z.ZodNumber;
|
|
266
|
+
sheets: z.ZodArray<z.ZodObject<{
|
|
267
|
+
image_url: z.ZodString;
|
|
268
|
+
from: z.ZodNumber;
|
|
269
|
+
to: z.ZodNumber;
|
|
270
|
+
frames: z.ZodNumber;
|
|
271
|
+
}, z.core.$strict>>;
|
|
272
|
+
}, z.core.$strict>>;
|
|
273
|
+
take_check: z.ZodOptional<z.ZodObject<{
|
|
274
|
+
duration_sec: z.ZodNumber;
|
|
275
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
276
|
+
code: z.ZodString;
|
|
277
|
+
level: z.ZodEnum<{
|
|
278
|
+
action: "action";
|
|
279
|
+
asset: "asset";
|
|
280
|
+
camera: "camera";
|
|
281
|
+
roll: "roll";
|
|
282
|
+
}>;
|
|
283
|
+
from: z.ZodNumber;
|
|
284
|
+
to: z.ZodNumber;
|
|
285
|
+
whole_take: z.ZodBoolean;
|
|
286
|
+
why: z.ZodNullable<z.ZodString>;
|
|
287
|
+
}, z.core.$strict>>;
|
|
288
|
+
clean: z.ZodArray<z.ZodObject<{
|
|
289
|
+
from: z.ZodNumber;
|
|
290
|
+
to: z.ZodNumber;
|
|
291
|
+
}, z.core.$strict>>;
|
|
292
|
+
}, z.core.$strict>>;
|
|
192
293
|
created_at: z.ZodString;
|
|
193
294
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
194
295
|
}, z.core.$strict>;
|
|
195
296
|
export type FilmRun = z.infer<typeof filmRun>;
|
|
196
297
|
export declare const isOwnAgentSkill: (skill: unknown) => skill is (typeof OWN_AGENT_SKILLS)[number];
|
|
197
|
-
/** A take longer than this is refused before money: its hold would pass the longest take the tariff prices. */
|
|
198
298
|
export declare const OWN_VOICE_CEILING_LIMIT = 120;
|
package/dist/own-agent-runs.js
CHANGED
|
@@ -7,8 +7,6 @@ import { MASCOT_POSES } from "./mascots.js";
|
|
|
7
7
|
import { maxCreditsField } from "./max-credits.js";
|
|
8
8
|
import { OWN_AGENT_SKILLS, OWN_FREE_STILLS, OWN_FREE_STILLS_WINDOW_HOURS, OWN_STILLS_MAX_PER_CALL, OWN_STILLS_SINGLE_MAX, OWN_VOICE_MAX_SECONDS } from "./own-agent-price.js";
|
|
9
9
|
import { runId } from "./runs.js";
|
|
10
|
-
// The paid runs of the «own agent» mode (#1291 F2): stills of a draft revision, a voice with word timings, the film's render, a hero saved as
|
|
11
|
-
// a mascot. Each is quoted first, holds its ceiling at admission, is charged by what it delivered; its status lives in `/v1/runs/{id}`.
|
|
12
10
|
export const FILM_STILLS_QUOTE_PATH = "/v1/film-stills/quote";
|
|
13
11
|
export const FILM_STILLS_PATH = "/v1/film-stills";
|
|
14
12
|
export const FILM_VOICES_QUOTE_PATH = "/v1/film-voices/quote";
|
|
@@ -17,18 +15,19 @@ export const FILM_RENDERS_QUOTE_PATH = "/v1/film-renders/quote";
|
|
|
17
15
|
export const FILM_RENDERS_PATH = "/v1/film-renders";
|
|
18
16
|
export const FILM_HEROES_QUOTE_PATH = "/v1/film-heroes/quote";
|
|
19
17
|
export const FILM_HEROES_PATH = "/v1/film-heroes";
|
|
18
|
+
export const FILM_EDITS_QUOTE_PATH = "/v1/film-edits/quote";
|
|
19
|
+
export const FILM_EDITS_PATH = "/v1/film-edits";
|
|
20
|
+
export const TAKE_FRAMES_QUOTE_PATH = "/v1/take-frames/quote";
|
|
21
|
+
export const TAKE_FRAMES_PATH = "/v1/take-frames";
|
|
22
|
+
export const TAKE_CHECKS_QUOTE_PATH = "/v1/take-checks/quote";
|
|
23
|
+
export const TAKE_CHECKS_PATH = "/v1/take-checks";
|
|
20
24
|
export const FILM_RUN_PATH = "/v1/film-runs/:id";
|
|
21
25
|
export const OWN_AGENT_FILM_TASK = "own-agent-film";
|
|
22
|
-
/** The frame rate of a still's timeline (the SkillFilm composition's) and of the delivered film. */
|
|
23
26
|
export const FILM_STILL_FPS = 30, FILM_RENDER_FPS = 25;
|
|
24
|
-
/** A still asked by anchor shows the moment this long after it, so the anchor's entrance has played. */
|
|
25
27
|
export const FILM_STILL_ANCHOR_LAG_SEC = 0.25;
|
|
26
|
-
/** The film runs this long after the voice's last sound. */
|
|
27
28
|
export const FILM_TAIL_SEC = 0.8;
|
|
28
|
-
/** The slowest narration pace a voice is held at, characters a second, and the most characters one take speaks. */
|
|
29
29
|
export const OWN_VOICE_SLOWEST_CHARS_PER_SECOND = 13, OWN_VOICE_MAX_CHARS = 1500;
|
|
30
30
|
const anchor = z.string().regex(/^[A-Za-z_]\w{0,40}$/, "an anchor is an identifier");
|
|
31
|
-
/** The customer's product pictures a run places (#1356): each run takes them, so the stills and the render read the same list. */
|
|
32
31
|
const sceneImages = z.array(facelessCustomerSceneImage).max(EXPLAINER_MAX_PRODUCT_PICTURES).optional()
|
|
33
32
|
.describe(`Up to ${EXPLAINER_MAX_PRODUCT_PICTURES} of your product pictures, p1 first: each on the script words its anchor names, placed by ` +
|
|
34
33
|
"your code with <Product id=\"p1\"/> while those words are spoken. Send the same list to the stills and the render");
|
|
@@ -56,7 +55,80 @@ export const filmRenderInput = z.strictObject({
|
|
|
56
55
|
scene_images: sceneImages,
|
|
57
56
|
max_credits: maxCreditsField,
|
|
58
57
|
});
|
|
59
|
-
|
|
58
|
+
export const FILM_EDIT_WIDTH = 720, FILM_EDIT_HEIGHT = 1280, FILM_EDIT_FPS = 25;
|
|
59
|
+
export const FILM_EDIT_MAX_CLIPS = 24, FILM_EDIT_MAX_PIECES = 24, FILM_EDIT_MAX_CAPTIONS = 60, FILM_EDIT_MAX_HOLD_SEC = 3;
|
|
60
|
+
export const FILM_EDIT_CAPTION_POSITIONS = ["top", "middle", "bottom", "low"];
|
|
61
|
+
const editSecond = z.number().min(0).max(600);
|
|
62
|
+
const editClip = z.strictObject({
|
|
63
|
+
run_id: runId.optional().describe("A delivered generate_video run of this account"),
|
|
64
|
+
asset_id: assetId.optional().describe("Instead of run_id: a video asset of this account"),
|
|
65
|
+
from: editSecond.describe("The second of the clip the cut starts at"),
|
|
66
|
+
to: editSecond.describe("The second of the clip the cut ends at, after from"),
|
|
67
|
+
speed: z.number().min(0.5).max(2).default(1).describe("Play speed; the clip lasts (to - from) / speed in the edit. 1.2 lifts a slow beat"),
|
|
68
|
+
}).refine(clip => (clip.run_id === undefined) !== (clip.asset_id === undefined), "name the clip by run_id or by asset_id, one of them")
|
|
69
|
+
.refine(clip => clip.to > clip.from, "to must be after from");
|
|
70
|
+
const voicePiece = z.strictObject({
|
|
71
|
+
from: editSecond.describe("The second of the take the piece starts at (make_voice words give each word's start and end)"),
|
|
72
|
+
to: editSecond.describe("The second of the take the piece ends at, after from"),
|
|
73
|
+
at: editSecond.describe("The second of the edit the piece is heard from"),
|
|
74
|
+
}).refine(piece => piece.to > piece.from, "to must be after from");
|
|
75
|
+
const editCaption = z.strictObject({
|
|
76
|
+
text: z.string().trim().min(1).max(40).regex(/^[^\n{}\\]+$/, "one line, without braces or backslashes")
|
|
77
|
+
.describe("What the caption reads, as written: 2 to 4 words in capitals read best"),
|
|
78
|
+
start: editSecond.describe("The second of the edit it appears"),
|
|
79
|
+
end: editSecond.describe("The second of the edit it goes, after start"),
|
|
80
|
+
position: z.enum(FILM_EDIT_CAPTION_POSITIONS).default("bottom")
|
|
81
|
+
.describe("Where it sits; pick the one that keeps it off the product, its print, the working hands and the face"),
|
|
82
|
+
}).refine(caption => caption.end > caption.start, "end must be after start");
|
|
83
|
+
export const filmEditInput = z.strictObject({
|
|
84
|
+
clips: z.array(editClip).min(1).max(FILM_EDIT_MAX_CLIPS)
|
|
85
|
+
.describe("The cut in order, each a window of one of your clips; they play back to back with hard cuts"),
|
|
86
|
+
voice: z.strictObject({
|
|
87
|
+
run_id: runId.describe("A delivered make_voice run of this account"),
|
|
88
|
+
at: editSecond.default(0.1).describe("Without pieces: the second of the edit the whole take starts at"),
|
|
89
|
+
pieces: z.array(voicePiece).min(1).max(FILM_EDIT_MAX_PIECES).optional()
|
|
90
|
+
.describe("Instead of the whole take: its sentences laid one by one, each on the second its picture starts; pieces may not overlap"),
|
|
91
|
+
}).optional().describe("The voice-over; without it the edit is silent"),
|
|
92
|
+
captions: z.array(editCaption).max(FILM_EDIT_MAX_CAPTIONS).default([])
|
|
93
|
+
.describe("Burned-in captions: bold white with a dark outline"),
|
|
94
|
+
hold: z.number().min(0).max(FILM_EDIT_MAX_HOLD_SEC).default(0)
|
|
95
|
+
.describe("Seconds the last frame is held at the end, for the packshot"),
|
|
96
|
+
max_credits: maxCreditsField,
|
|
97
|
+
});
|
|
98
|
+
export const TAKE_FRAMES_COLUMNS = 8, TAKE_FRAMES_CELL_WIDTH = 240, TAKE_FRAMES_PER_SHEET = 24;
|
|
99
|
+
export const TAKE_FRAMES_MIN_FPS = 1, TAKE_FRAMES_MAX_FPS = 24, TAKE_FRAMES_DEFAULT_FPS = 8;
|
|
100
|
+
export const TAKE_CHECK_PROMPT_MAX_CHARS = 1500, TAKE_CHECK_MAX_MOVES = 5;
|
|
101
|
+
const takeSecond = z.number().min(0).max(600);
|
|
102
|
+
const takeSource = {
|
|
103
|
+
run_id: runId.optional().describe("The take: a delivered generate_video run of this account"),
|
|
104
|
+
asset_id: assetId.optional().describe("Instead of run_id: a video asset of this account"),
|
|
105
|
+
};
|
|
106
|
+
const oneTake = (take) => (take.run_id === undefined) !== (take.asset_id === undefined);
|
|
107
|
+
const ONE_TAKE = "name the take by run_id or by asset_id, one of them";
|
|
108
|
+
export const takeFramesInput = z.strictObject({
|
|
109
|
+
...takeSource,
|
|
110
|
+
fps: z.number().int().min(TAKE_FRAMES_MIN_FPS).max(TAKE_FRAMES_MAX_FPS).default(TAKE_FRAMES_DEFAULT_FPS)
|
|
111
|
+
.describe("Frames a second: 8 to read the whole take, 12 to 24 on a contact"),
|
|
112
|
+
from: takeSecond.optional().describe("The second of the take the frames start at; omitted, its start"),
|
|
113
|
+
to: takeSecond.optional().describe("The second of the take the frames end at; omitted, its end"),
|
|
114
|
+
crop: z.strictObject({
|
|
115
|
+
x: z.number().min(0).max(0.95), y: z.number().min(0).max(0.95), w: z.number().min(0.05).max(1), h: z.number().min(0.05).max(1),
|
|
116
|
+
}).refine(c => c.x + c.w <= 1 + 1e-9 && c.y + c.h <= 1 + 1e-9, "the crop stays inside the frame: x + w and y + h at most 1").optional()
|
|
117
|
+
.describe("Only this part of the frame, enlarged: x, y from the top-left corner and w, h, each a share of the frame's width or height"),
|
|
118
|
+
max_credits: maxCreditsField,
|
|
119
|
+
}).refine(oneTake, ONE_TAKE).refine(v => v.from === undefined || v.to === undefined || v.to > v.from, "to must be after from");
|
|
120
|
+
export const takeCheckInput = z.strictObject({
|
|
121
|
+
...takeSource,
|
|
122
|
+
direction: z.string().trim().min(1).max(TAKE_CHECK_PROMPT_MAX_CHARS)
|
|
123
|
+
.describe("What the take was asked to show: the shot's part of the prompt you made it with (its action and timeline), up to 1500 characters"),
|
|
124
|
+
product_image: qualifiedImageUrl.optional()
|
|
125
|
+
.describe("https picture of the product as it really is (your upload or a saved asset): the take's product is compared with it"),
|
|
126
|
+
moves: z.array(takeSecond).max(TAKE_CHECK_MAX_MOVES).optional()
|
|
127
|
+
.describe("Seconds of the take where a hand meets the product (a grip, a lid, a set-down): looked at first"),
|
|
128
|
+
max_credits: maxCreditsField,
|
|
129
|
+
}).refine(oneTake, ONE_TAKE);
|
|
130
|
+
export const TAKE_DEFECT_LEVELS = ["asset", "action", "camera", "roll"];
|
|
131
|
+
const takeWindow = z.strictObject({ from: z.number().min(0), to: z.number().min(0) });
|
|
60
132
|
export const FILM_HERO_SOURCE_FIELDS = ["character_reference", "character_details", "script", "voice_run_id"];
|
|
61
133
|
export const filmHeroInput = z.strictObject({
|
|
62
134
|
character_reference: qualifiedImageUrl.optional().describe("https image of the character the poses are drawn after: a public picture, your upload, a " +
|
|
@@ -70,27 +142,22 @@ export const filmHeroInput = z.strictObject({
|
|
|
70
142
|
max_credits: maxCreditsField,
|
|
71
143
|
}).refine(value => value.mascot_id !== undefined || FILM_HERO_SOURCE_FIELDS.some(field => value[field] !== undefined), "name the hero with character_reference or character_details, pass script or voice_run_id, or pass mascot_id")
|
|
72
144
|
.refine(value => value.mascot_id === undefined || FILM_HERO_SOURCE_FIELDS.every(field => value[field] === undefined), `mascot_id completes a saved mascot and takes no other field: drop ${FILM_HERO_SOURCE_FIELDS.join(", ")}`);
|
|
73
|
-
/** The seconds a take is held at before it is spoken: every character at the slowest pace, two seconds of lead and tail. */
|
|
74
145
|
export function ownVoiceCeilingSeconds(text) {
|
|
75
146
|
return Math.ceil(text.length / OWN_VOICE_SLOWEST_CHARS_PER_SECOND) + 2;
|
|
76
147
|
}
|
|
77
|
-
/** A film's frames on its voice: the take, then the tail, at the delivered rate. */
|
|
78
148
|
export const ownFilmFrames = (voiceSeconds) => Math.ceil((voiceSeconds + FILM_TAIL_SEC) * FILM_RENDER_FPS);
|
|
79
|
-
/** How long the film on a take runs, to the hundredth (#1376): the take's length is not the film's. */
|
|
80
149
|
export const ownFilmSeconds = (voiceSeconds) => +(ownFilmFrames(voiceSeconds) / FILM_RENDER_FPS).toFixed(2);
|
|
81
150
|
const filmSec = z.number().positive().describe("How long the film runs: the voice, then a short tail; say this length, not the voice's");
|
|
82
151
|
export const ownAgentQuote = z.strictObject({
|
|
83
152
|
skill: z.enum(OWN_AGENT_SKILLS),
|
|
84
|
-
/** What admission holds: the most the run can be charged. */
|
|
85
153
|
credits: z.number().int().nonnegative(),
|
|
86
|
-
unit: z.enum(["still", "second", "film", "pose"]),
|
|
154
|
+
unit: z.enum(["still", "second", "film", "pose", "sheet", "check"]),
|
|
87
155
|
units: z.number().int().nonnegative(),
|
|
88
|
-
/** `film_render`: how long the film will run. */
|
|
89
156
|
film_sec: filmSec.optional(),
|
|
90
|
-
/** `film_stills`: how many of the asked stills are free, and the free stills the draft has left in the rolling day after them. */
|
|
91
157
|
free_units: z.number().int().nonnegative().optional()
|
|
92
158
|
.describe(`How many of the asked stills are free: the first ${OWN_FREE_STILLS} stills of a draft in any ${OWN_FREE_STILLS_WINDOW_HOURS} h are`),
|
|
93
159
|
free_left: z.number().int().nonnegative().optional().describe("Free stills this draft has left in the rolling day after this call"),
|
|
160
|
+
frames: z.number().int().positive().optional(),
|
|
94
161
|
warnings: z.array(z.string()),
|
|
95
162
|
});
|
|
96
163
|
export const filmStill = z.strictObject({
|
|
@@ -98,11 +165,9 @@ export const filmStill = z.strictObject({
|
|
|
98
165
|
seconds: z.number(),
|
|
99
166
|
frame: z.number().int().min(0),
|
|
100
167
|
image_url: z.string().url(),
|
|
101
|
-
/** What the layout probe found on this still: overlapping or clipped text, an empty slot, a name left on screen. */
|
|
102
168
|
findings: z.array(z.string()),
|
|
103
169
|
});
|
|
104
170
|
export const filmWord = z.strictObject({ text: z.string(), start: z.number(), end: z.number() });
|
|
105
|
-
/** One run of the mode as the agent reads it: the run's money and state, and what it delivered. */
|
|
106
171
|
export const filmRun = z.strictObject({
|
|
107
172
|
run_id: runId,
|
|
108
173
|
skill: z.enum(OWN_AGENT_SKILLS),
|
|
@@ -111,21 +176,21 @@ export const filmRun = z.strictObject({
|
|
|
111
176
|
credits_charged: z.number().int().nonnegative().nullable(),
|
|
112
177
|
warnings: z.array(z.string()),
|
|
113
178
|
error: z.string().nullable(),
|
|
114
|
-
/** `film_stills`: the stills drawn, a tiled sheet when asked, and the gate's refusals as `file:line: reason`. */
|
|
115
179
|
stills: z.strictObject({ frames: z.array(filmStill), sheet_url: z.string().url().nullable(), refusals: z.array(z.string()) }).optional(),
|
|
116
|
-
/** `film_voice`: the take's length and its words, each with its start and end, and how long a film on it runs. */
|
|
117
180
|
voice: z.strictObject({ duration_sec: z.number().positive(), film_sec: filmSec.optional(), words: z.array(filmWord), audio_url: z.string().url() }).optional(),
|
|
118
|
-
/** `film_render`: the delivered film, and its frame as a thumbnail when one could be taken. */
|
|
119
181
|
film: z.strictObject({ video_url: z.string().url(), duration_sec: z.number().positive(),
|
|
120
182
|
thumbnail_url: z.string().url().nullable().default(null) }).optional(),
|
|
121
|
-
/** `film_hero`: the saved mascot (pass `mascot_id` to create_film_draft), the poses it was published with, and those poses on one picture
|
|
122
|
-
* to look at before stills. */
|
|
123
183
|
hero: z.strictObject({ mascot_id: assetId, poses: z.array(z.enum(MASCOT_POSES)), character: z.string().nullable(),
|
|
124
184
|
sheet_url: z.string().url().nullable().default(null) }).optional(),
|
|
185
|
+
take_frames: z.strictObject({ fps: z.number().int().positive(), frames: z.number().int().positive(),
|
|
186
|
+
sheets: z.array(z.strictObject({ image_url: z.string().url(), from: z.number().min(0), to: z.number().min(0), frames: z.number().int().positive() })) })
|
|
187
|
+
.optional(),
|
|
188
|
+
take_check: z.strictObject({ duration_sec: z.number().positive(),
|
|
189
|
+
findings: z.array(z.strictObject({ code: z.string(), level: z.enum(TAKE_DEFECT_LEVELS), from: z.number().min(0), to: z.number().min(0),
|
|
190
|
+
whole_take: z.boolean(), why: z.string().nullable() })),
|
|
191
|
+
clean: z.array(takeWindow) }).optional(),
|
|
125
192
|
created_at: z.string(),
|
|
126
193
|
finished_at: z.string().nullable(),
|
|
127
194
|
});
|
|
128
195
|
export const isOwnAgentSkill = (skill) => typeof skill === "string" && OWN_AGENT_SKILLS.includes(skill);
|
|
129
|
-
/** A take longer than this is refused before money: its hold would pass the longest take the tariff prices. */
|
|
130
196
|
export const OWN_VOICE_CEILING_LIMIT = OWN_VOICE_MAX_SECONDS;
|
|
131
|
-
//# sourceMappingURL=own-agent-runs.js.map
|
package/dist/pacing.d.ts
CHANGED
|
@@ -1,32 +1,20 @@
|
|
|
1
1
|
import { type TtsModelId } from "./voices.js";
|
|
2
|
-
/** Speech pacing: 2–4 words per second. */
|
|
3
2
|
export declare const WORDS_PER_SECOND_MIN = 2;
|
|
4
3
|
export declare const WORDS_PER_SECOND_MAX = 4;
|
|
5
4
|
export declare function countWords(script: string): number;
|
|
6
|
-
/** Average pace for duration ESTIMATES: two live ElevenLabs renders (Sarah), 74 words → 27.1 s and 32 words → 13.07 s. */
|
|
7
|
-
/** The earlier 3 words/s missed by −18.9% against the ±15% gate. */
|
|
8
5
|
export declare const ESTIMATE_WORDS_PER_SECOND = 2.6;
|
|
9
|
-
/** Russian on eleven_v3 reads slower: 153 words in 66.13 s, 2.31 words/s (#164). */
|
|
10
|
-
/** The speech-duration floor uses ESTIMATE_WORDS_PER_SECOND; only a measurement may raise it. */
|
|
11
6
|
export declare const ESTIMATE_WORDS_PER_SECOND_CYRILLIC = 2.3;
|
|
12
|
-
/** Cyrillic on eleven_v4: 153 words in 70.32 s, one take at Stability 0.5 (#452). */
|
|
13
7
|
export declare const ESTIMATE_WORDS_PER_SECOND_CYRILLIC_V4 = 2.18;
|
|
14
|
-
/** Cyrillic on gemini-3.8-flash-tts: 153 words in 71.04 s and 65.68 s, mean 2.24, rounded down (#453). */
|
|
15
8
|
export declare const ESTIMATE_WORDS_PER_SECOND_CYRILLIC_GOOGLE = 2.2;
|
|
16
|
-
/** Only make_ugc admission names the model; without it the script family alone sets the pace. */
|
|
17
9
|
export declare function estimateWordsPerSecond(script: string, model?: TtsModelId): number;
|
|
18
|
-
/** A language whose words are longer than English ones is paced by characters, not words: a Turkish word is a fifth longer, so words/s ran */
|
|
19
|
-
/** its takes short. Delivered takes of Latin script read at 15.48 characters/s untrimmed (46 takes, median) and 16.95 trimmed (8). */
|
|
20
10
|
export declare const ESTIMATE_CHARS_PER_SECOND_LATIN = 15.5;
|
|
21
|
-
/** A take cut with pause_trim reads 9% faster: 16.95 against 15.48 characters/s. */
|
|
22
11
|
export declare const PAUSE_TRIM_PACE_FACTOR = 1.09;
|
|
23
|
-
/** The pace of a language against English, from the catalog sample of each (one sentence read by 10 voices, median characters/s over English's 15.1). */
|
|
24
12
|
export declare const LATIN_LANGUAGE_PACE: Readonly<Record<string, number>>;
|
|
25
|
-
/** What a make_ugc quote knows about the take: the named voice (catalog names start with their language, `tr_male_…`) and a pause_trim. */
|
|
26
13
|
export type SpeechPace = {
|
|
27
14
|
voice?: string | undefined;
|
|
28
15
|
pauseTrim?: boolean;
|
|
29
16
|
};
|
|
30
|
-
|
|
31
|
-
|
|
17
|
+
export declare const MEASURED_VOICE_CHARS_PER_WORD = 5.77;
|
|
18
|
+
export declare const SENTENCE_BREAK_SEC = 0.62;
|
|
19
|
+
export declare function sentenceBreaks(script: string): number;
|
|
32
20
|
export declare function estimateDurationSec(script: string, model?: TtsModelId, pace?: SpeechPace): number;
|
package/dist/pacing.js
CHANGED
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { isEnglishScript, measuredPaceOf, VOICE_PACE } from "./voice-pace.js";
|
|
2
|
+
import { DEFAULT_TTS_MODEL, detectScriptFamily, GOOGLE_TTS_MODEL } from "./voices.js";
|
|
3
3
|
export const WORDS_PER_SECOND_MIN = 2;
|
|
4
4
|
export const WORDS_PER_SECOND_MAX = 4;
|
|
5
5
|
export function countWords(script) {
|
|
6
6
|
return script.trim().split(/\s+/).filter(Boolean).length;
|
|
7
7
|
}
|
|
8
|
-
/** Average pace for duration ESTIMATES: two live ElevenLabs renders (Sarah), 74 words → 27.1 s and 32 words → 13.07 s. */
|
|
9
|
-
/** The earlier 3 words/s missed by −18.9% against the ±15% gate. */
|
|
10
8
|
export const ESTIMATE_WORDS_PER_SECOND = 2.6;
|
|
11
|
-
/** Russian on eleven_v3 reads slower: 153 words in 66.13 s, 2.31 words/s (#164). */
|
|
12
|
-
/** The speech-duration floor uses ESTIMATE_WORDS_PER_SECOND; only a measurement may raise it. */
|
|
13
9
|
export const ESTIMATE_WORDS_PER_SECOND_CYRILLIC = 2.3;
|
|
14
|
-
/** Cyrillic on eleven_v4: 153 words in 70.32 s, one take at Stability 0.5 (#452). */
|
|
15
10
|
export const ESTIMATE_WORDS_PER_SECOND_CYRILLIC_V4 = 2.18;
|
|
16
|
-
/** Cyrillic on gemini-3.8-flash-tts: 153 words in 71.04 s and 65.68 s, mean 2.24, rounded down (#453). */
|
|
17
11
|
export const ESTIMATE_WORDS_PER_SECOND_CYRILLIC_GOOGLE = 2.2;
|
|
18
|
-
/** Cyrillic pace for models with their own measurement; any other model reads at the script family's pace. */
|
|
19
12
|
const CYRILLIC_WORDS_PER_SECOND_BY_MODEL = {
|
|
20
13
|
eleven_v4: ESTIMATE_WORDS_PER_SECOND_CYRILLIC_V4,
|
|
21
14
|
[GOOGLE_TTS_MODEL]: ESTIMATE_WORDS_PER_SECOND_CYRILLIC_GOOGLE,
|
|
22
15
|
};
|
|
23
|
-
/** Only make_ugc admission names the model; without it the script family alone sets the pace. */
|
|
24
16
|
export function estimateWordsPerSecond(script, model) {
|
|
25
17
|
if (detectScriptFamily(script) !== "cyrillic")
|
|
26
18
|
return ESTIMATE_WORDS_PER_SECOND;
|
|
@@ -29,24 +21,33 @@ export function estimateWordsPerSecond(script, model) {
|
|
|
29
21
|
: undefined;
|
|
30
22
|
return measured ?? ESTIMATE_WORDS_PER_SECOND_CYRILLIC;
|
|
31
23
|
}
|
|
32
|
-
/** A language whose words are longer than English ones is paced by characters, not words: a Turkish word is a fifth longer, so words/s ran */
|
|
33
|
-
/** its takes short. Delivered takes of Latin script read at 15.48 characters/s untrimmed (46 takes, median) and 16.95 trimmed (8). */
|
|
34
24
|
export const ESTIMATE_CHARS_PER_SECOND_LATIN = 15.5;
|
|
35
|
-
/** A take cut with pause_trim reads 9% faster: 16.95 against 15.48 characters/s. */
|
|
36
25
|
export const PAUSE_TRIM_PACE_FACTOR = 1.09;
|
|
37
|
-
/** The pace of a language against English, from the catalog sample of each (one sentence read by 10 voices, median characters/s over English's 15.1). */
|
|
38
26
|
export const LATIN_LANGUAGE_PACE = {
|
|
39
27
|
cs: 0.82, da: 0.97, de: 0.93, es: 0.91, fi: 0.89, fil: 0.8, fr: 1.08, hr: 0.87, hu: 0.93, id: 0.86, it: 1, ms: 0.92, nl: 1.01,
|
|
40
28
|
no: 0.91, pl: 0.9, pt: 0.92, ro: 0.84, sk: 0.9, sv: 0.91, tr: 0.86, vi: 1.05,
|
|
41
29
|
};
|
|
42
|
-
/** The catalog language of a voice named in a pace and measured in LATIN_LANGUAGE_PACE; English and unknown voices have none. */
|
|
43
30
|
const measuredLanguageOf = (voice) => {
|
|
44
31
|
const language = voice === undefined ? undefined : /^([a-z]{2,3})_/.exec(voice)?.[1];
|
|
45
32
|
return language !== undefined && Object.hasOwn(LATIN_LANGUAGE_PACE, language) ? language : undefined;
|
|
46
33
|
};
|
|
47
|
-
|
|
48
|
-
|
|
34
|
+
export const MEASURED_VOICE_CHARS_PER_WORD = 5.77;
|
|
35
|
+
export const SENTENCE_BREAK_SEC = 0.62;
|
|
36
|
+
export function sentenceBreaks(script) {
|
|
37
|
+
const sentences = script.trim().split(/(?<=[.!?])\s+/).filter(Boolean);
|
|
38
|
+
return sentences.slice(0, -1).filter(sentence => countWords(sentence) >= 2).length;
|
|
39
|
+
}
|
|
40
|
+
function measuredVoiceSec(script, model, pace) {
|
|
41
|
+
const measured = pace?.pauseTrim ? measuredPaceOf(pace.voice) : undefined;
|
|
42
|
+
if (!measured || (model ?? DEFAULT_TTS_MODEL) !== VOICE_PACE.model || !isEnglishScript(script, detectScriptFamily(script) === "latin"))
|
|
43
|
+
return undefined;
|
|
44
|
+
const chars = Array.from(script.replace(/\s+/g, " ").trim()).length;
|
|
45
|
+
return Math.max(1, Math.ceil(chars / (measured.words_per_second * MEASURED_VOICE_CHARS_PER_WORD) + SENTENCE_BREAK_SEC * sentenceBreaks(script) - 1e-9));
|
|
46
|
+
}
|
|
49
47
|
export function estimateDurationSec(script, model, pace) {
|
|
48
|
+
const voiced = measuredVoiceSec(script, model, pace);
|
|
49
|
+
if (voiced !== undefined)
|
|
50
|
+
return voiced;
|
|
50
51
|
const trim = pace?.pauseTrim ? PAUSE_TRIM_PACE_FACTOR : 1;
|
|
51
52
|
const language = measuredLanguageOf(pace?.voice);
|
|
52
53
|
if (language !== undefined && detectScriptFamily(script) === "latin") {
|
|
@@ -54,4 +55,3 @@ export function estimateDurationSec(script, model, pace) {
|
|
|
54
55
|
}
|
|
55
56
|
return Math.max(1, Math.round(countWords(script) / (estimateWordsPerSecond(script, model) * trim)));
|
|
56
57
|
}
|
|
57
|
-
//# sourceMappingURL=pacing.js.map
|