ActivityPub-federated video streaming platform using P2P directly in your web browser
add examples and descriptions, missing filters for abuses in openapi spec
Rigel Kent84f6e32c7be4
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yamlindex 82b8191b25..6c1ffee4f0 100644--- a/support/doc/api/openapi.yaml+++ b/support/doc/api/openapi.yaml@@ -31,6 +31,11 @@ info:sessions, and authenticate using this session token. One session token cancurrently be used at a time.+ ## Roles++ Accounts are given permissions based on their role. There are three roles on+ PeerTube: Administrator, Moderator, and User. See the [roles guide](https://docs.joinpeertube.org/#/admin-managing-users?id=roles) for a detail of their permissions.+# ErrorsThe API uses standard HTTP status codes to indicate the success or failure@@ -48,9 +53,29 @@ externalDocs:tags:- name: Accountsdescription: >- Using some features of PeerTube require authentication, for which Accounts+ Accounts encompass remote accounts discovered across the federation,+ and correspond to the main Actor, along with video channels a user can create, which+ are also Actors.++ When a comment is posted, it is done with your Account's Actor.+ - name: Users+ description: >+ Using some features of PeerTube require authentication, for which Userprovide different levels of permission as well as associated user- information. Accounts also encompass remote accounts discovered across the federation.+ information. Each user has a corresponding local Account for federation.+ - name: My User+ description: >+ Operations related to your own User, when logged-in.+ - name: My Subscriptions+ description: >+ Operations related to your subscriptions to video channels, their+ new videos, and how to keep up to date with their latest publications!+ - name: My Notifications+ description: >+ Notifications following new videos, follows or reports. They allow you+ to keep track of the interactions and overall important information that+ concerns you. You MAY set per-notification type delivery preference, to+ receive the info either by mail, by in-browser notification or both.- name: Configdescription: >Each server exposes public information regarding supported videos and@@ -66,15 +91,21 @@ tags:server then deals with inter-server ActivityPub operations and propagatesinformation across its social graph by posting activities to actors' inboxendpoints.+ externalDocs:+ url: https://docs.joinpeertube.org/#/admin-following-instances?id=instances-follows- name: Instance Redundancydescription: >Redundancy is part of the inter-server solidarity that PeerTube fosters.Manage the list of instances you wish to help by seeding their videos accordingto the policy of video selection of your choice. Note that you have a similar functionalityto mirror individual videos, see `Video Mirroring`.+ externalDocs:+ url: https://docs.joinpeertube.org/#/admin-following-instances?id=instances-redundancy- name: Pluginsdescription: >- Managign plugins installed from a local path or from NPM.+ Managing plugins installed from a local path or from NPM, or search for new ones.+ externalDocs:+ url: https://docs.joinpeertube.org/#/api-plugins- name: Video Abusesdescription: |Video abuses deal with reports of local or remote videos alike.@@ -292,6 +323,12 @@ paths:responses:'200':description: successful operation+ '400':+ x-summary: field inconsistencies+ description: >+ Arises when:+ - the emailer is disabled and the instance is open to registrations+ - webtorrent and hls are disabled with transcoding enabled - you need at least one enableddelete:summary: Delete instance runtime configurationtags:@@ -332,9 +369,16 @@ paths:content:application/json:schema:- type: array- items:- $ref: '#/components/schemas/Job'+ type: object+ properties:+ total:+ type: integer+ example: 1+ data:+ type: array+ maxItems: 100+ items:+ $ref: '#/components/schemas/Job''/server/following/{host}':delete:security:@@ -350,6 +394,7 @@ paths:description: 'The host to unfollow 'schema:type: string+ format: hostnameresponses:'201':description: successful operation@@ -428,6 +473,7 @@ paths:type: arrayitems:type: string+ format: hostnameuniqueItems: true/users:post:@@ -968,6 +1014,9 @@ paths:type: arrayitems:type: string+ examples:+ nightly:+ externalValue: https://peertube2.cpy.re/api/v1/videos/categories/videos/licences:get:summary: List available video licences@@ -982,6 +1031,9 @@ paths:type: arrayitems:type: string+ examples:+ nightly:+ externalValue: https://peertube2.cpy.re/api/v1/videos/licences/videos/languages:get:summary: List available video languages@@ -996,6 +1048,9 @@ paths:type: arrayitems:type: string+ examples:+ nightly:+ externalValue: https://peertube2.cpy.re/api/v1/videos/languages/videos/privacies:get:summary: List available video privacies@@ -1010,6 +1065,9 @@ paths:type: arrayitems:type: string+ examples:+ nightly:+ externalValue: https://peertube2.cpy.re/api/v1/videos/privacies'/videos/{id}':put:summary: Update a video@@ -1038,10 +1096,12 @@ paths:format: binarycategory:description: Video category- type: string+ type: integer+ example: 4licence:description: Video licence- type: string+ type: integer+ example: 2language:description: Video languagetype: string@@ -1058,7 +1118,7 @@ paths:type: stringnsfw:description: Whether or not this video contains sensitive content- type: string+ type: booleanname:description: Video nametype: string@@ -1073,7 +1133,7 @@ paths:maxLength: 30commentsEnabled:description: Enable or disable comments for this video- type: string+ type: booleanoriginallyPublishedAt:description: Date when the content was originally publishedtype: string@@ -1166,11 +1226,11 @@ paths:schema:$ref: '#/components/schemas/VideoUploadResponse''403':- description: 'The user video quota is exceeded with this video.'+ description: user video quota is exceeded with this video'408':- description: 'Upload has timed out'+ description: upload has timed out'422':- description: 'Invalid input file.'+ description: invalid input filerequestBody:content:multipart/form-data:@@ -1196,13 +1256,15 @@ paths:$ref: '#/components/schemas/VideoPrivacySet'category:description: Video category- type: string+ type: integer+ example: 4licence:description: Video licencetype: stringlanguage:description: Video language- type: string+ type: integer+ example: 2description:description: Video descriptiontype: string@@ -1214,7 +1276,7 @@ paths:type: stringnsfw:description: Whether or not this video contains sensitive content- type: string+ type: booleanname:description: Video nametype: string@@ -1230,7 +1292,7 @@ paths:maxLength: 30commentsEnabled:description: Enable or disable comments for this video- type: string+ type: booleanoriginallyPublishedAt:description: Date when the content was originally publishedtype: string@@ -1380,6 +1442,59 @@ paths:tags:- Video Abusesparameters:+ - name: id+ in: query+ description: only list the report with this id+ schema:+ type: integer+ - name: predefinedReason+ in: query+ description: predefined reason the listed reports should contain+ schema:+ type: string+ enum:+ - violentOrAbusive+ - hatefulOrAbusive+ - spamOrMisleading+ - privacy+ - rights+ - serverRules+ - thumbnails+ - captions+ - name: search+ in: query+ description: plain search that will match with video titles, reporter names and more+ schema:+ type: string+ - name: state+ in: query+ description: 'The video playlist privacy (Pending = `1`, Rejected = `2`, Accepted = `3`)'+ schema:+ type: integer+ enum:+ - 1+ - 2+ - 3+ - name: searchReporter+ in: query+ description: only list reports of a specific reporter+ schema:+ type: string+ - name: searchReportee+ description: only list reports of a specific reportee+ in: query+ schema:+ type: string+ - name: searchVideo+ in: query+ description: only list reports of a specific video+ schema:+ type: string+ - name: searchVideoChannel+ in: query+ description: only list reports of a specific video channel+ schema:+ type: string- $ref: '#/components/parameters/start'- $ref: '#/components/parameters/count'- $ref: '#/components/parameters/abusesSort'@@ -1412,6 +1527,7 @@ paths:reason:description: Reason why the user reports this videotype: string+ minLength: 4predefinedReasons:description: Reason categories that help triage reportstype: array@@ -1429,14 +1545,18 @@ paths:startAt:type: integerdescription: Timestamp in the video that marks the beginning of the report+ minimum: 0endAt:type: integerdescription: Timestamp in the video that marks the ending of the report+ minimum: 0required:- reasonresponses:'204':description: successful operation+ '400':+ description: incorrect request parameters'/videos/{id}/abuse/{abuseId}':put:summary: Update an abuse@@ -1446,11 +1566,6 @@ paths:- moderatortags:- Video Abuses- responses:- '204':- description: successful operation- '404':- description: video abuse not foundparameters:- $ref: '#/components/parameters/idOrUUID'- $ref: '#/components/parameters/abuseId'@@ -1464,23 +1579,28 @@ paths:$ref: '#/components/schemas/VideoAbuseStateSet'moderationComment:type: string- description: 'Update the comment of the video abuse for other admin/moderators'+ description: Update the report comment visible only to the moderation team+ responses:+ '204':+ description: successful operation+ '404':+ description: video abuse not founddelete:+ tags:+ - Video Abusessummary: Delete an abusesecurity:- OAuth2:- admin- moderator- tags:- - Video Abuses+ parameters:+ - $ref: '#/components/parameters/idOrUUID'+ - $ref: '#/components/parameters/abuseId'responses:'204':description: successful operation'404':description: block not found- parameters:- - $ref: '#/components/parameters/idOrUUID'- - $ref: '#/components/parameters/abuseId''/videos/{id}/blacklist':post:@@ -1521,6 +1641,24 @@ paths:- admin- moderatorparameters:+ - name: type+ in: query+ description: >+ list only blocks that match this type:++ - `1`: manual block++ - `2`: automatic block that needs review+ schema:+ type: integer+ enum:+ - 1+ - 2+ - name: search+ in: query+ description: plain search that will match with video titles, and more+ schema:+ type: string- $ref: '#/components/parameters/start'- $ref: '#/components/parameters/count'- $ref: '#/components/parameters/blacklistsSort'@@ -1530,9 +1668,15 @@ paths:content:application/json:schema:- type: array- items:- $ref: '#/components/schemas/VideoBlacklist'+ type: object+ properties:+ total:+ type: integer+ example: 1+ data:+ type: array+ items:+ $ref: '#/components/schemas/VideoBlacklist'/videos/{id}/captions:get:summary: List captions of a video@@ -1550,6 +1694,7 @@ paths:properties:total:type: integer+ example: 1data:type: arrayitems:@@ -1607,9 +1752,15 @@ paths:content:application/json:schema:- type: array- items:- $ref: '#/components/schemas/VideoChannel'+ type: object+ properties:+ total:+ type: integer+ example: 1+ data:+ type: array+ items:+ $ref: '#/components/schemas/VideoChannel'post:summary: Create a video channelsecurity:@@ -1706,6 +1857,9 @@ paths:type: arrayitems:type: string+ examples:+ nightly:+ externalValue: https://peertube2.cpy.re/api/v1/video-playlists/privacies/video-playlists:get:@@ -1722,9 +1876,15 @@ paths:content:application/json:schema:- type: array- items:- $ref: '#/components/schemas/VideoPlaylist'+ type: object+ properties:+ total:+ type: integer+ example: 1+ data:+ type: array+ items:+ $ref: '#/components/schemas/VideoPlaylist'post:summary: Create a video playlistdescription: 'If the video playlist is set as public, the videoChannelId is mandatory.'@@ -2003,6 +2163,14 @@ paths:- Accountsparameters:- $ref: '#/components/parameters/name'+ - name: withStats+ in: query+ description: include view statistics for the last 30 days (only if authentified as the account user)+ schema:+ type: boolean+ - $ref: '#/components/parameters/start'+ - $ref: '#/components/parameters/count'+ - $ref: '#/components/parameters/sort'responses:'200':description: successful operation@@ -2142,6 +2310,12 @@ paths:responses:'204':description: successful operation+ '403':+ description: cannot remove comment of another user+ '404':+ description: comment or video does not exist+ '409':+ description: comment is already deleted'/videos/{id}/rate':put:summary: Like/dislike a video@@ -2160,6 +2334,16 @@ paths:- Searchsummary: Search videosparameters:+ - name: search+ in: query+ required: true+ allowEmptyValue: false+ description: >+ String to search. If the user can make a remote URI search, and the string is an URI then the+ PeerTube instance will fetch the remote object and add it to its database. Then,+ you can use the REST API to fetch the complete video information and interact with it.+ schema:+ type: string- $ref: '#/components/parameters/categoryOneOf'- $ref: '#/components/parameters/tagsOneOf'- $ref: '#/components/parameters/tagsAllOf'@@ -2172,52 +2356,37 @@ paths:- $ref: '#/components/parameters/count'- $ref: '#/components/parameters/searchTarget'- $ref: '#/components/parameters/videosSearchSort'- - name: search- in: query- required: true- description: >- String to search. If the user can make a remote URI search, and the string is an URI then the- PeerTube instance will fetch the remote object and add it to its database. Then,- you can use the REST API to fetch the complete video information and interact with it.- schema:- type: string- name: startDatein: query- required: truedescription: Get videos that are published after this dateschema:type: stringformat: date-time- name: endDatein: query- required: truedescription: Get videos that are published before this dateschema:type: stringformat: date-time- name: originallyPublishedStartDatein: query- required: truedescription: Get videos that are originally published after this dateschema:type: stringformat: date-time- name: originallyPublishedEndDatein: query- required: truedescription: Get videos that are originally published before this dateschema:type: stringformat: date-time- name: durationMinin: query- required: truedescription: Get videos that have this minimum durationschema:type: integer- name: durationMaxin: query- required: truedescription: Get videos that have this maximum durationschema:type: integer@@ -2234,10 +2403,6 @@ paths:- Searchsummary: Search channelsparameters:- - $ref: '#/components/parameters/start'- - $ref: '#/components/parameters/count'- - $ref: '#/components/parameters/searchTarget'- - $ref: '#/components/parameters/sort'- name: searchin: queryrequired: true@@ -2247,6 +2412,10 @@ paths:you can use the REST API to fetch the complete channel information and interact with it.schema:type: string+ - $ref: '#/components/parameters/start'+ - $ref: '#/components/parameters/count'+ - $ref: '#/components/parameters/searchTarget'+ - $ref: '#/components/parameters/sort'responses:'200':description: successful operation@@ -2286,6 +2455,7 @@ paths:properties:accountName:type: string+ example: [email protected]description: account to block, in the form `username@domain`required:- accountName@@ -2342,11 +2512,12 @@ paths:schema:type: objectproperties:- accountName:+ host:type: string+ format: hostnamedescription: server domain to blockrequired:- - accountName+ - hostresponses:'200':description: successful operation@@ -2367,6 +2538,7 @@ paths:description: server domain to unblockschema:type: string+ format: hostnameresponses:'201':description: successful operation@@ -2387,6 +2559,7 @@ paths:description: server domain to mirrorschema:type: string+ format: hostnamerequestBody:content:application/json:@@ -2447,7 +2620,7 @@ paths:type: objectproperties:videoId:- type: string+ type: integerrequired:- videoIdresponses:@@ -2584,6 +2757,9 @@ paths:description: 'limit listing to a specific video channel'schema:type: string+ - $ref: '#/components/parameters/sort'+ - $ref: '#/components/parameters/nsfw'+ - $ref: '#/components/parameters/filter'responses:'204':description: successful operation@@ -2596,6 +2772,9 @@ paths:application/xml:schema:$ref: '#/components/schemas/VideosForXML'+ examples:+ nightly:+ externalValue: https://peertube2.cpy.re/feeds/videos.xml?filter=localapplication/rss+xml:schema:$ref: '#/components/schemas/VideosForXML'@@ -2687,6 +2866,7 @@ paths:properties:npmName:type: string+ example: peertube-plugin-auth-ldaprequired:- npmNameadditionalProperties: false@@ -2719,6 +2899,7 @@ paths:properties:npmName:type: string+ example: peertube-plugin-auth-ldaprequired:- npmNameadditionalProperties: false@@ -2752,6 +2933,8 @@ paths:properties:npmName:type: string+ description: name of the plugin/theme in its package.json+ example: peertube-plugin-auth-ldaprequired:- npmNameresponses:@@ -2768,11 +2951,7 @@ paths:- OAuth2:- adminparameters:- - name: npmName- in: path- required: true- schema:- type: string+ - $ref: '#/components/parameters/npmName'responses:'200':description: successful operation@@ -2791,11 +2970,7 @@ paths:- OAuth2:- adminparameters:- - name: npmName- in: path- required: true- schema:- type: string+ - $ref: '#/components/parameters/npmName'requestBody:content:application/json:@@ -2816,11 +2991,7 @@ paths:- Pluginssummary: Get a plugin's public settingsparameters:- - name: npmName- in: path- required: true- schema:- type: string+ - $ref: '#/components/parameters/npmName'responses:'200':description: successful operation@@ -2840,11 +3011,7 @@ paths:- OAuth2:- adminparameters:- - name: npmName- in: path- required: true- schema:- type: string+ - $ref: '#/components/parameters/npmName'responses:'200':description: successful operation@@ -2871,6 +3038,7 @@ components:description: Offset used to paginate resultsschema:type: integer+ minimum: 0count:name: countin: query@@ -2878,15 +3046,17 @@ components:description: "Number of items to return"schema:type: integer+ default: 15maximum: 100minimum: 1sort:name: sortin: queryrequired: false- description: Sort column (`-createdAt` for example)+ description: Sort columnschema:type: string+ example: -createdAtsearchTarget:name: searchTargetin: query@@ -2896,11 +3066,11 @@ components:**Warning**: If you choose to make an index search, PeerTube will get results from a third party service.- It means the instance may not know the objects you fetched. If you want to load video/channel information:+ It means the instance may not yet know the objects you fetched. If you want to load video/channel information:* If the current user has the ability to make a remote URI search (this information is available in the config endpoint),then reuse the search API to make a search using the object URI so PeerTube instance fetches the remote object and fill its database.After that, you can use the classic REST API endpoints to fetch the complete object or interact with it- * If the current user has not the ability to make a remote URI search, then redirect the user on the origin instance or fetch+ * If the current user doesn't have the ability to make a remote URI search, then redirect the user on the origin instance or fetchthe data from the origin instance APIschema:type: string@@ -2998,11 +3168,10 @@ components:name: namein: pathrequired: true- description: >-- The name of the account (`chocobozzz` or `[email protected]` for- example)+ description: The name of the accountschema:type: string+ example: chocobozzz | [email protected]id:name: idin: path@@ -3010,13 +3179,21 @@ components:description: The user idschema:type: integer+ minimum: 0+ example: 42idOrUUID:name: idin: pathrequired: truedescription: The object id or uuidschema:- type: string+ oneOf:+ - type: integer+ minimum: 0+ example: 42+ - type: string+ format: uuid+ example: 9c9de5e8-0a1e-484a-b099-e80766180a6dplaylistElementId:name: playlistElementIdin: path@@ -3042,16 +3219,18 @@ components:name: channelHandlein: pathrequired: true- description: "The video channel handle (example: '[email protected]' or 'my_username')"+ description: The video channel handleschema:type: string+ example: my_username | [email protected]subscriptionHandle:name: subscriptionHandlein: pathrequired: true- description: "The subscription handle (example: '[email protected]' or 'my_username')"+ description: The subscription handleschema:type: string+ example: my_username | [email protected]threadId:name: threadIdin: path@@ -3070,7 +3249,7 @@ components:name: categoryOneOfin: queryrequired: false- description: category id of the video (see /videos/categories)+ description: category id of the video (see [/videos/categories](#tag/Video/paths/~1videos~1categories/get))schema:oneOf:- type: integer@@ -3109,7 +3288,7 @@ components:name: languageOneOfin: queryrequired: false- description: language id of the video (see /videos/languages). Use `_unknown` to filter on videos that don't have a video language+ description: language id of the video (see [/videos/languages](#tag/Video/paths/~1videos~1languages/get)). Use `_unknown` to filter on videos that don't have a video languageschema:oneOf:- type: string@@ -3122,7 +3301,7 @@ components:name: licenceOneOfin: queryrequired: false- description: licence id of the video (see /videos/licences)+ description: licence id of the video (see [/videos/licences](#tag/Video/paths/~1videos~1licences/get))schema:oneOf:- type: integer@@ -3174,6 +3353,15 @@ components:type: arrayitems:type: string+ format: uri+ npmName:+ name: npmName+ in: path+ required: true+ description: name of the plugin/theme on npmjs.com or in its package.json+ schema:+ type: string+ example: peertube-plugin-auth-ldapsecuritySchemes:OAuth2:description: >@@ -3306,14 +3494,17 @@ components:- serverRules- thumbnails- captions+ example: [spamOrMisleading]VideoResolutionConstant:properties:id:type: integerdescription: 'Video resolution (240, 360, 720 ...)'+ example: 240label:type: string+ example: 240pVideoScheduledUpdate:properties:privacy:@@ -3334,8 +3525,10 @@ components:type: stringurl:type: string+ format: urlhost:type: string+ format: hostnameavatar:nullable: trueallOf:@@ -3350,8 +3543,10 @@ components:type: stringurl:type: string+ format: urlhost:type: string+ format: hostnameavatar:nullable: trueallOf:@@ -3379,16 +3574,21 @@ components:description: 'Video file size in bytes'torrentUrl:type: string+ format: urltorrentDownloadUrl:type: string+ format: urlfileUrl:type: string+ format: urlfileDownloadUrl:type: string+ format: urlfps:type: numbermetadataUrl:type: string+ format: urlVideoStreamingPlaylists:properties:id:@@ -3400,8 +3600,10 @@ components:description: 'Playlist type (HLS = `1`)'playlistUrl:type: string+ format: urlsegmentsSha256Url:type: string+ format: urlfiles:type: arrayitems:@@ -3413,28 +3615,38 @@ components:properties:baseUrl:type: string+ format: urlVideoInfo:properties:id:type: integeruuid:type: string+ format: uuid+ example: 9c9de5e8-0a1e-484a-b099-e80766180a6dname:type: stringVideo:properties:id:type: integer+ example: 8uuid:type: string+ format: uuid+ example: 9c9de5e8-0a1e-484a-b099-e80766180a6dcreatedAt:type: string+ format: date-timepublishedAt:type: string+ format: date-timeupdatedAt:type: string+ format: date-timeoriginallyPublishedAt:type: string+ format: date-timecategory:$ref: '#/components/schemas/VideoConstantNumber'licence:@@ -3447,22 +3659,30 @@ components:type: stringduration:type: integer+ example: 1419isLocal:type: booleanname:type: string+ example: What is PeerTube?thumbnailPath:type: string+ example: /static/thumbnails/a65bc12f-9383-462e-81ae-8207e8b434ee.jpgpreviewPath:type: string+ example: /static/previews/a65bc12f-9383-462e-81ae-8207e8b434ee.jpgembedPath:type: string+ example: /videos/embed/a65bc12f-9383-462e-81ae-8207e8b434eeviews:type: integer+ example: 1337likes:type: integer+ example: 42dislikes:type: integer+ example: 7nsfw:type: booleanwaitTranscoding:@@ -3499,6 +3719,7 @@ components:type: stringsupport:type: string+ example: Please support my work on <insert crowdfunding plateform>! <3channel:$ref: '#/components/schemas/VideoChannel'account:@@ -3507,6 +3728,7 @@ components:type: arrayitems:type: string+ example: [flowers, gardening]files:type: arrayitems:@@ -3519,6 +3741,7 @@ components:type: arrayitems:type: string+ format: urlstreamingPlaylists:type: arrayitems:@@ -3529,8 +3752,14 @@ components:type: integerfileUrl:type: string+ format: urlstrategy:type: string+ enum:+ - manual+ - most-views+ - trending+ - recently-addedsize:type: integercreatedAt:@@ -3550,8 +3779,11 @@ components:type: stringurl:type: string+ format: urluuid:type: string+ format: uuid+ example: 9c9de5e8-0a1e-484a-b099-e80766180a6dredundancies:type: objectproperties:@@ -3574,37 +3806,42 @@ components:description: 'The video import state (Pending = `1`, Success = `2`, Failed = `3`)'label:type: string+ example: PendingVideoImport:properties:id:type: integer+ example: 2targetUrl:type: string+ format: url+ example: https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6dmagnetUri:type: string+ format: uri+ example: magnet:?xs=https%3A%2F%2Fframatube.org%2Fstatic%2Ftorrents%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.torrent&xt=urn:btih:38b4747ff788b30bf61f59d1965cd38f9e48e01f&dn=What+is+PeerTube%3F&tr=wss%3A%2F%2Fframatube.org%2Ftracker%2Fsocket&tr=https%3A%2F%2Fframatube.org%2Ftracker%2Fannounce&ws=https%3A%2F%2Fframatube.org%2Fstatic%2Fwebseed%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4torrentName:type: stringstate:- type: object- properties:- id:- $ref: '#/components/schemas/VideoImportStateConstant'- label:- type: string+ $ref: '#/components/schemas/VideoImportStateConstant'error:type: stringcreatedAt:type: string+ format: date-timeupdatedAt:type: string+ format: date-timevideo:$ref: '#/components/schemas/Video'VideoAbuse:properties:id:type: integer+ example: 7reason:type: string+ example: The video is a spampredefinedReasons:$ref: '#/components/schemas/VideoAbusePredefinedReasons'reporterAccount:@@ -3613,6 +3850,7 @@ components:$ref: '#/components/schemas/VideoAbuseStateConstant'moderationComment:type: string+ example: Decided to ban the server since it spams us regularlyvideo:type: objectproperties:@@ -3622,8 +3860,11 @@ components:type: stringuuid:type: string+ format: uuid+ example: 9c9de5e8-0a1e-484a-b099-e80766180a6dcreatedAt:type: string+ format: date-timeVideoBlacklist:properties:id:@@ -3632,12 +3873,16 @@ components:type: integercreatedAt:type: string+ format: date-timeupdatedAt:type: string+ format: date-timename:type: stringuuid:type: string+ format: uuid+ example: 9c9de5e8-0a1e-484a-b099-e80766180a6ddescription:type: stringduration:@@ -3665,18 +3910,24 @@ components:type: integeruuid:type: string+ format: uuid+ example: 9c9de5e8-0a1e-484a-b099-e80766180a6dVideoPlaylist:properties:id:type: integercreatedAt:type: string+ format: date-timeupdatedAt:type: string+ format: date-timedescription:type: stringuuid:type: string+ format: uuid+ example: 9c9de5e8-0a1e-484a-b099-e80766180a6ddisplayName:type: stringisLocal:@@ -3699,6 +3950,7 @@ components:type: integerurl:type: string+ format: urltext:type: stringthreadId:@@ -3709,8 +3961,10 @@ components:type: integercreatedAt:type: string+ format: date-timeupdatedAt:type: string+ format: date-timetotalRepliesFromVideoAuthor:type: integertotalReplies:@@ -3737,18 +3991,22 @@ components:type: stringcreatedAt:type: string+ format: date-timeupdatedAt:type: string+ format: date-timeActorInfo:properties:id:type: integer+ example: 11name:type: stringdisplayName:type: stringhost:type: string+ format: hostnameavatar:nullable: truetype: object@@ -3759,20 +4017,25 @@ components:properties:id:type: integer+ example: 11url:type: string+ format: urlname:type: stringhost:type: string+ format: hostnamefollowingCount:type: integerfollowersCount:type: integercreatedAt:type: string+ format: date-timeupdatedAt:type: string+ format: date-timeavatar:$ref: '#/components/schemas/Avatar'Account:@@ -3781,73 +4044,17 @@ components:- properties:userId:type: string+ example: 2displayName:type: stringdescription:type: string- User:- properties:- id:- type: integer- username:- type: string- email:- type: string- theme:- type: string- description: 'Theme enabled by this user'- emailVerified:- type: boolean- description: 'Has the user confirmed their email address?'- nsfwPolicy:- $ref: '#/components/schemas/NSFWPolicy'- webtorrentEnabled:- type: boolean- autoPlayVideo:- type: boolean- description: 'Automatically start playing the video on the watch page'- role:- $ref: '#/components/schemas/UserRole'- roleLabel:- type: string- enum:- - User- - Moderator- - Administrator- videoQuota:- type: integer- videoQuotaDaily:- type: integer- videosCount:- type: integer- videoAbusesCount:- type: integer- videoAbusesAcceptedCount:- type: integer- videoAbusesCreatedCount:- type: integer- videoCommentsCount:- type: integer- noInstanceConfigWarningModal:- type: boolean- noWelcomeModal:- type: boolean- blocked:- type: boolean- blockedReason:- type: string- createdAt:- type: string- account:- $ref: '#/components/schemas/Account'- videoChannels:- type: array- items:- $ref: '#/components/schemas/VideoChannel'UserWatchingVideo:properties:currentTime:type: integer+ description: timestamp within the video, in seconds+ example: 5ServerConfig:properties:instance:@@ -4044,6 +4251,7 @@ components:properties:indexUrl:type: string+ format: urlServerConfigAbout:properties:instance:@@ -4125,6 +4333,7 @@ components:properties:email:type: string+ format: emailcontactForm:type: objectproperties:@@ -4223,38 +4432,61 @@ components:- acceptedcreatedAt:type: string+ format: date-timeupdatedAt:type: string+ format: date-timeJob:properties:id:type: integer+ minimum: 0+ example: 42state:type: stringenum:- - pending- - processing- - error- - success- category:+ - active+ - completed+ - failed+ - waiting+ - delayed+ type:type: stringenum:- - transcoding- - activitypub-http- handlerName:- type: string- handlerInputData:- type: string+ - activitypub-http-unicast+ - activitypub-http-broadcast+ - activitypub-http-fetcher+ - activitypub-follow+ - video-file-import+ - video-transcoding+ - video-import+ - videos-views+ - activitypub-refresher+ - video-redundancy+ data:+ type: object+ additionalProperties: true+ error:+ type: object+ additionalProperties: truecreatedAt:type: string- updatedAt:+ format: date-time+ finishedOn:type: string+ format: date-time+ processedOn:+ type: string+ format: date-timeAddUserResponse:properties:id:type: integeruuid:type: string+ format: uuid+ example: 9c9de5e8-0a1e-484a-b099-e80766180a6dVideoUploadResponse:properties:video:@@ -4262,14 +4494,19 @@ components:properties:id:type: integer+ example: 8uuid:type: string+ format: uuid+ example: 9c9de5e8-0a1e-484a-b099-e80766180a6dCommentThreadResponse:properties:total:type: integer+ example: 1data:type: array+ maxItems: 100items:$ref: '#/components/schemas/VideoComment'CommentThreadPostResponse:@@ -4280,31 +4517,103 @@ components:properties:total:type: integer+ example: 1data:type: array+ maxItems: 100items:$ref: '#/components/schemas/Video'+ User:+ properties:+ id:+ type: integer+ readOnly: true+ username:+ type: string+ description: The user username+ minLength: 1+ maxLength: 50+ email:+ type: string+ format: email+ description: The user email+ theme:+ type: string+ description: Theme enabled by this user+ emailVerified:+ type: boolean+ description: Has the user confirmed their email address?+ nsfwPolicy:+ $ref: '#/components/schemas/NSFWPolicy'+ webtorrentEnabled:+ type: boolean+ description: Enable P2P in the player+ autoPlayVideo:+ type: boolean+ description: Automatically start playing the video on the watch page+ role:+ $ref: '#/components/schemas/UserRole'+ roleLabel:+ type: string+ enum:+ - User+ - Moderator+ - Administrator+ videoQuota:+ type: integer+ description: The user video quota+ videoQuotaDaily:+ type: integer+ description: The user daily video quota+ videosCount:+ type: integer+ videoAbusesCount:+ type: integer+ videoAbusesAcceptedCount:+ type: integer+ videoAbusesCreatedCount:+ type: integer+ videoCommentsCount:+ type: integer+ noInstanceConfigWarningModal:+ type: boolean+ noWelcomeModal:+ type: boolean+ blocked:+ type: boolean+ blockedReason:+ type: string+ createdAt:+ type: string+ account:+ $ref: '#/components/schemas/Account'+ videoChannels:+ type: array+ items:+ $ref: '#/components/schemas/VideoChannel'AddUser:properties:username:type: string- description: 'The user username'+ description: The user usernameminLength: 1maxLength: 50password:type: string- description: 'The user password. If the smtp server is configured, you can leave empty and an email will be sent'+ format: password+ description: The user password. If the smtp server is configured, you can leave empty and an email will be sentminLength: 6maxLength: 255email:type: string- description: 'The user email. MUST be in the format of an email address.'+ format: email+ description: The user emailvideoQuota:- type: string- description: 'The user video quota'+ type: integer+ description: The user video quotavideoQuotaDaily:- type: string- description: 'The user daily video quota'+ type: integer+ description: The user daily video quotarole:$ref: '#/components/schemas/UserRole'required:@@ -4318,16 +4627,17 @@ components:properties:id:type: string- description: 'The user id'+ description: The user idemail:type: string- description: 'The updated email of the user'+ format: email+ description: The updated email of the uservideoQuota:- type: string- description: 'The updated video quota of the user'+ type: integer+ description: The updated video quota of the uservideoQuotaDaily:- type: string- description: 'The updated daily video quota of the user'+ type: integer+ description: The updated daily video quota of the userrole:$ref: '#/components/schemas/UserRole'required:@@ -4340,16 +4650,24 @@ components:properties:password:type: string- description: 'Your new password'+ format: password+ description: Your new password+ minLength: 6+ maxLength: 255email:type: string- description: 'Your new email'+ format: email+ description: Your new emaildisplayNSFW:type: string- description: 'Your new displayNSFW'+ description: Your new displayNSFW+ enum:+ - 'true'+ - 'false'+ - bothautoPlayVideo:- type: string- description: 'Your new autoPlayVideo'+ type: boolean+ description: Your new autoPlayVideorequired:- password@@ -4359,10 +4677,10 @@ components:properties:id:type: string- description: 'Id of the video'+ description: Id of the videorating:type: number- description: 'Rating of the video'+ description: Rating of the videorequired:- id- rating@@ -4380,26 +4698,37 @@ components:properties:username:type: string- description: 'The username of the user'+ description: The username of the user+ minLength: 1+ maxLength: 50+ pattern: '/^[a-z0-9._]{1,50}$/'password:type: string- description: 'The password of the user'+ format: password+ description: The password of the user+ minLength: 6+ maxLength: 255email:type: string- description: 'The email of the user'+ format: email+ description: The email of the userdisplayName:type: string- description: 'The user display name'+ description: The user display name+ minLength: 1+ maxLength: 120channel:type: objectproperties:name:type: string- description: 'The name for the default channel'+ description: The name for the default channel+ pattern: '/^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\\-_.:]+$/'displayName:type: string- description: 'The display name for the default channel'-+ description: The display name for the default channel+ minLength: 1+ maxLength: 120required:- username- password@@ -4453,6 +4782,7 @@ components:properties:url:type: string+ format: urlxml:attribute: truefileSize:@@ -4491,6 +4821,7 @@ components:properties:link:type: string+ format: urlguid:type: stringpubDate:@@ -4512,6 +4843,7 @@ components:properties:link:type: string+ format: urldescription: video watch page URLguid:type: string@@ -4548,6 +4880,7 @@ components:properties:url:type: string+ format: urldescription: video embed path, relative to the canonical URL domain (MRSS)xml:attribute: true@@ -4556,6 +4889,7 @@ components:properties:url:type: string+ format: urldescription: video watch path, relative to the canonical URL domain (MRSS)xml:attribute: true@@ -4564,6 +4898,7 @@ components:properties:url:type: string+ format: urlxml:attribute: trueheight:@@ -4591,6 +4926,7 @@ components:properties:url:type: string+ format: urlxml:attribute: truetype:@@ -4614,8 +4950,11 @@ components:type: integerdescription: >Notification type+- `0` NONE+- `1` WEB+- `2` EMAILenum:- 0@@ -4629,19 +4968,33 @@ components:type: integerdescription: >Notification type, following the `UserNotificationType` enum:+- `1` NEW_VIDEO_FROM_SUBSCRIPTION+- `2` NEW_COMMENT_ON_MY_VIDEO+- `3` NEW_VIDEO_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_FOLLOWINGread:type: boolean@@ -4667,9 +5020,11 @@ components:nullable: truemagnetUri:type: string+ format: urinullable: truetargetUri:type: string+ format: urinullable: truecomment:nullable: true@@ -4733,6 +5088,7 @@ components:type: stringhost:type: string+ format: hostnamecreatedAt:type: stringformat: date-time@@ -4743,33 +5099,45 @@ components:properties:total:type: integer+ example: 1data:type: array+ maxItems: 100items:$ref: '#/components/schemas/Notification'Plugin:properties:name:type: string+ example: peertube-plugin-auth-ldaptype:type: integer+ description: >+ - `1`: PLUGIN++ - `2`: THEMEenum:- 1- 2latestVersion:type: string+ example: 0.0.3version:type: string+ example: 0.0.1enabled:type: booleanuninstalled:type: booleanpeertubeEngine:type: string+ example: 2.2.0description:type: stringhomepage:type: string+ format: url+ example: https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-auth-ldapsettings:type: objectadditionalProperties: true@@ -4783,7 +5151,9 @@ components:properties:total:type: integer+ example: 1data:type: array+ maxItems: 100items:$ref: '#/components/schemas/Plugin'\ No newline at end of file