@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
118 lines (117 loc) • 3.59 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.
*/
import type { TriggersInner } from './TriggersInner';
import type { SourcesInner } from './SourcesInner';
import type { ReportRequest } from './ReportRequest';
/**
*
* @export
* @interface CreateAlertRequest
*/
export interface CreateAlertRequest {
/**
*
* @type {string}
* @memberof CreateAlertRequest
*/
query?: string | null;
/**
* The cron schedule for the alert. For example hourly is '0 * * * *'. See https://crontab.run/ for more examples
* @type {string}
* @memberof CreateAlertRequest
*/
cron: string;
/**
*
* @type {string}
* @memberof CreateAlertRequest
*/
model: CreateAlertRequestModelEnum | null;
/**
*
* @type {string}
* @memberof CreateAlertRequest
*/
shareLink?: string | null;
/**
*
* @type {Array<SourcesInner>}
* @memberof CreateAlertRequest
*/
sources: Array<SourcesInner>;
/**
*
* @type {ReportRequest}
* @memberof CreateAlertRequest
*/
report?: ReportRequest | null;
/**
*
* @type {Array<TriggersInner>}
* @memberof CreateAlertRequest
*/
triggers: Array<TriggersInner>;
/**
* Whether to always trigger the alert. Default is False. This skips the alert check and run triggers immediately
* @type {boolean}
* @memberof CreateAlertRequest
*/
alwaysTrigger?: boolean;
/**
* Whether to repeat the alert. Default is True. If False, the alert will be disabled after it triggers once
* @type {boolean}
* @memberof CreateAlertRequest
*/
repeat?: boolean;
/**
* Whether the alert is active or not. Default is True.
* @type {boolean}
* @memberof CreateAlertRequest
*/
active?: boolean;
/**
*
* @type {Date}
* @memberof CreateAlertRequest
*/
expiresAt?: Date | null;
/**
*
* @type {string}
* @memberof CreateAlertRequest
*/
title?: string | null;
}
/**
* @export
*/
export declare const CreateAlertRequestModelEnum: {
readonly MetaLlamaMetaLlama318BInstruct: "meta-llama/Meta-Llama-3.1-8B-Instruct";
readonly Gpt4oMini: "gpt-4o-mini";
readonly Gpt5Mini: "gpt-5-mini";
readonly Gpt5Nano: "gpt-5-nano";
readonly Gpt4o: "gpt-4o";
readonly O3Mini: "o3-mini";
readonly MetaLlamaMetaLlama3370BInstruct: "meta-llama/Meta-Llama-3.3-70B-Instruct";
readonly Gpt4120250414: "gpt-4.1-2025-04-14";
readonly Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14";
readonly Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14";
};
export type CreateAlertRequestModelEnum = typeof CreateAlertRequestModelEnum[keyof typeof CreateAlertRequestModelEnum];
/**
* Check if a given object implements the CreateAlertRequest interface.
*/
export declare function instanceOfCreateAlertRequest(value: object): value is CreateAlertRequest;
export declare function CreateAlertRequestFromJSON(json: any): CreateAlertRequest;
export declare function CreateAlertRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAlertRequest;
export declare function CreateAlertRequestToJSON(json: any): CreateAlertRequest;
export declare function CreateAlertRequestToJSONTyped(value?: CreateAlertRequest | null, ignoreDiscriminator?: boolean): any;