UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
203 lines (202 loc) 4.3 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 { ClusterProbabilitiesValue } from './ClusterProbabilitiesValue'; import type { StoryUpdate } from './StoryUpdate'; /** * * @export * @interface StoryResponse */ export interface StoryResponse { /** * * @type {string} * @memberof StoryResponse */ uuid: string; /** * * @type {Array<string>} * @memberof StoryResponse */ categories: Array<string>; /** * * @type {{ [key: string]: number; }} * @memberof StoryResponse */ countries: { [key: string]: number; }; /** * * @type {{ [key: string]: number; }} * @memberof StoryResponse */ countriesPct: { [key: string]: number; }; /** * * @type {string} * @memberof StoryResponse */ currentUpdateUuid: string; /** * * @type {string} * @memberof StoryResponse */ requestedUpdateUuid: string; /** * * @type {boolean} * @memberof StoryResponse */ generateImage: boolean; /** * * @type {Array<string>} * @memberof StoryResponse */ keywords: Array<string>; /** * * @type {{ [key: string]: number; }} * @memberof StoryResponse */ languages: { [key: string]: number; }; /** * * @type {{ [key: string]: number; }} * @memberof StoryResponse */ languagesPct: { [key: string]: number; }; /** * * @type {Array<string>} * @memberof StoryResponse */ locations: Array<string>; /** * * @type {string} * @memberof StoryResponse */ metaType: string; /** * * @type {Array<number>} * @memberof StoryResponse */ nArticles: Array<number>; /** * * @type {number} * @memberof StoryResponse */ nUpdates: number; /** * * @type {Array<string>} * @memberof StoryResponse */ people: Array<string>; /** * * @type {Array<ClusterProbabilitiesValue>} * @memberof StoryResponse */ redditSentiment: Array<ClusterProbabilitiesValue>; /** * * @type {Array<number>} * @memberof StoryResponse */ redditSentimentTimestamps: Array<number>; /** * * @type {Array<number>} * @memberof StoryResponse */ rollingSentiment: Array<number>; /** * * @type {Array<number>} * @memberof StoryResponse */ sentiment: Array<number>; /** * * @type {Array<number>} * @memberof StoryResponse */ sentimentTimestamps: Array<number>; /** * * @type {{ [key: string]: number; }} * @memberof StoryResponse */ sources: { [key: string]: number; }; /** * * @type {{ [key: string]: number; }} * @memberof StoryResponse */ sourcesUrls: { [key: string]: number; }; /** * * @type {string} * @memberof StoryResponse */ topic: string; /** * * @type {Array<string>} * @memberof StoryResponse */ topics: Array<string>; /** * * @type {Array<StoryUpdate>} * @memberof StoryResponse */ updates: Array<StoryUpdate>; /** * * @type {number} * @memberof StoryResponse */ updatedTs: number; /** * * @type {Array<string>} * @memberof StoryResponse */ updateUuids: Array<string>; } /** * Check if a given object implements the StoryResponse interface. */ export declare function instanceOfStoryResponse(value: object): value is StoryResponse; export declare function StoryResponseFromJSON(json: any): StoryResponse; export declare function StoryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoryResponse; export declare function StoryResponseToJSON(json: any): StoryResponse; export declare function StoryResponseToJSONTyped(value?: StoryResponse | null, ignoreDiscriminator?: boolean): any;