docs: add oauth2 tag

This commit is contained in:
Divlo 2022-08-29 17:37:00 +00:00
parent 7e305429b4
commit 8e69511e3e
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9
15 changed files with 15 additions and 14 deletions

View File

@ -22,7 +22,7 @@ export const serviceGenerator = {
type: 'list', type: 'list',
name: 'tag', name: 'tag',
message: 'tag', message: 'tag',
choices: ['users', 'guilds', 'channels', 'messages', 'members'] choices: ['users', 'oauth2', 'guilds', 'channels', 'messages', 'members']
}, },
{ {
type: 'confirm', type: 'confirm',

View File

@ -14,7 +14,7 @@ type Parameters = Static<typeof parametersSchema>
const deleteServiceSchema: FastifySchema = { const deleteServiceSchema: FastifySchema = {
description: 'DELETE a provider to authenticate with for a user.', description: 'DELETE a provider to authenticate with for a user.',
tags: ['users'] as string[], tags: ['oauth2'] as string[],
security: [ security: [
{ {
bearerAuth: [] bearerAuth: []

View File

@ -14,7 +14,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = { const getServiceSchema: FastifySchema = {
description: 'Discord OAuth2 - add-strategy', description: 'Discord OAuth2 - add-strategy',
tags: ['users'] as string[], tags: ['oauth2'] as string[],
security: [ security: [
{ {
bearerAuth: [] bearerAuth: []

View File

@ -17,7 +17,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = { const getServiceSchema: FastifySchema = {
description: 'Discord OAuth2 - callback-add-strategy', description: 'Discord OAuth2 - callback-add-strategy',
tags: ['users'] as string[], tags: ['oauth2'] as string[],
querystring: querySchema, querystring: querySchema,
response: { response: {
200: Type.String(), 200: Type.String(),

View File

@ -15,7 +15,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = { const getServiceSchema: FastifySchema = {
description: 'Discord OAuth2 - callback', description: 'Discord OAuth2 - callback',
tags: ['users'] as string[], tags: ['oauth2'] as string[],
querystring: querySchema, querystring: querySchema,
response: { response: {
200: Type.String(), 200: Type.String(),

View File

@ -13,7 +13,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = { const getServiceSchema: FastifySchema = {
description: 'Discord OAuth2 - signin', description: 'Discord OAuth2 - signin',
tags: ['users'] as string[], tags: ['oauth2'] as string[],
querystring: querySchema, querystring: querySchema,
response: { response: {
200: Type.String(), 200: Type.String(),

View File

@ -14,7 +14,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = { const getServiceSchema: FastifySchema = {
description: 'GitHub OAuth2 - add-strategy', description: 'GitHub OAuth2 - add-strategy',
tags: ['users'] as string[], tags: ['oauth2'] as string[],
security: [ security: [
{ {
bearerAuth: [] bearerAuth: []

View File

@ -17,7 +17,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = { const getServiceSchema: FastifySchema = {
description: 'GitHub OAuth2 - callback-add-strategy', description: 'GitHub OAuth2 - callback-add-strategy',
tags: ['users'] as string[], tags: ['oauth2'] as string[],
querystring: querySchema, querystring: querySchema,
response: { response: {
200: Type.String(), 200: Type.String(),

View File

@ -15,7 +15,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = { const getServiceSchema: FastifySchema = {
description: 'GitHub OAuth2 - callback', description: 'GitHub OAuth2 - callback',
tags: ['users'] as string[], tags: ['oauth2'] as string[],
querystring: querySchema, querystring: querySchema,
response: { response: {
200: Type.String(), 200: Type.String(),

View File

@ -13,7 +13,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = { const getServiceSchema: FastifySchema = {
description: 'GitHub OAuth2 - signin', description: 'GitHub OAuth2 - signin',
tags: ['users'] as string[], tags: ['oauth2'] as string[],
querystring: querySchema, querystring: querySchema,
response: { response: {
200: Type.String(), 200: Type.String(),

View File

@ -14,7 +14,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = { const getServiceSchema: FastifySchema = {
description: 'Google OAuth2 - add-strategy', description: 'Google OAuth2 - add-strategy',
tags: ['users'] as string[], tags: ['oauth2'] as string[],
security: [ security: [
{ {
bearerAuth: [] bearerAuth: []

View File

@ -17,7 +17,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = { const getServiceSchema: FastifySchema = {
description: 'Google OAuth2 - callback-add-strategy', description: 'Google OAuth2 - callback-add-strategy',
tags: ['users'] as string[], tags: ['oauth2'] as string[],
querystring: querySchema, querystring: querySchema,
response: { response: {
200: Type.String(), 200: Type.String(),

View File

@ -15,7 +15,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = { const getServiceSchema: FastifySchema = {
description: 'Google OAuth2 - callback', description: 'Google OAuth2 - callback',
tags: ['users'] as string[], tags: ['oauth2'] as string[],
querystring: querySchema, querystring: querySchema,
response: { response: {
200: Type.String(), 200: Type.String(),

View File

@ -13,7 +13,7 @@ type QuerySchemaType = Static<typeof querySchema>
const getServiceSchema: FastifySchema = { const getServiceSchema: FastifySchema = {
description: 'Google OAuth2 - signin', description: 'Google OAuth2 - signin',
tags: ['users'] as string[], tags: ['oauth2'] as string[],
querystring: querySchema, querystring: querySchema,
response: { response: {
200: Type.String(), 200: Type.String(),

View File

@ -16,6 +16,7 @@ export const swaggerOptions: FastifyDynamicSwaggerOptions = {
}, },
tags: [ tags: [
{ name: 'users' }, { name: 'users' },
{ name: 'oauth2' },
{ name: 'guilds' }, { name: 'guilds' },
{ name: 'channels' }, { name: 'channels' },
{ name: 'messages' }, { name: 'messages' },