@@ -24,6 +24,13 @@ export interface AccountAuthInfo {
2424 userId: string ;
2525}
2626
27+ // @public
28+ export interface AccountDataApi {
29+ delete(eventType : string ): Promise <void >;
30+ get(eventType : string ): Watchable <unknown >;
31+ set(eventType : string , content : unknown ): Promise <void >;
32+ }
33+
2734// @alpha @deprecated (undocumented)
2835export interface AliasCustomisations {
2936 // (undocumented)
@@ -37,6 +44,7 @@ export interface AliasCustomisations {
3744export interface Api extends LegacyModuleApiExtension , LegacyCustomisationsApiExtension , DialogApiExtension , AccountAuthApiExtension , ProfileApiExtension {
3845 // @alpha
3946 readonly builtins: BuiltinsApi ;
47+ readonly client: ClientApi ;
4048 readonly config: ConfigApi ;
4149 createRoot(element : Element ): Root ;
4250 // @alpha
@@ -46,6 +54,7 @@ export interface Api extends LegacyModuleApiExtension, LegacyCustomisationsApiEx
4654 readonly i18n: I18nApi ;
4755 readonly navigation: NavigationApi ;
4856 readonly rootNode: HTMLElement ;
57+ readonly stores: StoresApi ;
4958}
5059
5160// @alpha
@@ -65,6 +74,12 @@ export interface ChatExportCustomisations<ExportFormat, ExportType> {
6574 };
6675}
6776
77+ // @public
78+ export interface ClientApi {
79+ accountData: AccountDataApi ;
80+ getRoom: (id : string ) => Room | null ;
81+ }
82+
6883// @alpha @deprecated (undocumented)
6984export interface ComponentVisibilityCustomisations {
7085 shouldShowComponent? (component : " UIComponent.sendInvites" | " UIComponent.roomCreation" | " UIComponent.spaceCreation" | " UIComponent.exploreRooms" | " UIComponent.addIntegrations" | " UIComponent.filterContainer" | " UIComponent.roomOptionsMenu" ): boolean ;
@@ -312,11 +327,24 @@ export interface ProfileApiExtension {
312327 readonly profile: Watchable <Profile >;
313328}
314329
330+ // @public
331+ export interface Room {
332+ getLastActiveTimestamp: () => number ;
333+ id: string ;
334+ name: Watchable <string >;
335+ }
336+
315337// @alpha @deprecated (undocumented)
316338export interface RoomListCustomisations <Room > {
317339 isRoomVisible? (room : Room ): boolean ;
318340}
319341
342+ // @public
343+ export interface RoomListStoreApi {
344+ getRooms(): Watchable <Room []>;
345+ waitForReady(): Promise <void >;
346+ }
347+
320348// @alpha
321349export interface RoomViewProps {
322350 roomId? : string ;
@@ -335,6 +363,11 @@ export interface SpacePanelItemProps {
335363 tooltip? : string ;
336364}
337365
366+ // @public
367+ export interface StoresApi {
368+ roomListStore: RoomListStoreApi ;
369+ }
370+
338371// @public
339372export type Translations = Record <string , {
340373 [ietfLanguageTag : string ]: string ;
@@ -360,9 +393,14 @@ export type Variables = {
360393// @public
361394export class Watchable <T > {
362395 constructor (currentValue : T );
396+ // Warning: (ae-forgotten-export) The symbol "WatchFn" needs to be exported by the entry point index.d.ts
397+ //
363398 // (undocumented)
364- unwatch(listener : (value : T ) => void ): void ;
399+ protected readonly listeners: Set <WatchFn <T >>;
400+ protected onFirstWatch(): void ;
401+ protected onLastWatch(): void ;
365402 // (undocumented)
403+ unwatch(listener : (value : T ) => void ): void ;
366404 get value(): T ;
367405 set value(value : T );
368406 // (undocumented)
0 commit comments