@clipwright/core 0.60.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 +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/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 +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 +1 -0
- package/dist/index.js +1 -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 +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 +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 +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 +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.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,7 @@ 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 { 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 } from "./own-agent-runs.js";
|
|
13
|
+
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
14
|
import { GENERATION_MODELS_PATH } from "./generations.js";
|
|
17
15
|
import { PRICES_PATH } from "./prices.js";
|
|
18
16
|
import { REFERENCE_ANALYSES_PATH, REFERENCE_ANALYSIS_PATH, REFERENCE_ANALYSIS_QUOTE_PATH } from "./reference-analysis.js";
|
|
@@ -23,13 +21,11 @@ export const PUBLIC_WORKFLOWS_PATH = "/v1/public/workflows";
|
|
|
23
21
|
export const PUBLIC_WORKFLOW_PATH = "/v1/public/workflows/:id";
|
|
24
22
|
export const WORKFLOW_PLANS_PATH = "/v1/workflow-plans";
|
|
25
23
|
export const WORKFLOW_PLAN_PATH = "/v1/workflow-plans/:id";
|
|
26
|
-
/** A reference remake compiled into a new plan (#857): free, it starts nothing. */
|
|
27
24
|
export const WORKFLOW_REFERENCE_REMAKE_PATH = "/v1/workflow-plans/reference-remake";
|
|
28
25
|
export const WORKFLOW_REVISIONS_PATH = "/v1/workflow-plans/:id/revisions";
|
|
29
26
|
export const WORKFLOW_APPROVE_PATH = "/v1/workflow-plans/:id/approve";
|
|
30
27
|
export const WORKFLOW_QUOTE_PATH = "/v1/workflow-plans/:id/quote";
|
|
31
28
|
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
29
|
export const OPENAPI_PATH = "/openapi.json";
|
|
34
30
|
export const API_ENDPOINTS = [
|
|
35
31
|
{ method: "POST", path: "/v1/skills/make_faceless/quote", billed: false, onQuickstart: true, jsonBody: true, cabinet: false, mcp: true },
|
|
@@ -74,7 +70,6 @@ export const API_ENDPOINTS = [
|
|
|
74
70
|
{ method: "POST", path: "/v1/uploads/intents", billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
75
71
|
{ method: "GET", path: "/v1/uploads/:id", billed: false, onQuickstart: false, jsonBody: false, cabinet: true, mcp: true },
|
|
76
72
|
{ 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
73
|
{ method: "POST", path: ASSETS_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
|
|
79
74
|
{ method: "POST", path: ASSET_BYTES_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: true, mcp: false },
|
|
80
75
|
{ method: "GET", path: ASSETS_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: true, mcp: true },
|
|
@@ -96,60 +91,51 @@ export const API_ENDPOINTS = [
|
|
|
96
91
|
{ method: "POST", path: "/v1/skills/generate_image/run", billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
97
92
|
{ method: "POST", path: "/v1/skills/generate_video/quote", billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
98
93
|
{ 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
94
|
{ method: "POST", path: REFERENCE_ANALYSIS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
|
|
101
95
|
{ method: "POST", path: REFERENCE_ANALYSES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
|
|
102
96
|
{ 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
97
|
{ method: "POST", path: CREATOR_PROFILE_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
105
98
|
{ method: "POST", path: CREATOR_PROFILES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
106
99
|
{ method: "GET", path: CREATOR_PROFILE_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
107
100
|
{ 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
101
|
{ method: "POST", path: TREND_SEARCH_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
|
|
110
102
|
{ method: "POST", path: TREND_SEARCHES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
|
|
111
103
|
{ 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
104
|
{ method: "GET", path: TREND_NICHES_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
114
105
|
{ 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
106
|
{ 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
107
|
{ method: "POST", path: FILM_DRAFTS_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
119
108
|
{ method: "POST", path: FILM_DRAFT_FILES_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
120
109
|
{ method: "POST", path: FILM_DRAFT_CHECK_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
121
110
|
{ 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
111
|
{ method: "POST", path: FILM_STILLS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
124
112
|
{ method: "POST", path: FILM_STILLS_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
125
113
|
{ method: "POST", path: FILM_VOICES_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
126
114
|
{ method: "POST", path: FILM_VOICES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
127
115
|
{ method: "POST", path: FILM_RENDERS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
128
116
|
{ 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
117
|
{ method: "POST", path: FILM_HEROES_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
131
118
|
{ method: "POST", path: FILM_HEROES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
119
|
+
{ method: "POST", path: FILM_EDITS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
120
|
+
{ method: "POST", path: FILM_EDITS_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
121
|
+
{ method: "POST", path: TAKE_FRAMES_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
122
|
+
{ method: "POST", path: TAKE_FRAMES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
123
|
+
{ method: "POST", path: TAKE_CHECKS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
124
|
+
{ method: "POST", path: TAKE_CHECKS_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
132
125
|
{ 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
126
|
{ method: "GET", path: FILM_GUIDE_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
135
127
|
{ 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
128
|
{ method: "GET", path: AD_GUIDE_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
138
129
|
];
|
|
139
|
-
/** `GET /v1/runs/{id}`: the human notation, with the parameter in curly braces. */
|
|
140
130
|
export function endpointLabel(endpoint) {
|
|
141
131
|
return `${endpoint.method} ${endpoint.path.replace(/:(\w+)/g, "{$1}")}`;
|
|
142
132
|
}
|
|
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
133
|
export function matchEndpoint(method, path) {
|
|
146
134
|
const segments = path.split("/");
|
|
147
135
|
return API_ENDPOINTS.find((endpoint) => {
|
|
148
136
|
const pattern = endpoint.path.split("/");
|
|
149
137
|
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
138
|
pattern.every((part, index) => (part.startsWith(":") ? /^[A-Za-z0-9_-]+$/.test(segments[index]) : part === segments[index]));
|
|
152
139
|
}) ?? null;
|
|
153
140
|
}
|
|
154
141
|
export const QUICKSTART_ENDPOINTS = API_ENDPOINTS.filter((endpoint) => endpoint.onQuickstart);
|
|
155
|
-
//# sourceMappingURL=endpoints.js.map
|
package/dist/errors.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { workflowCommandError } from "./contracts/v1/workflow-execution.js";
|
|
3
|
-
/** The generic error envelope. Tolerates extra fields inside `error`: the typed refusals */
|
|
4
|
-
/** below extend it, and generic parsing must not break when a code brings numbers. */
|
|
5
3
|
export declare const apiError: z.ZodObject<{
|
|
6
4
|
error: z.ZodObject<{
|
|
7
5
|
code: z.ZodString;
|
|
@@ -21,7 +19,6 @@ export declare function workflowCommandErrorBody(args: z.input<typeof workflowCo
|
|
|
21
19
|
warnings: string[];
|
|
22
20
|
};
|
|
23
21
|
};
|
|
24
|
-
/** Fewer credits on the balance than the run weighs: "top up". */
|
|
25
22
|
export declare const insufficientCreditsError: z.ZodObject<{
|
|
26
23
|
error: z.ZodObject<{
|
|
27
24
|
code: z.ZodLiteral<"insufficient_credits">;
|
|
@@ -31,7 +28,6 @@ export declare const insufficientCreditsError: z.ZodObject<{
|
|
|
31
28
|
}, z.core.$strip>;
|
|
32
29
|
}, z.core.$strip>;
|
|
33
30
|
export type InsufficientCreditsError = z.infer<typeof insufficientCreditsError>;
|
|
34
|
-
/** The call's reserve is above the `max_credits` it was sent with (#942): nothing was reserved or started. */
|
|
35
31
|
export declare const maxCreditsExceededError: z.ZodObject<{
|
|
36
32
|
error: z.ZodObject<{
|
|
37
33
|
code: z.ZodLiteral<"max_credits_exceeded">;
|
|
@@ -45,8 +41,6 @@ export declare function maxCreditsExceededBody(args: {
|
|
|
45
41
|
holdCredits: number;
|
|
46
42
|
maxCredits: number;
|
|
47
43
|
}): MaxCreditsExceededError;
|
|
48
|
-
/** The account carries an unpaid debt. A separate code because an indebted account may */
|
|
49
|
-
/** still hold a balance, so "insufficient credits" would be false. Buying credits clears it. */
|
|
50
44
|
export declare const debtOutstandingError: z.ZodObject<{
|
|
51
45
|
error: z.ZodObject<{
|
|
52
46
|
code: z.ZodLiteral<"debt_outstanding">;
|
|
@@ -55,8 +49,6 @@ export declare const debtOutstandingError: z.ZodObject<{
|
|
|
55
49
|
}, z.core.$strip>;
|
|
56
50
|
}, z.core.$strip>;
|
|
57
51
|
export type DebtOutstandingError = z.infer<typeof debtOutstandingError>;
|
|
58
|
-
/** Account not admitted to the beta; money does not change that, so it has its own code. */
|
|
59
|
-
/** Terminal; the body names no timeline, since a revoked account answers the same way. */
|
|
60
52
|
export declare const accountNotAdmittedError: z.ZodObject<{
|
|
61
53
|
error: z.ZodObject<{
|
|
62
54
|
code: z.ZodLiteral<"account_not_admitted">;
|
|
@@ -64,18 +56,14 @@ export declare const accountNotAdmittedError: z.ZodObject<{
|
|
|
64
56
|
}, z.core.$strip>;
|
|
65
57
|
}, z.core.$strip>;
|
|
66
58
|
export type AccountNotAdmittedError = z.infer<typeof accountNotAdmittedError>;
|
|
67
|
-
/** Builds the "not enough credits" body. The wording lives here so every place that */
|
|
68
|
-
/** answers 402 explains the refusal the same way. */
|
|
69
59
|
export declare function insufficientCreditsBody(args: {
|
|
70
60
|
balanceCredits: number;
|
|
71
61
|
requiredCredits: number;
|
|
72
62
|
}): InsufficientCreditsError;
|
|
73
|
-
/** One "needs / has / short" sentence for the 402 refusal and the `quote` warning. */
|
|
74
63
|
export declare function creditsNeededSentence(args: {
|
|
75
64
|
balanceCredits: number;
|
|
76
65
|
requiredCredits: number;
|
|
77
66
|
}): string;
|
|
78
|
-
/** `quote` warning: `make_ugc` with the same input will get this refusal. */
|
|
79
67
|
export declare function insufficientCreditsWarning(args: {
|
|
80
68
|
balanceCredits: number;
|
|
81
69
|
requiredCredits: number;
|
|
@@ -84,14 +72,10 @@ export declare function debtOutstandingWarning(args: {
|
|
|
84
72
|
debtCredits: number;
|
|
85
73
|
}): string;
|
|
86
74
|
export declare function accountNotAdmittedWarning(): string;
|
|
87
|
-
/** Builds the "not admitted to the beta" body; see the wording rule above. */
|
|
88
75
|
export declare function accountNotAdmittedBody(): AccountNotAdmittedError;
|
|
89
|
-
/** Builds the "outstanding debt" body; see the wording rule above. */
|
|
90
76
|
export declare function debtOutstandingBody(args: {
|
|
91
77
|
debtCredits: number;
|
|
92
78
|
}): DebtOutstandingError;
|
|
93
|
-
/** The input holds a field the product rejects. `fields` names them: the agent cannot */
|
|
94
|
-
/** fix anything until it knows which one to drop. */
|
|
95
79
|
export declare const rejectedFieldError: z.ZodObject<{
|
|
96
80
|
error: z.ZodObject<{
|
|
97
81
|
code: z.ZodLiteral<"rejected_field">;
|
|
@@ -100,13 +84,10 @@ export declare const rejectedFieldError: z.ZodObject<{
|
|
|
100
84
|
}, z.core.$strip>;
|
|
101
85
|
}, z.core.$strip>;
|
|
102
86
|
export type RejectedFieldError = z.infer<typeof rejectedFieldError>;
|
|
103
|
-
/** Builds the "field rejected" body. The reason comes from the disposition registry. */
|
|
104
87
|
export declare function rejectedFieldBody(hits: readonly {
|
|
105
88
|
field: string;
|
|
106
89
|
message: string;
|
|
107
90
|
}[]): RejectedFieldError;
|
|
108
|
-
/** A key outside the contract. The schema strips such keys silently, so a misspelled */
|
|
109
|
-
/** `aspectRatio` became the 9:16 default without a trace; hence a refusal. */
|
|
110
91
|
export declare const unknownFieldError: z.ZodObject<{
|
|
111
92
|
error: z.ZodObject<{
|
|
112
93
|
code: z.ZodLiteral<"unknown_field">;
|
|
@@ -115,12 +96,10 @@ export declare const unknownFieldError: z.ZodObject<{
|
|
|
115
96
|
}, z.core.$strip>;
|
|
116
97
|
}, z.core.$strip>;
|
|
117
98
|
export type UnknownFieldError = z.infer<typeof unknownFieldError>;
|
|
118
|
-
/** Builds the "unknown key" body: each name, a suggestion and the accepted fields. */
|
|
119
99
|
export declare function unknownFieldBody(hits: readonly {
|
|
120
100
|
field: string;
|
|
121
101
|
suggestion?: string | undefined;
|
|
122
102
|
}[], acceptedFields: readonly string[]): UnknownFieldError;
|
|
123
|
-
/** Text arrived with lost bytes: a replacement character in a string leaf of the input. */
|
|
124
103
|
export declare const scriptEncodingLostError: z.ZodObject<{
|
|
125
104
|
error: z.ZodObject<{
|
|
126
105
|
code: z.ZodLiteral<"script_encoding_lost">;
|
|
@@ -129,13 +108,10 @@ export declare const scriptEncodingLostError: z.ZodObject<{
|
|
|
129
108
|
}, z.core.$strip>;
|
|
130
109
|
}, z.core.$strip>;
|
|
131
110
|
export type ScriptEncodingLostError = z.infer<typeof scriptEncodingLostError>;
|
|
132
|
-
/** Builds the "encoding lost" body. Takes BOTH numbers of the predicate, so the caller */
|
|
133
|
-
/** does not choose where the character count comes from. */
|
|
134
111
|
export declare function scriptEncodingLostBody(args: {
|
|
135
112
|
paths: readonly string[];
|
|
136
113
|
charCount: number;
|
|
137
114
|
}): ScriptEncodingLostError;
|
|
138
|
-
/** A save of a draft lost to a newer one: `version` is what is stored now, 0 when nothing is. */
|
|
139
115
|
export declare const editConflictError: z.ZodObject<{
|
|
140
116
|
error: z.ZodObject<{
|
|
141
117
|
code: z.ZodLiteral<"edit_conflict">;
|
|
@@ -144,12 +120,10 @@ export declare const editConflictError: z.ZodObject<{
|
|
|
144
120
|
}, z.core.$strip>;
|
|
145
121
|
}, z.core.$strip>;
|
|
146
122
|
export type EditConflictError = z.infer<typeof editConflictError>;
|
|
147
|
-
/** Builds the "the draft moved on" body. Nothing was stored. */
|
|
148
123
|
export declare function editConflictBody(args: {
|
|
149
124
|
baseVersion: number;
|
|
150
125
|
version: number;
|
|
151
126
|
}): EditConflictError;
|
|
152
|
-
/** The run has no draft to read or to save: `state` and `reason` are the ones its shots state. */
|
|
153
127
|
export declare const runNotEditableError: z.ZodObject<{
|
|
154
128
|
error: z.ZodObject<{
|
|
155
129
|
code: z.ZodLiteral<"run_not_editable">;
|
|
@@ -159,13 +133,11 @@ export declare const runNotEditableError: z.ZodObject<{
|
|
|
159
133
|
}, z.core.$strip>;
|
|
160
134
|
}, z.core.$strip>;
|
|
161
135
|
export type RunNotEditableError = z.infer<typeof runNotEditableError>;
|
|
162
|
-
/** Builds the "this run cannot be edited" body. Nothing was stored. */
|
|
163
136
|
export declare function runNotEditableBody(args: {
|
|
164
137
|
runId: string;
|
|
165
138
|
state: string;
|
|
166
139
|
reason: string | null;
|
|
167
140
|
}): RunNotEditableError;
|
|
168
|
-
/** Paid edits are closed: the flag is off, or a ceiling is not set yet. */
|
|
169
141
|
export declare const editingDisabledError: z.ZodObject<{
|
|
170
142
|
error: z.ZodObject<{
|
|
171
143
|
code: z.ZodLiteral<"editing_disabled">;
|
|
@@ -180,7 +152,6 @@ export type EditingDisabledError = z.infer<typeof editingDisabledError>;
|
|
|
180
152
|
export declare function editingDisabledBody(args: {
|
|
181
153
|
reason: EditingDisabledError["error"]["reason"];
|
|
182
154
|
}): EditingDisabledError;
|
|
183
|
-
/** A paid edit has no price: each seam still unset is named, and an empty list is a revision total of zero no rule allows. */
|
|
184
155
|
export declare const editingNotPricedError: z.ZodObject<{
|
|
185
156
|
error: z.ZodObject<{
|
|
186
157
|
code: z.ZodLiteral<"editing_not_priced">;
|
|
@@ -197,7 +168,6 @@ export type EditingNotPricedError = z.infer<typeof editingNotPricedError>;
|
|
|
197
168
|
export declare function editingNotPricedBody(args: {
|
|
198
169
|
seams: EditingNotPricedError["error"]["seams"];
|
|
199
170
|
}): EditingNotPricedError;
|
|
200
|
-
/** The document breaks the rules of the run it edits; `issues` are the validator's, in its order. */
|
|
201
171
|
export declare const editInvalidError: z.ZodObject<{
|
|
202
172
|
error: z.ZodObject<{
|
|
203
173
|
code: z.ZodLiteral<"edit_invalid">;
|
|
@@ -243,7 +213,6 @@ export type EditInvalidError = z.infer<typeof editInvalidError>;
|
|
|
243
213
|
export declare function editInvalidBody(args: {
|
|
244
214
|
issues: EditInvalidError["error"]["issues"];
|
|
245
215
|
}): EditInvalidError;
|
|
246
|
-
/** A root has as many revisions (or candidates) running, or failed and unfinished, as it may have; `run_ids` are the ones counted. */
|
|
247
216
|
export declare const editCeilingReachedError: z.ZodObject<{
|
|
248
217
|
error: z.ZodObject<{
|
|
249
218
|
code: z.ZodLiteral<"edit_ceiling_reached">;
|
|
@@ -261,22 +230,11 @@ export declare const editCeilingReachedError: z.ZodObject<{
|
|
|
261
230
|
}, z.core.$strip>;
|
|
262
231
|
export type EditCeilingReachedError = z.infer<typeof editCeilingReachedError>;
|
|
263
232
|
export declare function editCeilingReachedBody(args: Omit<EditCeilingReachedError["error"], "code" | "message">, counting?: "revision" | "candidate"): EditCeilingReachedError;
|
|
264
|
-
/** Keeps the tool description's promise ("refused before any charge"): an unusable */
|
|
265
|
-
/** source is refused, not estimated. */
|
|
266
233
|
export declare function unusableSourceMessage(errorClass: string, detail: string): string;
|
|
267
|
-
/** Says both "fix the input" and "a retry will not help": on a 500 agents re-sent bytes */
|
|
268
|
-
/** that would never parse. */
|
|
269
234
|
export declare const MALFORMED_BODY_MESSAGE: string;
|
|
270
|
-
/** Codes with a bare envelope, in one registry: the published list of error codes is */
|
|
271
|
-
/** declared exhaustive. */
|
|
272
235
|
declare const BARE_ERROR_CODES: readonly ["analysis_enqueue_failed", "aspect_conflict", "actor_unavailable", "actor_format_unavailable", "actor_storage_unavailable", "actor_generation_disabled", "actor_in_use", "asset_cap_exceeded", "asset_ingest_cap_exceeded", "asset_not_found", "asset_not_ready", "assets_disabled", "creator_profile_limited", "creator_profile_not_found", "creator_url_unsupported", "deletion_held", "editing_window_not_set", "explainer_busy", "feedback_limited", "film_draft_limited", "film_draft_not_found", "film_draft_stale", "film_run_not_found", "film_voice_not_ready", "generations_disabled", "generations_marking_pending", "idempotency_key_required", "idempotency_key_reused", "ingest_enqueue_failed", "insufficient_scope", "internal_error", "invalid_image", "invalid_request", "malformed_body", "no_changes", "not_found", "own_agent_disabled", "own_agent_marking_pending", "paid_render_disabled", "proposal_expired", "proposal_not_found", "proposal_not_ready", "proposal_stale", "payload_too_large", "reference_analysis_disabled", "reference_analysis_limited", "reference_analysis_not_found", "reference_not_analyzable", "reference_not_usable", "reference_url_unsupported", "revision_needs_generated_unit", "rights_not_confirmed", "run_media_in_use", "run_not_finished", "run_not_found", "source_aspect_mismatch", "source_not_usable", "trend_page_unavailable", "trend_search_limited", "trend_search_not_found", "trends_unavailable", "unauthorized", "unsupported_combination", "unsupported_media_type", "unusable_source", "upload_cap_exceeded", "upload_digest_mismatch", "upload_expired", "upload_in_use", "upload_not_finished", "upload_size_mismatch", "upstream_error", "url_fetch_busy", "url_fetch_failed", "url_fetch_rate_limited", "url_fetch_refused", "url_import_disabled"];
|
|
273
|
-
/** A refusal code whose body carries only `code` and `message`. */
|
|
274
236
|
export type BareApiErrorCode = (typeof BARE_ERROR_CODES)[number];
|
|
275
|
-
/** EVERY code the API can return: bare plus typed. Typed values come from their schemas, */
|
|
276
|
-
/** so a rename reaches here on its own. */
|
|
277
237
|
export declare const API_ERROR_CODES: readonly string[];
|
|
278
|
-
/** A bare refusal body. The only path to one: a code outside the registry does not */
|
|
279
|
-
/** compile, and an envelope built around this function fails the envelope guard test. */
|
|
280
238
|
export declare function apiErrorBody(args: {
|
|
281
239
|
code: BareApiErrorCode;
|
|
282
240
|
message: string;
|