Skip to content

Commit

Permalink
タグがないエンドポイントにタグを追加 (#133)
Browse files Browse the repository at this point in the history
Co-authored-by: pen <[email protected]>
  • Loading branch information
penginn-net and pen authored Jun 29, 2024
1 parent ed229e1 commit d6cf806
Show file tree
Hide file tree
Showing 59 changed files with 59 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { AbuseReportResolversRepository } from '@/models/_.js';
import { IdService } from '@/core/IdService.js';

export const meta = {
tags: ['admin'],
tags: ['admin', 'abuse-report-resolver'],
requireCredential: true,
secure: true,
requireAdmin: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type { AbuseReportResolversRepository } from '@/models/_.js';
import { ApiError } from '../../../error.js';

export const meta = {
tags: ['admin', 'abuse-report-resolver'],
requireCrendential: true,
kind: 'arr-delete', // ここにkindプロパティを追加
requireAdmin: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { QueryService } from '@/core/QueryService.js';
import type { AbuseReportResolversRepository } from '@/models/_.js';

export const meta = {
tags: ['admin', 'abuse-report-resolver'],
requireCredential: true,
kind: 'arr-list', // ここにkindプロパティを追加
secure: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import type { AbuseReportResolversRepository, MiAbuseReportResolver } from '@/mo
import { ApiError } from '../../../error.js';

export const meta = {
tags: ['admin', 'abuse-report-resolver'],
requireCredential: true,
kind: 'arr-update', // ここにkindプロパティを追加
secure: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { QueueService } from '@/core/QueueService.js';

export const meta = {
tags: ['admin', 'emoji'],
secure: true,
requireCredential: true,
requireRolePolicy: 'canManageCustomEmojis',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { DI } from '@/di-symbols.js';
import { UserEntityService } from '@/core/entities/UserEntityService.js';

export const meta = {
tags: ['bubble-game'],
allowGet: true,
cacheSec: 60,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { DI } from '@/di-symbols.js';
import { ApiError } from '../../error.js';

export const meta = {
tags: ['bubble-game', 'account'],
requireCredential: true,

kind: 'write:account',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { QueueService } from '@/core/QueueService.js';

export const meta = {
tags: ['admin', 'emoji'],
secure: true,
requireCredential: true,
limit: {
Expand Down
1 change: 1 addition & 0 deletions packages/backend/src/server/api/endpoints/i/2fa/done.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { GlobalEventService } from '@/core/GlobalEventService.js';
import { DI } from '@/di-symbols.js';

export const meta = {
tags: ['account', '2fa'],
requireCredential: true,

secure: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { ApiError } from '@/server/api/error.js';
import { UserAuthService } from '@/core/UserAuthService.js';

export const meta = {
tags: ['account', '2fa'],
requireCredential: true,

secure: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { DI } from '@/di-symbols.js';
import { ApiError } from '../../../error.js';

export const meta = {
tags: ['account', '2fa'],
requireCredential: true,

secure: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { ApiError } from '@/server/api/error.js';
import { UserAuthService } from '@/core/UserAuthService.js';

export const meta = {
tags: ['account', '2fa'],
requireCredential: true,

secure: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { ApiError } from '@/server/api/error.js';
import { UserAuthService } from '@/core/UserAuthService.js';

export const meta = {
tags: ['account', '2fa'],
requireCredential: true,

secure: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { ApiError } from '@/server/api/error.js';
import { UserAuthService } from '@/core/UserAuthService.js';

export const meta = {
tags: ['account', '2fa'],
requireCredential: true,

secure: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { ApiError } from '@/server/api/error.js';
import { UserAuthService } from '@/core/UserAuthService.js';

export const meta = {
tags: ['account', '2fa'],
requireCredential: true,

secure: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { DI } from '@/di-symbols.js';
import { ApiError } from '../../../error.js';

export const meta = {
tags: ['account', '2fa'],
requireCredential: true,

secure: true,
Expand Down
1 change: 1 addition & 0 deletions packages/backend/src/server/api/endpoints/i/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { DI } from '@/di-symbols.js';
import { IdService } from '@/core/IdService.js';

export const meta = {
tags: ['account'],
requireCredential: true,

secure: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { AppEntityService } from '@/core/entities/AppEntityService.js';
import { DI } from '@/di-symbols.js';

export const meta = {
tags: ['account'],
requireCredential: true,

secure: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { DI } from '@/di-symbols.js';
import { UserAuthService } from '@/core/UserAuthService.js';

export const meta = {
tags: ['account'],
requireCredential: true,

secure: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { AchievementService, ACHIEVEMENT_TYPES } from '@/core/AchievementService.js';

export const meta = {
tags: ['account'],
requireCredential: true,
prohibitMoved: true,
kind: 'write:account',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { DI } from '@/di-symbols.js';
import { UserAuthService } from '@/core/UserAuthService.js';

export const meta = {
tags: ['account'],
requireCredential: true,

secure: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { QueueService } from '@/core/QueueService.js';

export const meta = {
tags: ['account'],
secure: true,
requireCredential: true,
limit: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { QueueService } from '@/core/QueueService.js';

export const meta = {
tags: ['account'],
secure: true,
requireCredential: true,
limit: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { QueueService } from '@/core/QueueService.js';

export const meta = {
tags: ['account'],
secure: true,
requireCredential: true,
limit: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { QueueService } from '@/core/QueueService.js';

export const meta = {
tags: ['account'],
secure: true,
requireCredential: true,
limit: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { QueueService } from '@/core/QueueService.js';

export const meta = {
tags: ['account'],
secure: true,
requireCredential: true,
limit: {
Expand Down
1 change: 1 addition & 0 deletions packages/backend/src/server/api/endpoints/i/export-mute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { QueueService } from '@/core/QueueService.js';

export const meta = {
tags: ['account'],
secure: true,
requireCredential: true,
limit: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { QueueService } from '@/core/QueueService.js';

export const meta = {
tags: ['account'],
secure: true,
requireCredential: true,
limit: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { QueueService } from '@/core/QueueService.js';

export const meta = {
tags: ['account'],
secure: true,
requireCredential: true,
limit: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { DownloadService } from '@/core/DownloadService.js';
import { ApiError } from '../../error.js';

export const meta = {
tags: ['account'],
secure: true,
requireCredential: true,
prohibitMoved: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { DI } from '@/di-symbols.js';
import { ApiError } from '../../error.js';

export const meta = {
tags: ['account'],
secure: true,
requireCredential: true,
prohibitMoved: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { DI } from '@/di-symbols.js';
import { ApiError } from '../../error.js';

export const meta = {
tags: ['account'],
secure: true,
requireCredential: true,
prohibitMoved: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { DI } from '@/di-symbols.js';
import { ApiError } from '../../error.js';

export const meta = {
tags: ['account'],
secure: true,
requireCredential: true,
prohibitMoved: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { DI } from '@/di-symbols.js';
import { ApiError } from '../../error.js';

export const meta = {
tags: ['account'],
secure: true,
requireCredential: true,
prohibitMoved: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { GlobalEventService } from '@/core/GlobalEventService.js';
import { DI } from '@/di-symbols.js';

export const meta = {
tags: ['account'],
requireCredential: true,

secure: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { RegistryApiService } from '@/core/RegistryApiService.js';

export const meta = {
tags: ['account', 'registry'],
requireCredential: true,
kind: 'read:account',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { RegistryApiService } from '@/core/RegistryApiService.js';
import { ApiError } from '../../../error.js';

export const meta = {
tags: ['account', 'registry'],
requireCredential: true,
kind: 'read:account',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { RegistryApiService } from '@/core/RegistryApiService.js';
import { ApiError } from '../../../error.js';

export const meta = {
tags: ['account', 'registry'],
requireCredential: true,
kind: 'read:account',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { RegistryApiService } from '@/core/RegistryApiService.js';

export const meta = {
tags: ['account', 'registry'],
requireCredential: true,
kind: 'read:account',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { RegistryApiService } from '@/core/RegistryApiService.js';

export const meta = {
tags: ['account', 'registry'],
requireCredential: true,
kind: 'read:account',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { RegistryApiService } from '@/core/RegistryApiService.js';
import { ApiError } from '../../../error.js';

export const meta = {
tags: ['account', 'registry'],
requireCredential: true,
kind: 'write:account',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { RegistryApiService } from '@/core/RegistryApiService.js';

export const meta = {
tags: ['account', 'registry'],
requireCredential: true,
secure: true,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { RegistryApiService } from '@/core/RegistryApiService.js';

export const meta = {
tags: ['account', 'registry'],
requireCredential: true,
kind: 'write:account',
} as const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { AccessTokensRepository } from '@/models/_.js';
import { DI } from '@/di-symbols.js';

export const meta = {
tags: ['account'],
requireCredential: true,

secure: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { SigninEntityService } from '@/core/entities/SigninEntityService.js';
import { DI } from '@/di-symbols.js';

export const meta = {
tags: ['account'],
requireCredential: true,
secure: true,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { MetaService } from '@/core/MetaService.js';
import { ApiError } from '../../error.js';

export const meta = {
tags: ['account'],
requireCredential: true,

secure: true,
Expand Down
1 change: 1 addition & 0 deletions packages/backend/src/server/api/endpoints/page-push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { DI } from '@/di-symbols.js';
import { ApiError } from '../error.js';

export const meta = {
tags: ['pages'],
requireCredential: true,
secure: true,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Endpoint } from '@/server/api/endpoint-base.js';
import { ReversiService } from '@/core/ReversiService.js';

export const meta = {
tags: ['reversi', 'account'],
requireCredential: true,

kind: 'write:account',
Expand Down
1 change: 1 addition & 0 deletions packages/backend/src/server/api/endpoints/reversi/games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import type { ReversiGamesRepository } from '@/models/_.js';
import { QueryService } from '@/core/QueryService.js';

export const meta = {
tags: ['reversi'],
requireCredential: false,

res: {
Expand Down
Loading

0 comments on commit d6cf806

Please sign in to comment.