Type Alias AdminSelectContentRequest

AdminSelectContentRequest: {
    allowed_ids?: File["id"][];
    allowed_original_extensions?: string[];
    allowed_selector_types?: SelectorType[];
    content_type?: "file" | "slide" | "content";
    disable_no_sharable?: boolean;
    initial_metadata_filters?: Record<string, any>;
    max_selections?: number;
    min_selections?: number;
    selections?: Selection[];
    style?: Record<string, any>;
}

Represents a request to select content.

Type declaration

  • Optionalallowed_ids?: File["id"][]

    Array of file ids to include in the picker (optional).

  • Optionalallowed_original_extensions?: string[]

    Array of file extensions to scope out list of the results (optional). Only files with these extensions will be shown.

  • Optionalallowed_selector_types?: SelectorType[]

    Array of selector types to include in the picker (optional).

  • Optionalcontent_type?: "file" | "slide" | "content"

    Type of content to allow selection for (optional). file: Files only slide: Slides only content: Files and slides

    'content'
    
  • Optionaldisable_no_sharable?: boolean

    Disables files from selection which are not sharable (optional).

  • Optionalinitial_metadata_filters?: Record<string, any>

    Initial metadata filters to apply to the picker (optional).

  • Optionalmax_selections?: number

    Maximum number of selections allowed (optional).

  • Optionalmin_selections?: number

    Minimum number of selections allowed (optional).

  • Optionalselections?: Selection[]

    List of selections to hydrate the picker with.

  • Optionalstyle?: Record<string, any>

    CSS style to apply to the picker (optional).