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>
This commit is contained in:
DottaandPaperclip authored and GitHub committed 2026-10-08 16:26:41 -05:00
1 parent 04de3132c2
commit 2b4a1d7073
61 files changed
+7529 -4422

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import { api } from "./client";
import type { DotInvitation, DotConnection, DotPairing } from "@paperclipai/shared";
export type { DotBinding, DotInvitation, DotConnection, DotPairing } from "@paperclipai/shared";
const path = (companyId: string, agentId: string) => `/companies/${companyId}/agents/${agentId}/dot-binding`;
export const dotInvitationsApi = {
create: (companyId: string) => api.post<DotInvitation>(`/companies/${companyId}/dot-invitations`, {}),
connection: (companyId: string, agentId: string, signal?: AbortSignal) => api.get<DotConnection>(path(companyId, agentId), { signal }),
pair: (companyId: string, agentId: string, replaceBindingId?: string) => api.post<DotPairing>(path(companyId, agentId), { replaceBindingId }),
retry: (companyId: string, agentId: string, bindingId: string) => api.post(path(companyId, agentId) + "/event-test", { bindingId }),
};