diff options
author | Chocobozzz <me@florianbigard.com> | 2022-04-05 14:56:28 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-04-15 09:49:35 +0200 |
commit | bfbdfc584a4f0cd078fc159b2eb59e872873f592 (patch) | |
tree | 3088974dc9a8afbde455137143f719c8e39a32d3 | |
parent | cf158e7e24c5b601ea07525b2f629b46ff37b042 (diff) | |
download | PeerTube-bfbdfc584a4f0cd078fc159b2eb59e872873f592.tar.gz PeerTube-bfbdfc584a4f0cd078fc159b2eb59e872873f592.tar.zst PeerTube-bfbdfc584a4f0cd078fc159b2eb59e872873f592.zip |
Add event doc to view endpoint
-rw-r--r-- | shared/models/activitypub/objects/index.ts | 1 | ||||
-rw-r--r-- | shared/models/activitypub/objects/view-object.ts | 5 | ||||
-rw-r--r-- | support/doc/api/openapi.yaml | 9 |
3 files changed, 9 insertions, 6 deletions
diff --git a/shared/models/activitypub/objects/index.ts b/shared/models/activitypub/objects/index.ts index 47a8e847a..9aa3c462c 100644 --- a/shared/models/activitypub/objects/index.ts +++ b/shared/models/activitypub/objects/index.ts | |||
@@ -7,5 +7,4 @@ export * from './playlist-element-object' | |||
7 | export * from './playlist-object' | 7 | export * from './playlist-object' |
8 | export * from './video-comment-object' | 8 | export * from './video-comment-object' |
9 | export * from './video-torrent-object' | 9 | export * from './video-torrent-object' |
10 | export * from './view-object' | ||
11 | export * from './watch-action-object' | 10 | export * from './watch-action-object' |
diff --git a/shared/models/activitypub/objects/view-object.ts b/shared/models/activitypub/objects/view-object.ts deleted file mode 100644 index 4dd21ce8e..000000000 --- a/shared/models/activitypub/objects/view-object.ts +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | export interface ViewObject { | ||
2 | type: 'View' | ||
3 | actor: string | ||
4 | object: string | ||
5 | } | ||
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index 7b8461c72..407f3eb10 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml | |||
@@ -6127,12 +6127,21 @@ components: | |||
6127 | type: string | 6127 | type: string |
6128 | description: text or bio displayed on the account's profile | 6128 | description: text or bio displayed on the account's profile |
6129 | UserViewingVideo: | 6129 | UserViewingVideo: |
6130 | required: | ||
6131 | - currentTime | ||
6130 | properties: | 6132 | properties: |
6131 | currentTime: | 6133 | currentTime: |
6132 | type: integer | 6134 | type: integer |
6133 | format: seconds | 6135 | format: seconds |
6134 | description: timestamp within the video, in seconds | 6136 | description: timestamp within the video, in seconds |
6135 | example: 5 | 6137 | example: 5 |
6138 | viewEvent: | ||
6139 | type: string | ||
6140 | enum: | ||
6141 | - seek | ||
6142 | description: > | ||
6143 | Event since last viewing call: | ||
6144 | * `seek` - If the user seeked the video | ||
6136 | 6145 | ||
6137 | VideoStatsOverall: | 6146 | VideoStatsOverall: |
6138 | properties: | 6147 | properties: |