UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
88 lines (87 loc) 3.27 kB
/** * AskNews API * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](https://status.asknews.app/status/prod) * * The version of the OpenAPI document: 0.24.66 * 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. */ /** * DEPRECATED - Use DeepNewsReportRequest instead. * Legacy report configuration (original format). * * This is the original ReportRequest format that uses a simple model field * for report generation without DeepNews capabilities. * @export * @interface LegacyReportRequest */ export interface LegacyReportRequest { /** * * @type {string} * @memberof LegacyReportRequest */ logoUrl?: string | null; /** * * @type {boolean} * @memberof LegacyReportRequest */ includeAppendix?: boolean | null; /** * Append 'Generated by AskNews AI' watermark * @type {boolean} * @memberof LegacyReportRequest */ asknewsWatermark?: boolean; /** * * @type {string} * @memberof LegacyReportRequest */ identifier?: LegacyReportRequestIdentifierEnum; /** * The model to use for the report. Defaults to claude-sonnet-4-6. * @type {string} * @memberof LegacyReportRequest */ model?: LegacyReportRequestModelEnum; } /** * @export */ export declare const LegacyReportRequestIdentifierEnum: { readonly Legacy: "legacy"; }; export type LegacyReportRequestIdentifierEnum = typeof LegacyReportRequestIdentifierEnum[keyof typeof LegacyReportRequestIdentifierEnum]; /** * @export */ export declare const LegacyReportRequestModelEnum: { readonly Gpt5: "gpt-5"; readonly Gpt4o: "gpt-4o"; readonly Gpt4120250414: "gpt-4.1-2025-04-14"; readonly Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14"; readonly Gpt4oMini: "gpt-4o-mini"; readonly O3Mini: "o3-mini"; readonly Claude35SonnetLatest: "claude-3-5-sonnet-latest"; readonly ClaudeSonnet420250514: "claude-sonnet-4-20250514"; readonly ClaudeSonnet4520250929: "claude-sonnet-4-5-20250929"; readonly ClaudeOpus4520251101: "claude-opus-4-5-20251101"; readonly ClaudeOpus46: "claude-opus-4-6"; readonly ClaudeSonnet46: "claude-sonnet-4-6"; readonly MetaLlamaMetaLlama31405BInstruct: "meta-llama/Meta-Llama-3.1-405B-Instruct"; readonly MetaLlamaMetaLlama3370BInstruct: "meta-llama/Meta-Llama-3.3-70B-Instruct"; }; export type LegacyReportRequestModelEnum = typeof LegacyReportRequestModelEnum[keyof typeof LegacyReportRequestModelEnum]; /** * Check if a given object implements the LegacyReportRequest interface. */ export declare function instanceOfLegacyReportRequest(value: object): value is LegacyReportRequest; export declare function LegacyReportRequestFromJSON(json: any): LegacyReportRequest; export declare function LegacyReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LegacyReportRequest; export declare function LegacyReportRequestToJSON(json: any): LegacyReportRequest; export declare function LegacyReportRequestToJSONTyped(value?: LegacyReportRequest | null, ignoreDiscriminator?: boolean): any;