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
18 changes: 18 additions & 0 deletions cartridges/comms-mcp/ffi/comms_ffi.zig
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,24 @@ pub const CommsProvider = enum(c_int) {
custom = 99,
};

/// Gmail resource types — mirrors `CommsMcp.SafeComms.GmailResource`
/// + `gmResourceToInt` encoding. Declared here so `iseriser abi-verify`
/// can structurally check the encoding against the Idris2 source.
pub const GmailResource = enum(c_int) {
gm_message = 1,
gm_thread = 2,
gm_label = 3,
gm_draft = 4,
};

/// Google Calendar resource types — mirrors
/// `CommsMcp.SafeComms.CalendarResource` + `calResourceToInt` encoding.
pub const CalendarResource = enum(c_int) {
cal_event = 1,
cal_calendar = 2,
cal_free_busy = 3,
};

// ═══════════════════════════════════════════════════════════════════════
// Session State Machine
// ═══════════════════════════════════════════════════════════════════════
Expand Down
Loading