/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { customizationsCreate } from "../funcs/customizationsCreate.js"; import { customizationsDelete } from "../funcs/customizationsDelete.js"; import { customizationsGet } from "../funcs/customizationsGet.js"; import { customizationsUpdate } from "../funcs/customizationsUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Customizations extends ClientSDK { /** * Show Customizations * * @remarks * Fetches explicitly defined customizations for the video. * * ## Requires api token with one of the following permissions * ``` * Read all folder and media data * ``` */ async get( request: operations.GetMediasMediaIdCustomizationsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(customizationsGet( this, request, options, )); } /** * Create Customizations * * @remarks * Set customizations for a video. Replaces the customizations explicitly set for this video. * * ## Requires api token with one of the following permissions * ``` * Read, update & delete anything * ``` */ async create( request: operations.PostMediasMediaIdCustomizationsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(customizationsCreate( this, request, options, )); } /** * Update Customizations * * @remarks * Allows for partial updates on a video’s customizations. If a value is null, then that key will be deleted from the saved customizations. If it is not null, that value will be set. * * ## Requires api token with one of the following permissions * ``` * Read, update & delete anything * ``` */ async update( request: operations.PutMediasMediaIdCustomizationsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(customizationsUpdate( this, request, options, )); } /** * Delete Customizations * * @remarks * Deletes all explicit customizations for a video, making it act as if it has never been customized. * * ## Requires api token with one of the following permissions * ``` * Read, update & delete anything * ``` */ async delete( request: operations.DeleteMediasMediaIdCustomizationsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(customizationsDelete( this, request, options, )); } }