@twick/ai-models / Exports
@twick/ai-models
Table of contents
Classes
- AdapterNotFoundError
- GenerationOrchestrator
- InMemoryJobStore
- ProviderRegistry
- UnsupportedGenerationTypeError
Interfaces
- AvatarGenerationInput
- CaptionGenerationInput
- CreateJobInput
- GenerationJob
- IGenerationPollingResponse
- ImageGenerationInput
- JobStore
- LegacyCaptionEntry
- LocalizedTrackResult
- MediaAssetResult
- ModelDimension
- ModelInfo
- OverlayAnnotation
- PersonalizationVariableSet
- ProjectAssemblyPatch
- ProjectSection
- ProviderAdapter
- ProviderConfig
- ProviderGenerationOutput
- ProviderJobStatusResponse
- ProviderStartJobRequest
- ProviderStartJobResponse
- ScriptToTimelineGenerationInput
- TimedTextSegment
- TimelineAutoEditPatch
- TimelineAvatarPatch
- TimelineBrollPatch
- TimelineCaptionPatch
- TimelineEnhancementPatch
- TimelineLocalizationPatch
- TimelineMediaPatch
- TimelineOverlayPatch
- TimelinePdfToVideoPatch
- TimelinePlacementHint
- TimelineVariantPatch
- TimelineVoicePatch
- TranslationGenerationInput
- VideoGenerationInput
- VoiceGenerationInput
- WaitForCompletionOptions
Type Aliases
- AIModelCategory
- AIModelProvider
- CaptionPhraseLength
- GenerationInput
- GenerationType
- JobStatus
- TimelinePatch
- VoiceSegment
Functions
Type Aliases
AIModelCategory
Ƭ AIModelCategory: "image" | "video" | "music" | "voiceover" | "translation" | "script"
Model catalog types for Twick generative AI integration. Aligned with videosos-main ApiInfo structure.
Defined in
AIModelProvider
Ƭ AIModelProvider: "fal" | "runware" | "openai" | "gemini" | "bedrock" | "local"
Defined in
CaptionPhraseLength
Ƭ CaptionPhraseLength: "short" | "medium" | "long"
Defined in
GenerationInput
Ƭ GenerationInput: VoiceGenerationInput | AvatarGenerationInput | CaptionGenerationInput | TranslationGenerationInput | ImageGenerationInput | VideoGenerationInput | ScriptToTimelineGenerationInput | Record<string, unknown>
Defined in
GenerationType
Ƭ GenerationType: "caption" | "translation" | "voice" | "avatar" | "image" | "video" | "imageToVideo" | "scriptToTimeline" | "videoEnhancement" | "assetSelection" | "pdfToVideo" | "overlayGeneration" | "personalization" | "autoEdit" | "brollSuggestion" | "sceneAssembly"
Defined in
JobStatus
Ƭ JobStatus: "queued" | "processing" | "completed" | "failed" | "cancelled"
Defined in
TimelinePatch
Ƭ TimelinePatch: TimelineVoicePatch | TimelineAvatarPatch | TimelineCaptionPatch | TimelineMediaPatch | TimelineBrollPatch | TimelineOverlayPatch | TimelineLocalizationPatch | TimelineAutoEditPatch | TimelineVariantPatch | TimelineEnhancementPatch | TimelinePdfToVideoPatch
Defined in
VoiceSegment
Ƭ VoiceSegment: TimedTextSegment
Backward compatible alias for existing voice-oriented naming.
Defined in
Functions
normalizeCaptionEntries
▸ normalizeCaptionEntries(captions): TimedTextSegment[]
Normalize legacy caption entries (milliseconds) into TimedTextSegment.
Parameters
| Name | Type |
|---|---|
captions | LegacyCaptionEntry[] |
Returns
Defined in
toTimelinePatch
▸ toTimelinePatch(job): TimelinePatch
Parameters
| Name | Type |
|---|---|
job | GenerationJob |