@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
54 lines (53 loc) • 2.45 kB
TypeScript
import { BaseAPI } from '../../../../../../common/BaseAPI';
import Configuration from '../../../../../../common/Configuration';
import CustomdataApi from './customdata/CustomdataApi';
import BitmovinResponse from '../../../../../../models/BitmovinResponse';
import CencDrm from '../../../../../../models/CencDrm';
import PaginationResponse from '../../../../../../models/PaginationResponse';
import { CencDrmListQueryParams, CencDrmListQueryParamsBuilder } from './CencDrmListQueryParams';
/**
* CencApi - object-oriented interface
* @export
* @class CencApi
* @extends {BaseAPI}
*/
export default class CencApi extends BaseAPI {
customdata: CustomdataApi;
constructor(configuration: Configuration);
/**
* @summary Add CENC DRM to a Progressive WebM muxing
* @param {string} encodingId Id of the encoding.
* @param {string} muxingId Id of the Progressive WebM muxing.
* @param {CencDrm} cencDrm The CENC DRM to be created
* @throws {BitmovinError}
* @memberof CencApi
*/
create(encodingId: string, muxingId: string, cencDrm?: CencDrm): Promise<CencDrm>;
/**
* @summary Delete CENC DRM from a Progressive WebM muxing
* @param {string} encodingId Id of the encoding.
* @param {string} muxingId Id of the Progressive WebM muxing
* @param {string} drmId Id of the CENC DRM.
* @throws {BitmovinError}
* @memberof CencApi
*/
delete(encodingId: string, muxingId: string, drmId: string): Promise<BitmovinResponse>;
/**
* @summary CENC DRM Details of a Progressive WebM muxing
* @param {string} encodingId Id of the encoding.
* @param {string} muxingId Id of the Progressive WebM muxing.
* @param {string} drmId Id of the CENC DRM.
* @throws {BitmovinError}
* @memberof CencApi
*/
get(encodingId: string, muxingId: string, drmId: string): Promise<CencDrm>;
/**
* @summary List CENC DRM configurations of Progressive WebM muxing
* @param {string} encodingId Id of the encoding.
* @param {string} muxingId Id of the Progressive WebM muxing.
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
* @throws {BitmovinError}
* @memberof CencApi
*/
list(encodingId: string, muxingId: string, queryParameters?: CencDrmListQueryParams | ((q: CencDrmListQueryParamsBuilder) => CencDrmListQueryParamsBuilder)): Promise<PaginationResponse<CencDrm>>;
}