@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { makeUgcInputShape, mcpCaptionPlace, mcpLiveShots, mcpPresenterGaze, mcpPresenterPlace, mcpUgcCall, mcpUgcInterview, mcpUgcOverlay, mcpUgcScene, mcpUgcTemplate } from "./skills.js";
|
|
2
|
+
import { AD_END_HOLD_WARNING, makeUgcInputShape, mcpCaptionPlace, mcpLiveShots, mcpPresenterGaze, mcpPresenterPlace, mcpUgcCall, mcpUgcInterview, mcpUgcOverlay, mcpUgcScene, mcpUgcTemplate } from "./skills.js";
|
|
3
3
|
import { MCP_UGC_DESCRIPTIONS } from "./mcp-ugc-descriptions.js";
|
|
4
4
|
import { interviewWarnings } from "./ugc-interview.js";
|
|
5
5
|
import { commentCtaFitWarnings, MAX_TEMPLATES, mcpTemplateSounds, seriesFitWarnings, templateFaceWarnings, templateMediaOf, templateSceneItems, templateSizeWarnings } from "./templates/index.js";
|
|
@@ -15,34 +15,23 @@ import { AD_PAUSE_TRIM_WARNING } from "./ad-pause-trim.js";
|
|
|
15
15
|
import { isPresenterMatteEnabled, needsPresenterCutout, PRESENTER_MATTE_DISABLED_MESSAGE } from "./presenter-matte.js";
|
|
16
16
|
import { SCENE_DIRECTOR_DISABLED_MESSAGE, SCENE_UNUSED_WARNING, sceneDirectorAccounts } from "./scene-bible.js";
|
|
17
17
|
import { SCENE_PROPOSAL_DISABLED_MESSAGE } from "./scene-proposal.js";
|
|
18
|
-
/** Disposition registry for `make_ugc` input fields: every field must have a recorded */
|
|
19
|
-
/** decision. The type guards completeness; tests at each effect boundary prove truth. */
|
|
20
|
-
/** Public header/quote version: optional visible_ai_label and new-run marking admission policy. */
|
|
21
|
-
/** Internal marking policy/profile identifiers are versioned separately. */
|
|
22
18
|
export const CONTRACT_VERSION = "2026-10-18";
|
|
23
19
|
export const CONTRACT_VERSION_HEADER = "X-Clipwright-Contract";
|
|
24
|
-
/** An explicit `broll_policy` on a run that shows none of the customer's media. */
|
|
25
20
|
export const BROLL_UNUSED_WARNING = "broll_policy has no effect on this video: it shows none of your media";
|
|
26
21
|
export const DESIGN_UNUSED_WARNING = "design has no effect on this video: it has no templates and no captions to draw in it";
|
|
27
|
-
/** The customer's media `broll_policy` lets in: segments, inserts, overlays, windows and template pictures. */
|
|
28
22
|
function carriesCustomerMedia(input) {
|
|
29
23
|
const listed = (field) => Array.isArray(input[field]) && input[field].length > 0;
|
|
30
24
|
return listed("inserts") || listed("overlays") || listed("layout_windows") ||
|
|
31
25
|
(Array.isArray(input.segments) && input.segments.some(segment => segment.kind === "media")) ||
|
|
32
26
|
(Array.isArray(input.templates) && templateMediaOf(input.templates).length > 0);
|
|
33
27
|
}
|
|
34
|
-
/** `satisfies` guards completeness; `as const` keeps literal types, from which the rejected */
|
|
35
|
-
/** set is derived below instead of being listed by hand. */
|
|
36
28
|
export const FIELD_DISPOSITIONS = {
|
|
37
29
|
script: { kind: "implemented", provenBy: "egress" },
|
|
38
30
|
voice: { kind: "implemented", provenBy: "egress" },
|
|
39
31
|
voice_id: { kind: "implemented", provenBy: "egress" },
|
|
40
32
|
tts_model: { kind: "implemented", provenBy: "egress" },
|
|
41
|
-
// Speed models get it as speed; eleven_v4 drops it and Gemini gets a style hint, both with a warning (#890; egress tests).
|
|
42
33
|
voice_pace: { kind: "implemented", provenBy: "egress" },
|
|
43
|
-
// The trimmed take is what the avatar vendor receives; a skipped joint or a take without timings is named in warnings[].
|
|
44
34
|
pause_trim: { kind: "implemented", provenBy: "egress" },
|
|
45
|
-
// Fields that do not reach the render and are reported as not honored.
|
|
46
35
|
person: {
|
|
47
36
|
kind: "warned",
|
|
48
37
|
warning: "person is not honored yet: this request uses the default actor; choose actor_id from list_actors or provide image to select a different face",
|
|
@@ -58,30 +47,21 @@ export const FIELD_DISPOSITIONS = {
|
|
|
58
47
|
warning: "look is not honored yet: it does not reach the renderer",
|
|
59
48
|
triggersWhen: "differs-from-default",
|
|
60
49
|
},
|
|
61
|
-
// Drawn by composition; with composition off the run names the undrawn captions in its warnings.
|
|
62
50
|
captions: { kind: "implemented", provenBy: "composition" },
|
|
63
51
|
caption_style: { kind: "implemented", provenBy: "composition" },
|
|
64
52
|
caption_emphasis: { kind: "implemented", provenBy: "composition" },
|
|
65
53
|
caption_mode: { kind: "implemented", provenBy: "composition" },
|
|
66
54
|
caption_position: { kind: "implemented", provenBy: "composition" },
|
|
67
|
-
// Pinned captions: overlays never move them (#973 S2).
|
|
68
55
|
caption_place: { kind: "implemented", provenBy: "composition" },
|
|
69
|
-
// Frames the actor's portrait before the vendor; a face it cannot reach is named in warnings[] (#973 S2b).
|
|
70
56
|
presenter_place: { kind: "implemented", provenBy: "egress" },
|
|
71
|
-
// Both reach the vendor from the request; egress tests require each offered resolution
|
|
72
|
-
// to produce its own request body.
|
|
73
57
|
resolution: { kind: "implemented", provenBy: "egress" },
|
|
74
58
|
aspect_ratio: { kind: "implemented", provenBy: "egress" },
|
|
75
|
-
// Gated by `CLIPWRIGHT_REMOTE_FETCH`: `resolveDispositions` rejects it when the flag is off.
|
|
76
59
|
image: { kind: "implemented", provenBy: "egress" },
|
|
77
60
|
actor_id: { kind: "implemented", provenBy: "egress" },
|
|
78
|
-
// Picks the actor's wide view for the vendor; a request without one renders close and says so in warnings[] (#884 S5d).
|
|
79
61
|
presenter_framing: { kind: "implemented", provenBy: "egress" },
|
|
80
|
-
// Picks the actor's view with a handheld mic the same way.
|
|
81
62
|
presenter_mic: { kind: "implemented", provenBy: "egress" },
|
|
82
63
|
actor_gender: { kind: "implemented", provenBy: "egress" },
|
|
83
64
|
broll_policy: { kind: "stored", message: BROLL_POLICY_DESCRIPTION, warning: BROLL_UNUSED_WARNING },
|
|
84
|
-
// Offered to clients; long-form qualification gates admission below.
|
|
85
65
|
segments: { kind: "implemented", provenBy: "composition" },
|
|
86
66
|
inserts: { kind: "implemented", provenBy: "composition" },
|
|
87
67
|
overlays: { kind: "implemented", provenBy: "composition" },
|
|
@@ -89,34 +69,21 @@ export const FIELD_DISPOSITIONS = {
|
|
|
89
69
|
framing: { kind: "implemented", provenBy: "composition" },
|
|
90
70
|
templates: { kind: "implemented", provenBy: "composition" },
|
|
91
71
|
template_theme: { kind: "implemented", provenBy: "composition" },
|
|
92
|
-
// The run's DNA (#1122): the templates' look, the end card and the caption accent.
|
|
93
72
|
design: { kind: "implemented", provenBy: "composition" },
|
|
94
73
|
template_sounds: { kind: "implemented", provenBy: "composition" },
|
|
95
|
-
// Authored for the run, checked and drawn beside templates; one that fails is left out and named (#1107), gated by its switch.
|
|
96
74
|
scenes: { kind: "implemented", provenBy: "composition" },
|
|
97
|
-
// Captions, templates and scenes drawn in the style, words switched with the style's cut (#1123), gated by its switch.
|
|
98
75
|
motion_style: { kind: "implemented", provenBy: "composition" },
|
|
99
|
-
// Catalogue moves (#1175): admission turns each into the layer above that draws it, or names it in warnings[]; the render sees only those layers.
|
|
100
76
|
moves: { kind: "implemented", provenBy: "admission" },
|
|
101
77
|
edit_sounds: { kind: "implemented", provenBy: "composition" },
|
|
102
|
-
// Mixed under the voice before marking, gated by its switch; a delivered video without it names why (#1063).
|
|
103
78
|
music: { kind: "implemented", provenBy: "finalization" },
|
|
104
|
-
// Mixed into the narration and rung by the phone over the hold (#857 S5).
|
|
105
79
|
call: { kind: "implemented", provenBy: "composition" },
|
|
106
|
-
// One conversation voiced, the presenter frozen over the off-screen lines and captioned by speaker (#972).
|
|
107
80
|
interview: { kind: "implemented", provenBy: "composition" },
|
|
108
|
-
// Picks the actor's view with that gaze for each take (#972).
|
|
109
81
|
presenter_gaze: { kind: "implemented", provenBy: "egress" },
|
|
110
|
-
// The last frame held after the last word, the presenter frozen under the layers then on screen (#991).
|
|
111
82
|
end_hold_s: { kind: "implemented", provenBy: "composition" },
|
|
112
|
-
// Each shot drawn by its kind's engine and cut into the timeline as an actor take (#1103), gated by its switch.
|
|
113
83
|
shots: { kind: "implemented", provenBy: "composition" },
|
|
114
84
|
product_asset_id: { kind: "implemented", provenBy: "composition" },
|
|
115
|
-
// One scene written into every live shot's prompt (#1491), gated by its switch; on a video without shots it is named in warnings[].
|
|
116
85
|
scene: { kind: "implemented", provenBy: "egress" },
|
|
117
|
-
// An accepted quote proposal (#1491 S6): admission expands it into the fields above, gated by the scene director's switch.
|
|
118
86
|
proposal: { kind: "implemented", provenBy: "admission" },
|
|
119
|
-
// The quote's choice to propose no scene; on a paid call, the choice to add no free move (#1517).
|
|
120
87
|
propose: { kind: "implemented", provenBy: "admission" },
|
|
121
88
|
character: {
|
|
122
89
|
kind: "rejected",
|
|
@@ -126,26 +93,18 @@ export const FIELD_DISPOSITIONS = {
|
|
|
126
93
|
kind: "rejected",
|
|
127
94
|
message: "broll_url is not supported yet: b-roll requires segmented composition. Omit it",
|
|
128
95
|
},
|
|
129
|
-
// The visible label is gone (clipwright#488); the refusal says where the disclosure lives.
|
|
130
96
|
disclosure_overlay: {
|
|
131
97
|
kind: "rejected",
|
|
132
98
|
message: "disclosure_overlay is not supported: the visible label was removed. The output is still marked in the run contract and in the file metadata; label the publication with the platform's own control",
|
|
133
99
|
},
|
|
134
|
-
// Applied to the completed video before the invisible mark and C2PA signature.
|
|
135
100
|
visible_ai_label: { kind: "implemented", provenBy: "finalization" },
|
|
136
|
-
// Applied by composition and gated by `CLIPWRIGHT_COMPOSE`, like `image` is gated
|
|
137
|
-
// by `CLIPWRIGHT_REMOTE_FETCH`.
|
|
138
101
|
background: { kind: "implemented", provenBy: "composition" },
|
|
139
|
-
// The call's spend ceiling (#942): admission refuses a hold above it before anything is reserved.
|
|
140
102
|
max_credits: { kind: "implemented", provenBy: "admission" },
|
|
141
|
-
// Only a synchronous refusal reaches the caller: a subscriber stops polling, and
|
|
142
|
-
// `warnings[]` arrive through the very `get_run` channel it abandoned.
|
|
143
103
|
webhook_url: {
|
|
144
104
|
kind: "rejected",
|
|
145
105
|
message: "webhook_url is not supported: no webhook is ever delivered. Poll get_run with the run_id instead",
|
|
146
106
|
},
|
|
147
107
|
};
|
|
148
|
-
/** `make_faceless` fields refused by name: its input schema keeps the key and answers with this reason. */
|
|
149
108
|
export const FACELESS_REJECTED_FIELDS = {
|
|
150
109
|
voice_id: {
|
|
151
110
|
kind: "rejected",
|
|
@@ -153,38 +112,29 @@ export const FACELESS_REJECTED_FIELDS = {
|
|
|
153
112
|
"or omit both for the default voice",
|
|
154
113
|
},
|
|
155
114
|
};
|
|
156
|
-
/** Input fields in shape declaration order: a deterministic walk of the registry. */
|
|
157
115
|
const CONTRACT_FIELDS = Object.keys(makeUgcInputShape);
|
|
158
|
-
/** Motion styles have their own switch and draw only where composition does (#1123). */
|
|
159
116
|
export function isMotionStylesEnabled(env = typeof process === "undefined" ? {} : process.env) {
|
|
160
117
|
return env.CLIPWRIGHT_MOTION_STYLES === "1" && env.CLIPWRIGHT_COMPOSE === "1";
|
|
161
118
|
}
|
|
162
119
|
export const MOTION_STYLES_DISABLED_MESSAGE = "motion_style is not available right now; omit motion_style";
|
|
163
|
-
/** Scenes ride on long-form and have their own switch (#1107). */
|
|
164
120
|
export function isScenesEnabled(env = typeof process === "undefined" ? {} : process.env) {
|
|
165
121
|
return env.CLIPWRIGHT_SCENES === "1" && isLongFormQualificationEnabled(env);
|
|
166
122
|
}
|
|
167
|
-
/** Live shots ride on long-form and have their own switch (#1103). */
|
|
168
123
|
export function isLiveShotsEnabled(env = typeof process === "undefined" ? {} : process.env) {
|
|
169
124
|
return env.CLIPWRIGHT_LIVE_SHOTS === "1" && isLongFormQualificationEnabled(env);
|
|
170
125
|
}
|
|
171
126
|
export const LIVE_SHOTS_DISABLED_MESSAGE = "shots are not available right now; omit shots and product_asset_id";
|
|
172
|
-
/** `create_actor` is open only with the fetch surface: a personal actor cannot render without it. */
|
|
173
127
|
export function isActorGenerationEnabled(env = typeof process === "undefined" ? {} : process.env) {
|
|
174
128
|
return env.CLIPWRIGHT_ACTOR_GENERATION === "1" && env.CLIPWRIGHT_REMOTE_FETCH === "1";
|
|
175
129
|
}
|
|
176
|
-
/** An actor derived from an actor (#898) rides on generation and has its own switch. */
|
|
177
130
|
export function isActorViewsEnabled(env = typeof process === "undefined" ? {} : process.env) {
|
|
178
131
|
return env.CLIPWRIGHT_ACTOR_VIEWS === "1" && isActorGenerationEnabled(env);
|
|
179
132
|
}
|
|
180
|
-
/** `create_actor` builds a face from words, so with generation on the advice points there. */
|
|
181
133
|
const PERSON_WITH_ACTOR_GENERATION = {
|
|
182
134
|
kind: "warned",
|
|
183
135
|
warning: "person is not honored: this request uses the default actor; create a personal actor from the description with create_actor, then pass its actor_id",
|
|
184
136
|
triggersWhen: "present",
|
|
185
137
|
};
|
|
186
|
-
/** Flags from the environment, read once per process: a flag changes only on restart, */
|
|
187
|
-
/** and `tools/list` must not flicker between calls. */
|
|
188
138
|
export function contractFlagsFromEnv(env = typeof process === "undefined" ? {} : process.env) {
|
|
189
139
|
return {
|
|
190
140
|
remoteFetch: env.CLIPWRIGHT_REMOTE_FETCH === "1",
|
|
@@ -207,12 +157,10 @@ const REMOTE_FETCH_DISABLED = {
|
|
|
207
157
|
kind: "rejected",
|
|
208
158
|
message: "image is temporarily disabled (remote media fetch is off); omit it to render with the default actor",
|
|
209
159
|
};
|
|
210
|
-
/** Refusal for `background` when the composition stage is off. */
|
|
211
160
|
const COMPOSE_DISABLED = {
|
|
212
161
|
kind: "rejected",
|
|
213
162
|
message: "background is not available right now. Request an aspect_ratio close to your image instead",
|
|
214
163
|
};
|
|
215
|
-
/** A run stored before captions were drawn (no `composition_version`) keeps the lines it was admitted with. */
|
|
216
164
|
export function legacyCaptionWarnings(input) {
|
|
217
165
|
return [
|
|
218
166
|
...(input.captions === true ? ["captions requested but not rendered in this prototype (stage-B)"] : []),
|
|
@@ -220,9 +168,7 @@ export function legacyCaptionWarnings(input) {
|
|
|
220
168
|
? ["caption_style is not honored: captions are not rendered in this prototype (stage-B)"] : []),
|
|
221
169
|
];
|
|
222
170
|
}
|
|
223
|
-
/** Captions a version-2 run asked for and could not draw with composition off; written by the run. */
|
|
224
171
|
export const CAPTIONS_COMPOSE_DISABLED_WARNING = "captions were not drawn: composition is not available right now";
|
|
225
|
-
/** The composition-only parts a run asked for (#778 S2b): a render without composition names them instead of dropping them. */
|
|
226
172
|
export function compositionLayerFields(input) {
|
|
227
173
|
return [
|
|
228
174
|
...(input.overlays !== undefined ? ["overlays"] : []),
|
|
@@ -237,22 +183,16 @@ export function compositionLayerFields(input) {
|
|
|
237
183
|
...(input.edit_sounds === true ? ["edit_sounds"] : []),
|
|
238
184
|
];
|
|
239
185
|
}
|
|
240
|
-
/** The warning that names undrawn composition-only parts, or none. */
|
|
241
186
|
export function compositionLayersNotDrawnWarnings(input, reason) {
|
|
242
187
|
const fields = compositionLayerFields(input);
|
|
243
188
|
return fields.length ? [`${fields.join(", ")} ${fields.length === 1 ? "was" : "were"} not drawn: ${reason}`] : [];
|
|
244
189
|
}
|
|
245
|
-
/** Long-form prerequisites in ONE expression for all its fields: two copies could */
|
|
246
|
-
/** open `segments` while `inserts` stay closed. */
|
|
247
190
|
function longFormReady(flags) {
|
|
248
191
|
return flags.longForm === true && flags.remoteFetch && flags.compose;
|
|
249
192
|
}
|
|
250
193
|
const LONG_FORM_DISABLED = { kind: "rejected", message: LONG_FORM_DISABLED_MESSAGE };
|
|
251
|
-
/** Templates draw on a plain run too, so their refusal names them and not the long-form fix (#840 D6). */
|
|
252
194
|
const TEMPLATES_DISABLED = { kind: "rejected",
|
|
253
195
|
message: "templates are not available right now; omit templates, template_theme and template_sounds" };
|
|
254
|
-
/** Dispositions with flags applied: the base table says what the code can do, this */
|
|
255
|
-
/** says what it offers right now. */
|
|
256
196
|
export function resolveDispositions(flags) {
|
|
257
197
|
const longForm = longFormReady(flags);
|
|
258
198
|
return {
|
|
@@ -281,11 +221,9 @@ export function resolveDispositions(flags) {
|
|
|
281
221
|
actor_id: flags.remoteFetch ? FIELD_DISPOSITIONS.actor_id : {
|
|
282
222
|
kind: "rejected", message: "actor_id is temporarily disabled (remote media fetch is off); omit it to use the default actor",
|
|
283
223
|
},
|
|
284
|
-
// actor_gender names the face in `image` or picks a catalogue actor (an actor_id), so it switches off with both.
|
|
285
224
|
actor_gender: flags.remoteFetch ? FIELD_DISPOSITIONS.actor_gender : {
|
|
286
225
|
kind: "rejected", message: "actor_gender is temporarily disabled together with image and actor_id (remote media fetch is off); omit it to use the default actor",
|
|
287
226
|
},
|
|
288
|
-
// With composition off nothing can apply a background, so the field is rejected.
|
|
289
227
|
background: flags.compose ? FIELD_DISPOSITIONS.background : COMPOSE_DISABLED,
|
|
290
228
|
visible_ai_label: flags.outputMarking === true ? FIELD_DISPOSITIONS.visible_ai_label : {
|
|
291
229
|
kind: "rejected", message: "visible_ai_label is not available right now; omit it",
|
|
@@ -295,19 +233,14 @@ export function resolveDispositions(flags) {
|
|
|
295
233
|
proposal: flags.sceneDirector === true ? FIELD_DISPOSITIONS.proposal : { kind: "rejected", message: SCENE_PROPOSAL_DISABLED_MESSAGE },
|
|
296
234
|
};
|
|
297
235
|
}
|
|
298
|
-
/** The process's effective table, from which every surface is built: `FIELD_DISPOSITIONS` */
|
|
299
|
-
/** with the flags applied. */
|
|
300
236
|
export const EFFECTIVE_DISPOSITIONS = resolveDispositions({
|
|
301
237
|
...contractFlagsFromEnv(),
|
|
302
238
|
actorGeneration: isActorGenerationEnabled(),
|
|
303
239
|
});
|
|
304
|
-
/** A field's default, taken from the schema itself: a second list of defaults would drift. */
|
|
305
240
|
const FIELD_DEFAULTS = Object.fromEntries(CONTRACT_FIELDS.map((field) => {
|
|
306
241
|
const parsed = makeUgcInputShape[field].safeParse(undefined);
|
|
307
242
|
return [field, parsed.success ? parsed.data : undefined];
|
|
308
243
|
}));
|
|
309
|
-
/** Disposition note for the JSON Schema `description`, from the base table: the schema */
|
|
310
|
-
/** belongs to the client, the flags to the server, whose 400 text names emergency refusals. */
|
|
311
244
|
export function dispositionNote(field) {
|
|
312
245
|
return noteFor(FIELD_DISPOSITIONS[field]);
|
|
313
246
|
}
|
|
@@ -327,28 +260,17 @@ function annotate(field) {
|
|
|
327
260
|
const schema = makeUgcInputShape[field];
|
|
328
261
|
return (note ? schema.describe(note) : schema);
|
|
329
262
|
}
|
|
330
|
-
// The MCP server runs on the user's machine, so its env is the client's. What is offered
|
|
331
|
-
// comes from the base table; what is accepted right now comes from the effective one.
|
|
332
|
-
/** Full input shape where every unhonored field carries its reason. For surfaces that list */
|
|
333
|
-
/** all fields; offer fields to callers from `offeredUgcInputShape` instead. */
|
|
334
263
|
export const annotatedUgcInputShape = Object.fromEntries(CONTRACT_FIELDS.map((field) => [field, annotate(field)]));
|
|
335
|
-
/** Offered input surface = full shape minus rejected fields, so no schema offers a field */
|
|
336
|
-
/** that then gets a 400. Derived from the registry, so one line moves a field. */
|
|
337
264
|
export const offeredUgcInputShape = Object.fromEntries(CONTRACT_FIELDS.filter((field) => FIELD_DISPOSITIONS[field].kind !== "rejected").map((field) => [field, annotate(field)]));
|
|
338
|
-
/** Input type for SDK/CLI/MCP, from the offered shape. Separate from `MakeUgcInput` (the */
|
|
339
|
-
/** `z.infer` output, where defaults are required) so callers need not fill every field. */
|
|
340
265
|
export const offeredUgcInput = z.object(offeredUgcInputShape);
|
|
341
266
|
const compactFields = Object.keys(MCP_UGC_DESCRIPTIONS);
|
|
342
267
|
const compactlyDescribed = Object.fromEntries(compactFields
|
|
343
268
|
.map((field) => [field, offeredUgcInputShape[field].describe(MCP_UGC_DESCRIPTIONS[field])]));
|
|
344
|
-
/** A field's text, also when it sits on the schema an optional or a default wraps. */
|
|
345
269
|
export const fieldText = (schema) => {
|
|
346
270
|
const inner = schema._zod.def.innerType;
|
|
347
271
|
return schema.description ?? (inner === undefined ? undefined : fieldText(inner));
|
|
348
272
|
};
|
|
349
|
-
/** The full texts quote_ugc says in shorter words; another tool's field with the same text needs none of its own. */
|
|
350
273
|
export const MCP_UGC_SHORTENED_TEXTS = compactFields.map((field) => fieldText(offeredUgcInputShape[field]) ?? "");
|
|
351
|
-
/** The MCP offer: the same fields with the slim template and overlay items and shorter texts, which keep tools/list small (#778 S3, D3; #973 S1; #1045). */
|
|
352
274
|
export const mcpUgcInputShape = { ...offeredUgcInputShape, ...compactlyDescribed,
|
|
353
275
|
overlays: z.array(mcpUgcOverlay).min(1).max(MAX_OVERLAYS).optional().describe(MCP_UGC_DESCRIPTIONS.overlays),
|
|
354
276
|
templates: z.array(mcpUgcTemplate).min(1).max(MAX_TEMPLATES).optional().describe(MCP_UGC_DESCRIPTIONS.templates),
|
|
@@ -358,8 +280,6 @@ export const mcpUgcInputShape = { ...offeredUgcInputShape, ...compactlyDescribed
|
|
|
358
280
|
interview: mcpUgcInterview.optional(), presenter_gaze: mcpPresenterGaze.optional(), shots: mcpLiveShots.optional(),
|
|
359
281
|
design: mcpDesign.optional().describe("Look of templates, end card, caption highlight; absent: brand kit; not with template_theme. " +
|
|
360
282
|
"look, fonts: from brand_kit; palette #RRGGBB.") };
|
|
361
|
-
/** Rejected fields present in the input. Called by the API (400 before a run or a */
|
|
362
|
-
/** reserve), by MCP and by the SDK. */
|
|
363
283
|
export function rejectedFields(input, env = typeof process === "undefined" ? {} : process.env) {
|
|
364
284
|
const hits = [];
|
|
365
285
|
for (const field of CONTRACT_FIELDS) {
|
|
@@ -370,17 +290,13 @@ export function rejectedFields(input, env = typeof process === "undefined" ? {}
|
|
|
370
290
|
continue;
|
|
371
291
|
hits.push({ field, message: disposition.message });
|
|
372
292
|
}
|
|
373
|
-
// A kind behind its own switch is refused by value, the field itself staying open (#1428).
|
|
374
293
|
if (!hits.some(hit => hit.field === "templates") && needsPresenterCutout(input.templates) && !isPresenterMatteEnabled(env)) {
|
|
375
294
|
hits.push({ field: "templates", message: PRESENTER_MATTE_DISABLED_MESSAGE });
|
|
376
295
|
}
|
|
377
296
|
return hits;
|
|
378
297
|
}
|
|
379
298
|
const normalizedFieldName = (name) => name.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
380
|
-
/** Fields offered to the client; rejected ones are not listed. */
|
|
381
299
|
export const ACCEPTED_UGC_FIELDS = Object.keys(offeredUgcInputShape);
|
|
382
|
-
/** Keys outside `fields` (the contract by default). Rejected contract fields are not */
|
|
383
|
-
/** included: `rejectedFields` names them with their reason. */
|
|
384
300
|
export function unknownFields(raw, fields = CONTRACT_FIELDS) {
|
|
385
301
|
if (raw === null || typeof raw !== "object" || Array.isArray(raw))
|
|
386
302
|
return [];
|
|
@@ -392,8 +308,6 @@ export function unknownFields(raw, fields = CONTRACT_FIELDS) {
|
|
|
392
308
|
suggestion: fields.find((candidate) => normalizedFieldName(candidate) === normalizedFieldName(field)),
|
|
393
309
|
}));
|
|
394
310
|
}
|
|
395
|
-
/** Registry warnings for a parsed run input; defaults are filled in, so `===` tells silence */
|
|
396
|
-
/** from an explicit different value. Dynamic warnings come from their own generators. */
|
|
397
311
|
export function dispositionWarnings(input) {
|
|
398
312
|
const warnings = [];
|
|
399
313
|
for (const field of CONTRACT_FIELDS) {
|
|
@@ -412,14 +326,11 @@ export function dispositionWarnings(input) {
|
|
|
412
326
|
}
|
|
413
327
|
warnings.push(disposition.warning);
|
|
414
328
|
}
|
|
415
|
-
// A template asked onto the face is drawn there and named, on the quote, the run and its record alike (#778 S3).
|
|
416
329
|
const scene = { templates: Array.isArray(input.templates) ? input.templates : undefined,
|
|
417
330
|
aspect_ratio: typeof input.aspect_ratio === "string" ? input.aspect_ratio : undefined };
|
|
418
|
-
// A kit the account saved is not this video's request: only a design the call named is said to go unused.
|
|
419
331
|
if (input.design !== undefined && input.design_source !== "brand_kit" && !(Array.isArray(input.templates) && input.templates.length > 0) && input.captions !== true) {
|
|
420
332
|
warnings.push(DESIGN_UNUSED_WARNING);
|
|
421
333
|
}
|
|
422
|
-
// A style the call named (a kit's style is the account's, not this video's request) dresses only what is drawn (#1123).
|
|
423
334
|
const styled = { motion_style: input.motion_style,
|
|
424
335
|
design: input.design_source === "brand_kit" ? undefined : input.design };
|
|
425
336
|
if (motionStyleAsked(styled) && !motionStyleHasCanvas({ captions: input.captions === true, templates: scene.templates,
|
|
@@ -427,16 +338,14 @@ export function dispositionWarnings(input) {
|
|
|
427
338
|
warnings.push(MOTION_STYLE_UNUSED_WARNING);
|
|
428
339
|
if (input.pause_trim_source === "ad_default")
|
|
429
340
|
warnings.push(AD_PAUSE_TRIM_WARNING);
|
|
341
|
+
if (input.end_hold_source === "ad_default")
|
|
342
|
+
warnings.push(AD_END_HOLD_WARNING);
|
|
430
343
|
if (input.scene !== undefined && !(Array.isArray(input.shots) && input.shots.length > 0))
|
|
431
344
|
warnings.push(SCENE_UNUSED_WARNING);
|
|
432
345
|
warnings.push(...templateFaceWarnings(input), ...templateSizeWarnings(input), ...seriesFitWarnings(input), ...commentCtaFitWarnings(input), ...framingWarnings(input), ...callWarnings(input), ...placeWarnings(input, framing => templateSceneItems(scene, framing)), ...interviewWarnings(input));
|
|
433
346
|
return warnings;
|
|
434
347
|
}
|
|
435
|
-
/** Fields with an `implemented` disposition, input to the coverage meta-tests. From the */
|
|
436
|
-
/** base table: proof belongs to the code, and switching a field off does not revoke it. */
|
|
437
348
|
export const IMPLEMENTED_FIELDS = CONTRACT_FIELDS.filter((field) => FIELD_DISPOSITIONS[field].kind === "implemented");
|
|
438
|
-
/** Separate effect boundaries: outgoing vendor requests, composition trees, and final */
|
|
439
|
-
/** output processing each have their own behavior tests and coverage meta-test. */
|
|
440
349
|
export const EGRESS_PROVEN_FIELDS = CONTRACT_FIELDS.filter((field) => {
|
|
441
350
|
const disposition = FIELD_DISPOSITIONS[field];
|
|
442
351
|
return disposition.kind === "implemented" && disposition.provenBy === "egress";
|
|
@@ -445,7 +354,6 @@ export const COMPOSITION_PROVEN_FIELDS = CONTRACT_FIELDS.filter((field) => {
|
|
|
445
354
|
const disposition = FIELD_DISPOSITIONS[field];
|
|
446
355
|
return disposition.kind === "implemented" && disposition.provenBy === "composition";
|
|
447
356
|
});
|
|
448
|
-
/** A field the request resolves into other fields before any run exists, so no later stage sees it. */
|
|
449
357
|
export const ADMISSION_PROVEN_FIELDS = CONTRACT_FIELDS.filter((field) => {
|
|
450
358
|
const disposition = FIELD_DISPOSITIONS[field];
|
|
451
359
|
return disposition.kind === "implemented" && disposition.provenBy === "admission";
|
|
@@ -454,4 +362,3 @@ export const FINALIZATION_PROVEN_FIELDS = CONTRACT_FIELDS.filter((field) => {
|
|
|
454
362
|
const disposition = FIELD_DISPOSITIONS[field];
|
|
455
363
|
return disposition.kind === "implemented" && disposition.provenBy === "finalization";
|
|
456
364
|
});
|
|
457
|
-
//# sourceMappingURL=contract-dispositions.js.map
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
/** The lines a plan adds beyond its reference (#1192): one a raised device count can reach, framing's sixty among them. */
|
|
3
2
|
export declare const WORKFLOW_ADDED_MAX = 200;
|
|
4
|
-
/** The voice lines a plan keeps (#1203): as many as its move lines, so tools/list states the bound once. */
|
|
5
3
|
export declare const WORKFLOW_VOICE_WARNINGS_MAX = 40;
|
|
6
|
-
/** A plan refuses a picture URL here (`unbound_native_source`); the run's own description would promise the opposite (#1359). */
|
|
7
4
|
export declare const WORKFLOW_CHARACTER_REFERENCE_DESCRIPTION = "Not taken in a plan: a URL here is refused. Bind the picture as an asset instead.";
|
|
8
5
|
export declare const workflowNativeInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9
6
|
skill: z.ZodLiteral<"make_ugc">;
|
|
@@ -7308,6 +7305,7 @@ export declare const workflowNativeInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7308
7305
|
comma_s: z.ZodOptional<z.ZodNumber>;
|
|
7309
7306
|
mid_phrase_s: z.ZodOptional<z.ZodNumber>;
|
|
7310
7307
|
}, z.core.$strict>]>>;
|
|
7308
|
+
keep_anchors: z.ZodOptional<z.ZodBoolean>;
|
|
7311
7309
|
script: z.ZodString;
|
|
7312
7310
|
character_reference: z.ZodOptional<z.ZodString>;
|
|
7313
7311
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -7609,6 +7607,7 @@ export declare const workflowNativeInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7609
7607
|
scenes: z.ZodOptional<z.ZodNever>;
|
|
7610
7608
|
moves: z.ZodOptional<z.ZodNever>;
|
|
7611
7609
|
pause_trim: z.ZodOptional<z.ZodNever>;
|
|
7610
|
+
keep_anchors: z.ZodOptional<z.ZodNever>;
|
|
7612
7611
|
character_reference: z.ZodOptional<z.ZodString>;
|
|
7613
7612
|
}, z.core.$strict>], "input_mode">;
|
|
7614
7613
|
}, z.core.$strict>], "skill">;
|
|
@@ -14945,6 +14944,7 @@ export declare const workflowBrief: z.ZodObject<{
|
|
|
14945
14944
|
comma_s: z.ZodOptional<z.ZodNumber>;
|
|
14946
14945
|
mid_phrase_s: z.ZodOptional<z.ZodNumber>;
|
|
14947
14946
|
}, z.core.$strict>]>>;
|
|
14947
|
+
keep_anchors: z.ZodOptional<z.ZodBoolean>;
|
|
14948
14948
|
script: z.ZodString;
|
|
14949
14949
|
character_reference: z.ZodOptional<z.ZodString>;
|
|
14950
14950
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -15246,6 +15246,7 @@ export declare const workflowBrief: z.ZodObject<{
|
|
|
15246
15246
|
scenes: z.ZodOptional<z.ZodNever>;
|
|
15247
15247
|
moves: z.ZodOptional<z.ZodNever>;
|
|
15248
15248
|
pause_trim: z.ZodOptional<z.ZodNever>;
|
|
15249
|
+
keep_anchors: z.ZodOptional<z.ZodNever>;
|
|
15249
15250
|
character_reference: z.ZodOptional<z.ZodString>;
|
|
15250
15251
|
}, z.core.$strict>], "input_mode">;
|
|
15251
15252
|
}, z.core.$strict>], "skill">>;
|
|
@@ -15567,6 +15568,7 @@ export declare const workflowBrief: z.ZodObject<{
|
|
|
15567
15568
|
pacing: z.ZodObject<{
|
|
15568
15569
|
layer_change_every_s: z.ZodNumber;
|
|
15569
15570
|
face_share: z.ZodNumber;
|
|
15571
|
+
effective_words_per_s: z.ZodOptional<z.ZodNumber>;
|
|
15570
15572
|
}, z.core.$strict>;
|
|
15571
15573
|
palette: z.ZodArray<z.ZodString>;
|
|
15572
15574
|
music: z.ZodString;
|
|
@@ -16081,6 +16083,62 @@ export declare const workflowBrief: z.ZodObject<{
|
|
|
16081
16083
|
start_s: z.ZodNumber;
|
|
16082
16084
|
end_s: z.ZodNumber;
|
|
16083
16085
|
}, z.core.$strict>>>;
|
|
16086
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16087
|
+
start_s: z.ZodNumber;
|
|
16088
|
+
end_s: z.ZodNumber;
|
|
16089
|
+
beat_index: z.ZodNumber;
|
|
16090
|
+
words: z.ZodNumber;
|
|
16091
|
+
silent: z.ZodBoolean;
|
|
16092
|
+
cut_in: z.ZodEnum<{
|
|
16093
|
+
from_insert: "from_insert";
|
|
16094
|
+
jump_cut: "jump_cut";
|
|
16095
|
+
other: "other";
|
|
16096
|
+
size_change: "size_change";
|
|
16097
|
+
start: "start";
|
|
16098
|
+
to_insert: "to_insert";
|
|
16099
|
+
}>;
|
|
16100
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
16101
|
+
kind: z.ZodEnum<{
|
|
16102
|
+
ai_video: "ai_video";
|
|
16103
|
+
code_render: "code_render";
|
|
16104
|
+
live: "live";
|
|
16105
|
+
real_footage: "real_footage";
|
|
16106
|
+
screen_capture: "screen_capture";
|
|
16107
|
+
}>;
|
|
16108
|
+
confidence: z.ZodNumber;
|
|
16109
|
+
measured: z.ZodBoolean;
|
|
16110
|
+
}, z.core.$strict>>;
|
|
16111
|
+
same_clip_as: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16112
|
+
}, z.core.$strict>>>;
|
|
16113
|
+
tempo: z.ZodOptional<z.ZodObject<{
|
|
16114
|
+
music_bed: z.ZodBoolean;
|
|
16115
|
+
bpm: z.ZodNullable<z.ZodNumber>;
|
|
16116
|
+
cuts_on_beat: z.ZodNullable<z.ZodNumber>;
|
|
16117
|
+
cuts_on_beat_by_chance: z.ZodNullable<z.ZodNumber>;
|
|
16118
|
+
edit_on_beat: z.ZodBoolean;
|
|
16119
|
+
}, z.core.$strict>>;
|
|
16120
|
+
bring: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16121
|
+
kind: z.ZodEnum<{
|
|
16122
|
+
live_clip: "live_clip";
|
|
16123
|
+
product_photo: "product_photo";
|
|
16124
|
+
screen_recording: "screen_recording";
|
|
16125
|
+
screenshot: "screenshot";
|
|
16126
|
+
}>;
|
|
16127
|
+
seconds: z.ZodNumber;
|
|
16128
|
+
at_s: z.ZodArray<z.ZodNumber>;
|
|
16129
|
+
}, z.core.$strict>>>;
|
|
16130
|
+
sound_events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16131
|
+
t_s: z.ZodNumber;
|
|
16132
|
+
kind: z.ZodEnum<{
|
|
16133
|
+
click: "click";
|
|
16134
|
+
ding: "ding";
|
|
16135
|
+
hit: "hit";
|
|
16136
|
+
impact: "impact";
|
|
16137
|
+
pop: "pop";
|
|
16138
|
+
typing: "typing";
|
|
16139
|
+
whoosh: "whoosh";
|
|
16140
|
+
}>;
|
|
16141
|
+
}, z.core.$strict>>>;
|
|
16084
16142
|
analysis: z.ZodObject<{
|
|
16085
16143
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16086
16144
|
}, z.core.$strip>;
|
|
@@ -5,17 +5,13 @@ import { MAX_MOVES } from '../../moves.js';
|
|
|
5
5
|
import { referenceProfileInput, referenceProfileRead } from '../../reference-profile.js';
|
|
6
6
|
import { workflowEvidenceSource } from './workflow-evidence.js';
|
|
7
7
|
import { workflowFormat, workflowFormatRead, workflowText } from './workflow-primitives.js';
|
|
8
|
-
/** The lines a plan adds beyond its reference (#1192): one a raised device count can reach, framing's sixty among them. */
|
|
9
8
|
export const WORKFLOW_ADDED_MAX = 200;
|
|
10
|
-
/** The voice lines a plan keeps (#1203): as many as its move lines, so tools/list states the bound once. */
|
|
11
9
|
export const WORKFLOW_VOICE_WARNINGS_MAX = MAX_MOVES;
|
|
12
10
|
const nativeUgcSegments = makeUgcInput.shape.segments.unwrap();
|
|
13
11
|
const { minItems, maxItems } = z.toJSONSchema(nativeUgcSegments, { io: 'input' });
|
|
14
12
|
const strictUgcSegments = z.array(ugcSegment.strict().safeExtend({
|
|
15
13
|
image_motion: ugcSegment.shape.image_motion.unwrap().strict().optional(),
|
|
16
14
|
})).meta({ minItems, maxItems }).pipe(nativeUgcSegments).optional();
|
|
17
|
-
// An empty layer list in a saved document means none (#1172): the run takes each list only with an item, so the key goes before it.
|
|
18
|
-
// The type stays the run's: only the empty list is let through, and it leaves the document as an absent key.
|
|
19
15
|
const noneWhenEmpty = (key) => {
|
|
20
16
|
const native = makeUgcInput.shape[key], list = native.unwrap();
|
|
21
17
|
const { maxItems } = z.toJSONSchema(list, { io: 'input', unrepresentable: 'any' });
|
|
@@ -33,10 +29,8 @@ const exactFacelessScript = z.string().superRefine((value, context) => {
|
|
|
33
29
|
for (const issue of parsed.error.issues)
|
|
34
30
|
context.addIssue({ code: z.ZodIssueCode.custom, path: issue.path, message: issue.message });
|
|
35
31
|
}).meta({ minLength, maxLength });
|
|
36
|
-
/** A plan refuses a picture URL here (`unbound_native_source`); the run's own description would promise the opposite (#1359). */
|
|
37
32
|
export const WORKFLOW_CHARACTER_REFERENCE_DESCRIPTION = 'Not taken in a plan: a URL here is refused. Bind the picture as an asset instead.';
|
|
38
33
|
const planCharacterReference = nativeFacelessScript.shape.character_reference.describe(WORKFLOW_CHARACTER_REFERENCE_DESCRIPTION);
|
|
39
|
-
// Reuse native validation while preserving raw text and a visible input shape for tools/list.
|
|
40
34
|
const workflowFacelessInput = z.discriminatedUnion('input_mode', [
|
|
41
35
|
nativeFacelessScript.safeExtend({ script: exactFacelessScript, character_reference: planCharacterReference }),
|
|
42
36
|
nativeFacelessBrief.safeExtend({ character_reference: planCharacterReference })
|
|
@@ -51,17 +45,11 @@ const briefShape = {
|
|
|
51
45
|
question: workflowText(2000).optional(), product: workflowText(2000).optional(), topic: workflowText(2000).optional(), brand_intent: workflowText(2000).optional(),
|
|
52
46
|
required_terms: z.array(workflowText(200)).max(100).default([]), requirements: z.array(workflowRequirement).max(100).default([]),
|
|
53
47
|
requested_format: workflowFormat.optional(), native: workflowNativeInput.optional(), references: z.array(workflowEvidenceSource).max(100).default([]),
|
|
54
|
-
// The reference's style the plan was compiled from; the document byte bound holds it (A1).
|
|
55
48
|
reference_profile: referenceProfileInput.optional(),
|
|
56
|
-
// What a compiled plan adds that its reference lacks (#1051), beside reference_profile.unmapped, what it lacks of the reference.
|
|
57
49
|
added: z.array(workflowText(200)).max(WORKFLOW_ADDED_MAX).optional(),
|
|
58
|
-
// The client's catalogue moves the plan could not draw on their words (#1175), said in the plan's warnings.
|
|
59
50
|
move_warnings: z.array(workflowText(400)).max(MAX_MOVES).optional(),
|
|
60
|
-
// What the account's saved script voice changed in the script (#1203), said in the plan's warnings.
|
|
61
51
|
voice_warnings: z.array(workflowText(400)).max(WORKFLOW_VOICE_WARNINGS_MAX).optional(),
|
|
62
|
-
// The user's notes each script revision answered, oldest first (#921).
|
|
63
52
|
review_notes: z.array(workflowText(2000)).max(50).optional(),
|
|
64
|
-
// What this revision did with its new notes (#1307): the fields it changed, or each note it did not apply; said in the plan's warnings.
|
|
65
53
|
review_warnings: z.array(workflowText(400)).max(50).optional(),
|
|
66
54
|
};
|
|
67
55
|
export const workflowBrief = z.strictObject(briefShape);
|
|
@@ -71,4 +59,3 @@ export const workflowBriefRead = z.looseObject({ ...briefShape,
|
|
|
71
59
|
reference_profile: referenceProfileRead.optional(),
|
|
72
60
|
references: z.array(z.looseObject({ kind: z.string(), reference: z.string(), url: z.string().optional(), observed_at: z.string().optional(), product_state: z.string().optional() })).default([]),
|
|
73
61
|
});
|
|
74
|
-
//# sourceMappingURL=workflow-brief.js.map
|