/** * Base Alert Item Model * * Pure data model with no API calls. * Provides type-safe access to common alert item properties. */ import type { AlertItem as AlertItemSchema, AlertItemValidationError, BaseAlertItem, Scope } from "@artu-ai/shared"; import { BaseModel } from "./base"; /** * Alert item data as returned from the API. */ export type AlertItemData = AlertItemSchema; /** * Base Alert Item Model. * * Pure data model with no API calls. * Extended by scope-specific models. * * @example * ```typescript * const items = await sdk.alerts.listItems("alert_123"); * for (const item of items) { * console.log(item.clientName, item.transactionAmount); * } * ``` */ export declare class AlertItem extends BaseModel { /** * Unique identifier */ get id(): string; /** * Parent alert ID */ get alertId(): string; /** * Transaction ID (if item is transaction-based) */ get transactionId(): string | undefined; /** * Client ID */ get clientId(): string | undefined; /** * Whether this item is based on a transaction */ get isTransactionBased(): boolean; /** * Whether this item is client-only (no transaction) */ get isClientOnly(): boolean; /** * Client names (denormalized for display) */ get clientNames(): string[] | undefined; /** * Transaction amount (denormalized for display) */ get transactionAmount(): number | undefined; /** * Transaction currency (denormalized for display) */ get transactionCurrency(): string | undefined; /** * Transaction date (denormalized for display) */ get transactionDate(): string | undefined; /** * Validation errors for this item */ get validationErrors(): AlertItemValidationError[]; /** * Whether this item has validation errors */ get hasErrors(): boolean; /** * Whether this item has validation warnings */ get hasWarnings(): boolean; /** * Number of errors */ get errorCount(): number; /** * Number of warnings */ get warningCount(): number; /** * The scope this alert item belongs to (e.g., "MX:AV:MJR") */ get scope(): Scope; /** * Raw scope data object */ get scopeData(): BaseAlertItem["scopeData"]; /** * When the item was created */ get createdAt(): Date; /** * When the item was last updated */ get updatedAt(): Date; toString(): string; } /** * Check if value is any type of AlertItem model */ export declare function isAlertItem(value: unknown): value is AlertItem;