@maas/payload-plugin-mux
Version:
> [!CAUTION] > > # This plugin is not ready for production use! > > This plugin is under experimental development and is not yet ready for production use. It is intended for testing and feedback purposes only. Please use it at your own risk and be aware t
19 lines (15 loc) • 508 B
TypeScript
import { CollectionSlug, Config } from 'payload';
import Mux from '@mux/mux-node';
interface MuxPluginOptions {
enabled?: boolean;
collection: CollectionSlug;
newAssetSettings?: Partial<Mux.Video.AssetCreateParams>;
debug?: boolean;
credentials: {
tokenId: string;
tokenSecret: string;
webhookSecret: string;
};
}
declare const muxPlugin: (pluginOptions: MuxPluginOptions) => (incomingConfig: Config) => Config;
export { type MuxPluginOptions, muxPlugin };