@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
51 lines (50 loc) • 1.66 kB
TypeScript
/**
* 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.
*/
/**
*
* @export
* @interface WebSourceParams
*/
export interface WebSourceParams {
/**
* The queries to use for the web search. This is a list of strings.
* @type {Array<string>}
* @memberof WebSourceParams
*/
queries: Array<string>;
/**
*
* @type {Array<string>}
* @memberof WebSourceParams
*/
domains?: Array<string> | null;
/**
* If true, the web search will only return results that have a known publication date and are within the lookback period.
* @type {boolean}
* @memberof WebSourceParams
*/
strict?: boolean;
/**
* The number of hours back to accept for the web search. If not provided, no lookback will be applied.
* @type {number}
* @memberof WebSourceParams
*/
lookback?: number;
}
/**
* Check if a given object implements the WebSourceParams interface.
*/
export declare function instanceOfWebSourceParams(value: object): value is WebSourceParams;
export declare function WebSourceParamsFromJSON(json: any): WebSourceParams;
export declare function WebSourceParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebSourceParams;
export declare function WebSourceParamsToJSON(json: any): WebSourceParams;
export declare function WebSourceParamsToJSONTyped(value?: WebSourceParams | null, ignoreDiscriminator?: boolean): any;