diff options
Diffstat (limited to 'src/temp/dm/getChatLog.ts')
-rw-r--r-- | src/temp/dm/getChatLog.ts | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/temp/dm/getChatLog.ts b/src/temp/dm/getChatLog.ts new file mode 100644 index 000000000..9d310d908 --- /dev/null +++ b/src/temp/dm/getChatLog.ts @@ -0,0 +1,36 @@ +import {Headers, XRPCError} from '@atproto/xrpc' + +import * as TempDmDefs from './defs' + +export interface QueryParams { + cursor?: string +} + +export type InputSchema = undefined + +export interface OutputSchema { + cursor?: string + logs: ( + | TempDmDefs.LogBeginChat + | TempDmDefs.LogCreateMessage + | TempDmDefs.LogDeleteMessage + | {$type: string; [k: string]: unknown} + )[] + [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 +} |