generated

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package generated provides primitives to interact with the HEY HTTP API.

Code generated by oapi-codegen. DO NOT EDIT.

Index

Constants

View Source
const (
	ErrCodeUsage     = "usage"
	ErrCodeNotFound  = "not_found"
	ErrCodeAuth      = "auth_required"
	ErrCodeForbidden = "forbidden"
	ErrCodeRateLimit = "rate_limit"
	ErrCodeNetwork   = "network"
	ErrCodeAPI       = "api_error"
	ErrCodeAmbiguous = "ambiguous"
)

Error codes for API responses.

Variables

This section is empty.

Functions

func IsIdempotent

func IsIdempotent(operationId string) bool

IsIdempotent returns whether the given operation is idempotent and safe to retry.

func NewCompleteCalendarTodoRequest

func NewCompleteCalendarTodoRequest(server string, todoId int64) (*http.Request, error)

NewCompleteCalendarTodoRequest generates requests for CompleteCalendarTodo

func NewCompleteHabitRequest

func NewCompleteHabitRequest(server string, day string, habitId int64) (*http.Request, error)

NewCompleteHabitRequest generates requests for CompleteHabit

func NewCreateCalendarTodoRequest

func NewCreateCalendarTodoRequest(server string, body CreateCalendarTodoJSONRequestBody) (*http.Request, error)

NewCreateCalendarTodoRequest calls the generic CreateCalendarTodo builder with application/json body

func NewCreateCalendarTodoRequestWithBody

func NewCreateCalendarTodoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateCalendarTodoRequestWithBody generates requests for CreateCalendarTodo with any type of body

func NewCreateMessageRequest

func NewCreateMessageRequest(server string, body CreateMessageJSONRequestBody) (*http.Request, error)

NewCreateMessageRequest calls the generic CreateMessage builder with application/json body

func NewCreateMessageRequestWithBody

func NewCreateMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateMessageRequestWithBody generates requests for CreateMessage with any type of body

func NewCreateReplyRequest

func NewCreateReplyRequest(server string, entryId int64, body CreateReplyJSONRequestBody) (*http.Request, error)

NewCreateReplyRequest calls the generic CreateReply builder with application/json body

func NewCreateReplyRequestWithBody

func NewCreateReplyRequestWithBody(server string, entryId int64, contentType string, body io.Reader) (*http.Request, error)

NewCreateReplyRequestWithBody generates requests for CreateReply with any type of body

func NewCreateTopicMessageRequest

func NewCreateTopicMessageRequest(server string, topicId int64, body CreateTopicMessageJSONRequestBody) (*http.Request, error)

NewCreateTopicMessageRequest calls the generic CreateTopicMessage builder with application/json body

func NewCreateTopicMessageRequestWithBody

func NewCreateTopicMessageRequestWithBody(server string, topicId int64, contentType string, body io.Reader) (*http.Request, error)

NewCreateTopicMessageRequestWithBody generates requests for CreateTopicMessage with any type of body

func NewDeleteCalendarTodoRequest

func NewDeleteCalendarTodoRequest(server string, todoId int64) (*http.Request, error)

NewDeleteCalendarTodoRequest generates requests for DeleteCalendarTodo

func NewGetAsideboxRequest

func NewGetAsideboxRequest(server string, params *GetAsideboxParams) (*http.Request, error)

NewGetAsideboxRequest generates requests for GetAsidebox

func NewGetBoxRequest

func NewGetBoxRequest(server string, boxId int64, params *GetBoxParams) (*http.Request, error)

NewGetBoxRequest generates requests for GetBox

func NewGetBubbleboxRequest

func NewGetBubbleboxRequest(server string, params *GetBubbleboxParams) (*http.Request, error)

NewGetBubbleboxRequest generates requests for GetBubblebox

func NewGetCalendarRecordingsRequest

func NewGetCalendarRecordingsRequest(server string, calendarId int64, params *GetCalendarRecordingsParams) (*http.Request, error)

NewGetCalendarRecordingsRequest generates requests for GetCalendarRecordings

func NewGetContactRequest

func NewGetContactRequest(server string, contactId int64) (*http.Request, error)

NewGetContactRequest generates requests for GetContact

func NewGetEverythingTopicsRequest

func NewGetEverythingTopicsRequest(server string, params *GetEverythingTopicsParams) (*http.Request, error)

NewGetEverythingTopicsRequest generates requests for GetEverythingTopics

func NewGetFeedboxRequest

func NewGetFeedboxRequest(server string, params *GetFeedboxParams) (*http.Request, error)

NewGetFeedboxRequest generates requests for GetFeedbox

func NewGetIdentityRequest

func NewGetIdentityRequest(server string) (*http.Request, error)

NewGetIdentityRequest generates requests for GetIdentity

func NewGetImboxRequest

func NewGetImboxRequest(server string, params *GetImboxParams) (*http.Request, error)

NewGetImboxRequest generates requests for GetImbox

func NewGetJournalEntryRequest

func NewGetJournalEntryRequest(server string, day string) (*http.Request, error)

NewGetJournalEntryRequest generates requests for GetJournalEntry

func NewGetLaterboxRequest

func NewGetLaterboxRequest(server string, params *GetLaterboxParams) (*http.Request, error)

NewGetLaterboxRequest generates requests for GetLaterbox

func NewGetMessageRequest

func NewGetMessageRequest(server string, messageId int64) (*http.Request, error)

NewGetMessageRequest generates requests for GetMessage

func NewGetNavigationRequest

func NewGetNavigationRequest(server string) (*http.Request, error)

NewGetNavigationRequest generates requests for GetNavigation

func NewGetOngoingTimeTrackRequest

func NewGetOngoingTimeTrackRequest(server string) (*http.Request, error)

NewGetOngoingTimeTrackRequest generates requests for GetOngoingTimeTrack

func NewGetSentTopicsRequest

func NewGetSentTopicsRequest(server string, params *GetSentTopicsParams) (*http.Request, error)

NewGetSentTopicsRequest generates requests for GetSentTopics

func NewGetSpamTopicsRequest

func NewGetSpamTopicsRequest(server string, params *GetSpamTopicsParams) (*http.Request, error)

NewGetSpamTopicsRequest generates requests for GetSpamTopics

func NewGetTopicEntriesRequest

func NewGetTopicEntriesRequest(server string, topicId int64, params *GetTopicEntriesParams) (*http.Request, error)

NewGetTopicEntriesRequest generates requests for GetTopicEntries

func NewGetTopicRequest

func NewGetTopicRequest(server string, topicId int64) (*http.Request, error)

NewGetTopicRequest generates requests for GetTopic

func NewGetTrailboxRequest

func NewGetTrailboxRequest(server string, params *GetTrailboxParams) (*http.Request, error)

NewGetTrailboxRequest generates requests for GetTrailbox

func NewGetTrashTopicsRequest

func NewGetTrashTopicsRequest(server string, params *GetTrashTopicsParams) (*http.Request, error)

NewGetTrashTopicsRequest generates requests for GetTrashTopics

func NewIgnorePostingRequest added in v0.2.0

func NewIgnorePostingRequest(server string, postingId int64) (*http.Request, error)

NewIgnorePostingRequest generates requests for IgnorePosting

func NewListBoxesRequest

func NewListBoxesRequest(server string) (*http.Request, error)

NewListBoxesRequest generates requests for ListBoxes

func NewListCalendarsRequest

func NewListCalendarsRequest(server string) (*http.Request, error)

NewListCalendarsRequest generates requests for ListCalendars

func NewListContactsRequest

func NewListContactsRequest(server string, params *ListContactsParams) (*http.Request, error)

NewListContactsRequest generates requests for ListContacts

func NewListDraftsRequest

func NewListDraftsRequest(server string, params *ListDraftsParams) (*http.Request, error)

NewListDraftsRequest generates requests for ListDrafts

func NewMarkPostingsSeenRequest added in v0.2.0

func NewMarkPostingsSeenRequest(server string, body MarkPostingsSeenJSONRequestBody) (*http.Request, error)

NewMarkPostingsSeenRequest calls the generic MarkPostingsSeen builder with application/json body

func NewMarkPostingsSeenRequestWithBody added in v0.2.0

func NewMarkPostingsSeenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewMarkPostingsSeenRequestWithBody generates requests for MarkPostingsSeen with any type of body

func NewMarkPostingsUnseenRequest added in v0.2.0

func NewMarkPostingsUnseenRequest(server string, body MarkPostingsUnseenJSONRequestBody) (*http.Request, error)

NewMarkPostingsUnseenRequest calls the generic MarkPostingsUnseen builder with application/json body

func NewMarkPostingsUnseenRequestWithBody added in v0.2.0

func NewMarkPostingsUnseenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewMarkPostingsUnseenRequestWithBody generates requests for MarkPostingsUnseen with any type of body

func NewMovePostingToFeedRequest added in v0.2.0

func NewMovePostingToFeedRequest(server string, postingId int64) (*http.Request, error)

NewMovePostingToFeedRequest generates requests for MovePostingToFeed

func NewMovePostingToPaperTrailRequest added in v0.2.0

func NewMovePostingToPaperTrailRequest(server string, postingId int64) (*http.Request, error)

NewMovePostingToPaperTrailRequest generates requests for MovePostingToPaperTrail

func NewMovePostingToReplyLaterRequest added in v0.2.0

func NewMovePostingToReplyLaterRequest(server string, postingId int64) (*http.Request, error)

NewMovePostingToReplyLaterRequest generates requests for MovePostingToReplyLater

func NewMovePostingToSetAsideRequest added in v0.2.0

func NewMovePostingToSetAsideRequest(server string, postingId int64) (*http.Request, error)

NewMovePostingToSetAsideRequest generates requests for MovePostingToSetAside

func NewMovePostingToTrashRequest added in v0.2.0

func NewMovePostingToTrashRequest(server string, postingId int64) (*http.Request, error)

NewMovePostingToTrashRequest generates requests for MovePostingToTrash

func NewSearchRequest

func NewSearchRequest(server string, params *SearchParams) (*http.Request, error)

NewSearchRequest generates requests for Search

func NewStartTimeTrackRequest

func NewStartTimeTrackRequest(server string, body StartTimeTrackJSONRequestBody) (*http.Request, error)

NewStartTimeTrackRequest calls the generic StartTimeTrack builder with application/json body

func NewStartTimeTrackRequestWithBody

func NewStartTimeTrackRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewStartTimeTrackRequestWithBody generates requests for StartTimeTrack with any type of body

func NewUncompleteCalendarTodoRequest

func NewUncompleteCalendarTodoRequest(server string, todoId int64) (*http.Request, error)

NewUncompleteCalendarTodoRequest generates requests for UncompleteCalendarTodo

func NewUncompleteHabitRequest

func NewUncompleteHabitRequest(server string, day string, habitId int64) (*http.Request, error)

NewUncompleteHabitRequest generates requests for UncompleteHabit

func NewUpdateJournalEntryRequest

func NewUpdateJournalEntryRequest(server string, day string, body UpdateJournalEntryJSONRequestBody) (*http.Request, error)

NewUpdateJournalEntryRequest calls the generic UpdateJournalEntry builder with application/json body

func NewUpdateJournalEntryRequestWithBody

