import { TaskList } from "./task-list"; import { User } from "./domain-objects/user"; /** * A simple typed description of the RTM api surface. This interface * is the source of truth that is used to type check the rest of the SDK * * @public */ export interface ApiMethods { "rtm.test.login": { requestArgs: Record; responseArgs: { user: { /** * The id of the user */ id: string; /** * The username of the user */ username: string; }; } & Record; }; "rtm.test.echo": { requestArgs: Record; responseArgs: { method: string; } & Record; }; "rtm.auth.checkToken": { requestArgs: { /** * The auth token to check */ auth_token: string; }; responseArgs: { auth: { token: string; perms: string; user: User; }; }; }; "rtm.auth.getToken": { requestArgs: { frob: string; }; responseArgs: { auth: { token: string; perms: string; user: User; }; }; }; "rtm.auth.getFrob": { requestArgs: Record; responseArgs: { frob: string; }; }; "rtm.tasks.getList": { requestArgs: { list_id?: string; filter?: string; last_sync?: string; callback?: string; }; responseArgs: { tasks: { list: TaskList[]; }; }; }; }