///
///
declare const _default: {
register: ({ strapi }: {
strapi: import("@strapi/types/dist/core").Strapi;
}) => void;
bootstrap: ({ strapi }: {
strapi: import("@strapi/types/dist/core").Strapi;
}) => Promise;
destroy: ({ strapi }: {
strapi: import("@strapi/types/dist/core").Strapi;
}) => void;
config: {
default: {
accessTokenId: string;
secretKey: string;
webhookSigningSecret: string;
playbackSigningId: string;
playbackSigningSecret: string;
defaultDirectiveIds: any[];
};
validator(config: import("./utils/config").Config): void;
};
controllers: {
'mux-asset': {
find: (ctx: import("koa").Context) => Promise<{
items: import("@strapi/types/dist/modules/documents").AnyDocument[];
totalCount: number;
}>;
findOne: (ctx: import("koa").Context) => Promise;
count: (ctx: import("koa").Context) => Promise;
create: (ctx: import("koa").Context) => Promise;
update: (ctx: import("koa").Context) => Promise<{
ok: boolean;
}>;
del: (ctx: import("koa").Context) => Promise<{
documentId: string;
entries: import("@strapi/types/dist/modules/documents").AnyDocument[];
}>;
createPlaybackId: (ctx: import("koa").Context) => Promise;
};
mux: {
postDirectUpload: (ctx: import("koa").Context) => Promise;
postRemoteUpload: (ctx: import("koa").Context) => Promise;
deleteMuxAsset: (ctx: import("koa").Context) => Promise;
muxWebhookHandler: (ctx: import("koa").Context) => Promise;
thumbnail: (ctx: import("koa").Context) => Promise;
storyboard: (ctx: import("koa").Context) => Promise;
signMuxPlaybackId: (ctx: import("koa").Context) => Promise;
textTrack: (ctx: import("koa").Context) => Promise;
};
'mux-settings': {
isConfigured: (ctx: import("koa").Context) => Promise;
};
robots: {
entryVideos: (ctx: import("koa").Context) => Promise;
listJobs: (ctx: import("koa").Context) => Promise;
sync: (ctx: import("koa").Context) => Promise;
createJob: (ctx: import("koa").Context) => Promise;
runDirective: (ctx: import("koa").Context) => Promise;
cancelJob: (ctx: import("koa").Context) => Promise;
findJob: (ctx: import("koa").Context) => Promise;
dismissPending: (ctx: import("koa").Context) => Promise;
listDirectives: (ctx: import("koa").Context) => Promise;
};
};
routes: {
admin: {
type: string;
routes: ({
method: string;
path: string;
handler: string;
config: {
policies: {
name: string;
config: {
actions: string[];
};
}[];
prefix: boolean;
auth?: undefined;
description?: undefined;
};
} | {
method: string;
path: string;
handler: string;
config: {
auth: boolean;
prefix: boolean;
policies?: undefined;
description?: undefined;
};
} | {
method: string;
path: string;
handler: string;
config: {
auth: boolean;
prefix: boolean;
description: string;
policies?: undefined;
};
} | {
method: string;
path: string;
handler: string;
config: {
policies: any[];
prefix: boolean;
auth: boolean;
description?: undefined;
};
})[];
};
'content-api': {
type: string;
routes: {
method: string;
path: string;
handler: string;
config: {
description: string;
policies: any[];
};
}[];
};
};
services: {
mux: () => {
getAssetById(assetId: string): Promise;
getAssetByUploadId(uploadId: string): Promise;
getDirectUploadUrl({ config, storedTextTracks, corsOrigin, directives, }: {
config: {
custom_text_tracks?: {
name?: string;
file?: {
type?: string;
contents?: string;
name?: string;
size?: number;
};
language_code?: string;
closed_captions?: boolean;
stored_track?: import("@mux/ts/resources/video/assets").Track;
}[];
mp4_support?: "none" | "standard";
max_resolution_tier?: "2160p" | "1440p" | "1080p";
video_quality?: "basic" | "plus" | "premium";
signed?: boolean;
autogenerated_captions_languages?: {
code?: "en" | "es" | "it" | "pt" | "de" | "fr" | "pl" | "ru" | "nl" | "ca" | "tr" | "sv" | "uk" | "no" | "fi" | "sk" | "el" | "cs" | "hr" | "da" | "ro" | "bg";
isSourceLanguage?: boolean;
}[];
upload_type?: "url" | "file";
directives?: string[];
};
storedTextTracks: import("../../types/shared-types").StoredTextTrack[];
corsOrigin?: string;
directives?: {
id: string;
}[];
}): Promise;
createRemoteAsset({ url, config, storedTextTracks, directives, }: {
url: string;
storedTextTracks: import("../../types/shared-types").StoredTextTrack[];
config: {
custom_text_tracks?: {
name?: string;
file?: {
type?: string;
contents?: string;
name?: string;
size?: number;
};
language_code?: string;
closed_captions?: boolean;
stored_track?: import("@mux/ts/resources/video/assets").Track;
}[];
mp4_support?: "none" | "standard";
max_resolution_tier?: "2160p" | "1440p" | "1080p";
video_quality?: "basic" | "plus" | "premium";
signed?: boolean;
autogenerated_captions_languages?: {
code?: "en" | "es" | "it" | "pt" | "de" | "fr" | "pl" | "ru" | "nl" | "ca" | "tr" | "sv" | "uk" | "no" | "fi" | "sk" | "el" | "cs" | "hr" | "da" | "ro" | "bg";
isSourceLanguage?: boolean;
}[];
upload_type?: "url" | "file";
directives?: string[];
};
directives?: {
id: string;
}[];
}): Promise;
createPlaybackId(assetId: string, policy: "signed" | "public"): Promise;
deleteAsset(assetId: string): Promise;
signPlaybackId(playbackId: string, type: string): Promise<{
token: string & Partial>;
}>;
createAssetTextTracks(assetId: string, tracks: import("@mux/ts/resources/video/assets").AssetCreateTrackParams[]): Promise;
unwrapWebhook(rawBody: string, headers: import("http").IncomingHttpHeaders): Promise;
deleteAssetTextTracks(assetId: string, trackIds: string[]): Promise;
};
robots: () => {
listRows: (assetId: string) => Promise;
syncAsset(muxAsset: import("./content-types/mux-asset/types").MuxAsset): Promise;
createJob({ userId, muxAsset, workflow, values, }: {
userId: number;
muxAsset: import("./content-types/mux-asset/types").MuxAsset;
workflow: unknown;
values: unknown;
}): Promise;
runDirective({ userId, muxAsset, directiveId, }: {
userId: number;
muxAsset: import("./content-types/mux-asset/types").MuxAsset;
directiveId: unknown;
}): Promise;
cancelJob(row: import("../../types/robots").RobotsJobRow): Promise;
loadJobDetail(row: import("../../types/robots").RobotsJobRow): Promise;
listDirectives({ timeoutMs }?: {
timeoutMs?: number;
}): Promise<{
directives: import("../../types/robots").RobotsDirectiveSummary[];
complete: boolean;
}>;
dismissPending(row: import("../../types/robots").RobotsJobRow): Promise;
};
};
contentTypes: {
'mux-asset': {
schema: {
kind: string;
collectionName: string;
info: {
description: string;
displayName: string;
singularName: string;
pluralName: string;
};
pluginOptions: {
'content-manager': {
visible: boolean;
};
'content-type-builder': {
visible: boolean;
};
};
options: {
draftAndPublish: boolean;
};
attributes: {
title: {
type: string;
private: boolean;
required: boolean;
maxLength: number;
minLength: number;
configurable: boolean;
};
upload_id: {
type: string;
required: boolean;
maxLength: number;
};
asset_id: {
type: string;
required: boolean;
maxLength: number;
};
playback_id: {
type: string;
required: boolean;
maxLength: number;
};
signed: {
type: string;
default: boolean;
required: boolean;
};
error_message: {
type: string;
required: boolean;
maxLength: number;
};
isReady: {
type: string;
default: boolean;
required: boolean;
};
duration: {
type: string;
required: boolean;
};
aspect_ratio: {
type: string;
required: boolean;
};
asset_data: {
type: string;
};
description: {
type: string;
};
tags: {
type: string;
};
robots_outputs: {
type: string;
};
};
indexes: {
name: string;
columns: string[];
}[];
};
};
'mux-text-track': {
schema: {
kind: string;
collectionName: string;
info: {
description: string;
displayName: string;
singularName: string;
pluralName: string;
};
pluginOptions: {
'content-manager': {
visible: boolean;
};
'content-type-builder': {
visible: boolean;
};
};
options: {
draftAndPublish: boolean;
};
attributes: {
name: {
type: string;
private: boolean;
required: boolean;
};
language_code: {
type: string;
private: boolean;
required: boolean;
};
closed_captions: {
type: string;
private: boolean;
required: boolean;
};
file: {
type: string;
private: boolean;
required: boolean;
};
};
};
};
'mux-robot-job': {
schema: {
kind: string;
collectionName: string;
info: {
description: string;
displayName: string;
singularName: string;
pluralName: string;
};
pluginOptions: {
'content-manager': {
visible: boolean;
};
'content-type-builder': {
visible: boolean;
};
};
options: {
draftAndPublish: boolean;
};
attributes: {
mux_id: {
type: string;
maxLength: number;
};
api_version: {
type: string;
maxLength: number;
};
is_directive_run: {
type: string;
default: boolean;
};
workflow: {
type: string;
maxLength: number;
};
directive_id: {
type: string;
maxLength: number;
};
directive_run_id: {
type: string;
maxLength: number;
};
status: {
type: string;
maxLength: number;
};
asset_id: {
type: string;
maxLength: number;
};
parameters: {
type: string;
};
outputs: {
type: string;
};
errors: {
type: string;
};
units_consumed: {
type: string;
};
run_data: {
type: string;
};
mux_created_at: {
type: string;
};
mux_updated_at: {
type: string;
};
detail_loaded: {
type: string;
default: boolean;
};
request_id: {
type: string;
maxLength: number;
};
requested_at: {
type: string;
};
requested_by: {
type: string;
};
};
indexes: {
name: string;
columns: string[];
}[];
};
};
};
policies: {};
middlewares: {};
};
export default _default;