about summary refs log tree commit diff
path: root/src/temp/dm/unmuteChat.ts
blob: e116f27756fdf8b143933b3873683339297dcc7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
}