Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions proto/mls/database/task.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,29 @@ message Task {
xmtp.mls.message_contents.WelcomePointer process_welcome_pointer = 1;
SendSyncArchive send_sync_archive = 2;
ProcessPendingSelfRemove process_pending_self_remove = 3;
PullInDeadline pull_in_deadline = 4;
KpRotation kp_rotation = 5;
KpDeletion kp_deletion = 6;
}
}

// Lower a target task's next-attempt deadline so it runs sooner. One-shot:
// applied by the TaskWorker, then deleted.
message PullInDeadline {
// The UNIQUE data_hash identifying the target task row.
bytes target_data_hash = 1;
// Target's next_attempt_at_ns is set to MIN(current, this).
int64 not_later_than_ns = 2;
}

// Recurring singleton: rotate + upload a fresh key package when the identity's
// rotation deadline is due. Empty payload => stable data_hash for pull-ins.
message KpRotation {}

// Recurring singleton: delete superseded local key-package material whose
// delete_at_ns has passed. Empty payload => stable data_hash for pull-ins.
message KpDeletion {}

message SendSyncArchive {
xmtp.device_sync.ArchiveOptions options = 1;
bytes sync_group_id = 2;
Expand Down
Loading