mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 01:39:37 +02:00
Add typeOneOf filter to list notifications
This commit is contained in:
parent
8f35e76928
commit
0bf17d869c
11 changed files with 200 additions and 98 deletions
|
@ -2317,6 +2317,13 @@ paths:
|
|||
tags:
|
||||
- My Notifications
|
||||
parameters:
|
||||
- name: typeOneOf
|
||||
in: query
|
||||
description: only list notifications of these types
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/NotificationType'
|
||||
- name: unread
|
||||
in: query
|
||||
description: only list unread notifications
|
||||
|
@ -10718,58 +10725,83 @@ components:
|
|||
- `1` WEB
|
||||
|
||||
- `2` EMAIL
|
||||
NotificationType:
|
||||
type: integer
|
||||
enum:
|
||||
- 1
|
||||
- 2
|
||||
- 3
|
||||
- 4
|
||||
- 5
|
||||
- 6
|
||||
- 7
|
||||
- 8
|
||||
- 9
|
||||
- 10
|
||||
- 11
|
||||
- 12
|
||||
- 13
|
||||
- 14
|
||||
- 15
|
||||
- 16
|
||||
- 17
|
||||
- 18
|
||||
- 19
|
||||
- 20
|
||||
- 21
|
||||
- 22
|
||||
description: >
|
||||
Notification type. One of the following values:
|
||||
|
||||
- `1` NEW_VIDEO_FROM_SUBSCRIPTION
|
||||
|
||||
- `2` NEW_COMMENT_ON_MY_VIDEO
|
||||
|
||||
- `3` NEW_ABUSE_FOR_MODERATORS
|
||||
|
||||
- `4` BLACKLIST_ON_MY_VIDEO
|
||||
|
||||
- `5` UNBLACKLIST_ON_MY_VIDEO
|
||||
|
||||
- `6` MY_VIDEO_PUBLISHED
|
||||
|
||||
- `7` MY_VIDEO_IMPORT_SUCCESS
|
||||
|
||||
- `8` MY_VIDEO_IMPORT_ERROR
|
||||
|
||||
- `9` NEW_USER_REGISTRATION
|
||||
|
||||
- `10` NEW_FOLLOW
|
||||
|
||||
- `11` COMMENT_MENTION
|
||||
|
||||
- `12` VIDEO_AUTO_BLACKLIST_FOR_MODERATORS
|
||||
|
||||
- `13` NEW_INSTANCE_FOLLOWER
|
||||
|
||||
- `14` AUTO_INSTANCE_FOLLOWING
|
||||
|
||||
- `15` ABUSE_STATE_CHANGE
|
||||
|
||||
- `16` ABUSE_NEW_MESSAGE
|
||||
|
||||
- `17` NEW_PLUGIN_VERSION
|
||||
|
||||
- `18` NEW_PEERTUBE_VERSION
|
||||
|
||||
- `19` MY_VIDEO_STUDIO_EDITION_FINISHED
|
||||
|
||||
- `20` NEW_USER_REGISTRATION_REQUEST
|
||||
|
||||
- `21` NEW_LIVE_FROM_SUBSCRIPTION
|
||||
|
||||
- `22` MY_VIDEO_TRANSCRIPTION_GENERATED
|
||||
Notification:
|
||||
properties:
|
||||
id:
|
||||
$ref: '#/components/schemas/id'
|
||||
type:
|
||||
type: integer
|
||||
description: >
|
||||
Notification type, following the `UserNotificationType` enum:
|
||||
|
||||
- `1` NEW_VIDEO_FROM_SUBSCRIPTION
|
||||
|
||||
- `2` NEW_COMMENT_ON_MY_VIDEO
|
||||
|
||||
- `3` NEW_ABUSE_FOR_MODERATORS
|
||||
|
||||
- `4` BLACKLIST_ON_MY_VIDEO
|
||||
|
||||
- `5` UNBLACKLIST_ON_MY_VIDEO
|
||||
|
||||
- `6` MY_VIDEO_PUBLISHED
|
||||
|
||||
- `7` MY_VIDEO_IMPORT_SUCCESS
|
||||
|
||||
- `8` MY_VIDEO_IMPORT_ERROR
|
||||
|
||||
- `9` NEW_USER_REGISTRATION
|
||||
|
||||
- `10` NEW_FOLLOW
|
||||
|
||||
- `11` COMMENT_MENTION
|
||||
|
||||
- `12` VIDEO_AUTO_BLACKLIST_FOR_MODERATORS
|
||||
|
||||
- `13` NEW_INSTANCE_FOLLOWER
|
||||
|
||||
- `14` AUTO_INSTANCE_FOLLOWING
|
||||
|
||||
- `15` ABUSE_STATE_CHANGE
|
||||
|
||||
- `16` ABUSE_NEW_MESSAGE
|
||||
|
||||
- `17` NEW_PLUGIN_VERSION
|
||||
|
||||
- `18` NEW_PEERTUBE_VERSION
|
||||
|
||||
- `19` MY_VIDEO_STUDIO_EDITION_FINISHED
|
||||
|
||||
- `20` NEW_USER_REGISTRATION_REQUEST
|
||||
|
||||
- `21` NEW_LIVE_FROM_SUBSCRIPTION
|
||||
|
||||
- `22` MY_VIDEO_TRANSCRIPTION_GENERATED
|
||||
$ref: '#/components/schemas/NotificationType'
|
||||
read:
|
||||
type: boolean
|
||||
video:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue