UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
226 lines (225 loc) 5.58 kB
/** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.19.10 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { GeoCoordinate1 } from './GeoCoordinate1'; import type { Entities1 } from './Entities1'; import type { Classification } from './Classification'; import type { Assets1 } from './Assets1'; import type { GraphRelationships } from './GraphRelationships'; import type { ReportingVoice1 } from './ReportingVoice1'; /** * * @export * @interface SearchResponseDictItem1 */ export interface SearchResponseDictItem1 { /** * * @type {string} * @memberof SearchResponseDictItem1 */ articleUrl: string; /** * * @type {string} * @memberof SearchResponseDictItem1 */ articleId: string; /** * * @type {Classification} * @memberof SearchResponseDictItem1 */ classification: Classification; /** * * @type {string} * @memberof SearchResponseDictItem1 */ country: string; /** * * @type {string} * @memberof SearchResponseDictItem1 */ sourceId: string; /** * * @type {number} * @memberof SearchResponseDictItem1 */ pageRank: number; /** * * @type {string} * @memberof SearchResponseDictItem1 */ domainUrl: string; /** * * @type {string} * @memberof SearchResponseDictItem1 */ engTitle: string; /** * * @type {Entities1} * @memberof SearchResponseDictItem1 */ entities: Entities1; /** * * @type {string} * @memberof SearchResponseDictItem1 */ imageUrl?: string | null; /** * * @type {Array<string>} * @memberof SearchResponseDictItem1 */ keywords: Array<string>; /** * * @type {string} * @memberof SearchResponseDictItem1 */ language: string; /** * * @type {Date} * @memberof SearchResponseDictItem1 */ pubDate: Date; /** * * @type {string} * @memberof SearchResponseDictItem1 */ summary: string; /** * * @type {Array<string>} * @memberof SearchResponseDictItem1 */ keyPoints?: Array<string> | null; /** * * @type {string} * @memberof SearchResponseDictItem1 */ title: string; /** * * @type {number} * @memberof SearchResponseDictItem1 */ sentiment: number; /** * * @type {number} * @memberof SearchResponseDictItem1 */ centroidDistance: number; /** * * @type {number} * @memberof SearchResponseDictItem1 */ clusterProbability: number; /** * * @type {string} * @memberof SearchResponseDictItem1 */ markdownCitation?: string; /** * * @type {string} * @memberof SearchResponseDictItem1 */ provocative?: SearchResponseDictItem1ProvocativeEnum; /** * * @type {ReportingVoice1} * @memberof SearchResponseDictItem1 */ reportingVoice?: ReportingVoice1; /** * * @type {GraphRelationships} * @memberof SearchResponseDictItem1 */ entityRelationGraph?: GraphRelationships | null; /** * * @type {{ [key: string]: GeoCoordinate1; }} * @memberof SearchResponseDictItem1 */ geoCoordinates?: { [key: string]: GeoCoordinate1; } | null; /** * * @type {string} * @memberof SearchResponseDictItem1 */ continent?: SearchResponseDictItem1ContinentEnum | null; /** * * @type {Assets1} * @memberof SearchResponseDictItem1 */ assets?: Assets1 | null; /** * * @type {Array<string>} * @memberof SearchResponseDictItem1 */ socialEmbeds?: Array<string> | null; /** * * @type {string} * @memberof SearchResponseDictItem1 */ asStringKey: string; } /** * @export */ export declare const SearchResponseDictItem1ProvocativeEnum: { readonly Unknown: "unknown"; readonly Low: "low"; readonly Medium: "medium"; readonly High: "high"; }; export type SearchResponseDictItem1ProvocativeEnum = typeof SearchResponseDictItem1ProvocativeEnum[keyof typeof SearchResponseDictItem1ProvocativeEnum]; /** * @export */ export declare const SearchResponseDictItem1ContinentEnum: { readonly Africa: "Africa"; readonly Asia: "Asia"; readonly Europe: "Europe"; readonly MiddleEast: "Middle East"; readonly NorthAmerica: "North America"; readonly SouthAmerica: "South America"; readonly Oceania: "Oceania"; }; export type SearchResponseDictItem1ContinentEnum = typeof SearchResponseDictItem1ContinentEnum[keyof typeof SearchResponseDictItem1ContinentEnum]; /** * Check if a given object implements the SearchResponseDictItem1 interface. */ export declare function instanceOfSearchResponseDictItem1(value: object): value is SearchResponseDictItem1; export declare function SearchResponseDictItem1FromJSON(json: any): SearchResponseDictItem1; export declare function SearchResponseDictItem1FromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchResponseDictItem1; export declare function SearchResponseDictItem1ToJSON(json: any): SearchResponseDictItem1; export declare function SearchResponseDictItem1ToJSONTyped(value?: SearchResponseDictItem1 | null, ignoreDiscriminator?: boolean): any;