mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 02:20:38 +09:00
Add agent invite message flow and txt onboarding link UX
This commit is contained in:
parent
d8fb93edcf
commit
089a2d08bf
5 changed files with 148 additions and 14 deletions
|
|
@ -13,6 +13,7 @@ type InviteSummary = {
|
|||
onboardingTextUrl?: string;
|
||||
skillIndexPath?: string;
|
||||
skillIndexUrl?: string;
|
||||
inviteMessage?: string | null;
|
||||
};
|
||||
|
||||
type AcceptInviteInput =
|
||||
|
|
@ -56,6 +57,7 @@ export const accessApi = {
|
|||
allowedJoinTypes?: "human" | "agent" | "both";
|
||||
expiresInHours?: number;
|
||||
defaultsPayload?: Record<string, unknown> | null;
|
||||
agentMessage?: string | null;
|
||||
} = {},
|
||||
) =>
|
||||
api.post<{
|
||||
|
|
@ -64,6 +66,9 @@ export const accessApi = {
|
|||
inviteUrl: string;
|
||||
expiresAt: string;
|
||||
allowedJoinTypes: "human" | "agent" | "both";
|
||||
onboardingTextPath?: string;
|
||||
onboardingTextUrl?: string;
|
||||
inviteMessage?: string | null;
|
||||
}>(`/companies/${companyId}/invites`, input),
|
||||
|
||||
getInvite: (token: string) => api.get<InviteSummary>(`/invites/${token}`),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue