Skip to main content

Module models

Module models 

Source
Expand description

The request and response types HEY speaks, generated from the model.

Structs§

Account
Account — a HEY account
AddPostingsToBoxGroupRequestContent
Addressed
Addressed recipients
AddressedSender
AddressedSender — sender context
AdvancedSearchFilters
AdvancedSearchFilters — the options the advanced search refine form offers
AdvancedSearchResult
AttachedEntry
AttachedEntry — entry reference on a calendar event
Attendance
Attendance — calendar event attendee
BadRequestErrorResponseContent
BoxGroup
BoxGroup — a Set Aside group. The API only ever returns the id.
BoxGroupWithPostings
BoxGroupWithPostings — a Set Aside group with one page of the postings in it
BoxGroupsResponse
BoxGroupsResponse — the wrapper the groups index answers with
BoxShowResponse
BoxShowResponse — box detail with postings. The API can return fields at root level or nested under a box key. SDK response decoders normalize the nested variant to flat before decoding.
BubbleUpSchedule
BubbleUpSchedule
BulkReplyDelivery
BulkReplyDraft
The reply as HEY would send it: the prefilled content and the entries it goes to.
BulkReplyEntry
One thread a bulk reply answers, with the recipients that thread’s reply goes to.
BulkReplyMessagePayload
BulkReplyRequestContent
Wire format: {entry_ids: […], message: {content}}
BulkUpdateClearancesRequestContent
Calendar
Calendar
CalendarDayListPayload
CalendarListPayload
CalendarListPayload
CalendarPeriod
CalendarPeriod — a day or a week: its bounds and everything in it, grouped by type. Recurring events arrive expanded into the occurrences that fall inside the window, which is what makes this a different answer than the recordings a calendar lists.
CalendarSelection
CalendarSelection — the calendars a toggle left switched on
CalendarTodoChanges
Nothing here is required: a rename sends a title and leaves the day alone.
CalendarTodoPayload
CalendarWeekListPayload
CalendarWithRecordingChangesUrl
CalendarWithRecordingChangesUrl — wraps calendar with sync URL
CalendarYear
CalendarYear — the grid a year is drawn as. A year carries one entry per day plus the events that span more than one, not every recording it holds: a year’s worth of expanded occurrences is not something a client asks for by opening a year.
CalendarYearDay
Clearance
Clearance — screening status for a contact
ClearanceListResponse
ClearanceListResponse — wire format: {clearances: […]}
ClearanceSummary
ClearanceSummary — the Screener’s pending count, and the queue itself when asked for
Clip
ClipTopic
The topic a clip was taken from
Collection
Collection — email collection/label
CollectionPayload
CollectionWithPostings
CollectionWithPostings — collection detail with its threads as posting objects
ConflictErrorResponseContent
The request conflicts with current state, e.g. starting a time track while one is already ongoing. Time tracks answer {“error”: “…”}; contact writes answer the {“errors”: […]} list every other error path uses.
Contact
Contact — the identity of someone in HEY
ContactDetail
ContactDetail — extended contact with additional show fields
ContactNote
A contact’s private note. Empty strings when there is no note.
ContactNotePayload
ContactNoteRequestContent
Wire format: {contact: {note: “…”}}
ContactPayload
ContactRequestContent
Wire format: {contact: {name, email_address, alias_email_addresses: […]}}
CreateBoxDesignationRequestContent
CreateBoxGroupRequestContent
CreateCalendarTodoRequestContent
Wire format: {calendar_todo: {title, starts_at}}
CreateContactRequestContent
Wire format: {acting_user_id, contact: {…}} — creating also has to say which account the contact belongs to, since one identity can hold several.
CreateDirectUploadRequestContent
CreateFolderForPostingsRequestContent
Wire format: {posting_ids: […], folder: {name, status}}
CreateMessageRequestContent
Wire format: {acting_sender_id, message: {subject, content}, entry: {addressed: {directly: “…”}}}
CreateReplyRequestContent
Wire format: {acting_sender_id, message: {subject, content}, entry: {addressed: {directly: […]}}} entry.addressed is optional on the wire but a reply posted without it is saved as a draft rather than delivered — HEY does not reply-all for the caller. Resolve the thread’s recipients first and always send them.
DeletedPosting
DeletedPosting — the stub the changes feed answers with for a posting that is gone
DirectUpload
DirectUploadBlob
DirectUploadTarget
Domain
Domain — email domain
DraftMessage
DraftMessage — a draft entry
Entry
Entry — a message entry within a topic
Extenzion
Extenzion — external account extension
ExternalAccount
FilePostingsRequestContent
FirstWeekDayParams
FirstWeekDayPreference
Folder
Folder — email folder
FolderPayload
FolderWithPostings
FolderWithPostings — folder detail with the postings filed in it
ForbiddenErrorResponseContent
GetBoxPostingChangesResponseContent
GetBundleUnseenPostingsResponseContent
HabitPayload
HabitRequestContent
Wire format: {calendar_habit: {name, icon, color, days: [0..6]}}
Identity
InternalServerErrorResponseContent
JoinLink
JoinLink — video/meeting join link
JournalEntryPayload
Mailbox
Box — a HEY mailbox
MarkPostingsRequestContent
Message
Message — full message detail
MessageAddressed
Recipients per kind, each a list of email addresses. haystack applies Array() to each kind, so a JSON array is the correct wire format (a bare string would be treated as a single address, not split on commas).
MessageDraft
MessageDraft — a prefilled compose payload (forward, reply). Unsent, so it has no id.
MessageEditState
MessageEditState — a saved draft as the editor sees it. The same compose fields as MessageDraft, plus the identity and scheduling a saved entry carries.
MessageEntryPayload
MessagePayload
MessagePostingContext
MessagePostingContext — posting context for a message
MovePostingsRequestContent
MoveStickyRequestContent
Wire format: {id, position} — both at the top level.
MoveTopicRequestContent
MoveWorkflowStagingRequestContent
NavigationIcon
NavigationIcon
NavigationItem
NavigationItem
NavigationResponse
NavigationResponse
NotFoundErrorResponseContent
Organizer
Organizer — calendar event organizer
Posting
Posting — polymorphic by kind (topic, bundle, entry)
PostingNote
Note — a posting note
Recording
Recording — polymorphic by type (Calendar::Event, Calendar::Todo, etc.)
RecurrenceSchedule
RecurrenceSchedule
Reminder
Reminder
ReplyMessagePayload
HEY does not derive a subject for a reply: a reply draft saved without message.subject reads “No subject” in Drafts. NewEntryReply hands back the prefilled subject (“Re: …”) — send it here. Content is the caller’s reply body alone: the server appends the quoted original at delivery (auto_quoting defaults on), so the prefill’s quoted content must not be echoed back.
SchedulePostingsBubbleUpRequestContent
SearchFilterItem
SearchFilterItem — one option offered by the advanced search refine form
SearchMatch
One matching topic: the topic, your posting of it (if any), and the entries that matched.
Sender
Sender — a contact with default flag
ServiceUnavailableErrorResponseContent
Snippet
Sticky
Sticky — a note on the stickies board
StickyPayload
StickyRequestContent
Wire format: {sticky: {body, size}}. Size is “small”, “medium” or “large”.
TimeFormatPreference
TimeTrackCategory
TimeTrackRequestContent
Topic
Topic detail
TopicListResponse
TopicListResponse — wrapped topic list (sent, spam, trash, everything)
TopicPublication
TrackedTime
The tracked-time index: a page of completed tracks, and every category they can be filed under.
TrashPostingsRequestContent
UnauthorizedErrorResponseContent
UnprocessableEntityErrorResponseContent
The server rejected what was sent. HEY answers {“errors”: [“…”]} — the messages the model itself produced — so a client can show them as they are.
UpdateCalendarTodoRequestContent
Wire format: {calendar_todo: {title, starts_at, focused}}
UpdateClearanceRequestContent
Wire format: {status: “approved”|“denied”} — top level, not nested under a clearance key.
UpdateCollectionRequestContent
Wire format: {collection: {name, summary}}
UpdateContactClearanceRequestContent
Wire format: {status: “approved”|“denied”} — top level, not nested under a clearance key.
UpdateFirstWeekDayRequestContent
Wire format: {identity_preference: {first_week_day: “monday”}}
UpdateJournalEntryRequestContent
Wire format: {calendar_journal_entry: {content}}
UpdateMyClearanceRequestContent
UpdateTimeFormatRequestContent
UpdateTimeTrackPayload
UpdateTimeTrackRequestContent
Wire format: {calendar_time_track: {notes, category_title, starts_at, ends_at}}
UpdatesChannel
UpdatesChannel — streaming channel for a box
User
User — a user within an account
Workflow
Workflow — email workflow/label
WorkflowStage
WorkflowStagingPayload

