External web link that opens in browser
Display text for the link button
URL to open when clicked
Video conferencing link with provider-specific handling
URL to join the conference
Conferencing provider for UI customization
File attachment link stored in R2
Unique identifier for the stored file
Original filename
File size in bytes
MIME type of the file
// External link - opens URL in browser
const externalLink: Link = {
type: LinkType.external,
title: "Open in Google Calendar",
url: "https://calendar.google.com/event/123",
};
// Conferencing link - opens video conference with provider info
const conferencingLink: Link = {
type: LinkType.conferencing,
url: "https://meet.google.com/abc-defg-hij",
provider: ConferencingProvider.googleMeet,
};
// Integrations link - initiates OAuth flow
const authLink: Link = {
type: LinkType.auth,
title: "Continue with Google",
provider: AuthProvider.Google,
scopes: ["https://www.googleapis.com/auth/calendar.readonly"],
callback: "callback-token-for-auth-completion"
};
// Callback link - triggers a twist method
const callbackLink: Link = {
type: LinkType.callback,
title: "📅 Primary Calendar",
token: "callback-token-here"
};
Represents a clickable link attached to an activity.
Activity links are rendered as buttons that enable user interaction with activities. Different link types have specific behaviors and required fields for proper functionality.