@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
54 lines (53 loc) • 2.48 kB
TypeScript
import { BaseAPI } from '../../../../../../common/BaseAPI';
import Configuration from '../../../../../../common/Configuration';
import CustomdataApi from './customdata/CustomdataApi';
import BitmovinResponse from '../../../../../../models/BitmovinResponse';
import SpekeDrm from '../../../../../../models/SpekeDrm';
import PaginationResponse from '../../../../../../models/PaginationResponse';
import { SpekeDrmListQueryParams, SpekeDrmListQueryParamsBuilder } from './SpekeDrmListQueryParams';
/**
* SpekeApi - object-oriented interface
* @export
* @class SpekeApi
* @extends {BaseAPI}
*/
export default class SpekeApi extends BaseAPI {
customdata: CustomdataApi;
constructor(configuration: Configuration);
/**
* @summary Add SPEKE DRM key provider to Progressive WebM
* @param {string} encodingId Id of the encoding.
* @param {string} muxingId Id of the Progressive WebM muxing
* @param {SpekeDrm} spekeDrm The SPEKE DRM key provider to be created
* @throws {BitmovinError}
* @memberof SpekeApi
*/
create(encodingId: string, muxingId: string, spekeDrm?: SpekeDrm): Promise<SpekeDrm>;
/**
* @summary Delete SPEKE 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 SPEKE DRM.
* @throws {BitmovinError}
* @memberof SpekeApi
*/
delete(encodingId: string, muxingId: string, drmId: string): Promise<BitmovinResponse>;
/**
* @summary SPEKE 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 SPEKE DRM.
* @throws {BitmovinError}
* @memberof SpekeApi
*/
get(encodingId: string, muxingId: string, drmId: string): Promise<SpekeDrm>;
/**
* @summary List SPEKE DRM of a 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 SpekeApi
*/
list(encodingId: string, muxingId: string, queryParameters?: SpekeDrmListQueryParams | ((q: SpekeDrmListQueryParamsBuilder) => SpekeDrmListQueryParamsBuilder)): Promise<PaginationResponse<SpekeDrm>>;
}