@clipwright/core 0.60.0 → 0.62.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.d.ts +27 -0
- package/dist/ad-guide.js +7 -2
- package/dist/ad-ids.d.ts +3 -0
- package/dist/ad-ids.js +4 -0
- package/dist/ad-pause-trim.d.ts +0 -5
- package/dist/ad-pause-trim.js +0 -8
- package/dist/ads.d.ts +145 -0
- package/dist/ads.js +56 -0
- package/dist/api-failure.d.ts +6 -44
- package/dist/api-failure.js +16 -67
- 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/diy-next.d.ts +18 -0
- package/dist/diy-next.js +13 -0
- 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-music.d.ts +397 -0
- package/dist/edit-music.js +77 -0
- 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 +11 -21
- package/dist/errors.d.ts +29 -43
- package/dist/errors.js +18 -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 +4 -0
- package/dist/index.js +4 -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 +9 -11
- package/dist/output-provenance.d.ts +0 -4
- package/dist/output-provenance.js +0 -5
- package/dist/own-agent-price.d.ts +21 -22
- package/dist/own-agent-price.js +34 -25
- package/dist/own-agent-runs.d.ts +351 -11
- package/dist/own-agent-runs.js +144 -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 +24 -12
- package/dist/templates/sounds.js +2 -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/live-shot-kinds.js
CHANGED
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
import { lexicalTokens } from "./semantic-inserts.js";
|
|
2
2
|
import { layerWordRange } from "./ugc-layers.js";
|
|
3
|
-
/** Live shots (#1103): what the actor does on some words of the script, drawn by the engine of the shot's kind. */
|
|
4
3
|
export const LIVE_SHOT_KINDS = ["talking", "talking_action", "action"];
|
|
5
|
-
/** The look of the cuts into and out of a live shot (#1129); whoosh is a cut with the whoosh sound. */
|
|
6
4
|
export const LIVE_SHOT_TRANSITIONS = ["cut", "flash", "light_leak", "whoosh"];
|
|
7
|
-
/** Where a live shot's product sits (#1146): in the actor's hand or beside them. */
|
|
8
5
|
export const LIVE_SHOT_PRODUCT_PLACEMENTS = ["hand", "beside"];
|
|
9
|
-
/** How much wider than the actor's view a shot's first frame is drawn (#1175 S7): waist-up with the hands, or head to feet. */
|
|
10
6
|
export const LIVE_SHOT_FRAMINGS = ["wide", "full"];
|
|
11
|
-
/** A shot's product placement: `true` is the hand, as before #1146; absent or `false` shows no product. */
|
|
12
7
|
export function liveShotProductPlacement(shot) {
|
|
13
8
|
return shot.product === true ? "hand" : shot.product ? shot.product.placement : undefined;
|
|
14
9
|
}
|
|
15
|
-
/** A talking shot with a pose (#1536): it names its first frame, its place or the product, and starts from its own picture as a talking_action */
|
|
16
|
-
/** shot does. A talking shot that names none of them is the presenter as before. */
|
|
17
10
|
export function talkingPose(shot) {
|
|
18
11
|
return shot.kind === "talking" && (shot.start !== undefined || shot.setup !== undefined || liveShotProductPlacement(shot) !== undefined);
|
|
19
12
|
}
|
|
20
|
-
/** Ways an action brings the product into the hand (#1524), in each language a script may be written in: a verb and, a few words on, where the */
|
|
21
|
-
/** product comes from. Such a shot starts with empty hands, or the clip shows a second product. */
|
|
22
13
|
const LETTER_BEFORE = "(?<![\\p{L}\\p{N}])", LETTER_AFTER = "(?![\\p{L}\\p{N}])", WORDS = (most) => `(?:\\s+[\\p{L}'’-]+){0,${most}}?`;
|
|
23
14
|
const phrase = (source) => new RegExp(source, "iu");
|
|
24
15
|
const either = (words) => `${LETTER_BEFORE}(?:${words.join("|")})${LETTER_AFTER}`;
|
|
@@ -66,41 +57,30 @@ const FETCH_PHRASES = Object.freeze({
|
|
|
66
57
|
phrase(`\\p{L}+(?:dan|den|tan|ten)\\s+(?:\\p{L}+\\s+)?(?:çıkar|çıkarır|çıkarıyor|çıkardı|alır|alıyor|aldı)${LETTER_AFTER}`),
|
|
67
58
|
],
|
|
68
59
|
});
|
|
69
|
-
/** Whether an action's words take the product out of somewhere: a bag, a box, a shelf, its packaging. */
|
|
70
60
|
export function fetchesProduct(action) {
|
|
71
61
|
return Object.values(FETCH_PHRASES).some(phrases => phrases.some(pattern => pattern.test(action)));
|
|
72
62
|
}
|
|
73
|
-
/** A shot whose product goes in the hand by its own free action: it starts with empty hands. A shot written beat by beat says its own start. */
|
|
74
63
|
export function liveShotFetchesProduct(shot) {
|
|
75
64
|
return shot.kind !== "talking" && shot.shot === undefined && liveShotProductPlacement(shot) === "hand" && fetchesProduct(shot.action ?? "");
|
|
76
65
|
}
|
|
77
|
-
/** One `warnings[]` line per such shot, as the quote and the run say it. */
|
|
78
66
|
export function fetchedProductWarnings(shots) {
|
|
79
67
|
return shots.filter(liveShotFetchesProduct)
|
|
80
68
|
.map(shot => `shot "${shot.id}": starts with empty hands and the product beside them, because its action takes the product out`);
|
|
81
69
|
}
|
|
82
|
-
/** A run admitted from #1521 on stores this beside its input: its talking_action shots between the edges may be hands under the voice-over. */
|
|
83
70
|
export const TALKING_ACTION_VOICE_OVER = "voice_over";
|
|
84
|
-
/** Whether a stored run's talking_action shots follow that rule; a run stored without the mark keeps the take it was admitted with. */
|
|
85
71
|
export function talkingActionVoiceOver(storedInput) {
|
|
86
72
|
return storedInput !== null && typeof storedInput === "object" &&
|
|
87
73
|
storedInput.talking_action_take === TALKING_ACTION_VOICE_OVER;
|
|
88
74
|
}
|
|
89
|
-
/** Whether a stored run's edited first frames take the product from one product sheet (#1536 S2); a run stored without the mark keeps the photo. */
|
|
90
75
|
export function productSheetMarked(storedInput) {
|
|
91
76
|
return storedInput !== null && typeof storedInput === "object" && storedInput.product_sheet === true;
|
|
92
77
|
}
|
|
93
|
-
/** Whether a stored run's posed talking and talking_action takes lip-sync our audio from their first frame and follow its motion prompt */
|
|
94
|
-
/** (#1543); a run stored without the mark keeps the takes it was admitted with. */
|
|
95
78
|
export function lipsyncMotionMarked(storedInput) {
|
|
96
79
|
return storedInput !== null && typeof storedInput === "object" && storedInput.lipsync_motion === true;
|
|
97
80
|
}
|
|
98
|
-
/** The shots that mark asks for: a talking shot with a pose (#1536) or a talking_action shot. A plain talking shot stays the presenter. */
|
|
99
81
|
export function lipsyncMotionShot(shot) {
|
|
100
82
|
return shot.kind === "talking_action" || talkingPose(shot);
|
|
101
83
|
}
|
|
102
|
-
/** The talking_action shots drawn as a close-up of the hands with the product while their words play as voice-over (#1521): those between the */
|
|
103
|
-
/** script's first and last sentence that hold the product, with nobody beside the presenter. The others keep the presenter talking. */
|
|
104
84
|
export function handsInsertShots(script, shots) {
|
|
105
85
|
const tokens = lexicalTokens(script), sentences = script.trim().split(/(?<=[.!?…])\s+/u);
|
|
106
86
|
const first = lexicalTokens(sentences[0] ?? "").length, last = lexicalTokens(sentences.at(-1) ?? "").length;
|
|
@@ -111,32 +91,36 @@ export function handsInsertShots(script, shots) {
|
|
|
111
91
|
return typeof range !== "string" && range.startWord >= first && range.coverWord <= tokens.length - last;
|
|
112
92
|
}).map(shot => shot.id));
|
|
113
93
|
}
|
|
114
|
-
/** The silent shots a run draws on Gemini Omni 1.2 (#1535): every action shot, and every talking_action hands insert. */
|
|
115
94
|
export function omniShotIds(script, shots) {
|
|
116
95
|
return new Set([...shots.filter(shot => shot.kind === "action").map(shot => shot.id), ...handsInsertShots(script, shots)]);
|
|
117
96
|
}
|
|
118
|
-
/** Whether a stored run draws those shots on Gemini Omni 1.2 (#1535); a run stored without the mark keeps the takes it was admitted with. */
|
|
119
97
|
export function omniShotsMarked(storedInput) {
|
|
120
98
|
return storedInput !== null && typeof storedInput === "object" && storedInput.omni_shots === true;
|
|
121
99
|
}
|
|
122
|
-
|
|
100
|
+
export function seedanceShotIds(input) {
|
|
101
|
+
if (!input.seedance_shots?.length || !omniShotsMarked(input) || !input.script || !input.shots?.length)
|
|
102
|
+
return new Set();
|
|
103
|
+
const silent = omniShotIds(input.script, input.shots);
|
|
104
|
+
return new Set(input.seedance_shots.filter(id => silent.has(id)));
|
|
105
|
+
}
|
|
106
|
+
const PRINT_WORDS = /\b(?:labels?|print(?:ed|ing)?|logos?|lettering|wordmark|brand name|pack ?shots?)\b/iu;
|
|
107
|
+
export const shotNamesPrint = (shot) => PRINT_WORDS.test(`${shot.start ?? ""} ${shot.action ?? ""}`);
|
|
108
|
+
export function seedanceShotModels(input) {
|
|
109
|
+
const low = new Set(input.resolution === "720p" ? input.seedance_no_text_shots ?? [] : []);
|
|
110
|
+
return new Map([...seedanceShotIds(input)].map(id => [id, low.has(id) ? "seedance_no_text" : "seedance"]));
|
|
111
|
+
}
|
|
123
112
|
export function voiceOverShotWarnings(script, shots) {
|
|
124
113
|
return [...handsInsertShots(script, shots)].map(id => `shot "${id}": shows the presenter's hands with the product up close while its words ` +
|
|
125
114
|
"play as voice-over");
|
|
126
115
|
}
|
|
127
|
-
/** The most people a live shot's cast adds beside the actor (#1192). */
|
|
128
116
|
export const MAX_SHOT_CAST = 3;
|
|
129
117
|
export const CAST_INSERT_ID = "cast";
|
|
130
|
-
/** A cast picture's key in a run: one per picture. */
|
|
131
118
|
export function castSlotOf(assetId) {
|
|
132
119
|
return `c${BigInt(`0x${assetId.replace(/^ast_/, "")}`).toString(36)}`;
|
|
133
120
|
}
|
|
134
|
-
/** Who a shot's cast is, in order: shots of one setup share one first frame, so they name one cast. */
|
|
135
121
|
export function liveShotCastKey(shot) {
|
|
136
122
|
return JSON.stringify((shot.cast ?? []).map(person => [person.asset_id, person.role.trim().replace(/\s+/g, " ")]));
|
|
137
123
|
}
|
|
138
|
-
/** The place a shot is drawn in, one per distinct setup; shots without one share the actor's own photo setting (""). */
|
|
139
124
|
export function liveShotSetupKey(shot) {
|
|
140
125
|
return shot.setup?.trim().replace(/\s+/g, " ") ?? "";
|
|
141
126
|
}
|
|
142
|
-
//# sourceMappingURL=live-shot-kinds.js.map
|
|
@@ -8,7 +8,6 @@ export declare const LONG_FORM_LAUNCH_TARIFF: Readonly<{
|
|
|
8
8
|
readonly rounding: "ceil_aggregate_seconds";
|
|
9
9
|
readonly failurePolicy: "verified_delivery_only";
|
|
10
10
|
}>;
|
|
11
|
-
/** A face-seconds tariff, as `calculateFaceCharge` prices it; a parts tariff goes through `calculatePartsCharge`. */
|
|
12
11
|
export type FaceSecondsTariff = Exclude<FaceBillingTariff, {
|
|
13
12
|
version: 3;
|
|
14
13
|
}>;
|
|
@@ -16,17 +15,13 @@ export declare function faceTariffRate(tariff: FaceSecondsTariff): number;
|
|
|
16
15
|
export declare function faceTariffPricingVersion(tariff: FaceBillingTariff): string;
|
|
17
16
|
export declare function faceTariffMinimum(tariff: FaceBillingTariff): number;
|
|
18
17
|
export declare function isDeliveryOnlyFaceTariff(tariff: FaceBillingTariff): boolean;
|
|
19
|
-
/** Frames covered by the union of the intervals: an overlap counts once. */
|
|
20
18
|
export declare function unionFaceFrames(intervals: readonly FaceBillingInterval[]): bigint;
|
|
21
|
-
/** Exact union and one aggregate rounding; customer failure policy is applied by settlement. */
|
|
22
19
|
export declare function calculateFaceCharge(intervals: readonly FaceBillingInterval[], fps: number, tariff: FaceBillingTariff): {
|
|
23
20
|
faceFrames: number;
|
|
24
21
|
billableFaceSeconds: number;
|
|
25
22
|
credits: number;
|
|
26
23
|
minimumApplied: boolean;
|
|
27
24
|
};
|
|
28
|
-
/** Reserve headroom for speech shape: a NAMED bound, not a derived number, since the */
|
|
29
|
-
/** honest product of three terms varies by layout. */
|
|
30
25
|
export declare const FACE_RESERVE_SHAPE_MARGIN = 1.15;
|
|
31
26
|
export declare const longFormQuoteSchema: z.ZodReadonly<z.ZodObject<{
|
|
32
27
|
pricingVersion: z.ZodString;
|
|
@@ -16,7 +16,6 @@ export function faceTariffMinimum(tariff) {
|
|
|
16
16
|
export function isDeliveryOnlyFaceTariff(tariff) {
|
|
17
17
|
return tariff.version !== 1 && tariff.failurePolicy === "verified_delivery_only";
|
|
18
18
|
}
|
|
19
|
-
/** Frames covered by the union of the intervals: an overlap counts once. */
|
|
20
19
|
export function unionFaceFrames(intervals) {
|
|
21
20
|
const sorted = z.array(faceBillingIntervalSchema).parse(intervals)
|
|
22
21
|
.sort((a, b) => a.startFrame - b.startFrame || a.endFrame - b.endFrame);
|
|
@@ -32,10 +31,8 @@ export function unionFaceFrames(intervals) {
|
|
|
32
31
|
}
|
|
33
32
|
return frames;
|
|
34
33
|
}
|
|
35
|
-
/** Exact union and one aggregate rounding; customer failure policy is applied by settlement. */
|
|
36
34
|
export function calculateFaceCharge(intervals, fps, tariff) {
|
|
37
35
|
const terms = faceBillingTariffSchema.parse(tariff);
|
|
38
|
-
// A parts tariff prices engines, the video's length and stills, which these arguments do not carry.
|
|
39
36
|
if (terms.version === 3)
|
|
40
37
|
throw new TypeError("a parts tariff is priced by calculatePartsCharge");
|
|
41
38
|
const frameRate = BigInt(z.number().int().positive().max(Number.MAX_SAFE_INTEGER).parse(fps));
|
|
@@ -49,8 +46,6 @@ export function calculateFaceCharge(intervals, fps, tariff) {
|
|
|
49
46
|
return { faceFrames: Number(frames), billableFaceSeconds: Number(seconds), credits: Number(credits),
|
|
50
47
|
minimumApplied: usageCredits < minimum };
|
|
51
48
|
}
|
|
52
|
-
/** Reserve headroom for speech shape: a NAMED bound, not a derived number, since the */
|
|
53
|
-
/** honest product of three terms varies by layout. */
|
|
54
49
|
export const FACE_RESERVE_SHAPE_MARGIN = 1.15;
|
|
55
50
|
const credits = z.number().int().nonnegative().max(2_147_483_647);
|
|
56
51
|
const pricing = {
|
|
@@ -73,4 +68,3 @@ export const longFormBillingSummarySchema = z.object({
|
|
|
73
68
|
finalCreditsCharged: credits,
|
|
74
69
|
minimumApplied: z.boolean(),
|
|
75
70
|
}).strict().readonly();
|
|
76
|
-
//# sourceMappingURL=long-form-pricing.js.map
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
/** Test ceiling, not a claim that this profile has passed live qualification. */
|
|
2
1
|
export declare const LONG_FORM_QUALIFICATION_MAX_DURATION_SEC = 327;
|
|
3
|
-
/** Slot cap of a frozen timeline; MAX_INSERTS is derived from it, so the numbers */
|
|
4
|
-
/** cannot drift. */
|
|
5
2
|
export declare const RESOLVED_TIMELINE_MAX_SLOTS = 200;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
/** Test ceiling, not a claim that this profile has passed live qualification. */
|
|
2
1
|
export const LONG_FORM_QUALIFICATION_MAX_DURATION_SEC = 327;
|
|
3
|
-
/** Slot cap of a frozen timeline; MAX_INSERTS is derived from it, so the numbers */
|
|
4
|
-
/** cannot drift. */
|
|
5
2
|
export const RESOLVED_TIMELINE_MAX_SLOTS = 200;
|
|
6
|
-
//# sourceMappingURL=long-form-profile.js.map
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type ResolvedTimeline } from "./resolved-timeline.js";
|
|
3
|
-
/** How a long-form run fills what a picture leaves of the canvas (`makeUgcInput.background`). */
|
|
4
3
|
export declare const LONG_FORM_BACKGROUNDS: readonly ["white", "blur", "contain"];
|
|
5
4
|
export type LongFormBackground = (typeof LONG_FORM_BACKGROUNDS)[number];
|
|
6
|
-
/** A picture's zoom, as `makeUgcInput` takes it. */
|
|
7
5
|
export declare const longFormImageMotion: z.ZodObject<{
|
|
8
6
|
direction: z.ZodEnum<{
|
|
9
7
|
in: "in";
|
|
@@ -12,7 +10,6 @@ export declare const longFormImageMotion: z.ZodObject<{
|
|
|
12
10
|
amount: z.ZodNumber;
|
|
13
11
|
}, z.core.$strict>;
|
|
14
12
|
export type LongFormImageMotion = z.infer<typeof longFormImageMotion>;
|
|
15
|
-
/** What a render needs beyond the timeline, copied from the root's input at admission; a position absent from the motions does not move. */
|
|
16
13
|
export declare const longFormRevisionRender: z.ZodObject<{
|
|
17
14
|
aspect_ratio: z.ZodEnum<{
|
|
18
15
|
"16:9": "16:9";
|
|
@@ -35,7 +32,6 @@ export declare const longFormRevisionRender: z.ZodObject<{
|
|
|
35
32
|
}, z.core.$strict>>;
|
|
36
33
|
}, z.core.$strict>;
|
|
37
34
|
export type LongFormRevisionRender = z.infer<typeof longFormRevisionRender>;
|
|
38
|
-
/** The stored input of a `revise_long_form` run: the request as resolved, and what admission froze about it. */
|
|
39
35
|
export declare const longFormRevisionInput: z.ZodObject<{
|
|
40
36
|
input_mode: z.ZodLiteral<"revision">;
|
|
41
37
|
revision: z.ZodObject<{
|
|
@@ -171,7 +167,6 @@ export declare const longFormRevisionInput: z.ZodObject<{
|
|
|
171
167
|
}, z.core.$strict>;
|
|
172
168
|
}, z.core.$strict>;
|
|
173
169
|
export type LongFormRevisionInput = z.infer<typeof longFormRevisionInput>;
|
|
174
|
-
/** One changed visual shot, drawn above the source tiling over its whole span. A cover has no motion; an insert keeps its slot's. */
|
|
175
170
|
export declare const longFormOverlay: z.ZodObject<{
|
|
176
171
|
shot_id: z.ZodString;
|
|
177
172
|
start_frame: z.ZodNumber;
|
|
@@ -235,16 +230,12 @@ declare const recordShape: z.ZodObject<{
|
|
|
235
230
|
}, z.core.$strict>>;
|
|
236
231
|
}, z.core.$strict>>;
|
|
237
232
|
}, z.core.$strict>;
|
|
238
|
-
/** What a delivered long-form revision rendered: the source tiling rebound to its own run and keys, and its overlays. */
|
|
239
233
|
export type LongFormRevisionRecord = Omit<z.infer<typeof recordShape>, "base"> & {
|
|
240
234
|
base: ResolvedTimeline;
|
|
241
235
|
};
|
|
242
|
-
/** Where a long-form revision's record is stored, and the most bytes it may take there. */
|
|
243
236
|
export declare const longFormRevisionRecordKey: (id: string) => string;
|
|
244
237
|
export declare const LONG_FORM_REVISION_RECORD_MAX_BYTES = 512000;
|
|
245
|
-
/** Whether a key names an object of this run: a plain path under `runs/<runId>/`, with no segment to climb out by. */
|
|
246
238
|
export declare function longFormOwnKey(key: string, id: string): boolean;
|
|
247
|
-
/** The stored record of the run being read, checked against that run and against itself: every key and overlay belong to it. */
|
|
248
239
|
export declare function readLongFormRevisionRecord(stored: string | Uint8Array, expected: {
|
|
249
240
|
runId: string;
|
|
250
241
|
accountId: string;
|
|
@@ -7,26 +7,20 @@ import { EDIT_MAX_SHOTS } from "./edit-rules.js";
|
|
|
7
7
|
import { readResolvedTimeline } from "./resolved-timeline.js";
|
|
8
8
|
import { runId } from "./runs.js";
|
|
9
9
|
import { ASPECT_RATIOS } from "./skills.js";
|
|
10
|
-
// A revision of a long-form run (#604 S7b): the input its admission stores, and the record its render writes.
|
|
11
|
-
/** How a long-form run fills what a picture leaves of the canvas (`makeUgcInput.background`). */
|
|
12
10
|
export const LONG_FORM_BACKGROUNDS = ["white", "blur", "contain"];
|
|
13
|
-
/** A picture's zoom, as `makeUgcInput` takes it. */
|
|
14
11
|
export const longFormImageMotion = z.strictObject({ direction: z.enum(["in", "out"]), amount: z.number().min(0).lt(1) });
|
|
15
12
|
const RATIO_PARTS = { "16:9": [16, 9], "9:16": [9, 16], "1:1": [1, 1] };
|
|
16
|
-
/** What a render needs beyond the timeline, copied from the root's input at admission; a position absent from the motions does not move. */
|
|
17
13
|
export const longFormRevisionRender = z.strictObject({
|
|
18
14
|
aspect_ratio: z.enum(ASPECT_RATIOS), width: frameCount, height: frameCount,
|
|
19
15
|
background: z.enum(LONG_FORM_BACKGROUNDS).nullable(),
|
|
20
16
|
motion_by_position: z.record(z.string().regex(/^[1-9][0-9]{0,3}$/), longFormImageMotion),
|
|
21
17
|
}).refine((render) => render.width * RATIO_PARTS[render.aspect_ratio][1] === render.height * RATIO_PARTS[render.aspect_ratio][0], { message: "the canvas does not have the shape of its aspect ratio" });
|
|
22
|
-
/** The stored input of a `revise_long_form` run: the request as resolved, and what admission froze about it. */
|
|
23
18
|
export const longFormRevisionInput = z.strictObject({
|
|
24
19
|
input_mode: z.literal("revision"),
|
|
25
20
|
revision: z.strictObject({ source_run_id: runId, document: editDocument }),
|
|
26
21
|
resolved_revision: z.strictObject({ root_run_id: runId, summary: editSummaryWire, billing: revisionBilling, render: longFormRevisionRender }),
|
|
27
22
|
});
|
|
28
23
|
const digest = z.string().regex(/^[a-f0-9]{64}$/);
|
|
29
|
-
/** One changed visual shot, drawn above the source tiling over its whole span. A cover has no motion; an insert keeps its slot's. */
|
|
30
24
|
export const longFormOverlay = z.strictObject({
|
|
31
25
|
shot_id: shotId, start_frame: frame, end_frame: frameCount,
|
|
32
26
|
object: z.strictObject({ key: z.string().min(1).max(1024), sha256: digest, bytes: frameCount, width: frameCount, height: frameCount,
|
|
@@ -40,15 +34,12 @@ const recordShape = z.strictObject({
|
|
|
40
34
|
base: z.unknown(),
|
|
41
35
|
visual: z.array(longFormOverlay).max(EDIT_MAX_SHOTS),
|
|
42
36
|
});
|
|
43
|
-
/** Where a long-form revision's record is stored, and the most bytes it may take there. */
|
|
44
37
|
export const longFormRevisionRecordKey = (id) => `runs/${id}/long-form-revision.v1.json`;
|
|
45
38
|
export const LONG_FORM_REVISION_RECORD_MAX_BYTES = 512_000;
|
|
46
|
-
/** Whether a key names an object of this run: a plain path under `runs/<runId>/`, with no segment to climb out by. */
|
|
47
39
|
export function longFormOwnKey(key, id) {
|
|
48
40
|
const prefix = `runs/${id}/`;
|
|
49
41
|
return key.startsWith(prefix) && /^[\w-]+(?:\/[\w-]+)*(?:\.[a-z0-9]+)+$/.test(key.slice(prefix.length));
|
|
50
42
|
}
|
|
51
|
-
/** The stored record of the run being read, checked against that run and against itself: every key and overlay belong to it. */
|
|
52
43
|
export function readLongFormRevisionRecord(stored, expected) {
|
|
53
44
|
const bytes = typeof stored === "string" ? new TextEncoder().encode(stored) : stored;
|
|
54
45
|
if (bytes.length > LONG_FORM_REVISION_RECORD_MAX_BYTES) {
|
|
@@ -83,7 +74,6 @@ export function readLongFormRevisionRecord(stored, expected) {
|
|
|
83
74
|
failures.push(`${overlay.shot_id} is a clip`);
|
|
84
75
|
if (!slot && overlay.motion !== null)
|
|
85
76
|
failures.push(`${overlay.shot_id} is a cover and does not move`);
|
|
86
|
-
// No presenter time was recorded under an insert, so its overlay keeps every frame of its slot.
|
|
87
77
|
if (slot?.kind === "media" && (overlay.start_frame > slot.startFrame || overlay.end_frame < slot.endFrame)) {
|
|
88
78
|
failures.push(`${overlay.shot_id} leaves part of its slot uncovered`);
|
|
89
79
|
}
|
|
@@ -101,4 +91,3 @@ export function readLongFormRevisionRecord(stored, expected) {
|
|
|
101
91
|
throw new Error(`invalid long-form revision record: ${failures.join("; ")}`);
|
|
102
92
|
return record;
|
|
103
93
|
}
|
|
104
|
-
//# sourceMappingURL=long-form-revision.js.map
|
package/dist/markdown-quote.d.ts
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/** Third-party text in a display_markdown line or table cell (#990): one line, cut, quoted, a pipe as "/" so the table keeps its columns, every */
|
|
2
|
-
/** character CommonMark gives a meaning backslash-escaped, and GFM's bare links (scheme://, www., an @) broken by an escape, so it shows as typed. */
|
|
3
1
|
export declare function quoteThirdParty(text: string, max?: number): string;
|
package/dist/markdown-quote.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** Third-party text in a display_markdown line or table cell (#990): one line, cut, quoted, a pipe as "/" so the table keeps its columns, every */
|
|
2
|
-
/** character CommonMark gives a meaning backslash-escaped, and GFM's bare links (scheme://, www., an @) broken by an escape, so it shows as typed. */
|
|
3
1
|
export function quoteThirdParty(text, max = 90) {
|
|
4
2
|
const chars = Array.from(text.replace(/\s+/g, " ").replace(/\|/g, "/").trim());
|
|
5
3
|
if (chars.length === 0)
|
|
@@ -7,4 +5,3 @@ export function quoteThirdParty(text, max = 90) {
|
|
|
7
5
|
const kept = chars.length > max ? `${chars.slice(0, max - 1).join("")}…` : chars.join("");
|
|
8
6
|
return `“${kept.replace(/[\\`*_[\]()<>#!~@]|:(?=\/\/)/g, "\\$&").replace(/(www)\./gi, "$1\\.")}”`;
|
|
9
7
|
}
|
|
10
|
-
//# sourceMappingURL=markdown-quote.js.map
|
package/dist/mascots.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** The poses a mascot holds: the nine an explainer's hero takes. */
|
|
3
2
|
export declare const MASCOT_POSES: readonly ["up", "palm", "point", "celebrate", "surprise", "think", "shrug", "wink", "neutral"];
|
|
4
3
|
export type MascotPoseName = (typeof MASCOT_POSES)[number];
|
|
5
|
-
/** One cut-out pose picture: where its object is stored, its size, and where its face was found (as shares of the picture) when it was. */
|
|
6
4
|
export declare const mascotPose: z.ZodObject<{
|
|
7
5
|
key: z.ZodString;
|
|
8
6
|
bytes: z.ZodNumber;
|
|
@@ -28,7 +26,6 @@ export declare const mascotPose: z.ZodObject<{
|
|
|
28
26
|
photo: z.ZodOptional<z.ZodLiteral<true>>;
|
|
29
27
|
}, z.core.$strict>;
|
|
30
28
|
export type MascotPose = z.infer<typeof mascotPose>;
|
|
31
|
-
/** The saved set: every pose it holds, the neutral always, since the hero shows it wherever a pose is missing. */
|
|
32
29
|
export declare const mascotPoses: z.ZodRecord<z.ZodEnum<{
|
|
33
30
|
celebrate: "celebrate";
|
|
34
31
|
neutral: "neutral";
|
|
@@ -64,7 +61,6 @@ export declare const mascotPoses: z.ZodRecord<z.ZodEnum<{
|
|
|
64
61
|
photo: z.ZodOptional<z.ZodLiteral<true>>;
|
|
65
62
|
}, z.core.$strict>>;
|
|
66
63
|
export type MascotPoses = z.infer<typeof mascotPoses>;
|
|
67
|
-
/** What a run that reuses a mascot carries, pinned by admission: the asset and the poses it held then, so the render reads no other row. */
|
|
68
64
|
export declare const pinnedMascot: z.ZodObject<{
|
|
69
65
|
asset_id: z.ZodString;
|
|
70
66
|
poses: z.ZodRecord<z.ZodEnum<{
|
|
@@ -103,7 +99,6 @@ export declare const pinnedMascot: z.ZodObject<{
|
|
|
103
99
|
}, z.core.$strict>>;
|
|
104
100
|
}, z.core.$strict>;
|
|
105
101
|
export type PinnedMascot = z.infer<typeof pinnedMascot>;
|
|
106
|
-
/** What an asset answer says of a mascot: the poses its set holds, in the composition's order. */
|
|
107
102
|
export declare const mascotSummary: z.ZodObject<{
|
|
108
103
|
poses: z.ZodArray<z.ZodEnum<{
|
|
109
104
|
celebrate: "celebrate";
|
package/dist/mascots.js
CHANGED
|
@@ -1,32 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { assetId } from "./asset-identity.js";
|
|
3
|
-
/** The poses a mascot holds: the nine an explainer's hero takes. */
|
|
4
3
|
export const MASCOT_POSES = ["up", "palm", "point", "celebrate", "surprise", "think", "shrug", "wink", "neutral"];
|
|
5
4
|
const share = z.number().min(0).max(1);
|
|
6
|
-
/** One cut-out pose picture: where its object is stored, its size, and where its face was found (as shares of the picture) when it was. */
|
|
7
5
|
export const mascotPose = z.strictObject({
|
|
8
6
|
key: z.string().min(1).max(300),
|
|
9
|
-
/** The object's size and digest: a run that reuses the pose reads it held to both. */
|
|
10
7
|
bytes: z.number().int().positive().max(32 * 1024 ** 2),
|
|
11
8
|
sha256: z.string().regex(/^[a-f0-9]{64}$/),
|
|
12
9
|
width: z.number().int().positive(),
|
|
13
10
|
height: z.number().int().positive(),
|
|
14
|
-
/** `ink`: the closed mouth's line colour, present when the picture carries no mouth of its own. */
|
|
15
11
|
mouth: z.strictObject({ x: share, y: share, w: share, ink: z.string().regex(/^#[0-9A-F]{6}$/).optional() }).optional(),
|
|
16
12
|
eyes: z.strictObject({ points: z.array(z.strictObject({ x: share, y: share })).min(1).max(4), w: share, h: share, skin: z.string().min(1).max(40) }).optional(),
|
|
17
|
-
/** The pose's saved face rig, an object key; absent for a mascot made without one. */
|
|
18
13
|
rig: z.string().min(1).max(300).optional(),
|
|
19
|
-
/** A photo of a person, kept as one on request: no mouth is drawn or moved on it. */
|
|
20
14
|
photo: z.literal(true).optional(),
|
|
21
15
|
});
|
|
22
|
-
/** The saved set: every pose it holds, the neutral always, since the hero shows it wherever a pose is missing. */
|
|
23
16
|
export const mascotPoses = z.partialRecord(z.enum(MASCOT_POSES), mascotPose)
|
|
24
17
|
.refine((poses) => poses.neutral !== undefined, { message: "a mascot holds its neutral pose" });
|
|
25
|
-
/** What a run that reuses a mascot carries, pinned by admission: the asset and the poses it held then, so the render reads no other row. */
|
|
26
18
|
export const pinnedMascot = z.strictObject({ asset_id: assetId, poses: mascotPoses });
|
|
27
|
-
/** What an asset answer says of a mascot: the poses its set holds, in the composition's order. */
|
|
28
19
|
export const mascotSummary = z.strictObject({
|
|
29
20
|
poses: z.array(z.enum(MASCOT_POSES)).min(1),
|
|
30
21
|
character: z.string().min(1).nullable(),
|
|
31
22
|
});
|
|
32
|
-
//# sourceMappingURL=mascots.js.map
|
package/dist/max-credits.d.ts
CHANGED
package/dist/max-credits.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** The optional per-call spend ceiling of every paid call (#942). A free call takes it and ignores it. */
|
|
3
2
|
export const maxCreditsField = z.number().int().nonnegative().optional().describe("The most credits this call may cost: the run is never charged more, even when its measured cost comes out higher. When the " +
|
|
4
3
|
"run's reserve is above it, the call is refused with max_credits_exceeded before anything is reserved or started, and nothing is " +
|
|
5
4
|
"charged; at or above it, the call runs as usual.");
|
|
6
|
-
//# sourceMappingURL=max-credits.js.map
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { type TemplateKind } from "./templates/index.js";
|
|
2
|
-
/** The templates catalog in fewer words: every kind's data fields as the full catalog names them. */
|
|
3
2
|
export declare function compactTemplateCatalogText(kinds?: readonly TemplateKind[]): string;
|
|
4
|
-
/** quote_ugc's shorter text per field; a field not named keeps the full text REST and OpenAPI carry. */
|
|
5
3
|
export declare const MCP_UGC_DESCRIPTIONS: {
|
|
6
4
|
readonly script: string;
|
|
7
5
|
readonly tts_model: string;
|
|
@@ -2,8 +2,6 @@ import { CAPTION_STYLE_ALIASES } from "./skills.js";
|
|
|
2
2
|
import { offeredTemplateKinds, TEMPLATE_SIZES, templateDataText } from "./templates/index.js";
|
|
3
3
|
import { MAX_OVERLAYS_AT_ONCE } from "./ugc-layers.js";
|
|
4
4
|
import { SCRIPT_LENGTH_DESCRIPTION } from "./voices.js";
|
|
5
|
-
// MCP tools/list stays under the client's 102 KB (#1003), so quote_ugc carries these shorter texts; REST and OpenAPI keep the full ones (#1045).
|
|
6
|
-
/** What each kind is, in a few words, with the rules its data alone does not say; null where its name and data say it all. */
|
|
7
5
|
const TEMPLATE_GISTS = {
|
|
8
6
|
tag: "a short pill; without position it sits in the caption spot",
|
|
9
7
|
lower_third: null,
|
|
@@ -37,7 +35,6 @@ const TEMPLATE_GISTS = {
|
|
|
37
35
|
"picture on swap or gallery only; free",
|
|
38
36
|
};
|
|
39
37
|
const SIZE_FIELD = `, size? ${TEMPLATE_SIZES.join("|")}`;
|
|
40
|
-
/** The templates catalog in fewer words: every kind's data fields as the full catalog names them. */
|
|
41
38
|
export function compactTemplateCatalogText(kinds = offeredTemplateKinds()) {
|
|
42
39
|
const sized = kinds.every(kind => templateDataText(kind).includes(SIZE_FIELD));
|
|
43
40
|
const data = (kind) => (sized ? templateDataText(kind).replace(SIZE_FIELD, "") : templateDataText(kind));
|
|
@@ -62,7 +59,6 @@ const SCRIPT_TEXT = "The words the actor says; required unless segments supplies
|
|
|
62
59
|
"Russian stress: a capital vowel inside a lowercase word (\"потОм\") reaches eleven_v4 and gemini-3.8-flash-tts as the mark U+0301; a " +
|
|
63
60
|
"typed mark is kept; a word-initial capital, all caps or a second capital is left as it is, so write \"Яндекс Еда\", not \"ЯндексЕда\". " +
|
|
64
61
|
"Tell users writing in Russian. eleven_flash_v2_5 and eleven_turbo_v2_5 cost less but misread stress marks.";
|
|
65
|
-
/** quote_ugc's shorter text per field; a field not named keeps the full text REST and OpenAPI carry. */
|
|
66
62
|
export const MCP_UGC_DESCRIPTIONS = {
|
|
67
63
|
script: SCRIPT_TEXT,
|
|
68
64
|
tts_model: "Speech model; omitted, the chosen voice's (list_voices), eleven_v4 for presets, catalog voices and voice_id. eleven_v3 " +
|
|
@@ -113,8 +109,7 @@ export const MCP_UGC_DESCRIPTIONS = {
|
|
|
113
109
|
layout_windows: "Text-anchored presenter reframings: split (9:16 only) or card; no overlap with each other or an insert; needs what " +
|
|
114
110
|
"inserts need. A covered or blurred presenter is billed as face time.",
|
|
115
111
|
end_hold_s: "Seconds the last frame holds after the last word, the presenter frozen and every layer kept; production seconds. Needs " +
|
|
116
|
-
"script and long-form qualification.",
|
|
112
|
+
"script and long-form qualification. Default 0.5 with shots, or with templates or scenes beside inserts, overlays, windows or framing.",
|
|
117
113
|
edit_sounds: "A short sound on every cut (insert, full-frame template, layout window, framing). Needs one of them; template_sounds.edit " +
|
|
118
114
|
"picks it (list_template_sounds). Price unchanged.",
|
|
119
115
|
};
|
|
120
|
-
//# sourceMappingURL=mcp-ugc-descriptions.js.map
|
package/dist/media-timebase.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export declare const CANVAS_FPS = 25;
|
|
2
2
|
export declare const NARRATION_SAMPLE_RATE = 48000;
|
|
3
|
-
/** A duration in canvas frames, rounded up: one frame too few cuts the end of a line, one too many shows a still frame. */
|
|
4
3
|
export declare function secondsToFrames(seconds: number, fps: number): number;
|
|
5
|
-
/** Count only complete source frames; allocating a speech/image slot uses secondsToFrames instead. */
|
|
6
4
|
export declare function completeFrames(seconds: number, fps: number): number;
|
package/dist/media-timebase.js
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
export const CANVAS_FPS = 25;
|
|
2
2
|
export const NARRATION_SAMPLE_RATE = 48_000;
|
|
3
|
-
// The composition keeps its own copy of these two: its bundler resolves no other package.
|
|
4
|
-
// A parity test holds the two copies equal.
|
|
5
|
-
/** A duration in canvas frames, rounded up: one frame too few cuts the end of a line, one too many shows a still frame. */
|
|
6
3
|
export function secondsToFrames(seconds, fps) {
|
|
7
4
|
if (!Number.isFinite(seconds) || seconds <= 0) {
|
|
8
5
|
throw new Error(`secondsToFrames: seconds must be positive, got ${seconds}`);
|
|
9
6
|
}
|
|
10
7
|
const frames = seconds * fps;
|
|
11
8
|
const whole = Math.round(frames);
|
|
12
|
-
// Floating-point multiplication can turn exactly seven frames into 7.000000000000001.
|
|
13
9
|
return whole > 0 && Math.abs(frames - whole) <= Number.EPSILON * Math.max(1, Math.abs(frames))
|
|
14
10
|
? whole : Math.ceil(frames);
|
|
15
11
|
}
|
|
16
|
-
/** Count only complete source frames; allocating a speech/image slot uses secondsToFrames instead. */
|
|
17
12
|
export function completeFrames(seconds, fps) {
|
|
18
13
|
if (!Number.isFinite(seconds) || seconds <= 0 || !Number.isSafeInteger(fps) || fps <= 0) {
|
|
19
14
|
throw new Error("invalid measured duration or frame rate");
|
|
@@ -24,4 +19,3 @@ export function completeFrames(seconds, fps) {
|
|
|
24
19
|
throw new Error("source shorter than one frame");
|
|
25
20
|
return frames;
|
|
26
21
|
}
|
|
27
|
-
//# sourceMappingURL=media-timebase.js.map
|
package/dist/motion-styles.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { type AnchoredItem, type WordRange } from "./ugc-layers.js";
|
|
2
2
|
export declare const MOTION_STYLE_IDS: readonly ["line_boil", "sketchbook", "paper_cutout", "fabric", "pixel", "comic", "zine", "film", "glass", "clay", "engraving"];
|
|
3
3
|
export type MotionStyleId = (typeof MOTION_STYLE_IDS)[number];
|
|
4
|
-
/** A style, or `plain`: a span drawn plain inside a styled video. */
|
|
5
4
|
export declare const MOTION_STYLE_CHOICES: readonly ["line_boil", "sketchbook", "paper_cutout", "fabric", "pixel", "comic", "zine", "film", "glass", "clay", "engraving", "plain"];
|
|
6
5
|
export type MotionStyleChoice = (typeof MOTION_STYLE_CHOICES)[number];
|
|
7
6
|
export declare const MAX_MOTION_STYLE_SPANS = 20;
|
|
8
|
-
/** When each style fits, for an agent choosing one by topic; keyed by id so a new style cannot ship without its line. */
|
|
9
7
|
export declare const MOTION_STYLE_GUIDANCE: Readonly<Record<MotionStyleId, string>>;
|
|
10
8
|
export declare const MOTION_STYLE_DESCRIPTION: string;
|
|
11
9
|
export interface MotionStyleRequest {
|
|
@@ -16,17 +14,13 @@ export interface MotionStyleRequest {
|
|
|
16
14
|
cover_words?: number | undefined;
|
|
17
15
|
}[] | undefined;
|
|
18
16
|
}
|
|
19
|
-
/** The style a video is drawn in: the run's own, else its design's, else plain. */
|
|
20
17
|
export declare function baseMotionStyle(input: {
|
|
21
18
|
motion_style?: MotionStyleRequest | undefined;
|
|
22
19
|
design?: {
|
|
23
20
|
style?: MotionStyleId | undefined;
|
|
24
21
|
} | undefined;
|
|
25
22
|
}): MotionStyleChoice;
|
|
26
|
-
/** The words each span covers, in order of the request; a string names why a span does not resolve. */
|
|
27
23
|
export declare function motionStyleSpanRanges(script: string, spans: NonNullable<MotionStyleRequest["spans"]>): (WordRange | string)[];
|
|
28
|
-
/** Why a request's spans cannot be drawn: no script to sit on, an anchor that names no words, two spans on one word, or a span in the video's own
|
|
29
|
-
* style. */
|
|
30
24
|
export declare function motionStyleRefusals(input: {
|
|
31
25
|
script?: string | undefined;
|
|
32
26
|
segments?: unknown;
|
|
@@ -38,13 +32,11 @@ export declare function motionStyleRefusals(input: {
|
|
|
38
32
|
path: (string | number)[];
|
|
39
33
|
message: string;
|
|
40
34
|
}[];
|
|
41
|
-
/** Whether the video draws anything a style dresses: captions, templates or scenes. */
|
|
42
35
|
export declare const motionStyleHasCanvas: (input: {
|
|
43
36
|
captions?: boolean | undefined;
|
|
44
37
|
templates?: readonly unknown[] | undefined;
|
|
45
38
|
scenes?: readonly unknown[] | undefined;
|
|
46
39
|
}) => boolean;
|
|
47
|
-
/** Whether the request names a style other than plain anywhere. */
|
|
48
40
|
export declare const motionStyleAsked: (input: {
|
|
49
41
|
motion_style?: MotionStyleRequest | undefined;
|
|
50
42
|
design?: {
|
package/dist/motion-styles.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { lexicalTokens } from "./semantic-inserts.js";
|
|
2
2
|
import { layerWordRange } from "./ugc-layers.js";
|
|
3
|
-
// Motion styles (#1123): how the graphics of a video are drawn and move: their lines, their material and their timing. A style is part of the
|
|
4
|
-
// design DNA; its colours stay the palette's. It dresses captions, templates and scenes, never the presenter or the pictures.
|
|
5
3
|
export const MOTION_STYLE_IDS = ["line_boil", "sketchbook", "paper_cutout", "fabric", "pixel", "comic", "zine", "film", "glass", "clay", "engraving"];
|
|
6
|
-
/** A style, or `plain`: a span drawn plain inside a styled video. */
|
|
7
4
|
export const MOTION_STYLE_CHOICES = [...MOTION_STYLE_IDS, "plain"];
|
|
8
5
|
export const MAX_MOTION_STYLE_SPANS = 20;
|
|
9
|
-
/** When each style fits, for an agent choosing one by topic; keyed by id so a new style cannot ship without its line. */
|
|
10
6
|
export const MOTION_STYLE_GUIDANCE = {
|
|
11
7
|
line_boil: "a hand-drawn line that redraws itself; sits on any look and topic",
|
|
12
8
|
sketchbook: "pencil on paper; tutorials, ideas, plans and personal stories",
|
|
@@ -24,17 +20,13 @@ export const MOTION_STYLE_DESCRIPTION = "How captions, templates and scenes are
|
|
|
24
20
|
"style, entered and left through that style's own cut. Colours stay the design's; small text stays crisp. Spans need script. Free. Styles: " +
|
|
25
21
|
`${MOTION_STYLE_IDS.map(id => `${id}, ${MOTION_STYLE_GUIDANCE[id]}`).join("; ")}; plain, no style. One style carries the video; a span in a ` +
|
|
26
22
|
"second style marks one moment, such as a twist, a number or the call to action.";
|
|
27
|
-
/** The style a video is drawn in: the run's own, else its design's, else plain. */
|
|
28
23
|
export function baseMotionStyle(input) {
|
|
29
24
|
return input.motion_style?.style ?? input.design?.style ?? "plain";
|
|
30
25
|
}
|
|
31
|
-
/** The words each span covers, in order of the request; a string names why a span does not resolve. */
|
|
32
26
|
export function motionStyleSpanRanges(script, spans) {
|
|
33
27
|
const tokens = lexicalTokens(script);
|
|
34
28
|
return spans.map((span, index) => layerWordRange(tokens, { id: `span${index}`, anchor: span.anchor, cover_words: span.cover_words }));
|
|
35
29
|
}
|
|
36
|
-
/** Why a request's spans cannot be drawn: no script to sit on, an anchor that names no words, two spans on one word, or a span in the video's own
|
|
37
|
-
* style. */
|
|
38
30
|
export function motionStyleRefusals(input) {
|
|
39
31
|
const spans = input.motion_style?.spans;
|
|
40
32
|
if (!spans?.length)
|
|
@@ -59,9 +51,6 @@ export function motionStyleRefusals(input) {
|
|
|
59
51
|
}
|
|
60
52
|
return refusals;
|
|
61
53
|
}
|
|
62
|
-
/** Whether the video draws anything a style dresses: captions, templates or scenes. */
|
|
63
54
|
export const motionStyleHasCanvas = (input) => input.captions === true || Boolean(input.templates?.length) || Boolean(input.scenes?.length);
|
|
64
|
-
/** Whether the request names a style other than plain anywhere. */
|
|
65
55
|
export const motionStyleAsked = (input) => baseMotionStyle(input) !== "plain" || Boolean(input.motion_style?.spans?.some(span => span.style !== "plain"));
|
|
66
56
|
export const MOTION_STYLE_UNUSED_WARNING = "motion_style was not drawn: a style dresses captions, templates and scenes, and this video has none";
|
|
67
|
-
//# sourceMappingURL=motion-styles.js.map
|
package/dist/moves.d.ts
CHANGED
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const MOVES_PATH = "/v1/moves";
|
|
3
|
-
/** The script line a move serves, finer than hook, proof and call to action. */
|
|
4
3
|
export declare const MOVE_BEATS: readonly ["hook", "problem", "demo", "proof", "social_proof", "offer", "cta", "transition"];
|
|
5
4
|
export type MoveBeat = (typeof MOVE_BEATS)[number];
|
|
6
|
-
/** What the move shows, so the agent knows what to pass in data. */
|
|
7
5
|
export declare const MOVE_CONTENTS: readonly ["none", "words", "number", "list", "quote", "rating", "photo", "screenshot", "footage", "link"];
|
|
8
6
|
export type MoveContent = (typeof MOVE_CONTENTS)[number];
|
|
9
|
-
/** Where it draws: over the presenter, on the full frame, on the presenter's shot, on the captions, on a picture, on a graphic, or between shots. */
|
|
10
7
|
export declare const MOVE_SURFACES: readonly ["over", "full", "presenter", "captions", "picture", "layer", "transition"];
|
|
11
8
|
export type MoveSurface = (typeof MOVE_SURFACES)[number];
|
|
12
9
|
export declare const MOVE_SKILLS: readonly ["make_ugc", "make_faceless", "plan_reference_remake"];
|
|
13
10
|
export type MoveSkill = (typeof MOVE_SKILLS)[number];
|
|
14
|
-
/** soon: listed so the agent knows it is coming, refused when named. */
|
|
15
11
|
export declare const MOVE_STATUSES: readonly ["ready", "soon"];
|
|
16
12
|
export declare const MAX_MOVES = 40;
|
|
17
13
|
export declare const MOVES_PAGE_DEFAULT = 40;
|
|
18
14
|
export declare const MOVES_PAGE_MAX = 100;
|
|
19
15
|
export declare const moveName: z.ZodString;
|
|
20
|
-
/** One catalogue line: the short read carries the first fields, detail=full all of them. */
|
|
21
16
|
export declare const motionMove: z.ZodObject<{
|
|
22
17
|
name: z.ZodString;
|
|
23
18
|
status: z.ZodEnum<{
|
|
@@ -195,7 +190,6 @@ export declare const motionMovesList: z.ZodObject<{
|
|
|
195
190
|
contract_version: z.ZodString;
|
|
196
191
|
}, z.core.$strict>;
|
|
197
192
|
export type MotionMovesList = z.infer<typeof motionMovesList>;
|
|
198
|
-
/** A move put on the script's words. */
|
|
199
193
|
export declare const ugcMove: z.ZodObject<{
|
|
200
194
|
name: z.ZodString;
|
|
201
195
|
anchor: z.ZodObject<{
|
|
@@ -211,7 +205,6 @@ export declare const ugcMove: z.ZodObject<{
|
|
|
211
205
|
}, z.core.$strict>;
|
|
212
206
|
export type UgcMove = z.infer<typeof ugcMove>;
|
|
213
207
|
export declare const MOVES_DESCRIPTION: string;
|
|
214
|
-
/** Moves sit on the script's words: an anchor that names none is refused before any charge. */
|
|
215
208
|
export declare function moveRefusals(input: {
|
|
216
209
|
script?: string | undefined;
|
|
217
210
|
segments?: unknown;
|