graphai.api.video.schemas module

class graphai.api.video.schemas.RetrieveURLRequest(*, url: str, force: bool = False, playlist: bool = False)

Bases: BaseModel

url: str
force: bool
playlist: bool
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class graphai.api.video.schemas.VideoStreamInfo(*, codec_type: Literal['video', 'audio'], codec_name: str | None, duration: float | None, bit_rate: int | None, sample_rate: int | None, resolution: str | None)

Bases: BaseModel

codec_type: Literal['video', 'audio']
codec_name: str | None
duration: float | None
bit_rate: int | None
sample_rate: int | None
resolution: str | None
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class graphai.api.video.schemas.VideoTokenStatus(*, active: bool = False, fingerprinted: bool = False, streams: List[VideoStreamInfo] | None = None)

Bases: TokenStatus

streams: List[VideoStreamInfo] | None
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class graphai.api.video.schemas.RetrieveURLResponseInner(*, token: str | None = None, token_status: VideoTokenStatus | None = None, token_size: int | None = None, fresh: bool, successful: bool)

Bases: BaseModel

token: str | None
token_status: VideoTokenStatus | None
token_size: int | None
fresh: bool
successful: bool
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class graphai.api.video.schemas.RetrieveURLResponse(*, task_id: str, task_name: str | None = None, task_status: str, task_result: RetrieveURLResponseInner | None)

Bases: TaskStatusResponse

task_result: RetrieveURLResponseInner | None
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class graphai.api.video.schemas.VideoFingerprintRequest(*, token: str, force: bool = False)

Bases: BaseModel

token: str
force: bool
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class graphai.api.video.schemas.VideoFingerprintTaskResponse(*, result: str | None = None, fresh: bool, closest_token: str | None = None, successful: bool)

Bases: BaseModel

result: str | None
fresh: bool
closest_token: str | None
successful: bool
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class graphai.api.video.schemas.VideoFingerprintResponse(*, task_id: str, task_name: str | None = None, task_status: str, task_result: VideoFingerprintTaskResponse | None)

Bases: TaskStatusResponse

task_result: VideoFingerprintTaskResponse | None
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class graphai.api.video.schemas.ExtractAudioRequest(*, token: str, recalculate_cached: bool = False, force: bool = False)

Bases: BaseModel

token: str
recalculate_cached: bool
force: bool
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class graphai.api.video.schemas.ExtractAudioTaskResponse(*, token: str | None = None, token_status: TokenStatus | None = None, successful: bool, fresh: bool, duration: float)

Bases: BaseModel

token: str | None
token_status: TokenStatus | None
successful: bool
fresh: bool
duration: float
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class graphai.api.video.schemas.ExtractAudioResponse(*, task_id: str, task_name: str | None = None, task_status: str, task_result: ExtractAudioTaskResponse | None)

Bases: TaskStatusResponse

task_result: ExtractAudioTaskResponse | None
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class graphai.api.video.schemas.SlideDetectionParams(*, hash_thresh: float = 0.95, multiplier: float = 5.0, default_threshold: float = 0.05, include_first: bool = True, include_last: bool = True)

Bases: BaseModel

hash_thresh: float
multiplier: float
default_threshold: float
include_first: bool
include_last: bool
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class graphai.api.video.schemas.DetectSlidesRequest(*, token: str, recalculate_cached: bool = False, force: bool = False, language: Literal['en', 'fr'] = 'en', parameters: SlideDetectionParams = SlideDetectionParams(hash_thresh=0.95, multiplier=5.0, default_threshold=0.05, include_first=True, include_last=True))

Bases: BaseModel

token: str
recalculate_cached: bool
force: bool
language: Literal['en', 'fr']
parameters: SlideDetectionParams
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class graphai.api.video.schemas.SlideTokenAndTimeStamp(*, token: str, token_status: TokenStatus | None = None, timestamp: int)

Bases: BaseModel

token: str
token_status: TokenStatus | None
timestamp: int
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class graphai.api.video.schemas.DetectSlidesTaskResponse(*, slide_tokens: Dict[int, SlideTokenAndTimeStamp] | None = None, successful: bool, fresh: bool)

Bases: BaseModel

slide_tokens: Dict[int, SlideTokenAndTimeStamp] | None
successful: bool
fresh: bool
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class graphai.api.video.schemas.DetectSlidesResponse(*, task_id: str, task_name: str | None = None, task_status: str, task_result: DetectSlidesTaskResponse | None)

Bases: TaskStatusResponse

task_result: DetectSlidesTaskResponse | None
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].