twentygo

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

README

twentygo

Golang Twenty CRM API Package

Contribution

PRs are welcome

Changelog

For release notes please consult the specific releases here

Usage

Installation
go get github.com/TeamDirector/twentygo
Importing
 import "github.com/TeamDirector/twentygo"
Create New User
    token := "..."
    client, err := twentygo.NewClient("http://localhost:8000")
    if err != nil {
        return err
    }

    attachments, err := client.FindManyAttachments(context.Background(), token, &twentygo.FindManyAttachmentsParams{})
	if err != nil {
		return err
	}
	fmt.Println(attachments)

Features

TwentyIface holds all methods a client should fulfil.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolP added in v0.1.0

func BoolP(value bool) *bool

BoolP returns a pointer of a boolean variable

func GetQueryParams added in v0.1.0

func GetQueryParams(s interface{}) (map[string]string, error)

GetQueryParams converts the struct to map[string]string The fields tags must have `json:"<name>,string,omitempty"` format for all types, except strings The string fields must have: `json:"<name>,omitempty"`. The `json:"<name>,string,omitempty"` tag for string field will add additional double quotes. "string" tag allows to convert the non-string fields of a structure to map[string]string. "omitempty" allows to skip the fields with default values.

func PBool added in v0.1.0

func PBool(value *bool) bool

PBool returns a boolean value from a pointer

func PString added in v0.1.0

func PString(value *string) string

PString returns a string value from a pointer

func StringP added in v0.1.0

func StringP(value string) *string

StringP returns a pointer of a string variable

func WrapError added in v0.1.0

func WrapError(err error, message string) error

Types

type APIErrType added in v0.1.0

type APIErrType string

APIErrType is a field containing more specific API error types that may be checked by the receiver.

const (
	// APIErrTypeUnknown is for API errors that are not strongly
	// typed.
	APIErrTypeUnknown APIErrType = "unknown"

	// APIErrTypeInvalidGrant corresponds with Keycloak's
	// OAuthErrorException due to "invalid_grant".
	APIErrTypeInvalidGrant = "oauth: invalid grant"
)

func ParseAPIErrType added in v0.1.0

func ParseAPIErrType(err error) APIErrType

ParseAPIErrType is a convenience method for returning strongly typed API errors.

type APIError added in v0.1.0

type APIError struct {
	Code    int        `json:"code"`
	Message string     `json:"message"`
	Type    APIErrType `json:"type"`
}

APIError holds message and statusCode for api errors

func (APIError) Error added in v0.1.0

func (apiError APIError) Error() string

Error stringifies the APIError

type Address added in v0.2.0

type Address struct {
	AddressCity     *string  `json:"addressCity,omitempty"`
	AddressCountry  *string  `json:"addressCountry,omitempty"`
	AddressLat      *float32 `json:"addressLat,omitempty"`
	AddressLng      *float32 `json:"addressLng,omitempty"`
	AddressPostcode *string  `json:"addressPostcode,omitempty"`
	AddressState    *string  `json:"addressState,omitempty"`
	AddressStreet1  *string  `json:"addressStreet1,omitempty"`
	AddressStreet2  *string  `json:"addressStreet2,omitempty"`
}

type Amount added in v0.2.0

type Amount struct {
	AmountMicros *float32 `json:"amountMicros,omitempty"`
	CurrencyCode *string  `json:"currencyCode,omitempty"`
}

type AnnualRecurringRevenue added in v0.2.0

type AnnualRecurringRevenue struct {
	AmountMicros *float32 `json:"amountMicros,omitempty"`
	CurrencyCode *string  `json:"currencyCode,omitempty"`
}

type Attachment

type Attachment struct {
	// Author Attachment author (deprecated - use createdBy)
	Author   *WorkspaceMember    `json:"author,omitempty"`
	AuthorId *openapi_types.UUID `json:"authorId,omitempty"`

	// Company Attachment company
	Company   *Company            `json:"company,omitempty"`
	CompanyId *openapi_types.UUID `json:"companyId,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// CreatedBy The creator of the record
	CreatedBy *CreatedBy `json:"createdBy,omitempty"`

	// Dashboard Attachment dashboard
	Dashboard   *Dashboard          `json:"dashboard,omitempty"`
	DashboardId *openapi_types.UUID `json:"dashboardId,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// FileCategory Attachment file category
	FileCategory *AttachmentFileCategory `json:"fileCategory,omitempty"`

	// FullPath Attachment full path
	FullPath *string `json:"fullPath,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Name Attachment name
	Name *string `json:"name,omitempty"`

	// Note Attachment note
	Note   *Note               `json:"note,omitempty"`
	NoteId *openapi_types.UUID `json:"noteId,omitempty"`

	// Opportunity Attachment opportunity
	Opportunity   *Opportunity        `json:"opportunity,omitempty"`
	OpportunityId *openapi_types.UUID `json:"opportunityId,omitempty"`

	// Person Attachment person
	Person   *Person             `json:"person,omitempty"`
	PersonId *openapi_types.UUID `json:"personId,omitempty"`

	// Task Attachment task
	Task   *Task               `json:"task,omitempty"`
	TaskId *openapi_types.UUID `json:"taskId,omitempty"`

	// Type Attachment type (deprecated - use fileCategory)
	Type *string `json:"type,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// Workflow Attachment workflow
	Workflow   *Workflow           `json:"workflow,omitempty"`
	WorkflowId *openapi_types.UUID `json:"workflowId,omitempty"`
}

Attachment An attachment

type AttachmentFileCategory

type AttachmentFileCategory string

AttachmentFileCategory Attachment file category

const (
	AttachmentFileCategoryARCHIVE      AttachmentFileCategory = "ARCHIVE"
	AttachmentFileCategoryAUDIO        AttachmentFileCategory = "AUDIO"
	AttachmentFileCategoryIMAGE        AttachmentFileCategory = "IMAGE"
	AttachmentFileCategoryOTHER        AttachmentFileCategory = "OTHER"
	AttachmentFileCategoryPRESENTATION AttachmentFileCategory = "PRESENTATION"
	AttachmentFileCategorySPREADSHEET  AttachmentFileCategory = "SPREADSHEET"
	AttachmentFileCategoryTEXTDOCUMENT AttachmentFileCategory = "TEXT_DOCUMENT"
	AttachmentFileCategoryVIDEO        AttachmentFileCategory = "VIDEO"
)

Defines values for AttachmentFileCategory.

type Blocklist

type Blocklist struct {
	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Handle Handle
	Handle *string `json:"handle,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// WorkspaceMember WorkspaceMember
	WorkspaceMember   *WorkspaceMember    `json:"workspaceMember,omitempty"`
	WorkspaceMemberId *openapi_types.UUID `json:"workspaceMemberId,omitempty"`
}

Blocklist Blocklist

type BodyV2 added in v0.2.0

type BodyV2 struct {
	Blocknote *string `json:"blocknote,omitempty"`
	Markdown  *string `json:"markdown,omitempty"`
}

type CalendarChannel

type CalendarChannel struct {
	// CalendarChannelEventAssociations Calendar Channel Event Associations
	CalendarChannelEventAssociations *[]CalendarChannelEventAssociation `json:"calendarChannelEventAssociations,omitempty"`

	// ConnectedAccount Connected Account
	ConnectedAccount   *ConnectedAccount   `json:"connectedAccount,omitempty"`
	ConnectedAccountId *openapi_types.UUID `json:"connectedAccountId,omitempty"`

	// ContactAutoCreationPolicy Automatically create records for people you participated with in an event.
	ContactAutoCreationPolicy *CalendarChannelContactAutoCreationPolicy `json:"contactAutoCreationPolicy,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Handle Handle
	Handle *string `json:"handle,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// IsContactAutoCreationEnabled Is Contact Auto Creation Enabled
	IsContactAutoCreationEnabled *bool `json:"isContactAutoCreationEnabled,omitempty"`

	// IsSyncEnabled Is Sync Enabled
	IsSyncEnabled *bool `json:"isSyncEnabled,omitempty"`

	// SyncCursor Sync Cursor. Used for syncing events from the calendar provider
	SyncCursor *string `json:"syncCursor,omitempty"`

	// SyncStage Sync stage
	SyncStage *CalendarChannelSyncStage `json:"syncStage,omitempty"`

	// SyncStageStartedAt Sync stage started at
	SyncStageStartedAt *time.Time `json:"syncStageStartedAt,omitempty"`

	// SyncStatus Sync status
	SyncStatus *CalendarChannelSyncStatus `json:"syncStatus,omitempty"`

	// SyncedAt Last sync date
	SyncedAt *time.Time `json:"syncedAt,omitempty"`

	// ThrottleFailureCount Throttle Failure Count
	ThrottleFailureCount *int `json:"throttleFailureCount,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// Visibility Visibility
	Visibility *CalendarChannelVisibility `json:"visibility,omitempty"`
}

CalendarChannel Calendar Channels

type CalendarChannelContactAutoCreationPolicy

type CalendarChannelContactAutoCreationPolicy string

CalendarChannelContactAutoCreationPolicy Automatically create records for people you participated with in an event.

const (
	CalendarChannelContactAutoCreationPolicyASORGANIZER               CalendarChannelContactAutoCreationPolicy = "AS_ORGANIZER"
	CalendarChannelContactAutoCreationPolicyASPARTICIPANT             CalendarChannelContactAutoCreationPolicy = "AS_PARTICIPANT"
	CalendarChannelContactAutoCreationPolicyASPARTICIPANTANDORGANIZER CalendarChannelContactAutoCreationPolicy = "AS_PARTICIPANT_AND_ORGANIZER"
	CalendarChannelContactAutoCreationPolicyNONE                      CalendarChannelContactAutoCreationPolicy = "NONE"
)

Defines values for CalendarChannelContactAutoCreationPolicy.

type CalendarChannelEventAssociation

