mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-23 17:33:51 +02:00
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>
23 lines
702 B
TypeScript
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 }
|