diff --git a/src/index.ts b/src/index.ts index 87384c7..be03cfa 100644 --- a/src/index.ts +++ b/src/index.ts @@ -39,6 +39,12 @@ async function generate(): Promise { in: "header", name: "x-session-token", description: "Session is created by calling `/auth/login`.\n" + }, + 'Bot Token': { + type: "apiKey", + in: "header", + name: "x-bot-token", + description: "Bot tokens can be found by fetching `/bots/:id`.\n" } } } diff --git a/src/openapi/paths.ts b/src/openapi/paths.ts index c32c1aa..f439b39 100644 --- a/src/openapi/paths.ts +++ b/src/openapi/paths.ts @@ -57,6 +57,9 @@ export function routeAuthenticated(summary: string, description: string, obj: Om { 'User ID': [], 'Session Token': [] + }, + { + 'Bot Token': [] } ] }