type CalendarChannelEventAssociation struct {
	// CalendarChannel Channel ID
	CalendarChannel   *CalendarChannel    `json:"calendarChannel,omitempty"`
	CalendarChannelId *openapi_types.UUID `json:"calendarChannelId,omitempty"`

	// CalendarEvent Event ID
	CalendarEvent   *CalendarEvent      `json:"calendarEvent,omitempty"`
	CalendarEventId *openapi_types.UUID `json:"calendarEventId,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// EventExternalId Event external ID
	EventExternalId *string `json:"eventExternalId,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// RecurringEventExternalId Recurring Event ID
	RecurringEventExternalId *string `json:"recurringEventExternalId,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

CalendarChannelEventAssociation Calendar Channel Event Associations

type CalendarChannelSyncStage

type CalendarChannelSyncStage string

CalendarChannelSyncStage Sync stage

const (
	CalendarChannelSyncStageCALENDAREVENTLISTFETCHONGOING   CalendarChannelSyncStage = "CALENDAR_EVENT_LIST_FETCH_ONGOING"
	CalendarChannelSyncStageCALENDAREVENTLISTFETCHPENDING   CalendarChannelSyncStage = "CALENDAR_EVENT_LIST_FETCH_PENDING"
	CalendarChannelSyncStageCALENDAREVENTLISTFETCHSCHEDULED CalendarChannelSyncStage = "CALENDAR_EVENT_LIST_FETCH_SCHEDULED"
	CalendarChannelSyncStageCALENDAREVENTSIMPORTONGOING     CalendarChannelSyncStage = "CALENDAR_EVENTS_IMPORT_ONGOING"
	CalendarChannelSyncStageCALENDAREVENTSIMPORTPENDING     CalendarChannelSyncStage = "CALENDAR_EVENTS_IMPORT_PENDING"
	CalendarChannelSyncStageCALENDAREVENTSIMPORTSCHEDULED   CalendarChannelSyncStage = "CALENDAR_EVENTS_IMPORT_SCHEDULED"
	CalendarChannelSyncStageFAILED                          CalendarChannelSyncStage = "FAILED"
	CalendarChannelSyncStagePENDINGCONFIGURATION            CalendarChannelSyncStage = "PENDING_CONFIGURATION"
)

Defines values for CalendarChannelSyncStage.

type CalendarChannelSyncStatus

type CalendarChannelSyncStatus string

CalendarChannelSyncStatus Sync status

const (
	CalendarChannelSyncStatusACTIVE                        CalendarChannelSyncStatus = "ACTIVE"
	CalendarChannelSyncStatusFAILEDINSUFFICIENTPERMISSIONS CalendarChannelSyncStatus = "FAILED_INSUFFICIENT_PERMISSIONS"
	CalendarChannelSyncStatusFAILEDUNKNOWN                 CalendarChannelSyncStatus = "FAILED_UNKNOWN"
	CalendarChannelSyncStatusNOTSYNCED                     CalendarChannelSyncStatus = "NOT_SYNCED"
	CalendarChannelSyncStatusONGOING                       CalendarChannelSyncStatus = "ONGOING"
)

Defines values for CalendarChannelSyncStatus.

type CalendarChannelVisibility

type CalendarChannelVisibility string

CalendarChannelVisibility Visibility

const (
	CalendarChannelVisibilityMETADATA        CalendarChannelVisibility = "METADATA"
	CalendarChannelVisibilitySHAREEVERYTHING CalendarChannelVisibility = "SHARE_EVERYTHING"
)

Defines values for CalendarChannelVisibility.

type CalendarEvent

type CalendarEvent struct {
	// CalendarChannelEventAssociations Calendar Channel Event Associations
	CalendarChannelEventAssociations *[]CalendarChannelEventAssociation `json:"calendarChannelEventAssociations,omitempty"`

	// CalendarEventParticipants Event Participants
	CalendarEventParticipants *[]CalendarEventParticipant `json:"calendarEventParticipants,omitempty"`

	// ConferenceLink Meet Link
	ConferenceLink *Link `json:"conferenceLink,omitempty"`

	// ConferenceSolution Conference Solution
	ConferenceSolution *string `json:"conferenceSolution,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Description Description
	Description *string `json:"description,omitempty"`

	// EndsAt End Date
	EndsAt *time.Time `json:"endsAt,omitempty"`

	// ExternalCreatedAt Creation DateTime
	ExternalCreatedAt *time.Time `json:"externalCreatedAt,omitempty"`

	// ExternalUpdatedAt Update DateTime
	ExternalUpdatedAt *time.Time `json:"externalUpdatedAt,omitempty"`

	// ICalUid iCal UID
	ICalUid *string `json:"iCalUid,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// IsCanceled Is canceled
	IsCanceled *bool `json:"isCanceled,omitempty"`

	// IsFullDay Is Full Day
	IsFullDay *bool `json:"isFullDay,omitempty"`

	// Location Location
	Location *string `json:"location,omitempty"`

	// StartsAt Start Date
	StartsAt *time.Time `json:"startsAt,omitempty"`

	// Title Title
	Title *string `json:"title,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

CalendarEventForResponse Calendar events

type CalendarEventParticipant

type CalendarEventParticipant struct {
	// CalendarEvent Event ID
	CalendarEvent   *CalendarEvent      `json:"calendarEvent,omitempty"`
	CalendarEventId *openapi_types.UUID `json:"calendarEventId,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// DisplayName Display Name
	DisplayName *string `json:"displayName,omitempty"`

	// Handle Handle
	Handle *string `json:"handle,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// IsOrganizer Is Organizer
	IsOrganizer *bool `json:"isOrganizer,omitempty"`

	// Person Person
	Person   *Person             `json:"person,omitempty"`
	PersonId *openapi_types.UUID `json:"personId,omitempty"`

	// ResponseStatus Response Status
	ResponseStatus *CalendarEventParticipantResponseStatus `json:"responseStatus,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// WorkspaceMember Workspace Member
	WorkspaceMember   *WorkspaceMember    `json:"workspaceMember,omitempty"`
	WorkspaceMemberId *openapi_types.UUID `json:"workspaceMemberId,omitempty"`
}

CalendarEventParticipantForResponse Calendar event participants

type CalendarEventParticipantResponseStatus

type CalendarEventParticipantResponseStatus string

CalendarEventParticipantResponseStatus Response Status

const (
	CalendarEventParticipantResponseStatusACCEPTED    CalendarEventParticipantResponseStatus = "ACCEPTED"
	CalendarEventParticipantResponseStatusDECLINED    CalendarEventParticipantResponseStatus = "DECLINED"
	CalendarEventParticipantResponseStatusNEEDSACTION CalendarEventParticipantResponseStatus = "NEEDS_ACTION"
	CalendarEventParticipantResponseStatusTENTATIVE   CalendarEventParticipantResponseStatus = "TENTATIVE"
)

Defines values for CalendarEventParticipantResponseStatus.

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
	RestyClient *resty.Client
}

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) CreateManyAttachments

func (c *Client) CreateManyAttachments(ctx context.Context, token string, params *CreateManyParams, attachments []NewAttachment) ([]*Attachment, error)

func (*Client) CreateManyCompanies

func (c *Client) CreateManyCompanies(ctx context.Context, token string, params *CreateManyParams, body []NewCompany) ([]*Company, error)

func (*Client) CreateManyOpportunity added in v0.1.0

func (c *Client) CreateManyOpportunity(ctx context.Context, token string, params *CreateManyParams, body []NewOpportunity) ([]*Opportunity, error)

func (*Client) CreateManyPeople

func (c *Client) CreateManyPeople(ctx context.Context, token string, params *CreateManyParams, body []NewPerson) ([]*Person, error)

func (*Client) CreateManyTasks

func (c *Client) CreateManyTasks(ctx context.Context, token string, params *CreateManyParams, body []NewTask) ([]*Task, error)

func (*Client) CreateOneAttachment

func (c *Client) CreateOneAttachment(ctx context.Context, token string, params *CreateOneParams, body NewAttachment) (*Attachment, error)

func (*Client) CreateOneCompany

func (c *Client) CreateOneCompany(ctx context.Context, token string, params *CreateOneParams, body NewCompany) (*Company, error)

func (*Client) CreateOneOpportunity

func (c *Client) CreateOneOpportunity(ctx context.Context, token string, params *CreateOneParams, body NewOpportunity) (*Opportunity, error)

func (*Client) CreateOnePerson

func (c *Client) CreateOnePerson(ctx context.Context, token string, params *CreateOneParams, body NewPerson) (*Person, error)

func (*Client) CreateOneTask

func (c *Client) CreateOneTask(ctx context.Context, token string, params *CreateOneParams, body NewTask) (*Task, error)

func (*Client) DeleteManyAttachments

func (c *Client) DeleteManyAttachments(ctx context.Context, token string, params *DeleteManyParams) error

func (*Client) DeleteManyCompanies

func (c *Client) DeleteManyCompanies(ctx context.Context, token string, params *DeleteManyParams) error

func (*Client) DeleteManyOpportunities

func (c *Client) DeleteManyOpportunities(ctx context.Context, token string, params *DeleteManyParams) error

func (*Client) DeleteManyPeople

func (c *Client) DeleteManyPeople(ctx context.Context, token string, params *DeleteManyParams) error

func (*Client) DeleteManyTasks

func (c *Client) DeleteManyTasks(ctx context.Context, token string, params *DeleteManyParams) error

func (*Client) DeleteOneAttachment

func (c *Client) DeleteOneAttachment(ctx context.Context, token string, id string, params *DeleteOneParams) error

func (*Client) DeleteOneCompany

func (c *Client) DeleteOneCompany(ctx context.Context, token string, id string, params *DeleteOneParams) error

func (*Client) DeleteOneOpportunity

func (c *Client) DeleteOneOpportunity(ctx context.Context, token string, id string, params *DeleteOneParams) error

func (*Client) DeleteOnePerson

func (c *Client) DeleteOnePerson(ctx context.Context, token string, id string, params *DeleteOneParams) error

func (*Client) DeleteOneTask

func (c *Client) DeleteOneTask(ctx context.Context, token string, id string, params *DeleteOneParams) error

func (*Client) FindManyAttachments

func (c *Client) FindManyAttachments(ctx context.Context, token string, params *FindManyParams) ([]*Attachment, error)

func (*Client) FindManyCompanies

func (c *Client) FindManyCompanies(ctx context.Context, token string, params *FindManyParams) ([]*Company, error)

func (*Client) FindManyOpportunities

func (c *Client) FindManyOpportunities(ctx context.Context, token string, params *FindManyParams) ([]*Opportunity, error)

func (*Client) FindManyPeople

func (c *Client) FindManyPeople(ctx context.Context, token string, params *FindManyParams) ([]*Person, error)

func (*Client) FindManyTasks

func (c *Client) FindManyTasks(ctx context.Context, token string, params *FindManyParams) ([]*Task, error)

func (*Client) FindOneAttachment

func (c *Client) FindOneAttachment(ctx context.Context, token string, id string, params *FindOneParams) (*Attachment, error)

func (*Client) FindOneCompany

func (c *Client) FindOneCompany(ctx context.Context, token string, id string, params *FindOneParams) (*Company, error)

func (*Client) FindOneOpportunity

func (c *Client) FindOneOpportunity(ctx context.Context, token string, id string, params *FindOneParams) (*Opportunity, error)

func (*Client) FindOnePerson

func (c *Client) FindOnePerson(ctx context.Context, token string, id string, params *FindOneParams) (*Person, error)

func (*Client) FindOneTask

func (c *Client) FindOneTask(ctx context.Context, token string, id string, params *FindOneParams) (*Task, error)

func (*Client) GetRequest added in v0.1.0

func (c *Client) GetRequest(ctx context.Context) *resty.Request

GetRequest returns a request for calling endpoints.

func (*Client) GetRequestWithBearerAuth added in v0.1.0

func (c *Client) GetRequestWithBearerAuth(ctx context.Context, token string) *resty.Request

func (*Client) GetRestURL added in v0.1.0

func (c *Client) GetRestURL(path ...string) string

func (*Client) UpdateManyAttachments

func (c *Client) UpdateManyAttachments(ctx context.Context, token string, params *UpdateManyParams, body NewAttachment) ([]*Attachment, error)

func (*Client) UpdateManyCompanies

func (c *Client) UpdateManyCompanies(ctx context.Context, token string, params *UpdateManyParams, body NewCompany) ([]*Company, error)

func (*Client) UpdateManyOpportunities

func (c *Client) UpdateManyOpportunities(ctx context.Context, token string, params *UpdateManyParams, body NewOpportunity) ([]*Opportunity, error)

func (*Client) UpdateManyPeople

func (c *Client) UpdateManyPeople(ctx context.Context, token string, params *UpdateManyParams, body NewPerson) ([]*Person, error)

func (*Client) UpdateManyTasks

func (c *Client) UpdateManyTasks(ctx context.Context, token string, params *UpdateManyParams, body NewTask) ([]*Task, error)

func (*Client) UpdateOneAttachment

func (c *Client) UpdateOneAttachment(ctx context.Context, token string, id string, params *UpdateOneParams, body NewAttachment) (*Attachment, error)

func (*Client) UpdateOneCompany

func (c *Client) UpdateOneCompany(ctx context.Context, token string, id string, params *UpdateOneParams, body NewCompany) (*Company, error)

func (*Client) UpdateOneOpportunity

func (c *Client) UpdateOneOpportunity(ctx context.Context, token string, id string, params *UpdateOneParams, body NewOpportunity) (*Opportunity, error)

func (*Client) UpdateOnePerson

func (c *Client) UpdateOnePerson(ctx context.Context, token string, id string, params *UpdateOneParams, body NewPerson) (*Person, error)

func (*Client) UpdateOneTask

func (c *Client) UpdateOneTask(ctx context.Context, token string, id string, params *UpdateOneParams, body NewTask) (*Task, error)

type ClientInterface

type ClientInterface interface {
	// DeleteManyAttachments request
	DeleteManyAttachments(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyAttachments request
	FindManyAttachments(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyAttachments(ctx context.Context, params *UpdateManyParams, body NewAttachment) (*http.Response, error)

	CreateOneAttachment(ctx context.Context, params *CreateOneParams, body Attachment) (*http.Response, error)

	FindAttachmentDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyAttachments(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneAttachment request
	DeleteOneAttachment(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneAttachment request
	FindOneAttachment(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneAttachment(ctx context.Context, id string, params *UpdateOneParams, body NewAttachment) (*http.Response, error)

	CreateManyAttachments(ctx context.Context, params *CreateManyParams, body []NewAttachment) (*http.Response, error)

	CreateManyBlocklists(ctx context.Context, params *CreateManyParams, body []NewBlocklist) (*http.Response, error)

	CreateManyCalendarChannelEventAssociations(ctx context.Context, params *CreateManyParams, body []NewCalendarChannelEventAssociation) (*http.Response, error)

	CreateManyCalendarChannels(ctx context.Context, params *CreateManyParams, body []NewCalendarChannel) (*http.Response, error)

	CreateManyCalendarEventParticipants(ctx context.Context, params *CreateManyParams, body []NewCalendarEventParticipant) (*http.Response, error)

	CreateManyCalendarEvents(ctx context.Context, params *CreateManyParams, body []NewCalendarEvent) (*http.Response, error)

	CreateManyCompanies(ctx context.Context, params *CreateManyParams, body []NewCompany) (*http.Response, error)

	CreateManyConnectedAccounts(ctx context.Context, params *CreateManyParams, body []NewConnectedAccount) (*http.Response, error)

	CreateManyDashboards(ctx context.Context, params *CreateManyParams, body []NewDashboard) (*http.Response, error)

	CreateManyFavoriteFolders(ctx context.Context, params *CreateManyParams, body []NewFavoriteFolder) (*http.Response, error)

	CreateManyFavorites(ctx context.Context, params *CreateManyParams, body []NewFavorite) (*http.Response, error)

	CreateManyMessageChannelMessageAssociations(ctx context.Context, params *CreateManyParams, body []NewMessageChannelMessageAssociation) (*http.Response, error)

	CreateManyMessageChannels(ctx context.Context, params *CreateManyParams, body []NewMessageChannel) (*http.Response, error)

	CreateManyMessageFolders(ctx context.Context, params *CreateManyParams, body []NewMessageFolder) (*http.Response, error)

	CreateManyMessageParticipants(ctx context.Context, params *CreateManyParams, body []NewMessageParticipant) (*http.Response, error)

	CreateManyMessageThreads(ctx context.Context, params *CreateManyParams, body []NewMessageThread) (*http.Response, error)

	CreateManyMessages(ctx context.Context, params *CreateManyParams, body []NewMessage) (*http.Response, error)

	CreateManyNoteTargets(ctx context.Context, params *CreateManyParams, body []NewNoteTarget) (*http.Response, error)

	CreateManyNotes(ctx context.Context, params *CreateManyParams, body []NewNote) (*http.Response, error)

	CreateManyOpportunities(ctx context.Context, params *CreateManyParams, body []NewOpportunity) (*http.Response, error)

	CreateManyPeople(ctx context.Context, params *CreateManyParams, body []NewPerson) (*http.Response, error)

	CreateManyTaskTargets(ctx context.Context, params *CreateManyParams, body []NewTaskTarget) (*http.Response, error)

	CreateManyTasks(ctx context.Context, params *CreateManyParams, body []NewTask) (*http.Response, error)

	CreateManyTimelineActivities(ctx context.Context, params *CreateManyParams, body []NewTimelineActivity) (*http.Response, error)

	CreateManyWorkflowAutomatedTriggers(ctx context.Context, params *CreateManyParams, body []NewWorkflowAutomatedTrigger) (*http.Response, error)

	CreateManyWorkflowRuns(ctx context.Context, params *CreateManyParams, body []NewWorkflowRun) (*http.Response, error)

	CreateManyWorkflowVersions(ctx context.Context, params *CreateManyParams, body []NewWorkflowVersion) (*http.Response, error)

	CreateManyWorkflows(ctx context.Context, params *CreateManyParams, body []NewWorkflow) (*http.Response, error)

	CreateManyWorkspaceMembers(ctx context.Context, params *CreateManyParams, body []NewWorkspaceMember) (*http.Response, error)

	// DeleteManyBlocklists request
	DeleteManyBlocklists(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyBlocklists request
	FindManyBlocklists(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyBlocklists(ctx context.Context, params *UpdateManyParams, body NewBlocklist) (*http.Response, error)

	CreateOneBlocklist(ctx context.Context, params *CreateOneParams, body NewBlocklist) (*http.Response, error)

	FindBlocklistDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyBlocklists(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneBlocklist request
	DeleteOneBlocklist(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneBlocklist request
	FindOneBlocklist(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneBlocklist(ctx context.Context, id string, params *UpdateOneParams, body NewBlocklist) (*http.Response, error)

	// DeleteManyCalendarChannelEventAssociations request
	DeleteManyCalendarChannelEventAssociations(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyCalendarChannelEventAssociations request
	FindManyCalendarChannelEventAssociations(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyCalendarChannelEventAssociations(ctx context.Context, params *UpdateManyParams, body NewCalendarChannelEventAssociation) (*http.Response, error)

	CreateOneCalendarChannelEventAssociation(ctx context.Context, params *CreateOneParams, body NewCalendarChannelEventAssociation) (*http.Response, error)

	FindCalendarChannelEventAssociationDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyCalendarChannelEventAssociations(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneCalendarChannelEventAssociation request
	DeleteOneCalendarChannelEventAssociation(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneCalendarChannelEventAssociation request
	FindOneCalendarChannelEventAssociation(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneCalendarChannelEventAssociation(ctx context.Context, id string, params *UpdateOneParams, body NewCalendarChannelEventAssociation) (*http.Response, error)

	// DeleteManyCalendarChannels request
	DeleteManyCalendarChannels(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyCalendarChannels request
	FindManyCalendarChannels(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyCalendarChannels(ctx context.Context, params *UpdateManyParams, body NewCalendarChannel) (*http.Response, error)

	CreateOneCalendarChannel(ctx context.Context, params *CreateOneParams, body NewCalendarChannel) (*http.Response, error)

	FindCalendarChannelDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyCalendarChannels(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneCalendarChannel request
	DeleteOneCalendarChannel(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneCalendarChannel request
	FindOneCalendarChannel(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneCalendarChannel(ctx context.Context, id string, params *UpdateOneParams, body NewCalendarChannel) (*http.Response, error)

	// DeleteManyCalendarEventParticipants request
	DeleteManyCalendarEventParticipants(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyCalendarEventParticipants request
	FindManyCalendarEventParticipants(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyCalendarEventParticipants(ctx context.Context, params *UpdateManyParams, body NewCalendarEventParticipant) (*http.Response, error)

	CreateOneCalendarEventParticipant(ctx context.Context, params *CreateOneParams, body NewCalendarEventParticipant) (*http.Response, error)

	FindCalendarEventParticipantDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyCalendarEventParticipants(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneCalendarEventParticipant request
	DeleteOneCalendarEventParticipant(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneCalendarEventParticipant request
	FindOneCalendarEventParticipant(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneCalendarEventParticipant(ctx context.Context, id string, params *UpdateOneParams, body NewCalendarEventParticipant) (*http.Response, error)

	// DeleteManyCalendarEvents request
	DeleteManyCalendarEvents(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyCalendarEvents request
	FindManyCalendarEvents(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyCalendarEvents(ctx context.Context, params *UpdateManyParams, body NewCalendarEvent) (*http.Response, error)

	CreateOneCalendarEvent(ctx context.Context, params *CreateOneParams, body NewCalendarEvent) (*http.Response, error)

	FindCalendarEventDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyCalendarEvents(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneCalendarEvent request
	DeleteOneCalendarEvent(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneCalendarEvent request
	FindOneCalendarEvent(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneCalendarEvent(ctx context.Context, id string, params *UpdateOneParams, body NewCalendarEvent) (*http.Response, error)

	// DeleteManyCompanies request
	DeleteManyCompanies(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyCompanies request
	FindManyCompanies(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyCompanies(ctx context.Context, params *UpdateManyParams, body NewCompany) (*http.Response, error)

	CreateOneCompany(ctx context.Context, params *CreateOneParams, body NewCompany) (*http.Response, error)

	FindCompanyDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyCompanies(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneCompany request
	DeleteOneCompany(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneCompany request
	FindOneCompany(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneCompany(ctx context.Context, id string, params *UpdateOneParams, body NewCompany) (*http.Response, error)

	// DeleteManyConnectedAccounts request
	DeleteManyConnectedAccounts(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyConnectedAccounts request
	FindManyConnectedAccounts(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyConnectedAccounts(ctx context.Context, params *UpdateManyParams, body NewConnectedAccount) (*http.Response, error)

	CreateOneConnectedAccount(ctx context.Context, params *CreateOneParams, body NewConnectedAccount) (*http.Response, error)

	FindConnectedAccountDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyConnectedAccounts(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneConnectedAccount request
	DeleteOneConnectedAccount(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneConnectedAccount request
	FindOneConnectedAccount(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneConnectedAccount(ctx context.Context, id string, params *UpdateOneParams, body NewConnectedAccount) (*http.Response, error)

	// DeleteManyDashboards request
	DeleteManyDashboards(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyDashboards request
	FindManyDashboards(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyDashboards(ctx context.Context, params *UpdateManyParams, body NewDashboard) (*http.Response, error)

	CreateOneDashboard(ctx context.Context, params *CreateOneParams, body NewDashboard) (*http.Response, error)

	FindDashboardDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyDashboards(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneDashboard request
	DeleteOneDashboard(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneDashboard request
	FindOneDashboard(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneDashboard(ctx context.Context, id string, params *UpdateOneParams, body NewDashboard) (*http.Response, error)

	// DuplicateDashboard request
	DuplicateDashboard(ctx context.Context, id string) (*http.Response, error)

	// DeleteManyFavoriteFolders request
	DeleteManyFavoriteFolders(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyFavoriteFolders request
	FindManyFavoriteFolders(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyFavoriteFolders(ctx context.Context, params *UpdateManyParams, body NewFavoriteFolder) (*http.Response, error)

	CreateOneFavoriteFolder(ctx context.Context, params *CreateOneParams, body NewFavoriteFolder) (*http.Response, error)

	FindFavoriteFolderDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyFavoriteFolders(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneFavoriteFolder request
	DeleteOneFavoriteFolder(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneFavoriteFolder request
	FindOneFavoriteFolder(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneFavoriteFolder(ctx context.Context, id string, params *UpdateOneParams, body NewFavoriteFolder) (*http.Response, error)

	// DeleteManyFavorites request
	DeleteManyFavorites(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyFavorites request
	FindManyFavorites(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyFavorites(ctx context.Context, params *UpdateManyParams, body NewFavorite) (*http.Response, error)

	CreateOneFavorite(ctx context.Context, params *CreateOneParams, body NewFavorite) (*http.Response, error)

	FindFavoriteDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyFavorites(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneFavorite request
	DeleteOneFavorite(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneFavorite request
	FindOneFavorite(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneFavorite(ctx context.Context, id string, params *UpdateOneParams, body NewFavorite) (*http.Response, error)

	// DeleteManyMessageChannelMessageAssociations request
	DeleteManyMessageChannelMessageAssociations(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyMessageChannelMessageAssociations request
	FindManyMessageChannelMessageAssociations(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyMessageChannelMessageAssociations(ctx context.Context, params *UpdateManyParams, body NewMessageChannelMessageAssociation) (*http.Response, error)

	CreateOneMessageChannelMessageAssociation(ctx context.Context, params *CreateOneParams, body NewMessageChannelMessageAssociation) (*http.Response, error)

	FindMessageChannelMessageAssociationDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyMessageChannelMessageAssociations(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneMessageChannelMessageAssociation request
	DeleteOneMessageChannelMessageAssociation(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneMessageChannelMessageAssociation request
	FindOneMessageChannelMessageAssociation(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneMessageChannelMessageAssociation(ctx context.Context, id string, params *UpdateOneParams, body NewMessageChannelMessageAssociation) (*http.Response, error)

	// DeleteManyMessageChannels request
	DeleteManyMessageChannels(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyMessageChannels request
	FindManyMessageChannels(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyMessageChannels(ctx context.Context, params *UpdateManyParams, body NewMessageChannel) (*http.Response, error)

	CreateOneMessageChannel(ctx context.Context, params *CreateOneParams, body NewMessageChannel) (*http.Response, error)

	FindMessageChannelDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyMessageChannels(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneMessageChannel request
	DeleteOneMessageChannel(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneMessageChannel request
	FindOneMessageChannel(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneMessageChannel(ctx context.Context, id string, params *UpdateOneParams, body NewMessageChannel) (*http.Response, error)

	// DeleteManyMessageFolders request
	DeleteManyMessageFolders(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyMessageFolders request
	FindManyMessageFolders(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyMessageFolders(ctx context.Context, params *UpdateManyParams, body NewMessageFolder) (*http.Response, error)

	CreateOneMessageFolder(ctx context.Context, params *CreateOneParams, body NewMessageFolder) (*http.Response, error)

	FindMessageFolderDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyMessageFolders(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneMessageFolder request
	DeleteOneMessageFolder(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneMessageFolder request
	FindOneMessageFolder(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneMessageFolder(ctx context.Context, id string, params *UpdateOneParams, body NewMessageFolder) (*http.Response, error)

	// DeleteManyMessageParticipants request
	DeleteManyMessageParticipants(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyMessageParticipants request
	FindManyMessageParticipants(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyMessageParticipants(ctx context.Context, params *UpdateManyParams, body NewMessageParticipant) (*http.Response, error)

	CreateOneMessageParticipant(ctx context.Context, params *CreateOneParams, body NewMessageParticipant) (*http.Response, error)

	FindMessageParticipantDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyMessageParticipants(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneMessageParticipant request
	DeleteOneMessageParticipant(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneMessageParticipant request
	FindOneMessageParticipant(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneMessageParticipant(ctx context.Context, id string, params *UpdateOneParams, body NewMessageParticipant) (*http.Response, error)

	// DeleteManyMessageThreads request
	DeleteManyMessageThreads(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyMessageThreads request
	FindManyMessageThreads(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyMessageThreads(ctx context.Context, params *UpdateManyParams, body NewMessageThread) (*http.Response, error)

	CreateOneMessageThread(ctx context.Context, params *CreateOneParams, body NewMessageThread) (*http.Response, error)

	FindMessageThreadDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyMessageThreads(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneMessageThread request
	DeleteOneMessageThread(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneMessageThread request
	FindOneMessageThread(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneMessageThread(ctx context.Context, id string, params *UpdateOneParams, body NewMessageThread) (*http.Response, error)

	// DeleteManyMessages request
	DeleteManyMessages(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyMessages request
	FindManyMessages(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyMessages(ctx context.Context, params *UpdateManyParams, body NewMessage) (*http.Response, error)

	CreateOneMessage(ctx context.Context, params *CreateOneParams, body NewMessage) (*http.Response, error)

	FindMessageDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyMessages(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneMessage request
	DeleteOneMessage(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneMessage request
	FindOneMessage(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneMessage(ctx context.Context, id string, params *UpdateOneParams, body NewMessage) (*http.Response, error)

	// DeleteManyNoteTargets request
	DeleteManyNoteTargets(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyNoteTargets request
	FindManyNoteTargets(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyNoteTargets(ctx context.Context, params *UpdateManyParams, body NewNoteTarget) (*http.Response, error)

	CreateOneNoteTarget(ctx context.Context, params *CreateOneParams, body NewNoteTarget) (*http.Response, error)

	FindNoteTargetDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyNoteTargets(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneNoteTarget request
	DeleteOneNoteTarget(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneNoteTarget request
	FindOneNoteTarget(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneNoteTarget(ctx context.Context, id string, params *UpdateOneParams, body NewNoteTarget) (*http.Response, error)

	// DeleteManyNotes request
	DeleteManyNotes(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyNotes request
	FindManyNotes(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyNotes(ctx context.Context, params *UpdateManyParams, body NewNote) (*http.Response, error)

	CreateOneNote(ctx context.Context, params *CreateOneParams, body NewNote) (*http.Response, error)

	FindNoteDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyNotes(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneNote request
	DeleteOneNote(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneNote request
	FindOneNote(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneNote(ctx context.Context, id string, params *UpdateOneParams, body NewNote) (*http.Response, error)

	// GetOpenApiSchema request
	GetOpenApiSchema(ctx context.Context) (*http.Response, error)

	// DeleteManyOpportunities request
	DeleteManyOpportunities(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyOpportunities request
	FindManyOpportunities(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyOpportunities(ctx context.Context, params *UpdateManyParams, body NewOpportunity) (*http.Response, error)

	CreateOneOpportunity(ctx context.Context, params *CreateOneParams, body NewOpportunity) (*http.Response, error)

	FindOpportunityDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyOpportunities(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneOpportunity request
	DeleteOneOpportunity(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneOpportunity request
	FindOneOpportunity(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneOpportunity(ctx context.Context, id string, params *UpdateOneParams, body NewOpportunity) (*http.Response, error)

	// DeleteManyPeople request
	DeleteManyPeople(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyPeople request
	FindManyPeople(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyPeople(ctx context.Context, params *UpdateManyParams, body NewPerson) (*http.Response, error)

	CreateOnePerson(ctx context.Context, params *CreateOneParams, body NewPerson) (*http.Response, error)

	FindPersonDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyPeople(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOnePerson request
	DeleteOnePerson(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOnePerson request
	FindOnePerson(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOnePerson(ctx context.Context, id string, params *UpdateOneParams, body NewPerson) (*http.Response, error)

	// RestoreManyAttachments request
	RestoreManyAttachments(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneAttachment request
	RestoreOneAttachment(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyBlocklists request
	RestoreManyBlocklists(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneBlocklist request
	RestoreOneBlocklist(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyCalendarChannelEventAssociations request
	RestoreManyCalendarChannelEventAssociations(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneCalendarChannelEventAssociation request
	RestoreOneCalendarChannelEventAssociation(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyCalendarChannels request
	RestoreManyCalendarChannels(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneCalendarChannel request
	RestoreOneCalendarChannel(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyCalendarEventParticipants request
	RestoreManyCalendarEventParticipants(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneCalendarEventParticipant request
	RestoreOneCalendarEventParticipant(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyCalendarEvents request
	RestoreManyCalendarEvents(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneCalendarEvent request
	RestoreOneCalendarEvent(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyCompanies request
	RestoreManyCompanies(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneCompany request
	RestoreOneCompany(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyConnectedAccounts request
	RestoreManyConnectedAccounts(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneConnectedAccount request
	RestoreOneConnectedAccount(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyDashboards request
	RestoreManyDashboards(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneDashboard request
	RestoreOneDashboard(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyFavoriteFolders request
	RestoreManyFavoriteFolders(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneFavoriteFolder request
	RestoreOneFavoriteFolder(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyFavorites request
	RestoreManyFavorites(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneFavorite request
	RestoreOneFavorite(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyMessageChannelMessageAssociations request
	RestoreManyMessageChannelMessageAssociations(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneMessageChannelMessageAssociation request
	RestoreOneMessageChannelMessageAssociation(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyMessageChannels request
	RestoreManyMessageChannels(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneMessageChannel request
	RestoreOneMessageChannel(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyMessageFolders request
	RestoreManyMessageFolders(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneMessageFolder request
	RestoreOneMessageFolder(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyMessageParticipants request
	RestoreManyMessageParticipants(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneMessageParticipant request
	RestoreOneMessageParticipant(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyMessageThreads request
	RestoreManyMessageThreads(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneMessageThread request
	RestoreOneMessageThread(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyMessages request
	RestoreManyMessages(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneMessage request
	RestoreOneMessage(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyNoteTargets request
	RestoreManyNoteTargets(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneNoteTarget request
	RestoreOneNoteTarget(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyNotes request
	RestoreManyNotes(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneNote request
	RestoreOneNote(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyOpportunities request
	RestoreManyOpportunities(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneOpportunity request
	RestoreOneOpportunity(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyPeople request
	RestoreManyPeople(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOnePerson request
	RestoreOnePerson(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyTaskTargets request
	RestoreManyTaskTargets(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneTaskTarget request
	RestoreOneTaskTarget(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyTasks request
	RestoreManyTasks(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneTask request
	RestoreOneTask(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyTimelineActivities request
	RestoreManyTimelineActivities(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneTimelineActivity request
	RestoreOneTimelineActivity(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyWorkflowAutomatedTriggers request
	RestoreManyWorkflowAutomatedTriggers(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneWorkflowAutomatedTrigger request
	RestoreOneWorkflowAutomatedTrigger(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyWorkflowRuns request
	RestoreManyWorkflowRuns(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneWorkflowRun request
	RestoreOneWorkflowRun(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyWorkflowVersions request
	RestoreManyWorkflowVersions(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneWorkflowVersion request
	RestoreOneWorkflowVersion(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyWorkflows request
	RestoreManyWorkflows(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneWorkflow request
	RestoreOneWorkflow(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// RestoreManyWorkspaceMembers request
	RestoreManyWorkspaceMembers(ctx context.Context, params *RestoreManyParams) (*http.Response, error)

	// RestoreOneWorkspaceMember request
	RestoreOneWorkspaceMember(ctx context.Context, id string, params *RestoreOneParams) (*http.Response, error)

	// DeleteManyTaskTargets request
	DeleteManyTaskTargets(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyTaskTargets request
	FindManyTaskTargets(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyTaskTargets(ctx context.Context, params *UpdateManyParams, body NewTaskTarget) (*http.Response, error)

	CreateOneTaskTarget(ctx context.Context, params *CreateOneParams, body NewTaskTarget) (*http.Response, error)

	FindTaskTargetDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyTaskTargets(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneTaskTarget request
	DeleteOneTaskTarget(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneTaskTarget request
	FindOneTaskTarget(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneTaskTarget(ctx context.Context, id string, params *UpdateOneParams, body NewTaskTarget) (*http.Response, error)

	// DeleteManyTasks request
	DeleteManyTasks(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyTasks request
	FindManyTasks(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyTasks(ctx context.Context, params *UpdateManyParams, body NewTask) (*http.Response, error)

	CreateOneTask(ctx context.Context, params *CreateOneParams, body NewTask) (*http.Response, error)

	FindTaskDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyTasks(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneTask request
	DeleteOneTask(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneTask request
	FindOneTask(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneTask(ctx context.Context, id string, params *UpdateOneParams, body NewTask) (*http.Response, error)

	// DeleteManyTimelineActivities request
	DeleteManyTimelineActivities(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyTimelineActivities request
	FindManyTimelineActivities(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyTimelineActivities(ctx context.Context, params *UpdateManyParams, body NewTimelineActivity) (*http.Response, error)

	CreateOneTimelineActivity(ctx context.Context, params *CreateOneParams, body NewTimelineActivity) (*http.Response, error)

	FindTimelineActivityDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyTimelineActivities(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneTimelineActivity request
	DeleteOneTimelineActivity(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneTimelineActivity request
	FindOneTimelineActivity(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneTimelineActivity(ctx context.Context, id string, params *UpdateOneParams, body NewTimelineActivity) (*http.Response, error)

	// DeleteManyWorkflowAutomatedTriggers request
	DeleteManyWorkflowAutomatedTriggers(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyWorkflowAutomatedTriggers request
	FindManyWorkflowAutomatedTriggers(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyWorkflowAutomatedTriggers(ctx context.Context, params *UpdateManyParams, body NewWorkflowAutomatedTrigger) (*http.Response, error)

	CreateOneWorkflowAutomatedTrigger(ctx context.Context, params *CreateOneParams, body NewWorkflowAutomatedTrigger) (*http.Response, error)

	FindWorkflowAutomatedTriggerDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyWorkflowAutomatedTriggers(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneWorkflowAutomatedTrigger request
	DeleteOneWorkflowAutomatedTrigger(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneWorkflowAutomatedTrigger request
	FindOneWorkflowAutomatedTrigger(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneWorkflowAutomatedTrigger(ctx context.Context, id string, params *UpdateOneParams, body NewWorkflowAutomatedTrigger) (*http.Response, error)

	// DeleteManyWorkflowRuns request
	DeleteManyWorkflowRuns(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyWorkflowRuns request
	FindManyWorkflowRuns(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyWorkflowRuns(ctx context.Context, params *UpdateManyParams, body NewWorkflowRun) (*http.Response, error)

	CreateOneWorkflowRun(ctx context.Context, params *CreateOneParams, body NewWorkflowRun) (*http.Response, error)

	FindWorkflowRunDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyWorkflowRuns(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneWorkflowRun request
	DeleteOneWorkflowRun(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneWorkflowRun request
	FindOneWorkflowRun(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneWorkflowRun(ctx context.Context, id string, params *UpdateOneParams, body NewWorkflowRun) (*http.Response, error)

	// DeleteManyWorkflowVersions request
	DeleteManyWorkflowVersions(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyWorkflowVersions request
	FindManyWorkflowVersions(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyWorkflowVersions(ctx context.Context, params *UpdateManyParams, body NewWorkflowVersion) (*http.Response, error)

	CreateOneWorkflowVersion(ctx context.Context, params *CreateOneParams, body NewWorkflowVersion) (*http.Response, error)

	FindWorkflowVersionDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyWorkflowVersions(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneWorkflowVersion request
	DeleteOneWorkflowVersion(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneWorkflowVersion request
	FindOneWorkflowVersion(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneWorkflowVersion(ctx context.Context, id string, params *UpdateOneParams, body NewWorkflowVersion) (*http.Response, error)

	// DeleteManyWorkflows request
	DeleteManyWorkflows(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyWorkflows request
	FindManyWorkflows(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyWorkflows(ctx context.Context, params *UpdateManyParams, body NewWorkflow) (*http.Response, error)

	CreateOneWorkflow(ctx context.Context, params *CreateOneParams, body NewWorkflow) (*http.Response, error)

	FindWorkflowDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyWorkflows(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneWorkflow request
	DeleteOneWorkflow(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneWorkflow request
	FindOneWorkflow(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneWorkflow(ctx context.Context, id string, params *UpdateOneParams, body NewWorkflow) (*http.Response, error)

	// DeleteManyWorkspaceMembers request
	DeleteManyWorkspaceMembers(ctx context.Context, params *DeleteManyParams) (*http.Response, error)

	// FindManyWorkspaceMembers request
	FindManyWorkspaceMembers(ctx context.Context, params FindManyParams) (*http.Response, error)

	UpdateManyWorkspaceMembers(ctx context.Context, params *UpdateManyParams, body NewWorkspaceMember) (*http.Response, error)

	CreateOneWorkspaceMember(ctx context.Context, params *CreateOneParams, body NewWorkspaceMember) (*http.Response, error)

	FindWorkspaceMemberDuplicates(ctx context.Context, params *FindDuplicatesParams, body FindDuplicatesBody) (*http.Response, error)

	MergeManyWorkspaceMembers(ctx context.Context, params *MergeManyParams, body MergeManyBody) (*http.Response, error)

	// DeleteOneWorkspaceMember request
	DeleteOneWorkspaceMember(ctx context.Context, id string, params *DeleteOneParams) (*http.Response, error)

	// FindOneWorkspaceMember request
	FindOneWorkspaceMember(ctx context.Context, id string, params FindOneParams) (*http.Response, error)

	UpdateOneWorkspaceMember(ctx context.Context, id string, params *UpdateOneParams, body NewWorkspaceMember) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

type Company

type Company struct {
	// AccountOwner Your team member responsible for managing the company account
	AccountOwner   *WorkspaceMember    `json:"accountOwner,omitempty"`
	AccountOwnerId *openapi_types.UUID `json:"accountOwnerId,omitempty"`

	// Address Address of the company
	Address *Address `json:"address,omitempty"`

	// AnnualRecurringRevenue Annual Recurring Revenue: The actual or estimated annual revenue of the company
	AnnualRecurringRevenue *AnnualRecurringRevenue `json:"annualRecurringRevenue,omitempty"`

	// Attachments Attachments linked to the company
	Attachments *[]Attachment `json:"attachments,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// CreatedBy The creator of the record
	CreatedBy *CreatedBy `json:"createdBy,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// DomainName The company website URL. We use this url to fetch the company icon
	DomainName *Link `json:"domainName,omitempty"`

	// Employees Number of employees in the company
	Employees *int `json:"employees,omitempty"`

	// Favorites Favorites linked to the company
	Favorites *[]Favorite `json:"favorites,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// IdealCustomerProfile Ideal Customer Profile:  Indicates whether the company is the most suitable and valuable customer for you
	IdealCustomerProfile *bool `json:"idealCustomerProfile,omitempty"`

	// LinkedinLink The company Linkedin account
	LinkedinLink *Link `json:"linkedinLink,omitempty"`

	// Name The company name
	Name *string `json:"name,omitempty"`

	// NoteTargets Notes tied to the company
	NoteTargets *[]NoteTarget `json:"noteTargets,omitempty"`

	// Opportunities Opportunities linked to the company.
	Opportunities *[]Opportunity `json:"opportunities,omitempty"`

	// People People linked to the company.
	People *[]Person `json:"people,omitempty"`

	// Position Company record position
	Position *float32 `json:"position,omitempty"`

	// TaskTargets Tasks tied to the company
	TaskTargets *[]TaskTarget `json:"taskTargets,omitempty"`

	// TimelineActivities Timeline Activities linked to the company
	TimelineActivities *[]TimelineActivity `json:"timelineActivities,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// XLink The company Twitter/X account
	XLink *Link `json:"xLink,omitempty"`
}

CompanyForResponse A company

type ConnectedAccount

type ConnectedAccount struct {
	// AccessToken Messaging provider access token
	AccessToken *string `json:"accessToken,omitempty"`

	// AccountOwner Account Owner
	AccountOwner   *WorkspaceMember    `json:"accountOwner,omitempty"`
	AccountOwnerId *openapi_types.UUID `json:"accountOwnerId,omitempty"`

	// AuthFailedAt Auth failed at
	AuthFailedAt *time.Time `json:"authFailedAt,omitempty"`

	// CalendarChannels Calendar Channels
	CalendarChannels *[]CalendarChannel `json:"calendarChannels,omitempty"`

	// ConnectionParameters JSON object containing custom connection parameters
	ConnectionParameters *map[string]interface{} `json:"connectionParameters,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Handle The account handle (email, username, phone number, etc.)
	Handle *string `json:"handle,omitempty"`

	// HandleAliases Handle Aliases
	HandleAliases *string `json:"handleAliases,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// LastCredentialsRefreshedAt Last credentials refreshed at
	LastCredentialsRefreshedAt *time.Time `json:"lastCredentialsRefreshedAt,omitempty"`

	// LastSyncHistoryId Last sync history ID
	LastSyncHistoryId *string `json:"lastSyncHistoryId,omitempty"`

	// MessageChannels Message Channels
	MessageChannels *[]MessageChannel `json:"messageChannels,omitempty"`

	// Provider The account provider
	Provider *string `json:"provider,omitempty"`

	// RefreshToken Messaging provider refresh token
	RefreshToken *string `json:"refreshToken,omitempty"`

	// Scopes Scopes
	Scopes *[]string `json:"scopes,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

ConnectedAccount A connected account

type CreateManyParams added in v0.2.0

type CreateManyParams struct {
	// Depth Determines the level of nested related objects to include in the response.
	//     - 0: Primary object only
	//     - 1: Primary object + direct relations
	Depth *int `form:"depth,omitempty" json:"depth,string,omitempty"`

	// Upsert If true, creates the object or updates it if it already exists.
	Upsert *bool `form:"upsert,omitempty" json:"upsert,omitempty"`
}

CreateManyParams defines parameters for CreateMany functions.

type CreateOneParams added in v0.2.0

type CreateOneParams struct {
	// Depth Determines the level of nested related objects to include in the response.
	//     - 0: Primary object only
	//     - 1: Primary object + direct relations
	Depth *int `form:"depth,omitempty" json:"depth,string,omitempty"`

	// Upsert If true, creates the object or updates it if it already exists.
	Upsert *bool `form:"upsert,omitempty" json:"upsert,omitempty"`
}

CreateOneParams defines parameters for CreateOne functions.

type CreatedBy added in v0.2.0

type CreatedBy struct {
	Name              *string             `json:"name,omitempty"`
	Source            *CreatedBySource    `json:"source,omitempty"`
	WorkspaceMemberId *openapi_types.UUID `json:"workspaceMemberId,omitempty"`
}

type CreatedBySource added in v0.2.0

type CreatedBySource string
const (
	CreatedBySourceAGENT    CreatedBySource = "AGENT"
	CreatedBySourceAPI      CreatedBySource = "API"
	CreatedBySourceCALENDAR CreatedBySource = "CALENDAR"
	CreatedBySourceEMAIL    CreatedBySource = "EMAIL"
	CreatedBySourceIMPORT   CreatedBySource = "IMPORT"
	CreatedBySourceMANUAL   CreatedBySource = "MANUAL"
	CreatedBySourceSYSTEM   CreatedBySource = "SYSTEM"
	CreatedBySourceWEBHOOK  CreatedBySource = "WEBHOOK"
	CreatedBySourceWORKFLOW CreatedBySource = "WORKFLOW"
)

Defines values for PersonCreatedBySource.

type Dashboard

type Dashboard struct {
	// Attachments Attachments linked to the dashboard
	Attachments *[]Attachment `json:"attachments,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// CreatedBy The creator of the record
	CreatedBy *CreatedBy `json:"createdBy,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Favorites Favorites linked to the dashboard
	Favorites *[]Favorite `json:"favorites,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// PageLayoutId Dashboard page layout
	PageLayoutId *openapi_types.UUID `json:"pageLayoutId,omitempty"`

	// Position Dashboard record Position
	Position *float32 `json:"position,omitempty"`

	// TimelineActivities Timeline activities linked to the dashboard
	TimelineActivities *[]TimelineActivity `json:"timelineActivities,omitempty"`

	// Title Dashboard title
	Title *string `json:"title,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

Dashboard A dashboard

type Data added in v0.1.0

type Data struct {
	Attachment        *Attachment   `json:"attachment,omitempty"`
	Attachments       []*Attachment `json:"attachments,omitempty"`
	UpdateAttachment  *Attachment   `json:"updateAttachment,omitempty"`
	UpdateAttachments []*Attachment `json:"updateAttachments,omitempty"`
	CreateAttachment  *Attachment   `json:"createAttachment,omitempty"`
	CreateAttachments []*Attachment `json:"createAttachments,omitempty"`

	Person        *Person   `json:"person,omitempty"`
	Persons       []*Person `json:"persons,omitempty"`
	UpdatePerson  *Person   `json:"updatePerson,omitempty"`
	UpdatePersons []*Person `json:"updatePersons,omitempty"`
	CreatePerson  *Person   `json:"createPerson,omitempty"`
	CreatePersons []*Person `json:"createPersons,omitempty"`

	Opportunity         *Opportunity   `json:"opportunity,omitempty"`
	Opportunities       []*Opportunity `json:"opportunities,omitempty"`
	UpdateOpportunity   *Opportunity   `json:"updateOpportunity,omitempty"`
	UpdateOpportunities []*Opportunity `json:"updateOpportunities,omitempty"`
	CreateOpportunity   *Opportunity   `json:"createOpportunity,omitempty"`
	CreateOpportunities []*Opportunity `json:"createOpportunities,omitempty"`

	Company         *Company   `json:"company,omitempty"`
	Companies       []*Company `json:"companies,omitempty"`
	UpdateCompany   *Company   `json:"updateCompany,omitempty"`
	UpdateCompanies []*Company `json:"updateCompanies,omitempty"`
	CreateCompany   *Company   `json:"createCompany,omitempty"`
	CreateCompanies []*Company `json:"createCompanies,omitempty"`

	Task        *Task   `json:"task,omitempty"`
	Tasks       []*Task `json:"tasks,omitempty"`
	UpdateTask  *Task   `json:"updateTask,omitempty"`
	UpdateTasks []*Task `json:"updateTasks,omitempty"`
	CreateTask  *Task   `json:"createTask,omitempty"`
	CreateTasks []*Task `json:"createTasks,omitempty"`
}

type DeleteManyParams added in v0.2.0

type DeleteManyParams struct {
	// Filter Format: field[COMPARATOR]:value,field2[COMPARATOR]:value2
	//     Refer to the filter section at the top of the page for more details.
	Filter *string `form:"filter,omitempty" json:"filter,omitempty"`

	// SoftDelete If true, soft deletes the objects. If false, objects are permanently deleted.
	SoftDelete *bool `form:"soft_delete,omitempty" json:"soft_delete,omitempty"`
}

DeleteManyParams defines parameters for DeleteMany functions.

type DeleteOneParams added in v0.2.0

type DeleteOneParams struct {
	// SoftDelete If true, soft deletes the objects. If false, objects are permanently deleted.
	SoftDelete *bool `form:"soft_delete,omitempty" json:"soft_delete,omitempty"`
}

DeleteOneParams defines parameters for DeleteOne functions.

type Emails added in v0.2.0

type Emails struct {
	AdditionalEmails *[]openapi_types.Email `json:"additionalEmails,omitempty"`
	PrimaryEmail     *string                `json:"primaryEmail,omitempty"`
}

type ErrorResponse added in v0.1.0

type ErrorResponse struct {
	StatusCode int      `json:"statusCode"`
	Error      string   `json:"error"`
	Messages   []string `json:"messages"`
}

type Favorite

type Favorite struct {
	// Company Favorite company
	Company   *Company            `json:"company,omitempty"`
	CompanyId *openapi_types.UUID `json:"companyId,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// Dashboard Favorite dashboard
	Dashboard   *Dashboard          `json:"dashboard,omitempty"`
	DashboardId *openapi_types.UUID `json:"dashboardId,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// FavoriteFolder The folder this favorite belongs to
	FavoriteFolder   *FavoriteFolder     `json:"favoriteFolder,omitempty"`
	FavoriteFolderId *openapi_types.UUID `json:"favoriteFolderId,omitempty"`

	// ForWorkspaceMember Favorite workspace member
	ForWorkspaceMember   *WorkspaceMember    `json:"forWorkspaceMember,omitempty"`
	ForWorkspaceMemberId *openapi_types.UUID `json:"forWorkspaceMemberId,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Note Favorite note
	Note   *Note               `json:"note,omitempty"`
	NoteId *openapi_types.UUID `json:"noteId,omitempty"`

	// Opportunity Favorite opportunity
	Opportunity   *Opportunity        `json:"opportunity,omitempty"`
	OpportunityId *openapi_types.UUID `json:"opportunityId,omitempty"`

	// Person Favorite person
	Person   *Person             `json:"person,omitempty"`
	PersonId *openapi_types.UUID `json:"personId,omitempty"`

	// Position Favorite position
	Position *int `json:"position,omitempty"`

	// Task Favorite task
	Task   *Task               `json:"task,omitempty"`
	TaskId *openapi_types.UUID `json:"taskId,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// ViewId ViewId
	ViewId *openapi_types.UUID `json:"viewId,omitempty"`

	// Workflow Favorite workflow
	Workflow   *Workflow           `json:"workflow,omitempty"`
	WorkflowId *openapi_types.UUID `json:"workflowId,omitempty"`

	// WorkflowRun Favorite workflow run
	WorkflowRun   *WorkflowRun        `json:"workflowRun,omitempty"`
	WorkflowRunId *openapi_types.UUID `json:"workflowRunId,omitempty"`

	// WorkflowVersion Favorite workflow version
	WorkflowVersion   *WorkflowVersion    `json:"workflowVersion,omitempty"`
	WorkflowVersionId *openapi_types.UUID `json:"workflowVersionId,omitempty"`
}

FavoriteForResponse A favorite that can be accessed from the left menu

type FavoriteFolder

type FavoriteFolder struct {
	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Favorites Favorites in this folder
	Favorites *[]Favorite `json:"favorites,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Name Name of the favorite folder
	Name *string `json:"name,omitempty"`

	// Position Favorite folder position
	Position *int `json:"position,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

FavoriteFolderForResponse A Folder of favorites

type FindDuplicatesBody added in v0.2.0

type FindDuplicatesBody struct {
	Data *[]CalendarEvent      `json:"data,omitempty"`
	Ids  *[]openapi_types.UUID `json:"ids,omitempty"`
}

FindDuplicatesBody defines parameters for FindDuplicates functions.

type FindDuplicatesParams added in v0.2.0

type FindDuplicatesParams struct {
	// Depth Determines the level of nested related objects to include in the response.
	//     - 0: Primary object only
	//     - 1: Primary object + direct relations
	Depth *int `form:"depth,omitempty" json:"depth,string,omitempty"`
}

FindDuplicatesParams defines parameters for FindDuplicates functions.

type FindManyParams added in v0.2.0

type FindManyParams struct {
	// OrderBy Format: **field_name_1,field_name_2[DIRECTION_2]
	//     Refer to the filter section at the top of the page for more details.
	OrderBy *string `form:"order_by,omitempty" json:"order_by,omitempty"`

	// Filter Format: field[COMPARATOR]:value,field2[COMPARATOR]:value2
	//     Refer to the filter section at the top of the page for more details.
	Filter *string `form:"filter,omitempty" json:"filter,omitempty"`

	// Limit Limits the number of objects returned.
	Limit *int `form:"limit,omitempty" json:"limit,string,omitempty"`

	// Depth Determines the level of nested related objects to include in the response.
	//     - 0: Primary object only
	//     - 1: Primary object + direct relations
	Depth *int `form:"depth,omitempty" json:"depth,string,omitempty"`

	// StartingAfter Returns objects starting after a specific cursor. You can find cursors in **startCursor** and **endCursor** in **pageInfo** in response data
	StartingAfter *string `form:"starting_after,omitempty" json:"starting_after,omitempty"`

	// EndingBefore Returns objects ending before a specific cursor. You can find cursors in **startCursor** and **endCursor** in **pageInfo** in response data
	EndingBefore *string `form:"ending_before,omitempty" json:"ending_before,omitempty"`
}

FindManyParams defines parameters for FindMany functions.

type FindOneParams added in v0.2.0

type FindOneParams struct {
	// Depth Determines the level of nested related objects to include in the response.
	//     - 0: Primary object only
	//     - 1: Primary object + direct relations
	Depth *int `form:"depth,omitempty" json:"depth,string,omitempty"`
}

FindOneParams defines parameters for FindOne functions.

type HTTPErrorResponse added in v0.1.0

type HTTPErrorResponse struct {
	Error       string `json:"error,omitempty"`
	Message     string `json:"errorMessage,omitempty"`
	Description string `json:"error_description,omitempty"`
}

HTTPErrorResponse is a model of an error response

func (HTTPErrorResponse) NotEmpty added in v0.1.0

func (e HTTPErrorResponse) NotEmpty() bool

NotEmpty validates that error is not emptyp

func (HTTPErrorResponse) String added in v0.1.0

func (e HTTPErrorResponse) String() string

String returns a string representation of an error

type Link struct {
	PrimaryLinkLabel *string          `json:"primaryLinkLabel,omitempty"`
	PrimaryLinkUrl   *string          `json:"primaryLinkUrl,omitempty"`
	SecondaryLinks   *[]SecondaryLink `json:"secondaryLinks,omitempty"`
}

type MergeManyBody added in v0.2.0

type MergeManyBody struct {
	// ConflictPriorityIndex The index of the record to use when conflicts occur
	ConflictPriorityIndex float32 `json:"conflictPriorityIndex"`

	// DryRun If true, the merge will not be performed and a preview of the merge will be returned.
	DryRun *bool `json:"dryRun,omitempty"`

	// Ids The IDs of the records to merge
	Ids []openapi_types.UUID `json:"ids"`
}

MergeManyBody defines parameters for MergeMany functions.

type MergeManyParams added in v0.2.0

type MergeManyParams struct {
	// Depth Determines the level of nested related objects to include in the response.
	//     - 0: Primary object only
	//     - 1: Primary object + direct relations
	Depth *int `form:"depth,omitempty" json:"depth,string,omitempty"`
}

MergeManyParams defines parameters for MergeMany functions.

type Message

type Message struct {
	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// HeaderMessageId Message id from the message header
	HeaderMessageId *string `json:"headerMessageId,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// MessageChannelMessageAssociations Messages from the channel.
	MessageChannelMessageAssociations *[]MessageChannelMessageAssociation `json:"messageChannelMessageAssociations,omitempty"`

	// MessageParticipants Message Participants
	MessageParticipants *[]MessageParticipant `json:"messageParticipants,omitempty"`

	// MessageThread Message Thread Id
	MessageThread   *MessageThread      `json:"messageThread,omitempty"`
	MessageThreadId *openapi_types.UUID `json:"messageThreadId,omitempty"`

	// ReceivedAt The date the message was received
	ReceivedAt *time.Time `json:"receivedAt,omitempty"`

	// Subject Subject
	Subject *string `json:"subject,omitempty"`

	// Text Text
	Text *string `json:"text,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

Message A message sent or received through a messaging channel (email, chat, etc.)

type MessageChannel

type MessageChannel struct {
	// ConnectedAccount Connected Account
	ConnectedAccount   *ConnectedAccount   `json:"connectedAccount,omitempty"`
	ConnectedAccountId *openapi_types.UUID `json:"connectedAccountId,omitempty"`

	// ContactAutoCreationPolicy Automatically create People records when receiving or sending emails
	ContactAutoCreationPolicy *MessageChannelContactAutoCreationPolicy `json:"contactAutoCreationPolicy,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// ExcludeGroupEmails Exclude group emails
	ExcludeGroupEmails *bool `json:"excludeGroupEmails,omitempty"`

	// ExcludeNonProfessionalEmails Exclude non professional emails
	ExcludeNonProfessionalEmails *bool `json:"excludeNonProfessionalEmails,omitempty"`

	// Handle Handle
	Handle *string `json:"handle,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// IsContactAutoCreationEnabled Is Contact Auto Creation Enabled
	IsContactAutoCreationEnabled *bool `json:"isContactAutoCreationEnabled,omitempty"`

	// IsSyncEnabled Is Sync Enabled
	IsSyncEnabled *bool `json:"isSyncEnabled,omitempty"`

	// MessageChannelMessageAssociations Messages from the channel.
	MessageChannelMessageAssociations *[]MessageChannelMessageAssociation `json:"messageChannelMessageAssociations,omitempty"`

	// MessageFolderImportPolicy Message folder import policy
	MessageFolderImportPolicy *MessageChannelMessageFolderImportPolicy `json:"messageFolderImportPolicy,omitempty"`

	// MessageFolders Message Folders
	MessageFolders *[]MessageFolder `json:"messageFolders,omitempty"`

	// PendingGroupEmailsAction Pending action for group emails
	PendingGroupEmailsAction *MessageChannelPendingGroupEmailsAction `json:"pendingGroupEmailsAction,omitempty"`

	// SyncCursor Last sync cursor
	SyncCursor *string `json:"syncCursor,omitempty"`

	// SyncStage Sync stage
	SyncStage *MessageChannelSyncStage `json:"syncStage,omitempty"`

	// SyncStageStartedAt Sync stage started at
	SyncStageStartedAt *time.Time `json:"syncStageStartedAt,omitempty"`

	// SyncStatus Sync status
	SyncStatus *MessageChannelSyncStatus `json:"syncStatus,omitempty"`

	// SyncedAt Last sync date
	SyncedAt *time.Time `json:"syncedAt,omitempty"`

	// ThrottleFailureCount Throttle Failure Count
	ThrottleFailureCount *int `json:"throttleFailureCount,omitempty"`

	// Type Channel Type
	Type *MessageChannelType `json:"type,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// Visibility Visibility
	Visibility *MessageChannelVisibility `json:"visibility,omitempty"`
}

MessageChannel Message Channels

type MessageChannelContactAutoCreationPolicy

type MessageChannelContactAutoCreationPolicy string

MessageChannelContactAutoCreationPolicy Automatically create People records when receiving or sending emails

const (
	MessageChannelContactAutoCreationPolicyNONE            MessageChannelContactAutoCreationPolicy = "NONE"
	MessageChannelContactAutoCreationPolicySENT            MessageChannelContactAutoCreationPolicy = "SENT"
	MessageChannelContactAutoCreationPolicySENTANDRECEIVED MessageChannelContactAutoCreationPolicy = "SENT_AND_RECEIVED"
)

Defines values for MessageChannelContactAutoCreationPolicy.

type MessageChannelMessageAssociation

type MessageChannelMessageAssociation struct {
	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Direction Message Direction
	Direction *MessageChannelMessageAssociationDirection `json:"direction,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Message Message Id
	Message *Message `json:"message,omitempty"`

	// MessageChannel Message Channel Id
	MessageChannel   *MessageChannel     `json:"messageChannel,omitempty"`
	MessageChannelId *openapi_types.UUID `json:"messageChannelId,omitempty"`

	// MessageExternalId Message id from the messaging provider
	MessageExternalId *string             `json:"messageExternalId,omitempty"`
	MessageId         *openapi_types.UUID `json:"messageId,omitempty"`

	// MessageThreadExternalId Thread id from the messaging provider
	MessageThreadExternalId *string `json:"messageThreadExternalId,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

MessageChannelMessageAssociation Message Synced with a Message Channel

type MessageChannelMessageAssociationDirection

type MessageChannelMessageAssociationDirection string

MessageChannelMessageAssociationDirection Message Direction

const (
	MessageChannelMessageAssociationDirectionINCOMING MessageChannelMessageAssociationDirection = "INCOMING"
	MessageChannelMessageAssociationDirectionOUTGOING MessageChannelMessageAssociationDirection = "OUTGOING"
)

Defines values for MessageChannelMessageAssociationDirection.

type MessageChannelMessageFolderImportPolicy

type MessageChannelMessageFolderImportPolicy string

MessageChannelMessageFolderImportPolicy Message folder import policy

const (
	MessageChannelMessageFolderImportPolicyALLFOLDERS      MessageChannelMessageFolderImportPolicy = "ALL_FOLDERS"
	MessageChannelMessageFolderImportPolicySELECTEDFOLDERS MessageChannelMessageFolderImportPolicy = "SELECTED_FOLDERS"
)

Defines values for MessageChannelMessageFolderImportPolicy.

type MessageChannelPendingGroupEmailsAction

type MessageChannelPendingGroupEmailsAction string

MessageChannelPendingGroupEmailsAction Pending action for group emails

const (
	MessageChannelPendingGroupEmailsActionGROUPEMAILSDELETION MessageChannelPendingGroupEmailsAction = "GROUP_EMAILS_DELETION"
	MessageChannelPendingGroupEmailsActionGROUPEMAILSIMPORT   MessageChannelPendingGroupEmailsAction = "GROUP_EMAILS_IMPORT"
	MessageChannelPendingGroupEmailsActionNONE                MessageChannelPendingGroupEmailsAction = "NONE"
)

Defines values for MessageChannelPendingGroupEmailsAction.

type MessageChannelSyncStage

type MessageChannelSyncStage string

MessageChannelSyncStage Sync stage

const (
	MessageChannelSyncStageFAILED                    MessageChannelSyncStage = "FAILED"
	MessageChannelSyncStageMESSAGELISTFETCHONGOING   MessageChannelSyncStage = "MESSAGE_LIST_FETCH_ONGOING"
	MessageChannelSyncStageMESSAGELISTFETCHPENDING   MessageChannelSyncStage = "MESSAGE_LIST_FETCH_PENDING"
	MessageChannelSyncStageMESSAGELISTFETCHSCHEDULED MessageChannelSyncStage = "MESSAGE_LIST_FETCH_SCHEDULED"
	MessageChannelSyncStageMESSAGESIMPORTONGOING     MessageChannelSyncStage = "MESSAGES_IMPORT_ONGOING"
	MessageChannelSyncStageMESSAGESIMPORTPENDING     MessageChannelSyncStage = "MESSAGES_IMPORT_PENDING"
	MessageChannelSyncStageMESSAGESIMPORTSCHEDULED   MessageChannelSyncStage = "MESSAGES_IMPORT_SCHEDULED"
	MessageChannelSyncStagePENDINGCONFIGURATION      MessageChannelSyncStage = "PENDING_CONFIGURATION"
)

Defines values for MessageChannelSyncStage.

type MessageChannelSyncStatus

type MessageChannelSyncStatus string

MessageChannelSyncStatus Sync status

const (
	MessageChannelSyncStatusACTIVE                        MessageChannelSyncStatus = "ACTIVE"
	MessageChannelSyncStatusFAILEDINSUFFICIENTPERMISSIONS MessageChannelSyncStatus = "FAILED_INSUFFICIENT_PERMISSIONS"
	MessageChannelSyncStatusFAILEDUNKNOWN                 MessageChannelSyncStatus = "FAILED_UNKNOWN"
	MessageChannelSyncStatusNOTSYNCED                     MessageChannelSyncStatus = "NOT_SYNCED"
	MessageChannelSyncStatusONGOING                       MessageChannelSyncStatus = "ONGOING"
)

Defines values for MessageChannelSyncStatus.

type MessageChannelType

type MessageChannelType string

MessageChannelType Channel Type

const (
	MessageChannelTypeEMAIL MessageChannelType = "EMAIL"
	MessageChannelTypeSMS   MessageChannelType = "SMS"
)

Defines values for MessageChannelType.

type MessageChannelVisibility

type MessageChannelVisibility string

MessageChannelVisibility Visibility

const (
	MessageChannelVisibilityMETADATA        MessageChannelVisibility = "METADATA"
	MessageChannelVisibilitySHAREEVERYTHING MessageChannelVisibility = "SHARE_EVERYTHING"
	MessageChannelVisibilitySUBJECT         MessageChannelVisibility = "SUBJECT"
)

Defines values for MessageChannelVisibility.

type MessageFolder

type MessageFolder struct {
	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// ExternalId External ID
	ExternalId *string `json:"externalId,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// IsSentFolder Is Sent Folder
	IsSentFolder *bool `json:"isSentFolder,omitempty"`

	// IsSynced Is Synced
	IsSynced *bool `json:"isSynced,omitempty"`

	// MessageChannel Message Channel
	MessageChannel   *MessageChannel     `json:"messageChannel,omitempty"`
	MessageChannelId *openapi_types.UUID `json:"messageChannelId,omitempty"`

	// Name Folder name
	Name *string `json:"name,omitempty"`

	// ParentFolderId Parent Folder ID
	ParentFolderId *string `json:"parentFolderId,omitempty"`

	// PendingSyncAction Pending action for folder sync
	PendingSyncAction *MessageFolderPendingSyncAction `json:"pendingSyncAction,omitempty"`

	// SyncCursor Sync Cursor
	SyncCursor *string `json:"syncCursor,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

MessageFolder Folder for Message Channel

type MessageFolderPendingSyncAction

type MessageFolderPendingSyncAction string

MessageFolderPendingSyncAction Pending action for folder sync

const (
	MessageFolderPendingSyncActionFOLDERDELETION MessageFolderPendingSyncAction = "FOLDER_DELETION"
	MessageFolderPendingSyncActionNONE           MessageFolderPendingSyncAction = "NONE"
)

Defines values for MessageFolderPendingSyncAction.

type MessageParticipant

type MessageParticipant struct {
	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// DisplayName Display Name
	DisplayName *string `json:"displayName,omitempty"`

	// Handle Handle
	Handle *string `json:"handle,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Message Message
	Message   *Message            `json:"message,omitempty"`
	MessageId *openapi_types.UUID `json:"messageId,omitempty"`

	// Person Person
	Person   *Person             `json:"person,omitempty"`
	PersonId *openapi_types.UUID `json:"personId,omitempty"`

	// Role Role
	Role *MessageParticipantRole `json:"role,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// WorkspaceMember Workspace member
	WorkspaceMember   *WorkspaceMember    `json:"workspaceMember,omitempty"`
	WorkspaceMemberId *openapi_types.UUID `json:"workspaceMemberId,omitempty"`
}

MessageParticipantForResponse Message Participants

type MessageParticipantRole

type MessageParticipantRole string

MessageParticipantRole Role

const (
	MessageParticipantRoleBCC  MessageParticipantRole = "BCC"
	MessageParticipantRoleCC   MessageParticipantRole = "CC"
	MessageParticipantRoleFROM MessageParticipantRole = "FROM"
	MessageParticipantRoleTO   MessageParticipantRole = "TO"
)

Defines values for MessageParticipantRole.

type MessageThread

type MessageThread struct {
	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Messages Messages from the thread.
	Messages *[]Message `json:"messages,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

MessageThread A group of related messages (e.g. email thread, chat thread)

type Name added in v0.2.0

type Name struct {
	FirstName *string `json:"firstName,omitempty"`
	LastName  *string `json:"lastName,omitempty"`
}

type NewAttachment added in v0.2.0

type NewAttachment struct {
	AuthorId  *openapi_types.UUID `json:"authorId,omitempty"`
	CompanyId *openapi_types.UUID `json:"companyId,omitempty"`

	// CreatedBy The creator of the record
	CreatedBy   *NewCreatedBy       `json:"createdBy,omitempty"`
	DashboardId *openapi_types.UUID `json:"dashboardId,omitempty"`

	// FileCategory Attachment file category
	FileCategory *AttachmentFileCategory `json:"fileCategory,omitempty"`

	// FullPath Attachment full path
	FullPath *string `json:"fullPath,omitempty"`

	// Name Attachment name
	Name          *string             `json:"name,omitempty"`
	NoteId        *openapi_types.UUID `json:"noteId,omitempty"`
	OpportunityId *openapi_types.UUID `json:"opportunityId,omitempty"`
	PersonId      *openapi_types.UUID `json:"personId,omitempty"`
	TaskId        *openapi_types.UUID `json:"taskId,omitempty"`

	// Type Attachment type (deprecated - use fileCategory)
	Type       *string             `json:"type,omitempty"`
	WorkflowId *openapi_types.UUID `json:"workflowId,omitempty"`
}

NewAttachment An attachment

type NewBlocklist added in v0.2.0

type NewBlocklist struct {
	// Handle Handle
	Handle            *string             `json:"handle,omitempty"`
	WorkspaceMemberId *openapi_types.UUID `json:"workspaceMemberId,omitempty"`
}

NewBlocklist Blocklist

type NewCalendarChannel added in v0.2.0

type NewCalendarChannel struct {
	ConnectedAccountId *openapi_types.UUID `json:"connectedAccountId,omitempty"`

	// ContactAutoCreationPolicy Automatically create records for people you participated with in an event.
	ContactAutoCreationPolicy *CalendarChannelContactAutoCreationPolicy `json:"contactAutoCreationPolicy,omitempty"`

	// Handle Handle
	Handle *string `json:"handle,omitempty"`

	// IsContactAutoCreationEnabled Is Contact Auto Creation Enabled
	IsContactAutoCreationEnabled *bool `json:"isContactAutoCreationEnabled,omitempty"`

	// IsSyncEnabled Is Sync Enabled
	IsSyncEnabled *bool `json:"isSyncEnabled,omitempty"`

	// SyncCursor Sync Cursor. Used for syncing events from the calendar provider
	SyncCursor *string `json:"syncCursor,omitempty"`

	// SyncStage Sync stage
	SyncStage *CalendarChannelSyncStage `json:"syncStage,omitempty"`

	// SyncStageStartedAt Sync stage started at
	SyncStageStartedAt *time.Time `json:"syncStageStartedAt,omitempty"`

	// SyncStatus Sync status
	SyncStatus *CalendarChannelSyncStatus `json:"syncStatus,omitempty"`

	// SyncedAt Last sync date
	SyncedAt *time.Time `json:"syncedAt,omitempty"`

	// ThrottleFailureCount Throttle Failure Count
	ThrottleFailureCount *int `json:"throttleFailureCount,omitempty"`

	// Visibility Visibility
	Visibility *CalendarChannelVisibility `json:"visibility,omitempty"`
}

NewCalendarChannel Calendar Channels

type NewCalendarChannelEventAssociation added in v0.2.0

type NewCalendarChannelEventAssociation struct {
	CalendarChannelId *openapi_types.UUID `json:"calendarChannelId,omitempty"`
	CalendarEventId   *openapi_types.UUID `json:"calendarEventId,omitempty"`

	// EventExternalId Event external ID
	EventExternalId *string `json:"eventExternalId,omitempty"`

	// RecurringEventExternalId Recurring Event ID
	RecurringEventExternalId *string `json:"recurringEventExternalId,omitempty"`
}

NewCalendarChannelEventAssociation Calendar Channel Event Associations

type NewCalendarEvent added in v0.2.0

type NewCalendarEvent struct {
	// ConferenceLink Meet Link
	ConferenceLink *Link `json:"conferenceLink,omitempty"`

	// ConferenceSolution Conference Solution
	ConferenceSolution *string `json:"conferenceSolution,omitempty"`

	// Description Description
	Description *string `json:"description,omitempty"`

	// EndsAt End Date
	EndsAt *time.Time `json:"endsAt,omitempty"`

	// ExternalCreatedAt Creation DateTime
	ExternalCreatedAt *time.Time `json:"externalCreatedAt,omitempty"`

	// ExternalUpdatedAt Update DateTime
	ExternalUpdatedAt *time.Time `json:"externalUpdatedAt,omitempty"`

	// ICalUid iCal UID
	ICalUid *string `json:"iCalUid,omitempty"`

	// IsCanceled Is canceled
	IsCanceled *bool `json:"isCanceled,omitempty"`

	// IsFullDay Is Full Day
	IsFullDay *bool `json:"isFullDay,omitempty"`

	// Location Location
	Location *string `json:"location,omitempty"`

	// StartsAt Start Date
	StartsAt *time.Time `json:"startsAt,omitempty"`

	// Title Title
	Title *string `json:"title,omitempty"`
}

NewCalendarEvent Calendar events

type NewCalendarEventParticipant added in v0.2.0

type NewCalendarEventParticipant struct {
	CalendarEventId *openapi_types.UUID `json:"calendarEventId,omitempty"`

	// DisplayName Display Name
	DisplayName *string `json:"displayName,omitempty"`

	// Handle Handle
	Handle *string `json:"handle,omitempty"`

	// IsOrganizer Is Organizer
	IsOrganizer *bool               `json:"isOrganizer,omitempty"`
	PersonId    *openapi_types.UUID `json:"personId,omitempty"`

	// ResponseStatus Response Status
	ResponseStatus    *CalendarEventParticipantResponseStatus `json:"responseStatus,omitempty"`
	WorkspaceMemberId *openapi_types.UUID                     `json:"workspaceMemberId,omitempty"`
}

CalendarEventParticipant Calendar event participants

type NewCompany added in v0.2.0

type NewCompany struct {
	AccountOwnerId *openapi_types.UUID `json:"accountOwnerId,omitempty"`

	// Address Address of the company
	Address *Address `json:"address,omitempty"`

	// AnnualRecurringRevenue Annual Recurring Revenue: The actual or estimated annual revenue of the company
	AnnualRecurringRevenue *AnnualRecurringRevenue `json:"annualRecurringRevenue,omitempty"`

	// CreatedBy The creator of the record
	CreatedBy *NewCreatedBy `json:"createdBy,omitempty"`

	// DomainName The company website URL. We use this url to fetch the company icon
	DomainName *Link `json:"domainName,omitempty"`

	// Employees Number of employees in the company
	Employees *int `json:"employees,omitempty"`

	// IdealCustomerProfile Ideal Customer Profile:  Indicates whether the company is the most suitable and valuable customer for you
	IdealCustomerProfile *bool `json:"idealCustomerProfile,omitempty"`

	// LinkedinLink The company Linkedin account
	LinkedinLink *Link `json:"linkedinLink,omitempty"`

	// Name The company name
	Name *string `json:"name,omitempty"`

	// Position Company record position
	Position *float32 `json:"position,omitempty"`

	// XLink The company Twitter/X account
	XLink *Link `json:"xLink,omitempty"`
}

NewCompany A company

type NewConnectedAccount added in v0.2.0

type NewConnectedAccount struct {
	// AccessToken Messaging provider access token
	AccessToken    *string             `json:"accessToken,omitempty"`
	AccountOwnerId *openapi_types.UUID `json:"accountOwnerId,omitempty"`

	// AuthFailedAt Auth failed at
	AuthFailedAt *time.Time `json:"authFailedAt,omitempty"`

	// ConnectionParameters JSON object containing custom connection parameters
	ConnectionParameters *map[string]interface{} `json:"connectionParameters,omitempty"`

	// Handle The account handle (email, username, phone number, etc.)
	Handle *string `json:"handle,omitempty"`

	// HandleAliases Handle Aliases
	HandleAliases *string `json:"handleAliases,omitempty"`

	// LastCredentialsRefreshedAt Last credentials refreshed at
	LastCredentialsRefreshedAt *time.Time `json:"lastCredentialsRefreshedAt,omitempty"`

	// LastSyncHistoryId Last sync history ID
	LastSyncHistoryId *string `json:"lastSyncHistoryId,omitempty"`

	// Provider The account provider
	Provider *string `json:"provider,omitempty"`

	// RefreshToken Messaging provider refresh token
	RefreshToken *string `json:"refreshToken,omitempty"`

	// Scopes Scopes
	Scopes *[]string `json:"scopes,omitempty"`
}

NewConnectedAccount A connected account

type NewCreatedBy added in v0.2.0

type NewCreatedBy struct {
	Source *CreatedBySource `json:"source,omitempty"`
}

type NewDashboard added in v0.2.0

type NewDashboard struct {
	// CreatedBy The creator of the record
	CreatedBy *NewCreatedBy `json:"createdBy,omitempty"`

	// PageLayoutId Dashboard page layout
	PageLayoutId *openapi_types.UUID `json:"pageLayoutId,omitempty"`

	// Position Dashboard record Position
	Position *float32 `json:"position,omitempty"`

	// Title Dashboard title
	Title *string `json:"title,omitempty"`
}

NewDashboard A dashboard

type NewFavorite added in v0.2.0

type NewFavorite struct {
	CompanyId            *openapi_types.UUID `json:"companyId,omitempty"`
	DashboardId          *openapi_types.UUID `json:"dashboardId,omitempty"`
	FavoriteFolderId     *openapi_types.UUID `json:"favoriteFolderId,omitempty"`
	ForWorkspaceMemberId *openapi_types.UUID `json:"forWorkspaceMemberId,omitempty"`
	NoteId               *openapi_types.UUID `json:"noteId,omitempty"`
	OpportunityId        *openapi_types.UUID `json:"opportunityId,omitempty"`
	PersonId             *openapi_types.UUID `json:"personId,omitempty"`

	// Position Favorite position
	Position *int                `json:"position,omitempty"`
	TaskId   *openapi_types.UUID `json:"taskId,omitempty"`

	// ViewId ViewId
	ViewId            *openapi_types.UUID `json:"viewId,omitempty"`
	WorkflowId        *openapi_types.UUID `json:"workflowId,omitempty"`
	WorkflowRunId     *openapi_types.UUID `json:"workflowRunId,omitempty"`
	WorkflowVersionId *openapi_types.UUID `json:"workflowVersionId,omitempty"`
}

NewFavorite A favorite that can be accessed from the left menu

type NewFavoriteFolder added in v0.2.0

type NewFavoriteFolder struct {
	// Name Name of the favorite folder
	Name *string `json:"name,omitempty"`

	// Position Favorite folder position
	Position *int `json:"position,omitempty"`
}

FavoriteFolder A Folder of favorites

type NewMessage added in v0.2.0

type NewMessage struct {
	// HeaderMessageId Message id from the message header
	HeaderMessageId *string             `json:"headerMessageId,omitempty"`
	MessageThreadId *openapi_types.UUID `json:"messageThreadId,omitempty"`

	// ReceivedAt The date the message was received
	ReceivedAt *time.Time `json:"receivedAt,omitempty"`

	// Subject Subject
	Subject *string `json:"subject,omitempty"`

	// Text Text
	Text *string `json:"text,omitempty"`
}

NewMessage A message sent or received through a messaging channel (email, chat, etc.)

type NewMessageChannel added in v0.2.0

type NewMessageChannel struct {
	ConnectedAccountId *openapi_types.UUID `json:"connectedAccountId,omitempty"`

	// ContactAutoCreationPolicy Automatically create People records when receiving or sending emails
	ContactAutoCreationPolicy *MessageChannelContactAutoCreationPolicy `json:"contactAutoCreationPolicy,omitempty"`

	// ExcludeGroupEmails Exclude group emails
	ExcludeGroupEmails *bool `json:"excludeGroupEmails,omitempty"`

	// ExcludeNonProfessionalEmails Exclude non professional emails
	ExcludeNonProfessionalEmails *bool `json:"excludeNonProfessionalEmails,omitempty"`

	// Handle Handle
	Handle *string `json:"handle,omitempty"`

	// IsContactAutoCreationEnabled Is Contact Auto Creation Enabled
	IsContactAutoCreationEnabled *bool `json:"isContactAutoCreationEnabled,omitempty"`

	// IsSyncEnabled Is Sync Enabled
	IsSyncEnabled *bool `json:"isSyncEnabled,omitempty"`

	// MessageFolderImportPolicy Message folder import policy
	MessageFolderImportPolicy *MessageChannelMessageFolderImportPolicy `json:"messageFolderImportPolicy,omitempty"`

	// PendingGroupEmailsAction Pending action for group emails
	PendingGroupEmailsAction *MessageChannelPendingGroupEmailsAction `json:"pendingGroupEmailsAction,omitempty"`

	// SyncCursor Last sync cursor
	SyncCursor *string `json:"syncCursor,omitempty"`

	// SyncStage Sync stage
	SyncStage *MessageChannelSyncStage `json:"syncStage,omitempty"`

	// SyncStageStartedAt Sync stage started at
	SyncStageStartedAt *time.Time `json:"syncStageStartedAt,omitempty"`

	// SyncStatus Sync status
	SyncStatus *MessageChannelSyncStatus `json:"syncStatus,omitempty"`

	// SyncedAt Last sync date
	SyncedAt *time.Time `json:"syncedAt,omitempty"`

	// ThrottleFailureCount Throttle Failure Count
	ThrottleFailureCount *int `json:"throttleFailureCount,omitempty"`

	// Type Channel Type
	Type *MessageChannelType `json:"type,omitempty"`

	// Visibility Visibility
	Visibility *MessageChannelVisibility `json:"visibility,omitempty"`
}

NewMessageChannel Message Channels

type NewMessageChannelMessageAssociation added in v0.2.0

type NewMessageChannelMessageAssociation struct {
	// Direction Message Direction
	Direction        *MessageChannelMessageAssociationDirection `json:"direction,omitempty"`
	MessageChannelId *openapi_types.UUID                        `json:"messageChannelId,omitempty"`

	// MessageExternalId Message id from the messaging provider
	MessageExternalId *string             `json:"messageExternalId,omitempty"`
	MessageId         *openapi_types.UUID `json:"messageId,omitempty"`

	// MessageThreadExternalId Thread id from the messaging provider
	MessageThreadExternalId *string `json:"messageThreadExternalId,omitempty"`
}

NewMessageChannelMessageAssociation Message Synced with a Message Channel

type NewMessageFolder added in v0.2.0

type NewMessageFolder struct {
	// ExternalId External ID
	ExternalId *string `json:"externalId,omitempty"`

	// IsSentFolder Is Sent Folder
	IsSentFolder *bool `json:"isSentFolder,omitempty"`

	// IsSynced Is Synced
	IsSynced         *bool               `json:"isSynced,omitempty"`
	MessageChannelId *openapi_types.UUID `json:"messageChannelId,omitempty"`

	// Name Folder name
	Name *string `json:"name,omitempty"`

	// ParentFolderId Parent Folder ID
	ParentFolderId *string `json:"parentFolderId,omitempty"`

	// PendingSyncAction Pending action for folder sync
	PendingSyncAction *MessageFolderPendingSyncAction `json:"pendingSyncAction,omitempty"`

	// SyncCursor Sync Cursor
	SyncCursor *string `json:"syncCursor,omitempty"`
}

NewMessageFolder Folder for Message Channel

type NewMessageParticipant added in v0.2.0

type NewMessageParticipant struct {
	// DisplayName Display Name
	DisplayName *string `json:"displayName,omitempty"`

	// Handle Handle
	Handle    *string             `json:"handle,omitempty"`
	MessageId *openapi_types.UUID `json:"messageId,omitempty"`
	PersonId  *openapi_types.UUID `json:"personId,omitempty"`

	// Role Role
	Role              *MessageParticipantRole `json:"role,omitempty"`
	WorkspaceMemberId *openapi_types.UUID     `json:"workspaceMemberId,omitempty"`
}

MessageParticipant Message Participants

type NewMessageThread added in v0.2.0

type NewMessageThread = map[string]interface{}

NewMessageThread A group of related messages (e.g. email thread, chat thread)

type NewNote added in v0.2.0

type NewNote struct {
	// BodyV2 Note body
	BodyV2 *BodyV2 `json:"bodyV2,omitempty"`

	// CreatedBy The creator of the record
	CreatedBy *NewCreatedBy `json:"createdBy,omitempty"`

	// Position Note record position
	Position *float32 `json:"position,omitempty"`

	// Title Note title
	Title *string `json:"title,omitempty"`
}

NewNote A note

type NewNoteTarget added in v0.2.0

type NewNoteTarget struct {
	CompanyId     *openapi_types.UUID `json:"companyId,omitempty"`
	NoteId        *openapi_types.UUID `json:"noteId,omitempty"`
	OpportunityId *openapi_types.UUID `json:"opportunityId,omitempty"`
	PersonId      *openapi_types.UUID `json:"personId,omitempty"`
}

NoteTarget A note target

type NewOpportunity added in v0.2.0

type NewOpportunity struct {
	// Amount Opportunity amount
	Amount *Amount `json:"amount,omitempty"`

	// CloseDate Opportunity close date
	CloseDate *time.Time          `json:"closeDate,omitempty"`
	CompanyId *openapi_types.UUID `json:"companyId,omitempty"`

	// CreatedBy The creator of the record
	CreatedBy  *NewCreatedBy          `json:"createdBy,omitempty"`
	LostReason *OpportunityLostReason `json:"lostReason,omitempty"`

	// Name The opportunity name
	Name             *string             `json:"name,omitempty"`
	Organizationid   *string             `json:"organizationid,omitempty"`
	PointOfContactId *openapi_types.UUID `json:"pointOfContactId,omitempty"`

	// Position Opportunity record position
	Position *float32 `json:"position,omitempty"`

	// Stage Opportunity stage
	Stage              *OpportunityStage `json:"stage,omitempty"`
	SubscriptionActive *bool             `json:"subscriptionActive,omitempty"`
	SubscriptionAmount *int              `json:"subscriptionAmount,omitempty"`
	SubscriptionEnd    *string           `json:"subscriptionEnd,omitempty"`
	SubscriptionStart  *string           `json:"subscriptionStart,omitempty"`
}

Opportunity An opportunity

type NewPerson added in v0.2.0

type NewPerson struct {
	// AvatarUrl Contact’s avatar
	AvatarUrl *string `json:"avatarUrl,omitempty"`

	// City Contact’s city
	City      *string             `json:"city,omitempty"`
	CompanyId *openapi_types.UUID `json:"companyId,omitempty"`

	// CreatedBy The creator of the record
	CreatedBy *NewCreatedBy `json:"createdBy,omitempty"`

	// Emails Contact’s Emails
	Emails *Emails `json:"emails,omitempty"`

	// JobTitle Contact’s job title
	JobTitle   *string `json:"jobTitle,omitempty"`
	Keycloakid *string `json:"keycloakid,omitempty"`

	// LinkedinLink Contact’s Linkedin account
	LinkedinLink *Link `json:"linkedinLink,omitempty"`

	// Name Contact’s name
	Name       *Name `json:"name,omitempty"`
	Newsletter *bool `json:"newsletter,omitempty"`

	// Phones Contact’s phone numbers
	Phones *Phones `json:"phones,omitempty"`

	// Position Person record Position
	Position *float32 `json:"position,omitempty"`

	// XLink Contact’s X/Twitter account
	XLink *Link `json:"xLink,omitempty"`
}

NewPerson A Person

type NewTask added in v0.2.0

type NewTask struct {
	AssigneeId *openapi_types.UUID `json:"assigneeId,omitempty"`

	// BodyV2 Task body
	BodyV2 *BodyV2 `json:"bodyV2,omitempty"`

	// CreatedBy The creator of the record
	CreatedBy *NewCreatedBy `json:"createdBy,omitempty"`

	// DueAt Task due date
	DueAt *time.Time `json:"dueAt,omitempty"`

	// Position Task record position
	Position *float32 `json:"position,omitempty"`

	// Status Task status
	Status *TaskStatus `json:"status,omitempty"`

	// Title Task title
	Title *string `json:"title,omitempty"`
}

NewTask A task

type NewTaskTarget added in v0.2.0

type NewTaskTarget struct {
	CompanyId     *openapi_types.UUID `json:"companyId,omitempty"`
	OpportunityId *openapi_types.UUID `json:"opportunityId,omitempty"`
	PersonId      *openapi_types.UUID `json:"personId,omitempty"`
	TaskId        *openapi_types.UUID `json:"taskId,omitempty"`
}

NewTaskTarget A task target

type NewTimelineActivity added in v0.2.0

type NewTimelineActivity struct {
	// HappensAt Creation date
	HappensAt *time.Time `json:"happensAt,omitempty"`

	// LinkedObjectMetadataId Linked Object Metadata Id
	LinkedObjectMetadataId *openapi_types.UUID `json:"linkedObjectMetadataId,omitempty"`

	// LinkedRecordCachedName Cached record name
	LinkedRecordCachedName *string `json:"linkedRecordCachedName,omitempty"`

	// LinkedRecordId Linked Record id
	LinkedRecordId *openapi_types.UUID `json:"linkedRecordId,omitempty"`

	// Name Event name
	Name *string `json:"name,omitempty"`

	// Properties Json value for event details
	Properties *map[string]interface{} `json:"properties,omitempty"`

	// TargetCompany Event company
	TargetCompany *string `json:"targetCompany,omitempty"`

	// TargetDashboard Event dashboard
	TargetDashboard *string `json:"targetDashboard,omitempty"`

	// TargetNote Event note
	TargetNote *string `json:"targetNote,omitempty"`

	// TargetOpportunity Event opportunity
	TargetOpportunity *string `json:"targetOpportunity,omitempty"`

	// TargetPerson Event person
	TargetPerson *string `json:"targetPerson,omitempty"`

	// TargetTask Event task
	TargetTask *string `json:"targetTask,omitempty"`

	// TargetWorkflow Event workflow
	TargetWorkflow *string `json:"targetWorkflow,omitempty"`

	// TargetWorkflowRun Event workflow run
	TargetWorkflowRun *string `json:"targetWorkflowRun,omitempty"`

	// TargetWorkflowVersion Event workflow version
	TargetWorkflowVersion *string             `json:"targetWorkflowVersion,omitempty"`
	WorkspaceMemberId     *openapi_types.UUID `json:"workspaceMemberId,omitempty"`
}

NewTimelineActivity Aggregated / filtered event to be displayed on the timeline

type NewWorkflow added in v0.2.0

type NewWorkflow struct {
	// CreatedBy The creator of the record
	CreatedBy *NewCreatedBy `json:"createdBy,omitempty"`

	// LastPublishedVersionId The workflow last published version id
	LastPublishedVersionId *string `json:"lastPublishedVersionId,omitempty"`

	// Name The workflow name
	Name *string `json:"name,omitempty"`

	// Position Workflow record position
	Position *float32 `json:"position,omitempty"`

	// Statuses The current statuses of the workflow versions
	Statuses *[]WorkflowStatuses `json:"statuses,omitempty"`
}

NewWorkflow A workflow

type NewWorkflowAutomatedTrigger added in v0.2.0

type NewWorkflowAutomatedTrigger struct {
	// Settings The workflow automated trigger settings
	Settings map[string]interface{} `json:"settings"`

	// Type The workflow automated trigger type
	Type       WorkflowAutomatedTriggerType `json:"type"`
	WorkflowId *openapi_types.UUID          `json:"workflowId,omitempty"`
}

WorkflowAutomatedTrigger A workflow automated trigger

type NewWorkflowRun added in v0.2.0

type NewWorkflowRun struct {
	// CreatedBy The executor of the workflow
	CreatedBy *NewCreatedBy `json:"createdBy,omitempty"`

	// EndedAt Workflow run ended at
	EndedAt *time.Time `json:"endedAt,omitempty"`

	// EnqueuedAt Workflow run enqueued at
	EnqueuedAt *time.Time `json:"enqueuedAt,omitempty"`

	// Name Name of the workflow run
	Name *string `json:"name,omitempty"`

	// Position Workflow run position
	Position *float32 `json:"position,omitempty"`

	// StartedAt Workflow run started at
	StartedAt *time.Time `json:"startedAt,omitempty"`

	// State State of the workflow run
	State map[string]interface{} `json:"state"`

	// Status Workflow run status
	Status            *WorkflowRunStatus  `json:"status,omitempty"`
	WorkflowId        *openapi_types.UUID `json:"workflowId,omitempty"`
	WorkflowVersionId *openapi_types.UUID `json:"workflowVersionId,omitempty"`
}

NewWorkflowRun A workflow run

type NewWorkflowVersion added in v0.2.0

type NewWorkflowVersion struct {
	// Name The workflow version name
	Name *string `json:"name,omitempty"`

	// Position Workflow version position
	Position *float32 `json:"position,omitempty"`

	// Status The workflow version status
	Status *WorkflowVersionStatus `json:"status,omitempty"`

	// Steps Json object to provide steps
	Steps *map[string]interface{} `json:"steps,omitempty"`

	// Trigger Json object to provide trigger
	Trigger    *map[string]interface{} `json:"trigger,omitempty"`
	WorkflowId *openapi_types.UUID     `json:"workflowId,omitempty"`
}

NewWorkflowVersion A workflow version

type NewWorkspaceMember added in v0.2.0

type NewWorkspaceMember struct {
	// AvatarUrl Workspace member avatar
	AvatarUrl *string `json:"avatarUrl,omitempty"`

	// CalendarStartDay User's preferred start day of the week
	CalendarStartDay *int `json:"calendarStartDay,omitempty"`

	// ColorScheme Preferred color scheme
	ColorScheme *string `json:"colorScheme,omitempty"`

	// DateFormat User's preferred date format
	DateFormat *WorkspaceMemberDateFormat `json:"dateFormat,omitempty"`

	// Locale Preferred language
	Locale *string `json:"locale,omitempty"`

	// Name Workspace member name
	Name Name `json:"name"`

	// NumberFormat User's preferred number format
	NumberFormat *WorkspaceMemberNumberFormat `json:"numberFormat,omitempty"`

	// Position Workspace member position
	Position *float32 `json:"position,omitempty"`

	// TimeFormat User's preferred time format
	TimeFormat *WorkspaceMemberTimeFormat `json:"timeFormat,omitempty"`

	// TimeZone User time zone
	TimeZone *string `json:"timeZone,omitempty"`

	// UserEmail Related user email address
	UserEmail *string `json:"userEmail,omitempty"`

	// UserId Associated User Id
	UserId openapi_types.UUID `json:"userId"`
}

NewWorkspaceMember A workspace member

type Note

type Note struct {
	// Attachments Note attachments
	Attachments *[]Attachment `json:"attachments,omitempty"`

	// BodyV2 Note body
	BodyV2 *BodyV2 `json:"bodyV2,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// CreatedBy The creator of the record
	CreatedBy *CreatedBy `json:"createdBy,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Favorites Favorites linked to the note
	Favorites *[]Favorite `json:"favorites,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// NoteTargets Note targets
	NoteTargets *[]NoteTarget `json:"noteTargets,omitempty"`

	// Position Note record position
	Position *float32 `json:"position,omitempty"`

	// TimelineActivities Timeline Activities linked to the note.
	TimelineActivities *[]TimelineActivity `json:"timelineActivities,omitempty"`

	// Title Note title
	Title *string `json:"title,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

Note A note

type NoteTarget

type NoteTarget struct {
	// Company NoteTarget company
	Company   *Company            `json:"company,omitempty"`
	CompanyId *openapi_types.UUID `json:"companyId,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Note NoteTarget note
	Note   *Note               `json:"note,omitempty"`
	NoteId *openapi_types.UUID `json:"noteId,omitempty"`

	// Opportunity NoteTarget opportunity
	Opportunity   *Opportunity        `json:"opportunity,omitempty"`
	OpportunityId *openapi_types.UUID `json:"opportunityId,omitempty"`

	// Person NoteTarget person
	Person   *Person             `json:"person,omitempty"`
	PersonId *openapi_types.UUID `json:"personId,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

NoteTargetForResponse A note target

type Opportunity

type Opportunity struct {
	// Amount Opportunity amount
	Amount *struct {
		AmountMicros *float32 `json:"amountMicros,omitempty"`
		CurrencyCode *string  `json:"currencyCode,omitempty"`
	} `json:"amount,omitempty"`

	// Attachments Attachments linked to the opportunity
	Attachments *[]Attachment `json:"attachments,omitempty"`

	// CloseDate Opportunity close date
	CloseDate *time.Time `json:"closeDate,omitempty"`

	// Company Opportunity company
	Company   *Company            `json:"company,omitempty"`
	CompanyId *openapi_types.UUID `json:"companyId,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// CreatedBy The creator of the record
	CreatedBy *CreatedBy `json:"createdBy,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Favorites Favorites linked to the opportunity
	Favorites *[]Favorite `json:"favorites,omitempty"`

	// Id Id
	Id         *openapi_types.UUID    `json:"id,omitempty"`
	LostReason *OpportunityLostReason `json:"lostReason,omitempty"`

	// Name The opportunity name
	Name *string `json:"name,omitempty"`

	// NoteTargets Notes tied to the opportunity
	NoteTargets    *[]NoteTarget `json:"noteTargets,omitempty"`
	Organizationid *string       `json:"organizationid,omitempty"`

	// PointOfContact Opportunity point of contact
	PointOfContact   *Person             `json:"pointOfContact,omitempty"`
	PointOfContactId *openapi_types.UUID `json:"pointOfContactId,omitempty"`

	// Position Opportunity record position
	Position *float32 `json:"position,omitempty"`

	// Stage Opportunity stage
	Stage              *OpportunityStage `json:"stage,omitempty"`
	SubscriptionActive *bool             `json:"subscriptionActive,omitempty"`
	SubscriptionAmount *int              `json:"subscriptionAmount,omitempty"`
	SubscriptionEnd    *string           `json:"subscriptionEnd,omitempty"`
	SubscriptionStart  *string           `json:"subscriptionStart,omitempty"`

	// TaskTargets Tasks tied to the opportunity
	TaskTargets *[]TaskTarget `json:"taskTargets,omitempty"`

	// TimelineActivities Timeline Activities linked to the opportunity.
	TimelineActivities *[]TimelineActivity `json:"timelineActivities,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

OpportunityForResponse An opportunity

type OpportunityLostReason

type OpportunityLostReason string

OpportunityLostReason defines model for Opportunity.LostReason.

const (
	OpportunityLostReasonCOMPETITION     OpportunityLostReason = "COMPETITION"
	OpportunityLostReasonMISSINGFEATURES OpportunityLostReason = "MISSING_FEATURES"
	OpportunityLostReasonNOTUSED         OpportunityLostReason = "NOT_USED"
	OpportunityLostReasonOTHER           OpportunityLostReason = "OTHER"
	OpportunityLostReasonPRICE           OpportunityLostReason = "PRICE"
)

Defines values for OpportunityLostReason.

type OpportunityStage

type OpportunityStage string

OpportunityStage Opportunity stage

const (
	OpportunityStageACTIVE                           OpportunityStage = "ACTIVE"
	OpportunityStageCANCELED                         OpportunityStage = "CANCELED"
	OpportunityStageCLOSERCALLVEREINBART             OpportunityStage = "CLOSER_CALL_VEREINBART"
	OpportunityStageDEALLOST                         OpportunityStage = "DEAL_LOST"
	OpportunityStageDETAILSCALLVEREINBART            OpportunityStage = "DETAILS_CALL_VEREINBART"
	OpportunityStageENTSCHEIDUNGSTRAGERHATZUGESTIMMT OpportunityStage = "ENTSCHEIDUNGSTRAGER_HAT_ZUGESTIMMT"
	OpportunityStageSETTERCALLVEREINBART             OpportunityStage = "SETTER_CALL_VEREINBART"
	OpportunityStageTRIALPERIOD                      OpportunityStage = "TRIAL_PERIOD"
	OpportunityStageVERTRAGEVERSANT                  OpportunityStage = "VERTRAGE_VERSANT"
)

Defines values for OpportunityStage.

type PageInfo added in v0.1.0

type PageInfo struct {
	HasNextPage bool   `json:"hasNextPage"`
	StartCursor string `json:"startCursor"`
	EndCursor   string `json:"endCursor"`
}

type Person

type Person struct {
	// Attachments Attachments linked to the contact.
	Attachments *[]Attachment `json:"attachments,omitempty"`

	// AvatarUrl Contact’s avatar
	AvatarUrl *string `json:"avatarUrl,omitempty"`

	// CalendarEventParticipants Calendar Event Participants
	CalendarEventParticipants *[]CalendarEventParticipant `json:"calendarEventParticipants,omitempty"`

	// City Contact’s city
	City *string `json:"city,omitempty"`

	// Company Contact’s company
	Company   *Company            `json:"company,omitempty"`
	CompanyId *openapi_types.UUID `json:"companyId,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// CreatedBy The creator of the record
	CreatedBy *CreatedBy `json:"createdBy,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Emails Contact’s Emails
	Emails *Emails `json:"emails,omitempty"`

	// Favorites Favorites linked to the contact
	Favorites *[]Favorite `json:"favorites,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// JobTitle Contact’s job title
	JobTitle   *string `json:"jobTitle,omitempty"`
	Keycloakid *string `json:"keycloakid,omitempty"`

	// LinkedinLink Contact’s Linkedin account
	LinkedinLink *Link `json:"linkedinLink,omitempty"`

	// MessageParticipants Message Participants
	MessageParticipants *[]MessageParticipant `json:"messageParticipants,omitempty"`

	// Name Contact’s name
	Name       *Name `json:"name,omitempty"`
	Newsletter *bool `json:"newsletter,omitempty"`

	// NoteTargets Notes tied to the contact
	NoteTargets *[]NoteTarget `json:"noteTargets,omitempty"`

	// Phones Contact’s phone numbers
	Phones *Phones `json:"phones,omitempty"`

	// PointOfContactForOpportunities List of opportunities for which that person is the point of contact
	PointOfContactForOpportunities *[]Opportunity `json:"pointOfContactForOpportunities,omitempty"`

	// Position Person record Position
	Position *float32 `json:"position,omitempty"`

	// TaskTargets Tasks tied to the contact
	TaskTargets *[]TaskTarget `json:"taskTargets,omitempty"`

	// TimelineActivities Events linked to the person
	TimelineActivities *[]TimelineActivity `json:"timelineActivities,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// XLink Contact’s X/Twitter account
	XLink *Link `json:"xLink,omitempty"`
}

Person A person

type Phones added in v0.2.0

type Phones struct {
	AdditionalPhones        *[]string `json:"additionalPhones,omitempty"`
	PrimaryPhoneCallingCode *string   `json:"primaryPhoneCallingCode,omitempty"`
	PrimaryPhoneCountryCode *string   `json:"primaryPhoneCountryCode,omitempty"`
	PrimaryPhoneNumber      *string   `json:"primaryPhoneNumber,omitempty"`
}

type Response added in v0.1.0

type Response struct {
	Data       Data      `json:"data"`
	PageInfo   *PageInfo `json:"pageInfo,omitempty"`
	TotalCount *int      `json:"totalCount,omitempty"`
}

type RestoreManyParams added in v0.2.0

type RestoreManyParams struct {
	// Filter Format: field[COMPARATOR]:value,field2[COMPARATOR]:value2
	//     Refer to the filter section at the top of the page for more details.
	Filter *string `form:"filter,omitempty" json:"filter,omitempty"`

	// Depth Determines the level of nested related objects to include in the response.
	//     - 0: Primary object only
	//     - 1: Primary object + direct relations
	Depth *int `form:"depth,omitempty" json:"depth,string,omitempty"`
}

RestoreManyParams defines parameters for RestoreMany functions.

type RestoreOneParams added in v0.2.0

type RestoreOneParams struct {
	// Depth Determines the level of nested related objects to include in the response.
	//     - 0: Primary object only
	//     - 1: Primary object + direct relations
	Depth *int `form:"depth,omitempty" json:"depth,string,omitempty"`
}

RestoreOneParams defines parameters for RestoreOne functions.

type SecondaryLink struct {
	Label *string `json:"label,omitempty"`
	Url   *string `json:"url,omitempty"`
}

type Task

type Task struct {
	// Assignee Task assignee
	Assignee   *WorkspaceMember    `json:"assignee,omitempty"`
	AssigneeId *openapi_types.UUID `json:"assigneeId,omitempty"`

	// Attachments Task attachments
	Attachments *[]Attachment `json:"attachments,omitempty"`

	// BodyV2 Task body
	BodyV2 *BodyV2 `json:"bodyV2,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// CreatedBy The creator of the record
	CreatedBy *CreatedBy `json:"createdBy,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// DueAt Task due date
	DueAt *time.Time `json:"dueAt,omitempty"`

	// Favorites Favorites linked to the task
	Favorites *[]Favorite `json:"favorites,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Position Task record position
	Position *float32 `json:"position,omitempty"`

	// Status Task status
	Status *TaskStatus `json:"status,omitempty"`

	// TaskTargets Task targets
	TaskTargets *[]TaskTarget `json:"taskTargets,omitempty"`

	// TimelineActivities Timeline Activities linked to the task.
	TimelineActivities *[]TimelineActivity `json:"timelineActivities,omitempty"`

	// Title Task title
	Title *string `json:"title,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

Task A task

type TaskStatus

type TaskStatus string

TaskStatus Task status

const (
	TaskStatusDONE       TaskStatus = "DONE"
	TaskStatusINPROGRESS TaskStatus = "IN_PROGRESS"
	TaskStatusTODO       TaskStatus = "TODO"
)

Defines values for TaskStatus.

type TaskTarget

type TaskTarget struct {
	// Company TaskTarget company
	Company   *Company            `json:"company,omitempty"`
	CompanyId *openapi_types.UUID `json:"companyId,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Opportunity TaskTarget opportunity
	Opportunity   *Opportunity        `json:"opportunity,omitempty"`
	OpportunityId *openapi_types.UUID `json:"opportunityId,omitempty"`

	// Person TaskTarget person
	Person   *Person             `json:"person,omitempty"`
	PersonId *openapi_types.UUID `json:"personId,omitempty"`

	// Task TaskTarget task
	Task   *Task               `json:"task,omitempty"`
	TaskId *openapi_types.UUID `json:"taskId,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

TaskTarget A task target

type TimelineActivity

type TimelineActivity struct {
	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// HappensAt Creation date
	HappensAt *time.Time `json:"happensAt,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// LinkedObjectMetadataId Linked Object Metadata Id
	LinkedObjectMetadataId *openapi_types.UUID `json:"linkedObjectMetadataId,omitempty"`

	// LinkedRecordCachedName Cached record name
	LinkedRecordCachedName *string `json:"linkedRecordCachedName,omitempty"`

	// LinkedRecordId Linked Record id
	LinkedRecordId *openapi_types.UUID `json:"linkedRecordId,omitempty"`

	// Name Event name
	Name *string `json:"name,omitempty"`

	// Properties Json value for event details
	Properties *map[string]interface{} `json:"properties,omitempty"`

	// TargetCompany Event company
	TargetCompany *string `json:"targetCompany,omitempty"`

	// TargetDashboard Event dashboard
	TargetDashboard *string `json:"targetDashboard,omitempty"`

	// TargetNote Event note
	TargetNote *string `json:"targetNote,omitempty"`

	// TargetOpportunity Event opportunity
	TargetOpportunity *string `json:"targetOpportunity,omitempty"`

	// TargetPerson Event person
	TargetPerson *string `json:"targetPerson,omitempty"`

	// TargetTask Event task
	TargetTask *string `json:"targetTask,omitempty"`

	// TargetWorkflow Event workflow
	TargetWorkflow *string `json:"targetWorkflow,omitempty"`

	// TargetWorkflowRun Event workflow run
	TargetWorkflowRun *string `json:"targetWorkflowRun,omitempty"`

	// TargetWorkflowVersion Event workflow version
	TargetWorkflowVersion *string `json:"targetWorkflowVersion,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// WorkspaceMember Event workspace member
	WorkspaceMember   *WorkspaceMember    `json:"workspaceMember,omitempty"`
	WorkspaceMemberId *openapi_types.UUID `json:"workspaceMemberId,omitempty"`
}

TimelineActivityForResponse Aggregated / filtered event to be displayed on the timeline

type UpdateManyParams added in v0.2.0

type UpdateManyParams struct {
	// Depth Determines the level of nested related objects to include in the response.
	//     - 0: Primary object only
	//     - 1: Primary object + direct relations
	Depth *int `form:"depth,omitempty" json:"depth,string,omitempty"`

	// Filter Format: field[COMPARATOR]:value,field2[COMPARATOR]:value2
	//     Refer to the filter section at the top of the page for more details.
	Filter *string `form:"filter,omitempty" json:"filter,omitempty"`
}

UpdateManyParams defines parameters for UpdateMany functions.

type UpdateOneParams added in v0.2.0

type UpdateOneParams struct {
	// Depth Determines the level of nested related objects to include in the response.
	//     - 0: Primary object only
	//     - 1: Primary object + direct relations
	Depth *int `form:"depth,omitempty" json:"depth,string,omitempty"`
}

UpdateOneParams defines parameters for UpdateOne functions.

type Workflow

type Workflow struct {
	// Attachments Attachments linked to the workflow
	Attachments *[]Attachment `json:"attachments,omitempty"`

	// AutomatedTriggers Workflow automated triggers linked to the workflow.
	AutomatedTriggers *[]WorkflowAutomatedTrigger `json:"automatedTriggers,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// CreatedBy The creator of the record
	CreatedBy *CreatedBy `json:"createdBy,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Favorites Favorites linked to the workflow
	Favorites *[]Favorite `json:"favorites,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// LastPublishedVersionId The workflow last published version id
	LastPublishedVersionId *string `json:"lastPublishedVersionId,omitempty"`

	// Name The workflow name
	Name *string `json:"name,omitempty"`

	// Position Workflow record position
	Position *float32 `json:"position,omitempty"`

	// Runs Workflow runs linked to the workflow.
	Runs *[]WorkflowRun `json:"runs,omitempty"`

	// Statuses The current statuses of the workflow versions
	Statuses *[]WorkflowStatuses `json:"statuses,omitempty"`

	// TimelineActivities Timeline activities linked to the workflow
	TimelineActivities *[]TimelineActivity `json:"timelineActivities,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// Versions Workflow versions linked to the workflow.
	Versions *[]WorkflowVersion `json:"versions,omitempty"`
}

Workflow A workflow

type WorkflowAutomatedTrigger

type WorkflowAutomatedTrigger struct {
	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Settings The workflow automated trigger settings
	Settings *map[string]interface{} `json:"settings,omitempty"`

	// Type The workflow automated trigger type
	Type *WorkflowAutomatedTriggerType `json:"type,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// Workflow WorkflowAutomatedTrigger workflow
	Workflow   *Workflow           `json:"workflow,omitempty"`
	WorkflowId *openapi_types.UUID `json:"workflowId,omitempty"`
}

WorkflowAutomatedTriggerForResponse A workflow automated trigger

type WorkflowAutomatedTriggerType

type WorkflowAutomatedTriggerType string

WorkflowAutomatedTriggerType The workflow automated trigger type

const (
	WorkflowAutomatedTriggerTypeCRON          WorkflowAutomatedTriggerType = "CRON"
	WorkflowAutomatedTriggerTypeDATABASEEVENT WorkflowAutomatedTriggerType = "DATABASE_EVENT"
)

Defines values for WorkflowAutomatedTriggerType.

type WorkflowRun

type WorkflowRun struct {
	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// CreatedBy The executor of the workflow
	CreatedBy *CreatedBy `json:"createdBy,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// EndedAt Workflow run ended at
	EndedAt *time.Time `json:"endedAt,omitempty"`

	// EnqueuedAt Workflow run enqueued at
	EnqueuedAt *time.Time `json:"enqueuedAt,omitempty"`

	// Favorites Favorites linked to the workflow run
	Favorites *[]Favorite `json:"favorites,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Name Name of the workflow run
	Name *string `json:"name,omitempty"`

	// Position Workflow run position
	Position *float32 `json:"position,omitempty"`

	// StartedAt Workflow run started at
	StartedAt *time.Time `json:"startedAt,omitempty"`

	// State State of the workflow run
	State *map[string]interface{} `json:"state,omitempty"`

	// Status Workflow run status
	Status *WorkflowRunStatus `json:"status,omitempty"`

	// TimelineActivities Timeline activities linked to the run
	TimelineActivities *[]TimelineActivity `json:"timelineActivities,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// Workflow Workflow linked to the run.
	Workflow   *Workflow           `json:"workflow,omitempty"`
	WorkflowId *openapi_types.UUID `json:"workflowId,omitempty"`

	// WorkflowVersion Workflow version linked to the run.
	WorkflowVersion   *WorkflowVersion    `json:"workflowVersion,omitempty"`
	WorkflowVersionId *openapi_types.UUID `json:"workflowVersionId,omitempty"`
}

WorkflowRunForResponse A workflow run

type WorkflowRunStatus

type WorkflowRunStatus string

WorkflowRunStatus Workflow run status

const (
	WorkflowRunStatusCOMPLETED  WorkflowRunStatus = "COMPLETED"
	WorkflowRunStatusENQUEUED   WorkflowRunStatus = "ENQUEUED"
	WorkflowRunStatusFAILED     WorkflowRunStatus = "FAILED"
	WorkflowRunStatusNOTSTARTED WorkflowRunStatus = "NOT_STARTED"
	WorkflowRunStatusRUNNING    WorkflowRunStatus = "RUNNING"
	WorkflowRunStatusSTOPPED    WorkflowRunStatus = "STOPPED"
	WorkflowRunStatusSTOPPING   WorkflowRunStatus = "STOPPING"
)

Defines values for WorkflowRunStatus.

type WorkflowStatuses

type WorkflowStatuses string

WorkflowStatuses defines model for Workflow.Statuses.

const (
	WorkflowStatusesACTIVE      WorkflowStatuses = "ACTIVE"
	WorkflowStatusesDEACTIVATED WorkflowStatuses = "DEACTIVATED"
	WorkflowStatusesDRAFT       WorkflowStatuses = "DRAFT"
)

Defines values for WorkflowStatuses.

type WorkflowVersion

type WorkflowVersion struct {
	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Favorites Favorites linked to the workflow version
	Favorites *[]Favorite `json:"favorites,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Name The workflow version name
	Name *string `json:"name,omitempty"`

	// Position Workflow version position
	Position *float32 `json:"position,omitempty"`

	// Runs Workflow runs linked to the version.
	Runs *[]WorkflowRun `json:"runs,omitempty"`

	// Status The workflow version status
	Status *WorkflowVersionStatus `json:"status,omitempty"`

	// Steps Json object to provide steps
	Steps *map[string]interface{} `json:"steps,omitempty"`

	// TimelineActivities Timeline activities linked to the version
	TimelineActivities *[]TimelineActivity `json:"timelineActivities,omitempty"`

	// Trigger Json object to provide trigger
	Trigger *map[string]interface{} `json:"trigger,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// Workflow WorkflowVersion workflow
	Workflow   *Workflow           `json:"workflow,omitempty"`
	WorkflowId *openapi_types.UUID `json:"workflowId,omitempty"`
}

WorkflowVersion A workflow version

type WorkflowVersionStatus

type WorkflowVersionStatus string

WorkflowVersionStatus The workflow version status

const (
	WorkflowVersionStatusACTIVE      WorkflowVersionStatus = "ACTIVE"
	WorkflowVersionStatusARCHIVED    WorkflowVersionStatus = "ARCHIVED"
	WorkflowVersionStatusDEACTIVATED WorkflowVersionStatus = "DEACTIVATED"
	WorkflowVersionStatusDRAFT       WorkflowVersionStatus = "DRAFT"
)

Defines values for WorkflowVersionStatus.

type WorkspaceMember

type WorkspaceMember struct {
	// AccountOwnerForCompanies Account owner for companies
	AccountOwnerForCompanies *[]Company `json:"accountOwnerForCompanies,omitempty"`

	// AssignedTasks Tasks assigned to the workspace member
	AssignedTasks *[]Task `json:"assignedTasks,omitempty"`

	// AuthoredAttachments Attachments created by the workspace member
	AuthoredAttachments *[]Attachment `json:"authoredAttachments,omitempty"`

	// AvatarUrl Workspace member avatar
	AvatarUrl *string `json:"avatarUrl,omitempty"`

	// Blocklist Blocklisted handles
	Blocklist *[]Blocklist `json:"blocklist,omitempty"`

	// CalendarEventParticipants Calendar Event Participants
	CalendarEventParticipants *[]CalendarEventParticipant `json:"calendarEventParticipants,omitempty"`

	// CalendarStartDay User's preferred start day of the week
	CalendarStartDay *int `json:"calendarStartDay,omitempty"`

	// ColorScheme Preferred color scheme
	ColorScheme *string `json:"colorScheme,omitempty"`

	// ConnectedAccounts Connected accounts
	ConnectedAccounts *[]ConnectedAccount `json:"connectedAccounts,omitempty"`

	// CreatedAt Creation date
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// DateFormat User's preferred date format
	DateFormat *WorkspaceMemberDateFormat `json:"dateFormat,omitempty"`

	// DeletedAt Date when the record was deleted
	DeletedAt *time.Time `json:"deletedAt,omitempty"`

	// Favorites Favorites linked to the workspace member
	Favorites *[]Favorite `json:"favorites,omitempty"`

	// Id Id
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Locale Preferred language
	Locale *string `json:"locale,omitempty"`

	// MessageParticipants Message Participants
	MessageParticipants *[]MessageParticipant `json:"messageParticipants,omitempty"`

	// Name Workspace member name
	Name *Name `json:"name,omitempty"`

	// NumberFormat User's preferred number format
	NumberFormat *WorkspaceMemberNumberFormat `json:"numberFormat,omitempty"`

	// Position Workspace member position
	Position *float32 `json:"position,omitempty"`

	// TimeFormat User's preferred time format
	TimeFormat *WorkspaceMemberTimeFormat `json:"timeFormat,omitempty"`

	// TimeZone User time zone
	TimeZone *string `json:"timeZone,omitempty"`

	// TimelineActivities Events linked to the workspace member
	TimelineActivities *[]TimelineActivity `json:"timelineActivities,omitempty"`

	// UpdatedAt Last time the record was changed
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// UserEmail Related user email address
	UserEmail *string `json:"userEmail,omitempty"`

	// UserId Associated User Id
	UserId *openapi_types.UUID `json:"userId,omitempty"`
}

WorkspaceMember A workspace member

type WorkspaceMemberDateFormat

type WorkspaceMemberDateFormat string

WorkspaceMemberDateFormat User's preferred date format

const (
	WorkspaceMemberDateFormatDAYFIRST   WorkspaceMemberDateFormat = "DAY_FIRST"
	WorkspaceMemberDateFormatMONTHFIRST WorkspaceMemberDateFormat = "MONTH_FIRST"
	WorkspaceMemberDateFormatSYSTEM     WorkspaceMemberDateFormat = "SYSTEM"
	WorkspaceMemberDateFormatYEARFIRST  WorkspaceMemberDateFormat = "YEAR_FIRST"
)

Defines values for WorkspaceMemberDateFormat.

type WorkspaceMemberNumberFormat

type WorkspaceMemberNumberFormat string

WorkspaceMemberNumberFormat User's preferred number format

const (
	WorkspaceMemberNumberFormatAPOSTROPHEANDDOT WorkspaceMemberNumberFormat = "APOSTROPHE_AND_DOT"
	WorkspaceMemberNumberFormatCOMMASANDDOT     WorkspaceMemberNumberFormat = "COMMAS_AND_DOT"
	WorkspaceMemberNumberFormatDOTSANDCOMMA     WorkspaceMemberNumberFormat = "DOTS_AND_COMMA"
	WorkspaceMemberNumberFormatSPACESANDCOMMA   WorkspaceMemberNumberFormat = "SPACES_AND_COMMA"
	WorkspaceMemberNumberFormatSYSTEM           WorkspaceMemberNumberFormat = "SYSTEM"
)

Defines values for WorkspaceMemberNumberFormat.

type WorkspaceMemberTimeFormat

type WorkspaceMemberTimeFormat string

WorkspaceMemberTimeFormat User's preferred time format

const (
	WorkspaceMemberTimeFormatHOUR12 WorkspaceMemberTimeFormat = "HOUR_12"
	WorkspaceMemberTimeFormatHOUR24 WorkspaceMemberTimeFormat = "HOUR_24"
	WorkspaceMemberTimeFormatSYSTEM WorkspaceMemberTimeFormat = "SYSTEM"
)

Defines values for WorkspaceMemberTimeFormat.

Jump to

Keyboard shortcuts

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