Files
PaperClipAI/packages/shared/src/dot-invitations.ts
T
DottaandPaperclip 2b4a1d7073 feat(dot): add guided invitations and persistent agent connections (#15581)
Add guided external-agent invitations with live Dot connection checks and ongoing access until revoked. Keep expired credentials invalid and enforce permissions for private avatar uploads. Preserve Runner recovery and remote launch boundaries.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-08 16:26:41 -05:00

23 lines
702 B
TypeScript

/** JSON responses for the operator-owned Dot invitation flow. Pairing capabilities are transient. */
export interface DotBinding {
id: string;
status: string;
connected: boolean;
subscriptionVerified: boolean;
hasPendingChallenge: boolean;
pairingExpiresAt: string | null;
challengeExpiresAt: string | null;
}
export interface DotInvitation {
agent: { id: string; name: string; status: string };
approvalId: string | null;
binding: DotBinding | null;
}
export interface DotConnection {
enabled: boolean;
resourceUrl: string | null;
agentStatus: string;
binding: DotBinding | null;
}
export interface DotPairing { bindingId: string; pairingCode: string; expiresAt: string }