1 export type RegisterClientFormFieldOptions = {
4 type: 'input' | 'input-checkbox' | 'input-password' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced' | 'select' | 'html'
7 options?: { value: string, label: string }[]
12 descriptionHTML?: string
14 // Default setting value
15 default?: string | boolean
17 // Not supported by plugin setting registration, use registerSettingsScript instead
18 hidden?: (options: any) => boolean
20 // Return undefined | null if there is no error or return a string with the detailed error
21 // Not supported by plugin setting registration
22 error?: (options: any) => Promise<{ error: boolean, text?: string }>
25 export interface RegisterClientVideoFieldOptions {
26 type: 'update' | 'upload' | 'import-url' | 'import-torrent' | 'go-live'
28 // Default to 'plugin-settings'
29 tab?: 'main' | 'plugin-settings'