Skip to content

Commit a64cc92

Browse files
committed
fix(pairing): break SQLite storage import cycle
1 parent 6725971 commit a64cc92

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎src/pairing/pairing-store-sqlite.ts‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,21 @@ import {
1515
resolveAllowFromAccountId,
1616
safeChannelKey,
1717
} from "./pairing-store-keys.js";
18-
import type { PairingRequest } from "./pairing-store.js";
1918
import type { PairingChannel } from "./pairing-store.types.js";
2019

2120
type PairingDatabase = Pick<
2221
OpenClawStateKyselyDatabase,
2322
"channel_pairing_allow_entries" | "channel_pairing_requests"
2423
>;
2524

25+
type PairingRequest = {
26+
id: string;
27+
code: string;
28+
createdAt: string;
29+
lastSeenAt: string;
30+
meta?: Record<string, string>;
31+
};
32+
2633
export type ChannelPairingState = {
2734
version: 1;
2835
requests: PairingRequest[];

0 commit comments

Comments
 (0)