diff options
-rw-r--r-- | server/helpers/custom-validators/videos.ts | 7 | ||||
-rw-r--r-- | server/lib/activitypub/process/process.ts | 1 | ||||
-rw-r--r-- | server/models/video/video.ts | 2 | ||||
-rw-r--r-- | server/tests/api/videos/multiple-servers.ts | 9 | ||||
-rw-r--r-- | server/tests/cli/update-host.ts | 5 | ||||
-rw-r--r-- | server/tests/utils/videos/videos.ts | 6 | ||||
-rw-r--r-- | support/doc/api/html/index.html | 443 | ||||
-rw-r--r-- | support/doc/api/openapi.yaml | 40 |
8 files changed, 305 insertions, 208 deletions
diff --git a/server/helpers/custom-validators/videos.ts b/server/helpers/custom-validators/videos.ts index c08ddd24e..a46d715ba 100644 --- a/server/helpers/custom-validators/videos.ts +++ b/server/helpers/custom-validators/videos.ts | |||
@@ -26,12 +26,8 @@ function isVideoLicenceValid (value: number) { | |||
26 | return value === null || VIDEO_LICENCES[value] !== undefined | 26 | return value === null || VIDEO_LICENCES[value] !== undefined |
27 | } | 27 | } |
28 | 28 | ||
29 | function areVideoLanguagesValid (value: number[]) { | ||
30 | return value === null || (isArray(value) && value.every(v => isVideoLanguageValid(v))) | ||
31 | } | ||
32 | |||
33 | function isVideoLanguageValid (value: number) { | 29 | function isVideoLanguageValid (value: number) { |
34 | return VIDEO_LANGUAGES[value] !== undefined | 30 | return value === null || VIDEO_LANGUAGES[value] !== undefined |
35 | } | 31 | } |
36 | 32 | ||
37 | function isVideoDurationValid (value: string) { | 33 | function isVideoDurationValid (value: string) { |
@@ -137,7 +133,6 @@ export { | |||
137 | isVideoDescriptionValid, | 133 | isVideoDescriptionValid, |
138 | isVideoFileInfoHashValid, | 134 | isVideoFileInfoHashValid, |
139 | isVideoNameValid, | 135 | isVideoNameValid, |
140 | areVideoLanguagesValid, | ||
141 | isVideoTagsValid, | 136 | isVideoTagsValid, |
142 | isVideoAbuseReasonValid, | 137 | isVideoAbuseReasonValid, |
143 | isVideoFile, | 138 | isVideoFile, |
diff --git a/server/lib/activitypub/process/process.ts b/server/lib/activitypub/process/process.ts index 810c28e26..7edf3bba0 100644 --- a/server/lib/activitypub/process/process.ts +++ b/server/lib/activitypub/process/process.ts | |||
@@ -40,6 +40,7 @@ async function processActivities (activities: Activity[], signatureActor?: Actor | |||
40 | try { | 40 | try { |
41 | await activityProcessor(activity, inboxActor) | 41 | await activityProcessor(activity, inboxActor) |
42 | } catch (err) { | 42 | } catch (err) { |
43 | logger.warn(err.stack) | ||
43 | logger.warn('Cannot process activity %s.', activity.type, err) | 44 | logger.warn('Cannot process activity %s.', activity.type, err) |
44 | } | 45 | } |
45 | } | 46 | } |
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index a4d4c42f0..78789ba2c 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -1010,7 +1010,7 @@ export class VideoModel extends Model<VideoModel> { | |||
1010 | let language | 1010 | let language |
1011 | if (this.language) { | 1011 | if (this.language) { |
1012 | language = { | 1012 | language = { |
1013 | id: this.language + '', | 1013 | identifier: this.language + '', |
1014 | name: VideoModel.getLanguageLabel(this.language) | 1014 | name: VideoModel.getLanguageLabel(this.language) |
1015 | } | 1015 | } |
1016 | } | 1016 | } |
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts index 42a1241f7..74c6b8462 100644 --- a/server/tests/api/videos/multiple-servers.ts +++ b/server/tests/api/videos/multiple-servers.ts | |||
@@ -452,7 +452,7 @@ describe('Test multiple servers', function () { | |||
452 | const res2 = await getVideo(servers[0].url, video.id) | 452 | const res2 = await getVideo(servers[0].url, video.id) |
453 | const videoDetails = res2.body | 453 | const videoDetails = res2.body |
454 | 454 | ||
455 | const file = videoDetails.files.find(f => f.resolution === 360) | 455 | const file = videoDetails.files.find(f => f.resolution.id === 360) |
456 | expect(file).not.to.be.undefined | 456 | expect(file).not.to.be.undefined |
457 | 457 | ||
458 | const torrent = await webtorrentAdd(file.magnetUri) | 458 | const torrent = await webtorrentAdd(file.magnetUri) |
@@ -705,10 +705,9 @@ describe('Test multiple servers', function () { | |||
705 | 705 | ||
706 | expect(baseVideo.name).to.equal(video.name) | 706 | expect(baseVideo.name).to.equal(video.name) |
707 | expect(baseVideo.uuid).to.equal(video.uuid) | 707 | expect(baseVideo.uuid).to.equal(video.uuid) |
708 | expect(baseVideo.category).to.equal(video.category) | 708 | expect(baseVideo.category.id).to.equal(video.category.id) |
709 | expect(baseVideo.language).to.equal(video.language) | 709 | expect(baseVideo.language.id).to.equal(video.language.id) |
710 | expect(baseVideo.licence).to.equal(video.licence) | 710 | expect(baseVideo.licence.id).to.equal(video.licence.id) |
711 | expect(baseVideo.category).to.equal(video.category) | ||
712 | expect(baseVideo.nsfw).to.equal(video.nsfw) | 711 | expect(baseVideo.nsfw).to.equal(video.nsfw) |
713 | expect(baseVideo.account.name).to.equal(video.account.name) | 712 | expect(baseVideo.account.name).to.equal(video.account.name) |
714 | expect(baseVideo.account.displayName).to.equal(video.account.displayName) | 713 | expect(baseVideo.account.displayName).to.equal(video.account.displayName) |
diff --git a/server/tests/cli/update-host.ts b/server/tests/cli/update-host.ts index 39242c494..ad56f7b1b 100644 --- a/server/tests/cli/update-host.ts +++ b/server/tests/cli/update-host.ts | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { VideoDetails } from '../../../shared/models/videos' | ||
5 | const expect = chai.expect | 6 | const expect = chai.expect |
6 | 7 | ||
7 | import { | 8 | import { |
@@ -59,7 +60,7 @@ describe('Test update host scripts', function () { | |||
59 | 60 | ||
60 | for (const video of videos) { | 61 | for (const video of videos) { |
61 | const res2 = await getVideo(server.url, video.id) | 62 | const res2 = await getVideo(server.url, video.id) |
62 | const videoDetails = res2.body | 63 | const videoDetails: VideoDetails = res2.body |
63 | 64 | ||
64 | expect(videoDetails.files).to.have.lengthOf(4) | 65 | expect(videoDetails.files).to.have.lengthOf(4) |
65 | 66 | ||
@@ -67,7 +68,7 @@ describe('Test update host scripts', function () { | |||
67 | expect(file.magnetUri).to.contain('localhost%3A9002%2Ftracker%2Fsocket') | 68 | expect(file.magnetUri).to.contain('localhost%3A9002%2Ftracker%2Fsocket') |
68 | expect(file.magnetUri).to.contain('localhost%3A9002%2Fstatic%2Fwebseed%2F') | 69 | expect(file.magnetUri).to.contain('localhost%3A9002%2Fstatic%2Fwebseed%2F') |
69 | 70 | ||
70 | const torrent = await parseTorrentVideo(server, videoDetails.uuid, file.resolution) | 71 | const torrent = await parseTorrentVideo(server, videoDetails.uuid, file.resolution.id) |
71 | const announceWS = torrent.announce.find(a => a === 'ws://localhost:9002/tracker/socket') | 72 | const announceWS = torrent.announce.find(a => a === 'ws://localhost:9002/tracker/socket') |
72 | expect(announceWS).to.not.be.undefined | 73 | expect(announceWS).to.not.be.undefined |
73 | 74 | ||
diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts index 3c63bedb2..424f41ed8 100644 --- a/server/tests/utils/videos/videos.ts +++ b/server/tests/utils/videos/videos.ts | |||
@@ -442,7 +442,7 @@ async function completeVideoCheck ( | |||
442 | expect(dateIsValid(videoDetails.channel.updatedAt)).to.be.true | 442 | expect(dateIsValid(videoDetails.channel.updatedAt)).to.be.true |
443 | 443 | ||
444 | for (const attributeFile of attributes.files) { | 444 | for (const attributeFile of attributes.files) { |
445 | const file = videoDetails.files.find(f => f.resolution === attributeFile.resolution) | 445 | const file = videoDetails.files.find(f => f.resolution.id === attributeFile.resolution) |
446 | expect(file).not.to.be.undefined | 446 | expect(file).not.to.be.undefined |
447 | 447 | ||
448 | let extension = extname(attributes.fixture) | 448 | let extension = extname(attributes.fixture) |
@@ -451,8 +451,8 @@ async function completeVideoCheck ( | |||
451 | 451 | ||
452 | const magnetUri = file.magnetUri | 452 | const magnetUri = file.magnetUri |
453 | expect(file.magnetUri).to.have.lengthOf.above(2) | 453 | expect(file.magnetUri).to.have.lengthOf.above(2) |
454 | expect(file.torrentUrl).to.equal(`http://${attributes.account.host}/static/torrents/${videoDetails.uuid}-${file.resolution}.torrent`) | 454 | expect(file.torrentUrl).to.equal(`http://${attributes.account.host}/static/torrents/${videoDetails.uuid}-${file.resolution.id}.torrent`) |
455 | expect(file.fileUrl).to.equal(`http://${attributes.account.host}/static/webseed/${videoDetails.uuid}-${file.resolution}${extension}`) | 455 | expect(file.fileUrl).to.equal(`http://${attributes.account.host}/static/webseed/${videoDetails.uuid}-${file.resolution.id}${extension}`) |
456 | expect(file.resolution.id).to.equal(attributeFile.resolution) | 456 | expect(file.resolution.id).to.equal(attributeFile.resolution) |
457 | expect(file.resolution.label).to.equal(attributeFile.resolution + 'p') | 457 | expect(file.resolution.label).to.equal(attributeFile.resolution + 'p') |
458 | 458 | ||
diff --git a/support/doc/api/html/index.html b/support/doc/api/html/index.html index ae4020def..7e8adb2df 100644 --- a/support/doc/api/html/index.html +++ b/support/doc/api/html/index.html | |||
@@ -223,6 +223,7 @@ | |||
223 | </ul> | 223 | </ul> |
224 | </section> | 224 | </section> |
225 | <h5>Schema Definitions</h5> | 225 | <h5>Schema Definitions</h5> |
226 | <a href="#definition-VideoConstant"> VideoConstant </a> | ||
226 | <a href="#definition-Video"> Video </a> | 227 | <a href="#definition-Video"> Video </a> |
227 | <a href="#definition-VideoAbuse"> VideoAbuse </a> | 228 | <a href="#definition-VideoAbuse"> VideoAbuse </a> |
228 | <a href="#definition-VideoBlacklist"> VideoBlacklist </a> | 229 | <a href="#definition-VideoBlacklist"> VideoBlacklist </a> |
@@ -1429,20 +1430,24 @@ | |||
1429 | { | 1430 | { |
1430 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 1431 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
1431 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, | 1432 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
1432 | <span class="hljs-attr">"accountName"</span>: <span class="hljs-string">"string"</span>, | ||
1433 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | 1433 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, |
1434 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | 1434 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, |
1435 | <span class="hljs-attr">"categoryLabel"</span>: <span class="hljs-string">"string"</span>, | 1435 | <span class="hljs-attr">"category"</span>: { |
1436 | <span class="hljs-attr">"category"</span>: <span class="hljs-string">"number"</span>, | 1436 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
1437 | <span class="hljs-attr">"licenceLabel"</span>: <span class="hljs-string">"string"</span>, | 1437 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> |
1438 | <span class="hljs-attr">"licence"</span>: <span class="hljs-string">"number"</span>, | 1438 | }, |
1439 | <span class="hljs-attr">"languageLabel"</span>: <span class="hljs-string">"string"</span>, | 1439 | <span class="hljs-attr">"licence"</span>: { |
1440 | <span class="hljs-attr">"language"</span>: <span class="hljs-string">"number"</span>, | 1440 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
1441 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
1442 | }, | ||
1443 | <span class="hljs-attr">"language"</span>: { | ||
1444 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | ||
1445 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
1446 | }, | ||
1441 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, | 1447 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, |
1442 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, | 1448 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, |
1443 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, | 1449 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, |
1444 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | 1450 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, |
1445 | <span class="hljs-attr">"serverHost"</span>: <span class="hljs-string">"string"</span>, | ||
1446 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, | 1451 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, |
1447 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, | 1452 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, |
1448 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, | 1453 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, |
@@ -1632,20 +1637,24 @@ | |||
1632 | { | 1637 | { |
1633 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 1638 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
1634 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, | 1639 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
1635 | <span class="hljs-attr">"accountName"</span>: <span class="hljs-string">"string"</span>, | ||
1636 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | 1640 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, |
1637 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | 1641 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, |
1638 | <span class="hljs-attr">"categoryLabel"</span>: <span class="hljs-string">"string"</span>, | 1642 | <span class="hljs-attr">"category"</span>: { |
1639 | <span class="hljs-attr">"category"</span>: <span class="hljs-string">"number"</span>, | 1643 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
1640 | <span class="hljs-attr">"licenceLabel"</span>: <span class="hljs-string">"string"</span>, | 1644 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> |
1641 | <span class="hljs-attr">"licence"</span>: <span class="hljs-string">"number"</span>, | 1645 | }, |
1642 | <span class="hljs-attr">"languageLabel"</span>: <span class="hljs-string">"string"</span>, | 1646 | <span class="hljs-attr">"licence"</span>: { |
1643 | <span class="hljs-attr">"language"</span>: <span class="hljs-string">"number"</span>, | 1647 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
1648 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
1649 | }, | ||
1650 | <span class="hljs-attr">"language"</span>: { | ||
1651 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | ||
1652 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
1653 | }, | ||
1644 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, | 1654 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, |
1645 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, | 1655 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, |
1646 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, | 1656 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, |
1647 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | 1657 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, |
1648 | <span class="hljs-attr">"serverHost"</span>: <span class="hljs-string">"string"</span>, | ||
1649 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, | 1658 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, |
1650 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, | 1659 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, |
1651 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, | 1660 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, |
@@ -1842,20 +1851,24 @@ | |||
1842 | { | 1851 | { |
1843 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 1852 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
1844 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, | 1853 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
1845 | <span class="hljs-attr">"accountName"</span>: <span class="hljs-string">"string"</span>, | ||
1846 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | 1854 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, |
1847 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | 1855 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, |
1848 | <span class="hljs-attr">"categoryLabel"</span>: <span class="hljs-string">"string"</span>, | 1856 | <span class="hljs-attr">"category"</span>: { |
1849 | <span class="hljs-attr">"category"</span>: <span class="hljs-string">"number"</span>, | 1857 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
1850 | <span class="hljs-attr">"licenceLabel"</span>: <span class="hljs-string">"string"</span>, | 1858 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> |
1851 | <span class="hljs-attr">"licence"</span>: <span class="hljs-string">"number"</span>, | 1859 | }, |
1852 | <span class="hljs-attr">"languageLabel"</span>: <span class="hljs-string">"string"</span>, | 1860 | <span class="hljs-attr">"licence"</span>: { |
1853 | <span class="hljs-attr">"language"</span>: <span class="hljs-string">"number"</span>, | 1861 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
1862 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
1863 | }, | ||
1864 | <span class="hljs-attr">"language"</span>: { | ||
1865 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | ||
1866 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
1867 | }, | ||
1854 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, | 1868 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, |
1855 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, | 1869 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, |
1856 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, | 1870 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, |
1857 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | 1871 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, |
1858 | <span class="hljs-attr">"serverHost"</span>: <span class="hljs-string">"string"</span>, | ||
1859 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, | 1872 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, |
1860 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, | 1873 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, |
1861 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, | 1874 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, |
@@ -2183,20 +2196,24 @@ | |||
2183 | { | 2196 | { |
2184 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 2197 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
2185 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, | 2198 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
2186 | <span class="hljs-attr">"accountName"</span>: <span class="hljs-string">"string"</span>, | ||
2187 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | 2199 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, |
2188 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | 2200 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, |
2189 | <span class="hljs-attr">"categoryLabel"</span>: <span class="hljs-string">"string"</span>, | 2201 | <span class="hljs-attr">"category"</span>: { |
2190 | <span class="hljs-attr">"category"</span>: <span class="hljs-string">"number"</span>, | 2202 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
2191 | <span class="hljs-attr">"licenceLabel"</span>: <span class="hljs-string">"string"</span>, | 2203 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> |
2192 | <span class="hljs-attr">"licence"</span>: <span class="hljs-string">"number"</span>, | 2204 | }, |
2193 | <span class="hljs-attr">"languageLabel"</span>: <span class="hljs-string">"string"</span>, | 2205 | <span class="hljs-attr">"licence"</span>: { |
2194 | <span class="hljs-attr">"language"</span>: <span class="hljs-string">"number"</span>, | 2206 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
2207 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
2208 | }, | ||
2209 | <span class="hljs-attr">"language"</span>: { | ||
2210 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | ||
2211 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
2212 | }, | ||
2195 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, | 2213 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, |
2196 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, | 2214 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, |
2197 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, | 2215 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, |
2198 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | 2216 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, |
2199 | <span class="hljs-attr">"serverHost"</span>: <span class="hljs-string">"string"</span>, | ||
2200 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, | 2217 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, |
2201 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, | 2218 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, |
2202 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, | 2219 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, |
@@ -2471,20 +2488,24 @@ | |||
2471 | { | 2488 | { |
2472 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 2489 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
2473 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, | 2490 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
2474 | <span class="hljs-attr">"accountName"</span>: <span class="hljs-string">"string"</span>, | ||
2475 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | 2491 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, |
2476 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | 2492 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, |
2477 | <span class="hljs-attr">"categoryLabel"</span>: <span class="hljs-string">"string"</span>, | 2493 | <span class="hljs-attr">"category"</span>: { |
2478 | <span class="hljs-attr">"category"</span>: <span class="hljs-string">"number"</span>, | 2494 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
2479 | <span class="hljs-attr">"licenceLabel"</span>: <span class="hljs-string">"string"</span>, | 2495 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> |
2480 | <span class="hljs-attr">"licence"</span>: <span class="hljs-string">"number"</span>, | 2496 | }, |
2481 | <span class="hljs-attr">"languageLabel"</span>: <span class="hljs-string">"string"</span>, | 2497 | <span class="hljs-attr">"licence"</span>: { |
2482 | <span class="hljs-attr">"language"</span>: <span class="hljs-string">"number"</span>, | 2498 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
2499 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
2500 | }, | ||
2501 | <span class="hljs-attr">"language"</span>: { | ||
2502 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | ||
2503 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
2504 | }, | ||
2483 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, | 2505 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, |
2484 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, | 2506 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, |
2485 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, | 2507 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, |
2486 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | 2508 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, |
2487 | <span class="hljs-attr">"serverHost"</span>: <span class="hljs-string">"string"</span>, | ||
2488 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, | 2509 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, |
2489 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, | 2510 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, |
2490 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, | 2511 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, |
@@ -2814,20 +2835,24 @@ | |||
2814 | { | 2835 | { |
2815 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 2836 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
2816 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, | 2837 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
2817 | <span class="hljs-attr">"accountName"</span>: <span class="hljs-string">"string"</span>, | ||
2818 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | 2838 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, |
2819 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | 2839 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, |
2820 | <span class="hljs-attr">"categoryLabel"</span>: <span class="hljs-string">"string"</span>, | 2840 | <span class="hljs-attr">"category"</span>: { |
2821 | <span class="hljs-attr">"category"</span>: <span class="hljs-string">"number"</span>, | 2841 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
2822 | <span class="hljs-attr">"licenceLabel"</span>: <span class="hljs-string">"string"</span>, | 2842 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> |
2823 | <span class="hljs-attr">"licence"</span>: <span class="hljs-string">"number"</span>, | 2843 | }, |
2824 | <span class="hljs-attr">"languageLabel"</span>: <span class="hljs-string">"string"</span>, | 2844 | <span class="hljs-attr">"licence"</span>: { |
2825 | <span class="hljs-attr">"language"</span>: <span class="hljs-string">"number"</span>, | 2845 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
2846 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
2847 | }, | ||
2848 | <span class="hljs-attr">"language"</span>: { | ||
2849 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | ||
2850 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
2851 | }, | ||
2826 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, | 2852 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, |
2827 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, | 2853 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, |
2828 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, | 2854 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, |
2829 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | 2855 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, |
2830 | <span class="hljs-attr">"serverHost"</span>: <span class="hljs-string">"string"</span>, | ||
2831 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, | 2856 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, |
2832 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, | 2857 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, |
2833 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, | 2858 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, |
@@ -2915,20 +2940,24 @@ | |||
2915 | <!-- <div class="hljs"> --><pre><code class="hljs lang-json">{ | 2940 | <!-- <div class="hljs"> --><pre><code class="hljs lang-json">{ |
2916 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 2941 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
2917 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, | 2942 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
2918 | <span class="hljs-attr">"accountName"</span>: <span class="hljs-string">"string"</span>, | ||
2919 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | 2943 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, |
2920 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | 2944 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, |
2921 | <span class="hljs-attr">"categoryLabel"</span>: <span class="hljs-string">"string"</span>, | 2945 | <span class="hljs-attr">"category"</span>: { |
2922 | <span class="hljs-attr">"category"</span>: <span class="hljs-string">"number"</span>, | 2946 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
2923 | <span class="hljs-attr">"licenceLabel"</span>: <span class="hljs-string">"string"</span>, | 2947 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> |
2924 | <span class="hljs-attr">"licence"</span>: <span class="hljs-string">"number"</span>, | 2948 | }, |
2925 | <span class="hljs-attr">"languageLabel"</span>: <span class="hljs-string">"string"</span>, | 2949 | <span class="hljs-attr">"licence"</span>: { |
2926 | <span class="hljs-attr">"language"</span>: <span class="hljs-string">"number"</span>, | 2950 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
2951 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
2952 | }, | ||
2953 | <span class="hljs-attr">"language"</span>: { | ||
2954 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | ||
2955 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
2956 | }, | ||
2927 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, | 2957 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, |
2928 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, | 2958 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, |
2929 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, | 2959 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, |
2930 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | 2960 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, |
2931 | <span class="hljs-attr">"serverHost"</span>: <span class="hljs-string">"string"</span>, | ||
2932 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, | 2961 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, |
2933 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, | 2962 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, |
2934 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, | 2963 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, |
@@ -3015,20 +3044,24 @@ | |||
3015 | <!-- <div class="hljs"> --><pre><code class="hljs lang-json">{ | 3044 | <!-- <div class="hljs"> --><pre><code class="hljs lang-json">{ |
3016 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 3045 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
3017 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, | 3046 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
3018 | <span class="hljs-attr">"accountName"</span>: <span class="hljs-string">"string"</span>, | ||
3019 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | 3047 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, |
3020 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | 3048 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, |
3021 | <span class="hljs-attr">"categoryLabel"</span>: <span class="hljs-string">"string"</span>, | 3049 | <span class="hljs-attr">"category"</span>: { |
3022 | <span class="hljs-attr">"category"</span>: <span class="hljs-string">"number"</span>, | 3050 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
3023 | <span class="hljs-attr">"licenceLabel"</span>: <span class="hljs-string">"string"</span>, | 3051 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> |
3024 | <span class="hljs-attr">"licence"</span>: <span class="hljs-string">"number"</span>, | 3052 | }, |
3025 | <span class="hljs-attr">"languageLabel"</span>: <span class="hljs-string">"string"</span>, | 3053 | <span class="hljs-attr">"licence"</span>: { |
3026 | <span class="hljs-attr">"language"</span>: <span class="hljs-string">"number"</span>, | 3054 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
3055 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
3056 | }, | ||
3057 | <span class="hljs-attr">"language"</span>: { | ||
3058 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | ||
3059 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
3060 | }, | ||
3027 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, | 3061 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, |
3028 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, | 3062 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, |
3029 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, | 3063 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, |
3030 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | 3064 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, |
3031 | <span class="hljs-attr">"serverHost"</span>: <span class="hljs-string">"string"</span>, | ||
3032 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, | 3065 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, |
3033 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, | 3066 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, |
3034 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, | 3067 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, |
@@ -3428,11 +3461,23 @@ | |||
3428 | { | 3461 | { |
3429 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 3462 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
3430 | <span class="hljs-attr">"reason"</span>: <span class="hljs-string">"string"</span>, | 3463 | <span class="hljs-attr">"reason"</span>: <span class="hljs-string">"string"</span>, |
3431 | <span class="hljs-attr">"reporterUsername"</span>: <span class="hljs-string">"string"</span>, | 3464 | <span class="hljs-attr">"reporterAccount"</span>: { |
3432 | <span class="hljs-attr">"reporterServerHost"</span>: <span class="hljs-string">"string"</span>, | 3465 | <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>, |
3433 | <span class="hljs-attr">"videoId"</span>: <span class="hljs-string">"number"</span>, | 3466 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
3434 | <span class="hljs-attr">"videoUUID"</span>: <span class="hljs-string">"string"</span>, | 3467 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
3435 | <span class="hljs-attr">"videoName"</span>: <span class="hljs-string">"string"</span>, | 3468 | <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>, |
3469 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | ||
3470 | <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>, | ||
3471 | <span class="hljs-attr">"followingCount"</span>: <span class="hljs-string">"number"</span>, | ||
3472 | <span class="hljs-attr">"followersCount"</span>: <span class="hljs-string">"number"</span>, | ||
3473 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | ||
3474 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | ||
3475 | <span class="hljs-attr">"avatar"</span>: { | ||
3476 | <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>, | ||
3477 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | ||
3478 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span> | ||
3479 | } | ||
3480 | }, | ||
3436 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span> | 3481 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span> |
3437 | } | 3482 | } |
3438 | ] | 3483 | ] |
@@ -3877,20 +3922,24 @@ | |||
3877 | { | 3922 | { |
3878 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 3923 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
3879 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, | 3924 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
3880 | <span class="hljs-attr">"accountName"</span>: <span class="hljs-string">"string"</span>, | ||
3881 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | 3925 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, |
3882 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | 3926 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, |
3883 | <span class="hljs-attr">"categoryLabel"</span>: <span class="hljs-string">"string"</span>, | 3927 | <span class="hljs-attr">"category"</span>: { |
3884 | <span class="hljs-attr">"category"</span>: <span class="hljs-string">"number"</span>, | 3928 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
3885 | <span class="hljs-attr">"licenceLabel"</span>: <span class="hljs-string">"string"</span>, | 3929 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> |
3886 | <span class="hljs-attr">"licence"</span>: <span class="hljs-string">"number"</span>, | 3930 | }, |
3887 | <span class="hljs-attr">"languageLabel"</span>: <span class="hljs-string">"string"</span>, | 3931 | <span class="hljs-attr">"licence"</span>: { |
3888 | <span class="hljs-attr">"language"</span>: <span class="hljs-string">"number"</span>, | 3932 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
3933 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
3934 | }, | ||
3935 | <span class="hljs-attr">"language"</span>: { | ||
3936 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | ||
3937 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
3938 | }, | ||
3889 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, | 3939 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, |
3890 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, | 3940 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, |
3891 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, | 3941 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, |
3892 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | 3942 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, |
3893 | <span class="hljs-attr">"serverHost"</span>: <span class="hljs-string">"string"</span>, | ||
3894 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, | 3943 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, |
3895 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, | 3944 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, |
3896 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, | 3945 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, |
@@ -4057,20 +4106,24 @@ | |||
4057 | { | 4106 | { |
4058 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 4107 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
4059 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, | 4108 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
4060 | <span class="hljs-attr">"accountName"</span>: <span class="hljs-string">"string"</span>, | ||
4061 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | 4109 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, |
4062 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | 4110 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, |
4063 | <span class="hljs-attr">"categoryLabel"</span>: <span class="hljs-string">"string"</span>, | 4111 | <span class="hljs-attr">"category"</span>: { |
4064 | <span class="hljs-attr">"category"</span>: <span class="hljs-string">"number"</span>, | 4112 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
4065 | <span class="hljs-attr">"licenceLabel"</span>: <span class="hljs-string">"string"</span>, | 4113 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> |
4066 | <span class="hljs-attr">"licence"</span>: <span class="hljs-string">"number"</span>, | 4114 | }, |
4067 | <span class="hljs-attr">"languageLabel"</span>: <span class="hljs-string">"string"</span>, | 4115 | <span class="hljs-attr">"licence"</span>: { |
4068 | <span class="hljs-attr">"language"</span>: <span class="hljs-string">"number"</span>, | 4116 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
4117 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
4118 | }, | ||
4119 | <span class="hljs-attr">"language"</span>: { | ||
4120 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | ||
4121 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
4122 | }, | ||
4069 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, | 4123 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, |
4070 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, | 4124 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, |
4071 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, | 4125 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, |
4072 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | 4126 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, |
4073 | <span class="hljs-attr">"serverHost"</span>: <span class="hljs-string">"string"</span>, | ||
4074 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, | 4127 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, |
4075 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, | 4128 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, |
4076 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, | 4129 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, |
@@ -4321,20 +4374,24 @@ | |||
4321 | { | 4374 | { |
4322 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 4375 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
4323 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, | 4376 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
4324 | <span class="hljs-attr">"accountName"</span>: <span class="hljs-string">"string"</span>, | ||
4325 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | 4377 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, |
4326 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | 4378 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, |
4327 | <span class="hljs-attr">"categoryLabel"</span>: <span class="hljs-string">"string"</span>, | 4379 | <span class="hljs-attr">"category"</span>: { |
4328 | <span class="hljs-attr">"category"</span>: <span class="hljs-string">"number"</span>, | 4380 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
4329 | <span class="hljs-attr">"licenceLabel"</span>: <span class="hljs-string">"string"</span>, | 4381 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> |
4330 | <span class="hljs-attr">"licence"</span>: <span class="hljs-string">"number"</span>, | 4382 | }, |
4331 | <span class="hljs-attr">"languageLabel"</span>: <span class="hljs-string">"string"</span>, | 4383 | <span class="hljs-attr">"licence"</span>: { |
4332 | <span class="hljs-attr">"language"</span>: <span class="hljs-string">"number"</span>, | 4384 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
4385 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
4386 | }, | ||
4387 | <span class="hljs-attr">"language"</span>: { | ||
4388 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | ||
4389 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
4390 | }, | ||
4333 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, | 4391 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, |
4334 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, | 4392 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, |
4335 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, | 4393 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, |
4336 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | 4394 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, |
4337 | <span class="hljs-attr">"serverHost"</span>: <span class="hljs-string">"string"</span>, | ||
4338 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, | 4395 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, |
4339 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, | 4396 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, |
4340 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, | 4397 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, |
@@ -5082,6 +5139,45 @@ | |||
5082 | </div> | 5139 | </div> |
5083 | </div> | 5140 | </div> |
5084 | <h1>Schema Definitions</h1> | 5141 | <h1>Schema Definitions</h1> |
5142 | <div id="definition-VideoConstant" class="definition panel" data-traverse-target="definition-VideoConstant"> | ||
5143 | <h2 class="panel-title"> | ||
5144 | <a name="/definitions/VideoConstant"></a>VideoConstant: | ||
5145 | <!-- <span class="json-property-type"><span class="json-property-type">object</span> | ||
5146 | <span class="json-property-range" title="Value limits"></span> | ||
5147 | |||
5148 | |||
5149 | </span> --> | ||
5150 | </h2> | ||
5151 | <div class="doc-row"> | ||
5152 | <div class="doc-copy"> | ||
5153 | <section class="json-schema-properties"> | ||
5154 | <dl> | ||
5155 | <dt data-property-name="id"> | ||
5156 | <span class="json-property-name">id:</span> | ||
5157 | <span class="json-property-type">number</span> | ||
5158 | <span class="json-property-range" title="Value limits"></span> | ||
5159 | </dt> | ||
5160 | <dt data-property-name="label"> | ||
5161 | <span class="json-property-name">label:</span> | ||
5162 | <span class="json-property-type">string</span> | ||
5163 | <span class="json-property-range" title="Value limits"></span> | ||
5164 | </dt> | ||
5165 | </dl> | ||
5166 | </section> | ||
5167 | </div> | ||
5168 | <div class="doc-examples"> | ||
5169 | <section> | ||
5170 | <h5>Example</h5> | ||
5171 | <!-- <div class="hljs"> --><pre><code class="hljs lang-json">{ | ||
5172 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | ||
5173 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
5174 | } | ||
5175 | </code></pre> | ||
5176 | <!-- </div> --> | ||
5177 | </section> | ||
5178 | </div> | ||
5179 | </div> | ||
5180 | </div> | ||
5085 | <div id="definition-Video" class="definition panel" data-traverse-target="definition-Video"> | 5181 | <div id="definition-Video" class="definition panel" data-traverse-target="definition-Video"> |
5086 | <h2 class="panel-title"> | 5182 | <h2 class="panel-title"> |
5087 | <a name="/definitions/Video"></a>Video: | 5183 | <a name="/definitions/Video"></a>Video: |
@@ -5105,11 +5201,6 @@ | |||
5105 | <span class="json-property-type">string</span> | 5201 | <span class="json-property-type">string</span> |
5106 | <span class="json-property-range" title="Value limits"></span> | 5202 | <span class="json-property-range" title="Value limits"></span> |
5107 | </dt> | 5203 | </dt> |
5108 | <dt data-property-name="accountName"> | ||
5109 | <span class="json-property-name">accountName:</span> | ||
5110 | <span class="json-property-type">string</span> | ||
5111 | <span class="json-property-range" title="Value limits"></span> | ||
5112 | </dt> | ||
5113 | <dt data-property-name="createdAt"> | 5204 | <dt data-property-name="createdAt"> |
5114 | <span class="json-property-name">createdAt:</span> | 5205 | <span class="json-property-name">createdAt:</span> |
5115 | <span class="json-property-type">string</span> | 5206 | <span class="json-property-type">string</span> |
@@ -5120,34 +5211,31 @@ | |||
5120 | <span class="json-property-type">string</span> | 5211 | <span class="json-property-type">string</span> |
5121 | <span class="json-property-range" title="Value limits"></span> | 5212 | <span class="json-property-range" title="Value limits"></span> |
5122 | </dt> | 5213 | </dt> |
5123 | <dt data-property-name="categoryLabel"> | ||
5124 | <span class="json-property-name">categoryLabel:</span> | ||
5125 | <span class="json-property-type">string</span> | ||
5126 | <span class="json-property-range" title="Value limits"></span> | ||
5127 | </dt> | ||
5128 | <dt data-property-name="category"> | 5214 | <dt data-property-name="category"> |
5129 | <span class="json-property-name">category:</span> | 5215 | <span class="json-property-name">category:</span> |
5130 | <span class="json-property-type">number</span> | 5216 | <span class="json-property-type"> |
5131 | <span class="json-property-range" title="Value limits"></span> | 5217 | <span class=""> |
5132 | </dt> | 5218 | <a class="json-schema-ref" href="#/definitions/VideoConstant">VideoConstant</a> |
5133 | <dt data-property-name="licenceLabel"> | 5219 | </span> |
5134 | <span class="json-property-name">licenceLabel:</span> | 5220 | </span> |
5135 | <span class="json-property-type">string</span> | ||
5136 | <span class="json-property-range" title="Value limits"></span> | 5221 | <span class="json-property-range" title="Value limits"></span> |
5137 | </dt> | 5222 | </dt> |
5138 | <dt data-property-name="licence"> | 5223 | <dt data-property-name="licence"> |
5139 | <span class="json-property-name">licence:</span> | 5224 | <span class="json-property-name">licence:</span> |
5140 | <span class="json-property-type">number</span> | 5225 | <span class="json-property-type"> |
5141 | <span class="json-property-range" title="Value limits"></span> | 5226 | <span class=""> |
5142 | </dt> | 5227 | <a class="json-schema-ref" href="#/definitions/VideoConstant">VideoConstant</a> |
5143 | <dt data-property-name="languageLabel"> | 5228 | </span> |
5144 | <span class="json-property-name">languageLabel:</span> | 5229 | </span> |
5145 | <span class="json-property-type">string</span> | ||
5146 | <span class="json-property-range" title="Value limits"></span> | 5230 | <span class="json-property-range" title="Value limits"></span> |
5147 | </dt> | 5231 | </dt> |
5148 | <dt data-property-name="language"> | 5232 | <dt data-property-name="language"> |
5149 | <span class="json-property-name">language:</span> | 5233 | <span class="json-property-name">language:</span> |
5150 | <span class="json-property-type">number</span> | 5234 | <span class="json-property-type"> |
5235 | <span class=""> | ||
5236 | <a class="json-schema-ref" href="#/definitions/VideoConstant">VideoConstant</a> | ||
5237 | </span> | ||
5238 | </span> | ||
5151 | <span class="json-property-range" title="Value limits"></span> | 5239 | <span class="json-property-range" title="Value limits"></span> |
5152 | </dt> | 5240 | </dt> |
5153 | <dt data-property-name="description"> | 5241 | <dt data-property-name="description"> |
@@ -5170,11 +5258,6 @@ | |||
5170 | <span class="json-property-type">string</span> | 5258 | <span class="json-property-type">string</span> |
5171 | <span class="json-property-range" title="Value limits"></span> | 5259 | <span class="json-property-range" title="Value limits"></span> |
5172 | </dt> | 5260 | </dt> |
5173 | <dt data-property-name="serverHost"> | ||
5174 | <span class="json-property-name">serverHost:</span> | ||
5175 | <span class="json-property-type">string</span> | ||
5176 | <span class="json-property-range" title="Value limits"></span> | ||
5177 | </dt> | ||
5178 | <dt data-property-name="thumbnailPath"> | 5261 | <dt data-property-name="thumbnailPath"> |
5179 | <span class="json-property-name">thumbnailPath:</span> | 5262 | <span class="json-property-name">thumbnailPath:</span> |
5180 | <span class="json-property-type">string</span> | 5263 | <span class="json-property-type">string</span> |
@@ -5210,6 +5293,11 @@ | |||
5210 | <span class="json-property-type">boolean</span> | 5293 | <span class="json-property-type">boolean</span> |
5211 | <span class="json-property-range" title="Value limits"></span> | 5294 | <span class="json-property-range" title="Value limits"></span> |
5212 | </dt> | 5295 | </dt> |
5296 | <dt data-property-name="account"> | ||
5297 | <span class="json-property-name">account:</span> | ||
5298 | <span class="json-property-type">object</span> | ||
5299 | <span class="json-property-range" title="Value limits"></span> | ||
5300 | </dt> | ||
5213 | </dl> | 5301 | </dl> |
5214 | </section> | 5302 | </section> |
5215 | </div> | 5303 | </div> |
@@ -5219,20 +5307,24 @@ | |||
5219 | <!-- <div class="hljs"> --><pre><code class="hljs lang-json">{ | 5307 | <!-- <div class="hljs"> --><pre><code class="hljs lang-json">{ |
5220 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 5308 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
5221 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, | 5309 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
5222 | <span class="hljs-attr">"accountName"</span>: <span class="hljs-string">"string"</span>, | ||
5223 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | 5310 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, |
5224 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | 5311 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, |
5225 | <span class="hljs-attr">"categoryLabel"</span>: <span class="hljs-string">"string"</span>, | 5312 | <span class="hljs-attr">"category"</span>: { |
5226 | <span class="hljs-attr">"category"</span>: <span class="hljs-string">"number"</span>, | 5313 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
5227 | <span class="hljs-attr">"licenceLabel"</span>: <span class="hljs-string">"string"</span>, | 5314 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> |
5228 | <span class="hljs-attr">"licence"</span>: <span class="hljs-string">"number"</span>, | 5315 | }, |
5229 | <span class="hljs-attr">"languageLabel"</span>: <span class="hljs-string">"string"</span>, | 5316 | <span class="hljs-attr">"licence"</span>: { |
5230 | <span class="hljs-attr">"language"</span>: <span class="hljs-string">"number"</span>, | 5317 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
5318 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
5319 | }, | ||
5320 | <span class="hljs-attr">"language"</span>: { | ||
5321 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | ||
5322 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
5323 | }, | ||
5231 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, | 5324 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, |
5232 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, | 5325 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, |
5233 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, | 5326 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, |
5234 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | 5327 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, |
5235 | <span class="hljs-attr">"serverHost"</span>: <span class="hljs-string">"string"</span>, | ||
5236 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, | 5328 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, |
5237 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, | 5329 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, |
5238 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, | 5330 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, |
@@ -5270,29 +5362,18 @@ | |||
5270 | <span class="json-property-type">string</span> | 5362 | <span class="json-property-type">string</span> |
5271 | <span class="json-property-range" title="Value limits"></span> | 5363 | <span class="json-property-range" title="Value limits"></span> |
5272 | </dt> | 5364 | </dt> |
5273 | <dt data-property-name="reporterUsername"> | 5365 | <dt data-property-name="reporterAccount"> |
5274 | <span class="json-property-name">reporterUsername:</span> | 5366 | <span class="json-property-name">reporterAccount:</span> |
5275 | <span class="json-property-type">string</span> | 5367 | <span class="json-property-type"> |
5276 | <span class="json-property-range" title="Value limits"></span> | 5368 | <span class=""> |
5277 | </dt> | 5369 | <a class="json-schema-ref" href="#/definitions/Account">Account</a> |
5278 | <dt data-property-name="reporterServerHost"> | 5370 | </span> |
5279 | <span class="json-property-name">reporterServerHost:</span> | 5371 | </span> |
5280 | <span class="json-property-type">string</span> | ||
5281 | <span class="json-property-range" title="Value limits"></span> | ||
5282 | </dt> | ||
5283 | <dt data-property-name="videoId"> | ||
5284 | <span class="json-property-name">videoId:</span> | ||
5285 | <span class="json-property-type">number</span> | ||
5286 | <span class="json-property-range" title="Value limits"></span> | ||
5287 | </dt> | ||
5288 | <dt data-property-name="videoUUID"> | ||
5289 | <span class="json-property-name">videoUUID:</span> | ||
5290 | <span class="json-property-type">string</span> | ||
5291 | <span class="json-property-range" title="Value limits"></span> | 5372 | <span class="json-property-range" title="Value limits"></span> |
5292 | </dt> | 5373 | </dt> |
5293 | <dt data-property-name="videoName"> | 5374 | <dt data-property-name="video"> |
5294 | <span class="json-property-name">videoName:</span> | 5375 | <span class="json-property-name">video:</span> |
5295 | <span class="json-property-type">string</span> | 5376 | <span class="json-property-type">object</span> |
5296 | <span class="json-property-range" title="Value limits"></span> | 5377 | <span class="json-property-range" title="Value limits"></span> |
5297 | </dt> | 5378 | </dt> |
5298 | <dt data-property-name="createdAt"> | 5379 | <dt data-property-name="createdAt"> |
@@ -5309,11 +5390,23 @@ | |||
5309 | <!-- <div class="hljs"> --><pre><code class="hljs lang-json">{ | 5390 | <!-- <div class="hljs"> --><pre><code class="hljs lang-json">{ |
5310 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 5391 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
5311 | <span class="hljs-attr">"reason"</span>: <span class="hljs-string">"string"</span>, | 5392 | <span class="hljs-attr">"reason"</span>: <span class="hljs-string">"string"</span>, |
5312 | <span class="hljs-attr">"reporterUsername"</span>: <span class="hljs-string">"string"</span>, | 5393 | <span class="hljs-attr">"reporterAccount"</span>: { |
5313 | <span class="hljs-attr">"reporterServerHost"</span>: <span class="hljs-string">"string"</span>, | 5394 | <span class="hljs-attr">"displayName"</span>: <span class="hljs-string">"string"</span>, |
5314 | <span class="hljs-attr">"videoId"</span>: <span class="hljs-string">"number"</span>, | 5395 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
5315 | <span class="hljs-attr">"videoUUID"</span>: <span class="hljs-string">"string"</span>, | 5396 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
5316 | <span class="hljs-attr">"videoName"</span>: <span class="hljs-string">"string"</span>, | 5397 | <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>, |
5398 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | ||
5399 | <span class="hljs-attr">"host"</span>: <span class="hljs-string">"string"</span>, | ||
5400 | <span class="hljs-attr">"followingCount"</span>: <span class="hljs-string">"number"</span>, | ||
5401 | <span class="hljs-attr">"followersCount"</span>: <span class="hljs-string">"number"</span>, | ||
5402 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | ||
5403 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | ||
5404 | <span class="hljs-attr">"avatar"</span>: { | ||
5405 | <span class="hljs-attr">"path"</span>: <span class="hljs-string">"string"</span>, | ||
5406 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | ||
5407 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span> | ||
5408 | } | ||
5409 | }, | ||
5317 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span> | 5410 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span> |
5318 | } | 5411 | } |
5319 | </code></pre> | 5412 | </code></pre> |
@@ -5481,20 +5574,24 @@ | |||
5481 | { | 5574 | { |
5482 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 5575 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
5483 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, | 5576 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
5484 | <span class="hljs-attr">"accountName"</span>: <span class="hljs-string">"string"</span>, | ||
5485 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | 5577 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, |
5486 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | 5578 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, |
5487 | <span class="hljs-attr">"categoryLabel"</span>: <span class="hljs-string">"string"</span>, | 5579 | <span class="hljs-attr">"category"</span>: { |
5488 | <span class="hljs-attr">"category"</span>: <span class="hljs-string">"number"</span>, | 5580 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
5489 | <span class="hljs-attr">"licenceLabel"</span>: <span class="hljs-string">"string"</span>, | 5581 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> |
5490 | <span class="hljs-attr">"licence"</span>: <span class="hljs-string">"number"</span>, | 5582 | }, |
5491 | <span class="hljs-attr">"languageLabel"</span>: <span class="hljs-string">"string"</span>, | 5583 | <span class="hljs-attr">"licence"</span>: { |
5492 | <span class="hljs-attr">"language"</span>: <span class="hljs-string">"number"</span>, | 5584 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
5585 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
5586 | }, | ||
5587 | <span class="hljs-attr">"language"</span>: { | ||
5588 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | ||
5589 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
5590 | }, | ||
5493 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, | 5591 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, |
5494 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, | 5592 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, |
5495 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, | 5593 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, |
5496 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | 5594 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, |
5497 | <span class="hljs-attr">"serverHost"</span>: <span class="hljs-string">"string"</span>, | ||
5498 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, | 5595 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, |
5499 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, | 5596 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, |
5500 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, | 5597 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, |
@@ -6074,20 +6171,24 @@ | |||
6074 | { | 6171 | { |
6075 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | 6172 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
6076 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, | 6173 | <span class="hljs-attr">"uuid"</span>: <span class="hljs-string">"string"</span>, |
6077 | <span class="hljs-attr">"accountName"</span>: <span class="hljs-string">"string"</span>, | ||
6078 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, | 6174 | <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>, |
6079 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, | 6175 | <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>, |
6080 | <span class="hljs-attr">"categoryLabel"</span>: <span class="hljs-string">"string"</span>, | 6176 | <span class="hljs-attr">"category"</span>: { |
6081 | <span class="hljs-attr">"category"</span>: <span class="hljs-string">"number"</span>, | 6177 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
6082 | <span class="hljs-attr">"licenceLabel"</span>: <span class="hljs-string">"string"</span>, | 6178 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> |
6083 | <span class="hljs-attr">"licence"</span>: <span class="hljs-string">"number"</span>, | 6179 | }, |
6084 | <span class="hljs-attr">"languageLabel"</span>: <span class="hljs-string">"string"</span>, | 6180 | <span class="hljs-attr">"licence"</span>: { |
6085 | <span class="hljs-attr">"language"</span>: <span class="hljs-string">"number"</span>, | 6181 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, |
6182 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
6183 | }, | ||
6184 | <span class="hljs-attr">"language"</span>: { | ||
6185 | <span class="hljs-attr">"id"</span>: <span class="hljs-string">"number"</span>, | ||
6186 | <span class="hljs-attr">"label"</span>: <span class="hljs-string">"string"</span> | ||
6187 | }, | ||
6086 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, | 6188 | <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>, |
6087 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, | 6189 | <span class="hljs-attr">"duration"</span>: <span class="hljs-string">"number"</span>, |
6088 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, | 6190 | <span class="hljs-attr">"isLocal"</span>: <span class="hljs-string">"boolean"</span>, |
6089 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, | 6191 | <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>, |
6090 | <span class="hljs-attr">"serverHost"</span>: <span class="hljs-string">"string"</span>, | ||
6091 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, | 6192 | <span class="hljs-attr">"thumbnailPath"</span>: <span class="hljs-string">"string"</span>, |
6092 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, | 6193 | <span class="hljs-attr">"previewPath"</span>: <span class="hljs-string">"string"</span>, |
6093 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, | 6194 | <span class="hljs-attr">"embedPath"</span>: <span class="hljs-string">"string"</span>, |
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index 99bf0fd2d..634da66e8 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml | |||
@@ -69,7 +69,7 @@ paths: | |||
69 | '200': | 69 | '200': |
70 | description: successful operation | 70 | description: successful operation |
71 | schema: | 71 | schema: |
72 | $ref: '#/definitions/ServerConfig' | 72 | $ref: '#/definitions/ServerConfig' |
73 | /jobs: | 73 | /jobs: |
74 | get: | 74 | get: |
75 | tags: | 75 | tags: |
@@ -105,7 +105,7 @@ paths: | |||
105 | schema: | 105 | schema: |
106 | type: array | 106 | type: array |
107 | items: | 107 | items: |
108 | $ref: '#/definitions/Job' | 108 | $ref: '#/definitions/Job' |
109 | '/server/following/{host}': | 109 | '/server/following/{host}': |
110 | delete: | 110 | delete: |
111 | tags: | 111 | tags: |
@@ -1037,6 +1037,12 @@ paths: | |||
1037 | '204': | 1037 | '204': |
1038 | description: successful operation | 1038 | description: successful operation |
1039 | definitions: | 1039 | definitions: |
1040 | VideoConstant: | ||
1041 | properties: | ||
1042 | id: | ||
1043 | type: number | ||
1044 | label: | ||
1045 | type: string | ||
1040 | Video: | 1046 | Video: |
1041 | properties: | 1047 | properties: |
1042 | id: | 1048 | id: |
@@ -1047,18 +1053,12 @@ definitions: | |||
1047 | type: string | 1053 | type: string |
1048 | updatedAt: | 1054 | updatedAt: |
1049 | type: string | 1055 | type: string |
1050 | categoryLabel: | ||
1051 | type: string | ||
1052 | category: | 1056 | category: |
1053 | type: number | 1057 | $ref: "#/definitions/VideoConstant" |
1054 | licenceLabel: | ||
1055 | type: string | ||
1056 | licence: | 1058 | licence: |
1057 | type: number | 1059 | $ref: "#/definitions/VideoConstant" |
1058 | languageLabel: | ||
1059 | type: string | ||
1060 | language: | 1060 | language: |
1061 | type: number | 1061 | $ref: "#/definitions/VideoConstant" |
1062 | description: | 1062 | description: |
1063 | type: string | 1063 | type: string |
1064 | duration: | 1064 | duration: |
@@ -1139,14 +1139,14 @@ definitions: | |||
1139 | type: boolean | 1139 | type: boolean |
1140 | owner: | 1140 | owner: |
1141 | type: object | 1141 | type: object |
1142 | properties: | 1142 | properties: |
1143 | name: | 1143 | name: |
1144 | type: string | 1144 | type: string |
1145 | uuid: | 1145 | uuid: |
1146 | type: string | 1146 | type: string |
1147 | videos: | 1147 | videos: |
1148 | type: array | 1148 | type: array |
1149 | items: | 1149 | items: |
1150 | $ref: "#/definitions/Video" | 1150 | $ref: "#/definitions/Video" |
1151 | VideoComment: | 1151 | VideoComment: |
1152 | properties: | 1152 | properties: |
@@ -1228,7 +1228,7 @@ definitions: | |||
1228 | type: boolean | 1228 | type: boolean |
1229 | role: | 1229 | role: |
1230 | type: string | 1230 | type: string |
1231 | enum: [User, Moderator, Administrator] | 1231 | enum: [User, Moderator, Administrator] |
1232 | videoQuota: | 1232 | videoQuota: |
1233 | type: number | 1233 | type: number |
1234 | createdAt: | 1234 | createdAt: |
@@ -1241,7 +1241,7 @@ definitions: | |||
1241 | $ref: "#/definitions/VideoChannel" | 1241 | $ref: "#/definitions/VideoChannel" |
1242 | ServerConfig: | 1242 | ServerConfig: |
1243 | properties: | 1243 | properties: |
1244 | signup: | 1244 | signup: |
1245 | type: object | 1245 | type: object |
1246 | properties: | 1246 | properties: |
1247 | allowed: | 1247 | allowed: |
@@ -1264,7 +1264,7 @@ definitions: | |||
1264 | properties: | 1264 | properties: |
1265 | max: | 1265 | max: |
1266 | type: number | 1266 | type: number |
1267 | extensions: | 1267 | extensions: |
1268 | type: array | 1268 | type: array |
1269 | items: | 1269 | items: |
1270 | type: string | 1270 | type: string |
@@ -1273,8 +1273,8 @@ definitions: | |||
1273 | properties: | 1273 | properties: |
1274 | file: | 1274 | file: |
1275 | type: object | 1275 | type: object |
1276 | properties: | 1276 | properties: |
1277 | extensions: | 1277 | extensions: |
1278 | type: array | 1278 | type: array |
1279 | items: | 1279 | items: |
1280 | type: string | 1280 | type: string |