func NewUpdateJournalEntryRequestWithBody(server string, day string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateJournalEntryRequestWithBody generates requests for UpdateJournalEntry with any type of body

func NewUpdateTimeTrackRequest

func NewUpdateTimeTrackRequest(server string, timeTrackId int64, body UpdateTimeTrackJSONRequestBody) (*http.Request, error)

NewUpdateTimeTrackRequest calls the generic UpdateTimeTrack builder with application/json body

func NewUpdateTimeTrackRequestWithBody

func NewUpdateTimeTrackRequestWithBody(server string, timeTrackId int64, contentType string, body io.Reader) (*http.Request, error)

NewUpdateTimeTrackRequestWithBody generates requests for UpdateTimeTrack with any type of body

Types

type APIError

type APIError struct {
	// Code is a machine-readable error code.
	Code string
	// Message is a human-readable error message.
	Message string
	// Hint provides additional context or suggestions for resolution.
	Hint string
	// HTTPStatus is the HTTP status code that triggered this error.
	HTTPStatus int
	// Retryable indicates whether the operation can be retried.
	Retryable bool
	// Cause is the underlying error, if any.
	Cause error
}

APIError is a structured error with code, message, and optional hint.

func AsAPIError

func AsAPIError(err error) *APIError

AsAPIError attempts to convert an error to an *APIError. If the error is not an *APIError, it wraps it in one.

func NewAPIError

func NewAPIError(status int, msg string) *APIError

NewAPIError creates an API error with an HTTP status code.

func NewAmbiguousError

func NewAmbiguousError(resource string, matches []string) *APIError

NewAmbiguousError creates an ambiguous match error.

func NewAuthError

func NewAuthError(msg string) *APIError

NewAuthError creates an authentication error.

func NewForbiddenError

func NewForbiddenError(msg string) *APIError

NewForbiddenError creates a forbidden error.

func NewForbiddenScopeError

func NewForbiddenScopeError() *APIError

NewForbiddenScopeError creates a forbidden error due to insufficient scope.

func NewNetworkError

func NewNetworkError(cause error) *APIError

NewNetworkError creates a network error.

func NewNotFoundError

func NewNotFoundError(resource, identifier string) *APIError

NewNotFoundError creates a not-found error.

func NewNotFoundErrorWithHint

func NewNotFoundErrorWithHint(resource, identifier, hint string) *APIError

NewNotFoundErrorWithHint creates a not-found error with a hint.

func NewRateLimitError

func NewRateLimitError(retryAfter int) *APIError

NewRateLimitError creates a rate-limit error.

func NewUsageError

func NewUsageError(msg string) *APIError

NewUsageError creates a usage error.

func NewUsageErrorWithHint

func NewUsageErrorWithHint(msg, hint string) *APIError

NewUsageErrorWithHint creates a usage error with a hint.

func ParseHTTPError

func ParseHTTPError(resp *http.Response) *APIError

ParseHTTPError converts an HTTP response to an appropriate APIError.

func (*APIError) Error

func (e *APIError) Error() string

Error implements the error interface.

func (*APIError) IsRetryable

func (e *APIError) IsRetryable() bool

IsRetryable returns whether this error indicates a retryable condition.

func (*APIError) Unwrap

func (e *APIError) Unwrap() error

Unwrap returns the underlying cause for errors.Is/As support.

type Account

type Account struct {
	Burner      bool       `json:"burner,omitempty"`
	Domain      string     `json:"domain,omitempty"`
	Id          int64      `json:"id"`
	Name        string     `json:"name,omitempty"`
	Purpose     string     `json:"purpose,omitempty"`
	Readonly    bool       `json:"readonly,omitempty"`
	Status      string     `json:"status,omitempty"`
	Trial       bool       `json:"trial,omitempty"`
	TrialEndsOn types.Date `json:"trial_ends_on,omitempty"`
}

Account Account — a HEY account

type Addressed

type Addressed struct {
	Blindcopied []Contact `json:"blindcopied,omitempty"`
	Copied      []Contact `json:"copied,omitempty"`
	Directly    []Contact `json:"directly,omitempty"`
}

Addressed Addressed recipients

type AddressedSender

type AddressedSender struct {
	Directly []Contact `json:"directly,omitempty"`
}

AddressedSender AddressedSender — sender context

type AttachedEntry

type AttachedEntry struct {
	AppUrl string `json:"app_url,omitempty"`
	Id     int64  `json:"id"`
	Kind   string `json:"kind,omitempty"`
	Title  string `json:"title,omitempty"`
}

AttachedEntry AttachedEntry — entry reference on a calendar event

type Attendance

type Attendance struct {
	EmailAddress string `json:"email_address,omitempty"`
	Id           int64  `json:"id"`
	Name         string `json:"name,omitempty"`
	Status       string `json:"status,omitempty"`
}

Attendance Attendance — calendar event attendee

type AuthTransport

type AuthTransport struct {
	// TokenProvider supplies access tokens for requests.
	TokenProvider TokenProvider
	// Base is the underlying transport. If nil, http.DefaultTransport is used.
	Base http.RoundTripper
	// UserAgent is the User-Agent header value. If empty, a default is used.
	UserAgent string
}

AuthTransport is an http.RoundTripper that adds Bearer token authentication.

func (*AuthTransport) RoundTrip

func (t *AuthTransport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip implements http.RoundTripper, adding the Authorization header.

type Box

type Box struct {
	AppUrl            string           `json:"app_url,omitempty"`
	Id                int64            `json:"id"`
	Kind              string           `json:"kind"`
	Name              string           `json:"name"`
	PostingChangesUrl string           `json:"posting_changes_url,omitempty"`
	SignedStreamName  string           `json:"signed_stream_name,omitempty"`
	UpdatesChannels   []UpdatesChannel `json:"updates_channels,omitempty"`
	Url               string           `json:"url,omitempty"`
}

Box Box — a HEY mailbox

type BoxShowResponse

type BoxShowResponse struct {
	AppUrl                 string           `json:"app_url,omitempty"`
	Id                     int64            `json:"id"`
	Kind                   string           `json:"kind"`
	Name                   string           `json:"name"`
	NextHistoryUrl         string           `json:"next_history_url,omitempty"`
	NextIncrementalSyncUrl string           `json:"next_incremental_sync_url,omitempty"`
	PostingChangesUrl      string           `json:"posting_changes_url,omitempty"`
	Postings               []Posting        `json:"postings,omitempty"`
	SignedStreamName       string           `json:"signed_stream_name,omitempty"`
	UpdatesChannels        []UpdatesChannel `json:"updates_channels,omitempty"`
	Url                    string           `json:"url,omitempty"`
}

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.

type BubbleUpSchedule

type BubbleUpSchedule struct {
	// BubbleUpAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	BubbleUpAt time.Time `json:"bubble_up_at,omitempty"`
	SurpriseMe bool      `json:"surprise_me,omitempty"`
}

BubbleUpSchedule BubbleUpSchedule

type CachingTransport

type CachingTransport struct {
	// Cache stores responses by URL.
	Cache ResponseCache
	// Base is the underlying transport. If nil, http.DefaultTransport is used.
	Base http.RoundTripper
}

CachingTransport is an http.RoundTripper that implements ETag-based caching.

func (*CachingTransport) RoundTrip

func (t *CachingTransport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip implements http.RoundTripper with ETag-based caching.

type Calendar

type Calendar struct {
	Color string `json:"color,omitempty"`

	// CreatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	CreatedAt         time.Time `json:"created_at,omitempty"`
	External          bool      `json:"external,omitempty"`
	Id                int64     `json:"id"`
	Kind              string    `json:"kind,omitempty"`
	Name              string    `json:"name,omitempty"`
	OccurrencesUrl    string    `json:"occurrences_url,omitempty"`
	Owned             bool      `json:"owned,omitempty"`
	OwnerEmailAddress string    `json:"owner_email_address,omitempty"`
	Personal          bool      `json:"personal,omitempty"`
	RecordingsUrl     string    `json:"recordings_url,omitempty"`

	// UpdatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	Url       string    `json:"url,omitempty"`
}

Calendar Calendar

type CalendarListPayload

type CalendarListPayload struct {
	CalendarChangesUrl string                            `json:"calendar_changes_url,omitempty"`
	Calendars          []CalendarWithRecordingChangesUrl `json:"calendars,omitempty"`
}

CalendarListPayload CalendarListPayload

type CalendarRecordingsResponse

type CalendarRecordingsResponse map[string][]Recording

CalendarRecordingsResponse CalendarRecordingsResponse — recordings grouped by type

type CalendarTodoPayload added in v0.2.0

type CalendarTodoPayload struct {
	// StartsAt Date string (YYYY-MM-DD). Defaults to today if omitted.
	StartsAt time.Time `json:"starts_at,omitempty"`
	Title    string    `json:"title"`
}

CalendarTodoPayload defines model for CalendarTodoPayload.

type CalendarWithRecordingChangesUrl

type CalendarWithRecordingChangesUrl struct {
	// Calendar Calendar
	Calendar            Calendar `json:"calendar,omitempty"`
	RecordingChangesUrl string   `json:"recording_changes_url,omitempty"`
}

CalendarWithRecordingChangesUrl CalendarWithRecordingChangesUrl — wraps calendar with sync URL

type CampfiresService

type CampfiresService struct {
	// contains filtered or unexported fields
}

CampfiresService provides campfire-related operations.

type CardsService

type CardsService struct {
	// contains filtered or unexported fields
}

CardsService provides card-related operations.

type Clearance

type Clearance struct {
	Id     int64  `json:"id"`
	Status string `json:"status,omitempty"`
}

Clearance Clearance — screening status for a contact

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn

	// RetryConfig for idempotent operations
	RetryConfig RetryConfig

	// Logger for debug output (optional)
	Logger *slog.Logger
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) Campfires

func (c *Client) Campfires() *CampfiresService

Campfires returns the CampfiresService.

func (*Client) Cards

func (c *Client) Cards() *CardsService

Cards returns the CardsService.

func (*Client) Comments

func (c *Client) Comments() *CommentsService

Comments returns the CommentsService.

func (*Client) CompleteCalendarTodo

func (c *Client) CompleteCalendarTodo(ctx context.Context, todoId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CompleteHabit

func (c *Client) CompleteHabit(ctx context.Context, day string, habitId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCalendarTodo

func (c *Client) CreateCalendarTodo(ctx context.Context, body CreateCalendarTodoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCalendarTodoWithBody

func (c *Client) CreateCalendarTodoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateMessage

func (c *Client) CreateMessage(ctx context.Context, body CreateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateMessageWithBody

func (c *Client) CreateMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateReply

func (c *Client) CreateReply(ctx context.Context, entryId int64, body CreateReplyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateReplyWithBody

func (c *Client) CreateReplyWithBody(ctx context.Context, entryId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateTopicMessage

func (c *Client) CreateTopicMessage(ctx context.Context, topicId int64, body CreateTopicMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateTopicMessageWithBody

func (c *Client) CreateTopicMessageWithBody(ctx context.Context, topicId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteCalendarTodo

func (c *Client) DeleteCalendarTodo(ctx context.Context, todoId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Documents

func (c *Client) Documents() *DocumentsService

Documents returns the DocumentsService.

func (*Client) Events

func (c *Client) Events() *EventsService

Events returns the EventsService.

func (*Client) GetAsidebox

func (c *Client) GetAsidebox(ctx context.Context, params *GetAsideboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBox

func (c *Client) GetBox(ctx context.Context, boxId int64, params *GetBoxParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBubblebox

func (c *Client) GetBubblebox(ctx context.Context, params *GetBubbleboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCalendarRecordings

func (c *Client) GetCalendarRecordings(ctx context.Context, calendarId int64, params *GetCalendarRecordingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetContact

func (c *Client) GetContact(ctx context.Context, contactId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetEverythingTopics

func (c *Client) GetEverythingTopics(ctx context.Context, params *GetEverythingTopicsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFeedbox

func (c *Client) GetFeedbox(ctx context.Context, params *GetFeedboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIdentity

func (c *Client) GetIdentity(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetImbox

func (c *Client) GetImbox(ctx context.Context, params *GetImboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetJournalEntry

func (c *Client) GetJournalEntry(ctx context.Context, day string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLaterbox

func (c *Client) GetLaterbox(ctx context.Context, params *GetLaterboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMessage

func (c *Client) GetMessage(ctx context.Context, messageId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetNavigation

func (c *Client) GetNavigation(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOngoingTimeTrack

func (c *Client) GetOngoingTimeTrack(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSentTopics

func (c *Client) GetSentTopics(ctx context.Context, params *GetSentTopicsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSpamTopics

func (c *Client) GetSpamTopics(ctx context.Context, params *GetSpamTopicsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTopic

func (c *Client) GetTopic(ctx context.Context, topicId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTopicEntries

func (c *Client) GetTopicEntries(ctx context.Context, topicId int64, params *GetTopicEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTrailbox

func (c *Client) GetTrailbox(ctx context.Context, params *GetTrailboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTrashTopics

func (c *Client) GetTrashTopics(ctx context.Context, params *GetTrashTopicsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IgnorePosting added in v0.2.0

func (c *Client) IgnorePosting(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListBoxes

func (c *Client) ListBoxes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListCalendars

func (c *Client) ListCalendars(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListContacts

func (c *Client) ListContacts(ctx context.Context, params *ListContactsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListDrafts

func (c *Client) ListDrafts(ctx context.Context, params *ListDraftsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MarkPostingsSeen added in v0.2.0

func (c *Client) MarkPostingsSeen(ctx context.Context, body MarkPostingsSeenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MarkPostingsSeenWithBody added in v0.2.0

func (c *Client) MarkPostingsSeenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MarkPostingsUnseen added in v0.2.0

func (c *Client) MarkPostingsUnseen(ctx context.Context, body MarkPostingsUnseenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MarkPostingsUnseenWithBody added in v0.2.0

func (c *Client) MarkPostingsUnseenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Messages

func (c *Client) Messages() *MessagesService

Messages returns the MessagesService.

func (*Client) MovePostingToFeed added in v0.2.0

func (c *Client) MovePostingToFeed(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MovePostingToPaperTrail added in v0.2.0

func (c *Client) MovePostingToPaperTrail(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MovePostingToReplyLater added in v0.2.0

func (c *Client) MovePostingToReplyLater(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MovePostingToSetAside added in v0.2.0

func (c *Client) MovePostingToSetAside(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MovePostingToTrash added in v0.2.0

func (c *Client) MovePostingToTrash(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) People

func (c *Client) People() *PeopleService

People returns the PeopleService.

func (*Client) Projects

func (c *Client) Projects() *ProjectsService

Projects returns the ProjectsService.

func (*Client) Recordings

func (c *Client) Recordings() *RecordingsService

Recordings returns the RecordingsService.

func (*Client) Schedules

func (c *Client) Schedules() *SchedulesService

Schedules returns the SchedulesService.

func (*Client) Search

func (c *Client) Search(ctx context.Context, params *SearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StartTimeTrack

func (c *Client) StartTimeTrack(ctx context.Context, body StartTimeTrackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StartTimeTrackWithBody

func (c *Client) StartTimeTrackWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Templates

func (c *Client) Templates() *TemplatesService

Templates returns the TemplatesService.

func (*Client) Todos

func (c *Client) Todos() *TodosService

Todos returns the TodosService.

func (*Client) UncompleteCalendarTodo

func (c *Client) UncompleteCalendarTodo(ctx context.Context, todoId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UncompleteHabit

func (c *Client) UncompleteHabit(ctx context.Context, day string, habitId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateJournalEntry

func (c *Client) UpdateJournalEntry(ctx context.Context, day string, body UpdateJournalEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateJournalEntryWithBody

func (c *Client) UpdateJournalEntryWithBody(ctx context.Context, day string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateTimeTrack

func (c *Client) UpdateTimeTrack(ctx context.Context, timeTrackId int64, body UpdateTimeTrackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateTimeTrackWithBody

func (c *Client) UpdateTimeTrackWithBody(ctx context.Context, timeTrackId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Uploads

func (c *Client) Uploads() *UploadsService

Uploads returns the UploadsService.

func (*Client) Vaults

func (c *Client) Vaults() *VaultsService

Vaults returns the VaultsService.

func (*Client) Webhooks

func (c *Client) Webhooks() *WebhooksService

Webhooks returns the WebhooksService.

type ClientInterface

type ClientInterface interface {
	// ListBoxes request
	ListBoxes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBox request
	GetBox(ctx context.Context, boxId int64, params *GetBoxParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBubblebox request
	GetBubblebox(ctx context.Context, params *GetBubbleboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UncompleteHabit request
	UncompleteHabit(ctx context.Context, day string, habitId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CompleteHabit request
	CompleteHabit(ctx context.Context, day string, habitId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetJournalEntry request
	GetJournalEntry(ctx context.Context, day string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateJournalEntryWithBody request with any body
	UpdateJournalEntryWithBody(ctx context.Context, day string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateJournalEntry(ctx context.Context, day string, body UpdateJournalEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOngoingTimeTrack request
	GetOngoingTimeTrack(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartTimeTrackWithBody request with any body
	StartTimeTrackWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	StartTimeTrack(ctx context.Context, body StartTimeTrackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateTimeTrackWithBody request with any body
	UpdateTimeTrackWithBody(ctx context.Context, timeTrackId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateTimeTrack(ctx context.Context, timeTrackId int64, body UpdateTimeTrackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCalendarTodoWithBody request with any body
	CreateCalendarTodoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateCalendarTodo(ctx context.Context, body CreateCalendarTodoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteCalendarTodo request
	DeleteCalendarTodo(ctx context.Context, todoId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UncompleteCalendarTodo request
	UncompleteCalendarTodo(ctx context.Context, todoId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CompleteCalendarTodo request
	CompleteCalendarTodo(ctx context.Context, todoId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListCalendars request
	ListCalendars(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCalendarRecordings request
	GetCalendarRecordings(ctx context.Context, calendarId int64, params *GetCalendarRecordingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListContacts request
	ListContacts(ctx context.Context, params *ListContactsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetContact request
	GetContact(ctx context.Context, contactId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListDrafts request
	ListDrafts(ctx context.Context, params *ListDraftsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateReplyWithBody request with any body
	CreateReplyWithBody(ctx context.Context, entryId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateReply(ctx context.Context, entryId int64, body CreateReplyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFeedbox request
	GetFeedbox(ctx context.Context, params *GetFeedboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIdentity request
	GetIdentity(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetImbox request
	GetImbox(ctx context.Context, params *GetImboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateMessageWithBody request with any body
	CreateMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateMessage(ctx context.Context, body CreateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMessage request
	GetMessage(ctx context.Context, messageId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetNavigation request
	GetNavigation(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTrailbox request
	GetTrailbox(ctx context.Context, params *GetTrailboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MarkPostingsSeenWithBody request with any body
	MarkPostingsSeenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	MarkPostingsSeen(ctx context.Context, body MarkPostingsSeenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MarkPostingsUnseenWithBody request with any body
	MarkPostingsUnseenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	MarkPostingsUnseen(ctx context.Context, body MarkPostingsUnseenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IgnorePosting request
	IgnorePosting(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MovePostingToSetAside request
	MovePostingToSetAside(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MovePostingToFeed request
	MovePostingToFeed(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MovePostingToReplyLater request
	MovePostingToReplyLater(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MovePostingToPaperTrail request
	MovePostingToPaperTrail(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MovePostingToTrash request
	MovePostingToTrash(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLaterbox request
	GetLaterbox(ctx context.Context, params *GetLaterboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Search request
	Search(ctx context.Context, params *SearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAsidebox request
	GetAsidebox(ctx context.Context, params *GetAsideboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetEverythingTopics request
	GetEverythingTopics(ctx context.Context, params *GetEverythingTopicsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSentTopics request
	GetSentTopics(ctx context.Context, params *GetSentTopicsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSpamTopics request
	GetSpamTopics(ctx context.Context, params *GetSpamTopicsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTrashTopics request
	GetTrashTopics(ctx context.Context, params *GetTrashTopicsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTopic request
	GetTopic(ctx context.Context, topicId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTopicEntries request
	GetTopicEntries(ctx context.Context, topicId int64, params *GetTopicEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTopicMessageWithBody request with any body
	CreateTopicMessageWithBody(ctx context.Context, topicId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateTopicMessage(ctx context.Context, topicId int64, body CreateTopicMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithAuthTransport

func WithAuthTransport(tokenProvider TokenProvider, userAgent string) ClientOption

WithAuthTransport returns a ClientOption that configures authentication.

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithCachingTransport

func WithCachingTransport(cache ResponseCache) ClientOption

WithCachingTransport returns a ClientOption that enables ETag-based caching.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithLogger

func WithLogger(logger *slog.Logger) ClientOption

WithLogger allows setting a custom logger for debug output.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

func WithRetryConfig

func WithRetryConfig(cfg RetryConfig) ClientOption

WithRetryConfig allows setting custom retry configuration for idempotent operations.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CompleteCalendarTodoWithResponse

func (c *ClientWithResponses) CompleteCalendarTodoWithResponse(ctx context.Context, todoId int64, reqEditors ...RequestEditorFn) (*CompleteCalendarTodoResponse, error)

CompleteCalendarTodoWithResponse request returning *CompleteCalendarTodoResponse

func (*ClientWithResponses) CompleteHabitWithResponse

func (c *ClientWithResponses) CompleteHabitWithResponse(ctx context.Context, day string, habitId int64, reqEditors ...RequestEditorFn) (*CompleteHabitResponse, error)

CompleteHabitWithResponse request returning *CompleteHabitResponse

func (*ClientWithResponses) CreateCalendarTodoWithBodyWithResponse

func (c *ClientWithResponses) CreateCalendarTodoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCalendarTodoResponse, error)

CreateCalendarTodoWithBodyWithResponse request with arbitrary body returning *CreateCalendarTodoResponse

func (*ClientWithResponses) CreateCalendarTodoWithResponse

func (c *ClientWithResponses) CreateCalendarTodoWithResponse(ctx context.Context, body CreateCalendarTodoJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCalendarTodoResponse, error)

func (*ClientWithResponses) CreateMessageWithBodyWithResponse

func (c *ClientWithResponses) CreateMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMessageResponse, error)

CreateMessageWithBodyWithResponse request with arbitrary body returning *CreateMessageResponse

func (*ClientWithResponses) CreateMessageWithResponse

func (c *ClientWithResponses) CreateMessageWithResponse(ctx context.Context, body CreateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMessageResponse, error)

func (*ClientWithResponses) CreateReplyWithBodyWithResponse

func (c *ClientWithResponses) CreateReplyWithBodyWithResponse(ctx context.Context, entryId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReplyResponse, error)

CreateReplyWithBodyWithResponse request with arbitrary body returning *CreateReplyResponse

func (*ClientWithResponses) CreateReplyWithResponse

func (c *ClientWithResponses) CreateReplyWithResponse(ctx context.Context, entryId int64, body CreateReplyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReplyResponse, error)

func (*ClientWithResponses) CreateTopicMessageWithBodyWithResponse

func (c *ClientWithResponses) CreateTopicMessageWithBodyWithResponse(ctx context.Context, topicId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTopicMessageResponse, error)

CreateTopicMessageWithBodyWithResponse request with arbitrary body returning *CreateTopicMessageResponse

func (*ClientWithResponses) CreateTopicMessageWithResponse

func (c *ClientWithResponses) CreateTopicMessageWithResponse(ctx context.Context, topicId int64, body CreateTopicMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTopicMessageResponse, error)

func (*ClientWithResponses) DeleteCalendarTodoWithResponse

func (c *ClientWithResponses) DeleteCalendarTodoWithResponse(ctx context.Context, todoId int64, reqEditors ...RequestEditorFn) (*DeleteCalendarTodoResponse, error)

DeleteCalendarTodoWithResponse request returning *DeleteCalendarTodoResponse

func (*ClientWithResponses) GetAsideboxWithResponse

func (c *ClientWithResponses) GetAsideboxWithResponse(ctx context.Context, params *GetAsideboxParams, reqEditors ...RequestEditorFn) (*GetAsideboxResponse, error)

GetAsideboxWithResponse request returning *GetAsideboxResponse

func (*ClientWithResponses) GetBoxWithResponse

func (c *ClientWithResponses) GetBoxWithResponse(ctx context.Context, boxId int64, params *GetBoxParams, reqEditors ...RequestEditorFn) (*GetBoxResponse, error)

GetBoxWithResponse request returning *GetBoxResponse

func (*ClientWithResponses) GetBubbleboxWithResponse

func (c *ClientWithResponses) GetBubbleboxWithResponse(ctx context.Context, params *GetBubbleboxParams, reqEditors ...RequestEditorFn) (*GetBubbleboxResponse, error)

GetBubbleboxWithResponse request returning *GetBubbleboxResponse

func (*ClientWithResponses) GetCalendarRecordingsWithResponse

func (c *ClientWithResponses) GetCalendarRecordingsWithResponse(ctx context.Context, calendarId int64, params *GetCalendarRecordingsParams, reqEditors ...RequestEditorFn) (*GetCalendarRecordingsResponse, error)

GetCalendarRecordingsWithResponse request returning *GetCalendarRecordingsResponse

func (*ClientWithResponses) GetContactWithResponse

func (c *ClientWithResponses) GetContactWithResponse(ctx context.Context, contactId int64, reqEditors ...RequestEditorFn) (*GetContactResponse, error)

GetContactWithResponse request returning *GetContactResponse

func (*ClientWithResponses) GetEverythingTopicsWithResponse

func (c *ClientWithResponses) GetEverythingTopicsWithResponse(ctx context.Context, params *GetEverythingTopicsParams, reqEditors ...RequestEditorFn) (*GetEverythingTopicsResponse, error)

GetEverythingTopicsWithResponse request returning *GetEverythingTopicsResponse

func (*ClientWithResponses) GetFeedboxWithResponse

func (c *ClientWithResponses) GetFeedboxWithResponse(ctx context.Context, params *GetFeedboxParams, reqEditors ...RequestEditorFn) (*GetFeedboxResponse, error)

GetFeedboxWithResponse request returning *GetFeedboxResponse

func (*ClientWithResponses) GetIdentityWithResponse

func (c *ClientWithResponses) GetIdentityWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetIdentityResponse, error)

GetIdentityWithResponse request returning *GetIdentityResponse

func (*ClientWithResponses) GetImboxWithResponse

func (c *ClientWithResponses) GetImboxWithResponse(ctx context.Context, params *GetImboxParams, reqEditors ...RequestEditorFn) (*GetImboxResponse, error)

GetImboxWithResponse request returning *GetImboxResponse

func (*ClientWithResponses) GetJournalEntryWithResponse

func (c *ClientWithResponses) GetJournalEntryWithResponse(ctx context.Context, day string, reqEditors ...RequestEditorFn) (*GetJournalEntryResponse, error)

GetJournalEntryWithResponse request returning *GetJournalEntryResponse

func (*ClientWithResponses) GetLaterboxWithResponse

func (c *ClientWithResponses) GetLaterboxWithResponse(ctx context.Context, params *GetLaterboxParams, reqEditors ...RequestEditorFn) (*GetLaterboxResponse, error)

GetLaterboxWithResponse request returning *GetLaterboxResponse

func (*ClientWithResponses) GetMessageWithResponse

func (c *ClientWithResponses) GetMessageWithResponse(ctx context.Context, messageId int64, reqEditors ...RequestEditorFn) (*GetMessageResponse, error)

GetMessageWithResponse request returning *GetMessageResponse

func (*ClientWithResponses) GetNavigationWithResponse

func (c *ClientWithResponses) GetNavigationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNavigationResponse, error)

GetNavigationWithResponse request returning *GetNavigationResponse

func (*ClientWithResponses) GetOngoingTimeTrackWithResponse

func (c *ClientWithResponses) GetOngoingTimeTrackWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOngoingTimeTrackResponse, error)

GetOngoingTimeTrackWithResponse request returning *GetOngoingTimeTrackResponse

func (*ClientWithResponses) GetSentTopicsWithResponse

func (c *ClientWithResponses) GetSentTopicsWithResponse(ctx context.Context, params *GetSentTopicsParams, reqEditors ...RequestEditorFn) (*GetSentTopicsResponse, error)

GetSentTopicsWithResponse request returning *GetSentTopicsResponse

func (*ClientWithResponses) GetSpamTopicsWithResponse

func (c *ClientWithResponses) GetSpamTopicsWithResponse(ctx context.Context, params *GetSpamTopicsParams, reqEditors ...RequestEditorFn) (*GetSpamTopicsResponse, error)

GetSpamTopicsWithResponse request returning *GetSpamTopicsResponse

func (*ClientWithResponses) GetTopicEntriesWithResponse

func (c *ClientWithResponses) GetTopicEntriesWithResponse(ctx context.Context, topicId int64, params *GetTopicEntriesParams, reqEditors ...RequestEditorFn) (*GetTopicEntriesResponse, error)

GetTopicEntriesWithResponse request returning *GetTopicEntriesResponse

func (*ClientWithResponses) GetTopicWithResponse

func (c *ClientWithResponses) GetTopicWithResponse(ctx context.Context, topicId int64, reqEditors ...RequestEditorFn) (*GetTopicResponse, error)

GetTopicWithResponse request returning *GetTopicResponse

func (*ClientWithResponses) GetTrailboxWithResponse

func (c *ClientWithResponses) GetTrailboxWithResponse(ctx context.Context, params *GetTrailboxParams, reqEditors ...RequestEditorFn) (*GetTrailboxResponse, error)

GetTrailboxWithResponse request returning *GetTrailboxResponse

func (*ClientWithResponses) GetTrashTopicsWithResponse

func (c *ClientWithResponses) GetTrashTopicsWithResponse(ctx context.Context, params *GetTrashTopicsParams, reqEditors ...RequestEditorFn) (*GetTrashTopicsResponse, error)

GetTrashTopicsWithResponse request returning *GetTrashTopicsResponse

func (*ClientWithResponses) IgnorePostingWithResponse added in v0.2.0

func (c *ClientWithResponses) IgnorePostingWithResponse(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*IgnorePostingResponse, error)

IgnorePostingWithResponse request returning *IgnorePostingResponse

func (*ClientWithResponses) ListBoxesWithResponse

func (c *ClientWithResponses) ListBoxesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListBoxesResponse, error)

ListBoxesWithResponse request returning *ListBoxesResponse

func (*ClientWithResponses) ListCalendarsWithResponse

func (c *ClientWithResponses) ListCalendarsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListCalendarsResponse, error)

ListCalendarsWithResponse request returning *ListCalendarsResponse

func (*ClientWithResponses) ListContactsWithResponse

func (c *ClientWithResponses) ListContactsWithResponse(ctx context.Context, params *ListContactsParams, reqEditors ...RequestEditorFn) (*ListContactsResponse, error)

ListContactsWithResponse request returning *ListContactsResponse

func (*ClientWithResponses) ListDraftsWithResponse

func (c *ClientWithResponses) ListDraftsWithResponse(ctx context.Context, params *ListDraftsParams, reqEditors ...RequestEditorFn) (*ListDraftsResponse, error)

ListDraftsWithResponse request returning *ListDraftsResponse

func (*ClientWithResponses) MarkPostingsSeenWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) MarkPostingsSeenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkPostingsSeenResponse, error)

MarkPostingsSeenWithBodyWithResponse request with arbitrary body returning *MarkPostingsSeenResponse

func (*ClientWithResponses) MarkPostingsSeenWithResponse added in v0.2.0

func (c *ClientWithResponses) MarkPostingsSeenWithResponse(ctx context.Context, body MarkPostingsSeenJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkPostingsSeenResponse, error)

func (*ClientWithResponses) MarkPostingsUnseenWithBodyWithResponse added in v0.2.0

func (c *ClientWithResponses) MarkPostingsUnseenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkPostingsUnseenResponse, error)

MarkPostingsUnseenWithBodyWithResponse request with arbitrary body returning *MarkPostingsUnseenResponse

func (*ClientWithResponses) MarkPostingsUnseenWithResponse added in v0.2.0

func (c *ClientWithResponses) MarkPostingsUnseenWithResponse(ctx context.Context, body MarkPostingsUnseenJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkPostingsUnseenResponse, error)

func (*ClientWithResponses) MovePostingToFeedWithResponse added in v0.2.0

func (c *ClientWithResponses) MovePostingToFeedWithResponse(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*MovePostingToFeedResponse, error)

MovePostingToFeedWithResponse request returning *MovePostingToFeedResponse

func (*ClientWithResponses) MovePostingToPaperTrailWithResponse added in v0.2.0

func (c *ClientWithResponses) MovePostingToPaperTrailWithResponse(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*MovePostingToPaperTrailResponse, error)

MovePostingToPaperTrailWithResponse request returning *MovePostingToPaperTrailResponse

func (*ClientWithResponses) MovePostingToReplyLaterWithResponse added in v0.2.0

func (c *ClientWithResponses) MovePostingToReplyLaterWithResponse(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*MovePostingToReplyLaterResponse, error)

MovePostingToReplyLaterWithResponse request returning *MovePostingToReplyLaterResponse

func (*ClientWithResponses) MovePostingToSetAsideWithResponse added in v0.2.0

func (c *ClientWithResponses) MovePostingToSetAsideWithResponse(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*MovePostingToSetAsideResponse, error)

MovePostingToSetAsideWithResponse request returning *MovePostingToSetAsideResponse

func (*ClientWithResponses) MovePostingToTrashWithResponse added in v0.2.0

func (c *ClientWithResponses) MovePostingToTrashWithResponse(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*MovePostingToTrashResponse, error)

MovePostingToTrashWithResponse request returning *MovePostingToTrashResponse

func (*ClientWithResponses) SearchWithResponse

func (c *ClientWithResponses) SearchWithResponse(ctx context.Context, params *SearchParams, reqEditors ...RequestEditorFn) (*SearchResponse, error)

SearchWithResponse request returning *SearchResponse

func (*ClientWithResponses) StartTimeTrackWithBodyWithResponse

func (c *ClientWithResponses) StartTimeTrackWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartTimeTrackResponse, error)

StartTimeTrackWithBodyWithResponse request with arbitrary body returning *StartTimeTrackResponse

func (*ClientWithResponses) StartTimeTrackWithResponse

func (c *ClientWithResponses) StartTimeTrackWithResponse(ctx context.Context, body StartTimeTrackJSONRequestBody, reqEditors ...RequestEditorFn) (*StartTimeTrackResponse, error)

func (*ClientWithResponses) UncompleteCalendarTodoWithResponse

func (c *ClientWithResponses) UncompleteCalendarTodoWithResponse(ctx context.Context, todoId int64, reqEditors ...RequestEditorFn) (*UncompleteCalendarTodoResponse, error)

UncompleteCalendarTodoWithResponse request returning *UncompleteCalendarTodoResponse

func (*ClientWithResponses) UncompleteHabitWithResponse

func (c *ClientWithResponses) UncompleteHabitWithResponse(ctx context.Context, day string, habitId int64, reqEditors ...RequestEditorFn) (*UncompleteHabitResponse, error)

UncompleteHabitWithResponse request returning *UncompleteHabitResponse

func (*ClientWithResponses) UpdateJournalEntryWithBodyWithResponse

func (c *ClientWithResponses) UpdateJournalEntryWithBodyWithResponse(ctx context.Context, day string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJournalEntryResponse, error)

UpdateJournalEntryWithBodyWithResponse request with arbitrary body returning *UpdateJournalEntryResponse

func (*ClientWithResponses) UpdateJournalEntryWithResponse

func (c *ClientWithResponses) UpdateJournalEntryWithResponse(ctx context.Context, day string, body UpdateJournalEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJournalEntryResponse, error)

func (*ClientWithResponses) UpdateTimeTrackWithBodyWithResponse

func (c *ClientWithResponses) UpdateTimeTrackWithBodyWithResponse(ctx context.Context, timeTrackId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeTrackResponse, error)

UpdateTimeTrackWithBodyWithResponse request with arbitrary body returning *UpdateTimeTrackResponse

func (*ClientWithResponses) UpdateTimeTrackWithResponse

func (c *ClientWithResponses) UpdateTimeTrackWithResponse(ctx context.Context, timeTrackId int64, body UpdateTimeTrackJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeTrackResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListBoxesWithResponse request
	ListBoxesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListBoxesResponse, error)

	// GetBoxWithResponse request
	GetBoxWithResponse(ctx context.Context, boxId int64, params *GetBoxParams, reqEditors ...RequestEditorFn) (*GetBoxResponse, error)

	// GetBubbleboxWithResponse request
	GetBubbleboxWithResponse(ctx context.Context, params *GetBubbleboxParams, reqEditors ...RequestEditorFn) (*GetBubbleboxResponse, error)

	// UncompleteHabitWithResponse request
	UncompleteHabitWithResponse(ctx context.Context, day string, habitId int64, reqEditors ...RequestEditorFn) (*UncompleteHabitResponse, error)

	// CompleteHabitWithResponse request
	CompleteHabitWithResponse(ctx context.Context, day string, habitId int64, reqEditors ...RequestEditorFn) (*CompleteHabitResponse, error)

	// GetJournalEntryWithResponse request
	GetJournalEntryWithResponse(ctx context.Context, day string, reqEditors ...RequestEditorFn) (*GetJournalEntryResponse, error)

	// UpdateJournalEntryWithBodyWithResponse request with any body
	UpdateJournalEntryWithBodyWithResponse(ctx context.Context, day string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJournalEntryResponse, error)

	UpdateJournalEntryWithResponse(ctx context.Context, day string, body UpdateJournalEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJournalEntryResponse, error)

	// GetOngoingTimeTrackWithResponse request
	GetOngoingTimeTrackWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOngoingTimeTrackResponse, error)

	// StartTimeTrackWithBodyWithResponse request with any body
	StartTimeTrackWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartTimeTrackResponse, error)

	StartTimeTrackWithResponse(ctx context.Context, body StartTimeTrackJSONRequestBody, reqEditors ...RequestEditorFn) (*StartTimeTrackResponse, error)

	// UpdateTimeTrackWithBodyWithResponse request with any body
	UpdateTimeTrackWithBodyWithResponse(ctx context.Context, timeTrackId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeTrackResponse, error)

	UpdateTimeTrackWithResponse(ctx context.Context, timeTrackId int64, body UpdateTimeTrackJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeTrackResponse, error)

	// CreateCalendarTodoWithBodyWithResponse request with any body
	CreateCalendarTodoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCalendarTodoResponse, error)

	CreateCalendarTodoWithResponse(ctx context.Context, body CreateCalendarTodoJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCalendarTodoResponse, error)

	// DeleteCalendarTodoWithResponse request
	DeleteCalendarTodoWithResponse(ctx context.Context, todoId int64, reqEditors ...RequestEditorFn) (*DeleteCalendarTodoResponse, error)

	// UncompleteCalendarTodoWithResponse request
	UncompleteCalendarTodoWithResponse(ctx context.Context, todoId int64, reqEditors ...RequestEditorFn) (*UncompleteCalendarTodoResponse, error)

	// CompleteCalendarTodoWithResponse request
	CompleteCalendarTodoWithResponse(ctx context.Context, todoId int64, reqEditors ...RequestEditorFn) (*CompleteCalendarTodoResponse, error)

	// ListCalendarsWithResponse request
	ListCalendarsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListCalendarsResponse, error)

	// GetCalendarRecordingsWithResponse request
	GetCalendarRecordingsWithResponse(ctx context.Context, calendarId int64, params *GetCalendarRecordingsParams, reqEditors ...RequestEditorFn) (*GetCalendarRecordingsResponse, error)

	// ListContactsWithResponse request
	ListContactsWithResponse(ctx context.Context, params *ListContactsParams, reqEditors ...RequestEditorFn) (*ListContactsResponse, error)

	// GetContactWithResponse request
	GetContactWithResponse(ctx context.Context, contactId int64, reqEditors ...RequestEditorFn) (*GetContactResponse, error)

	// ListDraftsWithResponse request
	ListDraftsWithResponse(ctx context.Context, params *ListDraftsParams, reqEditors ...RequestEditorFn) (*ListDraftsResponse, error)

	// CreateReplyWithBodyWithResponse request with any body
	CreateReplyWithBodyWithResponse(ctx context.Context, entryId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReplyResponse, error)

	CreateReplyWithResponse(ctx context.Context, entryId int64, body CreateReplyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReplyResponse, error)

	// GetFeedboxWithResponse request
	GetFeedboxWithResponse(ctx context.Context, params *GetFeedboxParams, reqEditors ...RequestEditorFn) (*GetFeedboxResponse, error)

	// GetIdentityWithResponse request
	GetIdentityWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetIdentityResponse, error)

	// GetImboxWithResponse request
	GetImboxWithResponse(ctx context.Context, params *GetImboxParams, reqEditors ...RequestEditorFn) (*GetImboxResponse, error)

	// CreateMessageWithBodyWithResponse request with any body
	CreateMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMessageResponse, error)

	CreateMessageWithResponse(ctx context.Context, body CreateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMessageResponse, error)

	// GetMessageWithResponse request
	GetMessageWithResponse(ctx context.Context, messageId int64, reqEditors ...RequestEditorFn) (*GetMessageResponse, error)

	// GetNavigationWithResponse request
	GetNavigationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNavigationResponse, error)

	// GetTrailboxWithResponse request
	GetTrailboxWithResponse(ctx context.Context, params *GetTrailboxParams, reqEditors ...RequestEditorFn) (*GetTrailboxResponse, error)

	// MarkPostingsSeenWithBodyWithResponse request with any body
	MarkPostingsSeenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkPostingsSeenResponse, error)

	MarkPostingsSeenWithResponse(ctx context.Context, body MarkPostingsSeenJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkPostingsSeenResponse, error)

	// MarkPostingsUnseenWithBodyWithResponse request with any body
	MarkPostingsUnseenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkPostingsUnseenResponse, error)

	MarkPostingsUnseenWithResponse(ctx context.Context, body MarkPostingsUnseenJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkPostingsUnseenResponse, error)

	// IgnorePostingWithResponse request
	IgnorePostingWithResponse(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*IgnorePostingResponse, error)

	// MovePostingToSetAsideWithResponse request
	MovePostingToSetAsideWithResponse(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*MovePostingToSetAsideResponse, error)

	// MovePostingToFeedWithResponse request
	MovePostingToFeedWithResponse(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*MovePostingToFeedResponse, error)

	// MovePostingToReplyLaterWithResponse request
	MovePostingToReplyLaterWithResponse(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*MovePostingToReplyLaterResponse, error)

	// MovePostingToPaperTrailWithResponse request
	MovePostingToPaperTrailWithResponse(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*MovePostingToPaperTrailResponse, error)

	// MovePostingToTrashWithResponse request
	MovePostingToTrashWithResponse(ctx context.Context, postingId int64, reqEditors ...RequestEditorFn) (*MovePostingToTrashResponse, error)

	// GetLaterboxWithResponse request
	GetLaterboxWithResponse(ctx context.Context, params *GetLaterboxParams, reqEditors ...RequestEditorFn) (*GetLaterboxResponse, error)

	// SearchWithResponse request
	SearchWithResponse(ctx context.Context, params *SearchParams, reqEditors ...RequestEditorFn) (*SearchResponse, error)

	// GetAsideboxWithResponse request
	GetAsideboxWithResponse(ctx context.Context, params *GetAsideboxParams, reqEditors ...RequestEditorFn) (*GetAsideboxResponse, error)

	// GetEverythingTopicsWithResponse request
	GetEverythingTopicsWithResponse(ctx context.Context, params *GetEverythingTopicsParams, reqEditors ...RequestEditorFn) (*GetEverythingTopicsResponse, error)

	// GetSentTopicsWithResponse request
	GetSentTopicsWithResponse(ctx context.Context, params *GetSentTopicsParams, reqEditors ...RequestEditorFn) (*GetSentTopicsResponse, error)

	// GetSpamTopicsWithResponse request
	GetSpamTopicsWithResponse(ctx context.Context, params *GetSpamTopicsParams, reqEditors ...RequestEditorFn) (*GetSpamTopicsResponse, error)

	// GetTrashTopicsWithResponse request
	GetTrashTopicsWithResponse(ctx context.Context, params *GetTrashTopicsParams, reqEditors ...RequestEditorFn) (*GetTrashTopicsResponse, error)

	// GetTopicWithResponse request
	GetTopicWithResponse(ctx context.Context, topicId int64, reqEditors ...RequestEditorFn) (*GetTopicResponse, error)

	// GetTopicEntriesWithResponse request
	GetTopicEntriesWithResponse(ctx context.Context, topicId int64, params *GetTopicEntriesParams, reqEditors ...RequestEditorFn) (*GetTopicEntriesResponse, error)

	// CreateTopicMessageWithBodyWithResponse request with any body
	CreateTopicMessageWithBodyWithResponse(ctx context.Context, topicId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTopicMessageResponse, error)

	CreateTopicMessageWithResponse(ctx context.Context, topicId int64, body CreateTopicMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTopicMessageResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Collection

type Collection struct {
	AppUrl string `json:"app_url,omitempty"`

	// CreatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	CreatedAt time.Time `json:"created_at,omitempty"`
	Id        int64     `json:"id"`
	Name      string    `json:"name,omitempty"`

	// UpdatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}

Collection Collection — email collection/label

type CommentsService

type CommentsService struct {
	// contains filtered or unexported fields
}

CommentsService provides comment-related operations.

type CompleteCalendarTodoResponse

func ParseCompleteCalendarTodoResponse

func ParseCompleteCalendarTodoResponse(rsp *http.Response) (*CompleteCalendarTodoResponse, error)

ParseCompleteCalendarTodoResponse parses an HTTP response from a CompleteCalendarTodoWithResponse call

func (CompleteCalendarTodoResponse) Status

Status returns HTTPResponse.Status

func (CompleteCalendarTodoResponse) StatusCode

func (r CompleteCalendarTodoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CompleteCalendarTodoResponseContent

type CompleteCalendarTodoResponseContent = Recording

CompleteCalendarTodoResponseContent Recording — polymorphic by `type` (CalendarEvent, CalendarTodo, etc.)

type CompleteHabitResponse

func ParseCompleteHabitResponse

func ParseCompleteHabitResponse(rsp *http.Response) (*CompleteHabitResponse, error)

ParseCompleteHabitResponse parses an HTTP response from a CompleteHabitWithResponse call

func (CompleteHabitResponse) Status

func (r CompleteHabitResponse) Status() string

Status returns HTTPResponse.Status

func (CompleteHabitResponse) StatusCode

func (r CompleteHabitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CompleteHabitResponseContent

type CompleteHabitResponseContent = Recording

CompleteHabitResponseContent Recording — polymorphic by `type` (CalendarEvent, CalendarTodo, etc.)

type Contact

type Contact struct {
	AccountId             int64  `json:"account_id,omitempty"`
	AvatarBackgroundColor string `json:"avatar_background_color,omitempty"`
	AvatarUrl             string `json:"avatar_url,omitempty"`
	ContactableType       string `json:"contactable_type,omitempty"`
	EmailAddress          string `json:"email_address,omitempty"`
	Id                    int64  `json:"id"`
	Initials              string `json:"initials,omitempty"`
	Name                  string `json:"name,omitempty"`
	NameTag               string `json:"name_tag,omitempty"`

	// UpdatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}

Contact Contact — the identity of someone in HEY

type ContactDetail

type ContactDetail struct {
	AccountId             int64     `json:"account_id,omitempty"`
	Aliases               []Contact `json:"aliases,omitempty"`
	AvatarBackgroundColor string    `json:"avatar_background_color,omitempty"`
	AvatarUrl             string    `json:"avatar_url,omitempty"`

	// Clearance Clearance — screening status for a contact
	Clearance       Clearance `json:"clearance,omitempty"`
	ContactableType string    `json:"contactable_type,omitempty"`

	// Domain Domain — email domain
	Domain       Domain `json:"domain,omitempty"`
	EditAppUrl   string `json:"edit_app_url,omitempty"`
	EmailAddress string `json:"email_address,omitempty"`
	Id           int64  `json:"id"`
	Initials     string `json:"initials,omitempty"`
	Name         string `json:"name,omitempty"`
	NameTag      string `json:"name_tag,omitempty"`

	// UpdatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}

ContactDetail ContactDetail — extended contact with additional show fields

type CreateCalendarTodoJSONRequestBody

type CreateCalendarTodoJSONRequestBody = CreateCalendarTodoRequestContent

CreateCalendarTodoJSONRequestBody defines body for CreateCalendarTodo for application/json ContentType.

type CreateCalendarTodoRequestContent

type CreateCalendarTodoRequestContent struct {
	CalendarTodo CalendarTodoPayload `json:"calendar_todo"`
}

CreateCalendarTodoRequestContent Wire format: {calendar_todo: {title, starts_at}}

type CreateCalendarTodoResponse

func ParseCreateCalendarTodoResponse

func ParseCreateCalendarTodoResponse(rsp *http.Response) (*CreateCalendarTodoResponse, error)

ParseCreateCalendarTodoResponse parses an HTTP response from a CreateCalendarTodoWithResponse call

func (CreateCalendarTodoResponse) Status

Status returns HTTPResponse.Status

func (CreateCalendarTodoResponse) StatusCode

func (r CreateCalendarTodoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateCalendarTodoResponseContent

type CreateCalendarTodoResponseContent = Recording

CreateCalendarTodoResponseContent Recording — polymorphic by `type` (CalendarEvent, CalendarTodo, etc.)

type CreateMessageJSONRequestBody

type CreateMessageJSONRequestBody = CreateMessageRequestContent

CreateMessageJSONRequestBody defines body for CreateMessage for application/json ContentType.

type CreateMessageRequestContent

type CreateMessageRequestContent struct {
	ActingSenderId int64               `json:"acting_sender_id"`
	Entry          MessageEntryPayload `json:"entry,omitempty"`
	Message        MessagePayload      `json:"message"`
}

CreateMessageRequestContent Wire format: {acting_sender_id, message: {subject, content}, entry: {addressed: {directly: "..."}}}

type CreateMessageResponse

func ParseCreateMessageResponse

func ParseCreateMessageResponse(rsp *http.Response) (*CreateMessageResponse, error)

ParseCreateMessageResponse parses an HTTP response from a CreateMessageWithResponse call

func (CreateMessageResponse) Status

func (r CreateMessageResponse) Status() string

Status returns HTTPResponse.Status

func (CreateMessageResponse) StatusCode

func (r CreateMessageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateReplyJSONRequestBody

type CreateReplyJSONRequestBody = CreateReplyRequestContent

CreateReplyJSONRequestBody defines body for CreateReply for application/json ContentType.

type CreateReplyRequestContent

type CreateReplyRequestContent struct {
	ActingSenderId int64               `json:"acting_sender_id"`
	Message        ReplyMessagePayload `json:"message"`
}

CreateReplyRequestContent Wire format: {acting_sender_id, message: {content}}

type CreateReplyResponse

func ParseCreateReplyResponse

func ParseCreateReplyResponse(rsp *http.Response) (*CreateReplyResponse, error)

ParseCreateReplyResponse parses an HTTP response from a CreateReplyWithResponse call

func (CreateReplyResponse) Status

func (r CreateReplyResponse) Status() string

Status returns HTTPResponse.Status

func (CreateReplyResponse) StatusCode

func (r CreateReplyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateTopicMessageJSONRequestBody

type CreateTopicMessageJSONRequestBody = CreateTopicMessageRequestContent

CreateTopicMessageJSONRequestBody defines body for CreateTopicMessage for application/json ContentType.

type CreateTopicMessageRequestContent

type CreateTopicMessageRequestContent struct {
	ActingSenderId int64               `json:"acting_sender_id"`
	Message        TopicMessagePayload `json:"message"`
}

CreateTopicMessageRequestContent Wire format: {acting_sender_id, message: {content}}

type CreateTopicMessageResponse

func ParseCreateTopicMessageResponse

func ParseCreateTopicMessageResponse(rsp *http.Response) (*CreateTopicMessageResponse, error)

ParseCreateTopicMessageResponse parses an HTTP response from a CreateTopicMessageWithResponse call

func (CreateTopicMessageResponse) Status

Status returns HTTPResponse.Status

func (CreateTopicMessageResponse) StatusCode

func (r CreateTopicMessageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteCalendarTodoResponse

type DeleteCalendarTodoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *UnauthorizedErrorResponseContent
	JSON404      *NotFoundErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseDeleteCalendarTodoResponse

func ParseDeleteCalendarTodoResponse(rsp *http.Response) (*DeleteCalendarTodoResponse, error)

ParseDeleteCalendarTodoResponse parses an HTTP response from a DeleteCalendarTodoWithResponse call

func (DeleteCalendarTodoResponse) Status

Status returns HTTPResponse.Status

func (DeleteCalendarTodoResponse) StatusCode

func (r DeleteCalendarTodoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DocumentsService

type DocumentsService struct {
	// contains filtered or unexported fields
}

DocumentsService provides document-related operations.

type Domain

type Domain struct {
	Address   string `json:"address,omitempty"`
	AppUrl    string `json:"app_url,omitempty"`
	AvatarUrl string `json:"avatar_url,omitempty"`
	Id        int64  `json:"id"`
}

Domain Domain — email domain

type DraftMessage

type DraftMessage struct {
	AccountId         int64     `json:"account_id,omitempty"`
	AddressedContacts []Contact `json:"addressed_contacts,omitempty"`
	AppUrl            string    `json:"app_url,omitempty"`

	// Creator Contact — the identity of someone in HEY
	Creator Contact `json:"creator,omitempty"`
	EditUrl string  `json:"edit_url,omitempty"`
	Id      int64   `json:"id"`

	// ScheduledDeliveryAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	ScheduledDeliveryAt time.Time `json:"scheduled_delivery_at,omitempty"`
	Subject             string    `json:"subject,omitempty"`
	Summary             string    `json:"summary,omitempty"`

	// UpdatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	Url       string    `json:"url,omitempty"`
}

DraftMessage DraftMessage — a draft entry

type Entry

type Entry struct {
	AlternativeSenderName string `json:"alternative_sender_name,omitempty"`
	AppUrl                string `json:"app_url,omitempty"`

	// CreatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	CreatedAt time.Time `json:"created_at,omitempty"`

	// Creator Contact — the identity of someone in HEY
	Creator Contact `json:"creator,omitempty"`
	Id      int64   `json:"id"`
	Kind    string  `json:"kind,omitempty"`
	Summary string  `json:"summary,omitempty"`

	// UpdatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}

Entry Entry — a message entry within a topic

type EventsService

type EventsService struct {
	// contains filtered or unexported fields
}

EventsService provides event-related operations.

type Extenzion

type Extenzion struct {
	AppUrl string `json:"app_url,omitempty"`
	Id     int64  `json:"id"`
	Name   string `json:"name,omitempty"`
}

Extenzion Extenzion — external account extension

type ExternalAccount

type ExternalAccount struct {
	// Contact Contact — the identity of someone in HEY
	Contact Contact `json:"contact,omitempty"`
	Id      int64   `json:"id"`
}

ExternalAccount defines model for ExternalAccount.

type Folder

type Folder struct {
	AppUrl string `json:"app_url,omitempty"`

	// CreatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	CreatedAt time.Time `json:"created_at,omitempty"`
	Id        int64     `json:"id"`
	Name      string    `json:"name,omitempty"`

	// UpdatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}

Folder Folder — email folder

type GetAsideboxParams

type GetAsideboxParams struct {
	Page string `form:"page,omitempty" json:"page,omitempty"`
}

GetAsideboxParams defines parameters for GetAsidebox.

type GetAsideboxResponse

type GetAsideboxResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetAsideboxResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseGetAsideboxResponse

func ParseGetAsideboxResponse(rsp *http.Response) (*GetAsideboxResponse, error)

ParseGetAsideboxResponse parses an HTTP response from a GetAsideboxWithResponse call

func (GetAsideboxResponse) Status

func (r GetAsideboxResponse) Status() string

Status returns HTTPResponse.Status

func (GetAsideboxResponse) StatusCode

func (r GetAsideboxResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAsideboxResponseContent

type GetAsideboxResponseContent = BoxShowResponse

GetAsideboxResponseContent 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.

type GetBoxParams

type GetBoxParams struct {
	Page string `form:"page,omitempty" json:"page,omitempty"`
}

GetBoxParams defines parameters for GetBox.

type GetBoxResponse

func ParseGetBoxResponse

func ParseGetBoxResponse(rsp *http.Response) (*GetBoxResponse, error)

ParseGetBoxResponse parses an HTTP response from a GetBoxWithResponse call

func (GetBoxResponse) Status

func (r GetBoxResponse) Status() string

Status returns HTTPResponse.Status

func (GetBoxResponse) StatusCode

func (r GetBoxResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBoxResponseContent

type GetBoxResponseContent = BoxShowResponse

GetBoxResponseContent 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.

type GetBubbleboxParams

type GetBubbleboxParams struct {
	Page string `form:"page,omitempty" json:"page,omitempty"`
}

GetBubbleboxParams defines parameters for GetBubblebox.

type GetBubbleboxResponse

type GetBubbleboxResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetBubbleboxResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseGetBubbleboxResponse

func ParseGetBubbleboxResponse(rsp *http.Response) (*GetBubbleboxResponse, error)

ParseGetBubbleboxResponse parses an HTTP response from a GetBubbleboxWithResponse call

func (GetBubbleboxResponse) Status

func (r GetBubbleboxResponse) Status() string

Status returns HTTPResponse.Status

func (GetBubbleboxResponse) StatusCode

func (r GetBubbleboxResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBubbleboxResponseContent

type GetBubbleboxResponseContent = BoxShowResponse

GetBubbleboxResponseContent 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.

type GetCalendarRecordingsParams

type GetCalendarRecordingsParams struct {
	StartsOn string `form:"starts_on,omitempty" json:"starts_on,omitempty"`
	EndsOn   string `form:"ends_on,omitempty" json:"ends_on,omitempty"`
}

GetCalendarRecordingsParams defines parameters for GetCalendarRecordings.

type GetCalendarRecordingsResponse

func ParseGetCalendarRecordingsResponse

func ParseGetCalendarRecordingsResponse(rsp *http.Response) (*GetCalendarRecordingsResponse, error)

ParseGetCalendarRecordingsResponse parses an HTTP response from a GetCalendarRecordingsWithResponse call

func (GetCalendarRecordingsResponse) Status

Status returns HTTPResponse.Status

func (GetCalendarRecordingsResponse) StatusCode

func (r GetCalendarRecordingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCalendarRecordingsResponseContent

type GetCalendarRecordingsResponseContent = CalendarRecordingsResponse

GetCalendarRecordingsResponseContent CalendarRecordingsResponse — recordings grouped by type

type GetContactResponse

func ParseGetContactResponse

func ParseGetContactResponse(rsp *http.Response) (*GetContactResponse, error)

ParseGetContactResponse parses an HTTP response from a GetContactWithResponse call

func (GetContactResponse) Status

func (r GetContactResponse) Status() string

Status returns HTTPResponse.Status

func (GetContactResponse) StatusCode

func (r GetContactResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetContactResponseContent

type GetContactResponseContent = ContactDetail

GetContactResponseContent ContactDetail — extended contact with additional show fields

type GetEverythingTopicsParams

type GetEverythingTopicsParams struct {
	Page string `form:"page,omitempty" json:"page,omitempty"`
}

GetEverythingTopicsParams defines parameters for GetEverythingTopics.

type GetEverythingTopicsResponse

type GetEverythingTopicsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetEverythingTopicsResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseGetEverythingTopicsResponse

func ParseGetEverythingTopicsResponse(rsp *http.Response) (*GetEverythingTopicsResponse, error)

ParseGetEverythingTopicsResponse parses an HTTP response from a GetEverythingTopicsWithResponse call

func (GetEverythingTopicsResponse) Status

Status returns HTTPResponse.Status

func (GetEverythingTopicsResponse) StatusCode

func (r GetEverythingTopicsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetEverythingTopicsResponseContent

type GetEverythingTopicsResponseContent = TopicListResponse

GetEverythingTopicsResponseContent TopicListResponse — wrapped topic list (sent, spam, trash, everything)

type GetFeedboxParams

type GetFeedboxParams struct {
	Page string `form:"page,omitempty" json:"page,omitempty"`
}

GetFeedboxParams defines parameters for GetFeedbox.

type GetFeedboxResponse

type GetFeedboxResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetFeedboxResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseGetFeedboxResponse

func ParseGetFeedboxResponse(rsp *http.Response) (*GetFeedboxResponse, error)

ParseGetFeedboxResponse parses an HTTP response from a GetFeedboxWithResponse call

func (GetFeedboxResponse) Status

func (r GetFeedboxResponse) Status() string

Status returns HTTPResponse.Status

func (GetFeedboxResponse) StatusCode

func (r GetFeedboxResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFeedboxResponseContent

type GetFeedboxResponseContent = BoxShowResponse

GetFeedboxResponseContent 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.

type GetIdentityResponse

type GetIdentityResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetIdentityResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseGetIdentityResponse

func ParseGetIdentityResponse(rsp *http.Response) (*GetIdentityResponse, error)

ParseGetIdentityResponse parses an HTTP response from a GetIdentityWithResponse call

func (GetIdentityResponse) Status

func (r GetIdentityResponse) Status() string

Status returns HTTPResponse.Status

func (GetIdentityResponse) StatusCode

func (r GetIdentityResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIdentityResponseContent

type GetIdentityResponseContent = Identity

GetIdentityResponseContent defines model for GetIdentityResponseContent.

type GetImboxParams

type GetImboxParams struct {
	Page string `form:"page,omitempty" json:"page,omitempty"`
}

GetImboxParams defines parameters for GetImbox.

type GetImboxResponse

type GetImboxResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetImboxResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseGetImboxResponse

func ParseGetImboxResponse(rsp *http.Response) (*GetImboxResponse, error)

ParseGetImboxResponse parses an HTTP response from a GetImboxWithResponse call

func (GetImboxResponse) Status

func (r GetImboxResponse) Status() string

Status returns HTTPResponse.Status

func (GetImboxResponse) StatusCode

func (r GetImboxResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetImboxResponseContent

type GetImboxResponseContent = BoxShowResponse

GetImboxResponseContent 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.

type GetJournalEntryResponse

func ParseGetJournalEntryResponse

func ParseGetJournalEntryResponse(rsp *http.Response) (*GetJournalEntryResponse, error)

ParseGetJournalEntryResponse parses an HTTP response from a GetJournalEntryWithResponse call

func (GetJournalEntryResponse) Status

func (r GetJournalEntryResponse) Status() string

Status returns HTTPResponse.Status

func (GetJournalEntryResponse) StatusCode

func (r GetJournalEntryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetJournalEntryResponseContent

type GetJournalEntryResponseContent = Recording

GetJournalEntryResponseContent Recording — polymorphic by `type` (CalendarEvent, CalendarTodo, etc.)

type GetLaterboxParams

type GetLaterboxParams struct {
	Page string `form:"page,omitempty" json:"page,omitempty"`
}

GetLaterboxParams defines parameters for GetLaterbox.

type GetLaterboxResponse

type GetLaterboxResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetLaterboxResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseGetLaterboxResponse

func ParseGetLaterboxResponse(rsp *http.Response) (*GetLaterboxResponse, error)

ParseGetLaterboxResponse parses an HTTP response from a GetLaterboxWithResponse call

func (GetLaterboxResponse) Status

func (r GetLaterboxResponse) Status() string

Status returns HTTPResponse.Status

func (GetLaterboxResponse) StatusCode

func (r GetLaterboxResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLaterboxResponseContent

type GetLaterboxResponseContent = BoxShowResponse

GetLaterboxResponseContent 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.

type GetMessageResponse

func ParseGetMessageResponse

func ParseGetMessageResponse(rsp *http.Response) (*GetMessageResponse, error)

ParseGetMessageResponse parses an HTTP response from a GetMessageWithResponse call

func (GetMessageResponse) Status

func (r GetMessageResponse) Status() string

Status returns HTTPResponse.Status

func (GetMessageResponse) StatusCode

func (r GetMessageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMessageResponseContent

type GetMessageResponseContent = Message

GetMessageResponseContent Message — full message detail

type GetNavigationResponse

type GetNavigationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetNavigationResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseGetNavigationResponse

func ParseGetNavigationResponse(rsp *http.Response) (*GetNavigationResponse, error)

ParseGetNavigationResponse parses an HTTP response from a GetNavigationWithResponse call

func (GetNavigationResponse) Status

func (r GetNavigationResponse) Status() string

Status returns HTTPResponse.Status

func (GetNavigationResponse) StatusCode

func (r GetNavigationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetNavigationResponseContent

type GetNavigationResponseContent = NavigationResponse

GetNavigationResponseContent NavigationResponse

type GetOngoingTimeTrackResponse

type GetOngoingTimeTrackResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetOngoingTimeTrackResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseGetOngoingTimeTrackResponse

func ParseGetOngoingTimeTrackResponse(rsp *http.Response) (*GetOngoingTimeTrackResponse, error)

ParseGetOngoingTimeTrackResponse parses an HTTP response from a GetOngoingTimeTrackWithResponse call

func (GetOngoingTimeTrackResponse) Status

Status returns HTTPResponse.Status

func (GetOngoingTimeTrackResponse) StatusCode

func (r GetOngoingTimeTrackResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOngoingTimeTrackResponseContent

type GetOngoingTimeTrackResponseContent = Recording

GetOngoingTimeTrackResponseContent Recording — polymorphic by `type` (CalendarEvent, CalendarTodo, etc.)

type GetSentTopicsParams

type GetSentTopicsParams struct {
	Page string `form:"page,omitempty" json:"page,omitempty"`
}

GetSentTopicsParams defines parameters for GetSentTopics.

type GetSentTopicsResponse

type GetSentTopicsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetSentTopicsResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseGetSentTopicsResponse

func ParseGetSentTopicsResponse(rsp *http.Response) (*GetSentTopicsResponse, error)

ParseGetSentTopicsResponse parses an HTTP response from a GetSentTopicsWithResponse call

func (GetSentTopicsResponse) Status

func (r GetSentTopicsResponse) Status() string

Status returns HTTPResponse.Status

func (GetSentTopicsResponse) StatusCode

func (r GetSentTopicsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSentTopicsResponseContent

type GetSentTopicsResponseContent = TopicListResponse

GetSentTopicsResponseContent TopicListResponse — wrapped topic list (sent, spam, trash, everything)

type GetSpamTopicsParams

type GetSpamTopicsParams struct {
	Page string `form:"page,omitempty" json:"page,omitempty"`
}

GetSpamTopicsParams defines parameters for GetSpamTopics.

type GetSpamTopicsResponse

type GetSpamTopicsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetSpamTopicsResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseGetSpamTopicsResponse

func ParseGetSpamTopicsResponse(rsp *http.Response) (*GetSpamTopicsResponse, error)

ParseGetSpamTopicsResponse parses an HTTP response from a GetSpamTopicsWithResponse call

func (GetSpamTopicsResponse) Status

func (r GetSpamTopicsResponse) Status() string

Status returns HTTPResponse.Status

func (GetSpamTopicsResponse) StatusCode

func (r GetSpamTopicsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSpamTopicsResponseContent

type GetSpamTopicsResponseContent = TopicListResponse

GetSpamTopicsResponseContent TopicListResponse — wrapped topic list (sent, spam, trash, everything)

type GetTopicEntriesParams

type GetTopicEntriesParams struct {
	Page string `form:"page,omitempty" json:"page,omitempty"`
}

GetTopicEntriesParams defines parameters for GetTopicEntries.

type GetTopicEntriesResponse

func ParseGetTopicEntriesResponse

func ParseGetTopicEntriesResponse(rsp *http.Response) (*GetTopicEntriesResponse, error)

ParseGetTopicEntriesResponse parses an HTTP response from a GetTopicEntriesWithResponse call

func (GetTopicEntriesResponse) Status

func (r GetTopicEntriesResponse) Status() string

Status returns HTTPResponse.Status

func (GetTopicEntriesResponse) StatusCode

func (r GetTopicEntriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTopicEntriesResponseContent

type GetTopicEntriesResponseContent = []Entry

GetTopicEntriesResponseContent defines model for GetTopicEntriesResponseContent.

type GetTopicResponse

func ParseGetTopicResponse

func ParseGetTopicResponse(rsp *http.Response) (*GetTopicResponse, error)

ParseGetTopicResponse parses an HTTP response from a GetTopicWithResponse call

func (GetTopicResponse) Status

func (r GetTopicResponse) Status() string

Status returns HTTPResponse.Status

func (GetTopicResponse) StatusCode

func (r GetTopicResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTopicResponseContent

type GetTopicResponseContent = Topic

GetTopicResponseContent Topic detail

type GetTrailboxParams

type GetTrailboxParams struct {
	Page string `form:"page,omitempty" json:"page,omitempty"`
}

GetTrailboxParams defines parameters for GetTrailbox.

type GetTrailboxResponse

type GetTrailboxResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetTrailboxResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseGetTrailboxResponse

func ParseGetTrailboxResponse(rsp *http.Response) (*GetTrailboxResponse, error)

ParseGetTrailboxResponse parses an HTTP response from a GetTrailboxWithResponse call

func (GetTrailboxResponse) Status

func (r GetTrailboxResponse) Status() string

Status returns HTTPResponse.Status

func (GetTrailboxResponse) StatusCode

func (r GetTrailboxResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTrailboxResponseContent

type GetTrailboxResponseContent = BoxShowResponse

GetTrailboxResponseContent 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.

type GetTrashTopicsParams

type GetTrashTopicsParams struct {
	Page string `form:"page,omitempty" json:"page,omitempty"`
}

GetTrashTopicsParams defines parameters for GetTrashTopics.

type GetTrashTopicsResponse

type GetTrashTopicsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetTrashTopicsResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseGetTrashTopicsResponse

func ParseGetTrashTopicsResponse(rsp *http.Response) (*GetTrashTopicsResponse, error)

ParseGetTrashTopicsResponse parses an HTTP response from a GetTrashTopicsWithResponse call

func (GetTrashTopicsResponse) Status

func (r GetTrashTopicsResponse) Status() string

Status returns HTTPResponse.Status

func (GetTrashTopicsResponse) StatusCode

func (r GetTrashTopicsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTrashTopicsResponseContent

type GetTrashTopicsResponseContent = TopicListResponse

GetTrashTopicsResponseContent TopicListResponse — wrapped topic list (sent, spam, trash, everything)

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Identity

type Identity struct {
	Accounts     []Account `json:"accounts,omitempty"`
	AllUsers     []User    `json:"all_users,omitempty"`
	AutoTimeZone bool      `json:"auto_time_zone,omitempty"`
	AvatarUrl    string    `json:"avatar_url,omitempty"`
	FirstWeekDay int32     `json:"first_week_day,omitempty"`
	IconUrl      string    `json:"icon_url,omitempty"`
	Id           int64     `json:"id"`
	Name         string    `json:"name,omitempty"`

	// PrimaryContact Contact — the identity of someone in HEY
	PrimaryContact Contact  `json:"primary_contact,omitempty"`
	Senders        []Sender `json:"senders,omitempty"`
	TimeFormat     string   `json:"time_format,omitempty"`
	TimeZone       string   `json:"time_zone,omitempty"`
	TimeZoneName   string   `json:"time_zone_name,omitempty"`
	TimeZoneOffset int32    `json:"time_zone_offset,omitempty"`
}

Identity defines model for Identity.

type IgnorePostingResponse added in v0.2.0

type IgnorePostingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *UnauthorizedErrorResponseContent
	JSON404      *NotFoundErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseIgnorePostingResponse added in v0.2.0

func ParseIgnorePostingResponse(rsp *http.Response) (*IgnorePostingResponse, error)

ParseIgnorePostingResponse parses an HTTP response from a IgnorePostingWithResponse call

func (IgnorePostingResponse) Status added in v0.2.0

func (r IgnorePostingResponse) Status() string

Status returns HTTPResponse.Status

func (IgnorePostingResponse) StatusCode added in v0.2.0

func (r IgnorePostingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InMemoryCache

type InMemoryCache struct {
	// contains filtered or unexported fields
}

InMemoryCache is a simple in-memory cache implementation.

func NewInMemoryCache

func NewInMemoryCache() *InMemoryCache

NewInMemoryCache creates a new in-memory cache.

func (*InMemoryCache) Clear

func (c *InMemoryCache) Clear()

Clear removes all cached entries.

func (*InMemoryCache) Get

func (c *InMemoryCache) Get(url string) (etag string, body []byte, ok bool)

Get returns the cached ETag and body for a URL.

func (*InMemoryCache) Invalidate

func (c *InMemoryCache) Invalidate(url string)

Invalidate removes a cached entry.

func (*InMemoryCache) Set

func (c *InMemoryCache) Set(url string, etag string, body []byte)

Set stores the ETag and body for a URL.

type InternalServerErrorResponseContent

type InternalServerErrorResponseContent struct {
	Message string `json:"message"`
}

InternalServerErrorResponseContent defines model for InternalServerErrorResponseContent.

type JoinLink struct {
	Title string `json:"title,omitempty"`
	Url   string `json:"url,omitempty"`
}

JoinLink JoinLink — video/meeting join link

type JournalEntryPayload added in v0.2.0

type JournalEntryPayload struct {
	Content string `json:"content"`
}

JournalEntryPayload defines model for JournalEntryPayload.

type ListBoxesResponse

type ListBoxesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListBoxesResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseListBoxesResponse

func ParseListBoxesResponse(rsp *http.Response) (*ListBoxesResponse, error)

ParseListBoxesResponse parses an HTTP response from a ListBoxesWithResponse call

func (ListBoxesResponse) Status

func (r ListBoxesResponse) Status() string

Status returns HTTPResponse.Status

func (ListBoxesResponse) StatusCode

func (r ListBoxesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListBoxesResponseContent

type ListBoxesResponseContent = []Box

ListBoxesResponseContent defines model for ListBoxesResponseContent.

type ListCalendarsResponse

type ListCalendarsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListCalendarsResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseListCalendarsResponse

func ParseListCalendarsResponse(rsp *http.Response) (*ListCalendarsResponse, error)

ParseListCalendarsResponse parses an HTTP response from a ListCalendarsWithResponse call

func (ListCalendarsResponse) Status

func (r ListCalendarsResponse) Status() string

Status returns HTTPResponse.Status

func (ListCalendarsResponse) StatusCode

func (r ListCalendarsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListCalendarsResponseContent

type ListCalendarsResponseContent = CalendarListPayload

ListCalendarsResponseContent CalendarListPayload

type ListContactsParams

type ListContactsParams struct {
	Page string `form:"page,omitempty" json:"page,omitempty"`
	Q    string `form:"q,omitempty" json:"q,omitempty"`
}

ListContactsParams defines parameters for ListContacts.

type ListContactsResponse

type ListContactsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListContactsResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseListContactsResponse

func ParseListContactsResponse(rsp *http.Response) (*ListContactsResponse, error)

ParseListContactsResponse parses an HTTP response from a ListContactsWithResponse call

func (ListContactsResponse) Status

func (r ListContactsResponse) Status() string

Status returns HTTPResponse.Status

func (ListContactsResponse) StatusCode

func (r ListContactsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListContactsResponseContent

type ListContactsResponseContent = []Contact

ListContactsResponseContent defines model for ListContactsResponseContent.

type ListDraftsParams

type ListDraftsParams struct {
	Page string `form:"page,omitempty" json:"page,omitempty"`
}

ListDraftsParams defines parameters for ListDrafts.

type ListDraftsResponse

type ListDraftsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListDraftsResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseListDraftsResponse

func ParseListDraftsResponse(rsp *http.Response) (*ListDraftsResponse, error)

ParseListDraftsResponse parses an HTTP response from a ListDraftsWithResponse call

func (ListDraftsResponse) Status

func (r ListDraftsResponse) Status() string

Status returns HTTPResponse.Status

func (ListDraftsResponse) StatusCode

func (r ListDraftsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListDraftsResponseContent

type ListDraftsResponseContent = []DraftMessage

ListDraftsResponseContent defines model for ListDraftsResponseContent.

type MarkPostingsRequestContent added in v0.2.0

type MarkPostingsRequestContent struct {
	PostingIds []int64 `json:"posting_ids"`
}

MarkPostingsRequestContent defines model for MarkPostingsRequestContent.

type MarkPostingsSeenJSONRequestBody added in v0.2.0

type MarkPostingsSeenJSONRequestBody = MarkPostingsRequestContent

MarkPostingsSeenJSONRequestBody defines body for MarkPostingsSeen for application/json ContentType.

type MarkPostingsSeenResponse added in v0.2.0

type MarkPostingsSeenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseMarkPostingsSeenResponse added in v0.2.0

func ParseMarkPostingsSeenResponse(rsp *http.Response) (*MarkPostingsSeenResponse, error)

ParseMarkPostingsSeenResponse parses an HTTP response from a MarkPostingsSeenWithResponse call

func (MarkPostingsSeenResponse) Status added in v0.2.0

func (r MarkPostingsSeenResponse) Status() string

Status returns HTTPResponse.Status

func (MarkPostingsSeenResponse) StatusCode added in v0.2.0

func (r MarkPostingsSeenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MarkPostingsUnseenJSONRequestBody added in v0.2.0

type MarkPostingsUnseenJSONRequestBody = MarkPostingsRequestContent

MarkPostingsUnseenJSONRequestBody defines body for MarkPostingsUnseen for application/json ContentType.

type MarkPostingsUnseenResponse added in v0.2.0

type MarkPostingsUnseenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseMarkPostingsUnseenResponse added in v0.2.0

func ParseMarkPostingsUnseenResponse(rsp *http.Response) (*MarkPostingsUnseenResponse, error)

ParseMarkPostingsUnseenResponse parses an HTTP response from a MarkPostingsUnseenWithResponse call

func (MarkPostingsUnseenResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (MarkPostingsUnseenResponse) StatusCode added in v0.2.0

func (r MarkPostingsUnseenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Message

type Message struct {
	// Addressed Addressed recipients
	Addressed Addressed `json:"addressed,omitempty"`

	// AddressedSender AddressedSender — sender context
	AddressedSender AddressedSender `json:"addressed_sender,omitempty"`
	Content         string          `json:"content,omitempty"`

	// CreatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	CreatedAt time.Time `json:"created_at,omitempty"`

	// Creator Contact — the identity of someone in HEY
	Creator Contact `json:"creator,omitempty"`
	Id      int64   `json:"id"`
	IsReply bool    `json:"is_reply,omitempty"`

	// Posting MessagePostingContext — posting context for a message
	Posting MessagePostingContext `json:"posting,omitempty"`

	// ScheduledDeliveryAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	ScheduledDeliveryAt time.Time `json:"scheduled_delivery_at,omitempty"`

	// Sender Contact — the identity of someone in HEY
	Sender                Contact `json:"sender,omitempty"`
	ShowAddressedSelector bool    `json:"show_addressed_selector,omitempty"`
	Subject               string  `json:"subject,omitempty"`

	// UpdatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	Url       string    `json:"url,omitempty"`
}

Message Message — full message detail

type MessageAddressed added in v0.2.0

type MessageAddressed struct {
	Blindcopied string `json:"blindcopied,omitempty"`
	Copied      string `json:"copied,omitempty"`
	Directly    string `json:"directly,omitempty"`
}

MessageAddressed Recipients as comma-separated email addresses.

type MessageEntryPayload added in v0.2.0

type MessageEntryPayload struct {
	// Addressed Recipients as comma-separated email addresses.
	Addressed MessageAddressed `json:"addressed,omitempty"`
}

MessageEntryPayload defines model for MessageEntryPayload.

type MessagePayload added in v0.2.0

type MessagePayload struct {
	Content string `json:"content"`
	Subject string `json:"subject"`
}

MessagePayload defines model for MessagePayload.

type MessagePostingContext

type MessagePostingContext struct {
	Box string `json:"box,omitempty"`
}

MessagePostingContext MessagePostingContext — posting context for a message

type MessagesService

type MessagesService struct {
	// contains filtered or unexported fields
}

MessagesService provides message-related operations.

func (*MessagesService) Create

func (*MessagesService) CreateWithBody

func (s *MessagesService) CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*MessagesService) Get

func (s *MessagesService) Get(ctx context.Context, messageId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

type MovePostingToFeedResponse added in v0.2.0

type MovePostingToFeedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *UnauthorizedErrorResponseContent
	JSON404      *NotFoundErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseMovePostingToFeedResponse added in v0.2.0

func ParseMovePostingToFeedResponse(rsp *http.Response) (*MovePostingToFeedResponse, error)

ParseMovePostingToFeedResponse parses an HTTP response from a MovePostingToFeedWithResponse call

func (MovePostingToFeedResponse) Status added in v0.2.0

func (r MovePostingToFeedResponse) Status() string

Status returns HTTPResponse.Status

func (MovePostingToFeedResponse) StatusCode added in v0.2.0

func (r MovePostingToFeedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MovePostingToPaperTrailResponse added in v0.2.0

type MovePostingToPaperTrailResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *UnauthorizedErrorResponseContent
	JSON404      *NotFoundErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseMovePostingToPaperTrailResponse added in v0.2.0

func ParseMovePostingToPaperTrailResponse(rsp *http.Response) (*MovePostingToPaperTrailResponse, error)

ParseMovePostingToPaperTrailResponse parses an HTTP response from a MovePostingToPaperTrailWithResponse call

func (MovePostingToPaperTrailResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (MovePostingToPaperTrailResponse) StatusCode added in v0.2.0

func (r MovePostingToPaperTrailResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MovePostingToReplyLaterResponse added in v0.2.0

type MovePostingToReplyLaterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *UnauthorizedErrorResponseContent
	JSON404      *NotFoundErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseMovePostingToReplyLaterResponse added in v0.2.0

func ParseMovePostingToReplyLaterResponse(rsp *http.Response) (*MovePostingToReplyLaterResponse, error)

ParseMovePostingToReplyLaterResponse parses an HTTP response from a MovePostingToReplyLaterWithResponse call

func (MovePostingToReplyLaterResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (MovePostingToReplyLaterResponse) StatusCode added in v0.2.0

func (r MovePostingToReplyLaterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MovePostingToSetAsideResponse added in v0.2.0

type MovePostingToSetAsideResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *UnauthorizedErrorResponseContent
	JSON404      *NotFoundErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseMovePostingToSetAsideResponse added in v0.2.0

func ParseMovePostingToSetAsideResponse(rsp *http.Response) (*MovePostingToSetAsideResponse, error)

ParseMovePostingToSetAsideResponse parses an HTTP response from a MovePostingToSetAsideWithResponse call

func (MovePostingToSetAsideResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (MovePostingToSetAsideResponse) StatusCode added in v0.2.0

func (r MovePostingToSetAsideResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MovePostingToTrashResponse added in v0.2.0

type MovePostingToTrashResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *UnauthorizedErrorResponseContent
	JSON404      *NotFoundErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseMovePostingToTrashResponse added in v0.2.0

func ParseMovePostingToTrashResponse(rsp *http.Response) (*MovePostingToTrashResponse, error)

ParseMovePostingToTrashResponse parses an HTTP response from a MovePostingToTrashWithResponse call

func (MovePostingToTrashResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (MovePostingToTrashResponse) StatusCode added in v0.2.0

func (r MovePostingToTrashResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type NavigationIcon struct {
	AndroidUrl string `json:"android_url,omitempty"`
	IosUrl     string `json:"ios_url,omitempty"`
	Name       string `json:"name,omitempty"`
}

NavigationIcon NavigationIcon

type NavigationItem struct {
	AppUrl      string `json:"app_url,omitempty"`
	Highlighted bool   `json:"highlighted,omitempty"`
	Hotkey      string `json:"hotkey,omitempty"`

	// Icon NavigationIcon
	Icon      NavigationIcon   `json:"icon,omitempty"`
	MenuItems []NavigationItem `json:"menu_items,omitempty"`
	Platform  string           `json:"platform,omitempty"`
	Title     string           `json:"title,omitempty"`
}

NavigationItem NavigationItem

type NavigationResponse struct {
	Hotkeys []NavigationItem `json:"hotkeys,omitempty"`
	Items   []NavigationItem `json:"items,omitempty"`
}

NavigationResponse NavigationResponse

type NotFoundErrorResponseContent

type NotFoundErrorResponseContent struct {
	Message string `json:"message"`
}

NotFoundErrorResponseContent defines model for NotFoundErrorResponseContent.

type OperationMetadata

type OperationMetadata struct {
	// Idempotent indicates whether the operation can be safely retried.
	Idempotent bool
	// HasSensitiveParams indicates whether any parameters contain sensitive data.
	HasSensitiveParams bool
}

OperationMetadata contains metadata about an API operation derived from OpenAPI extensions.

func GetOperationMetadata

func GetOperationMetadata(operationId string) (OperationMetadata, bool)

GetOperationMetadata returns metadata for the given operation ID.

type Organizer

type Organizer struct {
	EmailAddress string `json:"email_address,omitempty"`
	Name         string `json:"name,omitempty"`
}

Organizer Organizer — calendar event organizer

type PeopleService

type PeopleService struct {
	// contains filtered or unexported fields
}

PeopleService provides people-related operations.

type Posting

type Posting struct {
	AccountId int64 `json:"account_id,omitempty"`

	// ActiveAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	ActiveAt              time.Time `json:"active_at,omitempty"`
	AddressedContacts     []Contact `json:"addressed_contacts,omitempty"`
	AlternativeSenderName string    `json:"alternative_sender_name,omitempty"`
	AppBundleUrl          string    `json:"app_bundle_url,omitempty"`
	AppUrl                string    `json:"app_url,omitempty"`
	BlockedTrackers       bool      `json:"blocked_trackers,omitempty"`
	BoxGroupId            int64     `json:"box_group_id,omitempty"`
	BoxId                 int64     `json:"box_id,omitempty"`

	// BubbleUpSchedule BubbleUpSchedule
	BubbleUpSchedule  BubbleUpSchedule `json:"bubble_up_schedule,omitempty"`
	BubbleUpWaitingOn bool             `json:"bubble_up_waiting_on,omitempty"`
	BubbledUp         bool             `json:"bubbled_up,omitempty"`
	Bundled           bool             `json:"bundled,omitempty"`
	Collections       []Collection     `json:"collections,omitempty"`
	Contacts          []Contact        `json:"contacts,omitempty"`

	// CreatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	CreatedAt time.Time `json:"created_at,omitempty"`

	// Creator Contact — the identity of someone in HEY
	Creator                 Contact     `json:"creator,omitempty"`
	EntryKind               string      `json:"entry_kind,omitempty"`
	Extenzions              []Extenzion `json:"extenzions,omitempty"`
	Folders                 []Folder    `json:"folders,omitempty"`
	Id                      int64       `json:"id"`
	IncludesAttachments     bool        `json:"includes_attachments,omitempty"`
	IncludesCalendarInvites bool        `json:"includes_calendar_invites,omitempty"`

	// Kind Discriminator: "topic", "bundle", or "entry"
	Kind  string `json:"kind"`
	Muted bool   `json:"muted,omitempty"`
	Name  string `json:"name,omitempty"`

	// Note Note — a posting note
	Note PostingNote `json:"note,omitempty"`

	// ObservedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	ObservedAt           time.Time `json:"observed_at,omitempty"`
	PreapprovedClearance bool      `json:"preapproved_clearance,omitempty"`
	Seen                 bool      `json:"seen,omitempty"`
	Summary              string    `json:"summary,omitempty"`

	// UpdatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	UpdatedAt         time.Time  `json:"updated_at,omitempty"`
	VisibleEntryCount int32      `json:"visible_entry_count,omitempty"`
	Workflows         []Workflow `json:"workflows,omitempty"`
}

Posting Posting — polymorphic by `kind` (topic, bundle, entry)

type PostingNote

type PostingNote struct {
	Content string `json:"content,omitempty"`
	Id      int64  `json:"id"`
}

PostingNote Note — a posting note

type ProjectsService

type ProjectsService struct {
	// contains filtered or unexported fields
}

ProjectsService provides project-related operations.

type Recording

type Recording struct {
	AllDay bool `json:"all_day,omitempty"`

	// AttachedEntry AttachedEntry — entry reference on a calendar event
	AttachedEntry      AttachedEntry `json:"attached_entry,omitempty"`
	AttendanceStatus   string        `json:"attendance_status,omitempty"`
	Attendances        []Attendance  `json:"attendances,omitempty"`
	AttendancesSummary string        `json:"attendances_summary,omitempty"`

	// Calendar Calendar
	Calendar Calendar `json:"calendar,omitempty"`
	Category string   `json:"category,omitempty"`
	Color    string   `json:"color,omitempty"`

	// CompletedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	CompletedAt time.Time `json:"completed_at,omitempty"`
	Content     string    `json:"content,omitempty"`

	// CreatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	CreatedAt   time.Time `json:"created_at,omitempty"`
	Days        []int32   `json:"days,omitempty"`
	Description string    `json:"description,omitempty"`
	EditUrl     string    `json:"edit_url,omitempty"`

	// EndsAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	EndsAt         time.Time `json:"ends_at,omitempty"`
	EndsAtTimeZone string    `json:"ends_at_time_zone,omitempty"`
	Highlighted    bool      `json:"highlighted,omitempty"`
	Icon           string    `json:"icon,omitempty"`
	IconUrl        string    `json:"icon_url,omitempty"`
	Id             int64     `json:"id"`
	ImageUrl       string    `json:"image_url,omitempty"`

	// JoinLink JoinLink — video/meeting join link
	JoinLink         JoinLink `json:"join_link,omitempty"`
	Label            string   `json:"label,omitempty"`
	Location         string   `json:"location,omitempty"`
	ManageAttendance bool     `json:"manage_attendance,omitempty"`
	Notes            string   `json:"notes,omitempty"`
	OccurrenceId     string   `json:"occurrence_id,omitempty"`
	OccurrencesUrl   string   `json:"occurrences_url,omitempty"`

	// Organizer Organizer — calendar event organizer
	Organizer Organizer `json:"organizer,omitempty"`

	// Parent Recording — polymorphic by `type` (CalendarEvent, CalendarTodo, etc.)
	Parent   *Recording `json:"parent,omitempty"`
	ParentId int64      `json:"parent_id,omitempty"`
	Position int32      `json:"position,omitempty"`

	// RecurrenceSchedule RecurrenceSchedule
	RecurrenceSchedule RecurrenceSchedule `json:"recurrence_schedule,omitempty"`
	Recurring          bool               `json:"recurring,omitempty"`
	Reminders          []Reminder         `json:"reminders,omitempty"`
	RemindersLabel     string             `json:"reminders_label,omitempty"`

	// StartsAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	StartsAt         time.Time `json:"starts_at,omitempty"`
	StartsAtTimeZone string    `json:"starts_at_time_zone,omitempty"`

	// StoppedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	StoppedAt time.Time `json:"stopped_at,omitempty"`
	Summary   string    `json:"summary,omitempty"`
	Title     string    `json:"title,omitempty"`

	// Type Discriminator: CalendarEvent, CalendarTodo, etc.
	Type string `json:"type"`

	// UpdatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	Url       string    `json:"url,omitempty"`
}

Recording Recording — polymorphic by `type` (CalendarEvent, CalendarTodo, etc.)

type RecordingsService

type RecordingsService struct {
	// contains filtered or unexported fields
}

RecordingsService provides recording-related operations.

type RecurrenceSchedule

type RecurrenceSchedule struct {
	Description string `json:"description,omitempty"`
	Kind        string `json:"kind,omitempty"`
	Preset      bool   `json:"preset,omitempty"`
}

RecurrenceSchedule RecurrenceSchedule

type Reminder

type Reminder struct {
	// CreatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	CreatedAt       time.Time `json:"created_at,omitempty"`
	DefaultDuration bool      `json:"default_duration,omitempty"`
	Delivered       bool      `json:"delivered,omitempty"`
	Duration        int32     `json:"duration,omitempty"`
	Id              int64     `json:"id"`
	Iso8601Duration string    `json:"iso8601_duration,omitempty"`
	Label           string    `json:"label,omitempty"`

	// RemindAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	RemindAt time.Time `json:"remind_at,omitempty"`
	Summary  string    `json:"summary,omitempty"`

	// UpdatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}

Reminder Reminder

type ReplyMessagePayload added in v0.2.0

type ReplyMessagePayload struct {
	Content string `json:"content"`
}

ReplyMessagePayload defines model for ReplyMessagePayload.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResponseCache

type ResponseCache interface {
	// Get returns the cached ETag and body for a URL, or empty values if not cached.
	Get(url string) (etag string, body []byte, ok bool)
	// Set stores the ETag and body for a URL.
	Set(url string, etag string, body []byte)
	// Invalidate removes a cached entry.
	Invalidate(url string)
	// Clear removes all cached entries.
	Clear()
}

ResponseCache is the interface for caching HTTP responses.

type RetryConfig

type RetryConfig struct {
	// MaxRetries is the maximum number of retry attempts (default: 3)
	MaxRetries int
	// BaseDelay is the initial delay between retries (default: 1s)
	BaseDelay time.Duration
	// MaxDelay is the maximum delay between retries (default: 30s)
	MaxDelay time.Duration
	// Multiplier is the exponential backoff multiplier (default: 2.0)
	Multiplier float64
}

RetryConfig configures retry behavior for idempotent operations.

func DefaultRetryConfig

func DefaultRetryConfig() RetryConfig

DefaultRetryConfig returns the default retry configuration.

type SchedulesService

type SchedulesService struct {
	// contains filtered or unexported fields
}

SchedulesService provides schedule-related operations.

type SearchParams

type SearchParams struct {
	Q    string `form:"q" json:"q"`
	Page string `form:"page,omitempty" json:"page,omitempty"`
}

SearchParams defines parameters for Search.

type SearchResponse

type SearchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SearchResponseContent
	JSON401      *UnauthorizedErrorResponseContent
	JSON500      *InternalServerErrorResponseContent
	JSON503      *ServiceUnavailableErrorResponseContent
}

func ParseSearchResponse

func ParseSearchResponse(rsp *http.Response) (*SearchResponse, error)

ParseSearchResponse parses an HTTP response from a SearchWithResponse call

func (SearchResponse) Status

func (r SearchResponse) Status() string

Status returns HTTPResponse.Status

func (SearchResponse) StatusCode

func (r SearchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SearchResponseContent

type SearchResponseContent = SearchResult

SearchResponseContent SearchResult — topics from search

type SearchResult

type SearchResult struct {
	Topics []Topic `json:"topics,omitempty"`
}

SearchResult SearchResult — topics from search

type Sender

type Sender struct {
	AccountId             int64  `json:"account_id,omitempty"`
	AvatarBackgroundColor string `json:"avatar_background_color,omitempty"`
	AvatarUrl             string `json:"avatar_url,omitempty"`
	ContactableType       string `json:"contactable_type,omitempty"`
	Default               bool   `json:"default,omitempty"`
	EmailAddress          string `json:"email_address,omitempty"`
	Id                    int64  `json:"id"`
	Initials              string `json:"initials,omitempty"`
	Name                  string `json:"name,omitempty"`
	NameTag               string `json:"name_tag,omitempty"`
}

Sender Sender — a contact with default flag

type SensitiveString

type SensitiveString string

SensitiveString is a string type that redacts its value in logs. Used for fields marked with x-hey-sensitive in the OpenAPI spec.

func (SensitiveString) LogValue

func (s SensitiveString) LogValue() slog.Value

LogValue implements slog.LogValuer to redact sensitive values in structured logs.

func (SensitiveString) String

func (s SensitiveString) String() string

String returns a redacted representation for logging.

func (SensitiveString) Value

func (s SensitiveString) Value() string

Value returns the actual string value when needed for API calls.

type ServiceUnavailableErrorResponseContent

type ServiceUnavailableErrorResponseContent struct {
	Message string `json:"message"`
}

ServiceUnavailableErrorResponseContent defines model for ServiceUnavailableErrorResponseContent.

type StartTimeTrackJSONRequestBody

type StartTimeTrackJSONRequestBody = StartTimeTrackRequestContent

StartTimeTrackJSONRequestBody defines body for StartTimeTrack for application/json ContentType.

type StartTimeTrackPayload added in v0.2.0

type StartTimeTrackPayload struct {
	Category string `json:"category,omitempty"`
	Notes    string `json:"notes,omitempty"`
	Title    string `json:"title,omitempty"`
}

StartTimeTrackPayload defines model for StartTimeTrackPayload.

type StartTimeTrackRequestContent

type StartTimeTrackRequestContent struct {
	CalendarTimeTrack StartTimeTrackPayload `json:"calendar_time_track,omitempty"`
}

StartTimeTrackRequestContent Wire format: {calendar_time_track: {title, notes, category}}

type StartTimeTrackResponse

func ParseStartTimeTrackResponse

func ParseStartTimeTrackResponse(rsp *http.Response) (*StartTimeTrackResponse, error)

ParseStartTimeTrackResponse parses an HTTP response from a StartTimeTrackWithResponse call

func (StartTimeTrackResponse) Status

func (r StartTimeTrackResponse) Status() string

Status returns HTTPResponse.Status

func (StartTimeTrackResponse) StatusCode

func (r StartTimeTrackResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StartTimeTrackResponseContent

type StartTimeTrackResponseContent = Recording

StartTimeTrackResponseContent Recording — polymorphic by `type` (CalendarEvent, CalendarTodo, etc.)

type StaticTokenProvider

type StaticTokenProvider struct {
	Token string
}

StaticTokenProvider provides a fixed token (e.g., from environment variable).

func (*StaticTokenProvider) AccessToken

func (p *StaticTokenProvider) AccessToken(ctx context.Context) (string, error)

AccessToken returns the static token.

type TemplatesService

type TemplatesService struct {
	// contains filtered or unexported fields
}

TemplatesService provides template-related operations.

type TodosService

type TodosService struct {
	// contains filtered or unexported fields
}

TodosService provides todo-related operations.

type TokenProvider

type TokenProvider interface {
	// AccessToken returns a valid access token, refreshing if needed.
	AccessToken(ctx context.Context) (string, error)
}

TokenProvider is the interface for obtaining access tokens.

type Topic

type Topic struct {
	AccountId int64 `json:"account_id,omitempty"`

	// ActiveAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	ActiveAt    time.Time    `json:"active_at,omitempty"`
	AppUrl      string       `json:"app_url,omitempty"`
	Collections []Collection `json:"collections,omitempty"`
	Contacts    []Contact    `json:"contacts,omitempty"`

	// CreatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	CreatedAt time.Time `json:"created_at,omitempty"`

	// Creator Contact — the identity of someone in HEY
	Creator        Contact     `json:"creator,omitempty"`
	Extenzions     []Extenzion `json:"extenzions,omitempty"`
	Id             int64       `json:"id"`
	IsForgedSender bool        `json:"is_forged_sender,omitempty"`

	// LatestEntry Entry — a message entry within a topic
	LatestEntry Entry  `json:"latest_entry,omitempty"`
	Name        string `json:"name,omitempty"`
	Status      string `json:"status,omitempty"`

	// UpdatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}

Topic Topic detail

type TopicListResponse

type TopicListResponse struct {
	Description string  `json:"description,omitempty"`
	Title       string  `json:"title,omitempty"`
	Topics      []Topic `json:"topics,omitempty"`
}

TopicListResponse TopicListResponse — wrapped topic list (sent, spam, trash, everything)

type TopicMessagePayload added in v0.2.0

type TopicMessagePayload struct {
	Content string `json:"content"`
}

TopicMessagePayload defines model for TopicMessagePayload.

type UnauthorizedErrorResponseContent

type UnauthorizedErrorResponseContent struct {
	Message string `json:"message"`
}

UnauthorizedErrorResponseContent defines model for UnauthorizedErrorResponseContent.

type UncompleteCalendarTodoResponse

func ParseUncompleteCalendarTodoResponse

func ParseUncompleteCalendarTodoResponse(rsp *http.Response) (*UncompleteCalendarTodoResponse, error)

ParseUncompleteCalendarTodoResponse parses an HTTP response from a UncompleteCalendarTodoWithResponse call

func (UncompleteCalendarTodoResponse) Status

Status returns HTTPResponse.Status

func (UncompleteCalendarTodoResponse) StatusCode

func (r UncompleteCalendarTodoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UncompleteCalendarTodoResponseContent

type UncompleteCalendarTodoResponseContent = Recording

UncompleteCalendarTodoResponseContent Recording — polymorphic by `type` (CalendarEvent, CalendarTodo, etc.)

type UncompleteHabitResponse

func ParseUncompleteHabitResponse

func ParseUncompleteHabitResponse(rsp *http.Response) (*UncompleteHabitResponse, error)

ParseUncompleteHabitResponse parses an HTTP response from a UncompleteHabitWithResponse call

func (UncompleteHabitResponse) Status

func (r UncompleteHabitResponse) Status() string

Status returns HTTPResponse.Status

func (UncompleteHabitResponse) StatusCode

func (r UncompleteHabitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UncompleteHabitResponseContent

type UncompleteHabitResponseContent = Recording

UncompleteHabitResponseContent Recording — polymorphic by `type` (CalendarEvent, CalendarTodo, etc.)

type UnprocessableEntityErrorResponseContent

type UnprocessableEntityErrorResponseContent struct {
	Message string `json:"message"`
}

UnprocessableEntityErrorResponseContent defines model for UnprocessableEntityErrorResponseContent.

type UpdateJournalEntryJSONRequestBody

type UpdateJournalEntryJSONRequestBody = UpdateJournalEntryRequestContent

UpdateJournalEntryJSONRequestBody defines body for UpdateJournalEntry for application/json ContentType.

type UpdateJournalEntryRequestContent

type UpdateJournalEntryRequestContent struct {
	CalendarJournalEntry JournalEntryPayload `json:"calendar_journal_entry"`
}

UpdateJournalEntryRequestContent Wire format: {calendar_journal_entry: {content}}

type UpdateJournalEntryResponse

func ParseUpdateJournalEntryResponse

func ParseUpdateJournalEntryResponse(rsp *http.Response) (*UpdateJournalEntryResponse, error)

ParseUpdateJournalEntryResponse parses an HTTP response from a UpdateJournalEntryWithResponse call

func (UpdateJournalEntryResponse) Status

Status returns HTTPResponse.Status

func (UpdateJournalEntryResponse) StatusCode

func (r UpdateJournalEntryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateTimeTrackJSONRequestBody

type UpdateTimeTrackJSONRequestBody = UpdateTimeTrackRequestContent

UpdateTimeTrackJSONRequestBody defines body for UpdateTimeTrack for application/json ContentType.

type UpdateTimeTrackPayload added in v0.2.0

type UpdateTimeTrackPayload struct {
	Category string `json:"category,omitempty"`

	// EndsAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	EndsAt time.Time `json:"ends_at,omitempty"`
	Notes  string    `json:"notes,omitempty"`

	// StartsAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	StartsAt time.Time `json:"starts_at,omitempty"`
	Title    string    `json:"title,omitempty"`
}

UpdateTimeTrackPayload defines model for UpdateTimeTrackPayload.

type UpdateTimeTrackRequestContent

type UpdateTimeTrackRequestContent struct {
	CalendarTimeTrack UpdateTimeTrackPayload `json:"calendar_time_track"`
}

UpdateTimeTrackRequestContent Wire format: {calendar_time_track: {title, notes, category, starts_at, ends_at}}

type UpdateTimeTrackResponse

func ParseUpdateTimeTrackResponse

func ParseUpdateTimeTrackResponse(rsp *http.Response) (*UpdateTimeTrackResponse, error)

ParseUpdateTimeTrackResponse parses an HTTP response from a UpdateTimeTrackWithResponse call

func (UpdateTimeTrackResponse) Status

func (r UpdateTimeTrackResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateTimeTrackResponse) StatusCode

func (r UpdateTimeTrackResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateTimeTrackResponseContent

type UpdateTimeTrackResponseContent = Recording

UpdateTimeTrackResponseContent Recording — polymorphic by `type` (CalendarEvent, CalendarTodo, etc.)

type UpdatesChannel

type UpdatesChannel struct {
	SignedStreamName string `json:"signed_stream_name,omitempty"`
}

UpdatesChannel UpdatesChannel — streaming channel for a box

type UploadsService

type UploadsService struct {
	// contains filtered or unexported fields
}

UploadsService provides upload-related operations.

type User

type User struct {
	AccountId             int64  `json:"account_id,omitempty"`
	AccountPurposeIconUrl string `json:"account_purpose_icon_url,omitempty"`
	AutoResponder         bool   `json:"auto_responder,omitempty"`

	// Contact Contact — the identity of someone in HEY
	Contact          Contact           `json:"contact,omitempty"`
	ExternalAccounts []ExternalAccount `json:"external_accounts,omitempty"`
	Id               int64             `json:"id"`
}

User User — a user within an account

type VaultsService

type VaultsService struct {
	// contains filtered or unexported fields
}

VaultsService provides vault-related operations.

type WebhooksService

type WebhooksService struct {
	// contains filtered or unexported fields
}

WebhooksService provides webhook-related operations.

type Workflow

type Workflow struct {
	AppUrl string `json:"app_url,omitempty"`

	// CreatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	CreatedAt time.Time `json:"created_at,omitempty"`
	Id        int64     `json:"id"`
	Name      string    `json:"name,omitempty"`

	// UpdatedAt ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}

Workflow Workflow — email workflow/label

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL