mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-18 14:31:36 +00:00
20 lines
568 B
TypeScript
20 lines
568 B
TypeScript
// Private device-pair -> Gateway live-display envelope.
|
|
// Keep this local so pairing QR metadata does not become public Plugin SDK API.
|
|
const DEVICE_PAIR_PAIRING_QR_CHANNEL_DATA_KEY = "openclawPairingQr";
|
|
|
|
type DevicePairPairingQrChannelData = {
|
|
setupCode: string;
|
|
expiresAtMs: number;
|
|
};
|
|
|
|
export function buildDevicePairPairingQrChannelData(
|
|
params: DevicePairPairingQrChannelData,
|
|
): Record<string, unknown> {
|
|
return {
|
|
[DEVICE_PAIR_PAIRING_QR_CHANNEL_DATA_KEY]: {
|
|
setupCode: params.setupCode,
|
|
expiresAtMs: params.expiresAtMs,
|
|
},
|
|
};
|
|
}
|