mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 10:21:31 +03:00
31 lines
635 B
TypeScript
31 lines
635 B
TypeScript
import { joinError, joinProgress, joinResult } from ".";
|
|
import {Patp} from "../lib";
|
|
|
|
export type JoinError = typeof joinError[number];
|
|
|
|
export type JoinResult = typeof joinResult[number];
|
|
|
|
|
|
export type JoinProgress = typeof joinProgress[number];
|
|
|
|
export interface JoinRequest {
|
|
/**
|
|
* Whether to display the join request or not
|
|
*/
|
|
hidden: boolean;
|
|
/**
|
|
* Timestamp of when the request started
|
|
*/
|
|
started: number;
|
|
ship: Patp;
|
|
progress: JoinProgress;
|
|
shareContact: boolean;
|
|
autojoin: boolean;
|
|
app: 'graph' | 'groups';
|
|
invite: string[];
|
|
}
|
|
|
|
export interface JoinRequests {
|
|
[rid: string]: JoinRequest;
|
|
}
|