Versions in this module Expand all Collapse all v0 v0.1.0 Aug 11, 2026 Changes in this version + type APIVersionResponse struct + Version string type AgentAPI + func (a *AgentAPI) SessionAttendances(ctx context.Context, filter AgentSessionListFilter) (*PaginatedResponse[Attendance], error) + func (a *AgentAPI) SessionWaits(ctx context.Context, filter AgentSessionListFilter) (*PaginatedResponse[Attendance], error) + func (a *AgentAPI) UpdateProfile(ctx context.Context, req AgentProfileUpdateRequest) (*AgentProfileUpdateResponse, error) + func (a *AgentAPI) UploadPhoto(ctx context.Context, filename string, photo io.Reader) (*AgentPhotoUploadResponse, error) type AgentOnline + Begin string + CampaignsOnline []TeamSummary + CreatedAt string + End string + Groups []string + History string + Language string + MsTeams any + PasswordCallcenter string + Pause any + Photo string + Ramal string + SessionToken string + UpdatedAt string + UsernameCallcenter string + type AgentPauseAPI struct + func (a *AgentPauseAPI) List(ctx context.Context, opts ListOptions) (*PaginatedResponse[Pause], error) + func (a *AgentPauseAPI) Progress(ctx context.Context, newVersion bool) (*AgentPauseProgress, error) + func (a *AgentPauseAPI) Start(ctx context.Context, req AgentPauseStartRequest) (*AgentPauseStartResponse, error) + func (a *AgentPauseAPI) Stop(ctx context.Context, pauseID string) (string, error) + type AgentPauseProgress struct + Pause struct{ ... } + Status int + type AgentPauseStartRequest struct + IsNewPause bool + IsPausePersonalized bool + PauseID string + type AgentPauseStartResponse struct + Message string + Pause Pause + type AgentPhotoUploadResponse struct + Date string + Success bool + type AgentProfileUpdateRequest struct + DefaultLanguage string + Name string + NewPassword string + Password string + Ramal int + type AgentProfileUpdateResponse struct + Message string + Success bool + type AgentSessionListFilter struct + ContactPlus bool + Name string + Page int + Paginate bool + type AgentTeam struct + CreatedAt string + History string + ID string + MessageAgent string + MessageEnd string + Name string + RuleAttendance string + Tabulations string + Timer any + Transhipment string + UpdatedAt string + type Attendance struct + AgentID string + AgentsConference []string + CampaignFinishMessage string + CampaignID string + ChannelID string + ContactAlreadyStarted bool + ContactID string + ContinueFlow bool + CreatedAt string + Events []AttendanceEvent + FinishedAt string + Group string + ID string + IsAttendance bool + LastInteraction string + MenuAttempts int + Name string + Phase string + Platform string + PlatformID string + Position int + Protocol string + Status string + Tags []AttendanceTag + Talks []AttendanceTalk + TimerAccept string + TimerOnWait string + Wait string + WaitingByCodename bool + type AttendanceAPI struct + func (a *AttendanceAPI) Accept(ctx context.Context, req AttendanceAcceptRequest) (string, error) + func (a *AttendanceAPI) ConferenceAccept(ctx context.Context, req AttendanceConferenceAcceptRequest) (string, error) + func (a *AttendanceAPI) ConferenceFinish(ctx context.Context, req AttendanceConferenceFinishRequest) (string, error) + func (a *AttendanceAPI) ConferenceInvite(ctx context.Context, req AttendanceConferenceInviteRequest) (string, error) + func (a *AttendanceAPI) Find(ctx context.Context, filter AttendanceFindFilter) (*PaginatedResponse[Attendance], error) + func (a *AttendanceAPI) FindByPhase(ctx context.Context, phase string) ([]Attendance, error) + func (a *AttendanceAPI) Finish(ctx context.Context, req AttendanceFinishRequest) (string, error) + func (a *AttendanceAPI) Historic(ctx context.Context, contactID string) (*AttendanceHistoricResponse, error) + func (a *AttendanceAPI) HistoricByInterval(ctx context.Context, filter AttendanceHistoricIntervalFilter) (*PaginatedResponse[AttendanceHistoricIntervalEntry], error) + func (a *AttendanceAPI) HistoricByPeriod(ctx context.Context, req AttendanceHistoricByPeriodRequest) (*AttendanceHistoricByPeriodResponse, error) + func (a *AttendanceAPI) HistoricByProtocol(ctx context.Context, protocolID string) (*AttendanceDetail, error) + func (a *AttendanceAPI) HistoricMessages(ctx context.Context, req AttendanceHistoricMessagesRequest) ([]AttendanceHistoricMessage, error) + func (a *AttendanceAPI) Init(ctx context.Context, req AttendanceInitRequest) (*AttendanceInitResponse, error) + func (a *AttendanceAPI) Show(ctx context.Context, req AttendanceShowRequest) (*AttendanceDetail, error) + func (a *AttendanceAPI) Transfer(ctx context.Context, req AttendanceTransferRequest) (string, error) + type AttendanceAcceptRequest struct + Agent string + AttendanceID string + SessionID string + type AttendanceConferenceAcceptRequest struct + Accept bool + SessionID string + type AttendanceConferenceFinishRequest struct + SessionID string + type AttendanceConferenceInviteRequest struct + AgentID string + SessionID string + type AttendanceDetail struct + AttendanceTimer struct{ ... } + Campaign *Team + Channel *Channel + Contact *Contact + Lite bool + ReportAt string + Tabulation any + type AttendanceEvent struct + AgentFrom string + AgentTo string + CampaignTo string + CreatedAt string + Event string + type AttendanceFindFilter struct + AgentID string + CampaignID string + ChannelID string + ContactID string + Name string + Platform string + PlatformID string + Protocol string + Status string + type AttendanceFinishRequest struct + SessionID string + TabulationID string + type AttendanceHistoricByPeriodEntry struct + AgentName []string + CampaignName []string + ChannelID string + ChannelPlatform string + CreatedAt string + FinishedAt string + ID string + PlatformID string + Protocol string + SessionID string + StatusAttendance string + TME float64 + type AttendanceHistoricByPeriodRequest struct + ContactID string + Period string + Platform string + StatusAttendance string + type AttendanceHistoricByPeriodResponse struct + Attendances []AttendanceHistoricByPeriodEntry + type AttendanceHistoricEntry struct + CreatedAt string + FinishedAt string + ID string + Protocol string + type AttendanceHistoricIntervalEntry struct + CreatedAt string + Email string + FinishedAt string + ID string + PlatformID string + Protocol string + StatusAttendance string + type AttendanceHistoricIntervalFilter struct + ContactID string + Email string + EndDate string + InitialDate string + PerPage int + PlatformID string + StatusAttendance string + type AttendanceHistoricMessage struct + Blocked bool + CreatedAt string + Message string + MessageID string + MessageRef string + Origin string + Privacy string + RequestID string + Type string + type AttendanceHistoricMessagesRequest struct + CreatedAt string + FinishedAt string + SessionID string + type AttendanceHistoricProtocolRequest struct + ProtocolID string + type AttendanceHistoricResponse struct + Attendances []AttendanceHistoricEntry + Periods []string + type AttendanceInitRequest struct + AgentID string + ChannelID string + ContactID string + HSMID string + PlaceholdersParams []string + Platform string + TagMessage string + TagType string + TeamID string + type AttendanceInitResponse struct + Message string + Response struct{ ... } + Success bool + type AttendanceMessage struct + AgentTo string + CreatedAt string + Message string + type AttendanceShowRequest struct + ContactID string + SessionID string + type AttendanceTag struct + Answer string + CreatedAt string + Question string + Tag string + Type string + type AttendanceTalk struct + Blocked bool + CreatedAt string + Message string + MessageID string + MessageRef string + Origin string + RequestID string + Type string + type AttendanceTransferRequest struct + AgentID string + AttendanceID string + SessionID string + TransferWait bool + Type string + type BlockedNumber struct + CreatedAt string + ID string + Number string + UpdatedAt string + type BlockedNumberAPI struct + func (a *BlockedNumberAPI) Create(ctx context.Context, number string) (*BlockedNumber, error) + func (a *BlockedNumberAPI) Delete(ctx context.Context, id string) error + func (a *BlockedNumberAPI) List(ctx context.Context, opts ListOptions) (*PaginatedResponse[BlockedNumber], error) + func (a *BlockedNumberAPI) Update(ctx context.Context, id, number string) (*BlockedNumber, error) + type ClickToCallAPI struct + func (a *ClickToCallAPI) Call(ctx context.Context, contactID string) (*ClickToCallResponse, error) + type ClickToCallResponse struct + Message string + Status bool type Client + AgentPauseAPI *AgentPauseAPI + AttendanceAPI *AttendanceAPI + BlockedNumberAPI *BlockedNumberAPI + ClickToCallAPI *ClickToCallAPI + ContactFieldAPI *ContactFieldAPI + CopilotAPI *CopilotAPI + GalleryAPI *GalleryAPI + GenericChannelAPI *GenericChannelAPI + HSMAPI *HSMAPI + MultichannelAPI *MultichannelAPI + PlaceholderAPI *PlaceholderAPI + PredefinedMessageAPI *PredefinedMessageAPI + ReportAPI *ReportAPI + TagAPI *TagAPI + TimeGroupAPI *TimeGroupAPI + TranslationAPI *TranslationAPI + UserGroupAPI *UserGroupAPI + WebRTCAPI *WebRTCAPI + WhatsAppAPI *WhatsAppAPI + WordFilterAgentAPI *WordFilterAgentAPI + WordFilterContactAPI *WordFilterContactAPI + func (c *Client) APIVersion(ctx context.Context) (*APIVersionResponse, error) + func (c *Client) LoginV2(ctx context.Context) (*LoginResponse, error) + func (c *Client) Refresh(ctx context.Context) (*RefreshResponse, error) type ContactAPI + func (a *ContactAPI) MergeLink(ctx context.Context, mainContactID, mergeContactID string) (*ContactMergeLinkResponse, error) + func (a *ContactAPI) MergeSimilar(ctx context.Context, filter ContactMergeCandidateFilter) (*PaginatedResponse[Contact], error) + func (a *ContactAPI) Recents(ctx context.Context, search string) ([]RecentContact, error) + func (a *ContactAPI) Related(ctx context.Context, contactID string) (*PaginatedResponse[Contact], error) + func (a *ContactAPI) Unmerge(ctx context.Context, contactID string) (bool, error) + type ContactField struct + AllowSearch bool + Conditional string + Confidential bool + CreatedAt string + Description string + DescriptionAgent bool + Encrypted bool + ID string + Identifier bool + Name string + Required bool + TotalCharacters string + UpdatedAt string + Validation string + type ContactFieldAPI struct + func (a *ContactFieldAPI) Create(ctx context.Context, field ContactField) (*ContactField, error) + func (a *ContactFieldAPI) Delete(ctx context.Context, id string) (*ContactFieldDeleteResponse, error) + func (a *ContactFieldAPI) List(ctx context.Context) ([]ContactField, error) + func (a *ContactFieldAPI) Update(ctx context.Context, id string, field ContactField) (*ContactField, error) + type ContactFieldDeleteResponse struct + Date string + Message string + Success []bool + type ContactMergeCandidateFilter struct + ContactID string + Page int + PerPage int + Search string + type ContactMergeLinkResponse struct + LinkTo string + MainContact string + MergeWith string + type CopilotAPI struct + func (a *CopilotAPI) Execute(ctx context.Context, req CopilotExecuteRequest) (*CopilotExecuteResponse, error) + func (a *CopilotAPI) List(ctx context.Context, search string) ([]CopilotAssistant, error) + type CopilotAssistant struct + Description string + ID string + Name string + type CopilotExecuteRequest struct + Content string + RestID string + ShowSourceContent bool + type CopilotExecuteResponse struct + Items map[string]string + Result string + SourceContent string + Status string + func (r *CopilotExecuteResponse) UnmarshalJSON(data []byte) error + type DetectLanguageRequest struct + ContactID string + Message string + type DetectLanguageResponse struct + Confidence float64 + Language string + Message string + type GalleryAPI struct + func (a *GalleryAPI) Medias(ctx context.Context, contactID, mediaType string, limit int) (*GalleryMediasResponse, error) + type GalleryMedia struct + AgentName string + Blocked bool + CreatedAt string + Filename string + FinishedAt string + Legend string + MessageID string + MimeType string + Origin string + Protocol string + RequestID string + SessionCreatedAt string + SessionID string + Status string + StorageID string + Type string + User struct{ ... } + UserID string + type GalleryMediasResponse struct + CurrentSession []GalleryMedia + HistoricSessions PaginatedResponse[GalleryMedia] + type GenericChannelAPI struct + func (a *GenericChannelAPI) SendDeviceNotification(ctx context.Context, apiKey string, ...) (*GenericChannelSendResponse, error) + func (a *GenericChannelAPI) SendMessage(ctx context.Context, apiKey string, req GenericChannelSendRequest) (*GenericChannelSendResponse, error) + type GenericChannelContact struct + PlatformID string + Profile GenericChannelContactProfile + VCard string + type GenericChannelContactProfile struct + Name string + Photo string + type GenericChannelDeviceNotificationRequest struct + Device GenericChannelDeviceStatus + Type string + type GenericChannelDeviceStatus struct + ID string + Status string + Timestamp int64 + type GenericChannelLocation struct + Latitude float64 + Longitude float64 + type GenericChannelMedia struct + Caption string + Filename string + MimeType string + URL string + type GenericChannelMessage struct + Audio *GenericChannelMedia + Document *GenericChannelMedia + From string + ID string + Image *GenericChannelMedia + Location *GenericChannelLocation + Text *GenericChannelText + Timestamp string + Type string + Video *GenericChannelMedia + type GenericChannelOutboundMessage struct + Audio *GenericChannelMedia + ChannelID string + Contact ... + ContactID string + Document *GenericChannelMedia + Image *GenericChannelMedia + Location *GenericChannelLocation + SessionID string + Text *GenericChannelText + To string + Type string + Video *GenericChannelMedia + type GenericChannelSendRequest struct + Contacts []GenericChannelContact + Messages []GenericChannelMessage + type GenericChannelSendResponse struct + Status bool + type GenericChannelText struct + Body string + type HSMAPI struct + func (a *HSMAPI) ListAll(ctx context.Context, req HSMListRequest) ([]HSMTemplate, error) + type HSMBroker struct + Name string + Status string + type HSMListRequest struct + AttendanceID string + ChannelID string + type HSMTag struct + Placeholder string + TagsValue string + type HSMTemplate struct + Broker any + Category string + Message []string + Name string + Tags []HSMTag + Visibility string type MessageAPI + func (a *MessageAPI) DownloadMedia(ctx context.Context, storageID string) (data []byte, contentType string, err error) + type Multichannel struct + Channels []string + ColorBackground string + ColorButtonText string + ColorButtons string + CreatedAt string + ID string + Link string + UpdatedAt string + type MultichannelAPI struct + func (a *MultichannelAPI) Create(ctx context.Context, m Multichannel) (*Multichannel, error) + func (a *MultichannelAPI) Delete(ctx context.Context, id string) error + func (a *MultichannelAPI) List(ctx context.Context, opts ListOptions) (*PaginatedResponse[Multichannel], error) + func (a *MultichannelAPI) Update(ctx context.Context, id string, m Multichannel) (*Multichannel, error) + type PlaceholderAPI struct + func (a *PlaceholderAPI) Resolve(ctx context.Context, req PlaceholderResolveRequest) ([]string, error) + type PlaceholderResolveRequest struct + AgentID string + ContactID string + PlaceholdersParams []string + SessionID string + type PredefinedMessage struct + CreatedAt string + Description string + ID string + Message []PredefinedMessagePart + UpdatedAt string + type PredefinedMessageAPI struct + func (a *PredefinedMessageAPI) Create(ctx context.Context, msg PredefinedMessage) (*PredefinedMessage, error) + func (a *PredefinedMessageAPI) Delete(ctx context.Context, id string) error + func (a *PredefinedMessageAPI) Get(ctx context.Context, id string) (*PredefinedMessage, error) + func (a *PredefinedMessageAPI) List(ctx context.Context, opts ListOptions) (*PaginatedResponse[PredefinedMessage], error) + func (a *PredefinedMessageAPI) Update(ctx context.Context, id string, msg PredefinedMessage) (*PredefinedMessage, error) + type PredefinedMessagePart struct + Message string + Type string + type RecentContact struct + AgentID string + CampaignID string + ChannelID string + ContactID string + CreatedAt string + ID string + IsAttendance bool + LastChannel string + LastInteraction string + Name string + Photo string + Platform string + PlatformID string + ReportAt string + SessionID string + Status string + type ReportAPI struct + func (a *ReportAPI) Attendances(ctx context.Context, filter ReportAttendancesFilter) (*ReportAttendancesResponse, error) + type ReportAttendanceEntry struct + AgentLogin string + AgentName string + Attendances int + CampaignName string + ChannelDescription string + TotalHSM int + TotalMessages int + TotalSessionMessages int + type ReportAttendancesFilter struct + Campaigns string + ChannelID string + EndDate string + InitialDate string + Page int + Type string + type ReportAttendancesResponse struct + LastPage int + Page int + Results []ReportAttendanceEntry + Total int + type TagAPI struct + func (a *TagAPI) ListCategories(ctx context.Context, name string, paginate bool) ([]TagCategory, error) + func (a *TagAPI) RemoveSessionTag(ctx context.Context, sessionID, tagID string) (string, error) + func (a *TagAPI) SetSessionTag(ctx context.Context, sessionID, tagID string) (string, error) + type TagCategory struct + Campaigns []string + CreatedAt string + ID string + Name string + Type string + UpdatedAt string type TeamAPI + func (a *TeamAPI) UpdateAndScanFields(ctx context.Context, id string, team Team) (*TeamUpdateResponse, error) + type TimeGroup struct + CreatedAt string + Group []TimeGroupRange + ID string + Name string + UpdatedAt string + type TimeGroupAPI struct + func (a *TimeGroupAPI) Create(ctx context.Context, group TimeGroup) (*TimeGroup, error) + func (a *TimeGroupAPI) Delete(ctx context.Context, id string) error + func (a *TimeGroupAPI) List(ctx context.Context, opts ListOptions) (*PaginatedResponse[TimeGroup], error) + func (a *TimeGroupAPI) Update(ctx context.Context, id string, group TimeGroup) (*TimeGroup, error) + type TimeGroupRange struct + Description string + FinalDay string + FinalMonth int + FinalTime string + FinalWeek int + Hour string + InitialDay string + InitialMonth int + InitialTime string + InitialWeek int + type ToggleAutoTranslateResponse struct + AutoTranslate bool + Success bool + type TranslateRequest struct + Language string + Message string + MessageID string + SessionID string + type TranslateResponse struct + DetectedSourceLanguage string + TranslatedText string + type TranslationAPI struct + func (a *TranslationAPI) DetectLanguage(ctx context.Context, req DetectLanguageRequest) (*DetectLanguageResponse, error) + func (a *TranslationAPI) ToggleAutoTranslate(ctx context.Context, sessionID string) (*ToggleAutoTranslateResponse, error) + func (a *TranslationAPI) Translate(ctx context.Context, req TranslateRequest) (*TranslateResponse, error) + type UserGroup struct + CreatedAt string + GeneralSelectedTeams []string + ID string + Master bool + Name string + Permissions []string + UpdatedAt string + ViewByTeams bool + type UserGroupAPI struct + func (a *UserGroupAPI) Create(ctx context.Context, group UserGroup) (*UserGroup, error) + func (a *UserGroupAPI) Delete(ctx context.Context, id string) error + func (a *UserGroupAPI) List(ctx context.Context, opts ListOptions) (*PaginatedResponse[UserGroup], error) + func (a *UserGroupAPI) Update(ctx context.Context, id string, group UserGroup) (*UserGroup, error) + type WebRTCAPI struct + func (a *WebRTCAPI) Get(ctx context.Context, agentID string) (*WebRTCConfig, error) + type WebRTCConfig struct + CloseWindowButton bool + Enabled bool + Height int + RefreshWindowButton bool + URL string + Width int + type WebhookAgentMessageData struct + AgentFrom string + AgentTo string + CreatedAt string + Legend string + Message string + StorageID string + Type string + type WebhookAgentPauseData struct + Pause WebhookPause + UserID string + type WebhookAgentSessionData struct + Session struct{ ... } + SessionID string + type WebhookConferenceData struct + AgentAcceptedConfer string + AgentExitConfer string + AgentInvited string + AgentsConference []string + type WebhookEnvelope struct + Data map[string]any + Webhook WebhookInfo + type WebhookInfo struct + App string + Host string + Key string + Label string + type WebhookMessageData struct + CreatedAt string + Legend string + Message string + MessageID string + Origin string + PlatformID string + StorageID string + Type string + type WebhookPause struct + StartedAt string + type WebhookSessionAgent struct + Codename string + CreatedAt string + Email string + ID string + IP string + Name string + OriginApp bool + OriginWeb bool + Status string + type WebhookSessionData struct + AgentID string + CampaignID string + ChannelID string + ContactID string + CountMessagesNotification int + CreatedAt string + ID string + IsAttendance string + LastInteraction string + Name string + Platform string + PlatformID string + Protocol string + Status string + TabulationID string + TabulationName string + type WhatsAppAPI struct + func (a *WhatsAppAPI) CreateAttendance(ctx context.Context, apiKey string, req WhatsAppCreateAttendanceRequest) (*WhatsAppCreateAttendanceResponse, error) + type WhatsAppCreateAttendanceRequest struct + AgentHandoff bool + AgentsGroupID string + ChatUserID string + ChatUserName string + ChatUserPhoto string + CustomerID string + Messages []WhatsAppMessage + type WhatsAppCreateAttendanceResponse struct + Message string + Status bool + type WhatsAppMessage struct + EventAt int64 + Message WhatsAppMessageContent + MessageID string + SenderType string + type WhatsAppMessageContent struct + Caption string + FileName string + MediaURL string + MimeType string + Text string + Type string + type WordFilter struct + CreatedAt string + ID string + Type string + UpdatedAt string + Word string + type WordFilterAgentAPI struct + func (a *WordFilterAgentAPI) Create(ctx context.Context, word string) (*WordFilter, error) + func (a *WordFilterAgentAPI) Delete(ctx context.Context, id string) error + func (a *WordFilterAgentAPI) List(ctx context.Context, opts ListOptions) (*PaginatedResponse[WordFilter], error) + func (a *WordFilterAgentAPI) Update(ctx context.Context, id, word string) (*WordFilter, error) + type WordFilterContactAPI struct + func (a *WordFilterContactAPI) Create(ctx context.Context, word string) (*WordFilter, error) + func (a *WordFilterContactAPI) Delete(ctx context.Context, id string) error + func (a *WordFilterContactAPI) List(ctx context.Context, opts ListOptions) (*PaginatedResponse[WordFilter], error) + func (a *WordFilterContactAPI) Update(ctx context.Context, id, word string) (*WordFilter, error) v0.0.3 Aug 10, 2026 v0.0.2 Aug 8, 2026 Changes in this version type Contact + Extra map[string]any + func (c *Contact) UnmarshalJSON(data []byte) error + func (c Contact) MarshalJSON() ([]byte, error) v0.0.1 Aug 8, 2026 Changes in this version + func IsConflict(err error) bool + func IsNotFound(err error) bool + func IsRateLimited(err error) bool + func IsUnauthorized(err error) bool + func IsValidationError(err error) bool + type APIError struct + Body []byte + FieldErrors map[string][]string + Message string + StatusCode int + func (e *APIError) Error() string + type Admin struct + CreatedAt string + Email string + EmailForgotPassword string + EnableLoginWithRemoteAuth bool + GroupID string + HasAuthToken bool + ID string + Language string + LoggedAt string + Name string + SessionAgent string + SessionToken string + Status string + Type string + UpdatedAt string + type AdminAPI struct + func (a *AdminAPI) Create(ctx context.Context, req AdminRequest) (*Admin, error) + func (a *AdminAPI) Delete(ctx context.Context, id string) error + func (a *AdminAPI) Get(ctx context.Context, id string) (*Admin, error) + func (a *AdminAPI) List(ctx context.Context, opts ListOptions) (*PaginatedResponse[Admin], error) + func (a *AdminAPI) ListGroups(ctx context.Context, opts ListOptions) (*PaginatedResponse[AdminGroup], error) + func (a *AdminAPI) Update(ctx context.Context, id string, fields map[string]any) (*AdminUpdateResponse, error) + type AdminGroup struct + CreatedAt string + ID string + Master int + Name string + Permissions []string + UpdatedAt string + type AdminRequest struct + Email string + EmailForgotPassword string + EnableLoginWithRemoteAuth *bool + GroupID string + Name string + Password string + type AdminUpdateResponse struct + Date struct{ ... } + Success bool + type Agent struct + AgentPermission *AgentPermission + Begin string + Campaigns []string + Codename string + CreatedAt string + Email string + EmailForgotPassword string + EnableLoginWithRemoteAuth bool + End string + Groups []string + History string + ID string + LoggedAt string + Name string + Photo string + Ramal string + Status string + Type string + UpdatedAt string + UsernameCallcenter string + type AgentAPI struct + func (a *AgentAPI) Create(ctx context.Context, req AgentRequest) (*Agent, error) + func (a *AgentAPI) Delete(ctx context.Context, ids ...string) error + func (a *AgentAPI) Get(ctx context.Context, id string) (*Agent, error) + func (a *AgentAPI) GetByEmail(ctx context.Context, email string) (*Agent, error) + func (a *AgentAPI) List(ctx context.Context, filter AgentListFilter) (*PaginatedResponse[Agent], error) + func (a *AgentAPI) ListOnlineAgents(ctx context.Context, allUsers bool, paginate string) (*PaginatedResponse[AgentOnline], error) + func (a *AgentAPI) ListOnlineStatus(ctx context.Context, platform, status string) ([]AgentOnline, error) + func (a *AgentAPI) MyAttendances(ctx context.Context) (*AgentAttendances, error) + func (a *AgentAPI) MyAttendancesPlus(ctx context.Context) (*AgentAttendances, error) + func (a *AgentAPI) MyGrades(ctx context.Context) (*AgentGrades, error) + func (a *AgentAPI) MyTeams(ctx context.Context) (*AgentTeamsResponse, error) + func (a *AgentAPI) ToggleTeam(ctx context.Context, teamID string) (string, error) + func (a *AgentAPI) Update(ctx context.Context, id string, req AgentRequest) (*Agent, error) + func (a *AgentAPI) UpdateLastInteraction(ctx context.Context) error + type AgentAttendanceContact struct + Email string + ID string + Phase string + Phone string + RecentContacts []string + Status string + UserSince string + type AgentAttendances struct + Attendance []AgentAttendanceContact + Wait []AgentAttendanceContact + type AgentConversation struct + AgentID string + Talks []AgentTalkMessage + type AgentGrades struct + Average struct{ ... } + type AgentListFilter struct + CampaignID string + Name string + type AgentOnline struct + Attendances int + Campaigns []string + Codename string + Email string + ID string + LoggedAt string + Name string + Phone string + RecentContacts []string + Status string + Type string + UserSince string + type AgentPermission struct + HandleSimultaneousAttendances bool + HideReviewStars bool + SimultaneousAttendancesLimit int + type AgentRequest struct + AgentPermission *AgentPermission + Begin string + Campaigns []string + Codename string + Email string + EmailForgotPassword string + EnableLoginWithRemoteAuth *bool + End string + Groups []string + History string + Name string + Password string + PasswordCallcenter string + Photo string + Ramal string + UsernameCallcenter string + type AgentTalkAPI struct + func (a *AgentTalkAPI) ListConversations(ctx context.Context) ([]AgentConversation, error) + func (a *AgentTalkAPI) SearchConversation(ctx context.Context, agentID string, opts ListOptions) (*PaginatedResponse[AgentTalkMessage], error) + func (a *AgentTalkAPI) SendMessage(ctx context.Context, req AgentTalkMessageRequest) (*AgentTalkSendResponse, error) + type AgentTalkMessage struct + AgentFrom string + AgentTo string + CreatedAt string + Filename string + ID string + Legend string + Message string + MimeType string + Mimetype string + StorageID string + Type string + UpdatedAt string + type AgentTalkMessageRequest struct + AgentTo string + File string + Legend string + Message string + Type string + type AgentTalkSendResponse struct + Content AgentTalkMessage + Event string + type AgentTeamsResponse struct + Agent struct{ ... } + Campaigns []TeamSummary + Success bool + type ApplicationAPI struct + func (a *ApplicationAPI) Get(ctx context.Context) (*ApplicationConfigList, error) + func (a *ApplicationAPI) GetAttendanceGrades(ctx context.Context) (*ApplicationAttendanceGrades, error) + func (a *ApplicationAPI) GetAutoMessages(ctx context.Context) (*ApplicationMessages, error) + func (a *ApplicationAPI) Update(ctx context.Context, req ApplicationUpdateRequest) (*ApplicationConfig, error) + func (a *ApplicationAPI) UpdateAttendanceGrades(ctx context.Context, req ApplicationAttendanceGrades) (*ApplicationConfig, error) + func (a *ApplicationAPI) UpdateAutoMessages(ctx context.Context, req ApplicationMessages) (*ApplicationConfig, error) + type ApplicationAttendanceGrades struct + FinalGrade any + InitialGrade any + type ApplicationAutoMessage struct + Enable bool + Message string + type ApplicationConfig struct + APIToken string + ClosingCommand string + CompletedService *ApplicationAutoMessage + CreatedAt string + DDI int + Distribuition any + FinalGrade any + ID string + InitialGrade any + Language string + Pagination int + StartedService *ApplicationAutoMessage + StorageID string + Timezone string + UpdatedAt string + WrongOption *ApplicationAutoMessage + type ApplicationConfigList struct + Configurations []ApplicationConfig + type ApplicationMessages struct + CompletedService *ApplicationAutoMessage + StartedService *ApplicationAutoMessage + WrongOption *ApplicationAutoMessage + type ApplicationUpdateRequest struct + DDI int + Language string + Pagination int + StorageID string + Timezone string + type Channel struct + BotToken string + CreatedAt string + Description string + FlowID string + ID string + MessengerToken string + Number string + Platform string + Receptive bool + UpdatedAt string + type ChannelAPI struct + func (a *ChannelAPI) List(ctx context.Context) ([]Channel, error) + func (a *ChannelAPI) ListActivePlatforms(ctx context.Context) (map[string]ChannelPlatform, error) + func (a *ChannelAPI) ListPlatforms(ctx context.Context) (map[string]ChannelPlatform, error) + type ChannelPlatform struct + Color string + Icon string + Name string + Platform string + PlatformID string + SaveRedis bool + type Client struct + AdminAPI *AdminAPI + AgentAPI *AgentAPI + AgentTalkAPI *AgentTalkAPI + ApplicationAPI *ApplicationAPI + ChannelAPI *ChannelAPI + ContactAPI *ContactAPI + ContactGroupAPI *ContactGroupAPI + MessageAPI *MessageAPI + PauseAPI *PauseAPI + TabulationAPI *TabulationAPI + TeamAPI *TeamAPI + func NewClient(baseURL, email, password string, opts ...Option) (*Client, error) + func (c *Client) Login(ctx context.Context) (*LoginResponse, error) + func (c *Client) Logout(ctx context.Context, scope string) error + func (c *Client) Me(ctx context.Context) (*User, error) + type Contact struct + Author *ContactAuthor + CreatedAt string + DDD string + DDI string + DefaultLanguage string + Email string + FinalNumber string + Group []string + ID string + Name string + Number string + Observation string + OptIn string + Platforms []ContactPlatform + StatusWhatsapp int + UpdatedAt string + type ContactAPI struct + func (a *ContactAPI) AttendanceStats(ctx context.Context, contactID, platform string) (*ContactAttendanceStats, error) + func (a *ContactAPI) Create(ctx context.Context, req ContactRequest) (*Contact, error) + func (a *ContactAPI) Delete(ctx context.Context, id string) error + func (a *ContactAPI) Get(ctx context.Context, id string) (*Contact, error) + func (a *ContactAPI) List(ctx context.Context, filter ContactListFilter) (*PaginatedResponse[Contact], error) + func (a *ContactAPI) SaveAnnotation(ctx context.Context, req ContactAnnotationRequest) (*ContactAnnotation, error) + func (a *ContactAPI) Search(ctx context.Context, filter ContactListFilter) (*PaginatedResponse[Contact], error) + func (a *ContactAPI) Update(ctx context.Context, id string, req ContactRequest) (*Contact, error) + func (a *ContactAPI) UpdateFields(ctx context.Context, id string, fields map[string]any) (map[string]any, error) + type ContactAnnotation struct + Author *ContactAuthor + CreatedAt string + Observation string + UpdatedAt string + type ContactAnnotationRequest struct + AgentID string + ContactID string + Observation string + type ContactAttendanceStats struct + LastAttendanceDate string + TotalMonthAttendances int + WeeklyAttendances int + type ContactAuthor struct + AgentID string + Date struct{ ... } + Name string + type ContactGroup struct + CreatedAt string + ID string + NameGroup string + OptIn any + UpdatedAt string + type ContactGroupAPI struct + func (a *ContactGroupAPI) Create(ctx context.Context, name string) (*ContactGroup, error) + func (a *ContactGroupAPI) Delete(ctx context.Context, id string) error + func (a *ContactGroupAPI) List(ctx context.Context, opts ListOptions) (*PaginatedResponse[ContactGroup], error) + func (a *ContactGroupAPI) ListByContact(ctx context.Context, contactID string) ([]ContactGroupSummary, error) + func (a *ContactGroupAPI) Update(ctx context.Context, id, name string) (*ContactGroup, error) + type ContactGroupSummary struct + ID string + Name string + type ContactListFilter struct + Email string + EndCreatedAt string + Name string + Platform string + PlatformID string + StartCreatedAt string + UpdatedAt string + type ContactPlatform struct + Platform string + PlatformID string + type ContactRequest struct + ChatWeb string + ContactToMerge []string + DDI string + DefaultLanguage string + Email string + Extra map[string]any + FinalNumber string + GoogleChat string + Group []string + Instagram string + InstagramDirect string + MercadoLivre string + Messenger string + Name string + Number string + OptIn string + OptinGupshup *bool + SMS string + Telegram string + Whatsapp string + WhatsappBusiness string + func (r ContactRequest) MarshalJSON() ([]byte, error) + type ListOptions struct + Limit int + Page int + Paginate string + type LoginResponse struct + Token string + User User + type MessageAPI struct + func (a *MessageAPI) AddAnnotation(ctx context.Context, messageID string, note map[string]any) (map[string]any, error) + func (a *MessageAPI) Pending(ctx context.Context, params map[string]any) (map[string]any, error) + func (a *MessageAPI) Read(ctx context.Context, params map[string]any) (map[string]any, error) + func (a *MessageAPI) RemoveAnnotation(ctx context.Context, messageID string) error + func (a *MessageAPI) ReplaceVars(ctx context.Context, params map[string]any) (map[string]any, error) + func (a *MessageAPI) Send(ctx context.Context, req SendMessageRequest) (*SendMessageResponse, error) + func (a *MessageAPI) SendPlus(ctx context.Context, req SendMessagePlusRequest) (*SendMessageResponse, error) + type MessageEmailAttachment struct + Content string + Filename string + MimeType string + type Option func(*Client) + func WithDeviceToken(deviceToken string) Option + func WithHTTPClient(httpClient *http.Client) Option + func WithRetry(maxRetries int, waitMin, waitMax time.Duration) Option + type PaginatedResponse struct + CurrentPage int + Data []T + FirstPageURL string + From int + LastPage int + LastPageURL string + NextPageURL *string + Path string + PerPage int + PrevPageURL *string + To int + Total int + type Pause struct + Active bool + ContinueAttendance bool + CreatedAt string + Cumulative bool + Description string + ID string + InitialTime int + MaxTime int + Message string + Name string + Productive bool + Supervisioned bool + UpdatedAt string + type PauseAPI struct + func (a *PauseAPI) Create(ctx context.Context, pause Pause) (*Pause, error) + func (a *PauseAPI) Delete(ctx context.Context, id string) error + func (a *PauseAPI) List(ctx context.Context, opts ListOptions) (*PaginatedResponse[Pause], error) + func (a *PauseAPI) Update(ctx context.Context, id string, pause Pause) (*Pause, error) + type RefreshResponse struct + Token string + type SendMessageContactVariables struct + Channels map[string]string + Email string + Fields map[string]any + Groups []string + Name string + func (v SendMessageContactVariables) MarshalJSON() ([]byte, error) + type SendMessagePlusRequest struct + ContactVariables *SendMessageContactVariables + type SendMessageRequest struct + Agent string + Attachments []MessageEmailAttachment + AttendanceID string + ChannelID string + CloseSession int + ContactName string + File string + HSMTemplateName string + IsHSM bool + Message string + PlatformID string + Type string + type SendMessageResponse struct + Message string + Messages SentMessage + type SendMessageUser struct + Name string + type SentMessage struct + CreatedAt string + Message string + MessageID string + Type string + User SendMessageUser + type StringSlice []string + func (s *StringSlice) UnmarshalJSON(data []byte) error + type Tabulation struct + CreatedAt string + ID string + Name string + UpdatedAt string + type TabulationAPI struct + func (a *TabulationAPI) Create(ctx context.Context, name string) (*Tabulation, error) + func (a *TabulationAPI) Delete(ctx context.Context, id string) error + func (a *TabulationAPI) List(ctx context.Context, opts ListOptions) (*PaginatedResponse[Tabulation], error) + func (a *TabulationAPI) Update(ctx context.Context, id, name string) (*Tabulation, error) + type Team struct + AfterAttendance *TeamAfterAttendance + Agents []string + CanBeDisabled bool + ContactActiveByGroup *TeamGroupRestriction + Copilot *TeamCopilot + CreatedAt string + EndingFlow *TeamEndingFlow + HasOfflineAttendance bool + HasOnlineAgents bool + History string + ID string + MessageAgent string + MessageEnd string + Name string + NotifyPendingResponse *TeamNotifyPendingResponse + NotifyWaitingPosition *TeamNotifyWaitingPosition + OptinStart bool + Permissions TeamPermissions + Predefined []string + RestrictMessageTemplates *TeamGroupRestriction + RestrictedTeam *TeamRestriction + RestrictedTeamForTransfer *TeamRestrictionForTransfer + RuleAttendance string + SelectAgentsType string + SentimentAnalysis *TeamAIFeature + Sequence []TeamAgentRef + SummaryAttendance *TeamAIFeature + Tabulations []string + Tags []string + Timer TeamTimer + TimerWait *TeamTimerWait + TransferSession bool + TransferSessionToHold []string + Transhipment string + TranshipmentName string + UpdatedAt string + ValidatedAgents bool + type TeamAIFeature struct + Enabled bool + RestID string + type TeamAPI struct + func (a *TeamAPI) Create(ctx context.Context, team Team) (*Team, error) + func (a *TeamAPI) Delete(ctx context.Context, id string) error + func (a *TeamAPI) FilterByIDs(ctx context.Context, req TeamFilterByIDsRequest) (*PaginatedResponse[Team], error) + func (a *TeamAPI) List(ctx context.Context, filter TeamListFilter) (*PaginatedResponse[Team], error) + func (a *TeamAPI) Resume(ctx context.Context, paginate bool) ([]TeamSummary, error) + func (a *TeamAPI) Update(ctx context.Context, id string, team Team) (*TeamUpdateResponse, error) + type TeamAfterAttendance struct + RestID string + SentimentAnalysis bool + SentimentAnalysisScore bool + Summary bool + type TeamAgentRef struct + ID string + Name string + type TeamCopilot struct + RestID StringSlice + ShowSourceContent bool + type TeamEndingFlow struct + Enabled bool + FlowID string + type TeamFilterByIDsRequest struct + CampaignIDs []string + Limit int + Page int + Paginate bool + type TeamGroupRestriction struct + Enabled bool + Groups []string + type TeamListFilter struct + Limit int + Name string + Paginate string + type TeamNotifyPendingResponse struct + Agents struct{ ... } + Contacts struct{ ... } + type TeamNotifyWaitingPosition struct + InitialWaitPosition TeamWaitPositionNotice + UpdateWaitPosition TeamWaitPositionNotice + type TeamPendingResponseTimer struct + Enabled bool + Limit int + Type string + type TeamPermissions struct + AgentChat bool + AutoAttendance bool + CampaignsChat bool + ContactEdit bool + FinishAttendance bool + HideContactOnAgentScreen bool + HideContactOnHold bool + OfflineAttendance bool + OptinGupshup bool + SendEmojis bool + ShowNumber bool + ShowPreviewMessages bool + VoiceRecordEnabled bool + type TeamRestriction struct + Channels []string + Enabled bool + type TeamRestrictionForTransfer struct + Enabled bool + Teams []string + type TeamSummary struct + ID string + Name string + type TeamTimer struct + Days int + Hours int + Minutes int + type TeamTimerWait struct + Enabled bool + Limit int + Redirect string + Type string + type TeamUpdateResponse struct + Date string + Success bool + type TeamWaitPositionNotice struct + Enabled bool + Message string + type User struct + Begin string + Campaigns []string + Codename string + CreatedAt string + Email string + End string + GroupID string + ID string + Name string + Photo string + Ramal string + SessionToken string + Status string + Type string + UpdatedAt string