Skip to main content

@twick/ai-models / Exports

@twick/ai-models

Table of contents

Classes

Interfaces

Type Aliases

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

types.ts:6


AIModelProvider

Ƭ AIModelProvider: "fal" | "runware" | "openai" | "gemini" | "bedrock" | "local"

Defined in

types.ts:13


CaptionPhraseLength

Ƭ CaptionPhraseLength: "short" | "medium" | "long"

Defined in

orchestration-types.ts:58


GenerationInput

Ƭ GenerationInput: VoiceGenerationInput | AvatarGenerationInput | CaptionGenerationInput | TranslationGenerationInput | ImageGenerationInput | VideoGenerationInput | ScriptToTimelineGenerationInput | Record<string, unknown>

Defined in

orchestration-types.ts:254


GenerationType

Ƭ GenerationType: "caption" | "translation" | "voice" | "avatar" | "image" | "video" | "imageToVideo" | "scriptToTimeline" | "videoEnhancement" | "assetSelection" | "pdfToVideo" | "overlayGeneration" | "personalization" | "autoEdit" | "brollSuggestion" | "sceneAssembly"

Defined in

orchestration-types.ts:3


JobStatus

Ƭ JobStatus: "queued" | "processing" | "completed" | "failed" | "cancelled"

Defined in

orchestration-types.ts:21


TimelinePatch

Ƭ TimelinePatch: TimelineVoicePatch | TimelineAvatarPatch | TimelineCaptionPatch | TimelineMediaPatch | TimelineBrollPatch | TimelineOverlayPatch | TimelineLocalizationPatch | TimelineAutoEditPatch | TimelineVariantPatch | TimelineEnhancementPatch | TimelinePdfToVideoPatch

Defined in

orchestration-types.ts:340


VoiceSegment

Ƭ VoiceSegment: TimedTextSegment

Backward compatible alias for existing voice-oriented naming.

Defined in

orchestration-types.ts:56

Functions

normalizeCaptionEntries

normalizeCaptionEntries(captions): TimedTextSegment[]

Normalize legacy caption entries (milliseconds) into TimedTextSegment.

Parameters

NameType
captionsLegacyCaptionEntry[]

Returns

TimedTextSegment[]

Defined in

caption-normalizer.ts:13


toTimelinePatch

toTimelinePatch(job): TimelinePatch

Parameters

NameType
jobGenerationJob

Returns

TimelinePatch

Defined in

timeline-injection.ts:24