UNPKG

983 BTypeScriptView Raw
1/* eslint-disable */
2/**
3 * This file was automatically generated by json-schema-to-typescript.
4 * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5 * and run json-schema-to-typescript to regenerate this file.
6 */
7
8export interface ContentSearchResponse {
9 content_request_id: string;
10 /**
11 * List of links to content pages that match the search query.
12 */
13 links: ContentLink[];
14}
15export interface ContentLink {
16 type?: "content_link";
17 /**
18 * Title for the content page
19 */
20 title: string;
21 /**
22 * Short human-readable description for the content page
23 */
24 description: string;
25 /**
26 * URL for the content page image
27 */
28 image_url?: string;
29 /**
30 * URL for the content page
31 */
32 page_url: string;
33 /**
34 * Highlights that show why the search query matched this content page
35 */
36 highlights?: TypesenseHighlights[];
37}
38export interface TypesenseHighlights {
39 field: string;
40 snippet: string;
41 matched_tokens: string[];
42}