import { APIResource } from '../resource.js'; import { APIPromise } from '../api-promise.js'; import type { RequestOptions } from '../internal/request-options.js'; export declare class VideoAssets extends APIResource { /** * An asset refers to media content/video that is processed, stored, and delivered through Gumlet. This endpoint creates an asset allowing users to ingest media content into the Gumlet system for processing and delivery. * * @param {VideoAssetCreateParams} body - The request body to send. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} 200 * * @example * ```ts * const videoAsset = await client.videoAssets.create({ * format: 'ABR', * workspace_id: '', * title: 'Example Title', * input: 'http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8', * }); * ``` */ create(body: VideoAssetCreateParams, options?: RequestOptions): APIPromise; /** * This endpoint creates a video asset allowing upload of a video from the local file system and ingest media content into the Gumlet system for processing and delivery. Body parameters are the same as the Create Asset body parameters except for the `input` parameter, which this endpoint does not take. A successful response will be returned with `upload_url` field. You can make `PUT` request to that URL to upload video. To upload video using `upload_url` refer to [this](https://docs.gumlet.com/docs/direct-upload#2-use-the-url-to-upload-a-file). * * @param {VideoAssetUploadParams} body - The request body to send. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} 200 * * @example * ```ts * const videoAsset = await client.videoAssets.upload({ * format: 'ABR', * collection_id: '646df1c9173a4a2fcac180b4', * description: 'some description', * tag: ['ball'], * profile_id: '646df1c9173a4a2fcac180b7', * playlist_id: '6597acd5ed6f26a9c5ca9633', * metadata: { headermeta: 'metavalue' }, * call_to_actions: [ * { * start_time: 1, * end_time: 90, * text: 'some test', * url: 'https://some-url.com', * position_from_top: 11, * position_from_right: 23, * font_color: '#000001', * background_color: '#ffffff', * }, * ], * folder: '697375fbfa2d1037283140e4', * workspace_id: '646df1c9173a4a2fcac180b4', * }); * ``` */ upload(body: VideoAssetUploadParams, options?: RequestOptions): APIPromise; /** * This endpoint retrieves the details of an asset that has previously been created. * * @param {string} assetID - An asset id for the previously created asset. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} 200 * * @example * ```ts * const videoAsset = await client.videoAssets.retrieveDetails('assetId'); * ``` */ retrieveDetails(assetID: string, options?: RequestOptions): APIPromise; /** * This endpoint removes an asset given its unique asset id. The asset will be removed from storage as well, associated URLs will be inaccessible. * * @param {string} assetID - Asset id of the video asset which needs to be deleted. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns 204 * * @example * ```ts * await client.videoAssets.delete('assetId'); * ``` */ delete(assetID: string, options?: RequestOptions): APIPromise; /** * This endpoint allows users to update video asset that has previously been created. * * @param {VideoAssetUpdateParams} body - The request body to send. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} 200 * * @example * ```ts * const videoAsset = await client.videoAssets.update({ asset_id: '', title: 'Updated Title' }); * ``` */ update(body: VideoAssetUpdateParams, options?: RequestOptions): APIPromise; /** * Select frame from video to use as thumbnail. * * @param {string} assetID - Asset id of the video asset which needs to be deleted. * @param {VideoAssetThumbnailSelectParams} body - The request body to send. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} 200 * * @example * ```ts * const videoAsset = await client.videoAssets.thumbnailSelect('assetId', { frame_at_second: 2 }); * ``` */ thumbnailSelect(assetID: string, body: VideoAssetThumbnailSelectParams, options?: RequestOptions): APIPromise; /** * Use any image file to use as thumbnail. Once you use the API, you will get `upload_url` in the response, and that can be used to upload the image file. * * Here is the sample curl request. * * ```bash * curl --location --request PUT '' \ * --data '' * ``` * * @param {string} assetID - An asset id for the previously created asset. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} * * @example * ```ts * const videoAsset = await client.videoAssets.thumbnailUpload('assetId'); * ``` */ thumbnailUpload(assetID: string, options?: RequestOptions): APIPromise; /** * This endpoint will create/update video asset chapters. * * @param {string} assetID - Gumlet asset ID * @param {VideoAssetCreateUpdateChapterParams} body - The request body to send. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} 200 * * @example * ```ts * const videoAsset = await client.videoAssets.createUpdateChapter('assetId', { * chapters: [ * { label: 'Chapter 1', startTime: 0 }, * { label: 'Chapter 2', startTime: 10 }, * ], * }); * ``` */ createUpdateChapter(assetID: string, body: VideoAssetCreateUpdateChapterParams, options?: RequestOptions): APIPromise; /** * [Deprecated] Combined folders + assets list for a workspace. Use `GET /video/assets/list/{workspace_id}` for assets and `GET /video/workspaces/{workspace_id}/folders` for folders instead. * * List folders and assets for a workspace in a single response. Use `parent_id` to browse a specific folder, or filters like `title`, `status`, and `playlist_id` to search assets. * * @param {string} workspaceID - Video workspace id. * @param {VideoAssetListWorkspaceFoldersAndDeprecatedParams} [query] - The parameters to send with the request. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} 200 * * @example * ```ts * const videoAsset = await client.videoAssets.listWorkspaceFoldersAndDeprecated('workspaceId', { * type: 'all', * offset: 0, * size: 20, * signed_token: 'false', * }); * ``` * * @deprecated */ listWorkspaceFoldersAndDeprecated(workspaceID: string, query?: VideoAssetListWorkspaceFoldersAndDeprecatedParams | null | undefined, options?: RequestOptions): APIPromise; /** * List assets in a video workspace (local Mongo list; not Atlas Search). * * Use `page_number` and `page_size` for page-based pagination. Use `next_page_token` for cursor-based pagination where supported. * * `next_page_token` is supported only with the **default** sort or `sortBy=created_at` (and without a `title` search). It is **not** supported with other sort fields (for example `title`, `duration`, `status`, `playlist_order`, `custom`) or when `title` is set; in those cases use `page_number` / `page_size` only. * * For folders, use `GET /video/workspaces/{workspace_id}/folders` and combine results in your client. The combined endpoint `GET /video/workspaces/{workspace_id}/list` is deprecated. * * @param {string} workspaceID - Gumlet workspace ID. You can get it on the Gumlet dashboard or retrieve it using the list workspaces API. * @param {VideoAssetListParams} [query] - The parameters to send with the request. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} 200 * * @example * ```ts * const videoAsset = await client.videoAssets.list('workspaceId', { * sortBy: 'created_at', * orderBy: 'desc', * signed_token: 'false', * page_number: 1, * page_size: 20, * }); * ``` */ list(workspaceID: string, query?: VideoAssetListParams | null | undefined, options?: RequestOptions): APIPromise; /** * Delete multiple VOD assets at once. * * @param {VideoAssetDeleteManyParams} body - The request body to send. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} Successful response * * @example * ```ts * const videoAsset = await client.videoAssets.deleteMany({ * source_id: '60bd2ba353ff754d28179ee6', * asset_list: ['64249a8858fd3a208b987702', '64784bae843b155b829bbf84'], * workspace_id: '60bd2ba353ff754d28179ee6', * }); * ``` */ deleteMany(body: VideoAssetDeleteManyParams, options?: RequestOptions): APIPromise; /** * Add / remove tags from multiple assets at once. * * @param {VideoAssetTagManyParams} body - The request body to send. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} Successful response * * @example * ```ts * const videoAsset = await client.videoAssets.tagMany({ * source_id: '60bd2ba353ff754d28179ee6', * add_tags: ['tag-1'], * remove_tags: ['playlist-1'], * asset_list: ['6221db301c8b821b0519fba0', '61e8f2726ec832ab2ac4fa6e'], * workspace_id: '60bd2ba353ff754d28179ee6', * }); * ``` */ tagMany(body: VideoAssetTagManyParams, options?: RequestOptions): APIPromise; /** * Get video analytics for a single asset. * * @param {string} assetID - Gumlet asset ID * @param {VideoAssetAnalyticsParams} body - The request body to send. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} Successful response * * @example * ```ts * const videoAsset = await client.videoAssets.analytics('assetId', { * group_by: 'daily', * date_range: { * start_at: '2024-01-01', * end_at: '2024-01-01', * }, * metrics: ['impressions'], * }); * ``` */ analytics(assetID: string, body: VideoAssetAnalyticsParams, options?: RequestOptions): APIPromise; } export interface VideoAssetCreateParams { /** * URL or web address of a file that Gumlet should download to create a new asset. */ input: string; /** * Gumlet video workspace id. */ workspace_id: string; /** * Provide `profile_id` of the previously created video profile. This parameter will override all the parameters (except `input` and `workspace_id`) from the video profile. */ profile_id?: string; /** * Transcode and deliver the asset in the requested format. The options can be one of `ABR` (HLS + DASH) and `MP4`. */ format?: 'ABR' | 'MP4'; /** * Specify a text string or identifier which can identify an asset or bunch of assets later. */ tag?: Array; /** * Specify a text string or identifier which can be used for filtering or searching the asset. */ title?: string; /** * Attach some textual data with the asset. This field is neither searchable nor filterable. */ description?: string; /** * Add your metadata you want to associate with this asset.
Example:
{ "internal_video_id" : "123Abc" } */ metadata?: Record; /** * Resize video with the given width. Can be an absolute value in pixels or a percentage value with the `%` suffix. Specified values greater than the original asset width will be ignored. Applicable only when specified format is `MP4`. */ width?: string; /** * Resize video with the given height. Can be an absolute value in pixels or a percentage value with the `%` suffix. Specified values greater than the original asset height will be ignored. Applicable only when specified format is `MP4`. */ height?: string; /** * Required resolutions of the transformed asset in case of HLS or MPEG-DASH delivery format. Can be a comma-separated string out of the following values: `240p`, `360p`, `480p`, `540p`, `720p`, and `1080p`. Resized rendition will retain the input aspect ratio. */ resolution?: string; /** * This transformation can be used to crop the video by defining a rectangular area within the dimensions of the output video. */ crop?: VideoAssetCreateParams.Crop; /** * This transformation can be used to add padding to the video. */ pad?: VideoAssetCreateParams.Pad; /** * Trim transformation can be used to trim videos based on time duration. */ trim?: VideoAssetCreateParams.Trim; /** * Image overlay can be used to brand a video or add a visual label in the form of an image. */ image_overlay?: VideoAssetCreateParams.ImageOverlay; /** * Text overlay can be used to brand a video or add a label in the form of text. */ text_overlay?: VideoAssetCreateParams.TextOverlay; /** * Create an animated GIF from the video. */ animated_gif?: VideoAssetCreateParams.AnimatedGif; /** * Add additional Audio / Subtitle tracks to Gumlet for transcoding and delivery along with video asset track. */ additional_tracks?: Array; /** * Gumlet allows you to generate subtitles from the audio stream (use ISO 639-1 Language Codes) */ generate_subtitles?: VideoAssetCreateParams.GenerateSubtitles; /** * Creates `MP4` version for download purpose in case of `MPEG-DASH` or `HLS` delivery format. **Default: `false`** */ mp4_access?: boolean; /** * Gumlet analyzes each input video on a wide range of visual aspects. Based on the analysis, it chooses a unique set of transcoding options for processing the video. This ensures that the output video is of optimal size and best quality. **Default: `true`** */ per_title_encoding?: boolean; /** * Currently, the minimum supported frame size is `57600` (`240x240`) pixels for `HLS/DASH` and `21025` (`145x145`) pixels for `MP4` format. However, enabling this flag will allow Gumlet to simply put your video asset into the specified delivery format without transcoding and optimization. Enabling this flag will cause any kind of specified video transformation to be ignored if you input video asset frame size is lower than the minimum supported frame size for the specified format. **Default: `false`** */ process_low_resolution_input?: boolean; /** * This flag allows Gumlet to transcode and deliver audio-only in the specified format. In this case, video transformation and thumbnails/animated GIFs would not be created. **Default: `false`** */ audio_only?: boolean; /** * Enable DRM encryption for transcoded videos. Gumlet supports Widevine and FairPlay DRMs. */ enable_drm?: boolean; /** * A CTA is an explicit prompt within the video content encouraging viewers to take a particular action. */ call_to_actions?: Array; /** * Add this asset to a playlist. */ playlist_id?: string; /** * Add this asset to an existing folder by `folder_id`. */ folder?: string; } export declare namespace VideoAssetCreateParams { interface Crop { /** * Width of the cropping area in pixels. */ width: string; /** * Height of the cropping area in pixels. */ height: string; /** * This parameter defines the horizontal coordinate value of the upper-left corner of the cropping area. Values can be an absolute number of pixels or a percentage value relative to the video width. **Default: `0`** */ horizontal_margin?: string; /** * This parameter defines the vertical coordinate value of the upper-left corner of the cropping area. Values can be an absolute number of pixels or a percentage value relative to the video height. **Default: `0`** */ vertical_margin?: string; } interface Pad { /** * Width of padding on the top side. Values can be an absolute number of pixels or a percentage value relative to the video height. **Default: `%5`** */ top?: string; /** * Width of padding on the left side. Values can be an absolute number of pixels or a percentage value relative to the video width. **Default: `0`** */ left?: string; /** * Width of padding on the bottom side. Values can be an absolute number of pixels or a percentage value relative to the video height. **Default: `%5`** */ bottom?: string; /** * Width of padding on the right side. Values can be an absolute number of pixels or a percentage value relative to the video width. **Default: `0`** */ right?: string; /** * Color of padding area. **Default: `black`** */ color?: string; } interface Trim { /** * Start offset in number of seconds or in `HH:MM:SS` format. * @format float */ start_offset: number; /** * End offset in number of seconds or in `HH:MM:SS` format. * @format float */ end_offset: number; /** * Duration can be used in conjunction with `start_offset` parameter, can be specified in number of seconds. * @format float */ duration?: number; } interface ImageOverlay { /** * This is the required parameter for image overlay; it can be a URL to an image that needs to be overlaid. */ url: string; /** * This parameter defines the horizontal coordinate value of the corner (determined by `horizontal_align`) of the overlay area. Values can be an absolute number of pixels or a percentage value relative to the video width. **Default: `0`** */ horizontal_margin?: string; /** * This parameter defines the vertical coordinate value of the corner (determined by `vertical_align`) of the overlay area. Values can be an absolute number of pixels or a percentage value relative to the video height. **Default: `0`** */ vertical_margin?: string; /** * This parameter specifies the horizontal alignment of the overlaid image and can be either `left` or `right`. **Default: `right`** */ horizontal_align?: string; /** * This parameter specifies the vertical alignment of the overlaid image and can be either `top` or `bottom`. **Default: `bottom`** */ vertical_align?: string; /** * Width of the overlaid image. **Default: `image width`** */ width?: string; /** * Height of the overlaid image. **Default: `image height`** */ height?: string; } interface TextOverlay { /** * Text to be overlaid on video. */ text: string; /** * This parameter specifies the horizontal alignment of the overlaid text and can be either `left` or `right`. **Default: `right`** */ horizontal_align?: string; /** * This parameter specifies the vertical alignment of the overlaid text and can be either `top` or `bottom`. **Default: `bottom`** */ vertical_align?: string; /** * This parameter defines the horizontal coordinate value of the corner (determined by `horizontal_align`) of the overlay area. Values can be an absolute number of pixels relative to the video width. **Default: `0`** */ horizontal_margin?: string; /** * This parameter defines the vertical coordinate value of the corner (determined by vertical_align) of the overlay area. Values can be an absolute number of pixels relative to the video height. **Default: `0`** */ vertical_margin?: string; /** * Font color for text. **Default: `black`** */ color?: string; /** * Font family type for text. **Default: `sans`** */ font?: string; /** * Font size in pixels. **Default: `16`** */ font_size?: string; /** * Overlay text opacity can be specified with opacity parameter where value can be between `0` and `100` where `0` is considered completely transparent and `100` is considered completely opaque. **Default: `100`** */ opacity?: string; /** * This parameter allows drawing a rectangular box over the overlaid text. **Default: `false`** */ box?: boolean; /** * Box color can be specified with this parameter. **Default: `white`** */ box_color?: string; /** * Box opacity can be specified with this parameter. **Default: `100`** */ box_opacity?: string; /** * Padding between the box border and the text can be specified with this parameter in pixels. **Default: `0`** */ box_border?: string; } interface AnimatedGif { /** * The time (in seconds or `HH:MM:SS` format) of the video timeline where the animated gif should begin. **Default: `0`** */ start_offset?: string; /** * The time (in seconds or `HH:MM:SS` format) of the video timeline where the GIF ends. Defaults to `10` seconds after the start_offset. Maximum duration of GIF is limited to `10` seconds. */ end_offset?: string; /** * The width in pixels (or in percentage value of asset width) of the animated GIF. Max width is `640px`. */ width?: string; /** * The height in pixels (or in percentage value of asset height) of the animated GIF. Max height is `640px`. */ height?: string; /** * The frame rate of the generated GIF. Defaults to `15` fps. Max `30` fps. */ fps?: string; } interface AdditionalTrack { /** * URL or web address of a file that Gumlet should download to add a stream. */ url: string; /** * Type of additional track. Value can be either audio or subtitle. */ type: string; /** * The language code value represents BCP 47 specification compliant value. For example, en for English. */ language_code: string; /** * The name of the track containing a human-readable description. */ name?: string; } interface GenerateSubtitles { /** * Language code for native language of the audio. */ audio_language?: string; /** * Comma separated string of language codes for which subtitle needs to be generated. Maximum four language codes are allowed. */ subtitle_languages?: string; } interface CallToAction { text?: string; url?: string; /** * @format int32 */ start_time?: number; /** * @format int32 */ end_time?: number; /** * hex value of color */ font_color?: string; /** * hex code of color */ background_color?: string; /** * number of pixels from top * @format int32 */ position_from_top?: number; /** * number of pixels from right * @format int32 */ position_from_right?: number; } } export interface VideoAssetCreateResponse { /** * Asset ID of created asset. */ asset_id?: string; /** * Processing progress percentage showing value between 0 and 100. * @default 0 * @minimum 0 * @maximum 100 */ progress?: number; /** * Created at time in milliseconds since epoch * @default 0 */ created_at?: number; /** * Updated at time in milliseconds since epoch * @default 0 */ updated_at?: number; /** * Status of video */ status?: string; /** * List of tags */ tag?: Array; /** * Input parameters */ input?: VideoAssetCreateResponse.Input; /** * Output parameters */ output?: VideoAssetCreateResponse.Output; playlists?: Array; /** * Workdspace ID */ workspace_id?: string; } export declare namespace VideoAssetCreateResponse { interface Input { transformations?: Input.Transformations; profile_id?: string; title?: string; description?: string; metadata?: Input.Metadata; source_url?: string; call_to_actions?: Array; } namespace Input { interface Transformations { format?: string; resolution?: Array; audio_codec?: Array; video_codec?: Array; thumbnail?: Array; thumbnail_format?: string; /** * @default true */ mp4_access?: boolean; /** * @default true */ per_title_encoding?: boolean; } interface Metadata { headermeta?: string; } interface CallToAction { /** * @default 0 */ start_time?: number; /** * @default 0 */ end_time?: number; text?: string; url?: string; /** * @default 0 */ position_from_top?: number; /** * @default 0 */ position_from_right?: number; /** * @default 0 */ border_radius?: number; font_color?: string; background_color?: string; html_target?: string; } } interface Output { format?: string; status_url?: string; playback_url?: string; thumbnail_url?: Array; } } export interface VideoAssetUploadParams { /** * Gumlet video workspace ID. Preferred over deprecated `collection_id` / `source_id` (same ID). */ workspace_id: string; /** * Deprecated. Use `workspace_id` instead. Still accepted for backwards compatibility. * @deprecated */ collection_id?: string; /** * Provide `profile_id` of the previously created video profile. This parameter will override all the parameters (except `input` and `workspace_id`) from the video profile. */ profile_id?: string; /** * Transcode and deliver the asset in the requested format. The options can be one of `ABR` (HLS + DASH) and `MP4`. */ format?: 'ABR' | 'MP4'; /** * Specify a text string or identifier which can identify an asset or bunch of assets later. */ tag?: Array; /** * Specify a text string or identifier which can be used for filtering or searching the asset. */ title?: string; /** * Attach some textual data with the asset. This field is neither searchable nor filterable. */ description?: string; /** * Add your metadata you want to associate with this asset.
Example:
{ "internal_video_id" : "123Abc" } */ metadata?: Record; /** * Resize video with the given width. Can be an absolute value in pixels or a percentage value with the `%` suffix. Specified values greater than the original asset width will be ignored. Applicable only when specified format is `MP4`. */ width?: string; /** * Resize video with the given height. Can be an absolute value in pixels or a percentage value with the `%` suffix. Specified values greater than the original asset height will be ignored. Applicable only when specified format is `MP4`. */ height?: string; /** * Required resolutions of the transformed asset in case of HLS or MPEG-DASH delivery format. Can be a comma-separated string out of the following values: `240p`, `360p`, `480p`, `540p`, `720p`, and `1080p`. Resized rendition will retain the input aspect ratio. */ resolution?: string; /** * This transformation can be used to crop the video by defining a rectangular area within the dimensions of the output video. */ crop?: VideoAssetUploadParams.Crop; /** * This transformation can be used to add padding to the video. */ pad?: VideoAssetUploadParams.Pad; /** * Trim transformation can be used to trim videos based on time duration. */ trim?: VideoAssetUploadParams.Trim; /** * Image overlay can be used to brand a video or add a visual label in the form of an image. */ image_overlay?: VideoAssetUploadParams.ImageOverlay; /** * Text overlay can be used to brand a video or add a label in the form of text. */ text_overlay?: VideoAssetUploadParams.TextOverlay; /** * Create an animated GIF from the video. */ animated_gif?: VideoAssetUploadParams.AnimatedGif; /** * Add additional Audio / Subtitle tracks to Gumlet for transcoding and delivery along with video asset track. */ additional_tracks?: Array; /** * Gumlet allows you to generate subtitles from the audio stream (use ISO 639-1 Language Codes) */ generate_subtitles?: VideoAssetUploadParams.GenerateSubtitles; /** * Creates `MP4` version for download purpose in case of `MPEG-DASH` or `HLS` delivery format. **Default: `false`** */ mp4_access?: boolean; /** * Gumlet analyzes each input video on a wide range of visual aspects. Based on the analysis, it chooses a unique set of transcoding options for processing the video. This ensures that the output video is of optimal size and best quality. **Default: `true`** */ per_title_encoding?: boolean; /** * Currently, the minimum supported frame size is `57600` (`240x240`) pixels for `HLS/DASH` and `21025` (`145x145`) pixels for `MP4` format. However, enabling this flag will allow Gumlet to simply put your video asset into the specified delivery format without transcoding and optimization. Enabling this flag will cause any kind of specified video transformation to be ignored if you input video asset frame size is lower than the minimum supported frame size for the specified format. **Default: `false`** */ process_low_resolution_input?: boolean; /** * This flag allows Gumlet to transcode and deliver audio-only in the specified format. In this case, video transformation and thumbnails/animated GIFs would not be created. **Default: `false`** */ audio_only?: boolean; /** * Enable DRM encryption for transcoded videos. Gumlet supports Widevine and FairPlay DRMs. */ enable_drm?: boolean; /** * A CTA is an explicit prompt within the video content encouraging viewers to take a particular action. */ call_to_actions?: Array; /** * Add this asset to a playlist. */ playlist_id?: string; /** * Add this asset to an existing folder by `folder_id`. */ folder?: string; } export declare namespace VideoAssetUploadParams { interface Crop { /** * Width of the cropping area in pixels. */ width: string; /** * Height of the cropping area in pixels. */ height: string; /** * This parameter defines the horizontal coordinate value of the upper-left corner of the cropping area. Values can be an absolute number of pixels or a percentage value relative to the video width. **Default: `0`** */ horizontal_margin?: string; /** * This parameter defines the vertical coordinate value of the upper-left corner of the cropping area. Values can be an absolute number of pixels or a percentage value relative to the video height. **Default: `0`** */ vertical_margin?: string; } interface Pad { /** * Width of padding on the top side. Values can be an absolute number of pixels or a percentage value relative to the video height. **Default: `%5`** */ top?: string; /** * Width of padding on the left side. Values can be an absolute number of pixels or a percentage value relative to the video width. **Default: `0`** */ left?: string; /** * Width of padding on the bottom side. Values can be an absolute number of pixels or a percentage value relative to the video height. **Default: `%5`** */ bottom?: string; /** * Width of padding on the right side. Values can be an absolute number of pixels or a percentage value relative to the video width. **Default: `0`** */ right?: string; /** * Color of padding area. **Default: `black`** */ color?: string; } interface Trim { /** * Start offset in number of seconds or in `HH:MM:SS` format. * @format float */ start_offset: number; /** * End offset in number of seconds or in `HH:MM:SS` format. * @format float */ end_offset: number; /** * Duration can be used in conjunction with `start_offset` parameter, can be specified in number of seconds. * @format float */ duration?: number; } interface ImageOverlay { /** * This is the required parameter for image overlay; it can be a URL to an image that needs to be overlaid. */ url: string; /** * This parameter defines the horizontal coordinate value of the corner (determined by `horizontal_align`) of the overlay area. Values can be an absolute number of pixels or a percentage value relative to the video width. **Default: `0`** */ horizontal_margin?: string; /** * This parameter defines the vertical coordinate value of the corner (determined by `vertical_align`) of the overlay area. Values can be an absolute number of pixels or a percentage value relative to the video height. **Default: `0`** */ vertical_margin?: string; /** * This parameter specifies the horizontal alignment of the overlaid image and can be either `left` or `right`. **Default: `right`** */ horizontal_align?: string; /** * This parameter specifies the vertical alignment of the overlaid image and can be either `top` or `bottom`. **Default: `bottom`** */ vertical_align?: string; /** * Width of the overlaid image. **Default: `image width`** */ width?: string; /** * Height of the overlaid image. **Default: `image height`** */ height?: string; } interface TextOverlay { /** * Text to be overlaid on video. */ text: string; /** * This parameter specifies the horizontal alignment of the overlaid text and can be either `left` or `right`. **Default: `right`** */ horizontal_align?: string; /** * This parameter specifies the vertical alignment of the overlaid text and can be either `top` or `bottom`. **Default: `bottom`** */ vertical_align?: string; /** * This parameter defines the horizontal coordinate value of the corner (determined by `horizontal_align`) of the overlay area. Values can be an absolute number of pixels relative to the video width. **Default: `0`** */ horizontal_margin?: string; /** * This parameter defines the vertical coordinate value of the corner (determined by vertical_align) of the overlay area. Values can be an absolute number of pixels relative to the video height. **Default: `0`** */ vertical_margin?: string; /** * Font color for text. **Default: `black`** */ color?: string; /** * Font family type for text. **Default: `sans`** */ font?: string; /** * Font size in pixels. **Default: `16`** */ font_size?: string; /** * Overlay text opacity can be specified with opacity parameter where value can be between `0` and `100` where `0` is considered completely transparent and `100` is considered completely opaque. **Default: `100`** */ opacity?: string; /** * This parameter allows drawing a rectangular box over the overlaid text. **Default: `false`** */ box?: boolean; /** * Box color can be specified with this parameter. **Default: `white`** */ box_color?: string; /** * Box opacity can be specified with this parameter. **Default: `100`** */ box_opacity?: string; /** * Padding between the box border and the text can be specified with this parameter in pixels. **Default: `0`** */ box_border?: string; } interface AnimatedGif { /** * The time (in seconds or `HH:MM:SS` format) of the video timeline where the animated gif should begin. **Default: `0`** */ start_offset?: string; /** * The time (in seconds or `HH:MM:SS` format) of the video timeline where the GIF ends. Defaults to `10` seconds after the start_offset. Maximum duration of GIF is limited to `10` seconds. */ end_offset?: string; /** * The width in pixels (or in percentage value of asset width) of the animated GIF. Max width is `640px`. */ width?: string; /** * The height in pixels (or in percentage value of asset height) of the animated GIF. Max height is `640px`. */ height?: string; /** * The frame rate of the generated GIF. Defaults to `15` fps. Max `30` fps. */ fps?: string; } interface AdditionalTrack { /** * URL or web address of a file that Gumlet should download to add a stream. */ url: string; /** * Type of additional track. Value can be either audio or subtitle. */ type: string; /** * The language code value represents BCP 47 specification compliant value. For example, en for English. */ language_code: string; /** * The name of the track containing a human-readable description. */ name?: string; } interface GenerateSubtitles { /** * Language code for native language of the audio. */ audio_language?: string; /** * Comma separated string of language codes for which subtitle needs to be generated. Maximum four language codes are allowed. */ subtitle_languages?: string; } interface CallToAction { text?: string; url?: string; /** * @format int32 */ start_time?: number; /** * @format int32 */ end_time?: number; /** * hex value of color */ font_color?: string; /** * hex code of color */ background_color?: string; /** * number of pixels from top * @format int32 */ position_from_top?: number; /** * number of pixels from right * @format int32 */ position_from_right?: number; } } export interface VideoAssetUploadResponse { /** * Asset ID of the created asset */ asset_id?: string; /** * Processing progress percentage number between 0 and 100 * @default 0 * @minimum 0 * @maximum 100 */ progress?: number; /** * Created at timestamp in milliseconds since epoch * @default 0 */ created_at?: number; /** * Updated at timestamp in milliseconds since epoch * @default 0 */ updated_at?: number; /** * Status of asset */ status?: string; tag?: Array; input?: VideoAssetUploadResponse.Input; /** * Output data information */ output?: VideoAssetUploadResponse.Output; /** * Upload URL on which you need to send actual file using PUT request */ upload_url?: string; /** * Information about playlists */ playlists?: Array; /** * Workdspace ID */ workspace_id?: string; } export declare namespace VideoAssetUploadResponse { interface Input { transformations?: Input.Transformations; profile_id?: string; title?: string; description?: string; metadata?: Input.Metadata; source_url?: string; call_to_actions?: Array; } namespace Input { interface Transformations { format?: string; resolution?: Array; audio_codec?: Array; video_codec?: Array; thumbnail?: Array; thumbnail_format?: string; /** * @default true */ mp4_access?: boolean; /** * @default true */ per_title_encoding?: boolean; /** * @default true */ original_deleted?: boolean; } interface Metadata { headermeta?: string; } interface CallToAction { /** * @default 0 */ start_time?: number; /** * @default 0 */ end_time?: number; text?: string; url?: string; html_target?: string; } } interface Output { format?: string; status_url?: string; playback_url?: string; thumbnail_url?: Array; } } export interface VideoAssetRetrieveDetailsResponse { asset_id: string; /** * Asset created timestamp in milliseconds since epoch * @format int64 */ created_at: number; status: string; /** * Collection updated timestamp in milliseconds since epoch * @format int64 */ workspace_updated_at: number; /** * @default 0 */ progress?: number; /** * Asset updated timestamp in milliseconds since epoch * @default 0 * @format int64 */ updated_at?: number; tag?: Array; input?: VideoAssetRetrieveDetailsResponse.Input; output?: VideoAssetRetrieveDetailsResponse.Output; /** * @default 0 */ processed_at?: number; folder?: string; /** * Array of Playlist IDs */ playlists?: Array; /** * Thumbnail updated timestamp in milliseconds since epoch * @format int64 */ thumbnail_updated_at?: number; warning?: Array; /** * If `true` the asset is audio only */ audioOnly?: boolean; video_protection?: VideoAssetRetrieveDetailsResponse.VideoProtection; /** * Access control */ access_control?: 'private' | 'public' | 'password-protected' | 'dashboardOnly'; access_controls?: VideoAssetRetrieveDetailsResponse.AccessControls; /** * Workspace ID */ workspace_id?: string; } export declare namespace VideoAssetRetrieveDetailsResponse { interface Input { transformations?: Input.Transformations; profile_id?: string; title?: string; description?: string; chapters?: Array; source_url?: string; /** * @default 0 */ size?: number; /** * @default 0 */ duration?: number; aspect_ratio?: string; /** * @default 0 */ fps?: number; /** * @default 0 */ width?: number; /** * @default 0 */ height?: number; } namespace Input { interface Transformations { format: string; resolution?: Array; audio_codec?: Array; video_codec?: Array; image_overlay?: Transformations.ImageOverlay; thumbnail?: Array; thumbnail_format?: string; /** * @default true */ mp4_access?: boolean; /** * @default true */ audio_only?: boolean; /** * @default true */ original_deleted?: boolean; /** * @default true */ per_title_encoding?: boolean; generate_subtitles?: Transformations.GenerateSubtitles; preview_thumbnails?: Transformations.PreviewThumbnails; /** * Flag indicating if the pre-processing was successful */ pre_processing_successful?: boolean; /** * Flag if AI chapter generation is enabled */ generate_chapters?: boolean; drm?: Transformations.Drm; /** * Flag if AI description generation is enabled */ generate_description?: boolean; } namespace Transformations { interface ImageOverlay { url?: string; vertical_align?: string; horizontal_align?: string; vertical_margin?: string; horizontal_margin?: string; width?: string; height?: string; /** * @default true */ image_downloaded?: boolean; } interface GenerateSubtitles { audio_language?: string; subtitle_languages?: Array; } interface PreviewThumbnails { /** * @default 0 */ max_tiles?: number; } interface Drm { type: 'widevine' | 'fairplay' | 'clearkey' | 'widevine,fairplay' | 'fairplay,widevine'; } } interface Chapter { /** * @default 0 * @deprecated */ endTime?: number; label?: string; startTime?: number; } } interface Output { format?: string; status_url?: string; playback_url?: string; dash_playback_url?: string; thumbnail_url?: Array; storage_details?: Output.StorageDetails; transcription_word_level_timestamps?: string; /** * @default 0 */ storage_bytes?: number; preview_thumbnails_url?: string; } namespace Output { interface StorageDetails { video: Array; audio: Array; playlist: Array; thumbnail: Array; subtitle: Array; previewThumbnail: Array; } namespace StorageDetails { interface Video { fileName?: string; /** * @default 0 */ size?: number; resolution?: string; /** * @default 0 */ duration?: number; } interface Audio { fileName?: string; /** * @default 0 */ size?: number; /** * @default 0 */ duration?: number; } interface Playlist { fileName?: string; /** * @default 0 */ size?: number; } interface Thumbnail { fileName?: string; /** * @default 0 */ size?: number; resolution?: string; } interface Subtitle { fileName?: string; /** * @default 0 */ size?: number; } interface PreviewThumbnail { fileName?: string; /** * @default 0 */ size?: number; } } } interface Warning { /** * Warning code for the asset */ code: string; /** * Human friendly warning message */ message: string; } interface VideoProtection { /** * Flag is signed URL is enabled for this asset */ signed_url?: boolean; } interface AccessControls { /** * Hidden password field */ password?: string; } } export interface VideoAssetUpdateParams { /** * Asset ID to update. This is a required parameter. */ asset_id: string; /** * Specify a text string or identifier which can be used for filtering or searching the asset. */ title?: string; /** * Attach some textual data with the asset. This field is neither searchable nor filterable. */ description?: string; /** * Specify a text string or identifier which can identify an asset or bunch of assets later. You can pass multiple comma-separated values. */ tag?: string; /** * A CTA is an explicit prompt within the video content encouraging viewers to take a particular action. */ call_to_actions?: Array; /** * Set of key-value pairs that you can attach to this Asset. This can be useful for storing additional information.
Example:
{ "internal_video_id" : "123Abc" } * @format json */ metadata?: string; /** * Comma separated string of language codes. */ remove_subtitles?: Array; /** * For replacing videos, pass this along with `asset_id` * * `{workspace_id}/{asset_id}/origin-{asset_id}` */ input?: string; /** * To reprocess same video, pass this as true. */ reprocess?: boolean; } export declare namespace VideoAssetUpdateParams { interface CallToAction { text?: string; url?: string; /** * @format int32 */ start_time?: number; /** * @format int32 */ end_time?: number; /** * hex value of color */ font_color?: string; /** * hex code of color */ background_color?: string; /** * number of pixels from top * @format int32 */ position_from_top?: number; /** * number of pixels from right */ position_from_right?: string; } } export type VideoAssetUpdateResponse = Record; export interface VideoAssetThumbnailSelectParams { /** * Actual time in second at which thumbnail extraction needs to be done. It can be a fraction of a second as well */ frame_at_second: number; } export interface VideoAssetThumbnailSelectResponse { success?: boolean; /** * Asset ID */ asset_id?: string; /** * Milliseconds since epoch for the updated time. */ thumbnail_updated_at?: number; } export interface VideoAssetThumbnailUploadResponse { /** * Upload URL on which new thumbnail must be uploaded using a PUT request */ upload_url?: string; /** * Asset ID */ asset_id?: string; /** * Thumbnail updated at timestamp in milliseconds since epoch */ thumbnail_updated_at?: number; } export interface VideoAssetCreateUpdateChapterParams { /** * List of chapters */ chapters: Array; } export declare namespace VideoAssetCreateUpdateChapterParams { interface Chapter { /** * Label for the chapter */ label: string; /** * Start time of chapter in seconds. 0 means chapter is put as the video starts. * @format int32 */ startTime: number; } } export type VideoAssetCreateUpdateChapterResponse = Record; export interface VideoAssetListWorkspaceFoldersAndDeprecatedParams { /** * Return `folders`, `videos`, or `all`. Default is `all`. */ type?: 'folders' | 'videos' | 'all'; /** * Parent folder id. Send `null` to browse the root level. */ parent_id?: string; /** * Search folders or assets by title or description. */ title?: string; /** * Comma-separated asset status values. */ status?: string; /** * Comma-separated asset tags. */ tag?: string; /** * Filter assets to a playlist. */ playlist_id?: string; /** * Asset created_at lower bound. Date in yyyy-MM-dd format. * @format date */ start_date?: string; /** * Asset created_at upper bound. Date in yyyy-MM-dd format. * @format date */ end_date?: string; /** * Minimum asset duration in seconds. */ min_duration?: number; /** * Maximum asset duration in seconds. */ max_duration?: number; /** * Sort assets by a supported field. */ sortBy?: 'title' | 'duration' | 'uploaded_at' | 'created_at'; /** * Asset sort order. */ orderBy?: 'asc' | 'desc'; /** * Search index used for asset title search. */ searchIndex?: 'search_index_for_asset_list' | 'cms-search' | 'cms-search-v2'; /** * Offset for paginated results. * @default 0 */ offset?: number; /** * Page size. Maximum 100. * @default 20 * @maximum 100 */ size?: number; /** * Whether URLs should be pre-signed in the API response. Possible values: `true` and `false`. Default is `false`. */ signed_token?: 'true' | 'false'; } export interface VideoAssetListWorkspaceFoldersAndDeprecatedResponse { all_assets: Array; folders?: Array; /** * @default 0 */ folder_count?: number; /** * @default 0 */ asset_count?: number; /** * @default 0 */ total_count?: number; /** * @default 0 */ current_offset?: number; } export declare namespace VideoAssetListWorkspaceFoldersAndDeprecatedResponse { interface AllAsset { asset_id?: string; /** * @default 0 */ progress?: number; /** * @default 0 */ created_at?: number; status?: string; tag?: string; /** * Deprecated. Use `workspace_id` instead. Still accepted for backwards compatibility. * @deprecated */ source_id?: string; input?: AllAsset.Input; output?: AllAsset.Output; /** * Workspace ID */ workspace_id?: string; } namespace AllAsset { interface Input { transformations?: Input.Transformations; source_url?: string; /** * @default 0 */ size?: number; /** * @default 0 */ duration?: number; aspect_ratio?: string; /** * @default 0 */ fps?: number; /** * @default 0 */ width?: number; /** * @default 0 */ height?: number; additional_tracks?: Array; /** * Title of the asset. */ title?: string; } namespace Input { interface Transformations { resolution?: string; format?: string; audio_codec?: Array; video_codec?: Array; thumbnail?: Array; thumbnail_format?: string; /** * @default true */ mp4_access?: boolean; /** * @default true */ audio_only?: boolean; /** * @default true */ keep_original?: boolean; /** * @default true */ per_title_encoding?: boolean; /** * @default true */ process_low_resolution_input?: boolean; } interface AdditionalTrack { url?: string; type?: string; language_code?: string; name?: string; } } interface Output { format?: string; status_url?: string; playback_url?: string; thumbnail_url?: Array; } } interface Folder { id?: string; name?: string; /** * Deprecated. Use `workspace_id` instead. Still returned for backwards compatibility. * @deprecated */ video_source_id?: string; parent_id?: string | null; path?: Array; path_names?: Array; /** * @default 0 */ depth?: number; /** * @default 0 */ subdirectory_count?: number; /** * @default 0 */ asset_count?: number; created_at?: string; updated_at?: string; /** * Workspace ID */ workspace_id?: string; } } export interface VideoAssetListParams { /** * Filter assets by status. Single value or comma-separated list (for example `ready` or `ready,errored`). */ status?: string; /** * Filter by asset tag(s). Use a comma-separated string for multiple tags. */ tag?: string; /** * Filter assets by title (text search). When `title` is set, `next_page_token` is not supported - use `page_number` / `page_size`. */ title?: string; /** * Filter assets by folder id. Send `null` or empty string for assets not in a folder. */ folder_id?: string; /** * Filter assets belonging to a playlist. */ playlist_id?: string; /** * Asset `created_at` lower bound. Date in `yyyy-MM-dd` format. * @format date */ start_date?: string; /** * Asset `created_at` upper bound. Date in `yyyy-MM-dd` format. * @format date */ end_date?: string; /** * Minimum asset duration in seconds. * @minimum 0 */ min_duration?: number; /** * Maximum asset duration in seconds. * @minimum 0 */ max_duration?: number; /** * Field to sort by. Default is `created_at`. `next_page_token` is only supported for the default sort or `created_at`. */ sortBy?: 'title' | 'duration' | 'uploaded_at' | 'created_at' | 'status'; /** * Sort direction. Default is `desc`. */ orderBy?: 'asc' | 'desc'; /** * Whether URLs should be pre-signed in the API response. Possible values: `true` and `false`. Default is `false`. */ signed_token?: 'true' | 'false'; /** * Page number to retrieve. Starts at `1`. * @default 1 * @minimum 1 */ page_number?: number; /** * Number of items to return per page. **Default: `20`**. **Maximum: `100`**. * @minimum 1 * @maximum 100 */ page_size?: number; /** * Cursor for the next page. Pass the `next_page_token` value returned in the previous response. Supported only when sorting by default/`created_at` and when `title` is not set. Otherwise the API returns `400`. * @pattern ^[a-fA-F0-9]{24}$ */ next_page_token?: string; } export interface VideoAssetListResponse { all_assets?: Array; /** * @default 0 */ total_asset_count?: number; /** * @default 0 */ current_offset?: number; distinct_tags?: Array; /** * Cursor for the next page when more results exist. Empty string when there is no next page. Only returned for default/`created_at` sorts without `title` search. */ next_page_token?: string; /** * Page size used for this response when it differs from the default. */ page_size?: number; /** * Sort key applied to the result set (for example `created_at` or `custom`). */ order_key?: string; /** * Sort direction applied to the result set. */ order_direction?: 'asc' | 'desc'; } export declare namespace VideoAssetListResponse { interface AllAsset { asset_id?: string; /** * @default 0 */ progress?: number; /** * @default 0 */ created_at?: number; status?: string; tag?: string; /** * Deprecated. Use `workspace_id` instead. Still accepted for backwards compatibility. * @deprecated */ source_id?: string; input?: AllAsset.Input; output?: AllAsset.Output; /** * Workspace ID */ workspace_id?: string; } namespace AllAsset { interface Input { transformations?: Input.Transformations; source_url?: string; /** * @default 0 */ size?: number; /** * @default 0 */ duration?: number; aspect_ratio?: string; /** * @default 0 */ fps?: number; /** * @default 0 */ width?: number; /** * @default 0 */ height?: number; additional_tracks?: Array; } namespace Input { interface Transformations { resolution?: string; format?: string; audio_codec?: Array; video_codec?: Array; thumbnail?: Array; thumbnail_format?: string; /** * @default true */ mp4_access?: boolean; /** * @default true */ audio_only?: boolean; /** * @default true */ keep_original?: boolean; /** * @default true */ per_title_encoding?: boolean; /** * @default true */ process_low_resolution_input?: boolean; } interface AdditionalTrack { url?: string; type?: string; language_code?: string; name?: string; } } interface Output { format?: string; status_url?: string; playback_url?: string; thumbnail_url?: Array; } } } export interface VideoAssetDeleteManyParams { /** * LIst of asset ids to delete */ asset_list: Array; /** * Gumlet video workspace ID. Preferred over deprecated `collection_id` / `source_id` (same ID). */ workspace_id: string; /** * Deprecated. Use `workspace_id` instead. Still accepted for backwards compatibility. * @deprecated */ source_id?: string; } export interface VideoAssetDeleteManyResponse { /** * Boolean parameter indicating if the delete was successful. */ success: boolean; } export interface VideoAssetTagManyParams { /** * List of asset ids to update the tags for. */ asset_list: Array; /** * List of tags to add to given assets. */ add_tags: Array; /** * List of tags to remove from given assets. Pass empty array if nothing is to be removed. */ remove_tags: Array; /** * Gumlet video workspace ID. Preferred over deprecated `collection_id` / `source_id` (same ID). */ workspace_id: string; /** * Deprecated. Use `workspace_id` instead. Still accepted for backwards compatibility. * @deprecated */ source_id?: string; } export interface VideoAssetTagManyResponse { /** * Boolean flag indicating if operation was successful. */ success: boolean; } export interface VideoAssetAnalyticsParams { /** * Group the data by this period. */ group_by: 'daily' | 'monthly' | 'weekly'; date_range: VideoAssetAnalyticsParams.DateRange; /** * List of metrics to return in response. */ metrics: Array<'impressions' | 'views' | 'playing_time' | 'top_countries' | 'top_pages' | 'top_cities' | 'top_device_types' | 'top_browsers' | 'heatmap' | 'widget_data'>; /** * Page number to fetch. Starting at 1 */ page_number?: number; /** * Number of items to return per page */ page_size?: number; } export declare namespace VideoAssetAnalyticsParams { interface DateRange { /** * Date in yyyy-MM-dd format * @format date */ start_at: string; /** * Date in yyyy-MM-dd format * @format date */ end_at: string; } } export interface VideoAssetAnalyticsResponse { playing_time: Array; /** * Heatmap data */ heatmap?: Array; /** * Views data */ views?: Array; '01M2QP6KS1HM1JE912S8K9DJ2N'?: unknown; impressions?: Array; /** * Data for top countries */ top_countries?: Array; /** * Data for top pages */ top_pages?: Array>; /** * Data for top cities */ top_cities?: Array; /** * Data for top browsers */ top_browsers?: Array; /** * Data for top device types */ top_device_types?: Array; widget_data?: VideoAssetAnalyticsResponse.WidgetData; } export declare namespace VideoAssetAnalyticsResponse { interface PlayingTime { /** * Milliseconds since epoch timestamp for the data point * @format uint64 */ date: number; /** * Milliseconds of watch time for the timestamp above. A value of 10000 means 10 seconds of watch time. * @format uint64 */ value: number; } interface Heatmap { /** * Buckets of seconds of video. E.g. '0-10', '10-20' etc. */ bucket: string; /** * Percent of viewers who viewed that portion of video */ count: number; } interface View { /** * Milliseconds since epoch timestamp for the data point * @format uint64 */ date: number; /** * Count of views for the given timestamp * @format uint64 */ value: number; } interface Impression { /** * Milliseconds since epoch timestamp for the data point * @format uint64 */ date: number; /** * Number of impressions * @format uint64 */ value: number; } interface TopCountry { /** * Name of the country */ key: string; /** * Number of views from a given country */ views: string; /** * Number of impressions from a given country */ impressions: string; } interface TopCity { /** * Name of the city */ key: string; /** * Number of views from a given city */ views: string; /** * Number of impressions from a given city */ impressions: string; } interface TopBrowser { /** * Name of the browser */ key: string; /** * Number of views from a given browser */ views: string; /** * Number of impressions from a given browser */ impressions: string; } interface TopDeviceType { /** * Name of the platform */ key: string; /** * Number of views from a given platform */ views: string; /** * Number of impressions from a given platform */ impressions: string; } interface WidgetData { /** * If there are more items apart from the response given. */ hasMore: boolean; /** * Data about the lead form submission */ widgetData: Array; } namespace WidgetData { interface WidgetData { /** * Asset ID */ asset_id: string; /** * Page URL where lead was captured */ page_url: string; /** * Video time in milliseconds when the lead was captured */ playback_time_instant_milli: string; /** * Workspace ID */ workspace_id: string; /** * Lead capture time in seconds since epoch */ timestamp: string; /** * Email id submitted */ email: string; /** * Name submitted */ name: string; } } } export declare namespace VideoAssets { export { type VideoAssetCreateResponse as VideoAssetCreateResponse, type VideoAssetUploadResponse as VideoAssetUploadResponse, type VideoAssetRetrieveDetailsResponse as VideoAssetRetrieveDetailsResponse, type VideoAssetUpdateResponse as VideoAssetUpdateResponse, type VideoAssetThumbnailSelectResponse as VideoAssetThumbnailSelectResponse, type VideoAssetThumbnailUploadResponse as VideoAssetThumbnailUploadResponse, type VideoAssetCreateUpdateChapterResponse as VideoAssetCreateUpdateChapterResponse, type VideoAssetListWorkspaceFoldersAndDeprecatedResponse as VideoAssetListWorkspaceFoldersAndDeprecatedResponse, type VideoAssetListResponse as VideoAssetListResponse, type VideoAssetDeleteManyResponse as VideoAssetDeleteManyResponse, type VideoAssetTagManyResponse as VideoAssetTagManyResponse, type VideoAssetAnalyticsResponse as VideoAssetAnalyticsResponse, type VideoAssetCreateParams as VideoAssetCreateParams, type VideoAssetUploadParams as VideoAssetUploadParams, type VideoAssetUpdateParams as VideoAssetUpdateParams, type VideoAssetThumbnailSelectParams as VideoAssetThumbnailSelectParams, type VideoAssetCreateUpdateChapterParams as VideoAssetCreateUpdateChapterParams, type VideoAssetListWorkspaceFoldersAndDeprecatedParams as VideoAssetListWorkspaceFoldersAndDeprecatedParams, type VideoAssetListParams as VideoAssetListParams, type VideoAssetDeleteManyParams as VideoAssetDeleteManyParams, type VideoAssetTagManyParams as VideoAssetTagManyParams, type VideoAssetAnalyticsParams as VideoAssetAnalyticsParams, }; } //# sourceMappingURL=video-assets.d.ts.map