Type Aliases§

AdvancedSearchResponseContent
BulkUpdateClearancesResponseContent
CalendarRecordingsResponse
CalendarRecordingsResponse — recordings grouped by type
CompleteCalendarTodoResponseContent
CompleteHabitResponseContent
CreateBoxGroupResponseContent
CreateBulkReplyResponseContent
CreateCalendarTodoResponseContent
CreateContactResponseContent
CreateHabitResponseContent
CreateStickyResponseContent
CreateTimeTrackResponseContent
DirectUploadHeaders
GetAdvancedSearchFiltersResponseContent
GetAsideboxResponseContent
GetBoxGroupResponseContent
GetBoxResponseContent
GetBubbleboxResponseContent
GetCalendarDayResponseContent
GetCalendarRecordingsResponseContent
GetCalendarWeekResponseContent
GetCalendarYearResponseContent
GetClearancesResponseContent
GetCollectionResponseContent
GetContactNoteResponseContent
GetContactResponseContent
GetEverythingTopicsResponseContent
GetFeedboxResponseContent
GetFolderResponseContent
GetIdentityResponseContent
GetImboxResponseContent
GetImboxSeenResponseContent
GetJournalEntryResponseContent
GetLaterboxResponseContent
GetMessageEditResponseContent
GetMessageResponseContent
GetMyClearancesResponseContent
GetNavigationResponseContent
GetOngoingTimeTrackResponseContent
GetSentTopicsResponseContent
GetSpamTopicsResponseContent
GetTopicEntriesResponseContent
GetTopicPublicationResponseContent
GetTopicResponseContent
GetTrailboxResponseContent
GetTrashTopicsResponseContent
GetWorkflowResponseContent
GetWorkflowStageOutputPayload
ListBoxGroupsResponseContent
ListBoxesResponseContent
ListCalendarDaysResponseContent
ListCalendarWeeksResponseContent
ListCalendarsResponseContent
ListClipsResponseContent
ListCollectionsResponseContent
ListContactsResponseContent
ListDraftsResponseContent
ListJournalEntriesResponseContent
ListSnippetsResponseContent
ListStickiesResponseContent
ListTimeTrackCategoriesResponseContent
ListTimeTracksResponseContent
NewBulkReplyResponseContent
NewEntryForwardResponseContent
NewEntryReplyResponseContent
RevealContactResponseContent
StartTimeTrackResponseContent
ToggleCalendarResponseContent
UncompleteCalendarTodoResponseContent
UncompleteHabitResponseContent
UpdateCalendarTodoResponseContent
UpdateClearanceResponseContent
UpdateContactNoteResponseContent
UpdateContactResponseContent
UpdateFirstWeekDayResponseContent
UpdateHabitResponseContent
UpdateJournalEntryResponseContent
UpdateMyClearanceResponseContent
UpdateStickyResponseContent
UpdateTimeFormatResponseContent
UpdateTimeTrackResponseContent