From: Chocobozzz Date: Tue, 5 Apr 2022 12:56:28 +0000 (+0200) Subject: Add event doc to view endpoint X-Git-Tag: v4.2.0-rc.1~168 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=bfbdfc584a4f0cd078fc159b2eb59e872873f592;hp=cf158e7e24c5b601ea07525b2f629b46ff37b042;p=github%2FChocobozzz%2FPeerTube.git Add event doc to view endpoint --- 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' export * from './playlist-object' export * from './video-comment-object' export * from './video-torrent-object' -export * from './view-object' 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 @@ -export interface ViewObject { - type: 'View' - actor: string - object: string -} 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: type: string description: text or bio displayed on the account's profile UserViewingVideo: + required: + - currentTime properties: currentTime: type: integer format: seconds description: timestamp within the video, in seconds example: 5 + viewEvent: + type: string + enum: + - seek + description: > + Event since last viewing call: + * `seek` - If the user seeked the video VideoStatsOverall: properties: