/** * Base options for API calls. */ interface BaseOptions extends hostOptions, debugOptions { } interface hostOptions { /** * The host to use for the API call (e.g., HostWs.streamlike). */ host?: string; } interface debugOptions { /** * Enable debug logging in the console. */ debug?: boolean; } /** * Represents a standardized response from a web service. * @template T The typePlayerId of the `data` property. */ interface WebserviceResponse { status: number; info: string; data: T | null; } /** * Represents the structure of the response in a callback. * @template T The typePlayerId of the data being returned in the response. */ interface CallbackResponse { res: boolean; data: T | null; errors: string | null; } /** * Represents the root response from the /ws/playlist endpoint. */ interface PlaylistResponse { playlist: Playlist; } /** * Represents the root response from the /ws/playlists endpoint. */ interface PlaylistsResponse { playlists: PlaylistItem[]; } /** * Interface representing the response structure for a media callback. * * This interface is used to define the shape of the response returned from operations involving media callbacks. * * @property {boolean} res Indicates the success status of the media callback operation. * @property {Media | null} data Contains the media data if the operation is successful. If the operation fails, this will be null. * @property {string | null} errors Provides error details if the operation fails. If the operation is successful, this will be null. */ interface MediaCallbackResponse { res: boolean; data: Media | null; errors: string | null; } /** * Represents a playlist item in a structured format. * * Each playlist item contains details pertaining to a specific playlist, * including its metadata and associated attributes such as the playlist name, * description, language, total duration, and the viewing position. * * Properties: * - `playlist`: An object containing information about a playlist. * - `playlist_id`: The unique identifier of the playlist. * - `name`: The name of the playlist. * - `description`: A brief description of the playlist. * - `language`: The language of the playlist's content. * - `total_duration`: The total duration of the playlist, typically in seconds. * - `view_position`: A property indicating the viewing position or progress within the playlist. */ interface PlaylistItem { playlist: { [key: string]: string | number; playlist_id: string; name: string; description: string; language: string; total_duration: number; view_position: string; }; } /** * Represents the main playlist object. */ interface Playlist { metadata: PlaylistMetadata; medias: MediaContainer[]; } /** * Metadata for the playlist itself (e.g., total size). */ interface PlaylistMetadata { [key: string]: string | number | boolean | null | undefined; size: number; /** * Present, and `true`, only when the full-text backend was unavailable and the `query` * was not applied: the result is then wider than asked, never shorter. Absent otherwise. */ degraded?: true; playlist_id?: string; name?: string; description?: string; total_duration?: number; view_position?: string; } /** * Wrapper object for a single media item within the 'medias' array. */ interface MediaContainer { media: Media; } /** * Represents a single media. */ interface Media { metadata: MediaMetadata; statistics: Statistics; /** * Absent on every media of an account that hides its file URLs — not a sign of a failed encoding. */ html5_sources?: Html5SourceContainer[]; } /** * Detailed metadata for a mediaParams item. */ interface MediaMetadata { global: GlobalMetadata; share: Share; keywords?: Keywords; customization: Customization; chapters?: ChapterContainer[]; subtitles?: SubtitleContainer[]; language_ids: Language[]; playlists?: MediaPlaylistContainer[]; /** * Search excerpts, on the medias of a `/ws/playlist?query=` result where the search matched, and on those alone. * Keys are the matched fields, e.g. `name.stemmed` or `description` (a list of strings, matches wrapped in ``) * and `subtitle.` (a list of `{timecode, text}`). Read it as a map, do not hard-code the keys. */ highlight?: Highlight; /** * `/ws/related` only: number of keywords shared with the source media, which the results are ranked on. */ relation_weight?: number; } /** * Search excerpts of a media matched by a `query`. */ interface Highlight { [field: string]: string[] | HighlightSubtitle[]; } /** * A subtitle line matched by a `query`. */ interface HighlightSubtitle { timecode: number; text: string; } /** * Global metadata properties for a mediaParams item. */ interface GlobalMetadata { [key: string]: string | number | boolean | null | undefined; media_id: string; name: string; type: "video" | "audio" | string; permalink: string; status: "online" | string; description?: string; /** * Encoder that produced the files served today: `2` for the current encoding pipeline, `1` for the legacy encoder. * **Absent** — not `0`, not `null` — when the media publishes nothing (never encoded, a live, a first encoding * still running): never file an absent value under "legacy". */ encoding_version?: 1 | 2; transcript?: string; duration: number; ratio: number; fps: number; creation_date: string; release_date: string; lastupdated_date: string; lastupdatedfile_date: string; lastplayback_date?: string; is_360: boolean; is_multiple_audio: boolean; is_tokenized: boolean; has_password: boolean; sourceExtension?: string; sourceWidth?: string; sourceFrameRate?: string; sourceHeight?: string; is_downloadable: boolean; is_secured: boolean; has_sound?: boolean; saMedIAnalyst?: string; PIN?: string; } /** * Sharing information for the mediaParams. */ interface Share { universal_url: string; } /** * Keyword container. */ interface Keywords { standard_keywords: StandardKeyword[]; } /** * A single standard keyword. */ interface StandardKeyword { standard_keyword: string; } /** * Customization options (cover, mosaic, etc.). * An empty value is an absent key: the four cover sizes appear or disappear together. */ interface Customization { cover?: Cover; mosaic?: string; board?: Board; } /** * Cover image URLs. */ interface Cover { url: string; thumbnail_url: string; thumbnaillarge_url: string; thumbnailextralarge_url: string; } /** * Board URLs (often empty). */ interface Board { small_url: string; large_url: string; } /** * Wrapper for a chapter item. */ interface ChapterContainer { chapter: Chapter; } /** * Chapter details. */ interface Chapter { language_id: string; url: string; } /** * Wrapper for a subtitle item. */ interface SubtitleContainer { subtitle: Subtitle; } /** * Subtitle details. */ interface Subtitle { language_id: string; url: SubtitleUrls; } /** * URLs for different subtitle formats. */ interface SubtitleUrls { dfxp: string; vtt: string; srt: string; m3u8: string; words?: string; } /** * Wrapper for a language ID. */ interface Language { language_id: string; } /** * Wrapper for a playlist reference within a mediaParams item. */ interface MediaPlaylistContainer { playlist: MediaPlaylist; } /** * Details of a playlist that the mediaParams belongs to. */ interface MediaPlaylist { name: string; playlist_id: string; type: "public" | string; position: number; } /** * Statistics for the mediaParams item. */ interface Statistics { media_access: number; rating_hits: number; rating_totalvalue: number; } /** * Wrapper for an HTML5 source. */ interface Html5SourceContainer { html5_source: Html5Source; } /** * HTML5 source details. */ interface Html5Source { type: string; manifest: string; } /** * Represents the response from the /ws/resume endpoint. */ interface ResumeResponse { resume: Resume; } /** * Contains the resume timecode. * Always present, an integer number of seconds. It is the furthest second reached during the most * recent session of the `user_token` on the media — not where playback stopped — looked up over the * last month only. `0` covers three situations you cannot tell apart: the token was never seen, the * viewer watched more than a month ago, or they really are at the beginning. */ interface Resume { timecode: number; } /** * Fetches data from the specified web service URL and returns a structured response object. * * @param {string} url - The URL of the web service to fetch data from. * @param {boolean} [debug=false] - A flag to enable error logging in case of network request failure. * @return {Promise} A promise that resolves with the web service response including status, info, and data. */ declare function getWs(url: string, debug?: boolean): Promise>; /** * Defines the query parameters for company-related endpoints. */ interface MandatoryCompanyParams { /** * The ID of the company to filter by. */ company_id: string; } /** * Defines the query parameters for company-related endpoints. */ interface MandatoryMediaParams { /** * The ID of the company to filter by. */ media_id: string; } /** * Base options for API calls. */ interface ViewParams { /** * View filter. */ view_id?: string; } /** * Base options for API calls. */ interface FormatParam { /** * Webservice output format. */ f?: 'json' | 'xml'; } /** * Defines common pagination parameters for API requests. */ interface PaginationParams { /** * The page number to retrieve. * {range min: 0} */ page?: number; /** * The number of items per page. * {range min: 1} */ pagesize?: number; } /** * Defines possible sort orders. */ declare enum SortOrder { Up = "up", Down = "down" } declare enum OrderByPlaylist { ID = "id", NAME = "name", DURATION = "duration", VOTE = "vote", HIT = "hit", LAST_PLAYBACK_DATE = "lastplaybackdate", CREATION_DATE = "creationdate", LAST_UPDATE_DATE = "lastupdateddate", LAST_UPDATED_FILE_DATE = "lastupdatedfiledate", RELEASE_DATE = "releasedate", POSITION = "position" } declare enum OrderByPlaylists { ID = "id", NAME = "name", CREATION_DATE = "creationdate", POSITION = "position" } /** * Defines common sorting parameters for API requests. */ interface SortingParams { /** * The field to order by (e.g., 'releasedate'). */ orderby?: OrderByPlaylist | OrderByPlaylists | string; /** * The sort direction. */ sortorder?: SortOrder; } interface MediaParams extends FormatParam { media_id?: string; permalink?: string; } /** * Fetches media content from the specified web service (WS) endpoint using * the provided parameters and options. This method requires either a `media_id` * or a `permalink` in the `params` to identify the media. * * @param {MediaParams} [params={}] The parameters object that must include either * a `media_id` or a `permalink` to identify the media resource. * @param {BaseOptions} [options={}] Additional options which can include a debug flag. * @return {Promise>} A promise that resolves * to the media content wrapped in a callback response or `null` if not found. */ declare function getWsMedia(params?: MediaParams, options?: BaseOptions): Promise>; /** * Retrieves media information based on the provided media ID. * * @param {string} id - The unique identifier for the media to retrieve. * @param {MediaParams} [params={}] - Optional parameters for the media query. * @param {BaseOptions} [options={}] - Optional configuration options, such as debug mode. * @return {Promise} Returns a promise that resolves to the media container object if found, or null if not found. */ declare function getMediaFromId(id: string, params?: MediaParams, options?: BaseOptions): Promise; /** * Retrieves media information from a given permalink. * * @param {string} permalink - The permalink of the media to be retrieved. * @param {MediaParams} [params] - Optional parameters for the media request. * @param {BaseOptions} [options] - Optional base options including debug settings. * @return {Promise} A promise that resolves with the media container if found, or null if no media is found. */ declare function getMediaFromPermalink(permalink: string, params?: MediaParams, options?: BaseOptions): Promise; /** * Fetches and retrieves media metadata based on provided parameters and options. * * @param {MediaParams} [params={}] - The parameters to filter or specify the media query. * @param {BaseOptions} [options={}] - Additional options for the request, such as debug mode. * @return {Promise} A Promise resolving to the media metadata or null if no metadata is found. */ declare function getMediaMetadata(params?: MediaParams, options?: BaseOptions): Promise; /** * Fetches media statistics based on the provided parameters and configuration options. * * @param {MediaParams} [params={}] - The parameters used to filter or identify the media for which statistics are required. * @param {BaseOptions} [options={}] - Additional options including debug configuration. * @return {Promise} - A promise that resolves to media statistics or null if not available. */ declare function getMediaStatistics(params?: MediaParams, options?: BaseOptions): Promise; /** * Defines the query parameters for the /ws/countries endpoint. */ interface CountriesParams extends ViewParams, MandatoryCompanyParams, FormatParam { } /** * Represents a single country object as returned by the /ws/countries endpoint. */ interface Country { country_id: string; } /** * Represents the structure of the data object * in the successful response from /ws/countries. */ interface CountriesResponse { country_ids: Country[]; } /** * Defines the query parameters for the /ws/countries endpoint. */ interface LanguagesParams extends ViewParams, MandatoryCompanyParams, FormatParam { } /** * Represents the structure of the data object * in the successful response from /ws/languages. */ interface LanguagesResponse { language_ids: Language[]; } interface NowPlayingParams extends MandatoryMediaParams, FormatParam { } interface ResumeParams extends MandatoryMediaParams, FormatParam { /** * Your own identifier for the viewer, the same value passed to the player as `user_token=` * for positions to be recorded at all. It is the only identity checked: keep it unguessable. */ user_token: string; } /** * Represents the response from the /ws/nowplaying endpoint. */ interface NowPlayingResponse { nowplaying: NowPlaying; } /** * Represents the count of viewers. */ interface NowPlaying { count: number; } /** * Retrieves a list of countries based on the provided parameters and options. * * @param {CountriesParams} params - The parameters used to filter the list of countries. * @param {BaseOptions} [options] - Optional settings such as debug mode or additional configurations. * @return {Promise>} A promise that resolves to the response containing country data or null. */ declare function getWsCountries(params: CountriesParams, options?: BaseOptions): Promise>; /** * Fetches the list of available languages from the given endpoint. * * @param {LanguagesParams} params - Parameters required to fetch the languages. * @param {BaseOptions} [options] - Optional settings such as debug mode or additional configurations. * @return {Promise>} A promise that resolves to the response containing * the list of languages or null if no languages are returned. */ declare function getWsLanguages(params: LanguagesParams, options?: BaseOptions): Promise>; /** * Fetches the currently playing track information from the `/ws/nowplaying` endpoint. * * @param {NowPlayingParams} params - The parameters required to fetch the now playing data. * @param {BaseOptions} [options] - Optional configuration options for the request, such as debug mode. * @return {Promise>} A promise that resolves to the now playing data wrapped in a callback response, or null if no data is available. */ declare function getWsNowPlaying(params: NowPlayingParams, options?: BaseOptions): Promise>; /** * Fetches the resume data from the specified endpoint with given parameters and options. * * @param {ResumeParams} params - The parameters required for building the resume request. * @param {BaseOptions} [options] - Optional configuration options, such as debug settings. * @return {Promise>} A promise that resolves to the resume response, or null if no data is available. */ declare function getWsResume(params: ResumeParams, options?: BaseOptions): Promise>; /** * Defines the query parameters for the /ws/playlist endpoint * based on the OpenAPI specification. * Extends common pagination and sorting parameters. * orderby choice values : ["id","name","duration","vote","hit","lastplaybackdate","creationdate","lastupdateddate","lastupdatedfiledate","releasedate","position"] */ interface PlaylistParams extends PaginationParams, SortingParams, ViewParams { /** * Filter by country code. */ country?: string; /** * Filter mediaParams encoded or not. */ encoded?: boolean; /** * Keep only the medias filed in at least one playlist (`true` / `1`), dropping those filed nowhere. * Redundant with `playlist_id`, which already implies it. * Webservices 5.20 and later: before that, `0` and `1` were read inverted — send `true` / `false` * if the target server may be older. */ forceplaylist?: boolean | 0 | 1 | 'true' | 'false'; /** * Filter on the encoder that published the media's files: `2` keeps only the medias published by * the current encoding pipeline, `1` only those published by the legacy encoder, absent does not filter. * A media publishing nothing (never encoded, live, first encoding running) is returned by neither value. * Webservices 5.20 and later. */ encoding_version?: 1 | 2; /** * `1` keeps only the medias carrying several audio tracks, `0` only single-track ones, absent does not filter. * Webservices 5.20 and later — earlier servers accept it and ignore it. */ multiple_audio?: 0 | 1; /** * Filter by language code (e.g., 'en', 'fr'). */ lng?: string; /** * Exclude mediaParams associated with these country codes. */ not_countries?: string[]; /** * Exclude mediaParams associated with these language codes. */ not_languages?: string[]; /** * Exclude these mediaParams IDs from the result. */ not_media_ids?: string[]; /** * Exclude mediaParams belonging to these playlist IDs. */ not_playlist_ids?: string[]; /** * Exclude mediaParams belonging to these view IDs. */ not_view_ids?: string[]; /** * A search query string. */ query?: string; /** * Fields to include in the search (e.g., 'name', 'description'). */ search_fields?: string[]; /** * Filter by company ID. */ company_id?: string; /** * Filter by view ID. */ view_id?: string; /** * Filter by playlist ID. * Note: getWsPlaylist() also accepts string[] for the main `id` argument, * but the query parameter in the spec is listed as string. */ playlist_id?: string; } /** * Fetches the playlist data using the provided parameters. * * @param {PlaylistParams} params - The parameters required for fetching the playlist. Must include at least one of: company_id, view_id, or playlist_id. * @param {BaseOptions} [options={}] - Optional configuration for the request, including debug mode. * @return {Promise>} - A promise that resolves to the response containing the playlist data or null. * @throws {Error} - Throws an error when none of the identifier parameters are provided in `params`. */ declare function getWsPlaylist(params: PlaylistParams, options?: BaseOptions): Promise>; /** * Retrieves the size of a playlist based on the provided parameters. * * @param {PlaylistParams} params - The parameters to identify the playlist, which can include `company_id`, `view_id`, or `playlist_id`. * @param {BaseOptions} options - Additional options for the function execution, such as debug settings. * @return {Promise} A promise that resolves to the size of the playlist. * @throws {Error} Throws an error if no identifier parameter is provided or if the response is invalid. */ declare function getPlaylistSize(params?: PlaylistParams, options?: BaseOptions): Promise; /** * Retrieves a list of media items from a specified playlist. * * @param {string} id - The unique identifier of the playlist to retrieve media from. * @param {PlaylistParams} [params={}] - Optional parameters to customize the playlist retrieval query. * @param {BaseOptions} [options={}] - Optional configurations for the request, such as debug settings. * @return {Promise} A promise that resolves to an array of media items contained in the specified playlist. * @throws Will throw an error if the response is invalid or an unexpected error occurs. */ declare function getMediasFromPlaylist(id: string, params?: PlaylistParams, options?: BaseOptions): Promise; /** * Fetches medias belonging to a specific company by its ID using the provided parameters and options. * * @param {string} id - The unique identifier of the company whose medias are to be fetched. * @param {PlaylistParams} [params={}] - The parameters to refine or customize the media retrieving query. * @param {BaseOptions} [options={}] - Additional options such as debug settings for the request. * @return {Promise} A promise that resolves to a list of media containers associated with the specified company. */ declare function getMediasFromCompany(id: string, params?: PlaylistParams, options?: BaseOptions): Promise; /** * Fetches the media items from a specific view based on the provided identifier and parameters. * * @param {string} id - The identifier of the view from which to retrieve media items. * @param {PlaylistParams} [params={}] - Optional parameters to customize the playlist request. * @param {BaseOptions} [options={}] - Optional base options, such as debug flag, for additional configurations. * @return {Promise} A promise that resolves to an array of MediaContainer objects. */ declare function getMediasFromView(id: string, params?: PlaylistParams, options?: BaseOptions): Promise; interface PlaylistsParams extends MandatoryCompanyParams, PaginationParams, SortingParams, ViewParams, FormatParam { } /** * Fetches playlists for a specific company based on provided parameters. * * @param {PlaylistsParams} params - The parameters required to fetch playlists, including the company identifier. * @param {BaseOptions} [options={}] - Optional configurations for the request, such as debug mode. * @return {Promise>} A promise resolving to the list if playlists or null. */ declare function getWsPlaylists(params: PlaylistsParams, options?: BaseOptions): Promise>; /** * Retrieves a list of playlists based on the given parameters. * * @param {PlaylistsParams} params - The parameters for fetching playlists. * @param {BaseOptions} [options={}] - Optional configuration options. Includes a debug flag for console debugging. * @return {Promise} A promise that resolves to an array of PlaylistItem objects. */ declare function getPlaylists(params: PlaylistsParams, options?: BaseOptions): Promise; interface RelatedParams extends PaginationParams, ViewParams, FormatParam { media_id: string; } /** * Fetches related media data from the /ws/related endpoint. * * @param {RelatedParams} params - Parameters required to fetch related media. Must include the media_id. * @param {BaseOptions} [options={}] - Optional configuration options such as debug mode. * @return {Promise>} - A promise that resolves with the response data, which includes an array of media containers or null if none are found. * @throws {Error} - Throws an error if the media_id parameter is missing. */ declare function getWsRelated(params: RelatedParams, options?: BaseOptions): Promise>; declare enum MosaicSize { Small = "small", Large = "large" } declare enum PreviewMode { Scrubbing = "scrubbing", Animation = "animation", Fixed = "fixed" } declare enum FitMode { Cover = "cover", Contain = "contain" } /** * Where the timing of a word, or of a whole words file, comes from. * - `asr`: timed by the speech engine, * - `aligned` (file level only): the subtitles were corrected, the untouched words keep their engine timing, * - `estimated`: interpolated, no engine timing at all (e.g. an imported SRT). */ type WordsSource = 'asr' | 'aligned' | 'estimated'; /** * One word of a transcript, with its timing in seconds. */ interface Word { start: number; end: number; word: string; /** * Legacy flag of the words files written before September 2026. */ punctuation?: string | boolean | number; /** * Trailing punctuation mark of the word, `""` when none. Files written from September 2026. */ mark?: string; /** * Where the timing of this word comes from. Files written from September 2026. */ source?: WordsSource; } /** * The words file of a subtitle track as served since September 2026. * Older files are a bare `Word[]`; `generateWords` accepts both. */ interface WordsFile { source: WordsSource; language: string; words: Word[]; } /** * Data returned by `generateWords` on success. */ interface WordsResult { wordsCount: number; /** * File-level source, `undefined` on a legacy list-shaped file. */ source?: WordsSource; /** * Language of the track, `undefined` on a legacy list-shaped file. */ language?: string; } interface TranscriptOptions { wordsContainer: string | HTMLElement; iframePlayer: string | HTMLIFrameElement; debug?: boolean; autoScroll?: boolean; messages: { loading: string; error: string; }; } interface MosaicFrame { url: string; x: number; y: number; width: number; height: number; } interface InteractivePreviewOptions extends debugOptions { mode?: PreviewMode; duration?: number; fps?: number; mosaicSize?: MosaicSize; fitMode?: { cover?: FitMode; animation?: FitMode; }; } /** * Represents the URLs for different cover image sizes. */ interface CoverUrls { url: string; thumbnail_url: string; thumbnaillarge_url: string; thumbnailextralarge_url: string; } /** * Represents the URLs for different board sizes. */ interface BoardUrls { small_url: string; large_url: string; } /** * Represents mediaParams customization options including cover images and mosaic/board configurations. */ interface MediaCustomization { /** * Absent when the media has no cover: the four sizes appear or disappear together. */ cover?: CoverUrls; mosaic?: string; board?: BoardUrls; } interface TrimmerOptions { duration: number; startInput: string | HTMLInputElement; endInput: string | HTMLInputElement; currentTimeInput: string | HTMLInputElement; mediaUrl?: string; mediaId?: string; mediaCustomization?: MediaCustomization; aspectRatio?: number; initialStart?: number; initialEnd?: number; playButton?: string | HTMLElement; stopButton?: string | HTMLElement; debug?: boolean; baseOptions?: BaseOptions; } /** * Generates an interactive thumbnail preview for a given target element. Depending on the mode, * it allows for either scrubbing through frames or playing an animated preview. The frames are * fetched and displayed based on the provided media customization and options. * * @param {string | HTMLElement} target - The target element or its ID where the thumbnail will be displayed. * @param {MediaCustomization} mediaCustomization - Configuration object containing media details such as cover image and board URL. * @param {InteractivePreviewOptions} options - Options for customizing the preview behavior such as mode, duration, frames per second, and debugging. * @return {Promise} Returns a promise that resolves with a response object containing whether the operation was successful, data details, or errors if any. */ declare function generateThumbnail(target: string | HTMLElement, mediaCustomization: MediaCustomization, options: InteractivePreviewOptions): Promise; /** * Fetches transcript data and generates clickable/highlightable word spans in a container. * This function also sets up event listeners to sync with playerParams progress. * * @param url The URL of the 'words' JSON file. * @param options Configuration options including target containers and the playerParams iframeParams. * @returns A promise that resolves with a cleanup function to remove event listeners. */ declare function generateWords(url: string, options: TranscriptOptions): Promise<{ cleanup: () => void; } & CallbackResponse>; /** * Generates an interactive trimmer inside a target element. */ declare function generateTrimmer(target: string | HTMLElement, options: TrimmerOptions): Promise; /** * Represents types of identifiers used for mediaParams. */ declare enum TypePlayerId { media = "media", permalink = "permalink", live = "live", streamout = "str_id" } /** * Represents the options for configuring an iframe. * * This interface is used to specify various configurable parameters * for an iframe, including player-related options, permissions, and * additional iframe settings. * * Properties: * - `typePlayerId` (optional): Specifies the type of player identifier to be used. * - `playerParams` (optional): Provides configuration options for the player. * - `iframeParams` (optional): Allows defining specific iframe settings, such as: * - `allowfullscreen`: Determines whether fullscreen mode is allowed. * - `allowautoplay`: Indicates whether autoplay of content is permitted. * - `onLoad`: A callback function to handle iframe load events. * - `baseOptions` (optional): Includes additional base configuration options applicable to the iframe. */ interface IframeOptions { typePlayerId?: TypePlayerId; playerParams?: PlayerParams; iframeParams?: IframeParams; baseOptions?: BaseOptions; } /** * Settings applied to the generated `