@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
|
@@ -5,8 +5,6 @@ const CUT_COST = 2;
|
|
|
5
5
|
const PACE_PENALTY = 0.25;
|
|
6
6
|
const OUTPUT_FRAMES = 1522;
|
|
7
7
|
const FPS = 25;
|
|
8
|
-
/** Shared semantic objective; duration feasibility belongs to each profile. */
|
|
9
|
-
/** `overPenalty` prices a second above the pace band; a second below it always costs the base penalty. */
|
|
10
8
|
export function facelessCutScore(reason, duration, range, overPenalty = PACE_PENALTY) {
|
|
11
9
|
const value = reason === null ? 0 : semantic[reason];
|
|
12
10
|
const cost = reason === null ? 0 : CUT_COST;
|
|
@@ -142,4 +140,3 @@ export function planStoryboardV2(input, words, narrationStartFrame, style) {
|
|
|
142
140
|
scoreBreakdown: { semanticValue: best.semantic, cutCost: best.cutCost,
|
|
143
141
|
pacePenalty: best.pacePenalty, total: best.total, cuts: best.cuts } };
|
|
144
142
|
}
|
|
145
|
-
//# sourceMappingURL=faceless-storyboard-v2-timing.js.map
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import type { Gender } from "./default-actor.js";
|
|
2
2
|
import type { CatalogLanguage } from "./voice-catalog.js";
|
|
3
|
-
/** Our label for the speech model that reads `make_faceless` narration. Not a `tts_model`: `make_ugc` does not speak it. */
|
|
4
3
|
export declare const FACELESS_SPEECH_MODEL = "narrator-v1";
|
|
5
|
-
/** A narration voice of `make_faceless` by OUR name; our service holds its measured pace. */
|
|
6
4
|
export interface FacelessVoice {
|
|
7
5
|
language: CatalogLanguage;
|
|
8
6
|
gender: Gender;
|
|
9
7
|
description: string;
|
|
10
8
|
}
|
|
11
|
-
/** The voices `make_faceless` speaks, each measured live. Every name starts */
|
|
12
|
-
/** with `narrator_`, which no preset, model voice or catalog slug does. */
|
|
13
9
|
export declare const FACELESS_VOICES: {
|
|
14
10
|
readonly narrator_en_wise_lady: {
|
|
15
11
|
readonly language: "en";
|
|
@@ -114,36 +110,24 @@ export declare const FACELESS_VOICES: {
|
|
|
114
110
|
};
|
|
115
111
|
export type FacelessVoiceName = keyof typeof FACELESS_VOICES;
|
|
116
112
|
export declare const FACELESS_VOICE_NAMES: [FacelessVoiceName, ...FacelessVoiceName[]];
|
|
117
|
-
/** The voice a run speaks when it names none; an explainer speaks the fastest voice of its script's language instead (#1216). */
|
|
118
113
|
export declare const DEFAULT_FACELESS_VOICE = "narrator_en_wise_lady";
|
|
119
114
|
export declare function isFacelessVoiceName(name: string): name is FacelessVoiceName;
|
|
120
|
-
/** Whole-take words per second of the voices measured live. A voice absent here is unmeasured. */
|
|
121
115
|
export declare const FACELESS_MEASURED_WORDS_PER_SECOND: Partial<Record<FacelessVoiceName, number>>;
|
|
122
|
-
/** Whole-take characters per second, spaces included, of the same voices. Words vary in length, so a script's length is */
|
|
123
|
-
/** estimated on its characters where the voice has this measure. */
|
|
124
116
|
export declare const FACELESS_MEASURED_CHARACTERS_PER_SECOND: Partial<Record<FacelessVoiceName, number>>;
|
|
125
|
-
/** The voice a run speaks when it names none: an explainer's script is read by the fastest measured voice of its language,
|
|
126
|
-
* every other format and a language without a measured voice by the default. */
|
|
127
117
|
export declare function facelessDefaultVoiceName(input: {
|
|
128
118
|
format?: string | undefined;
|
|
129
119
|
script?: string | undefined;
|
|
130
120
|
} | undefined): FacelessVoiceName;
|
|
131
|
-
/** The words per second a script's length is estimated at: the measured pace of the voice that will speak it (the named one, else the default for
|
|
132
|
-
* the format and the script's language), the flat estimate when that voice is unmeasured or reads another alphabet than the script. */
|
|
133
121
|
export declare function facelessSpeechWordsPerSecond(input: {
|
|
134
122
|
voice?: string | undefined;
|
|
135
123
|
format?: string | undefined;
|
|
136
124
|
script: string;
|
|
137
125
|
}): number;
|
|
138
|
-
/** A faceless script's estimated narration length in seconds: its characters at the voice's measured rate, else its words at the */
|
|
139
|
-
/** voice's pace; an estimate, as `estimateDurationSec` is. */
|
|
140
126
|
export declare function facelessEstimatedSeconds(input: {
|
|
141
127
|
voice?: string | undefined;
|
|
142
128
|
format?: string | undefined;
|
|
143
129
|
script: string;
|
|
144
130
|
}): number;
|
|
145
|
-
/** Fires only for a voice the client named. A script is judged by the alphabet most of its letters say; a brief */
|
|
146
|
-
/** only when it holds no letter of the voice's alphabet, since it may ask for another language. */
|
|
147
131
|
export declare function buildFacelessVoiceWarnings(input: {
|
|
148
132
|
voice?: string | undefined;
|
|
149
133
|
script?: string | undefined;
|
package/dist/faceless-voices.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { scriptLanguageOf } from "./caption-language.js";
|
|
2
2
|
import { countWords, estimateWordsPerSecond } from "./pacing.js";
|
|
3
3
|
import { detectScriptFamily, scriptLetterCounts } from "./voices.js";
|
|
4
|
-
/** Our label for the speech model that reads `make_faceless` narration. Not a `tts_model`: `make_ugc` does not speak it. */
|
|
5
4
|
export const FACELESS_SPEECH_MODEL = "narrator-v1";
|
|
6
|
-
/** The voices `make_faceless` speaks, each measured live. Every name starts */
|
|
7
|
-
/** with `narrator_`, which no preset, model voice or catalog slug does. */
|
|
8
5
|
export const FACELESS_VOICES = {
|
|
9
6
|
narrator_en_wise_lady: { language: "en", gender: "female", description: "Wise, genial middle-aged woman with a British accent" },
|
|
10
7
|
narrator_en_kind_girl: { language: "en", gender: "female", description: "Kind, calm young woman with an American accent" },
|
|
@@ -28,26 +25,20 @@ export const FACELESS_VOICES = {
|
|
|
28
25
|
narrator_tr_mature_man: { language: "tr", gender: "male", description: "Deep, mature, soft-spoken man for social video (Turkish)" },
|
|
29
26
|
};
|
|
30
27
|
export const FACELESS_VOICE_NAMES = Object.keys(FACELESS_VOICES);
|
|
31
|
-
/** The voice a run speaks when it names none; an explainer speaks the fastest voice of its script's language instead (#1216). */
|
|
32
28
|
export const DEFAULT_FACELESS_VOICE = "narrator_en_wise_lady";
|
|
33
29
|
export function isFacelessVoiceName(name) {
|
|
34
30
|
return Object.hasOwn(FACELESS_VOICES, name);
|
|
35
31
|
}
|
|
36
|
-
/** Whole-take words per second of the voices measured live. A voice absent here is unmeasured. */
|
|
37
32
|
export const FACELESS_MEASURED_WORDS_PER_SECOND = {
|
|
38
33
|
narrator_en_wise_lady: 3.095, narrator_en_kind_girl: 3.125, narrator_en_firm_lady: 3.074, narrator_en_gentle_man: 3.324,
|
|
39
34
|
narrator_en_deep_gentleman: 3.119, narrator_en_storyteller: 2.848, narrator_en_brisk_man: 3.606,
|
|
40
35
|
narrator_tr_confident_woman: 2.418, narrator_tr_mature_man: 2.277,
|
|
41
36
|
};
|
|
42
|
-
/** Whole-take characters per second, spaces included, of the same voices. Words vary in length, so a script's length is */
|
|
43
|
-
/** estimated on its characters where the voice has this measure. */
|
|
44
37
|
export const FACELESS_MEASURED_CHARACTERS_PER_SECOND = {
|
|
45
38
|
narrator_en_wise_lady: 15.115, narrator_en_kind_girl: 15.262, narrator_en_firm_lady: 15.011, narrator_en_gentle_man: 16.232,
|
|
46
39
|
narrator_en_deep_gentleman: 15.229, narrator_en_storyteller: 13.908, narrator_en_brisk_man: 17.608,
|
|
47
40
|
narrator_tr_confident_woman: 16.05, narrator_tr_mature_man: 15.118,
|
|
48
41
|
};
|
|
49
|
-
/** The voice a run speaks when it names none: an explainer's script is read by the fastest measured voice of its language,
|
|
50
|
-
* every other format and a language without a measured voice by the default. */
|
|
51
42
|
export function facelessDefaultVoiceName(input) {
|
|
52
43
|
if (input?.format !== "explainer" || input.script === undefined)
|
|
53
44
|
return DEFAULT_FACELESS_VOICE;
|
|
@@ -62,26 +53,20 @@ export function facelessDefaultVoiceName(input) {
|
|
|
62
53
|
}
|
|
63
54
|
return fastest ?? DEFAULT_FACELESS_VOICE;
|
|
64
55
|
}
|
|
65
|
-
/** The words per second a script's length is estimated at: the measured pace of the voice that will speak it (the named one, else the default for
|
|
66
|
-
* the format and the script's language), the flat estimate when that voice is unmeasured or reads another alphabet than the script. */
|
|
67
56
|
export function facelessSpeechWordsPerSecond(input) {
|
|
68
57
|
const voice = measuredSpeaker(input);
|
|
69
58
|
return (voice ? FACELESS_MEASURED_WORDS_PER_SECOND[voice] : undefined) ?? estimateWordsPerSecond(input.script);
|
|
70
59
|
}
|
|
71
|
-
/** The voice that will speak `input`, when its measures apply: none when it reads another alphabet than the script. */
|
|
72
60
|
function measuredSpeaker(input) {
|
|
73
61
|
const voice = input.voice !== undefined && isFacelessVoiceName(input.voice) ? input.voice : facelessDefaultVoiceName(input);
|
|
74
62
|
const alphabet = detectScriptFamily(input.script);
|
|
75
63
|
return alphabet === "neutral" || alphabet === VOICE_LANGUAGE[FACELESS_VOICES[voice].language].alphabet ? voice : undefined;
|
|
76
64
|
}
|
|
77
|
-
/** A faceless script's estimated narration length in seconds: its characters at the voice's measured rate, else its words at the */
|
|
78
|
-
/** voice's pace; an estimate, as `estimateDurationSec` is. */
|
|
79
65
|
export function facelessEstimatedSeconds(input) {
|
|
80
66
|
const voice = measuredSpeaker(input), perSecond = voice ? FACELESS_MEASURED_CHARACTERS_PER_SECOND[voice] : undefined;
|
|
81
67
|
const seconds = perSecond ? Array.from(input.script.trim()).length / perSecond : countWords(input.script) / facelessSpeechWordsPerSecond(input);
|
|
82
68
|
return Math.max(1, Math.round(seconds));
|
|
83
69
|
}
|
|
84
|
-
/** How a warning names each offered language, and its alphabet; a language without a row does not compile. */
|
|
85
70
|
const VOICE_LANGUAGE = {
|
|
86
71
|
en: { voice: "an English voice", alphabet: "latin" },
|
|
87
72
|
ru: { voice: "a Russian voice", alphabet: "cyrillic" },
|
|
@@ -93,8 +78,6 @@ const VOICE_LANGUAGE = {
|
|
|
93
78
|
};
|
|
94
79
|
const ALPHABET_LETTERS = { cyrillic: "Cyrillic letters", latin: "Latin letters" };
|
|
95
80
|
const LIST_HINT = "list_voices with skill=make_faceless names the voices of each language";
|
|
96
|
-
/** Fires only for a voice the client named. A script is judged by the alphabet most of its letters say; a brief */
|
|
97
|
-
/** only when it holds no letter of the voice's alphabet, since it may ask for another language. */
|
|
98
81
|
export function buildFacelessVoiceWarnings(input) {
|
|
99
82
|
if (input.voice === undefined || !isFacelessVoiceName(input.voice))
|
|
100
83
|
return [];
|
|
@@ -121,4 +104,3 @@ export function buildFacelessVoiceWarnings(input) {
|
|
|
121
104
|
`a brief may ask for the narration's language in words; ${LIST_HINT}`,
|
|
122
105
|
];
|
|
123
106
|
}
|
|
124
|
-
//# sourceMappingURL=faceless-voices.js.map
|
package/dist/feedback.d.ts
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** Feedback from an agent (#941): a missing capability or a confusing answer, filed instead of rephrasing and giving up. */
|
|
3
|
-
/** Free; it lands in the same queue a person's support request does, under the key's account. */
|
|
4
2
|
export declare const FEEDBACK_PATH = "/v1/feedback";
|
|
5
3
|
export declare const FEEDBACK_KINDS: readonly ["missing_capability", "confusing", "wrong_result", "slow"];
|
|
6
4
|
export type FeedbackKind = (typeof FEEDBACK_KINDS)[number];
|
|
7
5
|
export declare const FEEDBACK_TEXT_MAX_CHARS = 2000;
|
|
8
|
-
/** New feedback per account per hour; a resend of the same feedback answers the first one and is not counted. */
|
|
9
6
|
export declare const FEEDBACK_PER_HOUR = 20;
|
|
10
7
|
export declare const FEEDBACK_WINDOW_SECONDS = 3600;
|
|
11
|
-
/** How long the same kind, text and run answer the feedback already filed instead of filing it again. */
|
|
12
8
|
export declare const FEEDBACK_REPLAY_WINDOW_SECONDS: number;
|
|
13
9
|
export declare const feedbackRequest: z.ZodObject<{
|
|
14
10
|
kind: z.ZodEnum<{
|
package/dist/feedback.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { runId } from "./runs.js";
|
|
3
|
-
/** Feedback from an agent (#941): a missing capability or a confusing answer, filed instead of rephrasing and giving up. */
|
|
4
|
-
/** Free; it lands in the same queue a person's support request does, under the key's account. */
|
|
5
3
|
export const FEEDBACK_PATH = "/v1/feedback";
|
|
6
4
|
export const FEEDBACK_KINDS = ["missing_capability", "confusing", "wrong_result", "slow"];
|
|
7
5
|
export const FEEDBACK_TEXT_MAX_CHARS = 2000;
|
|
8
|
-
/** New feedback per account per hour; a resend of the same feedback answers the first one and is not counted. */
|
|
9
6
|
export const FEEDBACK_PER_HOUR = 20;
|
|
10
7
|
export const FEEDBACK_WINDOW_SECONDS = 3600;
|
|
11
|
-
/** How long the same kind, text and run answer the feedback already filed instead of filing it again. */
|
|
12
8
|
export const FEEDBACK_REPLAY_WINDOW_SECONDS = 24 * 3600;
|
|
13
9
|
export const feedbackRequest = z.strictObject({
|
|
14
10
|
kind: z.enum(FEEDBACK_KINDS).describe("missing_capability: no tool does what the user asked; confusing: an answer or description was unclear; " +
|
|
@@ -27,4 +23,3 @@ export const SEND_FEEDBACK_DESCRIPTION = "Tell Clipwright what is missing or wro
|
|
|
27
23
|
"We read every one; when we reply, get_account lists the reply under support_replies with this feedback_id. " +
|
|
28
24
|
"Free, spends nothing. Sending the same kind, text and run again within 24 hours answers the same " +
|
|
29
25
|
`feedback_id. ${FEEDBACK_PER_HOUR} per hour per account.`;
|
|
30
|
-
//# sourceMappingURL=feedback.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const FILM_DIRECTION_METHODS: readonly ["kinetic-launch", "website-proof-demo"];
|
|
3
3
|
export type FilmDirectionMethod = (typeof FILM_DIRECTION_METHODS)[number];
|
|
4
|
-
/** text: the phrase is on screen from the end of its words; hold: from the end of its words to the end of the film. */
|
|
5
4
|
export declare const filmMoment: z.ZodObject<{
|
|
6
5
|
id: z.ZodString;
|
|
7
6
|
kind: z.ZodEnum<{
|
|
@@ -29,5 +28,4 @@ export declare const filmDirections: z.ZodObject<{
|
|
|
29
28
|
captures: z.ZodBoolean;
|
|
30
29
|
}, z.core.$strict>;
|
|
31
30
|
export type FilmDirections = z.infer<typeof filmDirections>;
|
|
32
|
-
/** The characters of `text` the film's scene fonts cannot draw, each once, in order. */
|
|
33
31
|
export declare function missingKitGlyphs(text: string): string[];
|
package/dist/film-directions.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
// What a workflow method requires of an explainer film (#1461): exact phrases on screen at their words, and whether the run's pictures are
|
|
3
|
-
// captures to show as supplied. A run stores it beside its request; a public body never carries it.
|
|
4
2
|
export const FILM_DIRECTION_METHODS = ["kinetic-launch", "website-proof-demo"];
|
|
5
|
-
/** text: the phrase is on screen from the end of its words; hold: from the end of its words to the end of the film. */
|
|
6
3
|
export const filmMoment = z.strictObject({
|
|
7
4
|
id: z.string().trim().min(1).max(64),
|
|
8
5
|
kind: z.enum(["text", "hold"]),
|
|
@@ -12,16 +9,12 @@ export const filmMoment = z.strictObject({
|
|
|
12
9
|
export const filmDirections = z.strictObject({
|
|
13
10
|
method: z.enum(FILM_DIRECTION_METHODS),
|
|
14
11
|
moments: z.array(filmMoment).max(100),
|
|
15
|
-
/** The run's pictures are captures of a known product state: shown as supplied, never redrawn. */
|
|
16
12
|
captures: z.boolean(),
|
|
17
13
|
});
|
|
18
|
-
/** Code points the film's scene fonts draw (latin, latin-ext and cyrillic subsets the kit loads; Vietnamese letters are another subset). */
|
|
19
14
|
const KIT_GLYPHS = /^[ -~ -ɏЀ-џҐґҰұḀ-ẟỲ-ỿ -₠-№™−]*$/u;
|
|
20
|
-
/** The characters of `text` the film's scene fonts cannot draw, each once, in order. */
|
|
21
15
|
export function missingKitGlyphs(text) {
|
|
22
16
|
const normalized = text.normalize("NFC");
|
|
23
17
|
if (KIT_GLYPHS.test(normalized))
|
|
24
18
|
return [];
|
|
25
19
|
return [...new Set([...normalized].filter(char => !KIT_GLYPHS.test(char)))];
|
|
26
20
|
}
|
|
27
|
-
//# sourceMappingURL=film-directions.js.map
|
package/dist/film-drafts.d.ts
CHANGED
|
@@ -4,16 +4,13 @@ export declare const FILM_DRAFT_PATH = "/v1/film-drafts/:id";
|
|
|
4
4
|
export declare const FILM_DRAFT_FILES_PATH = "/v1/film-drafts/:id/files";
|
|
5
5
|
export declare const filmDraftId: z.ZodString;
|
|
6
6
|
export declare const FILM_SKILLS: readonly ["explainer"];
|
|
7
|
-
/** The scene gate's bounds and its words for them (#1370): one source for the gate, the free check and a draft's save. */
|
|
8
7
|
export declare const FILM_MAX_FILES = 12, FILM_FILE_MAX_BYTES = 40000, FILM_FILE_MAX_NODES = 8000;
|
|
9
8
|
export declare const filmFilesRefusal: (count: number) => string;
|
|
10
9
|
export declare const filmFileBytesRefusal: (name: string) => string;
|
|
11
10
|
export declare const filmFileNodesRefusal: (name: string) => string;
|
|
12
11
|
export declare const FILM_FILE_NAME: RegExp;
|
|
13
|
-
/** A draft lives this long after its last change, and an account keeps at most this many. */
|
|
14
12
|
export declare const FILM_DRAFT_TTL_DAYS = 7, FILM_DRAFTS_PER_ACCOUNT = 20;
|
|
15
13
|
export declare const FILM_MAX_CUES = 200, FILM_MAX_SFX = 400, FILM_SFX_MAX_REPEATS = 40, FILM_CAPTIONS_MAX_CHARS = 4000;
|
|
16
|
-
/** One sound event: one sound, a series (`n` × `step`), or key strokes on every word between `from` and `to`. */
|
|
17
14
|
export declare const filmSfxEvent: z.ZodObject<{
|
|
18
15
|
s: z.ZodString;
|
|
19
16
|
at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -25,16 +22,13 @@ export declare const filmSfxEvent: z.ZodObject<{
|
|
|
25
22
|
to: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
26
23
|
}, z.core.$strict>;
|
|
27
24
|
export type FilmSfxEvent = z.infer<typeof filmSfxEvent>;
|
|
28
|
-
/** The storyboard's bounds: phrases a film may hold, events a phrase may hold. */
|
|
29
25
|
export declare const FILM_STORYBOARD_MAX_ROWS = 120, FILM_STORYBOARD_MAX_EVENTS = 24;
|
|
30
|
-
/** One thing that happens on screen in a phrase: on a spoken word (offset seconds after it starts), or on an anchor of cues. */
|
|
31
26
|
export declare const filmStoryboardEvent: z.ZodObject<{
|
|
32
27
|
word: z.ZodString;
|
|
33
28
|
anchor: z.ZodOptional<z.ZodString>;
|
|
34
29
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
35
30
|
what: z.ZodString;
|
|
36
31
|
}, z.core.$strict>;
|
|
37
|
-
/** One phrase of the voice: its words, when the voice speaks it, and the events on its words. */
|
|
38
32
|
export declare const filmStoryboardRow: z.ZodObject<{
|
|
39
33
|
phrase: z.ZodString;
|
|
40
34
|
start: z.ZodNumber;
|
|
@@ -357,7 +351,6 @@ export declare const filmDraft: z.ZodObject<{
|
|
|
357
351
|
}, z.core.$strict>;
|
|
358
352
|
export type FilmDraft = z.infer<typeof filmDraft>;
|
|
359
353
|
export declare const FILM_DRAFT_CHECK_PATH = "/v1/film-drafts/:id/check";
|
|
360
|
-
/** The free check (#1356): a draft revision, or the same changes put_film_files takes laid over it unsaved, read on a delivered voice. */
|
|
361
354
|
export declare const checkFilmInput: z.ZodObject<{
|
|
362
355
|
revision: z.ZodNumber;
|
|
363
356
|
voice_run_id: z.ZodString;
|
|
@@ -464,7 +457,6 @@ export declare const filmCheck: z.ZodObject<{
|
|
|
464
457
|
}, z.core.$strict>;
|
|
465
458
|
}, z.core.$strict>;
|
|
466
459
|
export type FilmCheck = z.infer<typeof filmCheck>;
|
|
467
|
-
/** The draft's files after a patch, or the sentences saying why the patch is refused. Bytes are UTF-8, as the gate counts them. */
|
|
468
460
|
export declare function patchFilmFiles(current: Readonly<Record<string, string>>, patch: Readonly<Record<string, string | null>>): {
|
|
469
461
|
files: Record<string, string>;
|
|
470
462
|
} | {
|
package/dist/film-drafts.js
CHANGED
|
@@ -6,25 +6,20 @@ import { EXPLAINER_MAX_PRODUCT_PICTURES, facelessCustomerSceneImage } from "./fa
|
|
|
6
6
|
import { MASCOT_POSES } from "./mascots.js";
|
|
7
7
|
import { runId } from "./runs.js";
|
|
8
8
|
import { resolvedSkillTheme, skillThemeOverrides } from "./skill-theme.js";
|
|
9
|
-
// A film draft of the «own agent» mode (#1291 F2): your agent keeps its scene files, anchors and sound events here between calls, under the
|
|
10
|
-
// brand theme frozen when the draft was made. Stills and the render read a revision of it; the draft itself is free.
|
|
11
9
|
export const FILM_DRAFTS_PATH = "/v1/film-drafts";
|
|
12
10
|
export const FILM_DRAFT_PATH = "/v1/film-drafts/:id";
|
|
13
11
|
export const FILM_DRAFT_FILES_PATH = "/v1/film-drafts/:id/files";
|
|
14
12
|
export const filmDraftId = z.string().regex(/^fdr_[a-f0-9]{32}$/);
|
|
15
13
|
export const FILM_SKILLS = ["explainer"];
|
|
16
|
-
/** The scene gate's bounds and its words for them (#1370): one source for the gate, the free check and a draft's save. */
|
|
17
14
|
export const FILM_MAX_FILES = 12, FILM_FILE_MAX_BYTES = 40_000, FILM_FILE_MAX_NODES = 8_000;
|
|
18
15
|
export const filmFilesRefusal = (count) => `the film has ${count} files; at most ${FILM_MAX_FILES}`;
|
|
19
16
|
export const filmFileBytesRefusal = (name) => `${name}: over ${FILM_FILE_MAX_BYTES} bytes`;
|
|
20
17
|
export const filmFileNodesRefusal = (name) => `${name}: over ${FILM_FILE_MAX_NODES} syntax nodes`;
|
|
21
18
|
export const FILM_FILE_NAME = /^[A-Za-z][\w-]{0,40}\.tsx?$/;
|
|
22
|
-
/** A draft lives this long after its last change, and an account keeps at most this many. */
|
|
23
19
|
export const FILM_DRAFT_TTL_DAYS = 7, FILM_DRAFTS_PER_ACCOUNT = 20;
|
|
24
20
|
export const FILM_MAX_CUES = 200, FILM_MAX_SFX = 400, FILM_SFX_MAX_REPEATS = 40, FILM_CAPTIONS_MAX_CHARS = 4000;
|
|
25
21
|
const ANCHOR = z.string().regex(/^[A-Za-z_]\w{0,40}$/, "an anchor is an identifier");
|
|
26
22
|
const moment = z.union([ANCHOR, z.number().min(0).max(600)]);
|
|
27
|
-
/** One sound event: one sound, a series (`n` × `step`), or key strokes on every word between `from` and `to`. */
|
|
28
23
|
export const filmSfxEvent = z.strictObject({
|
|
29
24
|
s: z.string().min(1).max(80).describe("A built-in sound (thud pop tick click key swish whoosh marker stamp ding confetti popper rise) or one named in words"),
|
|
30
25
|
at: moment.optional(), dt: z.number().min(-5).max(5).optional(),
|
|
@@ -34,16 +29,13 @@ export const filmSfxEvent = z.strictObject({
|
|
|
34
29
|
}).refine(e => e.at !== undefined || e.from !== undefined || e.to !== undefined, "an event has `at`, or both `from` and `to`")
|
|
35
30
|
.refine(e => (e.from === undefined) === (e.to === undefined), "`from` and `to` come together")
|
|
36
31
|
.refine(e => !(e.at !== undefined && e.from !== undefined), "an event has `at` or `from`/`to`, not both");
|
|
37
|
-
/** The storyboard's bounds: phrases a film may hold, events a phrase may hold. */
|
|
38
32
|
export const FILM_STORYBOARD_MAX_ROWS = 120, FILM_STORYBOARD_MAX_EVENTS = 24;
|
|
39
|
-
/** One thing that happens on screen in a phrase: on a spoken word (offset seconds after it starts), or on an anchor of cues. */
|
|
40
33
|
export const filmStoryboardEvent = z.strictObject({
|
|
41
34
|
word: z.string().trim().min(1).max(60).describe("The spoken word the event lands on"),
|
|
42
35
|
anchor: ANCHOR.optional().describe("The anchor of cues your code reads for this event; every anchor the code reads needs one event"),
|
|
43
36
|
offset: z.number().min(-2).max(5).optional().describe("Seconds after the word starts; omitted, on the word"),
|
|
44
37
|
what: z.string().trim().min(1).max(200).describe("What happens on screen"),
|
|
45
38
|
}).refine(e => !(e.anchor !== undefined && e.offset !== undefined), "an event lands on an anchor or on its word plus offset, not both");
|
|
46
|
-
/** One phrase of the voice: its words, when the voice speaks it, and the events on its words. */
|
|
47
39
|
export const filmStoryboardRow = z.strictObject({
|
|
48
40
|
phrase: z.string().trim().min(1).max(400).describe("The phrase's words as the voice speaks them"),
|
|
49
41
|
start: z.number().min(0).max(600).describe("When the phrase starts, from the voice's word timings"),
|
|
@@ -85,24 +77,20 @@ export const filmDraft = z.strictObject({
|
|
|
85
77
|
theme: resolvedSkillTheme,
|
|
86
78
|
theme_sha256: z.string().regex(/^[a-f0-9]{64}$/),
|
|
87
79
|
mascot_id: assetId.nullable(),
|
|
88
|
-
// An answer from before saved styles (#1364) carries none.
|
|
89
80
|
brand_style: z.string().nullable().default(null),
|
|
90
81
|
language: z.string().nullable(),
|
|
91
82
|
files: z.array(z.strictObject({ name: z.string(), bytes: z.number().int().min(0) })),
|
|
92
83
|
cues: z.record(z.string(), z.number()),
|
|
93
84
|
sfx: z.array(filmSfxEvent),
|
|
94
85
|
captions: z.string().nullable(),
|
|
95
|
-
// An answer from before styled drafts (#1338) carries neither: a draft of scene files.
|
|
96
86
|
style: z.enum(FILM_STYLES).nullable().default(null),
|
|
97
87
|
beats: z.array(filmBeat).default([]),
|
|
98
|
-
// An answer from before the storyboard (#1356) carries none.
|
|
99
88
|
storyboard: filmStoryboard.nullable().default(null),
|
|
100
89
|
warnings: z.array(z.string()),
|
|
101
90
|
created_at: z.string(),
|
|
102
91
|
expires_at: z.string(),
|
|
103
92
|
});
|
|
104
93
|
export const FILM_DRAFT_CHECK_PATH = "/v1/film-drafts/:id/check";
|
|
105
|
-
/** The free check (#1356): a draft revision, or the same changes put_film_files takes laid over it unsaved, read on a delivered voice. */
|
|
106
94
|
export const checkFilmInput = z.strictObject({
|
|
107
95
|
revision: z.number().int().min(0).describe("The draft revision to check; a draft that moved on is refused with 409"),
|
|
108
96
|
voice_run_id: runId.describe("A delivered make_voice run of this account: the check reads its words and length"),
|
|
@@ -115,20 +103,14 @@ export const checkFilmInput = z.strictObject({
|
|
|
115
103
|
export const filmCheck = z.strictObject({
|
|
116
104
|
draft_id: filmDraftId,
|
|
117
105
|
revision: z.number().int().min(0),
|
|
118
|
-
/** True when nothing is refused: stills and the render will take this revision's code, apart from the checks below that run with them. */
|
|
119
106
|
ok: z.boolean(),
|
|
120
|
-
/** Each refusal as `file:line: reason` where a file is named; stills and the render refuse the same, free. */
|
|
121
107
|
refusals: z.array(z.string()),
|
|
122
108
|
warnings: z.array(z.string()),
|
|
123
|
-
/** Checks that run only when stills or the render draw: their refusals are free too. */
|
|
124
109
|
deferred: z.array(z.string()),
|
|
125
110
|
voice_end_sec: z.number().nonnegative(),
|
|
126
|
-
/** Every anchor in cues: its second and the voice word spoken nearest it. */
|
|
127
111
|
anchors: z.array(z.strictObject({ name: z.string(), seconds: z.number(), word: z.string().nullable() })),
|
|
128
|
-
/** The storyboard's phrases and events as the check read them; zero when there is none. */
|
|
129
112
|
storyboard: z.strictObject({ phrases: z.number().int().nonnegative(), events: z.number().int().nonnegative() }),
|
|
130
113
|
});
|
|
131
|
-
/** The draft's files after a patch, or the sentences saying why the patch is refused. Bytes are UTF-8, as the gate counts them. */
|
|
132
114
|
export function patchFilmFiles(current, patch) {
|
|
133
115
|
const refusals = [], files = { ...current };
|
|
134
116
|
for (const [name, text] of Object.entries(patch)) {
|
|
@@ -151,4 +133,3 @@ export function patchFilmFiles(current, patch) {
|
|
|
151
133
|
refusals.push(filmFilesRefusal(Object.keys(files).length));
|
|
152
134
|
return refusals.length ? { refusals } : { files };
|
|
153
135
|
}
|
|
154
|
-
//# sourceMappingURL=film-drafts.js.map
|
package/dist/film-guide.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const FILM_GUIDE_PATH = "/v1/film-guide";
|
|
3
3
|
export declare const FILM_KIT_PATH = "/v1/film-kit";
|
|
4
|
-
/** The kit files an agent reads, relative to the kit's root, in reading order: the module a film imports, the drawers behind it, the film
|
|
5
|
-
* frame, then the reference film. */
|
|
6
4
|
export declare const FILM_KIT_FILES: readonly ["index.ts", "src/lib/motion.ts", "src/lib/frame.tsx", "src/lib/marks.tsx", "src/lib/ui.tsx", "src/lib/objects.tsx", "src/lib/product.tsx", "src/lib/depth.tsx", "src/Film.tsx", "src/types.ts", "src/theme.ts", "src/hero/HeroSticker.tsx", "films/espresso-hit/Movie.tsx", "films/espresso-hit/scenes.tsx"];
|
|
7
5
|
export type FilmKitFile = (typeof FILM_KIT_FILES)[number];
|
|
8
|
-
/** The most kept sounds the guide names, as many as the hosted writer is shown. */
|
|
9
6
|
export declare const FILM_KEPT_SOUNDS_MAX = 60;
|
|
10
7
|
export declare const filmGuide: z.ZodObject<{
|
|
11
8
|
guide: z.ZodString;
|
package/dist/film-guide.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
// The «own agent» explainer's guide and scene kit, served read-only (#1356): the guide a customer's agent writes its film from, its method
|
|
3
|
-
// appendix, and the kit's sources with a reference film, so the agent reads the props it draws with instead of guessing them.
|
|
4
2
|
export const FILM_GUIDE_PATH = "/v1/film-guide";
|
|
5
3
|
export const FILM_KIT_PATH = "/v1/film-kit";
|
|
6
|
-
/** The kit files an agent reads, relative to the kit's root, in reading order: the module a film imports, the drawers behind it, the film
|
|
7
|
-
* frame, then the reference film. */
|
|
8
4
|
export const FILM_KIT_FILES = [
|
|
9
5
|
"index.ts",
|
|
10
6
|
"src/lib/motion.ts",
|
|
@@ -21,7 +17,6 @@ export const FILM_KIT_FILES = [
|
|
|
21
17
|
"films/espresso-hit/Movie.tsx",
|
|
22
18
|
"films/espresso-hit/scenes.tsx",
|
|
23
19
|
];
|
|
24
|
-
/** The most kept sounds the guide names, as many as the hosted writer is shown. */
|
|
25
20
|
export const FILM_KEPT_SOUNDS_MAX = 60;
|
|
26
21
|
const kitVersion = z.string().regex(/^[a-f0-9]{12}$/).describe("The kit's version: a digest of its files, which changes when any of them does");
|
|
27
22
|
export const filmGuide = z.strictObject({
|
|
@@ -40,4 +35,3 @@ export const filmKit = z.strictObject({
|
|
|
40
35
|
kit_version: kitVersion,
|
|
41
36
|
files: z.array(z.strictObject({ path: z.enum(FILM_KIT_FILES), text: z.string() })),
|
|
42
37
|
});
|
|
43
|
-
//# sourceMappingURL=film-guide.js.map
|
package/dist/film-styles.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const FILM_STYLES: readonly ["pixel", "ps2", "comic", "bricks", "clay", "paper", "anime", "lowpoly", "riso", "diorama", "popup", "claymation", "watercolor", "isle", "cel80s"];
|
|
3
3
|
export type FilmStyle = (typeof FILM_STYLES)[number];
|
|
4
|
-
/** What a style can draw: one subject a beat. */
|
|
5
4
|
export declare const FILM_STYLE_SUBJECTS: readonly ["seed", "plant-seed", "water", "sun", "sprout", "transplant", "stake", "green-fruit", "tomato", "salad", "hook_cold", "hook_heat", "hook_how", "loop", "low", "coil_in", "coil_soak", "fan_blow", "fan_cool", "comp_travel", "comp_squeeze", "out_coil", "heat_away", "to_liquid", "valve", "pressure", "ice", "same_loop", "finale"];
|
|
6
|
-
/** A styled film's bounds: beats, a beat's length and the film's, as the style runtime takes them. */
|
|
7
5
|
export declare const FILM_MAX_BEATS = 40, FILM_BEAT_MIN_SEC = 0.5, FILM_BEAT_MAX_SEC = 20, FILM_STYLED_MAX_SEC = 90, FILM_BEAT_LINE_MAX_CHARS = 160;
|
|
8
|
-
/** One beat: the subject drawn, the line shown, and when it starts (an anchor of the draft's cues, or seconds); it lasts until the next. */
|
|
9
6
|
export declare const filmBeat: z.ZodObject<{
|
|
10
7
|
subject: z.ZodEnum<{
|
|
11
8
|
coil_in: "coil_in";
|
|
@@ -42,8 +39,6 @@ export declare const filmBeat: z.ZodObject<{
|
|
|
42
39
|
at: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
43
40
|
}, z.core.$strict>;
|
|
44
41
|
export type FilmBeat = z.infer<typeof filmBeat>;
|
|
45
|
-
/** What a styled draft keeps beside its theme: the style, the brand roles the brand or the call chose (none: the style's own colours), the
|
|
46
|
-
* account's seed for the style's variation, and the beats. */
|
|
47
42
|
export declare const filmDraftCanvas: z.ZodObject<{
|
|
48
43
|
style: z.ZodEnum<{
|
|
49
44
|
anime: "anime";
|
package/dist/film-styles.js
CHANGED
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
// The drawn styles a film draft may name (#1338): each draws the whole film from the draft's beats, in the draft's brand colours, instead of
|
|
3
|
-
// the draft's scene code. A test holds these names equal to the styles and subjects the render site carries.
|
|
4
2
|
export const FILM_STYLES = ["pixel", "ps2", "comic", "bricks", "clay", "paper", "anime", "lowpoly", "riso", "diorama",
|
|
5
3
|
"popup", "claymation", "watercolor", "isle", "cel80s"];
|
|
6
|
-
/** What a style can draw: one subject a beat. */
|
|
7
4
|
export const FILM_STYLE_SUBJECTS = ["seed", "plant-seed", "water", "sun", "sprout", "transplant", "stake", "green-fruit", "tomato", "salad",
|
|
8
5
|
"hook_cold", "hook_heat", "hook_how", "loop", "low", "coil_in", "coil_soak", "fan_blow", "fan_cool", "comp_travel", "comp_squeeze", "out_coil",
|
|
9
6
|
"heat_away", "to_liquid", "valve", "pressure", "ice", "same_loop", "finale"];
|
|
10
|
-
/** A styled film's bounds: beats, a beat's length and the film's, as the style runtime takes them. */
|
|
11
7
|
export const FILM_MAX_BEATS = 40, FILM_BEAT_MIN_SEC = 0.5, FILM_BEAT_MAX_SEC = 20, FILM_STYLED_MAX_SEC = 90, FILM_BEAT_LINE_MAX_CHARS = 160;
|
|
12
8
|
const ANCHOR = z.string().regex(/^[A-Za-z_]\w{0,40}$/, "an anchor is an identifier");
|
|
13
|
-
/** One beat: the subject drawn, the line shown, and when it starts (an anchor of the draft's cues, or seconds); it lasts until the next. */
|
|
14
9
|
export const filmBeat = z.strictObject({
|
|
15
10
|
subject: z.enum(FILM_STYLE_SUBJECTS).describe("What the style draws on this beat"),
|
|
16
11
|
line: z.string().trim().min(1).max(FILM_BEAT_LINE_MAX_CHARS).describe("The words shown on this beat"),
|
|
17
12
|
at: z.union([ANCHOR, z.number().min(0).max(600)]).describe("When the beat starts: an anchor of the draft's cues or seconds; the first starts the film"),
|
|
18
13
|
});
|
|
19
14
|
const ROLE = z.string().regex(/^#[0-9a-fA-F]{6}$/);
|
|
20
|
-
/** What a styled draft keeps beside its theme: the style, the brand roles the brand or the call chose (none: the style's own colours), the
|
|
21
|
-
* account's seed for the style's variation, and the beats. */
|
|
22
15
|
export const filmDraftCanvas = z.strictObject({
|
|
23
16
|
style: z.enum(FILM_STYLES),
|
|
24
17
|
roles: z.strictObject({ background: ROLE.optional(), surface: ROLE.optional(), ink: ROLE.optional(), accent: ROLE.optional(),
|
|
@@ -26,4 +19,3 @@ export const filmDraftCanvas = z.strictObject({
|
|
|
26
19
|
seed: z.number().int().min(0).max(2 ** 31 - 1),
|
|
27
20
|
beats: z.array(filmBeat).max(FILM_MAX_BEATS),
|
|
28
21
|
});
|
|
29
|
-
//# sourceMappingURL=film-styles.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** A clip described as a shot: framing, subject, start, timed beats, camera, light and continuity, in place of a free prompt. */
|
|
3
2
|
export declare const SHOT_SIZES: readonly ["extreme_close_up", "close_up", "medium_close_up", "medium", "full", "wide"];
|
|
4
3
|
export declare const SHOT_ANGLES: readonly ["eye_level", "low", "high", "overhead"];
|
|
5
4
|
export declare const SHOT_DEPTHS: readonly ["shallow", "deep"];
|
|
@@ -9,7 +8,6 @@ export declare const SHOT_BEAT_MIN_S = 1;
|
|
|
9
8
|
export declare const SHOT_BEAT_MAX_S = 5;
|
|
10
9
|
export declare const SHOT_MAX_BEATS = 10;
|
|
11
10
|
export declare const SHOT_MAX_OBJECTS = 6;
|
|
12
|
-
/** All the shot's words together, so the written clip stays inside the prompt's length. */
|
|
13
11
|
export declare const SHOT_TEXT_MAX_CHARS = 3000;
|
|
14
12
|
export type ShotSize = (typeof SHOT_SIZES)[number];
|
|
15
13
|
export type ShotAngle = (typeof SHOT_ANGLES)[number];
|
|
@@ -26,7 +24,6 @@ export declare const shotBeat: z.ZodObject<{
|
|
|
26
24
|
end_state: z.ZodString;
|
|
27
25
|
objects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
26
|
}, z.core.$strict>;
|
|
29
|
-
/** Validated against duration_s by `shotIssues`, which the clip request and later callers run. */
|
|
30
27
|
export declare const generationShot: z.ZodObject<{
|
|
31
28
|
framing: z.ZodObject<{
|
|
32
29
|
size: z.ZodEnum<{
|
|
@@ -94,7 +91,5 @@ export interface ShotIssue {
|
|
|
94
91
|
path: (string | number)[];
|
|
95
92
|
message: string;
|
|
96
93
|
}
|
|
97
|
-
/** The first negating word of `text`, or null; the one lint for a shot's words and any text written from them. */
|
|
98
94
|
export declare function negationIn(text: string): string | null;
|
|
99
|
-
/** Everything a shot must satisfy for a clip of `durationS` seconds; empty means the shot is sound. Paths are relative to the shot. */
|
|
100
95
|
export declare function shotIssues(shot: GenerationShot, durationS: number): ShotIssue[];
|
package/dist/generation-shot.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** A clip described as a shot: framing, subject, start, timed beats, camera, light and continuity, in place of a free prompt. */
|
|
3
2
|
export const SHOT_SIZES = ["extreme_close_up", "close_up", "medium_close_up", "medium", "full", "wide"];
|
|
4
3
|
export const SHOT_ANGLES = ["eye_level", "low", "high", "overhead"];
|
|
5
4
|
export const SHOT_DEPTHS = ["shallow", "deep"];
|
|
@@ -9,7 +8,6 @@ export const SHOT_BEAT_MIN_S = 1;
|
|
|
9
8
|
export const SHOT_BEAT_MAX_S = 5;
|
|
10
9
|
export const SHOT_MAX_BEATS = 10;
|
|
11
10
|
export const SHOT_MAX_OBJECTS = 6;
|
|
12
|
-
/** All the shot's words together, so the written clip stays inside the prompt's length. */
|
|
13
11
|
export const SHOT_TEXT_MAX_CHARS = 3000;
|
|
14
12
|
const text = (max) => z.string().trim().min(1).max(max);
|
|
15
13
|
const BEATS_DESCRIPTION = "The action, second by second: contiguous beats from 0 to duration_s, each 1 to 5 seconds, every second " +
|
|
@@ -32,7 +30,6 @@ export const shotBeat = z.strictObject({
|
|
|
32
30
|
objects: z.array(text(40)).max(SHOT_MAX_OBJECTS).optional()
|
|
33
31
|
.describe("The objects this beat handles, by their names in subject.objects; each name also appears in action."),
|
|
34
32
|
});
|
|
35
|
-
/** Validated against duration_s by `shotIssues`, which the clip request and later callers run. */
|
|
36
33
|
export const generationShot = z.strictObject({
|
|
37
34
|
framing: z.strictObject({
|
|
38
35
|
size: z.enum(SHOT_SIZES),
|
|
@@ -57,9 +54,7 @@ export const generationShot = z.strictObject({
|
|
|
57
54
|
continues_from: text(300).optional().describe("The previous clip's end_state, word for word, when this clip continues it."),
|
|
58
55
|
}),
|
|
59
56
|
});
|
|
60
|
-
/** Negation and its contractions: a model reads the named thing as something to draw. */
|
|
61
57
|
const NEGATION = /\b(?:no|not|never|none|nothing|nobody|nowhere|neither|nor|without|avoid(?:s|ed|ing)?|\w+n['’]t|cannot)\b/i;
|
|
62
|
-
/** The first negating word of `text`, or null; the one lint for a shot's words and any text written from them. */
|
|
63
58
|
export function negationIn(text) {
|
|
64
59
|
return NEGATION.exec(text)?.[0] ?? null;
|
|
65
60
|
}
|
|
@@ -83,9 +78,7 @@ function freeText(shot) {
|
|
|
83
78
|
: [[["continuity", "continues_from"], shot.continuity.continues_from]]),
|
|
84
79
|
];
|
|
85
80
|
}
|
|
86
|
-
/** The name as a whole word, read literally: no word character on either side, so "c++" and "jar.box" match as written. */
|
|
87
81
|
const mentions = (haystack, name) => new RegExp(`(?<!\\w)${name.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}(?!\\w)`, "i").test(haystack);
|
|
88
|
-
/** Everything a shot must satisfy for a clip of `durationS` seconds; empty means the shot is sound. Paths are relative to the shot. */
|
|
89
82
|
export function shotIssues(shot, durationS) {
|
|
90
83
|
const issues = [];
|
|
91
84
|
let at = 0;
|
|
@@ -126,4 +119,3 @@ export function shotIssues(shot, durationS) {
|
|
|
126
119
|
issues.push({ path: [], message: `holds ${total} characters of text; a shot holds at most ${SHOT_TEXT_MAX_CHARS}` });
|
|
127
120
|
return issues;
|
|
128
121
|
}
|
|
129
|
-
//# sourceMappingURL=generation-shot.js.map
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** Apart from `generations.ts`, which imports `runs.ts`: the run read can embed this block without a cycle. */
|
|
3
2
|
export declare const GENERATION_KINDS: readonly ["image", "video"];
|
|
4
3
|
export type GenerationKind = (typeof GENERATION_KINDS)[number];
|
|
5
|
-
/** The `generation` block of `GET /v1/runs/{id}`: the delivered file and how long its id serves as a reference. */
|
|
6
4
|
export declare const runGeneration: z.ZodObject<{
|
|
7
5
|
kind: z.ZodEnum<{
|
|
8
6
|
image: "image";
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** Apart from `generations.ts`, which imports `runs.ts`: the run read can embed this block without a cycle. */
|
|
3
2
|
export const GENERATION_KINDS = ["image", "video"];
|
|
4
|
-
/** The `generation` block of `GET /v1/runs/{id}`: the delivered file and how long its id serves as a reference. */
|
|
5
3
|
export const runGeneration = z.strictObject({
|
|
6
4
|
kind: z.enum(GENERATION_KINDS),
|
|
7
|
-
// A string, not an enum: a model added later must not break installed clients.
|
|
8
5
|
model: z.string().min(1),
|
|
9
6
|
url: z.string().url(),
|
|
10
7
|
mime: z.string().min(1),
|
|
@@ -12,7 +9,5 @@ export const runGeneration = z.strictObject({
|
|
|
12
9
|
height: z.number().int().positive(),
|
|
13
10
|
duration_s: z.number().positive().nullable(),
|
|
14
11
|
reusable_until: z.string().datetime().describe("Until then, create_asset with source.run_id turns this file into an asset_id for templates and inserts."),
|
|
15
|
-
/** Small JPEG links (one for a picture; start, middle and end for a clip); absent when none was made (#1245). */
|
|
16
12
|
thumbnail_urls: z.array(z.string().url()).max(3).optional(),
|
|
17
13
|
});
|
|
18
|
-
//# sourceMappingURL=generations-output.js.map
|