ID of the activity to update
Optionalupdate?: ActivityUpdateOptional updates to the activity itself
Optionalnotes?: NewNote[]Optional new notes to add to the activity
// Send a new activity
const newItem: SyncUpdate = {
type: ActivityType.Event,
title: "New Meeting",
id: Uuid.Generate(), // Tool-generated ID
notes: [{ id: Uuid.Generate(), content: "Description" }]
};
// Send an update to existing activity
const update: SyncUpdate = {
activityId: existingActivityId,
update: { title: "Updated Meeting Title" },
notes: [{ id: Uuid.Generate(), content: "New comment" }]
};
Represents a sync update from a tool.
Tools that sync from external sources can send either:
This allows tools to manage their own update detection logic locally, providing Plot with the appropriate operation to perform.