]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add event doc to view endpoint
authorChocobozzz <me@florianbigard.com>
Tue, 5 Apr 2022 12:56:28 +0000 (14:56 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Fri, 15 Apr 2022 07:49:35 +0000 (09:49 +0200)
shared/models/activitypub/objects/index.ts
shared/models/activitypub/objects/view-object.ts [deleted file]
support/doc/api/openapi.yaml

index 47a8e847a448ffa2c501a8cd964d978c66828a9e..9aa3c462c6c405dcc915a56e2454a0871fc2f6d8 100644 (file)
@@ -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 (file)
index 4dd21ce..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-export interface ViewObject {
-  type: 'View'
-  actor: string
-  object: string
-}
index 7b8461c72262ee4b17d607bedac9a2f2dbe19d27..407f3eb10f0e6f1c780548083a36aa797761469c 100644 (file)
@@ -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: