diff options
Diffstat (limited to 'src/temp/dm/muteChat.ts')
-rw-r--r-- | src/temp/dm/muteChat.ts | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/temp/dm/muteChat.ts b/src/temp/dm/muteChat.ts new file mode 100644 index 000000000..e116f2775 --- /dev/null +++ b/src/temp/dm/muteChat.ts @@ -0,0 +1,30 @@ +import {Headers, XRPCError} from '@atproto/xrpc' + +export interface QueryParams {} + +export interface InputSchema { + chatId: string + [k: string]: unknown +} + +export interface OutputSchema { + [k: string]: unknown +} + +export interface CallOptions { + headers?: Headers + qp?: QueryParams + encoding: 'application/json' +} + +export interface Response { + success: boolean + headers: Headers + data: OutputSchema +} + +export function toKnownErr(e: any) { + if (e instanceof XRPCError) { + } + return e +} |