/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { trimsCreate } from "../funcs/trimsCreate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Trims extends ClientSDK { /** * Create Media from Trims * * @remarks * Creates a new media that trims off parts of an existing media. * * By default, the `trims` parameter specifies time ranges to **remove** from the media. When `keep_trims` is set to `true`, the `trims` parameter instead specifies time ranges to **keep** in the media. * * **NOTE:** currently this endpoint only supports trimming video files. * * ## Requires api token with one of the following permissions * ``` * Read, update & delete anything * ``` */ async create( request: operations.PostMediasMediaHashedIdTrimsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(trimsCreate( this, request, options, )); } }