diff options
Diffstat (limited to 'src/temp/dm/listChats.ts')
-rw-r--r-- | src/temp/dm/listChats.ts | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/temp/dm/listChats.ts b/src/temp/dm/listChats.ts new file mode 100644 index 000000000..0f9cb0c6a --- /dev/null +++ b/src/temp/dm/listChats.ts @@ -0,0 +1,32 @@ +import {Headers, XRPCError} from '@atproto/xrpc' + +import * as TempDmDefs from './defs' + +export interface QueryParams { + limit?: number + cursor?: string +} + +export type InputSchema = undefined + +export interface OutputSchema { + cursor?: string + chats: TempDmDefs.ChatView[] + [k: string]: unknown +} + +export interface CallOptions { + headers?: Headers +} + +export interface Response { + success: boolean + headers: Headers + data: OutputSchema +} + +export function toKnownErr(e: any) { + if (e instanceof XRPCError) { + } + return e +} |