diff --git a/api/openapi-spec/v1.0.yaml b/api/openapi-spec/v1.0.yaml index da69c85..66d8aef 100644 --- a/api/openapi-spec/v1.0.yaml +++ b/api/openapi-spec/v1.0.yaml @@ -4914,6 +4914,9 @@ components: video: description: Video metadata, if the item is a video. Read-only. $ref: '#/components/schemas/video' + '@libre.graph.motionPhoto': + description: Motion Photo metadata, if the item is a Motion Photo. Read-only. + $ref: '#/components/schemas/motionPhoto' '@client.synchronize': description: Indicates if the item is synchronized with the underlying storage provider. Read-only. type: boolean @@ -5137,6 +5140,38 @@ components: type: string format: date-time description: Represents the date and time the photo was taken. Read-only. + motionPhoto: + type: object + readOnly: true + description: | + Motion Photo metadata. A Motion Photo is a still image with a short video clip appended to + the end of the file. The presence of this facet on a driveItem indicates that the item is + a Motion Photo; absence indicates it is not. + + Based on the Google Motion Photo format v1.0 specification: + https://developer.android.com/media/platform/motion-photo-format + properties: + version: + type: integer + format: int32 + description: The file format version of the Motion Photo. Currently always 1. Read-only. + readOnly: true + presentationTimestampUs: + type: integer + format: int64 + description: | + Presentation timestamp in microseconds of the video frame that corresponds to the still + image. A value of -1 indicates unspecified. If absent, readers should use a timestamp + near the middle of the video track. Read-only. + readOnly: true + videoSize: + type: integer + format: int64 + description: | + Size in bytes of the embedded video portion of the file. The video is appended at the + end of the file, so clients can fetch it with a Range request: + `Range: bytes=-`. Read-only. + readOnly: true geoCoordinates: type: object readOnly: true