diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2024-10-03 15:06:04 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-03 15:06:04 +0900 |
| commit | 83db116c46e64ad6a9a479cbd00e96030821c1e9 (patch) | |
| tree | 3e076893b668d11bd6d3129e8eb3bd8a6fe22c8f /packages/backend/src/models/Notification.ts | |
| parent | update deps (diff) | |
| download | misskey-83db116c46e64ad6a9a479cbd00e96030821c1e9.tar.gz misskey-83db116c46e64ad6a9a479cbd00e96030821c1e9.tar.bz2 misskey-83db116c46e64ad6a9a479cbd00e96030821c1e9.zip | |
enhance(backend): notify new login (#14673)
* wip
* Update CHANGELOG.md
* wip
* fix
* Update index.d.ts
* Update SigninService.ts
* Update MkNotification.vue
Diffstat (limited to 'packages/backend/src/models/Notification.ts')
| -rw-r--r-- | packages/backend/src/models/Notification.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/backend/src/models/Notification.ts b/packages/backend/src/models/Notification.ts index c1d3d42134..b7f8e94d69 100644 --- a/packages/backend/src/models/Notification.ts +++ b/packages/backend/src/models/Notification.ts @@ -3,12 +3,12 @@ * SPDX-License-Identifier: AGPL-3.0-only */ +import { userExportableEntities } from '@/types.js'; import { MiUser } from './User.js'; import { MiNote } from './Note.js'; import { MiAccessToken } from './AccessToken.js'; import { MiRole } from './Role.js'; import { MiDriveFile } from './DriveFile.js'; -import { userExportableEntities } from '@/types.js'; export type MiNotification = { type: 'note'; @@ -87,6 +87,10 @@ export type MiNotification = { exportedEntity: typeof userExportableEntities[number]; fileId: MiDriveFile['id']; } | { + type: 'login'; + id: string; + createdAt: string; +} | { type: 'app'; id: string; createdAt: string; |