import * as fm from "../../../fetch.pb"; import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"; import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"; import * as AiInworldLanguage_codesLanguage_codes from "../language_codes/language_codes.pb"; import * as AiInworldPacketsPackets from "../packets/packets.pb"; import * as AiInworldVoicesBase_voice from "../voices/base_voice.pb"; import * as AiInworldVoicesVoices from "../voices/voices.pb"; export declare enum VoicePreset { VOICE_PRESET_UNSPECIFIED = "VOICE_PRESET_UNSPECIFIED", VOICE_PRESET_FEMALE_1 = "VOICE_PRESET_FEMALE_1", VOICE_PRESET_FEMALE_2 = "VOICE_PRESET_FEMALE_2", VOICE_PRESET_FEMALE_3 = "VOICE_PRESET_FEMALE_3", VOICE_PRESET_FEMALE_4 = "VOICE_PRESET_FEMALE_4", VOICE_PRESET_FEMALE_5 = "VOICE_PRESET_FEMALE_5", VOICE_PRESET_MALE_1 = "VOICE_PRESET_MALE_1", VOICE_PRESET_MALE_2 = "VOICE_PRESET_MALE_2", VOICE_PRESET_MALE_3 = "VOICE_PRESET_MALE_3", VOICE_PRESET_MALE_4 = "VOICE_PRESET_MALE_4", VOICE_PRESET_MALE_5 = "VOICE_PRESET_MALE_5", INWORLD_VOICE_PRESET_MALE_1 = "INWORLD_VOICE_PRESET_MALE_1", INWORLD_VOICE_PRESET_MALE_2 = "INWORLD_VOICE_PRESET_MALE_2", INWORLD_VOICE_PRESET_FEMALE_1 = "INWORLD_VOICE_PRESET_FEMALE_1", INWORLD_VOICE_PRESET_FEMALE_2 = "INWORLD_VOICE_PRESET_FEMALE_2", INWORLD_VOICE_PRESET_MALE_3 = "INWORLD_VOICE_PRESET_MALE_3", INWORLD_VOICE_PRESET_MALE_4 = "INWORLD_VOICE_PRESET_MALE_4", INWORLD_VOICE_PRESET_MALE_5 = "INWORLD_VOICE_PRESET_MALE_5", INWORLD_VOICE_PRESET_FEMALE_3 = "INWORLD_VOICE_PRESET_FEMALE_3", INWORLD_VOICE_PRESET_FEMALE_4 = "INWORLD_VOICE_PRESET_FEMALE_4", INWORLD_VOICE_PRESET_ROBOT_MALE_1 = "INWORLD_VOICE_PRESET_ROBOT_MALE_1", INWORLD_VOICE_PRESET_ROBOT_MALE_2 = "INWORLD_VOICE_PRESET_ROBOT_MALE_2", INWORLD_VOICE_PRESET_ROBOT_MALE_3 = "INWORLD_VOICE_PRESET_ROBOT_MALE_3", INWORLD_VOICE_PRESET_ROBOT_MALE_4 = "INWORLD_VOICE_PRESET_ROBOT_MALE_4", INWORLD_VOICE_PRESET_ROBOT_MALE_5 = "INWORLD_VOICE_PRESET_ROBOT_MALE_5", INWORLD_VOICE_PRESET_ROBOT_FEMALE_1 = "INWORLD_VOICE_PRESET_ROBOT_FEMALE_1", INWORLD_VOICE_PRESET_ROBOT_FEMALE_2 = "INWORLD_VOICE_PRESET_ROBOT_FEMALE_2", INWORLD_VOICE_PRESET_ROBOT_FEMALE_3 = "INWORLD_VOICE_PRESET_ROBOT_FEMALE_3", INWORLD_VOICE_PRESET_ROBOT_FEMALE_4 = "INWORLD_VOICE_PRESET_ROBOT_FEMALE_4", INWORLD_VOICE_PRESET_SPIKE = "INWORLD_VOICE_PRESET_SPIKE", INWORLD_VOICE_PRESET_TWILIGHT = "INWORLD_VOICE_PRESET_TWILIGHT", INWORLD_VOICE_PRESET_FLUTTERSHY = "INWORLD_VOICE_PRESET_FLUTTERSHY", INWORLD_VOICE_PRESET_ROBOT_SPIKE = "INWORLD_VOICE_PRESET_ROBOT_SPIKE", INWORLD_VOICE_PRESET_ROBOT_TWILIGHT = "INWORLD_VOICE_PRESET_ROBOT_TWILIGHT", INWORLD_VOICE_PRESET_ROBOT_FLUTTERSHY = "INWORLD_VOICE_PRESET_ROBOT_FLUTTERSHY" } export declare enum PreviousDialogDialogParticipant { UNKNOWN = "UNKNOWN", PLAYER = "PLAYER", CHARACTER = "CHARACTER" } export declare enum PreviousStateStateHolderStateFormat { STATE_FORMAT_UNKNOWN = "STATE_FORMAT_UNKNOWN", STATE_FORMAT_SESSION_BRAIN_STATE = "STATE_FORMAT_SESSION_BRAIN_STATE", STATE_FORMAT_EXTERNAL_BRAIN_STATE = "STATE_FORMAT_EXTERNAL_BRAIN_STATE" } export type CapabilitiesRequest = { audio?: boolean; text?: boolean; gestures?: boolean; interruptions?: boolean; triggers?: boolean; emotions?: boolean; turnBasedStt?: boolean; emotionStreaming?: boolean; silenceEvents?: boolean; phonemeInfo?: boolean; continuation?: boolean; sessionCancellation?: boolean; narratedActions?: boolean; regenerateResponse?: boolean; loadSceneInSession?: boolean; relations?: boolean; debugInfo?: boolean; ttsMp3?: boolean; }; export type UserRequest = { name?: string; id?: string; }; export type ClientRequest = { id?: string; version?: string; description?: string; }; export type LoadSceneRequest = { name?: string; capabilities?: CapabilitiesRequest; user?: UserRequest; client?: ClientRequest; audioSettings?: AudioSettings; userSettings?: UserSettings; sessionContinuation?: SessionContinuation; }; export type AudioSettings = { sttSampleRateHertz?: number; ttsSampleRateHertz?: number; }; export type UserSettingsPlayerProfilePlayerField = { fieldId?: string; fieldValue?: string; }; export type UserSettingsPlayerProfile = { fields?: UserSettingsPlayerProfilePlayerField[]; }; export type UserSettings = { viewTranscriptConsent?: boolean; playerProfile?: UserSettingsPlayerProfile; }; export type SessionContinuationContinuationInfo = { millisPassed?: string; }; export type SessionContinuation = { continuationInfo?: SessionContinuationContinuationInfo; previousDialog?: PreviousDialog; previousState?: Uint8Array; }; export type PreviousDialogPhrase = { talker?: PreviousDialogDialogParticipant; phrase?: string; }; export type PreviousDialog = { phrases?: PreviousDialogPhrase[]; }; export type PreviousStateStateHolder = { brainName?: string; state?: Uint8Array; previousDialog?: PreviousDialog; packets?: AiInworldPacketsPackets.InworldPacket[]; relationsToActors?: ActorRelations[]; stateFormat?: PreviousStateStateHolderStateFormat; }; export type PreviousState = { stateHolders?: PreviousStateStateHolder[]; }; export type LoadSceneResponseAgentCharacterAssets = { rpmModelUri?: string; rpmImageUriPortrait?: string; rpmImageUriPosture?: string; avatarImg?: string; avatarImgOriginal?: string; }; export type LoadSceneResponseAgent = { agentId?: string; brainName?: string; givenName?: string; characterAssets?: LoadSceneResponseAgentCharacterAssets; }; export type LoadSceneResponse = { agents?: LoadSceneResponseAgent[]; key?: string; previousState?: PreviousState; }; export type LogErrorRequest = { key?: string; message?: string; }; export type VoicePreviewRequest = { text?: string; emotions?: AiInworldPacketsPackets.EmotionEvent; voice?: AiInworldVoicesVoices.Voice; }; export type VoicePreviewResponse = { audio?: Uint8Array; }; export type ListBaseVoicesRequest = { languageCode?: string; ttsTypes?: AiInworldVoicesVoices.TTSType[]; language?: AiInworldLanguage_codesLanguage_codes.LanguageCode; }; export type ListBaseVoicesResponce = { googleVoices?: AiInworldVoicesBase_voice.BaseVoice[]; inworldVoices?: AiInworldVoicesBase_voice.BaseVoice[]; elevenLabsVoices?: AiInworldVoicesBase_voice.BaseVoice[]; inworldV2Voices?: AiInworldVoicesBase_voice.BaseVoice[]; }; export type AccessToken = { token?: string; type?: string; expirationTime?: GoogleProtobufTimestamp.Timestamp; sessionId?: string; }; export type GenerateTokenRequest = { key?: string; resources?: string[]; }; export type ActorRelationsRelation = { type?: string; label?: string; }; export type ActorRelations = { actorId?: string; relations?: ActorRelationsRelation[]; }; export declare class WorldEngine { static LoadScene(req: LoadSceneRequest, initReq?: fm.InitReq): Promise; static LogError(req: LogErrorRequest, initReq?: fm.InitReq): Promise; static VoicePreview(req: VoicePreviewRequest, initReq?: fm.InitReq): Promise; static ListBaseVoices(req: ListBaseVoicesRequest, initReq?: fm.InitReq): Promise; static GenerateToken(req: GenerateTokenRequest, initReq?: fm.InitReq): Promise; }