interface AvatarSessionOptions {
    apiKey?: null | string;
    apiUrl?: null | string;
    avatarId?: string;
    avatarParticipantIdentity?: null | string;
    avatarParticipantName?: null | string;
    connOptions?: APIConnectOptions;
    maxDurationMs?: null | number;
}

Properties

apiKey?: null | string

Protoface API key. Falls back to the PROTOFACE_API_KEY env var.

apiUrl?: null | string

Override the Protoface API base URL.

avatarId?: string

Protoface avatar ID to render. Defaults to the stable stock avatar ID av_stock_001.

avatarParticipantIdentity?: null | string

Identity for the avatar participant. Defaults to protoface-avatar-agent.

avatarParticipantName?: null | string

Display name for the avatar participant. Defaults to protoface-avatar-agent.

connOptions?: APIConnectOptions

API retry/timeout options.

maxDurationMs?: null | number

Optional maximum session duration in milliseconds.