about summary refs log tree commit diff
path: root/src/temp/dm/getChat.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/temp/dm/getChat.ts')
-rw-r--r--src/temp/dm/getChat.ts30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/temp/dm/getChat.ts b/src/temp/dm/getChat.ts
new file mode 100644
index 000000000..d0a7b891c
--- /dev/null
+++ b/src/temp/dm/getChat.ts
@@ -0,0 +1,30 @@
+import {Headers, XRPCError} from '@atproto/xrpc'
+
+import * as TempDmDefs from './defs'
+
+export interface QueryParams {
+  chatId: string
+}
+
+export type InputSchema = undefined
+
+export interface OutputSchema {
+  chat: 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
+}