import { RpcMethod } from './commonTypes'; export type ApplicationsAlertsService_List = RpcMethod; export interface ApplicationsAlertsService { /** Lists active dashboard alerts (errors, warnings and recommendations) for an account, optionally scoped to one application, covering subscriber and email quotas, suspension, failed payments, expiring Apple certificates, disabled platforms and email/SDK setup gaps. Pass an application code to include app-specific platform and certificate alerts; omit it for account-wide alerts only. */ List: ApplicationsAlertsService_List; } export type AlertType = 'INFO' | 'WARNING' | 'ERROR'; export type AlertError = 'ALERT_ERROR_UNSPECIFIED' /** warnings */ | 'SUBSCRIBERS_QUOTA_ALMOST_REACHED' | 'EMAIL_QUOTA_ALMOST_REACHED' /** errors */ | 'EMAIL_QUOTA_REACHED' | 'SUSPENDED_ACCOUNT' | 'MANUALLY_SUSPENDED_ACCOUNT' | 'APPLE_CERTIFICATE_EXPIRED' | 'PAYMENT_FAILED' | 'PLATFORM_DISABLED' | 'PAYMENT_OVERDUE' | 'PAYMENT_ATTEMPT_FAILED' | 'EMAIL_CONFIGURATION_NOT_COMPLETED' | 'EMAIL_SENDING_PAUSED_COMPLAINT_RATE' | 'EMAIL_SENDING_PAUSED_HARD_BOUNCE_RATE' | 'EMAIL_SENDING_PAUSED_BOTH_RATES' /** recommendation */ | 'SDK_INTEGRATION' | 'THIRD_PARTY_INTEGRATION'; export type Alert = { name: string; description: string; type: AlertType; error: AlertError; }; export type ListRequest = { /** Application code (XXXXX-XXXXX) to scope alerts to; leave empty for account-wide alerts only. */ application?: string; }; export type ListResponse = { alerts: Alert[]; };