UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
157 lines (156 loc) 3.26 kB
/** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.21.1 * 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 { Classification } from './Classification'; import type { RedditEntities } from './RedditEntities'; import type { RedditComment } from './RedditComment'; import type { Sentiment } from './Sentiment'; /** * * @export * @interface RedditThread */ export interface RedditThread { /** * * @type {string} * @memberof RedditThread */ author: string; /** * * @type {number} * @memberof RedditThread */ authorCommentKarma: number; /** * * @type {number} * @memberof RedditThread */ authorLinkKarma: number; /** * * @type {string} * @memberof RedditThread */ body: string; /** * * @type {Classification} * @memberof RedditThread */ classification: Classification; /** * * @type {Array<RedditComment>} * @memberof RedditThread */ comments: Array<RedditComment>; /** * * @type {number} * @memberof RedditThread */ commentsCount: number; /** * * @type {Date} * @memberof RedditThread */ date: Date; /** * * @type {RedditEntities} * @memberof RedditThread */ entities: RedditEntities; /** * * @type {string} * @memberof RedditThread */ id: string; /** * * @type {Array<string>} * @memberof RedditThread */ keyTakeaways?: Array<string>; /** * * @type {Array<string>} * @memberof RedditThread */ keywords: Array<string>; /** * * @type {Sentiment} * @memberof RedditThread */ sentiment: Sentiment; /** * * @type {string} * @memberof RedditThread */ subredditName: string; /** * * @type {string} * @memberof RedditThread */ subredditUrl: string; /** * * @type {string} * @memberof RedditThread */ summary: string; /** * * @type {string} * @memberof RedditThread */ title: string; /** * * @type {string} * @memberof RedditThread */ topic: string; /** * * @type {number} * @memberof RedditThread */ upvotes: number; /** * * @type {string} * @memberof RedditThread */ url: string; /** * * @type {string} * @memberof RedditThread */ mainSpeculation?: string; } /** * Check if a given object implements the RedditThread interface. */ export declare function instanceOfRedditThread(value: object): value is RedditThread; export declare function RedditThreadFromJSON(json: any): RedditThread; export declare function RedditThreadFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedditThread; export declare function RedditThreadToJSON(json: any): RedditThread; export declare function RedditThreadToJSONTyped(value?: RedditThread | null, ignoreDiscriminator?: boolean): any;