@clipwright/core 0.59.0 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account-actors.d.ts +0 -43
- package/dist/account-actors.js +0 -55
- package/dist/account.d.ts +0 -6
- package/dist/account.js +0 -18
- package/dist/actor-bounds.d.ts +0 -5
- package/dist/actor-bounds.js +0 -6
- package/dist/actor-qualities.d.ts +0 -3
- package/dist/actor-qualities.js +0 -4
- package/dist/actors.d.ts +0 -16
- package/dist/actors.js +0 -21
- package/dist/ad-guide.js +0 -2
- package/dist/ad-pause-trim.d.ts +0 -5
- package/dist/ad-pause-trim.js +0 -8
- package/dist/api-failure.d.ts +0 -44
- package/dist/api-failure.js +0 -62
- package/dist/aspect.d.ts +0 -29
- package/dist/aspect.js +1 -34
- package/dist/asset-identity.d.ts +0 -2
- package/dist/asset-identity.js +0 -3
- package/dist/assets.d.ts +0 -34
- package/dist/assets.js +0 -42
- package/dist/billing-terms.d.ts +6 -3
- package/dist/billing-terms.js +0 -4
- package/dist/brand-styles.d.ts +0 -6
- package/dist/brand-styles.js +0 -13
- package/dist/broll-policy.js +0 -1
- package/dist/canvas-fit.d.ts +0 -2
- package/dist/canvas-fit.js +0 -4
- package/dist/caption-funnel.d.ts +0 -2
- package/dist/caption-funnel.js +0 -15
- package/dist/caption-geometry.d.ts +0 -6
- package/dist/caption-geometry.js +0 -10
- package/dist/caption-language.d.ts +0 -3
- package/dist/caption-language.js +0 -6
- package/dist/contract-dispositions.d.ts +0 -61
- package/dist/contract-dispositions.js +3 -96
- package/dist/contracts/v1/workflow-brief.d.ts +61 -3
- package/dist/contracts/v1/workflow-brief.js +0 -13
- package/dist/contracts/v1/workflow-catalog.d.ts +118 -0
- package/dist/contracts/v1/workflow-catalog.js +0 -3
- package/dist/contracts/v1/workflow-client.d.ts +116 -0
- package/dist/contracts/v1/workflow-client.js +0 -1
- package/dist/contracts/v1/workflow-dto.js +0 -1
- package/dist/contracts/v1/workflow-evidence.js +0 -1
- package/dist/contracts/v1/workflow-execution.d.ts +47 -1
- package/dist/contracts/v1/workflow-execution.js +0 -4
- package/dist/contracts/v1/workflow-next.d.ts +13 -2
- package/dist/contracts/v1/workflow-next.js +0 -3
- package/dist/contracts/v1/workflow-plan.d.ts +177 -0
- package/dist/contracts/v1/workflow-plan.js +0 -1
- package/dist/contracts/v1/workflow-primitives.d.ts +0 -1
- package/dist/contracts/v1/workflow-primitives.js +0 -2
- package/dist/contracts/v1/workflow-run-read.d.ts +15 -1
- package/dist/contracts/v1/workflow-run-read.js +0 -3
- package/dist/creator-profile.d.ts +0 -30
- package/dist/creator-profile.js +0 -45
- package/dist/default-actor.js +0 -2
- package/dist/design.d.ts +0 -17
- package/dist/design.js +0 -18
- package/dist/edit-billing.d.ts +0 -6
- package/dist/edit-billing.js +0 -10
- package/dist/edit-candidate.d.ts +0 -6
- package/dist/edit-candidate.js +0 -9
- package/dist/edit-document.d.ts +0 -12
- package/dist/edit-document.js +0 -15
- package/dist/edit-faceless.d.ts +0 -3
- package/dist/edit-faceless.js +0 -4
- package/dist/edit-long-form.d.ts +0 -13
- package/dist/edit-long-form.js +0 -17
- package/dist/edit-operations.d.ts +0 -1
- package/dist/edit-operations.js +0 -2
- package/dist/edit-primitives.d.ts +0 -3
- package/dist/edit-primitives.js +0 -5
- package/dist/edit-revision.d.ts +0 -4
- package/dist/edit-revision.js +0 -6
- package/dist/edit-rules.d.ts +0 -3
- package/dist/edit-rules.js +0 -9
- package/dist/edit-shots.d.ts +45 -5
- package/dist/edit-shots.js +7 -11
- package/dist/edit-validate.d.ts +0 -10
- package/dist/edit-validate.js +0 -14
- package/dist/edit.js +0 -3
- package/dist/endpoint-notes.d.ts +0 -2
- package/dist/endpoint-notes.js +0 -3
- package/dist/endpoints.d.ts +0 -11
- package/dist/endpoints.js +7 -21
- package/dist/errors.d.ts +0 -42
- package/dist/errors.js +0 -54
- package/dist/explainer-fit.d.ts +0 -7
- package/dist/explainer-fit.js +0 -10
- package/dist/face-billing.d.ts +29 -11
- package/dist/face-billing.js +6 -25
- package/dist/face-delivery.d.ts +0 -1
- package/dist/face-delivery.js +0 -2
- package/dist/faceless-action-shots.d.ts +0 -8
- package/dist/faceless-action-shots.js +0 -8
- package/dist/faceless-customer-anchors.d.ts +0 -1
- package/dist/faceless-customer-anchors.js +0 -2
- package/dist/faceless-cut-style.js +0 -1
- package/dist/faceless-direction-summary.d.ts +27 -0
- package/dist/faceless-direction-summary.js +8 -0
- package/dist/faceless-image-placement.d.ts +0 -2
- package/dist/faceless-image-placement.js +0 -3
- package/dist/faceless-image-qualification.js +0 -2
- package/dist/faceless-media-record.d.ts +0 -6
- package/dist/faceless-media-record.js +0 -11
- package/dist/faceless-price.d.ts +40 -35
- package/dist/faceless-price.js +35 -49
- package/dist/faceless-public-plan.d.ts +0 -13
- package/dist/faceless-public-plan.js +0 -11
- package/dist/faceless-public.d.ts +63 -22
- package/dist/faceless-public.js +23 -58
- package/dist/faceless-short-61.js +0 -1
- package/dist/faceless-storyboard-timing.js +0 -1
- package/dist/faceless-storyboard-v2-plan.js +0 -1
- package/dist/faceless-storyboard-v2-timing.d.ts +0 -4
- package/dist/faceless-storyboard-v2-timing.js +0 -3
- package/dist/faceless-storyboard-v2.js +0 -1
- package/dist/faceless-storyboard.js +0 -1
- package/dist/faceless-voices.d.ts +0 -16
- package/dist/faceless-voices.js +0 -18
- package/dist/feedback.d.ts +0 -4
- package/dist/feedback.js +0 -5
- package/dist/film-directions.d.ts +0 -2
- package/dist/film-directions.js +0 -7
- package/dist/film-drafts.d.ts +0 -8
- package/dist/film-drafts.js +0 -19
- package/dist/film-guide.d.ts +0 -3
- package/dist/film-guide.js +0 -6
- package/dist/film-styles.d.ts +0 -5
- package/dist/film-styles.js +0 -8
- package/dist/generation-shot.d.ts +0 -5
- package/dist/generation-shot.js +0 -8
- package/dist/generations-output.d.ts +0 -2
- package/dist/generations-output.js +0 -5
- package/dist/generations.d.ts +0 -22
- package/dist/generations.js +21 -44
- package/dist/idempotency.d.ts +1 -21
- package/dist/idempotency.js +8 -29
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -28
- package/dist/live-shot-kinds.d.ts +16 -25
- package/dist/live-shot-kinds.js +12 -28
- package/dist/long-form-pricing.d.ts +0 -5
- package/dist/long-form-pricing.js +0 -6
- package/dist/long-form-profile.d.ts +0 -3
- package/dist/long-form-profile.js +0 -4
- package/dist/long-form-revision.d.ts +0 -9
- package/dist/long-form-revision.js +0 -11
- package/dist/markdown-quote.d.ts +0 -2
- package/dist/markdown-quote.js +0 -3
- package/dist/mascots.d.ts +0 -5
- package/dist/mascots.js +0 -10
- package/dist/max-credits.d.ts +0 -1
- package/dist/max-credits.js +0 -2
- package/dist/mcp-ugc-descriptions.d.ts +0 -2
- package/dist/mcp-ugc-descriptions.js +1 -6
- package/dist/media-timebase.d.ts +0 -2
- package/dist/media-timebase.js +0 -6
- package/dist/motion-styles.d.ts +0 -8
- package/dist/motion-styles.js +0 -11
- package/dist/moves.d.ts +0 -7
- package/dist/moves.js +0 -9
- package/dist/music.d.ts +0 -5
- package/dist/music.js +2 -9
- package/dist/naming.d.ts +0 -3
- package/dist/naming.js +0 -19
- package/dist/openapi.d.ts +0 -13
- package/dist/openapi.js +6 -11
- package/dist/output-provenance.d.ts +0 -4
- package/dist/output-provenance.js +0 -5
- package/dist/own-agent-price.d.ts +19 -22
- package/dist/own-agent-price.js +30 -25
- package/dist/own-agent-runs.d.ts +111 -11
- package/dist/own-agent-runs.js +89 -24
- package/dist/pacing.d.ts +3 -15
- package/dist/pacing.js +18 -18
- package/dist/parts-pricing.d.ts +8 -24
- package/dist/parts-pricing.js +19 -30
- package/dist/post-text.d.ts +0 -2
- package/dist/post-text.js +0 -4
- package/dist/presenter-beats.d.ts +0 -10
- package/dist/presenter-beats.js +0 -14
- package/dist/presenter-matte.d.ts +0 -7
- package/dist/presenter-matte.js +0 -9
- package/dist/presenter-takes.d.ts +0 -3
- package/dist/presenter-takes.js +0 -8
- package/dist/prices.d.ts +2 -8
- package/dist/prices.js +13 -23
- package/dist/public-endpoints.d.ts +0 -11
- package/dist/public-endpoints.js +0 -14
- package/dist/public-responses.d.ts +0 -2
- package/dist/public-responses.js +0 -3
- package/dist/rate-limit.d.ts +0 -24
- package/dist/rate-limit.js +0 -29
- package/dist/reference-analysis.d.ts +57 -34
- package/dist/reference-analysis.js +0 -69
- package/dist/reference-bring.d.ts +33 -0
- package/dist/reference-bring.js +28 -0
- package/dist/reference-display.d.ts +0 -3
- package/dist/reference-display.js +37 -4
- package/dist/reference-kinds.d.ts +0 -4
- package/dist/reference-kinds.js +0 -6
- package/dist/reference-lyrics.d.ts +0 -6
- package/dist/reference-lyrics.js +0 -6
- package/dist/reference-profile.d.ts +270 -39
- package/dist/reference-profile.js +64 -50
- package/dist/reference-staging.d.ts +0 -10
- package/dist/reference-staging.js +0 -14
- package/dist/reference-text-spans.d.ts +0 -4
- package/dist/reference-text-spans.js +0 -7
- package/dist/reference-voice-over.d.ts +0 -6
- package/dist/reference-voice-over.js +0 -7
- package/dist/reference-voice.d.ts +0 -7
- package/dist/reference-voice.js +0 -12
- package/dist/render-backend.d.ts +0 -30
- package/dist/render-backend.js +0 -5
- package/dist/resolved-timeline.d.ts +4 -5
- package/dist/resolved-timeline.js +1 -31
- package/dist/run-media.d.ts +0 -1
- package/dist/run-media.js +0 -2
- package/dist/run-preflight.d.ts +0 -4
- package/dist/run-preflight.js +0 -11
- package/dist/run-static-warnings.d.ts +0 -8
- package/dist/run-static-warnings.js +0 -38
- package/dist/runs.d.ts +16 -32
- package/dist/runs.js +0 -50
- package/dist/scene-bible.d.ts +15 -7
- package/dist/scene-bible.js +15 -10
- package/dist/scene-graph.d.ts +0 -12
- package/dist/scene-graph.js +0 -24
- package/dist/scene-place.d.ts +0 -25
- package/dist/scene-place.js +0 -24
- package/dist/scene-proposal.d.ts +0 -3
- package/dist/scene-proposal.js +0 -9
- package/dist/script-integrity.d.ts +0 -6
- package/dist/script-integrity.js +0 -8
- package/dist/script-voice.d.ts +0 -7
- package/dist/script-voice.js +0 -16
- package/dist/semantic-inserts.d.ts +0 -7
- package/dist/semantic-inserts.js +0 -10
- package/dist/skill-theme-explainer.js +0 -5
- package/dist/skill-theme.d.ts +0 -13
- package/dist/skill-theme.js +0 -25
- package/dist/skills.d.ts +22 -86
- package/dist/skills.js +21 -167
- package/dist/speech-rhythm-contract.js +0 -1
- package/dist/speech-rhythm.d.ts +0 -4
- package/dist/speech-rhythm.js +0 -2
- package/dist/templates/backdrop.d.ts +0 -3
- package/dist/templates/backdrop.js +0 -5
- package/dist/templates/callout.d.ts +0 -4
- package/dist/templates/callout.js +0 -6
- package/dist/templates/chart.d.ts +0 -4
- package/dist/templates/chart.js +0 -6
- package/dist/templates/chat-window.d.ts +0 -8
- package/dist/templates/chat-window.js +0 -10
- package/dist/templates/checklist.d.ts +0 -3
- package/dist/templates/checklist.js +0 -6
- package/dist/templates/comment-cta.d.ts +0 -14
- package/dist/templates/comment-cta.js +0 -19
- package/dist/templates/compare.d.ts +0 -6
- package/dist/templates/compare.js +0 -7
- package/dist/templates/cover-story.d.ts +0 -1
- package/dist/templates/cover-story.js +0 -3
- package/dist/templates/end-card.d.ts +0 -2
- package/dist/templates/end-card.js +0 -3
- package/dist/templates/hand-title.d.ts +0 -5
- package/dist/templates/hand-title.js +0 -9
- package/dist/templates/index.d.ts +0 -57
- package/dist/templates/index.js +0 -60
- package/dist/templates/lower-third.d.ts +0 -4
- package/dist/templates/lower-third.js +0 -5
- package/dist/templates/notification.d.ts +0 -6
- package/dist/templates/notification.js +0 -7
- package/dist/templates/phone-call.d.ts +0 -2
- package/dist/templates/phone-call.js +0 -6
- package/dist/templates/phone-screen.d.ts +0 -5
- package/dist/templates/phone-screen.js +0 -7
- package/dist/templates/pointer-chips.d.ts +0 -4
- package/dist/templates/pointer-chips.js +0 -6
- package/dist/templates/progress.d.ts +0 -3
- package/dist/templates/progress.js +0 -5
- package/dist/templates/quote.d.ts +0 -3
- package/dist/templates/quote.js +0 -4
- package/dist/templates/race.d.ts +0 -5
- package/dist/templates/race.js +0 -7
- package/dist/templates/rating.d.ts +0 -3
- package/dist/templates/rating.js +0 -5
- package/dist/templates/series-frame.d.ts +0 -16
- package/dist/templates/series-frame.js +0 -19
- package/dist/templates/size.d.ts +0 -7
- package/dist/templates/size.js +0 -8
- package/dist/templates/slot.d.ts +0 -2
- package/dist/templates/slot.js +0 -2
- package/dist/templates/sounds.d.ts +0 -12
- package/dist/templates/sounds.js +0 -16
- package/dist/templates/stat.d.ts +0 -3
- package/dist/templates/stat.js +0 -5
- package/dist/templates/tag.d.ts +0 -3
- package/dist/templates/tag.js +0 -5
- package/dist/templates/terminal.d.ts +0 -6
- package/dist/templates/terminal.js +0 -8
- package/dist/templates/theme.d.ts +0 -7
- package/dist/templates/theme.js +0 -9
- package/dist/templates/title-card.d.ts +0 -3
- package/dist/templates/title-card.js +0 -5
- package/dist/templates/video-grid.d.ts +0 -5
- package/dist/templates/video-grid.js +0 -8
- package/dist/templates/word-fill.d.ts +0 -3
- package/dist/templates/word-fill.js +0 -4
- package/dist/templates/word-title.d.ts +0 -2
- package/dist/templates/word-title.js +0 -4
- package/dist/trend-niches.d.ts +0 -11
- package/dist/trend-niches.js +0 -16
- package/dist/trend-search.d.ts +0 -66
- package/dist/trend-search.js +0 -70
- package/dist/tts-backend.d.ts +0 -19
- package/dist/tts-backend.js +0 -7
- package/dist/ugc-call.d.ts +0 -16
- package/dist/ugc-call.js +0 -21
- package/dist/ugc-delivery.d.ts +0 -2
- package/dist/ugc-delivery.js +0 -4
- package/dist/ugc-framing.d.ts +0 -4
- package/dist/ugc-framing.js +0 -6
- package/dist/ugc-interview.d.ts +0 -18
- package/dist/ugc-interview.js +0 -24
- package/dist/ugc-layers.d.ts +0 -39
- package/dist/ugc-layers.js +0 -39
- package/dist/ugc-scenes.d.ts +0 -2
- package/dist/ugc-scenes.js +0 -5
- package/dist/ugc-video-media.d.ts +0 -5
- package/dist/ugc-video-media.js +0 -7
- package/dist/uploads.d.ts +1 -15
- package/dist/uploads.js +3 -20
- package/dist/vendor-response.d.ts +0 -19
- package/dist/vendor-response.js +0 -22
- package/dist/video-size.d.ts +0 -4
- package/dist/video-size.js +0 -7
- package/dist/voice-admission.d.ts +2 -11
- package/dist/voice-admission.js +0 -13
- package/dist/voice-catalog-data.d.ts +0 -2
- package/dist/voice-catalog-data.js +0 -3
- package/dist/voice-catalog.d.ts +0 -6
- package/dist/voice-catalog.js +0 -8
- package/dist/voice-listing.d.ts +0 -6
- package/dist/voice-listing.js +0 -14
- package/dist/voice-pace.d.ts +0 -4
- package/dist/voice-pace.js +0 -7
- package/dist/voice-preview-approval.js +0 -1
- package/dist/voices.d.ts +4 -69
- package/dist/voices.js +3 -88
- package/dist/workflows/catalog.d.ts +0 -2
- package/dist/workflows/catalog.js +0 -4
- package/dist/workflows/film-directions.d.ts +0 -3
- package/dist/workflows/film-directions.js +0 -4
- package/dist/workflows/index.js +0 -1
- package/dist/workflows/methods/faceless-explainer.d.ts +33 -0
- package/dist/workflows/methods/faceless-explainer.js +0 -1
- package/dist/workflows/methods/kinetic-launch.d.ts +66 -1
- package/dist/workflows/methods/kinetic-launch.js +0 -2
- package/dist/workflows/methods/product-image-story.d.ts +33 -0
- package/dist/workflows/methods/product-image-story.js +0 -1
- package/dist/workflows/methods/reference-remake.d.ts +33 -0
- package/dist/workflows/methods/reference-remake.js +0 -1
- package/dist/workflows/methods/shared.d.ts +33 -1
- package/dist/workflows/methods/shared.js +0 -3
- package/dist/workflows/methods/ugc-faq-answer.d.ts +33 -0
- package/dist/workflows/methods/ugc-faq-answer.js +0 -1
- package/dist/workflows/methods/ugc-product-intro.d.ts +33 -0
- package/dist/workflows/methods/ugc-product-intro.js +0 -1
- package/dist/workflows/methods/website-proof-demo.d.ts +66 -1
- package/dist/workflows/methods/website-proof-demo.js +0 -2
- package/dist/workflows/motion-director.d.ts +0 -11
- package/dist/workflows/motion-director.js +0 -11
- package/dist/workflows/product-references.js +0 -1
- package/dist/workflows/reference-remake.d.ts +114 -17
- package/dist/workflows/reference-remake.js +0 -167
- package/dist/workflows/remake-chooser.d.ts +0 -6
- package/dist/workflows/remake-chooser.js +0 -4
- package/dist/workflows/remake-motion.d.ts +0 -16
- package/dist/workflows/remake-motion.js +0 -19
- package/dist/workflows/validate.d.ts +0 -1
- package/dist/workflows/validate.js +0 -5
- package/dist/workflows.js +0 -1
- package/package.json +1 -1
- package/dist/account-actors.js.map +0 -1
- package/dist/account.js.map +0 -1
- package/dist/actor-bounds.js.map +0 -1
- package/dist/actor-qualities.js.map +0 -1
- package/dist/actors.js.map +0 -1
- package/dist/ad-guide.js.map +0 -1
- package/dist/ad-pause-trim.js.map +0 -1
- package/dist/api-failure.js.map +0 -1
- package/dist/aspect.js.map +0 -1
- package/dist/asset-identity.js.map +0 -1
- package/dist/assets.js.map +0 -1
- package/dist/billing-terms.js.map +0 -1
- package/dist/brand-styles.js.map +0 -1
- package/dist/broll-policy.js.map +0 -1
- package/dist/canvas-fit.js.map +0 -1
- package/dist/caption-funnel.js.map +0 -1
- package/dist/caption-geometry.js.map +0 -1
- package/dist/caption-language.js.map +0 -1
- package/dist/contract-dispositions.js.map +0 -1
- package/dist/contracts/v1/workflow-brief.js.map +0 -1
- package/dist/contracts/v1/workflow-catalog.js.map +0 -1
- package/dist/contracts/v1/workflow-client.js.map +0 -1
- package/dist/contracts/v1/workflow-dto.js.map +0 -1
- package/dist/contracts/v1/workflow-evidence.js.map +0 -1
- package/dist/contracts/v1/workflow-execution.js.map +0 -1
- package/dist/contracts/v1/workflow-next.js.map +0 -1
- package/dist/contracts/v1/workflow-plan.js.map +0 -1
- package/dist/contracts/v1/workflow-primitives.js.map +0 -1
- package/dist/contracts/v1/workflow-run-read.js.map +0 -1
- package/dist/creator-profile.js.map +0 -1
- package/dist/default-actor.js.map +0 -1
- package/dist/design.js.map +0 -1
- package/dist/edit-billing.js.map +0 -1
- package/dist/edit-candidate.js.map +0 -1
- package/dist/edit-document.js.map +0 -1
- package/dist/edit-faceless.js.map +0 -1
- package/dist/edit-long-form.js.map +0 -1
- package/dist/edit-operations.js.map +0 -1
- package/dist/edit-primitives.js.map +0 -1
- package/dist/edit-revision.js.map +0 -1
- package/dist/edit-rules.js.map +0 -1
- package/dist/edit-shots.js.map +0 -1
- package/dist/edit-validate.js.map +0 -1
- package/dist/edit.js.map +0 -1
- package/dist/endpoint-notes.js.map +0 -1
- package/dist/endpoints.js.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/explainer-fit.js.map +0 -1
- package/dist/face-billing.js.map +0 -1
- package/dist/face-delivery.js.map +0 -1
- package/dist/faceless-action-shots.js.map +0 -1
- package/dist/faceless-customer-anchors.js.map +0 -1
- package/dist/faceless-cut-style.js.map +0 -1
- package/dist/faceless-image-placement.js.map +0 -1
- package/dist/faceless-image-qualification.js.map +0 -1
- package/dist/faceless-media-record.js.map +0 -1
- package/dist/faceless-price.js.map +0 -1
- package/dist/faceless-public-plan.js.map +0 -1
- package/dist/faceless-public.js.map +0 -1
- package/dist/faceless-short-61.js.map +0 -1
- package/dist/faceless-storyboard-timing.js.map +0 -1
- package/dist/faceless-storyboard-v2-plan.js.map +0 -1
- package/dist/faceless-storyboard-v2-timing.js.map +0 -1
- package/dist/faceless-storyboard-v2.js.map +0 -1
- package/dist/faceless-storyboard.js.map +0 -1
- package/dist/faceless-voices.js.map +0 -1
- package/dist/feedback.js.map +0 -1
- package/dist/film-directions.js.map +0 -1
- package/dist/film-drafts.js.map +0 -1
- package/dist/film-guide.js.map +0 -1
- package/dist/film-styles.js.map +0 -1
- package/dist/generation-shot.js.map +0 -1
- package/dist/generations-output.js.map +0 -1
- package/dist/generations.js.map +0 -1
- package/dist/idempotency.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/live-shot-kinds.js.map +0 -1
- package/dist/long-form-pricing.js.map +0 -1
- package/dist/long-form-profile.js.map +0 -1
- package/dist/long-form-revision.js.map +0 -1
- package/dist/markdown-quote.js.map +0 -1
- package/dist/mascots.js.map +0 -1
- package/dist/max-credits.js.map +0 -1
- package/dist/mcp-ugc-descriptions.js.map +0 -1
- package/dist/media-timebase.js.map +0 -1
- package/dist/motion-styles.js.map +0 -1
- package/dist/moves.js.map +0 -1
- package/dist/music.js.map +0 -1
- package/dist/naming.js.map +0 -1
- package/dist/openapi.js.map +0 -1
- package/dist/output-provenance.js.map +0 -1
- package/dist/own-agent-price.js.map +0 -1
- package/dist/own-agent-runs.js.map +0 -1
- package/dist/pacing.js.map +0 -1
- package/dist/parts-pricing.js.map +0 -1
- package/dist/post-text.js.map +0 -1
- package/dist/presenter-beats.js.map +0 -1
- package/dist/presenter-matte.js.map +0 -1
- package/dist/presenter-takes.js.map +0 -1
- package/dist/prices.js.map +0 -1
- package/dist/public-endpoints.js.map +0 -1
- package/dist/public-responses.js.map +0 -1
- package/dist/rate-limit.js.map +0 -1
- package/dist/reference-analysis.js.map +0 -1
- package/dist/reference-display.js.map +0 -1
- package/dist/reference-kinds.js.map +0 -1
- package/dist/reference-lyrics.js.map +0 -1
- package/dist/reference-profile.js.map +0 -1
- package/dist/reference-staging.js.map +0 -1
- package/dist/reference-text-spans.js.map +0 -1
- package/dist/reference-voice-over.js.map +0 -1
- package/dist/reference-voice.js.map +0 -1
- package/dist/render-backend.js.map +0 -1
- package/dist/resolved-timeline.js.map +0 -1
- package/dist/run-media.js.map +0 -1
- package/dist/run-preflight.js.map +0 -1
- package/dist/run-static-warnings.js.map +0 -1
- package/dist/runs.js.map +0 -1
- package/dist/scene-bible.js.map +0 -1
- package/dist/scene-graph.js.map +0 -1
- package/dist/scene-place.js.map +0 -1
- package/dist/scene-proposal.js.map +0 -1
- package/dist/script-integrity.js.map +0 -1
- package/dist/script-voice.js.map +0 -1
- package/dist/semantic-inserts.js.map +0 -1
- package/dist/skill-theme-explainer.js.map +0 -1
- package/dist/skill-theme.js.map +0 -1
- package/dist/skills.js.map +0 -1
- package/dist/speech-rhythm-contract.js.map +0 -1
- package/dist/speech-rhythm.js.map +0 -1
- package/dist/templates/backdrop.js.map +0 -1
- package/dist/templates/callout.js.map +0 -1
- package/dist/templates/chart.js.map +0 -1
- package/dist/templates/chat-window.js.map +0 -1
- package/dist/templates/checklist.js.map +0 -1
- package/dist/templates/comment-cta.js.map +0 -1
- package/dist/templates/compare.js.map +0 -1
- package/dist/templates/cover-story.js.map +0 -1
- package/dist/templates/end-card.js.map +0 -1
- package/dist/templates/hand-title.js.map +0 -1
- package/dist/templates/index.js.map +0 -1
- package/dist/templates/lower-third.js.map +0 -1
- package/dist/templates/notification.js.map +0 -1
- package/dist/templates/phone-call.js.map +0 -1
- package/dist/templates/phone-screen.js.map +0 -1
- package/dist/templates/pointer-chips.js.map +0 -1
- package/dist/templates/progress.js.map +0 -1
- package/dist/templates/quote.js.map +0 -1
- package/dist/templates/race.js.map +0 -1
- package/dist/templates/rating.js.map +0 -1
- package/dist/templates/series-frame.js.map +0 -1
- package/dist/templates/size.js.map +0 -1
- package/dist/templates/slot.js.map +0 -1
- package/dist/templates/sounds.js.map +0 -1
- package/dist/templates/stat.js.map +0 -1
- package/dist/templates/tag.js.map +0 -1
- package/dist/templates/terminal.js.map +0 -1
- package/dist/templates/theme.js.map +0 -1
- package/dist/templates/title-card.js.map +0 -1
- package/dist/templates/video-grid.js.map +0 -1
- package/dist/templates/word-fill.js.map +0 -1
- package/dist/templates/word-title.js.map +0 -1
- package/dist/trend-niches.js.map +0 -1
- package/dist/trend-search.js.map +0 -1
- package/dist/tts-backend.js.map +0 -1
- package/dist/ugc-call.js.map +0 -1
- package/dist/ugc-delivery.js.map +0 -1
- package/dist/ugc-framing.js.map +0 -1
- package/dist/ugc-interview.js.map +0 -1
- package/dist/ugc-layers.js.map +0 -1
- package/dist/ugc-scenes.js.map +0 -1
- package/dist/ugc-video-media.js.map +0 -1
- package/dist/uploads.js.map +0 -1
- package/dist/vendor-response.js.map +0 -1
- package/dist/video-size.js.map +0 -1
- package/dist/voice-admission.js.map +0 -1
- package/dist/voice-catalog-data.js.map +0 -1
- package/dist/voice-catalog.js.map +0 -1
- package/dist/voice-listing.js.map +0 -1
- package/dist/voice-pace.js.map +0 -1
- package/dist/voice-preview-approval.js.map +0 -1
- package/dist/voices.js.map +0 -1
- package/dist/workflows/catalog.js.map +0 -1
- package/dist/workflows/film-directions.js.map +0 -1
- package/dist/workflows/index.js.map +0 -1
- package/dist/workflows/methods/faceless-explainer.js.map +0 -1
- package/dist/workflows/methods/kinetic-launch.js.map +0 -1
- package/dist/workflows/methods/product-image-story.js.map +0 -1
- package/dist/workflows/methods/reference-remake.js.map +0 -1
- package/dist/workflows/methods/shared.js.map +0 -1
- package/dist/workflows/methods/ugc-faq-answer.js.map +0 -1
- package/dist/workflows/methods/ugc-product-intro.js.map +0 -1
- package/dist/workflows/methods/website-proof-demo.js.map +0 -1
- package/dist/workflows/motion-director.js.map +0 -1
- package/dist/workflows/product-references.js.map +0 -1
- package/dist/workflows/reference-remake.js.map +0 -1
- package/dist/workflows/remake-chooser.js.map +0 -1
- package/dist/workflows/remake-motion.js.map +0 -1
- package/dist/workflows/validate.js.map +0 -1
- package/dist/workflows.js.map +0 -1
package/dist/prices.js
CHANGED
|
@@ -11,11 +11,9 @@ import { REFERENCE_ANALYSIS_CREDITS, REFERENCE_DATA_CREDITS } from "./reference-
|
|
|
11
11
|
import { CREATOR_PROFILE_CREDITS, CREATOR_PROFILE_VIDEOS } from "./creator-profile.js";
|
|
12
12
|
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_REELS, } from "./trend-search.js";
|
|
13
13
|
import { isMusicEnabled, MUSIC_BED_CREDITS } from "./music.js";
|
|
14
|
-
import { isOwnAgentEnabled, OWN_FILM_EXTRA_SECOND_CREDITS, OWN_FILM_INCLUDED_SECONDS, OWN_FILM_RENDER_CREDITS, OWN_HERO_POSE_CREDITS, OWN_HERO_POSES, OWN_FREE_STILLS, OWN_FREE_STILLS_WINDOW_HOURS, OWN_STILL_CREDITS, OWN_STILLS_MAX_PER_CALL, OWN_VOICE_CREDITS_PER_SECOND } from "./own-agent-price.js";
|
|
15
|
-
/** The public price list (#927): every number is read from the constant billing charges by, never typed here. */
|
|
14
|
+
import { isOwnAgentEnabled, OWN_FILM_EXTRA_SECOND_CREDITS, OWN_FILM_INCLUDED_SECONDS, OWN_FILM_RENDER_CREDITS, OWN_HERO_POSE_CREDITS, OWN_HERO_POSES, OWN_FREE_STILLS, OWN_FREE_STILLS_WINDOW_HOURS, OWN_STILL_CREDITS, OWN_STILLS_MAX_PER_CALL, OWN_VOICE_CREDITS_PER_SECOND, OWN_EDIT_CREDITS, OWN_EDIT_MAX_SECONDS, OWN_TAKE_CHECK_CREDITS } from "./own-agent-price.js";
|
|
16
15
|
export const PRICES_PATH = "/v1/public/prices";
|
|
17
16
|
export const PRICE_UNITS = ["call", "second", "face_second", "image", "clip", "clip_second", "still", "scene", "track"];
|
|
18
|
-
/** One part of a price: credits per unit. A price of several parts adds them, then applies the entry's minimum. */
|
|
19
17
|
export const priceEntryLine = z.strictObject({
|
|
20
18
|
label: z.string().min(1).nullable(),
|
|
21
19
|
unit: z.enum(PRICE_UNITS),
|
|
@@ -24,10 +22,8 @@ export const priceEntryLine = z.strictObject({
|
|
|
24
22
|
export const priceEntry = z.strictObject({
|
|
25
23
|
action: z.string().min(1),
|
|
26
24
|
tool: z.string().min(1).nullable(),
|
|
27
|
-
/** The REST route as `endpointLabel` writes it. */
|
|
28
25
|
route: z.string().min(1).nullable(),
|
|
29
26
|
variant: z.string().min(1).nullable(),
|
|
30
|
-
/** Empty when the price is a formula the parts cannot state. */
|
|
31
27
|
lines: z.array(priceEntryLine),
|
|
32
28
|
formula: z.string().min(1).nullable(),
|
|
33
29
|
minimum_credits: z.number().int().positive().nullable(),
|
|
@@ -35,14 +31,12 @@ export const priceEntry = z.strictObject({
|
|
|
35
31
|
notes: z.string().min(1).nullable(),
|
|
36
32
|
}).refine((entry) => entry.lines.length > 0 || entry.formula !== null, "an entry states lines or a formula");
|
|
37
33
|
export const pricesResponse = z.strictObject({ prices: z.array(priceEntry).min(1) });
|
|
38
|
-
/** What a client reads: a unit or a field it does not know yet must not break it. */
|
|
39
34
|
export const pricesResponseRead = z.looseObject({ prices: z.array(z.looseObject({
|
|
40
35
|
action: z.string().min(1), tool: z.string().nullable(), route: z.string().nullable(), variant: z.string().nullable(),
|
|
41
36
|
lines: z.array(z.looseObject({ label: z.string().nullable(), unit: z.string().min(1), credits: z.number().int().nonnegative() })),
|
|
42
37
|
formula: z.string().nullable(), minimum_credits: z.number().int().positive().nullable(), quote_tool: z.string().nullable(),
|
|
43
38
|
notes: z.string().nullable(),
|
|
44
39
|
})) });
|
|
45
|
-
/** Whether calling the entry's action may cost credits. */
|
|
46
40
|
export const isPaidEntry = (entry) => entry.formula !== null || entry.lines.some((line) => line.credits > 0);
|
|
47
41
|
const paid = (entry) => ({
|
|
48
42
|
action: entry.variant === undefined ? entry.tool : `${entry.tool} (${entry.variant})`,
|
|
@@ -51,7 +45,7 @@ const paid = (entry) => ({
|
|
|
51
45
|
formula: "formula" in entry ? entry.formula : null,
|
|
52
46
|
minimum_credits: entry.minimum_credits ?? null, quote_tool: entry.quote_tool, notes: entry.notes ?? null,
|
|
53
47
|
});
|
|
54
|
-
|
|
48
|
+
export const FREE_RUN_ROUTES = new Set(["POST /v1/take-frames"]);
|
|
55
49
|
const FREE_TOOLS = {
|
|
56
50
|
list_prices: `GET ${PRICES_PATH}`,
|
|
57
51
|
get_account: "GET /v1/account",
|
|
@@ -123,6 +117,17 @@ function generationEntries() {
|
|
|
123
117
|
});
|
|
124
118
|
});
|
|
125
119
|
}
|
|
120
|
+
export const AD_DIY_PRICES = Object.freeze([
|
|
121
|
+
paid({ tool: "render_edit", route: "POST /v1/film-edits", quote_tool: "quote_edit", unit: "call", credits: OWN_EDIT_CREDITS,
|
|
122
|
+
notes: `One cut of your own clips with your voice and captions, up to ${OWN_EDIT_MAX_SECONDS} s, vertical 720p. Charged only for a ` +
|
|
123
|
+
"delivered cut; an edit that fails costs nothing." }),
|
|
124
|
+
paid({ tool: "check_take", route: "POST /v1/take-checks", quote_tool: "quote_take_check", unit: "call", credits: OWN_TAKE_CHECK_CREDITS,
|
|
125
|
+
notes: "One of your clips judged frame by frame against the prompt it was made with: each defect with its seconds and how to repair " +
|
|
126
|
+
"it, and the clean windows. Charged only for a delivered verdict; a check that fails costs nothing." }),
|
|
127
|
+
{ action: "take_frames", tool: "take_frames", route: "POST /v1/take-frames", variant: null, lines: [{ label: null, unit: "call", credits: 0 }],
|
|
128
|
+
formula: null, minimum_credits: null, quote_tool: null,
|
|
129
|
+
notes: "Free: one of your clips as contact sheets, each frame labelled with its second, up to 96 frames a call." },
|
|
130
|
+
]);
|
|
126
131
|
function buildPriceList(liveShots, scenes, facelessShots = false, facelessScenes = false, music = false, explainer = false, ownAgent = false) {
|
|
127
132
|
const unit = EDIT_UNIT_PRICES;
|
|
128
133
|
const parts = PARTS_FACE_TARIFF;
|
|
@@ -131,15 +136,11 @@ function buildPriceList(liveShots, scenes, facelessShots = false, facelessScenes
|
|
|
131
136
|
...PRESENTER_ENGINES.map((engine) => paid({ tool: "make_ugc", route: "POST /v1/skills/make_ugc/run",
|
|
132
137
|
variant: engine === "heygen" ? "HeyGen presenter" : "OmniHuman presenter", quote_tool: "quote_ugc", minimum_credits: parts.minimumCredits,
|
|
133
138
|
lines: [{ label: PRESENTER_ENGINE_LABELS[engine], unit: "face_second", credits: parts.presenterCreditsPerSecond[engine] },
|
|
134
|
-
// Live shots are sold only while they can be ordered (#1103).
|
|
135
|
-
// Each engine the listed tariff prices; the Omni shot is listed with its tariff (#1535).
|
|
136
139
|
...(liveShots ? SHOT_ENGINES.flatMap((shot) => shotRates[shot] === undefined ? []
|
|
137
140
|
: [{ label: SHOT_ENGINE_LABELS[shot], unit: "face_second", credits: shotRates[shot] }]) : []),
|
|
138
141
|
{ label: "production (voice and render)", unit: "second", credits: parts.productionCreditsPerSecond },
|
|
139
142
|
{ label: "live avatar on a call", unit: "still", credits: parts.liveAvatarStillCredits },
|
|
140
|
-
// Scenes are sold only while they can be ordered (#1107).
|
|
141
143
|
...(scenes ? [{ label: "scene made for the video", unit: "scene", credits: SCENE_CREDITS }] : []),
|
|
142
|
-
// Music is sold only while it can be ordered (#1063, #1215).
|
|
143
144
|
...(music ? [{ label: "music under the voice", unit: "track", credits: MUSIC_BED_CREDITS }] : [])],
|
|
144
145
|
notes: "Short and long videos alike. Presenter seconds are the seconds a presenter take fills, covered by an insert, overlay, " +
|
|
145
146
|
"window or template or not, counted once over the video and rounded up; the engine that renders each take sets its rate " +
|
|
@@ -172,10 +173,8 @@ function buildPriceList(liveShots, scenes, facelessShots = false, facelessScenes
|
|
|
172
173
|
lines: [{ label: "generated picture", unit: "image", credits: FACELESS_IMAGE_CREDITS },
|
|
173
174
|
{ label: "opening clip", unit: "clip", credits: FACELESS_OPENER_CREDITS },
|
|
174
175
|
{ label: "production (story, voice and render)", unit: "second", credits: FACELESS_CREDITS_PER_1500_FRAMES / 60 },
|
|
175
|
-
// Action shots and scenes are sold only while they can be ordered (#1113).
|
|
176
176
|
...(facelessShots ? [{ label: "action shot", unit: "clip_second", credits: FACELESS_SHOT_CREDITS_PER_SECOND }] : []),
|
|
177
177
|
...(facelessScenes ? [{ label: "scene made for the video", unit: "scene", credits: SCENE_CREDITS }] : []),
|
|
178
|
-
// Music is sold only while it can be ordered (#1063).
|
|
179
178
|
...(music ? [{ label: "music under the voice", unit: "track", credits: MUSIC_BED_CREDITS }] : [])],
|
|
180
179
|
minimum_credits: FACELESS_MIN_BASE_CREDITS,
|
|
181
180
|
notes: `Pictures we generated for the delivered video and its seconds, never above the selected length. The quote is the most a ` +
|
|
@@ -183,7 +182,6 @@ function buildPriceList(liveShots, scenes, facelessShots = false, facelessScenes
|
|
|
183
182
|
`${FACELESS_MIN_SELECTED_SECONDS} s, ${facelessAt(FACELESS_MAX_SELECTED_SECONDS)} for ${FACELESS_MAX_SELECTED_SECONDS} s. ` +
|
|
184
183
|
"Captions do not change the price." +
|
|
185
184
|
(music ? " Music is added only when you ask for it and charged only when the delivered video carries it." : "") }),
|
|
186
|
-
// The explainer format (#1216) is sold only while it can be ordered, one entry a level (#1291 F4).
|
|
187
185
|
...(explainer ? EXPLAINER_TIERS.map(tier => paid({ tool: "make_faceless", route: "POST /v1/skills/make_faceless/run", quote_tool: "quote_faceless",
|
|
188
186
|
variant: `explainer ${tier}`,
|
|
189
187
|
lines: [{ label: `film up to ${EXPLAINER_FILM_INCLUDED_SECONDS} s`, unit: "call", credits: SKILL_FILM_TARIFFS[EXPLAINER_TIER_TARIFFS[tier]].filmCredits },
|
|
@@ -193,7 +191,6 @@ function buildPriceList(liveShots, scenes, facelessShots = false, facelessScenes
|
|
|
193
191
|
"delivered, by its length. A mascot is the hero for free; a character you name, or one we draw to fit the script, adds its " +
|
|
194
192
|
`${FACELESS_EXPLAINER_POSE_PICTURES} pose pictures, ${FACELESS_IMAGE_CREDITS} credits each for the pictures made, charged only with a ` +
|
|
195
193
|
"delivered video." })) : []),
|
|
196
|
-
// The «own agent» film runs (#1337) are sold only while the mode is offered.
|
|
197
194
|
...(ownAgent ? [
|
|
198
195
|
paid({ tool: "preview_stills", route: "POST /v1/film-stills", quote_tool: "quote_stills", unit: "still", credits: OWN_STILL_CREDITS,
|
|
199
196
|
notes: `Up to ${OWN_STILLS_MAX_PER_CALL} stills of a film draft per call. The first ${OWN_FREE_STILLS} stills drawn of each draft in any ` +
|
|
@@ -234,7 +231,6 @@ function buildPriceList(liveShots, scenes, facelessShots = false, facelessScenes
|
|
|
234
231
|
lines: [{ label: null, unit: "call", credits: 0 }], formula: null, minimum_credits: null, quote_tool: null, notes: null })),
|
|
235
232
|
];
|
|
236
233
|
}
|
|
237
|
-
/** The price list as the given environment sells it: live-shot and scene lines only while their switches are on. */
|
|
238
234
|
export function priceListFor(env) {
|
|
239
235
|
const longForm = env.CLIPWRIGHT_LONG_FORM_QUALIFICATION === "1" && env.CLIPWRIGHT_COMPOSE === "1" && env.CLIPWRIGHT_REMOTE_FETCH === "1";
|
|
240
236
|
const liveShots = env.CLIPWRIGHT_LIVE_SHOTS === "1" && longForm, scenes = env.CLIPWRIGHT_SCENES === "1" && longForm;
|
|
@@ -245,13 +241,10 @@ const UNIT_TEXT = {
|
|
|
245
241
|
call: "call", second: "second of video", face_second: "second the presenter is in the video, covered or not", image: "image", clip: "clip",
|
|
246
242
|
clip_second: "second of clip", still: "call still in the video", scene: "scene drawn in the video", track: "music track in the video",
|
|
247
243
|
};
|
|
248
|
-
/** Past this many one-line prices of one unit, the sentence names their range and list_prices names each. */
|
|
249
244
|
const LISTED_PRICES = 4;
|
|
250
|
-
/** One entry's price in words: its lines added up and its minimum, or its formula. */
|
|
251
245
|
export const priceText = (entry) => entry.lines.length === 0 ? entry.formula ?? "" :
|
|
252
246
|
entry.lines.map(lineText).join(" plus ") + (entry.minimum_credits === null ? "" : `, at least ${entry.minimum_credits}`);
|
|
253
247
|
const lineText = (line) => `${line.label === null ? "" : `${line.label} `}${line.credits} credits per ${UNIT_TEXT[line.unit]}`;
|
|
254
|
-
/** The price sentence a billed tool's description ends with; `null` for a free tool. */
|
|
255
248
|
export function priceLine(tool, list = PRICE_LIST) {
|
|
256
249
|
const entries = list.filter((entry) => entry.tool === tool && isPaidEntry(entry));
|
|
257
250
|
const [first] = entries;
|
|
@@ -260,7 +253,6 @@ export function priceLine(tool, list = PRICE_LIST) {
|
|
|
260
253
|
const unit = first.lines[0]?.unit;
|
|
261
254
|
const single = entries.flatMap((entry) => (entry.formula === null && entry.lines.length === 1 && entry.lines[0].unit === unit
|
|
262
255
|
? [entry.lines[0].credits] : []));
|
|
263
|
-
// Variants that differ only in their first line say the shared rest once (tools/list has a byte ceiling, #1122).
|
|
264
256
|
const rest = (entry) => JSON.stringify([entry.lines.slice(1), entry.minimum_credits]);
|
|
265
257
|
const shared = entries.length > 1 && entries.every((entry) => entry.formula === null && entry.lines.length > 1 && rest(entry) === rest(first));
|
|
266
258
|
const text = unit !== undefined && single.length === entries.length && single.length > LISTED_PRICES
|
|
@@ -271,11 +263,9 @@ export function priceLine(tool, list = PRICE_LIST) {
|
|
|
271
263
|
: entries.map((entry) => `${entry.variant === null ? "" : `${entry.variant}: `}${priceText(entry)}`).join("; ");
|
|
272
264
|
return `Price: ${text}. Quote first with ${first.quote_tool}.`;
|
|
273
265
|
}
|
|
274
|
-
/** A billed tool's description with its price line at the end. */
|
|
275
266
|
export const withPriceLine = (tool, description, list = PRICE_LIST) => {
|
|
276
267
|
const line = priceLine(tool, list);
|
|
277
268
|
if (line === null)
|
|
278
269
|
throw new Error(`${tool} has no price in PRICE_LIST`);
|
|
279
270
|
return `${description} ${line}`;
|
|
280
271
|
};
|
|
281
|
-
//# sourceMappingURL=prices.js.map
|
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
/** Public product addresses, one constant for everyone: the client and the landing page */
|
|
2
|
-
/** must name the same address. */
|
|
3
|
-
/** Our own domain; the platform-generated address still answers and is not retired. */
|
|
4
1
|
export declare const PUBLIC_API_BASE_URL = "https://api.clipwright.io";
|
|
5
|
-
/** The dashboard; paths are appended to it. NOT `APP_ORIGIN`, which comes from the environment. */
|
|
6
2
|
export declare const PUBLIC_APP_BASE_URL = "https://app.clipwright.io";
|
|
7
|
-
/** The public site: the landing page and the pages a customer shares. */
|
|
8
3
|
export declare const PUBLIC_SITE_BASE_URL = "https://clipwright.io";
|
|
9
|
-
/** The hosted MCP server; the `@clipwright/mcp-server` README names the same address. */
|
|
10
4
|
export declare const PUBLIC_MCP_URL = "https://mcp.clipwright.io/mcp";
|
|
11
|
-
/** npm packages the product is called through. The landing page, `--help` and docs print */
|
|
12
|
-
/** these names, so they are contract, not page copy. */
|
|
13
5
|
export declare const CLI_PACKAGE = "@clipwright/cli";
|
|
14
6
|
export declare const CLI_BIN = "clipwright";
|
|
15
7
|
export declare const MCP_PACKAGE = "@clipwright/mcp-server";
|
|
16
8
|
export declare const SDK_PACKAGE = "@clipwright/sdk";
|
|
17
|
-
/** Node major from the client packages' `engines`; the quickstart names it. */
|
|
18
9
|
export declare const NODE_MIN_MAJOR = 20;
|
|
19
|
-
/** API address FROM THE ENVIRONMENT, `https:` only: `Authorization: Bearer cw_…` goes there. */
|
|
20
|
-
/** An embedder's programmatic `baseUrl` is left alone; the code's author chooses it. */
|
|
21
10
|
export declare function apiBaseUrlFromEnv(raw: string | undefined): string | undefined;
|
package/dist/public-endpoints.js
CHANGED
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
/** Public product addresses, one constant for everyone: the client and the landing page */
|
|
2
|
-
/** must name the same address. */
|
|
3
|
-
/** Our own domain; the platform-generated address still answers and is not retired. */
|
|
4
1
|
export const PUBLIC_API_BASE_URL = "https://api.clipwright.io";
|
|
5
|
-
/** The dashboard; paths are appended to it. NOT `APP_ORIGIN`, which comes from the environment. */
|
|
6
2
|
export const PUBLIC_APP_BASE_URL = "https://app.clipwright.io";
|
|
7
|
-
/** The public site: the landing page and the pages a customer shares. */
|
|
8
3
|
export const PUBLIC_SITE_BASE_URL = "https://clipwright.io";
|
|
9
|
-
/** The hosted MCP server; the `@clipwright/mcp-server` README names the same address. */
|
|
10
4
|
export const PUBLIC_MCP_URL = "https://mcp.clipwright.io/mcp";
|
|
11
|
-
/** npm packages the product is called through. The landing page, `--help` and docs print */
|
|
12
|
-
/** these names, so they are contract, not page copy. */
|
|
13
5
|
export const CLI_PACKAGE = "@clipwright/cli";
|
|
14
6
|
export const CLI_BIN = "clipwright";
|
|
15
7
|
export const MCP_PACKAGE = "@clipwright/mcp-server";
|
|
16
8
|
export const SDK_PACKAGE = "@clipwright/sdk";
|
|
17
|
-
/** Node major from the client packages' `engines`; the quickstart names it. */
|
|
18
9
|
export const NODE_MIN_MAJOR = 20;
|
|
19
|
-
/** Loopback names are the only ones allowed `http:`: a local API goes nowhere, and */
|
|
20
|
-
/** requiring a certificate there would forbid development. */
|
|
21
10
|
const LOOPBACK_HOSTS = new Set(["localhost", "127.0.0.1", "[::1]", "::1"]);
|
|
22
|
-
/** API address FROM THE ENVIRONMENT, `https:` only: `Authorization: Bearer cw_…` goes there. */
|
|
23
|
-
/** An embedder's programmatic `baseUrl` is left alone; the code's author chooses it. */
|
|
24
11
|
export function apiBaseUrlFromEnv(raw) {
|
|
25
12
|
if (raw === undefined || raw === "")
|
|
26
13
|
return undefined;
|
|
@@ -38,4 +25,3 @@ export function apiBaseUrlFromEnv(raw) {
|
|
|
38
25
|
throw new Error(`CLIPWRIGHT_API_URL must be https (loopback may be http), got ${url.protocol}//${url.hostname}. ` +
|
|
39
26
|
"The api key travels in the Authorization header of every request to it.");
|
|
40
27
|
}
|
|
41
|
-
//# sourceMappingURL=public-endpoints.js.map
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** `GET /health`: the API process answers. */
|
|
3
2
|
export declare const healthResponse: z.ZodObject<{
|
|
4
3
|
ok: z.ZodLiteral<true>;
|
|
5
4
|
}, z.core.$strict>;
|
|
6
|
-
/** `GET /v1/public/skills`: the skills open right now, without a key; a closed skill is absent. */
|
|
7
5
|
export declare const publicSkillsResponse: z.ZodObject<{
|
|
8
6
|
skills: z.ZodArray<z.ZodObject<{
|
|
9
7
|
slug: z.ZodEnum<{
|
package/dist/public-responses.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { SKILLS } from "./skills.js";
|
|
3
|
-
/** `GET /health`: the API process answers. */
|
|
4
3
|
export const healthResponse = z.strictObject({ ok: z.literal(true) });
|
|
5
|
-
/** `GET /v1/public/skills`: the skills open right now, without a key; a closed skill is absent. */
|
|
6
4
|
export const publicSkillsResponse = z.strictObject({
|
|
7
5
|
skills: z.array(z.strictObject({
|
|
8
6
|
slug: z.enum(SKILLS), name: z.string().min(1), version: z.string().min(1), description: z.string().min(1),
|
|
9
7
|
})),
|
|
10
8
|
});
|
|
11
|
-
//# sourceMappingURL=public-responses.js.map
|
package/dist/rate-limit.d.ts
CHANGED
|
@@ -1,30 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** Header with the bucket size: how many requests the window allows in total. */
|
|
3
2
|
export declare const RATE_LIMIT_LIMIT_HEADER = "X-RateLimit-Limit";
|
|
4
|
-
/** How many requests remain in the current window. Zero is a legal value. */
|
|
5
3
|
export declare const RATE_LIMIT_REMAINING_HEADER = "X-RateLimit-Remaining";
|
|
6
|
-
/** SECONDS until the remainder grows by at least one: a delta, not Unix time, so client */
|
|
7
|
-
/** clock skew does not matter, matching `Retry-After`. The window slides; it never resets. */
|
|
8
4
|
export declare const RATE_LIMIT_RESET_HEADER = "X-RateLimit-Reset";
|
|
9
|
-
/** Standard `Retry-After` (RFC 9110), in seconds. Only on 429. */
|
|
10
5
|
export declare const RETRY_AFTER_HEADER = "Retry-After";
|
|
11
|
-
/** Window length, shared by both buckets: "per minute" is what is published. */
|
|
12
6
|
export declare const RATE_LIMIT_WINDOW_SECONDS = 60;
|
|
13
|
-
/** PAID bucket: 60 requests per minute, the published figure. */
|
|
14
7
|
export declare const RATE_LIMIT_PAID_PER_MINUTE = 60;
|
|
15
|
-
/** FREE bucket: 300 per minute, counted separately so run polling (~12/min per run, three */
|
|
16
|
-
/** runs at once) never starves paid calls. A ceiling: a looping client hits it in seconds. */
|
|
17
8
|
export declare const RATE_LIMIT_FREE_PER_MINUTE = 300;
|
|
18
|
-
/** Concurrent presenter renders per account: 3. Excess runs are queued (202), not refused, so agents */
|
|
19
|
-
/** need no scheduler of their own. A run may also wait behind other accounts: our service caps each line as a whole. */
|
|
20
9
|
export declare const MAX_CONCURRENT_RENDERS_PER_ACCOUNT = 3;
|
|
21
|
-
/** Concurrent faceless videos per account: 2, queued the same way. */
|
|
22
10
|
export declare const MAX_CONCURRENT_FACELESS_PER_ACCOUNT = 2;
|
|
23
|
-
/** The bucket: also the counter axis in the DB and the `bucket` column value. It lives here */
|
|
24
|
-
/** because the client-facing message names it. */
|
|
25
11
|
export type RateLimitScope = "paid" | "free";
|
|
26
|
-
/** 429 body. The numbers sit INSIDE `error`, like the money refusals in `errors.ts`: an */
|
|
27
|
-
/** error response has one envelope. */
|
|
28
12
|
export declare const rateLimitedError: z.ZodObject<{
|
|
29
13
|
error: z.ZodObject<{
|
|
30
14
|
code: z.ZodLiteral<"rate_limited">;
|
|
@@ -35,26 +19,18 @@ export declare const rateLimitedError: z.ZodObject<{
|
|
|
35
19
|
}, z.core.$strip>;
|
|
36
20
|
}, z.core.$strip>;
|
|
37
21
|
export type RateLimitedError = z.infer<typeof rateLimitedError>;
|
|
38
|
-
/** Builds the "too many requests" body. The message NAMES the bucket, so an agent hitting */
|
|
39
|
-
/** the paid limit does not stop polling runs it already started. */
|
|
40
22
|
export declare function rateLimitedBody(args: {
|
|
41
23
|
limit: number;
|
|
42
24
|
windowSeconds: number;
|
|
43
25
|
retryAfterSeconds: number;
|
|
44
26
|
scope: RateLimitScope;
|
|
45
|
-
/** Whether the refused request was ADDRESSED to run creation; only the caller knows. The */
|
|
46
|
-
/** "second paid render" advice appears only then. "Addressed", since later checks may still refuse. */
|
|
47
27
|
targetsRunCreation?: boolean;
|
|
48
28
|
}): RateLimitedError;
|
|
49
|
-
/** "Too many failed authentication attempts" in the same 429 shape, so clients parse it with */
|
|
50
|
-
/** one schema. Only the message differs: the caller has no account, so no idempotency advice. */
|
|
51
29
|
export declare function authThrottledBody(args: {
|
|
52
30
|
limit: number;
|
|
53
31
|
windowSeconds: number;
|
|
54
32
|
retryAfterSeconds: number;
|
|
55
33
|
}): RateLimitedError;
|
|
56
|
-
/** Per-account `create_actor` limits over a sliding day. Creations count runs of any */
|
|
57
|
-
/** outcome; refusals and unusable portraits count as well. */
|
|
58
34
|
export declare const ACTOR_LIMIT_WINDOW_SECONDS = 86400;
|
|
59
35
|
export declare const ACTOR_LIMIT_KINDS: readonly ["creations", "prompt_refusals", "unusable_portraits"];
|
|
60
36
|
export type ActorLimitKind = (typeof ACTOR_LIMIT_KINDS)[number];
|
package/dist/rate-limit.js
CHANGED
|
@@ -1,50 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
// Rate-limit body shape, header names and limits in one home: REST, SDK and MCP take them
|
|
3
|
-
// from here, since a header name drifting between server and client is caught by neither side.
|
|
4
|
-
/** Header with the bucket size: how many requests the window allows in total. */
|
|
5
2
|
export const RATE_LIMIT_LIMIT_HEADER = "X-RateLimit-Limit";
|
|
6
|
-
/** How many requests remain in the current window. Zero is a legal value. */
|
|
7
3
|
export const RATE_LIMIT_REMAINING_HEADER = "X-RateLimit-Remaining";
|
|
8
|
-
/** SECONDS until the remainder grows by at least one: a delta, not Unix time, so client */
|
|
9
|
-
/** clock skew does not matter, matching `Retry-After`. The window slides; it never resets. */
|
|
10
4
|
export const RATE_LIMIT_RESET_HEADER = "X-RateLimit-Reset";
|
|
11
|
-
/** Standard `Retry-After` (RFC 9110), in seconds. Only on 429. */
|
|
12
5
|
export const RETRY_AFTER_HEADER = "Retry-After";
|
|
13
|
-
/** Window length, shared by both buckets: "per minute" is what is published. */
|
|
14
6
|
export const RATE_LIMIT_WINDOW_SECONDS = 60;
|
|
15
|
-
/** PAID bucket: 60 requests per minute, the published figure. */
|
|
16
7
|
export const RATE_LIMIT_PAID_PER_MINUTE = 60;
|
|
17
|
-
/** FREE bucket: 300 per minute, counted separately so run polling (~12/min per run, three */
|
|
18
|
-
/** runs at once) never starves paid calls. A ceiling: a looping client hits it in seconds. */
|
|
19
8
|
export const RATE_LIMIT_FREE_PER_MINUTE = 300;
|
|
20
|
-
/** Concurrent presenter renders per account: 3. Excess runs are queued (202), not refused, so agents */
|
|
21
|
-
/** need no scheduler of their own. A run may also wait behind other accounts: our service caps each line as a whole. */
|
|
22
9
|
export const MAX_CONCURRENT_RENDERS_PER_ACCOUNT = 3;
|
|
23
|
-
/** Concurrent faceless videos per account: 2, queued the same way. */
|
|
24
10
|
export const MAX_CONCURRENT_FACELESS_PER_ACCOUNT = 2;
|
|
25
|
-
/** 429 body. The numbers sit INSIDE `error`, like the money refusals in `errors.ts`: an */
|
|
26
|
-
/** error response has one envelope. */
|
|
27
11
|
export const rateLimitedError = z.object({
|
|
28
12
|
error: z.object({
|
|
29
13
|
code: z.literal("rate_limited"),
|
|
30
14
|
message: z.string().min(1),
|
|
31
|
-
/** Size of the bucket the request fell into. */
|
|
32
15
|
limit: z.number().int().positive(),
|
|
33
|
-
/** Window length in seconds; `limit` means nothing without it. */
|
|
34
16
|
window_seconds: z.number().int().positive(),
|
|
35
|
-
/** Seconds until a retry. Matches `Retry-After`. */
|
|
36
17
|
retry_after_seconds: z.number().int().positive(),
|
|
37
18
|
}),
|
|
38
19
|
});
|
|
39
|
-
/** Builds the "too many requests" body. The message NAMES the bucket, so an agent hitting */
|
|
40
|
-
/** the paid limit does not stop polling runs it already started. */
|
|
41
20
|
export function rateLimitedBody(args) {
|
|
42
|
-
// The paid bucket also catches any unknown authenticated path, and the text says so.
|
|
43
21
|
const surface = args.scope === "paid"
|
|
44
22
|
? "paid requests (starting a run, and any unrecognised authenticated path)"
|
|
45
23
|
: "free requests (quotes, voices, run status, account)";
|
|
46
|
-
// No claim that no run exists: the paid limit precedes the handler, so a retry may own
|
|
47
|
-
// a run. Key advice only for run creation, which only the middleware can tell.
|
|
48
24
|
const tail = args.scope === "free"
|
|
49
25
|
? "nothing was charged; runs already started keep going and stay retrievable."
|
|
50
26
|
: args.targetsRunCreation === true
|
|
@@ -61,8 +37,6 @@ export function rateLimitedBody(args) {
|
|
|
61
37
|
},
|
|
62
38
|
});
|
|
63
39
|
}
|
|
64
|
-
/** "Too many failed authentication attempts" in the same 429 shape, so clients parse it with */
|
|
65
|
-
/** one schema. Only the message differs: the caller has no account, so no idempotency advice. */
|
|
66
40
|
export function authThrottledBody(args) {
|
|
67
41
|
return rateLimitedError.parse({
|
|
68
42
|
error: {
|
|
@@ -76,8 +50,6 @@ export function authThrottledBody(args) {
|
|
|
76
50
|
},
|
|
77
51
|
});
|
|
78
52
|
}
|
|
79
|
-
/** Per-account `create_actor` limits over a sliding day. Creations count runs of any */
|
|
80
|
-
/** outcome; refusals and unusable portraits count as well. */
|
|
81
53
|
export const ACTOR_LIMIT_WINDOW_SECONDS = 86_400;
|
|
82
54
|
export const ACTOR_LIMIT_KINDS = ["creations", "prompt_refusals", "unusable_portraits"];
|
|
83
55
|
export const ACTOR_LIMITS = {
|
|
@@ -116,4 +88,3 @@ export function actorCreationLimitedBody(args) {
|
|
|
116
88
|
},
|
|
117
89
|
});
|
|
118
90
|
}
|
|
119
|
-
//# sourceMappingURL=rate-limit.js.map
|
|
@@ -1,43 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type ReferenceProfileAnswer } from "./reference-profile.js";
|
|
3
|
-
/** Reference analysis (reference-to-video S1c): an MP4 asset read into a `reference_profile`. Its status lives at its own */
|
|
4
|
-
/** path, as an asset's processing does; its money (#927) rides a run of skill `analyze_reference` that holds and settles it. */
|
|
5
3
|
export declare const REFERENCE_ANALYSES_PATH = "/v1/reference-analyses";
|
|
6
4
|
export declare const REFERENCE_ANALYSIS_PATH = "/v1/reference-analyses/:id";
|
|
7
5
|
export declare const REFERENCE_ANALYSIS_QUOTE_PATH = "/v1/reference-analyses/quote";
|
|
8
6
|
export declare const ANALYZE_REFERENCE_TASK = "analyze-reference";
|
|
9
|
-
/** The run skill that carries an analysis's hold and charge; not a `SKILLS` entry, since no `/v1/skills` route starts it. */
|
|
10
7
|
export declare const ANALYZE_REFERENCE_SKILL = "analyze_reference";
|
|
11
8
|
export declare const referenceAnalysisId: z.ZodString;
|
|
12
|
-
/** What a succeeded analysis holds: 2 since frames, speakers, gaze and gestures (#979). A start on a reel whose analysis is older */
|
|
13
|
-
/** redoes it at no charge, once. */
|
|
14
9
|
export declare const REFERENCE_ANALYSIS_VERSION = 2;
|
|
15
|
-
/** The price of a delivered analysis. */
|
|
16
10
|
export declare const REFERENCE_ANALYSIS_CREDITS = 70;
|
|
17
|
-
/** The data mode: metrics, transcript and a frame sheet without beats or graphics. */
|
|
18
11
|
export declare const REFERENCE_DATA_CREDITS = 10;
|
|
19
|
-
/** `full` reads the reference into a profile; `data` hands back its numbers, words and a frame sheet, with no vision call. */
|
|
20
12
|
export declare const REFERENCE_ANALYSIS_MODES: readonly ["full", "data"];
|
|
21
13
|
export type ReferenceAnalysisMode = (typeof REFERENCE_ANALYSIS_MODES)[number];
|
|
22
14
|
export declare const REFERENCE_ANALYSIS_MODE_CREDITS: Readonly<Record<ReferenceAnalysisMode, number>>;
|
|
23
|
-
/** New analyses per account per hour. */
|
|
24
15
|
export declare const REFERENCE_ANALYSIS_PER_HOUR = 10;
|
|
25
|
-
/** The data mode's own cap, scope `reference_data`: cheap enough to run on every candidate reel of a search (#921). */
|
|
26
16
|
export declare const REFERENCE_DATA_PER_HOUR = 60;
|
|
27
17
|
export declare const REFERENCE_DATA_SHEET_COLUMNS = 3;
|
|
28
18
|
export declare const REFERENCE_DATA_SHEET_ROWS = 3;
|
|
29
19
|
export declare const REFERENCE_DATA_SHEET_MAX_WIDTH = 1080;
|
|
30
20
|
export declare const REFERENCE_ANALYSIS_WINDOW_SECONDS = 3600;
|
|
31
|
-
/** The analysis stops here and fails; under the task's ceiling. */
|
|
32
21
|
export declare const REFERENCE_ANALYSIS_WORK_SECONDS = 420;
|
|
33
22
|
export declare const REFERENCE_ANALYSIS_TASK_MAX_DURATION_SECONDS = 600;
|
|
34
|
-
/** Past this a read calls an unfinished analysis failed: a task killed at its ceiling writes nothing. */
|
|
35
23
|
export declare const REFERENCE_ANALYSIS_DEADLINE_SECONDS = 900;
|
|
36
24
|
export declare const REFERENCE_ANALYSIS_STATES: readonly ["queued", "analyzing", "succeeded", "failed"];
|
|
37
25
|
export declare const REFERENCE_ANALYSIS_ERRORS: readonly ["timed_out", "analysis_failed", "asset_gone", "enqueue_failed"];
|
|
38
26
|
export type ReferenceAnalysisError = (typeof REFERENCE_ANALYSIS_ERRORS)[number];
|
|
39
27
|
export declare const REFERENCE_ANALYSIS_ERROR_MESSAGES: Readonly<Record<ReferenceAnalysisError, string>>;
|
|
40
|
-
/** What starts an analysis: ids only, so no file name or reference text reaches a log. */
|
|
41
28
|
export declare const analyzeReferencePayload: z.ZodObject<{
|
|
42
29
|
analysisId: z.ZodString;
|
|
43
30
|
accountId: z.ZodString;
|
|
@@ -45,7 +32,6 @@ export declare const analyzeReferencePayload: z.ZodObject<{
|
|
|
45
32
|
export type AnalyzeReferencePayload = z.infer<typeof analyzeReferencePayload>;
|
|
46
33
|
export declare const REFERENCE_SOURCE_PLATFORMS: readonly ["instagram", "tiktok"];
|
|
47
34
|
export type ReferenceSourcePlatform = (typeof REFERENCE_SOURCE_PLATFORMS)[number];
|
|
48
|
-
/** The live analysis a link replays is found by this key; a short TikTok link has none before it is resolved. */
|
|
49
35
|
export declare const referenceSourceKey: z.ZodString;
|
|
50
36
|
export declare const REFERENCE_URL_YOUTUBE_REFUSAL = "YouTube gives no video file through our source; upload the MP4 with create_asset";
|
|
51
37
|
export declare const REFERENCE_URL_ACCEPTED: string;
|
|
@@ -58,7 +44,6 @@ export type ReferenceUrl = {
|
|
|
58
44
|
ok: false;
|
|
59
45
|
message: string;
|
|
60
46
|
};
|
|
61
|
-
/** Which post a link names, read from its text alone: no network, so a refusal costs nothing (#930 S3). */
|
|
62
47
|
export declare function classifyReferenceUrl(raw: string): ReferenceUrl;
|
|
63
48
|
export declare const analyzeReferenceRequest: z.ZodObject<{
|
|
64
49
|
asset_id: z.ZodOptional<z.ZodString>;
|
|
@@ -70,11 +55,8 @@ export declare const analyzeReferenceRequest: z.ZodObject<{
|
|
|
70
55
|
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
71
56
|
}, z.core.$strict>;
|
|
72
57
|
export type AnalyzeReferenceRequest = z.infer<typeof analyzeReferenceRequest>;
|
|
73
|
-
/** Where an author asks for a comment word (#1422). */
|
|
74
58
|
export declare const REFERENCE_FUNNEL_ASKED_IN: readonly ["caption", "speech", "screen"];
|
|
75
|
-
/** Instagram's caption limit; a longer one (TikTok allows 4000) is cut and says so. */
|
|
76
59
|
export declare const REFERENCE_CAPTION_MAX_CHARS = 2200;
|
|
77
|
-
/** The post behind a link analysis (#930 S3): `null` is unknown, never 0, and each unknown is also a line in `warnings[]`. */
|
|
78
60
|
export declare const referenceSource: z.ZodObject<{
|
|
79
61
|
url: z.ZodString;
|
|
80
62
|
platform: z.ZodEnum<{
|
|
@@ -137,7 +119,6 @@ export declare const referenceSource: z.ZodObject<{
|
|
|
137
119
|
}, z.core.$strict>>;
|
|
138
120
|
}, z.core.$strict>;
|
|
139
121
|
export type ReferenceSource = z.infer<typeof referenceSource>;
|
|
140
|
-
/** What a succeeded data analysis hands back (#930 S4): the probe, the transcribed words as the profile writes them, and a frame sheet. */
|
|
141
122
|
export declare const referenceData: z.ZodObject<{
|
|
142
123
|
transcript: z.ZodArray<z.ZodObject<{
|
|
143
124
|
text: z.ZodString;
|
|
@@ -183,7 +164,6 @@ export declare const referenceData: z.ZodObject<{
|
|
|
183
164
|
}, z.core.$strict>;
|
|
184
165
|
}, z.core.$strict>;
|
|
185
166
|
export type ReferenceData = z.infer<typeof referenceData>;
|
|
186
|
-
/** The data answer's parts, for the record the analysis keeps. */
|
|
187
167
|
export declare const referenceDataParts: {
|
|
188
168
|
frameSheet: z.ZodObject<{
|
|
189
169
|
columns: z.ZodNumber;
|
|
@@ -197,15 +177,12 @@ export declare const referenceDataParts: {
|
|
|
197
177
|
end_s: z.ZodNumber;
|
|
198
178
|
speaker: z.ZodOptional<z.ZodString>;
|
|
199
179
|
}, z.core.$strict>>;
|
|
200
|
-
/** Since #990; absent on data from before it. */
|
|
201
180
|
transcript_language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
202
|
-
/** `null` when no word starts in the first seconds; no caption, since the screen is not read in this mode. */
|
|
203
181
|
hook: z.ZodNullable<z.ZodObject<{
|
|
204
182
|
text: z.ZodString;
|
|
205
183
|
end_s: z.ZodNumber;
|
|
206
184
|
caption: z.ZodOptional<z.ZodString>;
|
|
207
185
|
}, z.core.$strict>>;
|
|
208
|
-
/** The transcript as timed segments with the transcription's speaker label (#979); absent on data from before them. */
|
|
209
186
|
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
210
187
|
start_s: z.ZodNumber;
|
|
211
188
|
end_s: z.ZodNumber;
|
|
@@ -234,7 +211,6 @@ export declare const referenceDataParts: {
|
|
|
234
211
|
fps: z.ZodNumber;
|
|
235
212
|
};
|
|
236
213
|
};
|
|
237
|
-
/** The reel's frames (#979): one a second, 4×3 sheets of 12 seconds, scenes from measured cuts; links signed for a day on each read. */
|
|
238
214
|
export declare const REFERENCE_FRAMES_FPS = 1;
|
|
239
215
|
export declare const REFERENCE_FRAME_MAX_WIDTH = 540;
|
|
240
216
|
export declare const REFERENCE_SHEET_COLUMNS = 4;
|
|
@@ -244,10 +220,8 @@ export declare const REFERENCE_FRAMES_PAGE_MAX = 60;
|
|
|
244
220
|
export declare const REFERENCE_FRAME_LINK_TTL_SECONDS = 86400;
|
|
245
221
|
export declare const MAX_REFERENCE_SCENES = 60;
|
|
246
222
|
export declare const REFERENCE_FRAMES_VERSION = "reference-frames-v1";
|
|
247
|
-
/** A frame's and a sheet's file name; the end frame's carries its tenth of a second. */
|
|
248
223
|
export declare const referenceFrameName: (t: number) => string;
|
|
249
224
|
export declare const referenceSheetName: (index: number) => string;
|
|
250
|
-
/** The frames as kept with an analysis: counts, size and scenes, no links. */
|
|
251
225
|
export declare const referenceFramesStored: z.ZodObject<{
|
|
252
226
|
version: z.ZodLiteral<"reference-frames-v1">;
|
|
253
227
|
count: z.ZodNumber;
|
|
@@ -306,17 +280,13 @@ export declare const referenceFrames: z.ZodObject<{
|
|
|
306
280
|
}, z.core.$strict>>;
|
|
307
281
|
}, z.core.$strict>;
|
|
308
282
|
export type ReferenceFrames = z.infer<typeof referenceFrames>;
|
|
309
|
-
/** Which frames a read signs; the whole reel when it fits one page. */
|
|
310
283
|
export declare const referenceFramesPage: z.ZodObject<{
|
|
311
284
|
frames_from: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
312
285
|
frames_to: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
313
286
|
}, z.core.$strict>;
|
|
314
287
|
export type ReferenceFramesPage = z.infer<typeof referenceFramesPage>;
|
|
315
|
-
/** How long a read may wait for an analysis to finish (#970): under an agent's usual 60 s tool timeout. */
|
|
316
288
|
export declare const REFERENCE_WAIT_MAX_SECONDS = 50;
|
|
317
|
-
/** Measured wall time from start to finish (#970: a full analysis took about 2.5 minutes), for `retry_after_seconds`. */
|
|
318
289
|
export declare const REFERENCE_EXPECTED_SECONDS: Readonly<Record<ReferenceAnalysisMode, number>>;
|
|
319
|
-
/** The query of `GET /v1/reference-analyses/{id}`. */
|
|
320
290
|
export declare const referenceAnalysisQuery: z.ZodObject<{
|
|
321
291
|
frames_from: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
322
292
|
frames_to: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -326,9 +296,7 @@ export declare const referenceAnalysisQuery: z.ZodObject<{
|
|
|
326
296
|
}>>;
|
|
327
297
|
}, z.core.$strict>;
|
|
328
298
|
export type ReferenceAnalysisQuery = z.infer<typeof referenceAnalysisQuery>;
|
|
329
|
-
/** What asking again costs, in the quote and in a succeeded analysis (#1007). */
|
|
330
299
|
export declare const REFERENCE_REPEAT_NOTE: string;
|
|
331
|
-
/** The call a succeeded full analysis leads to (#1172): a remake plan from this analysis, with the user's script and an actor added. */
|
|
332
300
|
export declare const REFERENCE_NEXT_NOTE: string;
|
|
333
301
|
export declare const referenceAnalysisNext: z.ZodObject<{
|
|
334
302
|
action: z.ZodLiteral<"plan_reference_remake">;
|
|
@@ -661,6 +629,7 @@ export declare const referenceAnalysis: z.ZodObject<{
|
|
|
661
629
|
pacing: z.ZodObject<{
|
|
662
630
|
layer_change_every_s: z.ZodNumber;
|
|
663
631
|
face_share: z.ZodNumber;
|
|
632
|
+
effective_words_per_s: z.ZodOptional<z.ZodNumber>;
|
|
664
633
|
}, z.core.$strict>;
|
|
665
634
|
palette: z.ZodArray<z.ZodString>;
|
|
666
635
|
music: z.ZodString;
|
|
@@ -1175,6 +1144,62 @@ export declare const referenceAnalysis: z.ZodObject<{
|
|
|
1175
1144
|
start_s: z.ZodNumber;
|
|
1176
1145
|
end_s: z.ZodNumber;
|
|
1177
1146
|
}, z.core.$strict>>>;
|
|
1147
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1148
|
+
start_s: z.ZodNumber;
|
|
1149
|
+
end_s: z.ZodNumber;
|
|
1150
|
+
beat_index: z.ZodNumber;
|
|
1151
|
+
words: z.ZodNumber;
|
|
1152
|
+
silent: z.ZodBoolean;
|
|
1153
|
+
cut_in: z.ZodEnum<{
|
|
1154
|
+
from_insert: "from_insert";
|
|
1155
|
+
jump_cut: "jump_cut";
|
|
1156
|
+
other: "other";
|
|
1157
|
+
size_change: "size_change";
|
|
1158
|
+
start: "start";
|
|
1159
|
+
to_insert: "to_insert";
|
|
1160
|
+
}>;
|
|
1161
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1162
|
+
kind: z.ZodEnum<{
|
|
1163
|
+
ai_video: "ai_video";
|
|
1164
|
+
code_render: "code_render";
|
|
1165
|
+
live: "live";
|
|
1166
|
+
real_footage: "real_footage";
|
|
1167
|
+
screen_capture: "screen_capture";
|
|
1168
|
+
}>;
|
|
1169
|
+
confidence: z.ZodNumber;
|
|
1170
|
+
measured: z.ZodBoolean;
|
|
1171
|
+
}, z.core.$strict>>;
|
|
1172
|
+
same_clip_as: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1173
|
+
}, z.core.$strict>>>;
|
|
1174
|
+
tempo: z.ZodOptional<z.ZodObject<{
|
|
1175
|
+
music_bed: z.ZodBoolean;
|
|
1176
|
+
bpm: z.ZodNullable<z.ZodNumber>;
|
|
1177
|
+
cuts_on_beat: z.ZodNullable<z.ZodNumber>;
|
|
1178
|
+
cuts_on_beat_by_chance: z.ZodNullable<z.ZodNumber>;
|
|
1179
|
+
edit_on_beat: z.ZodBoolean;
|
|
1180
|
+
}, z.core.$strict>>;
|
|
1181
|
+
bring: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1182
|
+
kind: z.ZodEnum<{
|
|
1183
|
+
live_clip: "live_clip";
|
|
1184
|
+
product_photo: "product_photo";
|
|
1185
|
+
screen_recording: "screen_recording";
|
|
1186
|
+
screenshot: "screenshot";
|
|
1187
|
+
}>;
|
|
1188
|
+
seconds: z.ZodNumber;
|
|
1189
|
+
at_s: z.ZodArray<z.ZodNumber>;
|
|
1190
|
+
}, z.core.$strict>>>;
|
|
1191
|
+
sound_events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1192
|
+
t_s: z.ZodNumber;
|
|
1193
|
+
kind: z.ZodEnum<{
|
|
1194
|
+
click: "click";
|
|
1195
|
+
ding: "ding";
|
|
1196
|
+
hit: "hit";
|
|
1197
|
+
impact: "impact";
|
|
1198
|
+
pop: "pop";
|
|
1199
|
+
typing: "typing";
|
|
1200
|
+
whoosh: "whoosh";
|
|
1201
|
+
}>;
|
|
1202
|
+
}, z.core.$strict>>>;
|
|
1178
1203
|
analysis: z.ZodObject<{
|
|
1179
1204
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1180
1205
|
}, z.core.$strict>;
|
|
@@ -1395,7 +1420,6 @@ export declare const analysisQuoteResponse: z.ZodObject<{
|
|
|
1395
1420
|
warnings: z.ZodArray<z.ZodString>;
|
|
1396
1421
|
}, z.core.$strict>;
|
|
1397
1422
|
export type AnalysisQuoteResponse = z.infer<typeof analysisQuoteResponse>;
|
|
1398
|
-
/** What a client reads: a new state, error code or profile field must not break an installed client. */
|
|
1399
1423
|
export declare const referenceAnalysisRead: z.ZodObject<{
|
|
1400
1424
|
analysis_id: z.ZodString;
|
|
1401
1425
|
asset_id: z.ZodString;
|
|
@@ -1434,7 +1458,6 @@ export declare const referenceAnalysisRead: z.ZodObject<{
|
|
|
1434
1458
|
balance_after_credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1435
1459
|
}, z.core.$strict>;
|
|
1436
1460
|
export type ReferenceAnalysisRead = z.infer<typeof referenceAnalysisRead>;
|
|
1437
|
-
/** Rule 3: every element we cannot draw is said in `warnings[]` too, not only inside the profile. */
|
|
1438
1461
|
export declare function referenceAnalysisWarnings(profile: Pick<ReferenceProfileAnswer, "unmapped" | "analysis">): string[];
|
|
1439
1462
|
export declare const ANALYZE_REFERENCE_DESCRIPTION: string;
|
|
1440
1463
|
export declare const GET_REFERENCE_ANALYSIS_DESCRIPTION: string;
|