Files
callstack__agent-device/src/alert-contract.ts
T
Michał Pierzchała f71371ebb8 fix: handle platform alerts (#562)
* fix: handle Android platform alerts

* fix: handle iOS alerts in runner

* chore: type alert metadata

* refactor: colocate Android alert handling
2026-05-20 14:51:17 +02:00

19 lines
502 B
TypeScript

export const ALERT_POLL_INTERVAL_MS = 300;
export const DEFAULT_ALERT_TIMEOUT_MS = 10_000;
export const ALERT_ACTION_RETRY_MS = 2_000;
export type AlertAction = 'get' | 'accept' | 'dismiss' | 'wait';
export type AlertPlatform = 'android' | 'ios' | 'macos';
export type AlertSource = 'permission' | 'native-dialog' | 'system-dialog';
export type AlertInfo = {
title?: string;
message?: string;
buttons?: string[];
platform?: AlertPlatform;
source?: AlertSource;
packageName?: string;
};