From bfbdfc584a4f0cd078fc159b2eb59e872873f592 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 5 Apr 2022 14:56:28 +0200 Subject: [PATCH] Add event doc to view endpoint --- shared/models/activitypub/objects/index.ts | 1 - shared/models/activitypub/objects/view-object.ts | 5 ----- support/doc/api/openapi.yaml | 9 +++++++++ 3 files changed, 9 insertions(+), 6 deletions(-) delete mode 100644 shared/models/activitypub/objects/view-object.ts 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: -- 2.41.0