Skip to content

@codesoul-co/hypha-tools / media

Using this module

Use the Media module for declaring text, image, audio, and binary Tool inputs and outputs. It exports 4 constants, 2 functions, 10 interfaces, 2 types.

Import from the package entrypoint

ts
import {
  genericOcrInputJsonSchema,
  genericVideoSourceInputJsonSchema,
  ocrRequestSchema,
  videoSourceRequestSchema,
  createOcrToolSpec,
  createVideoSourceToolSpec,
} from '@codesoul-co/hypha-tools';

import type {
  OcrBlock,
  OcrBoundingBox,
  OcrPage,
  OcrProvider,
  OcrRequest,
  OcrResult,
  VideoSourceEpisode,
  VideoSourcePreview,
} from '@codesoul-co/hypha-tools';

// The complete export list is documented below.

Usage patterns

  • Use the 12 type/interface exports as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The module exposes 2 functions as direct operation entrypoints. Every overload, required/optional parameter, and return type is documented below.
  • The 4 constant/enum exports provide stable values, schemas, definitions, or defaults. Reuse these exports instead of copying internal values into an application.

Runtime validation example

ts
import { ocrRequestSchema } from '@codesoul-co/hypha-tools';

declare function loadExternalInput(): unknown;
const input: unknown = loadExternalInput();
const parsed = ocrRequestSchema.parse(input);

Parse untrusted configuration, network, or persisted input with the runtime schema before passing it to functions or classes that expect a validated contract.

Public exports

SymbolKindSignatureDescription
genericOcrInputJsonSchemaconstantconst genericOcrInputJsonSchema: JsonSchemaJSON Schema for Generic Ocr Input.
genericVideoSourceInputJsonSchemaconstantconst genericVideoSourceInputJsonSchema: JsonSchemaJSON Schema for Generic Video Source Input.
ocrRequestSchemaconstantconst ocrRequestSchema: z.ZodObject<{ source: z.ZodType<OcrInputSource, z.ZodTypeDef, OcrInputSource>; languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pageRange: z.ZodOptional<z.ZodObject<{ start: z.ZodOptional<z.ZodNumber>; end: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { start?: number | undefined; end?: number | undefined; }, { start?: number | undefined; end?: number | undefined; }>>; fe...Runtime schema for Ocr Request.
videoSourceRequestSchemaconstantconst videoSourceRequestSchema: z.ZodObject<{ url: z.ZodString; titleHint: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; includeEpisodes: z.ZodOptional<z.ZodBoolean>; includeCaptions: z.ZodOptional<z.ZodBoolean>; providerHint: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { url: string; metadata?: Record<string, unknown> | u...Runtime schema for Video Source Request.
createOcrToolSpecfunctioncreateOcrToolSpec(overrides?: Partial<ToolSpec>): ToolSpecCreate Ocr Tool Spec function with 1 public call signature; parameters and return types are listed below.
createVideoSourceToolSpecfunctioncreateVideoSourceToolSpec(overrides?: Partial<ToolSpec>): ToolSpecCreate Video Source Tool Spec function with 1 public call signature; parameters and return types are listed below.
OcrBlockinterfaceinterface OcrBlockOcr Block interface with 6 public fields or methods.
OcrBoundingBoxinterfaceinterface OcrBoundingBoxOcr Bounding Box interface with 5 public fields or methods.
OcrPageinterfaceinterface OcrPageOcr Page interface with 7 public fields or methods.
OcrProviderinterfaceinterface OcrProviderOcr Provider interface with 3 public fields or methods.
OcrRequestinterfaceinterface OcrRequestOcr Request interface with 7 public fields or methods.
OcrResultinterfaceinterface OcrResultOcr Result interface with 10 public fields or methods.
VideoSourceEpisodeinterfaceinterface VideoSourceEpisodeVideo Source Episode interface with 8 public fields or methods.
VideoSourcePreviewinterfaceinterface VideoSourcePreviewVideo Source Preview interface with 15 public fields or methods.
VideoSourceProviderinterfaceinterface VideoSourceProviderVideo Source Provider interface with 4 public fields or methods.
VideoSourceRequestinterfaceinterface VideoSourceRequestVideo Source Request interface with 7 public fields or methods.
OcrInputSourcetypetype OcrInputSource = { type: 'artifact'; artifactRef: string; mimeType?: string; fileName?: string; } | { type: 'url'; url: string; mimeType?: string; fileName?: string; } | { type: 'inline'; dataBase64: string; mimeType: string; fileName?: string; } | { type: 'text'; text: string; fileName?: string; }Public type alias for Ocr Input Source; the declaration contains its complete type expression.
VideoSourceKindtypetype VideoSourceKind = 'video' | 'playlist' | 'collection' | 'live' | 'unknown'Public type alias for Video Source Kind; the declaration contains its complete type expression.

genericOcrInputJsonSchema

JSON Schema for Generic Ocr Input.

  • Kind: constant
  • Import: import { genericOcrInputJsonSchema } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export declare const genericOcrInputJsonSchema: JsonSchema;

genericVideoSourceInputJsonSchema

JSON Schema for Generic Video Source Input.

  • Kind: constant
  • Import: import { genericVideoSourceInputJsonSchema } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export declare const genericVideoSourceInputJsonSchema: JsonSchema;

ocrRequestSchema

Runtime schema for Ocr Request.

  • Kind: constant
  • Import: import { ocrRequestSchema } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export declare const ocrRequestSchema: z.ZodObject<{ source: z.ZodType<OcrInputSource, z.ZodTypeDef, OcrInputSource>; languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pageRange: z.ZodOptional<z.ZodObject<{ start: z.ZodOptional<z.ZodNumber>; end: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { start?: number | undefined; end?: number | undefined; }, { start?: number | undefined; end?: number | undefined; }>>; features: z.ZodOptional<z.ZodArray<z.ZodEnum<["text", "layout", "tables", "formulas"]>, "many">>; output: z.ZodOptional<z.ZodObject<{ includeBlocks: z.ZodOptional<z.ZodBoolean>; includeConfidence: z.ZodOptional<z.ZodBoolean>; artifactize: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { includeBlocks?: boolean | undefined; includeConfidence?: boolean | undefined; artifactize?: boolean | undefined; }, { includeBlocks?: boolean | undefined; includeConfidence?: boolean | undefined; artifactize?: boolean | undefined; }>>; providerHint: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { source: OcrInputSource; metadata?: Record<string, unknown> | undefined; output?: { includeBlocks?: boolean | undefined; includeConfidence?: boolean | undefined; artifactize?: boolean | undefined; } | undefined; languages?: string[] | undefined; pageRange?: { start?: number | undefined; end?: number | undefined; } | undefined; features?: ("text" | "layout" | "tables" | "formulas")[] | undefined; providerHint?: string | undefined; }, { source: OcrInputSource; metadata?: Record<string, unknown> | undefined; output?: { includeBlocks?: boolean | undefined; includeConfidence?: boolean | undefined; artifactize?: boolean | undefined; } | undefined; languages?: string[] | undefined; pageRange?: { start?: number | undefined; end?: number | undefined; } | undefined; features?: ("text" | "layout" | "tables" | "formulas")[] | undefined; providerHint?: string | undefined; }>;

videoSourceRequestSchema

Runtime schema for Video Source Request.

  • Kind: constant
  • Import: import { videoSourceRequestSchema } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export declare const videoSourceRequestSchema: z.ZodObject<{ url: z.ZodString; titleHint: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; includeEpisodes: z.ZodOptional<z.ZodBoolean>; includeCaptions: z.ZodOptional<z.ZodBoolean>; providerHint: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { url: string; metadata?: Record<string, unknown> | undefined; providerHint?: string | undefined; titleHint?: string | undefined; locale?: string | undefined; includeEpisodes?: boolean | undefined; includeCaptions?: boolean | undefined; }, { url: string; metadata?: Record<string, unknown> | undefined; providerHint?: string | undefined; titleHint?: string | undefined; locale?: string | undefined; includeEpisodes?: boolean | undefined; includeCaptions?: boolean | undefined; }>;

createOcrToolSpec

Create Ocr Tool Spec function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createOcrToolSpec } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export declare function createOcrToolSpec(overrides?: Partial<ToolSpec>): ToolSpec;

Call signature

text
createOcrToolSpec(overrides?: Partial<ToolSpec>): ToolSpec

Parameters

ParameterTypeRequiredDescription
overridesPartial<ToolSpec>NoOptional parameter; accepted values are defined by the type column.

Returns

  • Type: ToolSpec
  • Description: The return contract is defined by the type shown above.

createVideoSourceToolSpec

Create Video Source Tool Spec function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createVideoSourceToolSpec } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export declare function createVideoSourceToolSpec(overrides?: Partial<ToolSpec>): ToolSpec;

Call signature

text
createVideoSourceToolSpec(overrides?: Partial<ToolSpec>): ToolSpec

Parameters

ParameterTypeRequiredDescription
overridesPartial<ToolSpec>NoOptional parameter; accepted values are defined by the type column.

Returns

  • Type: ToolSpec
  • Description: The return contract is defined by the type shown above.

OcrBlock

Ocr Block interface with 6 public fields or methods.

  • Kind: interface
  • Import: import type { OcrBlock } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export interface OcrBlock {
    id?: string;
    type: 'text' | 'title' | 'list' | 'table' | 'formula' | 'image' | 'unknown';
    text?: string;
    confidence?: number;
    boundingBox?: OcrBoundingBox;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
boundingBoxpropertyboundingBox?: OcrBoundingBoxPublic property; its type, readonly modifier and optionality are shown in the signature.
confidencepropertyconfidence?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
textpropertytext?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
typepropertytype: "unknown" | "image" | "table" | "list" | "text" | "title" | "formula"Public property; its type, readonly modifier and optionality are shown in the signature.

OcrBoundingBox

Ocr Bounding Box interface with 5 public fields or methods.

  • Kind: interface
  • Import: import type { OcrBoundingBox } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export interface OcrBoundingBox {
    x: number;
    y: number;
    width: number;
    height: number;
    unit?: 'pixel' | 'normalized' | 'point';
}

Contract members

MemberKindSignatureDescription
heightpropertyheight: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
unitpropertyunit?: "pixel" | "normalized" | "point"Public property; its type, readonly modifier and optionality are shown in the signature.
widthpropertywidth: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
xpropertyx: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
ypropertyy: numberPublic property; its type, readonly modifier and optionality are shown in the signature.

OcrPage

Ocr Page interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { OcrPage } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export interface OcrPage {
    pageNumber: number;
    text: string;
    confidence?: number;
    width?: number;
    height?: number;
    blocks?: OcrBlock[];
    artifactRefs?: string[];
}

Contract members

MemberKindSignatureDescription
artifactRefspropertyartifactRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
blockspropertyblocks?: OcrBlock[]Public property; its type, readonly modifier and optionality are shown in the signature.
confidencepropertyconfidence?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
heightpropertyheight?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
pageNumberpropertypageNumber: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
textpropertytext: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
widthpropertywidth?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.

OcrProvider

Ocr Provider interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { OcrProvider } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export interface OcrProvider {
    readonly id: string;
    recognize(request: OcrRequest, context?: ToolCallContext): Promise<OcrResult>;
    health?(): Promise<{
        status: 'healthy' | 'degraded' | 'unavailable';
        message?: string;
    }>;
}

Contract members

MemberKindSignatureDescription
healthmethodhealth?(): Promise<{ status: "healthy" | "degraded" | "unavailable"; message?: string; }>Public method; parameters and return type are shown in the signature.
idpropertyreadonly id: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
recognizemethodrecognize(request: OcrRequest, context?: ToolCallContext): Promise<OcrResult>Public method; parameters and return type are shown in the signature.

OcrRequest

Ocr Request interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { OcrRequest } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export interface OcrRequest {
    source: OcrInputSource;
    languages?: string[];
    pageRange?: {
        start?: number;
        end?: number;
    };
    features?: Array<'text' | 'layout' | 'tables' | 'formulas'>;
    output?: {
        includeBlocks?: boolean;
        includeConfidence?: boolean;
        artifactize?: boolean;
    };
    providerHint?: string;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
featurespropertyfeatures?: ("text" | "layout" | "tables" | "formulas")[]Public property; its type, readonly modifier and optionality are shown in the signature.
languagespropertylanguages?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
outputpropertyoutput?: { includeBlocks?: boolean; includeConfidence?: boolean; artifactize?: boolean; }Public property; its type, readonly modifier and optionality are shown in the signature.
pageRangepropertypageRange?: { start?: number; end?: number; }Public property; its type, readonly modifier and optionality are shown in the signature.
providerHintpropertyproviderHint?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
sourcepropertysource: OcrInputSourcePublic property; its type, readonly modifier and optionality are shown in the signature.

OcrResult

Ocr Result interface with 10 public fields or methods.

  • Kind: interface
  • Import: import type { OcrResult } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export interface OcrResult {
    status: 'completed' | 'partial' | 'failed';
    provider: string;
    providerVersion?: string;
    text?: string;
    pages: OcrPage[];
    detectedLanguages?: string[];
    artifactRefs?: string[];
    warnings?: string[];
    error?: {
        code: string;
        message: string;
        retryable?: boolean;
    };
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
artifactRefspropertyartifactRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
detectedLanguagespropertydetectedLanguages?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
errorpropertyerror?: { code: string; message: string; retryable?: boolean; }Public property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
pagespropertypages: OcrPage[]Public property; its type, readonly modifier and optionality are shown in the signature.
providerpropertyprovider: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
providerVersionpropertyproviderVersion?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
statuspropertystatus: "completed" | "failed" | "partial"Public property; its type, readonly modifier and optionality are shown in the signature.
textpropertytext?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
warningspropertywarnings?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.

VideoSourceEpisode

Video Source Episode interface with 8 public fields or methods.

  • Kind: interface
  • Import: import type { VideoSourceEpisode } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export interface VideoSourceEpisode {
    id?: string;
    title: string;
    order: number;
    durationSeconds?: number;
    url?: string;
    thumbnailUrl?: string;
    captionRefs?: string[];
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
captionRefspropertycaptionRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
durationSecondspropertydurationSeconds?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
orderpropertyorder: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
thumbnailUrlpropertythumbnailUrl?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
titlepropertytitle: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
urlpropertyurl?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

VideoSourcePreview

Video Source Preview interface with 15 public fields or methods.

  • Kind: interface
  • Import: import type { VideoSourcePreview } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export interface VideoSourcePreview {
    provider: string;
    sourceKind: VideoSourceKind;
    sourceId?: string;
    canonicalUrl: string;
    title: string;
    description?: string;
    author?: string;
    durationSeconds?: number;
    publishedAt?: string;
    thumbnailUrl?: string;
    episodes: VideoSourceEpisode[];
    parsedAt: string;
    warnings?: string[];
    manualEntryRequired?: boolean;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
authorpropertyauthor?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
canonicalUrlpropertycanonicalUrl: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
descriptionpropertydescription?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
durationSecondspropertydurationSeconds?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
episodespropertyepisodes: VideoSourceEpisode[]Public property; its type, readonly modifier and optionality are shown in the signature.
manualEntryRequiredpropertymanualEntryRequired?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
parsedAtpropertyparsedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
providerpropertyprovider: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
publishedAtpropertypublishedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
sourceIdpropertysourceId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
sourceKindpropertysourceKind: VideoSourceKindPublic property; its type, readonly modifier and optionality are shown in the signature.
thumbnailUrlpropertythumbnailUrl?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
titlepropertytitle: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
warningspropertywarnings?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.

VideoSourceProvider

Video Source Provider interface with 4 public fields or methods.

  • Kind: interface
  • Import: import type { VideoSourceProvider } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export interface VideoSourceProvider {
    readonly id: string;
    supports(url: string): boolean | Promise<boolean>;
    preview(request: VideoSourceRequest, context?: ToolCallContext): Promise<VideoSourcePreview>;
    health?(): Promise<{
        status: 'healthy' | 'degraded' | 'unavailable';
        message?: string;
    }>;
}

Contract members

MemberKindSignatureDescription
healthmethodhealth?(): Promise<{ status: "healthy" | "degraded" | "unavailable"; message?: string; }>Public method; parameters and return type are shown in the signature.
idpropertyreadonly id: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
previewmethodpreview(request: VideoSourceRequest, context?: ToolCallContext): Promise<VideoSourcePreview>Public method; parameters and return type are shown in the signature.
supportsmethodsupports(url: string): boolean | Promise<boolean>Public method; parameters and return type are shown in the signature.

VideoSourceRequest

Video Source Request interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { VideoSourceRequest } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export interface VideoSourceRequest {
    url: string;
    titleHint?: string;
    locale?: string;
    includeEpisodes?: boolean;
    includeCaptions?: boolean;
    providerHint?: string;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
includeCaptionspropertyincludeCaptions?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
includeEpisodespropertyincludeEpisodes?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
localepropertylocale?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
providerHintpropertyproviderHint?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
titleHintpropertytitleHint?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
urlpropertyurl: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

OcrInputSource

Public type alias for Ocr Input Source; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { OcrInputSource } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export type OcrInputSource = {
    type: 'artifact';
    artifactRef: string;
    mimeType?: string;
    fileName?: string;
} | {
    type: 'url';
    url: string;
    mimeType?: string;
    fileName?: string;
} | {
    type: 'inline';
    dataBase64: string;
    mimeType: string;
    fileName?: string;
} | {
    type: 'text';
    text: string;
    fileName?: string;
};

VideoSourceKind

Public type alias for Video Source Kind; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { VideoSourceKind } from '@codesoul-co/hypha-tools';
  • Source module: media

Declaration

text
export type VideoSourceKind = 'video' | 'playlist' | 'collection' | 'live' | 'unknown';