36 lines
844 B
TypeScript
36 lines
844 B
TypeScript
export declare type InviteChannel = {
|
|
channelId: number;
|
|
channelName: string;
|
|
depth: number;
|
|
};
|
|
export interface InviteUiVariables {
|
|
shortLink: boolean;
|
|
advancedSettings: boolean;
|
|
selectedChannel: number | 0;
|
|
channelPassword: {
|
|
raw: string | undefined;
|
|
hashed: string | undefined;
|
|
};
|
|
token: string | undefined;
|
|
expiresAfter: number | 0;
|
|
webClientUrlBase: {
|
|
override: string | undefined;
|
|
fallback: string;
|
|
};
|
|
readonly availableChannels: InviteChannel[];
|
|
readonly generatedLink: {
|
|
status: "generating";
|
|
} | {
|
|
status: "error";
|
|
message: string;
|
|
} | {
|
|
status: "success";
|
|
longUrl: string;
|
|
shortUrl: string;
|
|
expireDate: number | 0;
|
|
};
|
|
}
|
|
export interface InviteUiEvents {
|
|
action_close: {};
|
|
}
|