@clipwright/core 0.60.0 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account-actors.d.ts +0 -43
- package/dist/account-actors.js +0 -55
- package/dist/account.d.ts +0 -6
- package/dist/account.js +0 -18
- package/dist/actor-bounds.d.ts +0 -5
- package/dist/actor-bounds.js +0 -6
- package/dist/actor-qualities.d.ts +0 -3
- package/dist/actor-qualities.js +0 -4
- package/dist/actors.d.ts +0 -16
- package/dist/actors.js +0 -21
- package/dist/ad-guide.d.ts +27 -0
- package/dist/ad-guide.js +7 -2
- package/dist/ad-ids.d.ts +3 -0
- package/dist/ad-ids.js +4 -0
- package/dist/ad-pause-trim.d.ts +0 -5
- package/dist/ad-pause-trim.js +0 -8
- package/dist/ads.d.ts +145 -0
- package/dist/ads.js +56 -0
- package/dist/api-failure.d.ts +6 -44
- package/dist/api-failure.js +16 -67
- package/dist/aspect.d.ts +0 -29
- package/dist/aspect.js +1 -34
- package/dist/asset-identity.d.ts +0 -2
- package/dist/asset-identity.js +0 -3
- package/dist/assets.d.ts +0 -34
- package/dist/assets.js +0 -42
- package/dist/billing-terms.d.ts +0 -3
- package/dist/billing-terms.js +0 -4
- package/dist/brand-styles.d.ts +0 -6
- package/dist/brand-styles.js +0 -13
- package/dist/broll-policy.js +0 -1
- package/dist/canvas-fit.d.ts +0 -2
- package/dist/canvas-fit.js +0 -4
- package/dist/caption-funnel.d.ts +0 -2
- package/dist/caption-funnel.js +0 -15
- package/dist/caption-geometry.d.ts +0 -6
- package/dist/caption-geometry.js +0 -10
- package/dist/caption-language.d.ts +0 -3
- package/dist/caption-language.js +0 -6
- package/dist/contract-dispositions.d.ts +0 -61
- package/dist/contract-dispositions.js +3 -96
- package/dist/contracts/v1/workflow-brief.d.ts +57 -3
- package/dist/contracts/v1/workflow-brief.js +0 -13
- package/dist/contracts/v1/workflow-catalog.d.ts +114 -0
- package/dist/contracts/v1/workflow-catalog.js +0 -3
- package/dist/contracts/v1/workflow-client.d.ts +114 -0
- package/dist/contracts/v1/workflow-client.js +0 -1
- package/dist/contracts/v1/workflow-dto.js +0 -1
- package/dist/contracts/v1/workflow-evidence.js +0 -1
- package/dist/contracts/v1/workflow-execution.d.ts +0 -1
- package/dist/contracts/v1/workflow-execution.js +0 -4
- package/dist/contracts/v1/workflow-next.d.ts +0 -2
- package/dist/contracts/v1/workflow-next.js +0 -3
- package/dist/contracts/v1/workflow-plan.d.ts +171 -0
- package/dist/contracts/v1/workflow-plan.js +0 -1
- package/dist/contracts/v1/workflow-primitives.d.ts +0 -1
- package/dist/contracts/v1/workflow-primitives.js +0 -2
- package/dist/contracts/v1/workflow-run-read.d.ts +0 -1
- package/dist/contracts/v1/workflow-run-read.js +0 -3
- package/dist/creator-profile.d.ts +0 -30
- package/dist/creator-profile.js +0 -45
- package/dist/default-actor.js +0 -2
- package/dist/design.d.ts +0 -17
- package/dist/design.js +0 -18
- package/dist/diy-next.d.ts +18 -0
- package/dist/diy-next.js +13 -0
- package/dist/edit-billing.d.ts +0 -6
- package/dist/edit-billing.js +0 -10
- package/dist/edit-candidate.d.ts +0 -6
- package/dist/edit-candidate.js +0 -9
- package/dist/edit-document.d.ts +0 -12
- package/dist/edit-document.js +0 -15
- package/dist/edit-faceless.d.ts +0 -3
- package/dist/edit-faceless.js +0 -4
- package/dist/edit-long-form.d.ts +0 -13
- package/dist/edit-long-form.js +0 -17
- package/dist/edit-music.d.ts +397 -0
- package/dist/edit-music.js +77 -0
- package/dist/edit-operations.d.ts +0 -1
- package/dist/edit-operations.js +0 -2
- package/dist/edit-primitives.d.ts +0 -3
- package/dist/edit-primitives.js +0 -5
- package/dist/edit-revision.d.ts +0 -4
- package/dist/edit-revision.js +0 -6
- package/dist/edit-rules.d.ts +0 -3
- package/dist/edit-rules.js +0 -9
- package/dist/edit-shots.d.ts +45 -5
- package/dist/edit-shots.js +7 -11
- package/dist/edit-validate.d.ts +0 -10
- package/dist/edit-validate.js +0 -14
- package/dist/edit.js +0 -3
- package/dist/endpoint-notes.d.ts +0 -2
- package/dist/endpoint-notes.js +0 -3
- package/dist/endpoints.d.ts +0 -11
- package/dist/endpoints.js +11 -21
- package/dist/errors.d.ts +29 -43
- package/dist/errors.js +18 -54
- package/dist/explainer-fit.d.ts +0 -7
- package/dist/explainer-fit.js +0 -10
- package/dist/face-billing.d.ts +0 -9
- package/dist/face-billing.js +0 -23
- package/dist/face-delivery.d.ts +0 -1
- package/dist/face-delivery.js +0 -2
- package/dist/faceless-action-shots.d.ts +0 -8
- package/dist/faceless-action-shots.js +0 -8
- package/dist/faceless-customer-anchors.d.ts +0 -1
- package/dist/faceless-customer-anchors.js +0 -2
- package/dist/faceless-cut-style.js +0 -1
- package/dist/faceless-direction-summary.d.ts +0 -2
- package/dist/faceless-direction-summary.js +0 -3
- package/dist/faceless-image-placement.d.ts +0 -2
- package/dist/faceless-image-placement.js +0 -3
- package/dist/faceless-image-qualification.js +0 -2
- package/dist/faceless-media-record.d.ts +0 -6
- package/dist/faceless-media-record.js +0 -11
- package/dist/faceless-price.d.ts +0 -45
- package/dist/faceless-price.js +0 -64
- package/dist/faceless-public-plan.d.ts +0 -13
- package/dist/faceless-public-plan.js +0 -11
- package/dist/faceless-public.d.ts +0 -26
- package/dist/faceless-public.js +0 -59
- package/dist/faceless-short-61.js +0 -1
- package/dist/faceless-storyboard-timing.js +0 -1
- package/dist/faceless-storyboard-v2-plan.js +0 -1
- package/dist/faceless-storyboard-v2-timing.d.ts +0 -4
- package/dist/faceless-storyboard-v2-timing.js +0 -3
- package/dist/faceless-storyboard-v2.js +0 -1
- package/dist/faceless-storyboard.js +0 -1
- package/dist/faceless-voices.d.ts +0 -16
- package/dist/faceless-voices.js +0 -18
- package/dist/feedback.d.ts +0 -4
- package/dist/feedback.js +0 -5
- package/dist/film-directions.d.ts +0 -2
- package/dist/film-directions.js +0 -7
- package/dist/film-drafts.d.ts +0 -8
- package/dist/film-drafts.js +0 -19
- package/dist/film-guide.d.ts +0 -3
- package/dist/film-guide.js +0 -6
- package/dist/film-styles.d.ts +0 -5
- package/dist/film-styles.js +0 -8
- package/dist/generation-shot.d.ts +0 -5
- package/dist/generation-shot.js +0 -8
- package/dist/generations-output.d.ts +0 -2
- package/dist/generations-output.js +0 -5
- package/dist/generations.d.ts +0 -22
- package/dist/generations.js +21 -44
- package/dist/idempotency.d.ts +1 -21
- package/dist/idempotency.js +8 -29
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -28
- package/dist/live-shot-kinds.d.ts +16 -25
- package/dist/live-shot-kinds.js +12 -28
- package/dist/long-form-pricing.d.ts +0 -5
- package/dist/long-form-pricing.js +0 -6
- package/dist/long-form-profile.d.ts +0 -3
- package/dist/long-form-profile.js +0 -4
- package/dist/long-form-revision.d.ts +0 -9
- package/dist/long-form-revision.js +0 -11
- package/dist/markdown-quote.d.ts +0 -2
- package/dist/markdown-quote.js +0 -3
- package/dist/mascots.d.ts +0 -5
- package/dist/mascots.js +0 -10
- package/dist/max-credits.d.ts +0 -1
- package/dist/max-credits.js +0 -2
- package/dist/mcp-ugc-descriptions.d.ts +0 -2
- package/dist/mcp-ugc-descriptions.js +1 -6
- package/dist/media-timebase.d.ts +0 -2
- package/dist/media-timebase.js +0 -6
- package/dist/motion-styles.d.ts +0 -8
- package/dist/motion-styles.js +0 -11
- package/dist/moves.d.ts +0 -7
- package/dist/moves.js +0 -9
- package/dist/music.d.ts +0 -5
- package/dist/music.js +0 -8
- package/dist/naming.d.ts +0 -3
- package/dist/naming.js +0 -19
- package/dist/openapi.d.ts +0 -13
- package/dist/openapi.js +9 -11
- package/dist/output-provenance.d.ts +0 -4
- package/dist/output-provenance.js +0 -5
- package/dist/own-agent-price.d.ts +21 -22
- package/dist/own-agent-price.js +34 -25
- package/dist/own-agent-runs.d.ts +351 -11
- package/dist/own-agent-runs.js +144 -24
- package/dist/pacing.d.ts +3 -15
- package/dist/pacing.js +18 -18
- package/dist/parts-pricing.d.ts +0 -28
- package/dist/parts-pricing.js +0 -32
- package/dist/post-text.d.ts +0 -2
- package/dist/post-text.js +0 -4
- package/dist/presenter-beats.d.ts +0 -10
- package/dist/presenter-beats.js +0 -14
- package/dist/presenter-matte.d.ts +0 -7
- package/dist/presenter-matte.js +0 -9
- package/dist/presenter-takes.d.ts +0 -3
- package/dist/presenter-takes.js +0 -8
- package/dist/prices.d.ts +2 -8
- package/dist/prices.js +13 -23
- package/dist/public-endpoints.d.ts +0 -11
- package/dist/public-endpoints.js +0 -14
- package/dist/public-responses.d.ts +0 -2
- package/dist/public-responses.js +0 -3
- package/dist/rate-limit.d.ts +0 -24
- package/dist/rate-limit.js +0 -29
- package/dist/reference-analysis.d.ts +57 -34
- package/dist/reference-analysis.js +0 -69
- package/dist/reference-bring.d.ts +33 -0
- package/dist/reference-bring.js +28 -0
- package/dist/reference-display.d.ts +0 -3
- package/dist/reference-display.js +37 -4
- package/dist/reference-kinds.d.ts +0 -4
- package/dist/reference-kinds.js +0 -6
- package/dist/reference-lyrics.d.ts +0 -6
- package/dist/reference-lyrics.js +0 -6
- package/dist/reference-profile.d.ts +270 -39
- package/dist/reference-profile.js +64 -50
- package/dist/reference-staging.d.ts +0 -10
- package/dist/reference-staging.js +0 -14
- package/dist/reference-text-spans.d.ts +0 -4
- package/dist/reference-text-spans.js +0 -7
- package/dist/reference-voice-over.d.ts +0 -6
- package/dist/reference-voice-over.js +0 -7
- package/dist/reference-voice.d.ts +0 -7
- package/dist/reference-voice.js +0 -12
- package/dist/render-backend.d.ts +0 -30
- package/dist/render-backend.js +0 -5
- package/dist/resolved-timeline.d.ts +0 -4
- package/dist/resolved-timeline.js +1 -31
- package/dist/run-media.d.ts +0 -1
- package/dist/run-media.js +0 -2
- package/dist/run-preflight.d.ts +0 -4
- package/dist/run-preflight.js +0 -11
- package/dist/run-static-warnings.d.ts +0 -8
- package/dist/run-static-warnings.js +0 -38
- package/dist/runs.d.ts +0 -32
- package/dist/runs.js +0 -50
- package/dist/scene-bible.d.ts +15 -7
- package/dist/scene-bible.js +15 -10
- package/dist/scene-graph.d.ts +0 -12
- package/dist/scene-graph.js +0 -24
- package/dist/scene-place.d.ts +0 -25
- package/dist/scene-place.js +0 -24
- package/dist/scene-proposal.d.ts +0 -3
- package/dist/scene-proposal.js +0 -9
- package/dist/script-integrity.d.ts +0 -6
- package/dist/script-integrity.js +0 -8
- package/dist/script-voice.d.ts +0 -7
- package/dist/script-voice.js +0 -16
- package/dist/semantic-inserts.d.ts +0 -7
- package/dist/semantic-inserts.js +0 -10
- package/dist/skill-theme-explainer.js +0 -5
- package/dist/skill-theme.d.ts +0 -13
- package/dist/skill-theme.js +0 -25
- package/dist/skills.d.ts +22 -86
- package/dist/skills.js +21 -167
- package/dist/speech-rhythm-contract.js +0 -1
- package/dist/speech-rhythm.d.ts +0 -4
- package/dist/speech-rhythm.js +0 -2
- package/dist/templates/backdrop.d.ts +0 -3
- package/dist/templates/backdrop.js +0 -5
- package/dist/templates/callout.d.ts +0 -4
- package/dist/templates/callout.js +0 -6
- package/dist/templates/chart.d.ts +0 -4
- package/dist/templates/chart.js +0 -6
- package/dist/templates/chat-window.d.ts +0 -8
- package/dist/templates/chat-window.js +0 -10
- package/dist/templates/checklist.d.ts +0 -3
- package/dist/templates/checklist.js +0 -6
- package/dist/templates/comment-cta.d.ts +0 -14
- package/dist/templates/comment-cta.js +0 -19
- package/dist/templates/compare.d.ts +0 -6
- package/dist/templates/compare.js +0 -7
- package/dist/templates/cover-story.d.ts +0 -1
- package/dist/templates/cover-story.js +0 -3
- package/dist/templates/end-card.d.ts +0 -2
- package/dist/templates/end-card.js +0 -3
- package/dist/templates/hand-title.d.ts +0 -5
- package/dist/templates/hand-title.js +0 -9
- package/dist/templates/index.d.ts +0 -57
- package/dist/templates/index.js +0 -60
- package/dist/templates/lower-third.d.ts +0 -4
- package/dist/templates/lower-third.js +0 -5
- package/dist/templates/notification.d.ts +0 -6
- package/dist/templates/notification.js +0 -7
- package/dist/templates/phone-call.d.ts +0 -2
- package/dist/templates/phone-call.js +0 -6
- package/dist/templates/phone-screen.d.ts +0 -5
- package/dist/templates/phone-screen.js +0 -7
- package/dist/templates/pointer-chips.d.ts +0 -4
- package/dist/templates/pointer-chips.js +0 -6
- package/dist/templates/progress.d.ts +0 -3
- package/dist/templates/progress.js +0 -5
- package/dist/templates/quote.d.ts +0 -3
- package/dist/templates/quote.js +0 -4
- package/dist/templates/race.d.ts +0 -5
- package/dist/templates/race.js +0 -7
- package/dist/templates/rating.d.ts +0 -3
- package/dist/templates/rating.js +0 -5
- package/dist/templates/series-frame.d.ts +0 -16
- package/dist/templates/series-frame.js +0 -19
- package/dist/templates/size.d.ts +0 -7
- package/dist/templates/size.js +0 -8
- package/dist/templates/slot.d.ts +0 -2
- package/dist/templates/slot.js +0 -2
- package/dist/templates/sounds.d.ts +24 -12
- package/dist/templates/sounds.js +2 -16
- package/dist/templates/stat.d.ts +0 -3
- package/dist/templates/stat.js +0 -5
- package/dist/templates/tag.d.ts +0 -3
- package/dist/templates/tag.js +0 -5
- package/dist/templates/terminal.d.ts +0 -6
- package/dist/templates/terminal.js +0 -8
- package/dist/templates/theme.d.ts +0 -7
- package/dist/templates/theme.js +0 -9
- package/dist/templates/title-card.d.ts +0 -3
- package/dist/templates/title-card.js +0 -5
- package/dist/templates/video-grid.d.ts +0 -5
- package/dist/templates/video-grid.js +0 -8
- package/dist/templates/word-fill.d.ts +0 -3
- package/dist/templates/word-fill.js +0 -4
- package/dist/templates/word-title.d.ts +0 -2
- package/dist/templates/word-title.js +0 -4
- package/dist/trend-niches.d.ts +0 -11
- package/dist/trend-niches.js +0 -16
- package/dist/trend-search.d.ts +0 -66
- package/dist/trend-search.js +0 -70
- package/dist/tts-backend.d.ts +0 -19
- package/dist/tts-backend.js +0 -7
- package/dist/ugc-call.d.ts +0 -16
- package/dist/ugc-call.js +0 -21
- package/dist/ugc-delivery.d.ts +0 -2
- package/dist/ugc-delivery.js +0 -4
- package/dist/ugc-framing.d.ts +0 -4
- package/dist/ugc-framing.js +0 -6
- package/dist/ugc-interview.d.ts +0 -18
- package/dist/ugc-interview.js +0 -24
- package/dist/ugc-layers.d.ts +0 -39
- package/dist/ugc-layers.js +0 -39
- package/dist/ugc-scenes.d.ts +0 -2
- package/dist/ugc-scenes.js +0 -5
- package/dist/ugc-video-media.d.ts +0 -5
- package/dist/ugc-video-media.js +0 -7
- package/dist/uploads.d.ts +0 -14
- package/dist/uploads.js +0 -17
- package/dist/vendor-response.d.ts +0 -19
- package/dist/vendor-response.js +0 -22
- package/dist/video-size.d.ts +0 -4
- package/dist/video-size.js +0 -7
- package/dist/voice-admission.d.ts +0 -11
- package/dist/voice-admission.js +0 -13
- package/dist/voice-catalog-data.d.ts +0 -2
- package/dist/voice-catalog-data.js +0 -3
- package/dist/voice-catalog.d.ts +0 -6
- package/dist/voice-catalog.js +0 -8
- package/dist/voice-listing.d.ts +0 -6
- package/dist/voice-listing.js +0 -14
- package/dist/voice-pace.d.ts +0 -4
- package/dist/voice-pace.js +0 -7
- package/dist/voice-preview-approval.js +0 -1
- package/dist/voices.d.ts +4 -69
- package/dist/voices.js +3 -88
- package/dist/workflows/catalog.d.ts +0 -2
- package/dist/workflows/catalog.js +0 -4
- package/dist/workflows/film-directions.d.ts +0 -3
- package/dist/workflows/film-directions.js +0 -4
- package/dist/workflows/index.js +0 -1
- package/dist/workflows/methods/faceless-explainer.d.ts +31 -0
- package/dist/workflows/methods/faceless-explainer.js +0 -1
- package/dist/workflows/methods/kinetic-launch.d.ts +62 -1
- package/dist/workflows/methods/kinetic-launch.js +0 -2
- package/dist/workflows/methods/product-image-story.d.ts +31 -0
- package/dist/workflows/methods/product-image-story.js +0 -1
- package/dist/workflows/methods/reference-remake.d.ts +31 -0
- package/dist/workflows/methods/reference-remake.js +0 -1
- package/dist/workflows/methods/shared.d.ts +31 -1
- package/dist/workflows/methods/shared.js +0 -3
- package/dist/workflows/methods/ugc-faq-answer.d.ts +31 -0
- package/dist/workflows/methods/ugc-faq-answer.js +0 -1
- package/dist/workflows/methods/ugc-product-intro.d.ts +31 -0
- package/dist/workflows/methods/ugc-product-intro.js +0 -1
- package/dist/workflows/methods/website-proof-demo.d.ts +62 -1
- package/dist/workflows/methods/website-proof-demo.js +0 -2
- package/dist/workflows/motion-director.d.ts +0 -11
- package/dist/workflows/motion-director.js +0 -11
- package/dist/workflows/product-references.js +0 -1
- package/dist/workflows/reference-remake.d.ts +114 -17
- package/dist/workflows/reference-remake.js +0 -167
- package/dist/workflows/remake-chooser.d.ts +0 -6
- package/dist/workflows/remake-chooser.js +0 -4
- package/dist/workflows/remake-motion.d.ts +0 -16
- package/dist/workflows/remake-motion.js +0 -19
- package/dist/workflows/validate.d.ts +0 -1
- package/dist/workflows/validate.js +0 -5
- package/dist/workflows.js +0 -1
- package/package.json +1 -1
- package/dist/account-actors.js.map +0 -1
- package/dist/account.js.map +0 -1
- package/dist/actor-bounds.js.map +0 -1
- package/dist/actor-qualities.js.map +0 -1
- package/dist/actors.js.map +0 -1
- package/dist/ad-guide.js.map +0 -1
- package/dist/ad-pause-trim.js.map +0 -1
- package/dist/api-failure.js.map +0 -1
- package/dist/aspect.js.map +0 -1
- package/dist/asset-identity.js.map +0 -1
- package/dist/assets.js.map +0 -1
- package/dist/billing-terms.js.map +0 -1
- package/dist/brand-styles.js.map +0 -1
- package/dist/broll-policy.js.map +0 -1
- package/dist/canvas-fit.js.map +0 -1
- package/dist/caption-funnel.js.map +0 -1
- package/dist/caption-geometry.js.map +0 -1
- package/dist/caption-language.js.map +0 -1
- package/dist/contract-dispositions.js.map +0 -1
- package/dist/contracts/v1/workflow-brief.js.map +0 -1
- package/dist/contracts/v1/workflow-catalog.js.map +0 -1
- package/dist/contracts/v1/workflow-client.js.map +0 -1
- package/dist/contracts/v1/workflow-dto.js.map +0 -1
- package/dist/contracts/v1/workflow-evidence.js.map +0 -1
- package/dist/contracts/v1/workflow-execution.js.map +0 -1
- package/dist/contracts/v1/workflow-next.js.map +0 -1
- package/dist/contracts/v1/workflow-plan.js.map +0 -1
- package/dist/contracts/v1/workflow-primitives.js.map +0 -1
- package/dist/contracts/v1/workflow-run-read.js.map +0 -1
- package/dist/creator-profile.js.map +0 -1
- package/dist/default-actor.js.map +0 -1
- package/dist/design.js.map +0 -1
- package/dist/edit-billing.js.map +0 -1
- package/dist/edit-candidate.js.map +0 -1
- package/dist/edit-document.js.map +0 -1
- package/dist/edit-faceless.js.map +0 -1
- package/dist/edit-long-form.js.map +0 -1
- package/dist/edit-operations.js.map +0 -1
- package/dist/edit-primitives.js.map +0 -1
- package/dist/edit-revision.js.map +0 -1
- package/dist/edit-rules.js.map +0 -1
- package/dist/edit-shots.js.map +0 -1
- package/dist/edit-validate.js.map +0 -1
- package/dist/edit.js.map +0 -1
- package/dist/endpoint-notes.js.map +0 -1
- package/dist/endpoints.js.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/explainer-fit.js.map +0 -1
- package/dist/face-billing.js.map +0 -1
- package/dist/face-delivery.js.map +0 -1
- package/dist/faceless-action-shots.js.map +0 -1
- package/dist/faceless-customer-anchors.js.map +0 -1
- package/dist/faceless-cut-style.js.map +0 -1
- package/dist/faceless-direction-summary.js.map +0 -1
- package/dist/faceless-image-placement.js.map +0 -1
- package/dist/faceless-image-qualification.js.map +0 -1
- package/dist/faceless-media-record.js.map +0 -1
- package/dist/faceless-price.js.map +0 -1
- package/dist/faceless-public-plan.js.map +0 -1
- package/dist/faceless-public.js.map +0 -1
- package/dist/faceless-short-61.js.map +0 -1
- package/dist/faceless-storyboard-timing.js.map +0 -1
- package/dist/faceless-storyboard-v2-plan.js.map +0 -1
- package/dist/faceless-storyboard-v2-timing.js.map +0 -1
- package/dist/faceless-storyboard-v2.js.map +0 -1
- package/dist/faceless-storyboard.js.map +0 -1
- package/dist/faceless-voices.js.map +0 -1
- package/dist/feedback.js.map +0 -1
- package/dist/film-directions.js.map +0 -1
- package/dist/film-drafts.js.map +0 -1
- package/dist/film-guide.js.map +0 -1
- package/dist/film-styles.js.map +0 -1
- package/dist/generation-shot.js.map +0 -1
- package/dist/generations-output.js.map +0 -1
- package/dist/generations.js.map +0 -1
- package/dist/idempotency.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/live-shot-kinds.js.map +0 -1
- package/dist/long-form-pricing.js.map +0 -1
- package/dist/long-form-profile.js.map +0 -1
- package/dist/long-form-revision.js.map +0 -1
- package/dist/markdown-quote.js.map +0 -1
- package/dist/mascots.js.map +0 -1
- package/dist/max-credits.js.map +0 -1
- package/dist/mcp-ugc-descriptions.js.map +0 -1
- package/dist/media-timebase.js.map +0 -1
- package/dist/motion-styles.js.map +0 -1
- package/dist/moves.js.map +0 -1
- package/dist/music.js.map +0 -1
- package/dist/naming.js.map +0 -1
- package/dist/openapi.js.map +0 -1
- package/dist/output-provenance.js.map +0 -1
- package/dist/own-agent-price.js.map +0 -1
- package/dist/own-agent-runs.js.map +0 -1
- package/dist/pacing.js.map +0 -1
- package/dist/parts-pricing.js.map +0 -1
- package/dist/post-text.js.map +0 -1
- package/dist/presenter-beats.js.map +0 -1
- package/dist/presenter-matte.js.map +0 -1
- package/dist/presenter-takes.js.map +0 -1
- package/dist/prices.js.map +0 -1
- package/dist/public-endpoints.js.map +0 -1
- package/dist/public-responses.js.map +0 -1
- package/dist/rate-limit.js.map +0 -1
- package/dist/reference-analysis.js.map +0 -1
- package/dist/reference-display.js.map +0 -1
- package/dist/reference-kinds.js.map +0 -1
- package/dist/reference-lyrics.js.map +0 -1
- package/dist/reference-profile.js.map +0 -1
- package/dist/reference-staging.js.map +0 -1
- package/dist/reference-text-spans.js.map +0 -1
- package/dist/reference-voice-over.js.map +0 -1
- package/dist/reference-voice.js.map +0 -1
- package/dist/render-backend.js.map +0 -1
- package/dist/resolved-timeline.js.map +0 -1
- package/dist/run-media.js.map +0 -1
- package/dist/run-preflight.js.map +0 -1
- package/dist/run-static-warnings.js.map +0 -1
- package/dist/runs.js.map +0 -1
- package/dist/scene-bible.js.map +0 -1
- package/dist/scene-graph.js.map +0 -1
- package/dist/scene-place.js.map +0 -1
- package/dist/scene-proposal.js.map +0 -1
- package/dist/script-integrity.js.map +0 -1
- package/dist/script-voice.js.map +0 -1
- package/dist/semantic-inserts.js.map +0 -1
- package/dist/skill-theme-explainer.js.map +0 -1
- package/dist/skill-theme.js.map +0 -1
- package/dist/skills.js.map +0 -1
- package/dist/speech-rhythm-contract.js.map +0 -1
- package/dist/speech-rhythm.js.map +0 -1
- package/dist/templates/backdrop.js.map +0 -1
- package/dist/templates/callout.js.map +0 -1
- package/dist/templates/chart.js.map +0 -1
- package/dist/templates/chat-window.js.map +0 -1
- package/dist/templates/checklist.js.map +0 -1
- package/dist/templates/comment-cta.js.map +0 -1
- package/dist/templates/compare.js.map +0 -1
- package/dist/templates/cover-story.js.map +0 -1
- package/dist/templates/end-card.js.map +0 -1
- package/dist/templates/hand-title.js.map +0 -1
- package/dist/templates/index.js.map +0 -1
- package/dist/templates/lower-third.js.map +0 -1
- package/dist/templates/notification.js.map +0 -1
- package/dist/templates/phone-call.js.map +0 -1
- package/dist/templates/phone-screen.js.map +0 -1
- package/dist/templates/pointer-chips.js.map +0 -1
- package/dist/templates/progress.js.map +0 -1
- package/dist/templates/quote.js.map +0 -1
- package/dist/templates/race.js.map +0 -1
- package/dist/templates/rating.js.map +0 -1
- package/dist/templates/series-frame.js.map +0 -1
- package/dist/templates/size.js.map +0 -1
- package/dist/templates/slot.js.map +0 -1
- package/dist/templates/sounds.js.map +0 -1
- package/dist/templates/stat.js.map +0 -1
- package/dist/templates/tag.js.map +0 -1
- package/dist/templates/terminal.js.map +0 -1
- package/dist/templates/theme.js.map +0 -1
- package/dist/templates/title-card.js.map +0 -1
- package/dist/templates/video-grid.js.map +0 -1
- package/dist/templates/word-fill.js.map +0 -1
- package/dist/templates/word-title.js.map +0 -1
- package/dist/trend-niches.js.map +0 -1
- package/dist/trend-search.js.map +0 -1
- package/dist/tts-backend.js.map +0 -1
- package/dist/ugc-call.js.map +0 -1
- package/dist/ugc-delivery.js.map +0 -1
- package/dist/ugc-framing.js.map +0 -1
- package/dist/ugc-interview.js.map +0 -1
- package/dist/ugc-layers.js.map +0 -1
- package/dist/ugc-scenes.js.map +0 -1
- package/dist/ugc-video-media.js.map +0 -1
- package/dist/uploads.js.map +0 -1
- package/dist/vendor-response.js.map +0 -1
- package/dist/video-size.js.map +0 -1
- package/dist/voice-admission.js.map +0 -1
- package/dist/voice-catalog-data.js.map +0 -1
- package/dist/voice-catalog.js.map +0 -1
- package/dist/voice-listing.js.map +0 -1
- package/dist/voice-pace.js.map +0 -1
- package/dist/voice-preview-approval.js.map +0 -1
- package/dist/voices.js.map +0 -1
- package/dist/workflows/catalog.js.map +0 -1
- package/dist/workflows/film-directions.js.map +0 -1
- package/dist/workflows/index.js.map +0 -1
- package/dist/workflows/methods/faceless-explainer.js.map +0 -1
- package/dist/workflows/methods/kinetic-launch.js.map +0 -1
- package/dist/workflows/methods/product-image-story.js.map +0 -1
- package/dist/workflows/methods/reference-remake.js.map +0 -1
- package/dist/workflows/methods/shared.js.map +0 -1
- package/dist/workflows/methods/ugc-faq-answer.js.map +0 -1
- package/dist/workflows/methods/ugc-product-intro.js.map +0 -1
- package/dist/workflows/methods/website-proof-demo.js.map +0 -1
- package/dist/workflows/motion-director.js.map +0 -1
- package/dist/workflows/product-references.js.map +0 -1
- package/dist/workflows/reference-remake.js.map +0 -1
- package/dist/workflows/remake-chooser.js.map +0 -1
- package/dist/workflows/remake-motion.js.map +0 -1
- package/dist/workflows/validate.js.map +0 -1
- package/dist/workflows.js.map +0 -1
package/dist/edit-shots.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** The tariff a paid edit is priced by; the prices join it later, so further keys pass through. */
|
|
3
2
|
export declare const editPricing: z.ZodObject<{
|
|
4
3
|
tariff_id: z.ZodString;
|
|
5
4
|
}, z.core.$loose>;
|
|
@@ -42,7 +41,6 @@ export declare const viewShot: z.ZodObject<{
|
|
|
42
41
|
}>>;
|
|
43
42
|
}, z.core.$strip>;
|
|
44
43
|
export type ViewShot = z.infer<typeof viewShot>;
|
|
45
|
-
/** A run whose plan is recorded: its timeline, its words and the rules an edit of it must keep. */
|
|
46
44
|
export declare const plannedRunShots: z.ZodObject<{
|
|
47
45
|
planned: z.ZodLiteral<true>;
|
|
48
46
|
run_id: z.ZodString;
|
|
@@ -186,7 +184,6 @@ export declare const plannedRunShots: z.ZodObject<{
|
|
|
186
184
|
}, z.core.$strip>;
|
|
187
185
|
contract_version: z.ZodString;
|
|
188
186
|
}, z.core.$strip>;
|
|
189
|
-
/** The takes of one live shot of an ad (#1560): each clip made for it, what our check said of it, and which one the video uses. */
|
|
190
187
|
export declare const LIVE_SHOT_TAKES: readonly ["first", "retake", "fallback", "head", "card"];
|
|
191
188
|
export declare const LIVE_TAKE_VERDICTS: readonly ["accepted", "refused", "unjudged"];
|
|
192
189
|
export declare const liveShot: z.ZodObject<{
|
|
@@ -209,7 +206,17 @@ export declare const liveShot: z.ZodObject<{
|
|
|
209
206
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
210
207
|
}, z.core.$strip>>;
|
|
211
208
|
}, z.core.$strip>;
|
|
212
|
-
|
|
209
|
+
export declare const FINISHED_CHECK_VERDICTS: readonly ["clean", "defects"];
|
|
210
|
+
export declare const finishedCheck: z.ZodObject<{
|
|
211
|
+
verdict: z.ZodEnum<{
|
|
212
|
+
clean: "clean";
|
|
213
|
+
defects: "defects";
|
|
214
|
+
}>;
|
|
215
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
216
|
+
code: z.ZodString;
|
|
217
|
+
at_s: z.ZodNullable<z.ZodNumber>;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
}, z.core.$strip>;
|
|
213
220
|
export declare const unplannedRunShots: z.ZodObject<{
|
|
214
221
|
planned: z.ZodLiteral<false>;
|
|
215
222
|
run_id: z.ZodString;
|
|
@@ -255,6 +262,16 @@ export declare const unplannedRunShots: z.ZodObject<{
|
|
|
255
262
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
256
263
|
}, z.core.$strip>>;
|
|
257
264
|
}, z.core.$strip>>>;
|
|
265
|
+
finished_check: z.ZodOptional<z.ZodObject<{
|
|
266
|
+
verdict: z.ZodEnum<{
|
|
267
|
+
clean: "clean";
|
|
268
|
+
defects: "defects";
|
|
269
|
+
}>;
|
|
270
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
271
|
+
code: z.ZodString;
|
|
272
|
+
at_s: z.ZodNullable<z.ZodNumber>;
|
|
273
|
+
}, z.core.$strip>>;
|
|
274
|
+
}, z.core.$strip>>;
|
|
258
275
|
contract_version: z.ZodString;
|
|
259
276
|
}, z.core.$strip>;
|
|
260
277
|
export declare const runShots: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -444,6 +461,16 @@ export declare const runShots: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
444
461
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
445
462
|
}, z.core.$strip>>;
|
|
446
463
|
}, z.core.$strip>>>;
|
|
464
|
+
finished_check: z.ZodOptional<z.ZodObject<{
|
|
465
|
+
verdict: z.ZodEnum<{
|
|
466
|
+
clean: "clean";
|
|
467
|
+
defects: "defects";
|
|
468
|
+
}>;
|
|
469
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
470
|
+
code: z.ZodString;
|
|
471
|
+
at_s: z.ZodNullable<z.ZodNumber>;
|
|
472
|
+
}, z.core.$strip>>;
|
|
473
|
+
}, z.core.$strip>>;
|
|
447
474
|
contract_version: z.ZodString;
|
|
448
475
|
}, z.core.$strip>], "planned">;
|
|
449
476
|
export type PlannedRunShots = z.infer<typeof plannedRunShots>;
|
|
@@ -543,6 +570,13 @@ export declare const unplannedRunShotsRead: z.ZodObject<{
|
|
|
543
570
|
verdict: z.ZodString;
|
|
544
571
|
}, z.core.$strip>>;
|
|
545
572
|
}, z.core.$strip>>>;
|
|
573
|
+
finished_check: z.ZodOptional<z.ZodObject<{
|
|
574
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
575
|
+
code: z.ZodString;
|
|
576
|
+
at_s: z.ZodNullable<z.ZodNumber>;
|
|
577
|
+
}, z.core.$strip>>;
|
|
578
|
+
verdict: z.ZodString;
|
|
579
|
+
}, z.core.$strip>>;
|
|
546
580
|
}, z.core.$strip>;
|
|
547
581
|
export declare const runShotsRead: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
548
582
|
planned: z.ZodLiteral<true>;
|
|
@@ -637,7 +671,13 @@ export declare const runShotsRead: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
637
671
|
verdict: z.ZodString;
|
|
638
672
|
}, z.core.$strip>>;
|
|
639
673
|
}, z.core.$strip>>>;
|
|
674
|
+
finished_check: z.ZodOptional<z.ZodObject<{
|
|
675
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
676
|
+
code: z.ZodString;
|
|
677
|
+
at_s: z.ZodNullable<z.ZodNumber>;
|
|
678
|
+
}, z.core.$strip>>;
|
|
679
|
+
verdict: z.ZodString;
|
|
680
|
+
}, z.core.$strip>>;
|
|
640
681
|
}, z.core.$strip>], "planned">;
|
|
641
682
|
export type RunShotsRead = z.infer<typeof runShotsRead>;
|
|
642
|
-
/** The path of a run's shots. The id is encoded, since it comes from the caller. */
|
|
643
683
|
export declare const runShotsPath: (id: string) => string;
|
package/dist/edit-shots.js
CHANGED
|
@@ -3,7 +3,6 @@ import { frame, frameCount, shotId } from "./edit-primitives.js";
|
|
|
3
3
|
import { EDIT_LINES, SHOT_ACTIONS, SHOT_KINDS, SHOT_SOURCES, SHOT_TRACKS, editRules } from "./edit-rules.js";
|
|
4
4
|
import { runId } from "./runs.js";
|
|
5
5
|
import { ASPECT_RATIOS } from "./skills.js";
|
|
6
|
-
/** The tariff a paid edit is priced by; the prices join it later, so further keys pass through. */
|
|
7
6
|
export const editPricing = z.object({ tariff_id: z.string().min(1) }).passthrough();
|
|
8
7
|
const word = z.object({ index: frame, text: z.string().min(1), start_ms: frame, end_ms: frame.positive() });
|
|
9
8
|
export const viewShot = z.object({
|
|
@@ -17,7 +16,6 @@ export const viewShot = z.object({
|
|
|
17
16
|
});
|
|
18
17
|
const lineage = z.object({ source_run_id: runId.nullable(), root_run_id: runId, revisions: z.array(z.object({ run_id: runId, state: z.string() })) });
|
|
19
18
|
const until = z.string().datetime().nullable();
|
|
20
|
-
/** A run whose plan is recorded: its timeline, its words and the rules an edit of it must keep. */
|
|
21
19
|
export const plannedRunShots = z.object({
|
|
22
20
|
planned: z.literal(true),
|
|
23
21
|
run_id: runId, line: z.enum(EDIT_LINES),
|
|
@@ -27,7 +25,6 @@ export const plannedRunShots = z.object({
|
|
|
27
25
|
narration: z.object({ offset_frames: frame, words: z.array(word) }),
|
|
28
26
|
tracks: z.array(z.object({ id: z.enum(SHOT_TRACKS), shots: z.array(viewShot) })),
|
|
29
27
|
rules: editRules,
|
|
30
|
-
// `view_only`: the run's shots are shown, and no draft of them is kept yet (long form, #604 S7a).
|
|
31
28
|
editable: z.object({ state: z.enum(["editable", "view_only", "expired", "not_recorded"]), media_available_until: until, reason: z.string().nullable() }),
|
|
32
29
|
lineage,
|
|
33
30
|
withheld: z.array(z.enum(["description", "source_media"])),
|
|
@@ -35,27 +32,28 @@ export const plannedRunShots = z.object({
|
|
|
35
32
|
paid_edits: z.object({ enabled: z.boolean(), reason: z.string().nullable() }),
|
|
36
33
|
contract_version: z.string().min(1),
|
|
37
34
|
});
|
|
38
|
-
/** The takes of one live shot of an ad (#1560): each clip made for it, what our check said of it, and which one the video uses. */
|
|
39
35
|
export const LIVE_SHOT_TAKES = ["first", "retake", "fallback", "head", "card"];
|
|
40
36
|
export const LIVE_TAKE_VERDICTS = ["accepted", "refused", "unjudged"];
|
|
41
37
|
const liveTake = z.object({
|
|
42
38
|
take: z.enum(LIVE_SHOT_TAKES), verdict: z.enum(LIVE_TAKE_VERDICTS),
|
|
43
|
-
/** The check's codes as it stored them (STRAY_TEXT, FACE_DRIFT, ...); empty when it named none. */
|
|
44
39
|
codes: z.array(z.string().min(1)), chosen: z.boolean(), preview_url: z.string().url().nullable(),
|
|
45
40
|
});
|
|
46
41
|
export const liveShot = z.object({ shot_id: z.string().min(1).max(64), takes: z.array(liveTake) });
|
|
47
|
-
|
|
42
|
+
export const FINISHED_CHECK_VERDICTS = ["clean", "defects"];
|
|
43
|
+
export const finishedCheck = z.object({
|
|
44
|
+
verdict: z.enum(FINISHED_CHECK_VERDICTS),
|
|
45
|
+
findings: z.array(z.object({ code: z.string().min(1), at_s: z.number().nonnegative().nullable() })),
|
|
46
|
+
});
|
|
48
47
|
export const unplannedRunShots = z.object({
|
|
49
48
|
planned: z.literal(false),
|
|
50
49
|
run_id: runId, line: z.enum(EDIT_LINES),
|
|
51
50
|
editable: z.object({ state: z.enum(["not_succeeded", "unsupported_line", "not_recorded"]), media_available_until: until, reason: z.string().min(1) }),
|
|
52
51
|
lineage,
|
|
53
|
-
/** An ad run's live shots, for the accounts that have the ad parts; absent otherwise. */
|
|
54
52
|
live_shots: z.array(liveShot).optional(),
|
|
53
|
+
finished_check: finishedCheck.optional(),
|
|
55
54
|
contract_version: z.string().min(1),
|
|
56
55
|
});
|
|
57
56
|
export const runShots = z.discriminatedUnion("planned", [plannedRunShots, unplannedRunShots]);
|
|
58
|
-
// What installed clients parse: every closed vocabulary is an open string, and `rules` is opaque.
|
|
59
57
|
const editableRead = z.object({ state: z.string(), media_available_until: until, reason: z.string().nullable() });
|
|
60
58
|
const viewShotRead = viewShot.extend({ track: z.string(), kind: z.string(), source: z.string(), operations: z.array(z.string()) });
|
|
61
59
|
export const plannedRunShotsRead = plannedRunShots.extend({
|
|
@@ -68,8 +66,6 @@ export const plannedRunShotsRead = plannedRunShots.extend({
|
|
|
68
66
|
});
|
|
69
67
|
const liveShotRead = liveShot.extend({ takes: z.array(liveShot.shape.takes.element.extend({ take: z.string(), verdict: z.string() })) });
|
|
70
68
|
export const unplannedRunShotsRead = unplannedRunShots.extend({ line: z.string(), editable: editableRead,
|
|
71
|
-
live_shots: z.array(liveShotRead).optional() });
|
|
69
|
+
live_shots: z.array(liveShotRead).optional(), finished_check: finishedCheck.extend({ verdict: z.string() }).optional() });
|
|
72
70
|
export const runShotsRead = z.discriminatedUnion("planned", [plannedRunShotsRead, unplannedRunShotsRead]);
|
|
73
|
-
/** The path of a run's shots. The id is encoded, since it comes from the caller. */
|
|
74
71
|
export const runShotsPath = (id) => `/v1/runs/${encodeURIComponent(id)}/shots`;
|
|
75
|
-
//# sourceMappingURL=edit-shots.js.map
|
package/dist/edit-validate.d.ts
CHANGED
|
@@ -2,10 +2,8 @@ import type { EditDocument } from "./edit-document.js";
|
|
|
2
2
|
import { type ShotOperationMode } from "./edit-operations.js";
|
|
3
3
|
import type { ShotKind } from "./edit-rules.js";
|
|
4
4
|
import type { PlannedRunShots } from "./edit-shots.js";
|
|
5
|
-
/** In the order issues are reported. */
|
|
6
5
|
export declare const EDIT_ISSUE_CODES: readonly ["source_mismatch", "timebase_mismatch", "duration_mismatch", "duplicate_shot_id", "span_out_of_range", "kind_changed", "shot_added_not_allowed", "too_short", "too_long", "action_not_allowed", "not_movable", "not_resizable", "overlap", "tracks_overlap", "uncovered", "first_shot_fixed", "foreign_source_asset", "kind_asset_mismatch", "candidate_for_other_shot", "unknown_asset", "upload_shape_refused", "duplicate_picture_asset", "too_many_generated", "footage_exceeded", "presenter_out_of_sync", "presenter_outside_recording", "transition_invalid"];
|
|
7
6
|
export type EditIssueCode = (typeof EDIT_ISSUE_CODES)[number];
|
|
8
|
-
/** What the caller measured about the assets a document names: kept candidates by run id, uploads by upload id. */
|
|
9
7
|
export type EditFacts = {
|
|
10
8
|
candidates: Record<string, {
|
|
11
9
|
shot_id: string;
|
|
@@ -25,31 +23,23 @@ export type EditIssue = {
|
|
|
25
23
|
message: string;
|
|
26
24
|
};
|
|
27
25
|
export type EditSummary = {
|
|
28
|
-
/** Source shots whose start_frame, end_frame or media_offset_frames changed. */
|
|
29
26
|
retimed: string[];
|
|
30
|
-
/** Source shot ids absent from the document. */
|
|
31
27
|
deleted: string[];
|
|
32
|
-
/** Document shot ids that are not source shot ids. */
|
|
33
28
|
added: string[];
|
|
34
29
|
replaced: {
|
|
35
30
|
shot_id: string;
|
|
36
31
|
from: "candidate" | "upload" | "source";
|
|
37
32
|
}[];
|
|
38
|
-
/** Facts only: pricing decides what each entry costs. */
|
|
39
33
|
generated: {
|
|
40
34
|
shot_id: string;
|
|
41
35
|
kind: ShotKind;
|
|
42
36
|
mode: ShotOperationMode;
|
|
43
37
|
}[];
|
|
44
|
-
/** The document sets or removes the cut transitions. */
|
|
45
38
|
transitions?: true;
|
|
46
|
-
/** Any list above is non-empty, or transitions are set. */
|
|
47
39
|
changed: boolean;
|
|
48
40
|
};
|
|
49
|
-
/** Presenter frames no visual shot covers. */
|
|
50
41
|
export declare function presenterVisibleFrames(shots: Pick<PlannedRunShots, "tracks">): number;
|
|
51
42
|
export declare function diffEditDocument(document: EditDocument, shots: PlannedRunShots): EditSummary;
|
|
52
|
-
/** Checks a document against the view it edits. Every issue is collected; the rules come from the view. */
|
|
53
43
|
export declare function validateEditDocument(document: EditDocument, shots: PlannedRunShots, facts: EditFacts): {
|
|
54
44
|
ok: true;
|
|
55
45
|
summary: EditSummary;
|
package/dist/edit-validate.js
CHANGED
|
@@ -2,7 +2,6 @@ import { aspectDistance } from "./aspect.js";
|
|
|
2
2
|
import { isExactFit } from "./canvas-fit.js";
|
|
3
3
|
import { SHOT_OPERATION_MODES } from "./edit-operations.js";
|
|
4
4
|
import { MAX_INSERTS } from "./skills.js";
|
|
5
|
-
/** In the order issues are reported. */
|
|
6
5
|
export const EDIT_ISSUE_CODES = [
|
|
7
6
|
"source_mismatch", "timebase_mismatch", "duration_mismatch", "duplicate_shot_id", "span_out_of_range", "kind_changed",
|
|
8
7
|
"shot_added_not_allowed", "too_short", "too_long", "action_not_allowed", "not_movable", "not_resizable", "overlap",
|
|
@@ -14,7 +13,6 @@ const spanOf = (shot) => ({ start: shot.start_frame, end: shot.end_frame });
|
|
|
14
13
|
const framesOf = (shot) => shot.end_frame - shot.start_frame;
|
|
15
14
|
const overlapOf = (a, b) => ({ start: Math.max(a.start_frame, b.start_frame), end: Math.min(a.end_frame, b.end_frame) });
|
|
16
15
|
const overlaps = (a, b) => a.start_frame < b.end_frame && b.start_frame < a.end_frame;
|
|
17
|
-
/** Sorted, merged union; empty and inverted spans drop out. */
|
|
18
16
|
function union(spans) {
|
|
19
17
|
const merged = [];
|
|
20
18
|
for (const span of spans.filter(s => s.end > s.start).sort((a, b) => a.start - b.start)) {
|
|
@@ -26,7 +24,6 @@ function union(spans) {
|
|
|
26
24
|
}
|
|
27
25
|
return merged;
|
|
28
26
|
}
|
|
29
|
-
/** Frames two unions share. */
|
|
30
27
|
function sharedFrames(a, b) {
|
|
31
28
|
let frames = 0;
|
|
32
29
|
for (const x of a)
|
|
@@ -39,13 +36,11 @@ const own = (record, key) => Object.hasOwn(record, key) ? record[key] : undefine
|
|
|
39
36
|
const offsetOf = (shot, source) => shot.media_offset_frames ?? source?.media_offset_frames ?? 0;
|
|
40
37
|
const retimed = (shot, source) => shot.start_frame !== source.start_frame ||
|
|
41
38
|
shot.end_frame !== source.end_frame || offsetOf(shot, source) !== (source.media_offset_frames ?? 0);
|
|
42
|
-
/** Whether a visual shot reaches presenter frames its source span did not; `was` is the presenter shot's source. */
|
|
43
39
|
function newlyCovers(shot, from, presenter, was) {
|
|
44
40
|
if (!overlaps(shot, presenter))
|
|
45
41
|
return false;
|
|
46
42
|
if (!from)
|
|
47
43
|
return true;
|
|
48
|
-
// A presenter shot the source lacks, or holds on another track, is refused on its own.
|
|
49
44
|
if (!was || was.track !== "presenter")
|
|
50
45
|
return false;
|
|
51
46
|
if (!overlaps(from, was))
|
|
@@ -53,7 +48,6 @@ function newlyCovers(shot, from, presenter, was) {
|
|
|
53
48
|
const now = overlapOf(shot, presenter), before = overlapOf(from, was);
|
|
54
49
|
return now.start < before.start || now.end > before.end;
|
|
55
50
|
}
|
|
56
|
-
/** The stretches of each presenter shot that no visual shot covers. */
|
|
57
51
|
function visiblePieces(presenter, visual) {
|
|
58
52
|
const covered = union(visual.map(spanOf));
|
|
59
53
|
return presenter.flatMap(shot => {
|
|
@@ -71,7 +65,6 @@ function visiblePieces(presenter, visual) {
|
|
|
71
65
|
return pieces;
|
|
72
66
|
});
|
|
73
67
|
}
|
|
74
|
-
/** The one check that reads the output's shape, and only its ratio. */
|
|
75
68
|
function uploadShapeIssue(frame, upload, rule) {
|
|
76
69
|
if ("mode" in rule) {
|
|
77
70
|
return isExactFit(upload, frame, rule.epsilon) ? null
|
|
@@ -82,7 +75,6 @@ function uploadShapeIssue(frame, upload, rule) {
|
|
|
82
75
|
: `the upload is ${upload.width}×${upload.height}, ${Math.round(distance * 100)}% away from the output's shape; ` +
|
|
83
76
|
`at most ${Math.round(rule.max_distance * 100)}% is accepted`;
|
|
84
77
|
}
|
|
85
|
-
/** Presenter frames no visual shot covers. */
|
|
86
78
|
export function presenterVisibleFrames(shots) {
|
|
87
79
|
const all = shots.tracks.flatMap(track => track.shots);
|
|
88
80
|
const presenter = union(all.filter(shot => shot.track === "presenter").map(spanOf));
|
|
@@ -113,7 +105,6 @@ export function diffEditDocument(document, shots) {
|
|
|
113
105
|
summary.transitions === true;
|
|
114
106
|
return summary;
|
|
115
107
|
}
|
|
116
|
-
/** Checks a document against the view it edits. Every issue is collected; the rules come from the view. */
|
|
117
108
|
export function validateEditDocument(document, shots, facts) {
|
|
118
109
|
const issues = [];
|
|
119
110
|
const add = (code, message, where = {}) => {
|
|
@@ -139,9 +130,7 @@ export function validateEditDocument(document, shots, facts) {
|
|
|
139
130
|
const sourcePresenter = [...source.values()].filter(shot => shot.track === "presenter");
|
|
140
131
|
const overSource = (shot) => shot.track === "visual" && sourcePresenter.some(presenter => overlaps(presenter, shot));
|
|
141
132
|
const overNow = (shot) => shot.track === "visual" && presenterShots.some(presenter => overlaps(presenter, shot));
|
|
142
|
-
// Shots the source already shows over the presenter count first, so a chain of revisions keeps the cap.
|
|
143
133
|
let overPresenter = document.shots.filter(shot => { const from = source.get(shot.id); return from && overSource(from) && overNow(shot); }).length;
|
|
144
|
-
// Id stems of the source's own tiling: a new shot named like one would read as that shot in a later record.
|
|
145
134
|
const stem = (id) => id.replace(/\d+$/, "");
|
|
146
135
|
const tiling = new Set([...source.values()].filter(shot => shot.track === "presenter" || !overSource(shot)).map(shot => stem(shot.id)));
|
|
147
136
|
const pictureAssets = new Set();
|
|
@@ -277,7 +266,6 @@ export function validateEditDocument(document, shots, facts) {
|
|
|
277
266
|
reach = shot;
|
|
278
267
|
}
|
|
279
268
|
}
|
|
280
|
-
// The presenter shows for at least the cover minimum or not at all (Q23); a stretch the source already shows stays.
|
|
281
269
|
if (rules.cover_min_frames !== null) {
|
|
282
270
|
const all = [...source.values()];
|
|
283
271
|
const shown = new Set(visiblePieces(all.filter(shot => shot.track === "presenter"), all.filter(shot => shot.track === "visual"))
|
|
@@ -315,7 +303,6 @@ export function validateEditDocument(document, shots, facts) {
|
|
|
315
303
|
if (generated > rules.max_generated_per_revision) {
|
|
316
304
|
add("too_many_generated", `a revision generates at most ${rules.max_generated_per_revision} shots, this one asks for ${generated}`);
|
|
317
305
|
}
|
|
318
|
-
// A transition falls on a cut into a shot, so the named shot is in the document and is not the opening one.
|
|
319
306
|
const transitions = document.transitions;
|
|
320
307
|
if (transitions !== undefined && !rules.cut_transitions)
|
|
321
308
|
add("transition_invalid", "this timeline draws no cut transitions");
|
|
@@ -335,4 +322,3 @@ export function validateEditDocument(document, shots, facts) {
|
|
|
335
322
|
issues.sort((a, b) => order(a) - order(b) || (idOf(a) < idOf(b) ? -1 : idOf(a) > idOf(b) ? 1 : 0));
|
|
336
323
|
return { ok: false, issues };
|
|
337
324
|
}
|
|
338
|
-
//# sourceMappingURL=edit-validate.js.map
|
package/dist/edit.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// The editor contract in one subpath: rules, operations, the edit document, the shots view, validation, the faceless projection, the revision and its price, the shot candidate,
|
|
2
|
-
// the composition's exact-fit test and the long-form revision.
|
|
3
1
|
export * from "./edit-rules.js";
|
|
4
2
|
export * from "./edit-operations.js";
|
|
5
3
|
export * from "./edit-document.js";
|
|
@@ -12,4 +10,3 @@ export * from "./edit-revision.js";
|
|
|
12
10
|
export * from "./edit-candidate.js";
|
|
13
11
|
export * from "./canvas-fit.js";
|
|
14
12
|
export * from "./long-form-revision.js";
|
|
15
|
-
//# sourceMappingURL=edit.js.map
|
package/dist/endpoint-notes.d.ts
CHANGED
package/dist/endpoint-notes.js
CHANGED
|
@@ -5,8 +5,6 @@ import { CREATOR_PROFILE_CREDITS, CREATOR_PROFILE_PER_HOUR, CREATOR_PROFILE_VIDE
|
|
|
5
5
|
import { TREND_FREE_PAGES_PER_DAY, TREND_FREE_SEARCHES_PER_MONTH, TREND_PAGE_PAID_CREDITS, TREND_PAGE_WINDOW_SECONDS, TREND_SEARCH_CREDITS, TREND_SEARCH_MAX_PAGES, TREND_SEARCH_PER_HOUR, TREND_SEARCH_REELS, } from "./trend-search.js";
|
|
6
6
|
import { FEEDBACK_PER_HOUR } from "./feedback.js";
|
|
7
7
|
import { REFERENCE_ANALYSIS_CREDITS, REFERENCE_ANALYSIS_PER_HOUR, REFERENCE_DATA_CREDITS, REFERENCE_DATA_PER_HOUR } from "./reference-analysis.js";
|
|
8
|
-
/** What each route does, keyed by `endpointLabel`. `/docs` and `/openapi.json` print the same sentence; */
|
|
9
|
-
/** the web docs test proves every shown route has one and nothing else does. */
|
|
10
8
|
export const ENDPOINT_NOTES = {
|
|
11
9
|
"GET /v1/public/workflows": "Lists public workflow methods and whether each is available now, without account plans or an account admission claim.",
|
|
12
10
|
"GET /v1/public/workflows/{id}": "Reads a method's guidance, limitations and what it can do right now.",
|
|
@@ -111,4 +109,3 @@ export const ENDPOINT_NOTES = {
|
|
|
111
109
|
"POST /v1/skills/generate_video/quote": "Prices one silent clip with this request: credits per second times its duration, width, height and warnings. Charges nothing.",
|
|
112
110
|
"POST /v1/skills/generate_video/run": "Starts one clip generation and answers at once with a run_id; the run's generation block holds the clip once delivered. A failed generation is charged nothing. While generations are closed it answers generations_disabled and charges nothing.",
|
|
113
111
|
};
|
|
114
|
-
//# sourceMappingURL=endpoint-notes.js.map
|
package/dist/endpoints.d.ts
CHANGED
|
@@ -2,33 +2,22 @@ export declare const PUBLIC_WORKFLOWS_PATH = "/v1/public/workflows";
|
|
|
2
2
|
export declare const PUBLIC_WORKFLOW_PATH = "/v1/public/workflows/:id";
|
|
3
3
|
export declare const WORKFLOW_PLANS_PATH = "/v1/workflow-plans";
|
|
4
4
|
export declare const WORKFLOW_PLAN_PATH = "/v1/workflow-plans/:id";
|
|
5
|
-
/** A reference remake compiled into a new plan (#857): free, it starts nothing. */
|
|
6
5
|
export declare const WORKFLOW_REFERENCE_REMAKE_PATH = "/v1/workflow-plans/reference-remake";
|
|
7
6
|
export declare const WORKFLOW_REVISIONS_PATH = "/v1/workflow-plans/:id/revisions";
|
|
8
7
|
export declare const WORKFLOW_APPROVE_PATH = "/v1/workflow-plans/:id/approve";
|
|
9
8
|
export declare const WORKFLOW_QUOTE_PATH = "/v1/workflow-plans/:id/quote";
|
|
10
9
|
export declare const WORKFLOW_RUN_PATH = "/v1/workflow-plans/:id/run";
|
|
11
|
-
/** The OpenAPI 3.1 document, built from this registry and served without a key. */
|
|
12
10
|
export declare const OPENAPI_PATH = "/openapi.json";
|
|
13
11
|
export interface ApiEndpoint {
|
|
14
12
|
method: "GET" | "POST" | "DELETE";
|
|
15
|
-
/** The path in Hono notation: a parameter is `:id`. */
|
|
16
13
|
path: string;
|
|
17
|
-
/** Whether the call may charge credits. */
|
|
18
14
|
billed: boolean;
|
|
19
|
-
/** Whether the quickstart names it. */
|
|
20
15
|
onQuickstart: boolean;
|
|
21
|
-
/** Whether the route parses the body as JSON. `POST /v1/uploads` takes bytes. */
|
|
22
16
|
jsonBody: boolean;
|
|
23
|
-
/** Whether the cabinet may call it on a user's behalf. */
|
|
24
17
|
cabinet: boolean;
|
|
25
|
-
/** Whether the remote MCP server may call it with its `cwm_` assertion: a route a remote tool reaches. */
|
|
26
18
|
mcp: boolean;
|
|
27
19
|
}
|
|
28
20
|
export declare const API_ENDPOINTS: readonly ApiEndpoint[];
|
|
29
|
-
/** `GET /v1/runs/{id}`: the human notation, with the parameter in curly braces. */
|
|
30
21
|
export declare function endpointLabel(endpoint: ApiEndpoint): string;
|
|
31
|
-
/** The row a request falls on, or `null`. Exact on purpose: the method as HTTP spells it (upper case) and the pathname alone,
|
|
32
|
-
* so a path with a query string matches no row; a caller that binds the query (the cabinet assertion) splits it off first. */
|
|
33
22
|
export declare function matchEndpoint(method: string, path: string): ApiEndpoint | null;
|
|
34
23
|
export declare const QUICKSTART_ENDPOINTS: readonly ApiEndpoint[];
|
package/dist/endpoints.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** API routes: the API contract test checks them against `app.routes`, and the quickstart */
|
|
2
|
-
/** prints the "what costs money" list from here. */
|
|
3
1
|
import { ACTOR_PREVIEW_PATH } from "./actors.js";
|
|
4
2
|
import { ASSET_BYTES_PATH, ASSET_ITEM_PATH, ASSETS_PATH } from "./assets.js";
|
|
5
3
|
import { ACTOR_DEFAULTS_PATH } from "./broll-policy.js";
|
|
@@ -12,7 +10,8 @@ import { FEEDBACK_PATH } from "./feedback.js";
|
|
|
12
10
|
import { FILM_DRAFT_CHECK_PATH, FILM_DRAFT_FILES_PATH, FILM_DRAFT_PATH, FILM_DRAFTS_PATH } from "./film-drafts.js";
|
|
13
11
|
import { FILM_GUIDE_PATH, FILM_KIT_PATH } from "./film-guide.js";
|
|
14
12
|
import { AD_GUIDE_PATH } from "./ad-guide.js";
|
|
15
|
-
import {
|
|
13
|
+
import { AD_PATH, ADS_PATH } from "./ads.js";
|
|
14
|
+
import { FILM_EDITS_PATH, FILM_EDITS_QUOTE_PATH, FILM_HEROES_PATH, FILM_HEROES_QUOTE_PATH, FILM_RENDERS_PATH, FILM_RENDERS_QUOTE_PATH, FILM_RUN_PATH, FILM_STILLS_PATH, FILM_STILLS_QUOTE_PATH, FILM_VOICES_PATH, FILM_VOICES_QUOTE_PATH, TAKE_CHECKS_PATH, TAKE_CHECKS_QUOTE_PATH, TAKE_FRAMES_PATH, TAKE_FRAMES_QUOTE_PATH } from "./own-agent-runs.js";
|
|
16
15
|
import { GENERATION_MODELS_PATH } from "./generations.js";
|
|
17
16
|
import { PRICES_PATH } from "./prices.js";
|
|
18
17
|
import { REFERENCE_ANALYSES_PATH, REFERENCE_ANALYSIS_PATH, REFERENCE_ANALYSIS_QUOTE_PATH } from "./reference-analysis.js";
|
|
@@ -23,13 +22,11 @@ export const PUBLIC_WORKFLOWS_PATH = "/v1/public/workflows";
|
|
|
23
22
|
export const PUBLIC_WORKFLOW_PATH = "/v1/public/workflows/:id";
|
|
24
23
|
export const WORKFLOW_PLANS_PATH = "/v1/workflow-plans";
|
|
25
24
|
export const WORKFLOW_PLAN_PATH = "/v1/workflow-plans/:id";
|
|
26
|
-
/** A reference remake compiled into a new plan (#857): free, it starts nothing. */
|
|
27
25
|
export const WORKFLOW_REFERENCE_REMAKE_PATH = "/v1/workflow-plans/reference-remake";
|
|
28
26
|
export const WORKFLOW_REVISIONS_PATH = "/v1/workflow-plans/:id/revisions";
|
|
29
27
|
export const WORKFLOW_APPROVE_PATH = "/v1/workflow-plans/:id/approve";
|
|
30
28
|
export const WORKFLOW_QUOTE_PATH = "/v1/workflow-plans/:id/quote";
|
|
31
29
|
export const WORKFLOW_RUN_PATH = "/v1/workflow-plans/:id/run";
|
|
32
|
-
/** The OpenAPI 3.1 document, built from this registry and served without a key. */
|
|
33
30
|
export const OPENAPI_PATH = "/openapi.json";
|
|
34
31
|
export const API_ENDPOINTS = [
|
|
35
32
|
{ method: "POST", path: "/v1/skills/make_faceless/quote", billed: false, onQuickstart: true, jsonBody: true, cabinet: false, mcp: true },
|
|
@@ -74,7 +71,6 @@ export const API_ENDPOINTS = [
|
|
|
74
71
|
{ method: "POST", path: "/v1/uploads/intents", billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
75
72
|
{ method: "GET", path: "/v1/uploads/:id", billed: false, onQuickstart: false, jsonBody: false, cabinet: true, mcp: true },
|
|
76
73
|
{ method: "DELETE", path: "/v1/uploads/:id", billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
77
|
-
// Account assets (clipwright#724 F2). The bytes row stands before `:id`: `matchEndpoint` takes the first row that fits.
|
|
78
74
|
{ method: "POST", path: ASSETS_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
|
|
79
75
|
{ method: "POST", path: ASSET_BYTES_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: true, mcp: false },
|
|
80
76
|
{ method: "GET", path: ASSETS_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: true, mcp: true },
|
|
@@ -96,60 +92,54 @@ export const API_ENDPOINTS = [
|
|
|
96
92
|
{ method: "POST", path: "/v1/skills/generate_image/run", billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
97
93
|
{ method: "POST", path: "/v1/skills/generate_video/quote", billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
98
94
|
{ method: "POST", path: "/v1/skills/generate_video/run", billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
99
|
-
// Reference analysis (reference-to-video S1c): paid since #927; its own hourly cap stands in the handler too. The Trends page uses it (#917).
|
|
100
95
|
{ method: "POST", path: REFERENCE_ANALYSIS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
|
|
101
96
|
{ method: "POST", path: REFERENCE_ANALYSES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
|
|
102
97
|
{ method: "GET", path: REFERENCE_ANALYSIS_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: true, mcp: true },
|
|
103
|
-
// Creator profile (#999): paid, with its own hourly cap in the handler; the quote row stands before `:id`.
|
|
104
98
|
{ method: "POST", path: CREATOR_PROFILE_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
105
99
|
{ method: "POST", path: CREATOR_PROFILES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
106
100
|
{ method: "GET", path: CREATOR_PROFILE_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
107
101
|
{ method: "DELETE", path: CREATOR_PROFILE_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
108
|
-
// Topic search (#921): paid, with its own hourly cap in the handler; the quote row stands before `:id`. The Trends page quotes and starts (#917).
|
|
109
102
|
{ method: "POST", path: TREND_SEARCH_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
|
|
110
103
|
{ method: "POST", path: TREND_SEARCHES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
|
|
111
104
|
{ method: "GET", path: TREND_SEARCH_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
112
|
-
// Saved niches (#1201): free; the Trends page saves them.
|
|
113
105
|
{ method: "GET", path: TREND_NICHES_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
114
106
|
{ method: "POST", path: TREND_NICHES_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
|
|
115
|
-
// Feedback from an agent (#941): free, with its own hourly cap in the handler.
|
|
116
107
|
{ method: "POST", path: FEEDBACK_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
117
|
-
// Film drafts of the «own agent» mode (#1291 F2): free, behind CLIPWRIGHT_OWN_AGENT; the files row stands before `:id`'s own.
|
|
118
108
|
{ method: "POST", path: FILM_DRAFTS_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
119
109
|
{ method: "POST", path: FILM_DRAFT_FILES_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
120
110
|
{ method: "POST", path: FILM_DRAFT_CHECK_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
121
111
|
{ method: "GET", path: FILM_DRAFT_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
122
|
-
// Its paid runs (#1337): stills, voice and render, each quoted first; one read of what a run delivered.
|
|
123
112
|
{ method: "POST", path: FILM_STILLS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
124
113
|
{ method: "POST", path: FILM_STILLS_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
125
114
|
{ method: "POST", path: FILM_VOICES_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
126
115
|
{ method: "POST", path: FILM_VOICES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
127
116
|
{ method: "POST", path: FILM_RENDERS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
128
117
|
{ method: "POST", path: FILM_RENDERS_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
129
|
-
// A hero saved as a mascot (#1356), quoted first like the rest.
|
|
130
118
|
{ method: "POST", path: FILM_HEROES_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
131
119
|
{ method: "POST", path: FILM_HEROES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
120
|
+
{ method: "POST", path: FILM_EDITS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
121
|
+
{ method: "POST", path: FILM_EDITS_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
122
|
+
{ method: "POST", path: TAKE_FRAMES_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
123
|
+
{ method: "POST", path: TAKE_FRAMES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
124
|
+
{ method: "POST", path: TAKE_CHECKS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
125
|
+
{ method: "POST", path: TAKE_CHECKS_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
132
126
|
{ method: "GET", path: FILM_RUN_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
133
|
-
// The mode's guide and scene kit, read-only (#1356).
|
|
134
127
|
{ method: "GET", path: FILM_GUIDE_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
135
128
|
{ method: "GET", path: FILM_KIT_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
136
|
-
// The ad guide for make_ugc (#1539 P3), read-only and free.
|
|
137
129
|
{ method: "GET", path: AD_GUIDE_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
130
|
+
{ method: "POST", path: ADS_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
131
|
+
{ method: "POST", path: AD_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
132
|
+
{ method: "GET", path: AD_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
138
133
|
];
|
|
139
|
-
/** `GET /v1/runs/{id}`: the human notation, with the parameter in curly braces. */
|
|
140
134
|
export function endpointLabel(endpoint) {
|
|
141
135
|
return `${endpoint.method} ${endpoint.path.replace(/:(\w+)/g, "{$1}")}`;
|
|
142
136
|
}
|
|
143
|
-
/** The row a request falls on, or `null`. Exact on purpose: the method as HTTP spells it (upper case) and the pathname alone,
|
|
144
|
-
* so a path with a query string matches no row; a caller that binds the query (the cabinet assertion) splits it off first. */
|
|
145
137
|
export function matchEndpoint(method, path) {
|
|
146
138
|
const segments = path.split("/");
|
|
147
139
|
return API_ENDPOINTS.find((endpoint) => {
|
|
148
140
|
const pattern = endpoint.path.split("/");
|
|
149
141
|
return endpoint.method === method && pattern.length === segments.length &&
|
|
150
|
-
// A parameter is one plain identifier: a dot segment or a percent escape would name another path to a router.
|
|
151
142
|
pattern.every((part, index) => (part.startsWith(":") ? /^[A-Za-z0-9_-]+$/.test(segments[index]) : part === segments[index]));
|
|
152
143
|
}) ?? null;
|
|
153
144
|
}
|
|
154
145
|
export const QUICKSTART_ENDPOINTS = API_ENDPOINTS.filter((endpoint) => endpoint.onQuickstart);
|
|
155
|
-
//# sourceMappingURL=endpoints.js.map
|