/** * @example * { * endTime: "2019-06-13T19:08:55Z", * mediaType: "image", * startTime: "2019-06-13T19:08:25Z", * vehicleId: "1234" * } */ export interface MediaRetrievalPostMediaRetrievalRequestBody { /** Optional list of camera roles to resolve to analog inputs at request time. Requires an AHD4 auxcam device. Can be used alone or combined with inputs. */ cameraRoles?: MediaRetrievalPostMediaRetrievalRequestBody.CameraRoles.Item[]; /** An end time in RFC 3339 format. If endTime is the same as startTime, an image will be captured at startTime. Must be 1 second or more after startTime and no more than the maximum allowed duration per video retrieval type. Please refer to our KB articles for more information. (Examples: 2019-06-13T19:08:55Z, 2019-06-13T19:08:55.455Z, OR 2015-09-15T14:00:42-04:00). */ endTime: string; /** A list of desired camera inputs for which to capture media. Only media with valid inputs (e.g. device has that input stream and device was recording at the time) will be uploaded. At least one of inputs or cameraRoles must be provided. */ inputs?: MediaRetrievalPostMediaRetrievalRequestBody.Inputs.Item[]; /** The desired media type. If a video is requested, endTime must be after startTime. If an image is requested, endTime must be the same as startTime. Must be one of: image, videoHighRes, videoLowRes. Examples: image, videoHighRes, videoLowRes, hyperlapse. Valid values: `image`, `videoHighRes`, `videoLowRes`, `hyperlapse` */ mediaType: MediaRetrievalPostMediaRetrievalRequestBody.MediaType; /** A start time in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00). */ startTime: string; /** Vehicle ID for which to initiate media capture. Examples: 1234 */ vehicleId: string; } export declare namespace MediaRetrievalPostMediaRetrievalRequestBody { type CameraRoles = CameraRoles.Item[]; namespace CameraRoles { /** camera role Valid values: `leftMirrorMount`, `leftSide`, `rightMirrorMount`, `rightSide`, `rearHigh`, `rearBumper`, `inCab`, `front`, `hopper`, `other1`, `other2`, `other3`, `other4`, `leftBev`, `rightBev`, `rearBev`, `frontBev`, `otherBev`, `bevNotUsed` */ const Item: { readonly LeftMirrorMount: "leftMirrorMount"; readonly LeftSide: "leftSide"; readonly RightMirrorMount: "rightMirrorMount"; readonly RightSide: "rightSide"; readonly RearHigh: "rearHigh"; readonly RearBumper: "rearBumper"; readonly InCab: "inCab"; readonly Front: "front"; readonly Hopper: "hopper"; readonly Other1: "other1"; readonly Other2: "other2"; readonly Other3: "other3"; readonly Other4: "other4"; readonly LeftBev: "leftBev"; readonly RightBev: "rightBev"; readonly RearBev: "rearBev"; readonly FrontBev: "frontBev"; readonly OtherBev: "otherBev"; readonly BevNotUsed: "bevNotUsed"; }; type Item = (typeof Item)[keyof typeof Item]; } type Inputs = Inputs.Item[]; namespace Inputs { /** input Valid values: `dashcamRoadFacing`, `dashcamDriverFacing`, `analog1`, `analog2`, `analog3`, `analog4` */ const Item: { readonly DashcamRoadFacing: "dashcamRoadFacing"; readonly DashcamDriverFacing: "dashcamDriverFacing"; readonly Analog1: "analog1"; readonly Analog2: "analog2"; readonly Analog3: "analog3"; readonly Analog4: "analog4"; }; type Item = (typeof Item)[keyof typeof Item]; } /** The desired media type. If a video is requested, endTime must be after startTime. If an image is requested, endTime must be the same as startTime. Must be one of: image, videoHighRes, videoLowRes. Examples: image, videoHighRes, videoLowRes, hyperlapse. Valid values: `image`, `videoHighRes`, `videoLowRes`, `hyperlapse` */ const MediaType: { readonly Image: "image"; readonly VideoHighRes: "videoHighRes"; readonly VideoLowRes: "videoLowRes"; readonly Hyperlapse: "hyperlapse"; }; type MediaType = (typeof MediaType)[keyof typeof MediaType]; }