/** * SaaS Prompt OTA Methods — Mixin * * Installs prompt OTA methods onto SaaSClient.prototype. * Uses the same mixin pattern as gateway-api.ts. */ import type { PromptCheckResult, } from './saas-types'; export function installPromptMethods(ClientClass: { prototype: any }): void { const proto = ClientClass.prototype; /** Check for prompt updates (OTA) */ proto.checkPromptUpdates = async function (this: { request(method: string, path: string, body?: unknown): Promise }, deviceId: string, currentVersions: Record): Promise { return this.request('POST', '/api/v1/prompts/check', { device_id: deviceId, versions: currentVersions, }); }; }