import { APIResource } from "../core/resource.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; export declare class SessionResource extends APIResource { /** * With the Beyond Presence Real-Time API you are able to turn audio and text into * hyper-realistic avatars in real-time. * * Once a session is created, the selected avatar will automatically join the * WebRTC room and will start streaming audio and video to the user. */ create(body: SessionCreateParams, options?: RequestOptions): APIPromise; /** * Get a Real-Time API session by ID. */ retrieve(id: string, options?: RequestOptions): APIPromise; /** * List all Real-Time API sessions that the owner of the API key has started. */ list(options?: RequestOptions): APIPromise; } /** * Represents a Beyond Presence Real-Time API session. */ export interface Session { /** * The unique identifier (ID) of the session. */ id: string; /** * The ID of the avatar used in the session. */ avatar_id: string; /** * The timestamp of when the session was created. */ created_at: string; /** * The LiveKit token used to join your LiveKit room. */ livekit_token: string; /** * The LiveKit URL you chose when creating your LiveKit project. */ livekit_url: string; } export type SessionListResponse = Array; export interface SessionCreateParams { /** * The ID of the avatar to use in the session. */ avatar_id: string; /** * The LiveKit token used to join your LiveKit room. */ livekit_token: string; /** * The LiveKit URL you chose when creating your LiveKit project. */ livekit_url: string; } export declare namespace SessionResource { export { type Session as Session, type SessionListResponse as SessionListResponse, type SessionCreateParams as SessionCreateParams, }; } //# sourceMappingURL=session.d.mts.map