UNPKG

@smj0x/homebridge-shortcuts-buttons

Version:

Run any Apple Shortcut with just the tap of a button, and execute a custom unix command (or another shortcut!) after completion to handle its success/failure, using x-callback-url.

23 lines 783 B
import { Nullable } from 'homebridge'; import { HSBXCallbackUrlServer } from './server/index.js'; import { HSBUtils } from './utils.js'; export declare enum HSBShortcutStatus { SUCCESS = "success", ERROR = "error", CANCEL = "cancel" } export declare class HSBShortcut { private readonly name; private readonly server; private readonly utils; private readonly input?; constructor(name: string, server: Nullable<HSBXCallbackUrlServer>, utils: HSBUtils, input?: string | undefined); run(): Promise<void>; private get isWithXCallbackUrl(); private get isWithTextInput(); private get shortcutUrl(); private get textInputParams(); private get callbackXParams(); private getCallbackXParam; } //# sourceMappingURL=shortcut.d.ts.map