@dialstack/sdk / index / ButtonTarget
Type Alias: ButtonTarget
type ButtonTarget =
| {
line_index?: number;
}
| {
user: "self" | string;
}
| {
slot: number;
}
| {
shared_voicemail_box: string;
}
| {
queue: string;
user: "self" | string;
}
| {
queue: string;
}
| {
destination: string;
}
| {
digits: string;
}
| {
url: string;
}
| {
address: string;
port: number;
}
| {
mode: "blind" | "attended";
}
| Record<string, never>;
Defined in: sdk/src/types/button.ts:31
Type-specific target payload for a button. The discriminator is the
surrounding type field; each variant carries its own narrow shape so
callers get a compile-time error when they pair the wrong target with
a type.