Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type APIKey
- type APIResponse
- type AgentCustomStatus
- type AgentStatus
- type AgentStatusApiService
- func (a *AgentStatusApiService) ChangeAgentStatus(ctx context.Context, agentId string, localVarOptionals *ChangeAgentStatusOpts) (AgentStatus, *http.Response, error)
- func (a *AgentStatusApiService) GetAgentStatus(ctx context.Context, agentId string) (AgentStatus, *http.Response, error)
- func (a *AgentStatusApiService) GetAllAgentStatus(ctx context.Context) ([]AgentStatus, *http.Response, error)
- type AgentStatusChannel
- type Attachment
- type AttachmentsApiService
- func (a *AttachmentsApiService) CreateAttachment(ctx context.Context, localVarOptionals *CreateAttachmentOpts) (Attachment, *http.Response, error)
- func (a *AttachmentsApiService) GetAllAttachments(ctx context.Context, localVarOptionals *GetAllAttachmentsOpts) (GetAllAttachmentsResponse, *http.Response, error)
- func (a *AttachmentsApiService) GetAttachment(ctx context.Context, attachmentId string) (Attachment, *http.Response, error)
- type BasicAuth
- type CategoriesApiService
- func (a *CategoriesApiService) CreateCategory(ctx context.Context, localVarOptionals *CreateCategoryOpts) (Category, *http.Response, error)
- func (a *CategoriesApiService) DeleteCategory(ctx context.Context, categoryId string, localVarOptionals *DeleteCategoryOpts) (Category, *http.Response, error)
- func (a *CategoriesApiService) GetAllCategories(ctx context.Context, localVarOptionals *GetAllCategoriesOpts) (GetAllCategoriesResponse, *http.Response, error)
- func (a *CategoriesApiService) GetCategory(ctx context.Context, categoryId string) (Category, *http.Response, error)
- func (a *CategoriesApiService) UpdateCategory(ctx context.Context, categoryId string, localVarOptionals *UpdateCategoryOpts) (Category, *http.Response, error)
- type CategorizeThreadOpts
- type Category
- type ChangeAgentStatusOpts
- type Channel
- type ChannelsApiService
- func (a *ChannelsApiService) GetAllChannels(ctx context.Context, localVarOptionals *GetAllChannelsOpts) (GetAllChannelsResponse, *http.Response, error)
- func (a *ChannelsApiService) GetChannel(ctx context.Context, channelId string) (Channel, *http.Response, error)
- func (a *ChannelsApiService) UpdateChannel(ctx context.Context, channelId string, localVarOptionals *UpdateChannelOpts) (Channel, *http.Response, error)
- type CommunitiesApiService
- type Community
- type Configuration
- type Content
- type ContentAttachment
- type ContentBodyFormatted
- type ContentsApiService
- func (a *ContentsApiService) CategorizeContent(ctx context.Context, contentId string, categoryIds []string) (Content, *http.Response, error)
- func (a *ContentsApiService) CreateContent(ctx context.Context, body string, localVarOptionals *CreateContentOpts) (Content, *http.Response, error)
- func (a *ContentsApiService) GetAllContents(ctx context.Context, localVarOptionals *GetAllContentsOpts) (GetAllContentsResponse, *http.Response, error)
- func (a *ContentsApiService) GetContent(ctx context.Context, contentId string) (Content, *http.Response, error)
- func (a *ContentsApiService) IgnoreContent(ctx context.Context, contentId string) (Content, *http.Response, error)
- type CreateAttachmentOpts
- type CreateCategoryOpts
- type CreateContentOpts
- type CreateCustomFieldOpts
- type CreateFolderOpts
- type CreateReplyAssistantGroupOpts
- type CreateReplyAssistantVersionOpts
- type CreateRoleOpts
- type CreateTeamOpts
- type CreateTimeSheetOpts
- type CreateUserOpts
- type CreateWebhookOpts
- type CustomField
- type CustomFieldsApiService
- func (a *CustomFieldsApiService) CreateCustomField(ctx context.Context, associatedTypeName string, label string, ...) (CustomField, *http.Response, error)
- func (a *CustomFieldsApiService) DeleteCustomField(ctx context.Context, customFieldId string) (CustomField, *http.Response, error)
- func (a *CustomFieldsApiService) GetAllCustomFields(ctx context.Context, localVarOptionals *GetAllCustomFieldsOpts) (GetAllCustomFieldsResponse, *http.Response, error)
- func (a *CustomFieldsApiService) GetCustomField(ctx context.Context, customFieldId string) (CustomField, *http.Response, error)
- func (a *CustomFieldsApiService) UpdateCustomField(ctx context.Context, customFieldId string, ...) (CustomField, *http.Response, error)
- type DeleteCategoryOpts
- type DeleteTeamOpts
- type Event
- type EventExtraInfo
- type EventsApiService
- type Folder
- type FoldersApiService
- func (a *FoldersApiService) CreateFolder(ctx context.Context, localVarOptionals *CreateFolderOpts) (Folder, *http.Response, error)
- func (a *FoldersApiService) DeleteFolder(ctx context.Context, folderId string) (Folder, *http.Response, error)
- func (a *FoldersApiService) GetAllFolders(ctx context.Context, localVarOptionals *GetAllFoldersOpts) (GetAllFoldersResponse, *http.Response, error)
- func (a *FoldersApiService) GetFolder(ctx context.Context, folderId string) (Folder, *http.Response, error)
- func (a *FoldersApiService) UpdateFolder(ctx context.Context, folderId string, localVarOptionals *UpdateFolderOpts) (Folder, *http.Response, error)
- type GenericOpenAPIError
- type GetAllAgentStatusResponse
- type GetAllAttachmentsOpts
- type GetAllAttachmentsResponse
- type GetAllCategoriesOpts
- type GetAllCategoriesResponse
- type GetAllChannelsOpts
- type GetAllChannelsResponse
- type GetAllCommunitiesOpts
- type GetAllCommunitiesResponse
- type GetAllContentsOpts
- type GetAllContentsResponse
- type GetAllCustomFieldsOpts
- type GetAllCustomFieldsResponse
- type GetAllEventsOpts
- type GetAllEventsResponse
- type GetAllFoldersOpts
- type GetAllFoldersResponse
- type GetAllIdentitiesOpts
- type GetAllIdentitiesResponse
- type GetAllIdentityGroupsOpts
- type GetAllIdentityGroupsResponse
- type GetAllInterventionCommentsOpts
- type GetAllInterventionCommentsResponse
- type GetAllInterventionsOpts
- type GetAllInterventionsResponse
- type GetAllPresenceStatusOpts
- type GetAllPresenceStatusResponse
- type GetAllReplyAssistantEntriesOpts
- type GetAllReplyAssistantEntriesResponse
- type GetAllReplyAssistantGroupsOpts
- type GetAllReplyAssistantGroupsResponse
- type GetAllReplyAssistantVersionsOpts
- type GetAllReplyAssistantVersionsResponse
- type GetAllRolesOpts
- type GetAllRolesResponse
- type GetAllSourcesOpts
- type GetAllSourcesResponse
- type GetAllTagsOpts
- type GetAllTagsResponse
- type GetAllTasksOpts
- type GetAllTasksResponse
- type GetAllTeamsOpts
- type GetAllTeamsResponse
- type GetAllThreadsOpts
- type GetAllThreadsResponse
- type GetAllTimeSheetsOpts
- type GetAllTimeSheetsResponse
- type GetAllUsersOpts
- type GetAllUsersResponse
- type GetAllWebhooksOpts
- type GetAllWebhooksResponse
- type IdentitiesApiService
- type Identity
- type IdentityGroup
- type IdentityGroupsApiService
- func (a *IdentityGroupsApiService) GetAllIdentityGroups(ctx context.Context, localVarOptionals *GetAllIdentityGroupsOpts) (GetAllIdentityGroupsResponse, *http.Response, error)
- func (a *IdentityGroupsApiService) GetIdentityGroup(ctx context.Context, identityGroupId string) (IdentityGroup, *http.Response, error)
- func (a *IdentityGroupsApiService) UpdateIdentityGroup(ctx context.Context, identityGroupId string, ...) (IdentityGroup, *http.Response, error)
- type Intervention
- type InterventionComment
- type InterventionCommentsApiService
- func (a *InterventionCommentsApiService) CreateInterventionComment(ctx context.Context, body string, interventionId string, userId string) (InterventionComment, *http.Response, error)
- func (a *InterventionCommentsApiService) DeleteInterventionComment(ctx context.Context, interventionCommentId string) (InterventionComment, *http.Response, error)
- func (a *InterventionCommentsApiService) GetAllInterventionComments(ctx context.Context, localVarOptionals *GetAllInterventionCommentsOpts) (GetAllInterventionCommentsResponse, *http.Response, error)
- func (a *InterventionCommentsApiService) GetInterventionComment(ctx context.Context, interventionCommentId string) (InterventionComment, *http.Response, error)
- type InterventionsApiService
- func (a *InterventionsApiService) CancelIntervention(ctx context.Context, interventionId string) (Intervention, *http.Response, error)
- func (a *InterventionsApiService) CategorizeIntervention(ctx context.Context, interventionId string, categoryIds []string) (Intervention, *http.Response, error)
- func (a *InterventionsApiService) CloseIntervention(ctx context.Context, interventionId string) (Intervention, *http.Response, error)
- func (a *InterventionsApiService) CreateIntervention(ctx context.Context, contentId string) (GetAllInterventionsResponse, *http.Response, error)
- func (a *InterventionsApiService) GetAllInterventions(ctx context.Context, localVarOptionals *GetAllInterventionsOpts) (GetAllInterventionsResponse, *http.Response, error)
- func (a *InterventionsApiService) GetIntervention(ctx context.Context, interventionId string) (Intervention, *http.Response, error)
- func (a *InterventionsApiService) ReassignIntervention(ctx context.Context, interventionId string, userId string) (Intervention, *http.Response, error)
- type InviteUserOpts
- type Locale
- type LocalesApiService
- type PresenceStatus
- type PresenceStatusApiService
- func (a *PresenceStatusApiService) CreatePresenceStatus(ctx context.Context, name string) (PresenceStatus, *http.Response, error)
- func (a *PresenceStatusApiService) DeletePresenceStatus(ctx context.Context, presenceStatusId string) (PresenceStatus, *http.Response, error)
- func (a *PresenceStatusApiService) GetAllPresenceStatus(ctx context.Context, localVarOptionals *GetAllPresenceStatusOpts) (GetAllPresenceStatusResponse, *http.Response, error)
- func (a *PresenceStatusApiService) GetPresenceStatus(ctx context.Context, presenceStatusId string) (PresenceStatus, *http.Response, error)
- func (a *PresenceStatusApiService) UpdatePresenceStatus(ctx context.Context, presenceStatusId string, name string) (PresenceStatus, *http.Response, error)
- type ReplyAssistantEntriesApiService
- func (a *ReplyAssistantEntriesApiService) CreateReplyAssistantEntry(ctx context.Context, label string) (ReplyAssistantEntry, *http.Response, error)
- func (a *ReplyAssistantEntriesApiService) DeleteReplyAssistantEntry(ctx context.Context, replyAssistantEntryId string) (ReplyAssistantEntry, *http.Response, error)
- func (a *ReplyAssistantEntriesApiService) GetAllReplyAssistantEntries(ctx context.Context, localVarOptionals *GetAllReplyAssistantEntriesOpts) (GetAllReplyAssistantEntriesResponse, *http.Response, error)
- func (a *ReplyAssistantEntriesApiService) GetReplyAssistantEntry(ctx context.Context, replyAssistantEntryId string) (ReplyAssistantEntry, *http.Response, error)
- func (a *ReplyAssistantEntriesApiService) UpdateReplyAssistantEntry(ctx context.Context, replyAssistantEntryId string, ...) (ReplyAssistantEntry, *http.Response, error)
- type ReplyAssistantEntry
- type ReplyAssistantGroup
- type ReplyAssistantGroupsApiService
- func (a *ReplyAssistantGroupsApiService) CreateReplyAssistantGroup(ctx context.Context, name string, ...) (ReplyAssistantGroup, *http.Response, error)
- func (a *ReplyAssistantGroupsApiService) DeleteReplyAssistantGroup(ctx context.Context, replyAssistantGroupId string) (ReplyAssistantGroup, *http.Response, error)
- func (a *ReplyAssistantGroupsApiService) GetAllReplyAssistantGroups(ctx context.Context, localVarOptionals *GetAllReplyAssistantGroupsOpts) (GetAllReplyAssistantGroupsResponse, *http.Response, error)
- func (a *ReplyAssistantGroupsApiService) GetReplyAssistantGroup(ctx context.Context, replyAssistantGroupId string) (ReplyAssistantGroup, *http.Response, error)
- func (a *ReplyAssistantGroupsApiService) UpdateReplyAssistantGroup(ctx context.Context, replyAssistantGroupId string, ...) (ReplyAssistantGroup, *http.Response, error)
- type ReplyAssistantVersion
- type ReplyAssistantVersionsApiService
- func (a *ReplyAssistantVersionsApiService) CreateReplyAssistantVersion(ctx context.Context, body string, entryId string, ...) (ReplyAssistantVersion, *http.Response, error)
- func (a *ReplyAssistantVersionsApiService) DeleteReplyAssistantVersion(ctx context.Context, replyAssistantVersionId string) (ReplyAssistantVersion, *http.Response, error)
- func (a *ReplyAssistantVersionsApiService) GetAllReplyAssistantVersions(ctx context.Context, localVarOptionals *GetAllReplyAssistantVersionsOpts) (GetAllReplyAssistantVersionsResponse, *http.Response, error)
- func (a *ReplyAssistantVersionsApiService) GetReplyAssistantVersion(ctx context.Context, replyAssistantVersionId string) (ReplyAssistantVersion, *http.Response, error)
- func (a *ReplyAssistantVersionsApiService) UpdateReplyAssistantVersion(ctx context.Context, replyAssistantVersionId string, ...) (ReplyAssistantVersion, *http.Response, error)
- type Restriction
- type Role
- type RolesApiService
- func (a *RolesApiService) CreateRole(ctx context.Context, label string, localVarOptionals *CreateRoleOpts) (Role, *http.Response, error)
- func (a *RolesApiService) GetAllRoles(ctx context.Context, localVarOptionals *GetAllRolesOpts) (GetAllRolesResponse, *http.Response, error)
- func (a *RolesApiService) GetRole(ctx context.Context, roleId string) (Role, *http.Response, error)
- func (a *RolesApiService) UpdateRole(ctx context.Context, roleId string, localVarOptionals *UpdateRoleOpts) (Role, *http.Response, error)
- type Settings
- type SettingsApiService
- type Source
- type SourcesApiService
- func (a *SourcesApiService) GetAllSources(ctx context.Context, localVarOptionals *GetAllSourcesOpts) (GetAllSourcesResponse, *http.Response, error)
- func (a *SourcesApiService) GetSource(ctx context.Context, sourceId string) (Source, *http.Response, error)
- func (a *SourcesApiService) UpdateSource(ctx context.Context, sourceId string, localVarOptionals *UpdateSourceOpts) (Source, *http.Response, error)
- type Tag
- type TagsApiService
- func (a *TagsApiService) CreateTag(ctx context.Context, name string) (Tag, *http.Response, error)
- func (a *TagsApiService) DeleteTag(ctx context.Context, tagId string) (Tag, *http.Response, error)
- func (a *TagsApiService) GetAllTags(ctx context.Context, localVarOptionals *GetAllTagsOpts) (GetAllTagsResponse, *http.Response, error)
- func (a *TagsApiService) GetTag(ctx context.Context, tagId string) (Tag, *http.Response, error)
- func (a *TagsApiService) UpdateTag(ctx context.Context, tagId string, name string) (Tag, *http.Response, error)
- type Task
- type TasksApiService
- func (a *TasksApiService) GetAllTasks(ctx context.Context, localVarOptionals *GetAllTasksOpts) (GetAllTasksResponse, *http.Response, error)
- func (a *TasksApiService) GetTask(ctx context.Context, taskId string) (Task, *http.Response, error)
- func (a *TasksApiService) MoveTask(ctx context.Context, taskId string, queue string) (Task, *http.Response, error)
- func (a *TasksApiService) TransferTask(ctx context.Context, taskId string, localVarOptionals *TransferTaskOpts) (Task, *http.Response, error)
- type Team
- type TeamsApiService
- func (a *TeamsApiService) CreateTeam(ctx context.Context, localVarOptionals *CreateTeamOpts) (Team, *http.Response, error)
- func (a *TeamsApiService) DeleteTeam(ctx context.Context, teamId string, localVarOptionals *DeleteTeamOpts) (Team, *http.Response, error)
- func (a *TeamsApiService) GetAllTeams(ctx context.Context, localVarOptionals *GetAllTeamsOpts) (GetAllTeamsResponse, *http.Response, error)
- func (a *TeamsApiService) GetTeam(ctx context.Context, teamId string) (Team, *http.Response, error)
- func (a *TeamsApiService) UpdateTeam(ctx context.Context, teamId string, localVarOptionals *UpdateTeamOpts) (Team, *http.Response, error)
- type Thread
- type ThreadsApiService
- func (a *ThreadsApiService) ArchiveThread(ctx context.Context, threadId string) (Thread, *http.Response, error)
- func (a *ThreadsApiService) CategorizeThread(ctx context.Context, threadId string, localVarOptionals *CategorizeThreadOpts) (Thread, *http.Response, error)
- func (a *ThreadsApiService) CloseThread(ctx context.Context, threadId string) (Thread, *http.Response, error)
- func (a *ThreadsApiService) GetAllThreads(ctx context.Context, localVarOptionals *GetAllThreadsOpts) (GetAllThreadsResponse, *http.Response, error)
- func (a *ThreadsApiService) GetThread(ctx context.Context, threadId string) (Thread, *http.Response, error)
- func (a *ThreadsApiService) OpenThread(ctx context.Context, threadId string) (Thread, *http.Response, error)
- type TimeSheet
- type TimeSheetHoliday
- type TimeSheetsApiService
- func (a *TimeSheetsApiService) CreateTimeSheet(ctx context.Context, label string, localVarOptionals *CreateTimeSheetOpts) (TimeSheet, *http.Response, error)
- func (a *TimeSheetsApiService) DeleteTimeSheet(ctx context.Context, timeSheetId string) (TimeSheet, *http.Response, error)
- func (a *TimeSheetsApiService) GetAllTimeSheets(ctx context.Context, localVarOptionals *GetAllTimeSheetsOpts) (GetAllTimeSheetsResponse, *http.Response, error)
- func (a *TimeSheetsApiService) GetTimeSheet(ctx context.Context, timeSheetId string) (TimeSheet, *http.Response, error)
- func (a *TimeSheetsApiService) UpdateTimeSheet(ctx context.Context, timeSheetId string, ...) (TimeSheet, *http.Response, error)
- type Timezone
- type TimezonesApiService
- type TransferTaskOpts
- type UpdateCategoryOpts
- type UpdateChannelOpts
- type UpdateCustomFieldOpts
- type UpdateFolderOpts
- type UpdateIdentityGroupOpts
- type UpdateReplyAssistantEntryOpts
- type UpdateReplyAssistantGroupOpts
- type UpdateReplyAssistantVersionOpts
- type UpdateRoleOpts
- type UpdateSettingsOpts
- type UpdateSourceOpts
- type UpdateTeamOpts
- type UpdateTimeSheetOpts
- type UpdateUserOpts
- type UpdateWebhookOpts
- type User
- type UsersApiService
- func (a *UsersApiService) CreateUser(ctx context.Context, email string, firstname string, lastname string, ...) (User, *http.Response, error)
- func (a *UsersApiService) DeleteUser(ctx context.Context, userId string) (User, *http.Response, error)
- func (a *UsersApiService) GetAllUsers(ctx context.Context, localVarOptionals *GetAllUsersOpts) (GetAllUsersResponse, *http.Response, error)
- func (a *UsersApiService) GetUser(ctx context.Context, userId string) (User, *http.Response, error)
- func (a *UsersApiService) InviteUser(ctx context.Context, email string, firstname string, lastname string, ...) (User, *http.Response, error)
- func (a *UsersApiService) UpdateUser(ctx context.Context, userId string, localVarOptionals *UpdateUserOpts) (User, *http.Response, error)
- type Webhook
- type WebhookAccessToken
- type WebhooksApiService
- func (a *WebhooksApiService) CreateWebhook(ctx context.Context, accessToken string, label string, url_ string, ...) (Webhook, *http.Response, error)
- func (a *WebhooksApiService) DeleteWebhook(ctx context.Context, webhookId string, accessToken string) (Webhook, *http.Response, error)
- func (a *WebhooksApiService) GetAllWebhooks(ctx context.Context, accessToken string, localVarOptionals *GetAllWebhooksOpts) (GetAllWebhooksResponse, *http.Response, error)
- func (a *WebhooksApiService) GetWebhook(ctx context.Context, webhookId string, accessToken string) (Webhook, *http.Response, error)
- func (a *WebhooksApiService) UpdateWebhook(ctx context.Context, webhookId string, accessToken string, ...) (Webhook, *http.Response, error)
Constants ¶
This section is empty.
Variables ¶
var ( // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. ContextOAuth2 = contextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the request. ContextBasicAuth = contextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKey takes an APIKey as authentication for the request ContextAPIKey = contextKey("apikey") )
Functions ¶
Types ¶
type APIClient ¶
type APIClient struct { AgentStatusApi *AgentStatusApiService AttachmentsApi *AttachmentsApiService CategoriesApi *CategoriesApiService ChannelsApi *ChannelsApiService CommunitiesApi *CommunitiesApiService ContentsApi *ContentsApiService CustomFieldsApi *CustomFieldsApiService EventsApi *EventsApiService FoldersApi *FoldersApiService IdentitiesApi *IdentitiesApiService IdentityGroupsApi *IdentityGroupsApiService InterventionCommentsApi *InterventionCommentsApiService InterventionsApi *InterventionsApiService LocalesApi *LocalesApiService PresenceStatusApi *PresenceStatusApiService ReplyAssistantEntriesApi *ReplyAssistantEntriesApiService ReplyAssistantGroupsApi *ReplyAssistantGroupsApiService ReplyAssistantVersionsApi *ReplyAssistantVersionsApiService RolesApi *RolesApiService SettingsApi *SettingsApiService SourcesApi *SourcesApiService TagsApi *TagsApiService TasksApi *TasksApiService TeamsApi *TeamsApiService ThreadsApi *ThreadsApiService TimeSheetsApi *TimeSheetsApiService TimezonesApi *TimezonesApiService UsersApi *UsersApiService WebhooksApi *WebhooksApiService // contains filtered or unexported fields }
APIClient manages communication with the Engage Digital API API v1.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) ChangeBasePath ¶
Change base path to allow switching to mocks
func (*APIClient) HTTPClient ¶
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type AgentCustomStatus ¶
type AgentCustomStatus struct {
Id string `json:"id,omitempty"`
}
The \"custom_status\" attribute represent the custom \"away\" status selected, it can either be: * 1. null — The agent is available or in the generic \"Away\" status 2. { \"id\":\"5582b1f4776562af9b000008\" } — The id of the custom status
type AgentStatus ¶
type AgentStatus struct { AgentId string `json:"agent_id,omitempty"` Channels []AgentStatusChannel `json:"channels,omitempty"` CustomStatus AgentCustomStatus `json:"custom_status,omitempty"` }
type AgentStatusApiService ¶
type AgentStatusApiService service
func (*AgentStatusApiService) ChangeAgentStatus ¶
func (a *AgentStatusApiService) ChangeAgentStatus(ctx context.Context, agentId string, localVarOptionals *ChangeAgentStatusOpts) (AgentStatus, *http.Response, error)
func (*AgentStatusApiService) GetAgentStatus ¶
func (a *AgentStatusApiService) GetAgentStatus(ctx context.Context, agentId string) (AgentStatus, *http.Response, error)
AgentStatusApiService Get a connected agent status This method get the status of a connected agent. Returns a 404 if the user does not exist (not_found) or if he’s not connected (disconnected). Authorization: only users that have the right to monitor the task view.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param agentId
@return AgentStatus
func (*AgentStatusApiService) GetAllAgentStatus ¶
func (a *AgentStatusApiService) GetAllAgentStatus(ctx context.Context) ([]AgentStatus, *http.Response, error)
AgentStatusApiService Get all connected agents status This method get all currently connected agents & their status. Authorization: only users that have the right to monitor the task view.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []AgentStatus
type AgentStatusChannel ¶
type Attachment ¶
type Attachment struct { ContentType string `json:"content_type,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` Embed bool `json:"embed,omitempty"` Filename string `json:"filename,omitempty"` ForeignId string `json:"foreign_id,omitempty"` Id string `json:"id,omitempty"` Public bool `json:"public?,omitempty"` Size int32 `json:"size,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` VideoMetadata []string `json:"video_metadata,omitempty"` }
type AttachmentsApiService ¶
type AttachmentsApiService service
func (*AttachmentsApiService) CreateAttachment ¶
func (a *AttachmentsApiService) CreateAttachment(ctx context.Context, localVarOptionals *CreateAttachmentOpts) (Attachment, *http.Response, error)
func (*AttachmentsApiService) GetAllAttachments ¶
func (a *AttachmentsApiService) GetAllAttachments(ctx context.Context, localVarOptionals *GetAllAttachmentsOpts) (GetAllAttachmentsResponse, *http.Response, error)
func (*AttachmentsApiService) GetAttachment ¶
func (a *AttachmentsApiService) GetAttachment(ctx context.Context, attachmentId string) (Attachment, *http.Response, error)
AttachmentsApiService Getting an attachment from its id This method renders an attachment from given id.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param attachmentId
@return Attachment
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type CategoriesApiService ¶
type CategoriesApiService service
func (*CategoriesApiService) CreateCategory ¶
func (a *CategoriesApiService) CreateCategory(ctx context.Context, localVarOptionals *CreateCategoryOpts) (Category, *http.Response, error)
func (*CategoriesApiService) DeleteCategory ¶
func (a *CategoriesApiService) DeleteCategory(ctx context.Context, categoryId string, localVarOptionals *DeleteCategoryOpts) (Category, *http.Response, error)
func (*CategoriesApiService) GetAllCategories ¶
func (a *CategoriesApiService) GetAllCategories(ctx context.Context, localVarOptionals *GetAllCategoriesOpts) (GetAllCategoriesResponse, *http.Response, error)
func (*CategoriesApiService) GetCategory ¶
func (a *CategoriesApiService) GetCategory(ctx context.Context, categoryId string) (Category, *http.Response, error)
CategoriesApiService Getting a category from its id This method renders a category from given id.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param categoryId
@return Category
func (*CategoriesApiService) UpdateCategory ¶
func (a *CategoriesApiService) UpdateCategory(ctx context.Context, categoryId string, localVarOptionals *UpdateCategoryOpts) (Category, *http.Response, error)
type CategorizeThreadOpts ¶
type Category ¶
type Category struct { Color int32 `json:"color,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` Id string `json:"id"` Mandatory bool `json:"mandatory,omitempty"` Multiple bool `json:"multiple,omitempty"` Name string `json:"name,omitempty"` ParentId string `json:"parent_id,omitempty"` PostQualification bool `json:"post_qualification,omitempty"` SourceIds []string `json:"source_ids,omitempty"` Unselectable bool `json:"unselectable,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type ChangeAgentStatusOpts ¶
type Channel ¶
type Channel struct { CreatedAt time.Time `json:"created_at,omitempty"` HardCapability int32 `json:"hard_capability,omitempty"` Id string `json:"id,omitempty"` Label string `json:"label,omitempty"` Name string `json:"name,omitempty"` SoftCapability int32 `json:"soft_capability,omitempty"` SourceIds []string `json:"source_ids,omitempty"` TaskTimeoutSeconds int32 `json:"task_timeout_seconds,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type ChannelsApiService ¶
type ChannelsApiService service
func (*ChannelsApiService) GetAllChannels ¶
func (a *ChannelsApiService) GetAllChannels(ctx context.Context, localVarOptionals *GetAllChannelsOpts) (GetAllChannelsResponse, *http.Response, error)
func (*ChannelsApiService) GetChannel ¶
func (a *ChannelsApiService) GetChannel(ctx context.Context, channelId string) (Channel, *http.Response, error)
ChannelsApiService Getting a channel from its id This method renders a channel from given id.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param channelId
@return Channel
func (*ChannelsApiService) UpdateChannel ¶
func (a *ChannelsApiService) UpdateChannel(ctx context.Context, channelId string, localVarOptionals *UpdateChannelOpts) (Channel, *http.Response, error)
type CommunitiesApiService ¶
type CommunitiesApiService service
func (*CommunitiesApiService) GetAllCommunities ¶
func (a *CommunitiesApiService) GetAllCommunities(ctx context.Context, localVarOptionals *GetAllCommunitiesOpts) (GetAllCommunitiesResponse, *http.Response, error)
func (*CommunitiesApiService) GetCommunity ¶
func (a *CommunitiesApiService) GetCommunity(ctx context.Context, communityId string) (Community, *http.Response, error)
CommunitiesApiService Getting a community from its id This method renders a community from given id.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param communityId
@return Community
type Configuration ¶
type Configuration struct { BasePath string `json:"basePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` HTTPClient *http.Client }
func NewConfiguration ¶
func NewConfiguration() *Configuration
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
type Content ¶
type Content struct { ApprovalRequired bool `json:"approval_required,omitempty"` Attachments []ContentAttachment `json:"attachments,omitempty"` AttachmentsCount int32 `json:"attachments_count,omitempty"` AuthorId string `json:"author_id,omitempty"` Body string `json:"body,omitempty"` BodyFormatted ContentBodyFormatted `json:"body_formatted,omitempty"` // values can be: text or html. BodyInputFormat string `json:"body_input_format,omitempty"` // are content categories if none, they are default to intervention categories or thread categories CategoryIds []string `json:"category_ids,omitempty"` // is present only if the content has context_data associated. The context_data hash keys are the custom fields keys. ContextData map[string]interface{} `json:"context_data,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` CreatedFrom string `json:"created_from,omitempty"` CreatorId string `json:"creator_id,omitempty"` ForeignId string `json:"foreign_id,omitempty"` Id string `json:"id"` InReplyToAuthorId string `json:"in_reply_to_author_id,omitempty"` InReplyToId string `json:"in_reply_to_id,omitempty"` InterventionId string `json:"intervention_id,omitempty"` Language string `json:"language,omitempty"` PrivateMessage bool `json:"private_message,omitempty"` Published bool `json:"published,omitempty"` RemotelyDeleted bool `json:"remotely_deleted,omitempty"` SourceId string `json:"source_id,omitempty"` SourceType string `json:"source_type,omitempty"` SourceUrl string `json:"source_url,omitempty"` Status string `json:"status,omitempty"` SynchronizationStatus string `json:"synchronization_status,omitempty"` ThreadId string `json:"thread_id,omitempty"` Title string `json:"title,omitempty"` Type string `json:"type,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type ContentAttachment ¶
type ContentAttachment struct { ContentType string `json:"content_type,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` Embed string `json:"embed,omitempty"` Filename string `json:"filename,omitempty"` ForeignId string `json:"foreign_id,omitempty"` Id string `json:"id,omitempty"` Public string `json:"public?,omitempty"` Size int32 `json:"size,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` // You can download the attachments by using an API access token with the following URL: https://[your-domain].engagement.dimelo.com/attachments/[attachment_id]?access_token=[your_ access_token] Url string `json:"url,omitempty"` }
type ContentBodyFormatted ¶
type ContentBodyFormatted struct { Html string `json:"html,omitempty"` Text string `json:"text,omitempty"` }
always contains text and html versions.
type ContentsApiService ¶
type ContentsApiService service
func (*ContentsApiService) CategorizeContent ¶
func (a *ContentsApiService) CategorizeContent(ctx context.Context, contentId string, categoryIds []string) (Content, *http.Response, error)
ContentsApiService Categorizing a content This method updates the categories of a content. If token’s user does not have “read” on this content’s source a 404 HTTP response will be returned. Authorization: no.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param contentId
- @param categoryIds An array containing the new categories to set on the content.
@return Content
func (*ContentsApiService) CreateContent ¶
func (a *ContentsApiService) CreateContent(ctx context.Context, body string, localVarOptionals *CreateContentOpts) (Content, *http.Response, error)
func (*ContentsApiService) GetAllContents ¶
func (a *ContentsApiService) GetAllContents(ctx context.Context, localVarOptionals *GetAllContentsOpts) (GetAllContentsResponse, *http.Response, error)
func (*ContentsApiService) GetContent ¶
func (a *ContentsApiService) GetContent(ctx context.Context, contentId string) (Content, *http.Response, error)
ContentsApiService Getting a content from its id This method renders a content from given id. If token’s user does not have “read” on content’s source a 404 HTTP response will be returned. Authorization: no.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param contentId
@return Content
func (*ContentsApiService) IgnoreContent ¶
func (a *ContentsApiService) IgnoreContent(ctx context.Context, contentId string) (Content, *http.Response, error)
ContentsApiService Ignoring a content Ignores a content. If token’s user does not have “read” on content’s source a 404 HTTP response will be returned. Authorization: no.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param contentId
@return Content
type CreateAttachmentOpts ¶
type CreateCategoryOpts ¶
type CreateContentOpts ¶
type CreateCustomFieldOpts ¶
type CreateFolderOpts ¶
type CreateRoleOpts ¶
type CreateRoleOpts struct { AccessHelpCenter optional.Bool AccessPreviousMessages optional.Bool AccessPullMode optional.Bool AdminStampAnswer optional.Bool ApproveContent optional.Bool AssignIntervention optional.Bool AuthorBlockContent optional.Bool CloseContentThread optional.Bool CreateAndDestroyExtension optional.Bool CreateCommunity optional.Bool CreateContentSource optional.Bool CreateUser optional.Bool DelayExportContent optional.Bool DeleteContentThread optional.Bool ImpersonateUser optional.Bool InviteUser optional.Bool ManageApiAccessTokens optional.Bool ManageAppSdkApplications optional.Bool ManageAutomaticExportsTasks optional.Bool ManageCategories optional.Bool ManageChat optional.Bool ManageCustomFields optional.Bool ManageCustomNotifications optional.Bool ManageEmailsTemplates optional.Bool ManageFolders optional.Bool ManageIce optional.Bool ManageIdentities optional.Bool ManageOwnNotifications optional.Bool ManageReplyAssistant optional.Bool ManageRoles optional.Bool ManageRulesEngineRules optional.Bool ManageSurveys optional.Bool ManageTags optional.Bool ManageTeams optional.Bool ManageTopologies optional.Bool ManageUsersOfMyTeams optional.Bool MonitorTasks optional.Bool MonitorTeamTasks optional.Bool MuteContent optional.Bool OpenContentThread optional.Bool PublishContent optional.Bool ReadCommunity optional.Bool ReadContentSource optional.Bool ReadEvent optional.Bool ReadExport optional.Bool ReadIdentity optional.Bool ReadOwnStats optional.Bool ReadPresence optional.Bool ReadStats optional.Bool ReadSurveys optional.Bool ReadUser optional.Bool ReceiveTasks optional.Bool ReplyWithAssistant optional.Bool SearchContents optional.Bool SearchEvent optional.Bool UpdateCommunity optional.Bool UpdateContentSource optional.Bool UpdateExtension optional.Bool UpdateIdentity optional.Bool UpdateIntervention optional.Bool UpdateOwnIntervention optional.Bool UpdateSettings optional.Bool UpdateTimeSheet optional.Bool UpdateUser optional.Bool UseEmoji optional.Bool }
type CreateTeamOpts ¶
type CreateTimeSheetOpts ¶
type CreateTimeSheetOpts struct { Active optional.Bool SourceIds optional.Interface HolidaysRegion optional.String Holidays optional.String MondayHours optional.String TuesdayHours optional.String WednesdayHours optional.String ThursdayHours optional.String FridayHours optional.String SaturdayHours optional.String SundayHours optional.String }
type CreateUserOpts ¶
type CreateWebhookOpts ¶
type CustomField ¶
type CustomField struct { AssociatedTypeName string `json:"associated_type_name,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` Id string `json:"id"` Key string `json:"key,omitempty"` Label string `json:"label"` Multiple bool `json:"multiple,omitempty"` Position int32 `json:"position,omitempty"` Type string `json:"type,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type CustomFieldsApiService ¶
type CustomFieldsApiService service
func (*CustomFieldsApiService) CreateCustomField ¶
func (a *CustomFieldsApiService) CreateCustomField(ctx context.Context, associatedTypeName string, label string, localVarOptionals *CreateCustomFieldOpts) (CustomField, *http.Response, error)
func (*CustomFieldsApiService) DeleteCustomField ¶
func (a *CustomFieldsApiService) DeleteCustomField(ctx context.Context, customFieldId string) (CustomField, *http.Response, error)
CustomFieldsApiService Deleting a custom field This method destroys an existing custom field. It renders custom field itself. It renders a 404 if id is invalid. Authorization: only users that are able to destroy custom fields..
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param customFieldId
@return CustomField
func (*CustomFieldsApiService) GetAllCustomFields ¶
func (a *CustomFieldsApiService) GetAllCustomFields(ctx context.Context, localVarOptionals *GetAllCustomFieldsOpts) (GetAllCustomFieldsResponse, *http.Response, error)
func (*CustomFieldsApiService) GetCustomField ¶
func (a *CustomFieldsApiService) GetCustomField(ctx context.Context, customFieldId string) (CustomField, *http.Response, error)
CustomFieldsApiService Getting a custom field from its id This method renders a custom field from given id. Authorization: only users that can see custom fields in administration section.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param customFieldId
@return CustomField
func (*CustomFieldsApiService) UpdateCustomField ¶
func (a *CustomFieldsApiService) UpdateCustomField(ctx context.Context, customFieldId string, localVarOptionals *UpdateCustomFieldOpts) (CustomField, *http.Response, error)
type DeleteCategoryOpts ¶
type DeleteTeamOpts ¶
type EventExtraInfo ¶
type EventExtraInfo struct { AuthenticationStrategy string `json:"authentication_strategy,omitempty"` BusinessTimeSheetId string `json:"business/time_sheet_id,omitempty"` CategoryIds []string `json:"category_ids,omitempty"` ClosedAutomatically string `json:"closed_automatically,omitempty"` ContentId string `json:"content_id,omitempty"` ContentSourceId string `json:"content_source_id,omitempty"` ContentThreadId string `json:"content_thread_id,omitempty"` DeferredDuration string `json:"deferred_duration,omitempty"` Deletions map[string]interface{} `json:"deletions,omitempty"` // can be null ForeignId string `json:"foreign_id,omitempty"` InterventionId string `json:"intervention_id,omitempty"` RequestIp string `json:"request_ip,omitempty"` TaskId string `json:"task_id,omitempty"` UserId string `json:"user_id,omitempty"` }
attributes in extra_infos are optional and unspecified/not guaranteed, don’t rely on it for critical tasks, this is provided as information only
type EventsApiService ¶
type EventsApiService service
func (*EventsApiService) GetAllEvents ¶
func (a *EventsApiService) GetAllEvents(ctx context.Context, localVarOptionals *GetAllEventsOpts) (GetAllEventsResponse, *http.Response, error)
func (*EventsApiService) GetEvent ¶
func (a *EventsApiService) GetEvent(ctx context.Context, eventId string) (Event, *http.Response, error)
EventsApiService Getting an event from its id This method renders an event from given id. If token’s user role does not have “search event” permission a 404 HTTP response will be returned. Authorization: Only users who’s role can search event permission.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param eventId
@return Event
type Folder ¶
type Folder struct { CreatedAt time.Time `json:"created_at,omitempty"` Id string `json:"id"` Label string `json:"label,omitempty"` ParentId string `json:"parent_id,omitempty"` Position int32 `json:"position,omitempty"` Query string `json:"query,omitempty"` RenderThreadsCount bool `json:"render_threads_count,omitempty"` RoleRestriction Restriction `json:"role_restriction,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type FoldersApiService ¶
type FoldersApiService service
func (*FoldersApiService) CreateFolder ¶
func (a *FoldersApiService) CreateFolder(ctx context.Context, localVarOptionals *CreateFolderOpts) (Folder, *http.Response, error)
func (*FoldersApiService) DeleteFolder ¶
func (a *FoldersApiService) DeleteFolder(ctx context.Context, folderId string) (Folder, *http.Response, error)
FoldersApiService Deleting a folder This method destroys an existing folder. It renders the folder itself. It renders a 404 if id is invalid.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param folderId
@return Folder
func (*FoldersApiService) GetAllFolders ¶
func (a *FoldersApiService) GetAllFolders(ctx context.Context, localVarOptionals *GetAllFoldersOpts) (GetAllFoldersResponse, *http.Response, error)
func (*FoldersApiService) GetFolder ¶
func (a *FoldersApiService) GetFolder(ctx context.Context, folderId string) (Folder, *http.Response, error)
FoldersApiService Getting a folder from its id This method renders a folder from given id.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param folderId
@return Folder
func (*FoldersApiService) UpdateFolder ¶
func (a *FoldersApiService) UpdateFolder(ctx context.Context, folderId string, localVarOptionals *UpdateFolderOpts) (Folder, *http.Response, error)
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type GetAllAgentStatusResponse ¶
type GetAllAgentStatusResponse struct { Count int32 `json:"count,omitempty"` Limit int32 `json:"limit,omitempty"` Offset int32 `json:"offset,omitempty"` Records []AgentStatus `json:"records,omitempty"` }
type GetAllAttachmentsOpts ¶
type GetAllAttachmentsResponse ¶
type GetAllAttachmentsResponse struct { Count int32 `json:"count,omitempty"` Limit int32 `json:"limit,omitempty"` Offset int32 `json:"offset,omitempty"` Records []Attachment `json:"records,omitempty"` }
type GetAllCategoriesOpts ¶
type GetAllChannelsOpts ¶
type GetAllChannelsResponse ¶
type GetAllCommunitiesOpts ¶
type GetAllContentsOpts ¶
type GetAllContentsResponse ¶
type GetAllCustomFieldsOpts ¶
type GetAllCustomFieldsResponse ¶
type GetAllCustomFieldsResponse struct { Count int32 `json:"count,omitempty"` Limit int32 `json:"limit,omitempty"` Offset int32 `json:"offset,omitempty"` Records []CustomField `json:"records,omitempty"` }
type GetAllEventsOpts ¶
type GetAllEventsResponse ¶
type GetAllFoldersOpts ¶
type GetAllFoldersResponse ¶
type GetAllIdentitiesOpts ¶
type GetAllIdentityGroupsResponse ¶
type GetAllIdentityGroupsResponse struct { Count int32 `json:"count,omitempty"` Limit int32 `json:"limit,omitempty"` Offset int32 `json:"offset,omitempty"` Records []IdentityGroup `json:"records,omitempty"` }
type GetAllInterventionCommentsResponse ¶
type GetAllInterventionCommentsResponse struct { Count int32 `json:"count,omitempty"` Limit int32 `json:"limit,omitempty"` Offset int32 `json:"offset,omitempty"` Records []InterventionComment `json:"records,omitempty"` }
type GetAllInterventionsOpts ¶
type GetAllInterventionsResponse ¶
type GetAllInterventionsResponse struct { Count int32 `json:"count,omitempty"` Limit int32 `json:"limit,omitempty"` Offset int32 `json:"offset,omitempty"` Records []Intervention `json:"records,omitempty"` }
type GetAllPresenceStatusResponse ¶
type GetAllPresenceStatusResponse struct { Count int32 `json:"count,omitempty"` Limit int32 `json:"limit,omitempty"` Offset int32 `json:"offset,omitempty"` Records []PresenceStatus `json:"records,omitempty"` }
type GetAllReplyAssistantEntriesResponse ¶
type GetAllReplyAssistantEntriesResponse struct { Count int32 `json:"count,omitempty"` Limit int32 `json:"limit,omitempty"` Offset int32 `json:"offset,omitempty"` Records []ReplyAssistantEntry `json:"records,omitempty"` }
type GetAllReplyAssistantGroupsResponse ¶
type GetAllReplyAssistantGroupsResponse struct { Count int32 `json:"count,omitempty"` Limit int32 `json:"limit,omitempty"` Offset int32 `json:"offset,omitempty"` Records []ReplyAssistantGroup `json:"records,omitempty"` }
type GetAllReplyAssistantVersionsResponse ¶
type GetAllReplyAssistantVersionsResponse struct { Count int32 `json:"count,omitempty"` Limit int32 `json:"limit,omitempty"` Offset int32 `json:"offset,omitempty"` Records []ReplyAssistantVersion `json:"records,omitempty"` }
type GetAllRolesResponse ¶
type GetAllSourcesOpts ¶
type GetAllSourcesResponse ¶
type GetAllTagsResponse ¶
type GetAllTasksOpts ¶
type GetAllTasksResponse ¶
type GetAllTeamsResponse ¶
type GetAllThreadsOpts ¶
type GetAllThreadsResponse ¶
type GetAllTimeSheetsOpts ¶
type GetAllUsersOpts ¶
type GetAllUsersResponse ¶
type GetAllWebhooksOpts ¶
type GetAllWebhooksResponse ¶
type IdentitiesApiService ¶
type IdentitiesApiService service
func (*IdentitiesApiService) GetAllIdentities ¶
func (a *IdentitiesApiService) GetAllIdentities(ctx context.Context, localVarOptionals *GetAllIdentitiesOpts) (GetAllIdentitiesResponse, *http.Response, error)
func (*IdentitiesApiService) GetIdentity ¶
func (a *IdentitiesApiService) GetIdentity(ctx context.Context, identityId string) (Identity, *http.Response, error)
IdentitiesApiService Getting an identity from its id This method renders an identity from given id. If token’s user does not have “read” on identity’s source community a 404 HTTP response will be returned.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param identityId
@return Identity
type Identity ¶
type Identity struct { AvatarUrl string `json:"avatar_url,omitempty"` CommunityId string `json:"community_id,omitempty"` CommunityUrl string `json:"community_url,omitempty"` Company string `json:"company,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` DisplayName string `json:"display_name,omitempty"` Email string `json:"email,omitempty"` ExtraValues map[string]interface{} `json:"extra_values,omitempty"` Firstname string `json:"firstname,omitempty"` ForeignId string `json:"foreign_id,omitempty"` Gender string `json:"gender,omitempty"` HomePhone string `json:"home_phone,omitempty"` Id string `json:"id,omitempty"` // The identity group id references the identity group that contains all informations (phone, notes, etc.). Many identities may belong to this group. If the identity group id is null, it means that identity does not have a group and any extra information. Please refer to identity groups API for more informations. IdentityGroupId string `json:"identity_group_id,omitempty"` Lastname string `json:"lastname,omitempty"` MobilePhone string `json:"mobile_phone,omitempty"` Screenname string `json:"screenname,omitempty"` Type string `json:"type,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` UserIds []string `json:"user_ids,omitempty"` Uuid string `json:"uuid,omitempty"` }
type IdentityGroup ¶
type IdentityGroup struct { AvatarUrl string `json:"avatar_url,omitempty"` Company string `json:"company,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` CustomFieldValues map[string]interface{} `json:"custom_field_values,omitempty"` Emails []string `json:"emails,omitempty"` Firstname string `json:"firstname,omitempty"` Gender string `json:"gender,omitempty"` HomePhones []string `json:"home_phones,omitempty"` Id string `json:"id"` IdentityIds []string `json:"identity_ids,omitempty"` Lastname string `json:"lastname,omitempty"` MobilePhones []string `json:"mobile_phones,omitempty"` Notes string `json:"notes,omitempty"` TagIds []string `json:"tag_ids,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type IdentityGroupsApiService ¶
type IdentityGroupsApiService service
func (*IdentityGroupsApiService) GetAllIdentityGroups ¶
func (a *IdentityGroupsApiService) GetAllIdentityGroups(ctx context.Context, localVarOptionals *GetAllIdentityGroupsOpts) (GetAllIdentityGroupsResponse, *http.Response, error)
func (*IdentityGroupsApiService) GetIdentityGroup ¶
func (a *IdentityGroupsApiService) GetIdentityGroup(ctx context.Context, identityGroupId string) (IdentityGroup, *http.Response, error)
IdentityGroupsApiService Getting an identity group from its id This method renders an identity group from given id.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param identityGroupId
@return IdentityGroup
func (*IdentityGroupsApiService) UpdateIdentityGroup ¶
func (a *IdentityGroupsApiService) UpdateIdentityGroup(ctx context.Context, identityGroupId string, localVarOptionals *UpdateIdentityGroupOpts) (IdentityGroup, *http.Response, error)
type Intervention ¶
type Intervention struct { CategoryIds []string `json:"category_ids,omitempty"` Closed bool `json:"closed,omitempty"` ClosedAt time.Time `json:"closed_at,omitempty"` CommentsCount int32 `json:"comments_count,omitempty"` ContentId string `json:"content_id,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` DeferredAt time.Time `json:"deferred_at,omitempty"` FirstUserReplyId string `json:"first_user_reply_id,omitempty"` FirstUserReplyIn int32 `json:"first_user_reply_in,omitempty"` FirstUserReplyInBh int32 `json:"first_user_reply_in_bh,omitempty"` Id string `json:"id"` IdentityId string `json:"identity_id,omitempty"` LastUserReplyIn int32 `json:"last_user_reply_in,omitempty"` LastUserReplyInBh int32 `json:"last_user_reply_in_bh,omitempty"` SourceId string `json:"source_id,omitempty"` Status string `json:"status,omitempty"` ThreadId string `json:"thread_id,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` UserId string `json:"user_id,omitempty"` UserRepliesCount int32 `json:"user_replies_count,omitempty"` UserReplyInAverage int32 `json:"user_reply_in_average,omitempty"` UserReplyInAverageBh int32 `json:"user_reply_in_average_bh,omitempty"` UserReplyInAverageCount int32 `json:"user_reply_in_average_count,omitempty"` }
type InterventionComment ¶
type InterventionComment struct { Body string `json:"body,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` Id string `json:"id,omitempty"` InterventionId string `json:"intervention_id,omitempty"` ThreadId string `json:"thread_id,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` UserId string `json:"user_id,omitempty"` VidentityId string `json:"videntity_id,omitempty"` }
type InterventionCommentsApiService ¶
type InterventionCommentsApiService service
func (*InterventionCommentsApiService) CreateInterventionComment ¶
func (a *InterventionCommentsApiService) CreateInterventionComment(ctx context.Context, body string, interventionId string, userId string) (InterventionComment, *http.Response, error)
InterventionCommentsApiService Creating an intervention comment This method creates a new intervention comment. In case of success it renders the created comment, otherwise, it renders an error (422 HTTP code). It creates comment as token’s user. If token’s user does not have “read” on given intervention’s source a 404 HTTP response will be returned.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body The comment body (mandatory).
- @param interventionId The comment intervention id (mandatory).
- @param userId The comment user id (mandatory).
@return InterventionComment
func (*InterventionCommentsApiService) DeleteInterventionComment ¶
func (a *InterventionCommentsApiService) DeleteInterventionComment(ctx context.Context, interventionCommentId string) (InterventionComment, *http.Response, error)
InterventionCommentsApiService Deleting an intervention comment This method destroys an intervention comment. It renders comment itself. If token’s user does not have “read” on comment’s source a 404 HTTP response will be returned. Authorization: no.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param interventionCommentId
@return InterventionComment
func (*InterventionCommentsApiService) GetAllInterventionComments ¶
func (a *InterventionCommentsApiService) GetAllInterventionComments(ctx context.Context, localVarOptionals *GetAllInterventionCommentsOpts) (GetAllInterventionCommentsResponse, *http.Response, error)
func (*InterventionCommentsApiService) GetInterventionComment ¶
func (a *InterventionCommentsApiService) GetInterventionComment(ctx context.Context, interventionCommentId string) (InterventionComment, *http.Response, error)
InterventionCommentsApiService Getting an intervention comment from its id This method renders an intervention comment from given id. If token’s user does not have “read” on comment’s source a 404 HTTP response will be returned.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param interventionCommentId
@return InterventionComment
type InterventionsApiService ¶
type InterventionsApiService service
func (*InterventionsApiService) CancelIntervention ¶
func (a *InterventionsApiService) CancelIntervention(ctx context.Context, interventionId string) (Intervention, *http.Response, error)
InterventionsApiService Cancelling an intervention This method cancels (destroys) an intervention. It renders intervention itself. If token’s user does not have “read” on intervention’s source a 404 HTTP response will be returned. Caveats: * If the intervention is already being canceled, it will return a 409 error. * To be able to close an intervention, it must meet the following criteria otherwise a 403 will be raised: * Intervention MUST NOT already be closed * Intervention MUST NOT have agent replies * Access-Token agent MUST have read access on the source Authorization: no, but it renders an error if intervention can’t be destroyed (see caveats).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param interventionId
@return Intervention
func (*InterventionsApiService) CategorizeIntervention ¶
func (a *InterventionsApiService) CategorizeIntervention(ctx context.Context, interventionId string, categoryIds []string) (Intervention, *http.Response, error)
InterventionsApiService Categorizing an intervention This method updates the categories of an intervention. If token’s user does not have “read” on the intervention’s source a 404 HTTP response will be returned. Authorization: no.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param interventionId
- @param categoryIds
@return Intervention
func (*InterventionsApiService) CloseIntervention ¶
func (a *InterventionsApiService) CloseIntervention(ctx context.Context, interventionId string) (Intervention, *http.Response, error)
InterventionsApiService Closing an intervention This method closes an intervention. Caveats: * If the intervention is already being closed, it will return a 409 error. * To be able to close an intervention, it must meet the following criteria otherwise a 403 will be raised: * Intervention MUST NOT already be closed * Intervention MUST have agent replies * Access-Token agent MUST be the owner of the intervention or have the permission to edit permissions * Access-Token agent MUST have read access on the source Authorization: no, but it renders an error if intervention can’t be closed (see caveats)
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param interventionId
@return Intervention
func (*InterventionsApiService) CreateIntervention ¶
func (a *InterventionsApiService) CreateIntervention(ctx context.Context, contentId string) (GetAllInterventionsResponse, *http.Response, error)
InterventionsApiService Creating an intervention This method creates a new intervention or reopen it. In case of success it renders the intervention, otherwise, it renders an error (422 HTTP code). This method opens intervention as access token’s user. Authorization: no, but it renders an error if intervention can’t be created or reopened (already opened, etc.).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param contentId The content to create intervention on (mandatory).
@return GetAllInterventionsResponse
func (*InterventionsApiService) GetAllInterventions ¶
func (a *InterventionsApiService) GetAllInterventions(ctx context.Context, localVarOptionals *GetAllInterventionsOpts) (GetAllInterventionsResponse, *http.Response, error)
func (*InterventionsApiService) GetIntervention ¶
func (a *InterventionsApiService) GetIntervention(ctx context.Context, interventionId string) (Intervention, *http.Response, error)
InterventionsApiService Getting an intervention from its id This method renders an intervention from given id. If token’s user does not have “read” on intervention’s source a 404 HTTP response will be returned. Authorization: no.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param interventionId
@return Intervention
func (*InterventionsApiService) ReassignIntervention ¶
func (a *InterventionsApiService) ReassignIntervention(ctx context.Context, interventionId string, userId string) (Intervention, *http.Response, error)
InterventionsApiService Reassigning an intervention This method updates the user in charge of the intervention Authorization: Only users who can update interventions.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param interventionId
- @param userId
@return Intervention
type InviteUserOpts ¶
type LocalesApiService ¶
type LocalesApiService service
func (*LocalesApiService) GetAllLocales ¶
LocalesApiService Getting all locales This method renders all available locales.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []Locale
type PresenceStatus ¶
type PresenceStatusApiService ¶
type PresenceStatusApiService service
func (*PresenceStatusApiService) CreatePresenceStatus ¶
func (a *PresenceStatusApiService) CreatePresenceStatus(ctx context.Context, name string) (PresenceStatus, *http.Response, error)
PresenceStatusApiService Creating a presence status This method creates a presence status. In case of success it renders the presence status, otherwise, it renders an error (422 HTTP code). Authorization: only users that have the right to monitor the task view.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name The name of the presence status.
@return PresenceStatus
func (*PresenceStatusApiService) DeletePresenceStatus ¶
func (a *PresenceStatusApiService) DeletePresenceStatus(ctx context.Context, presenceStatusId string) (PresenceStatus, *http.Response, error)
PresenceStatusApiService Deleting a presence status This method destroys an existing presence status. It renders presence status itself. It renders a 404 if id is invalid. Authorization: only users that have the right to monitor the task view.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param presenceStatusId
@return PresenceStatus
func (*PresenceStatusApiService) GetAllPresenceStatus ¶
func (a *PresenceStatusApiService) GetAllPresenceStatus(ctx context.Context, localVarOptionals *GetAllPresenceStatusOpts) (GetAllPresenceStatusResponse, *http.Response, error)
func (*PresenceStatusApiService) GetPresenceStatus ¶
func (a *PresenceStatusApiService) GetPresenceStatus(ctx context.Context, presenceStatusId string) (PresenceStatus, *http.Response, error)
PresenceStatusApiService Getting a presence status from its id This method renders a presence status from given id. Authorization: only users that have the right to monitor the task view.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param presenceStatusId
@return PresenceStatus
func (*PresenceStatusApiService) UpdatePresenceStatus ¶
func (a *PresenceStatusApiService) UpdatePresenceStatus(ctx context.Context, presenceStatusId string, name string) (PresenceStatus, *http.Response, error)
PresenceStatusApiService Updating a presence status This method updates an existing presence status from given attributes and renders it in case of success. Authorization: only users that have the right to monitor the task view.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param presenceStatusId
- @param name The name of the presence status.
@return PresenceStatus
type ReplyAssistantEntriesApiService ¶
type ReplyAssistantEntriesApiService service
func (*ReplyAssistantEntriesApiService) CreateReplyAssistantEntry ¶
func (a *ReplyAssistantEntriesApiService) CreateReplyAssistantEntry(ctx context.Context, label string) (ReplyAssistantEntry, *http.Response, error)
ReplyAssistantEntriesApiService Creating an entry This method creates a reply assistant entry. In case of success it renders the entry, otherwise, it renders an error (422 HTTP code). Authorization: only users that have the right to manage reply assistant.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param label The name of the entry.
@return ReplyAssistantEntry
func (*ReplyAssistantEntriesApiService) DeleteReplyAssistantEntry ¶
func (a *ReplyAssistantEntriesApiService) DeleteReplyAssistantEntry(ctx context.Context, replyAssistantEntryId string) (ReplyAssistantEntry, *http.Response, error)
ReplyAssistantEntriesApiService Deleting a reply assistant entry This method destroys an existing entry. It renders the entry itself. It renders a 404 if id is invalid. Authorization: only users that have the right to manage reply assistant.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param replyAssistantEntryId
@return ReplyAssistantEntry
func (*ReplyAssistantEntriesApiService) GetAllReplyAssistantEntries ¶
func (a *ReplyAssistantEntriesApiService) GetAllReplyAssistantEntries(ctx context.Context, localVarOptionals *GetAllReplyAssistantEntriesOpts) (GetAllReplyAssistantEntriesResponse, *http.Response, error)
func (*ReplyAssistantEntriesApiService) GetReplyAssistantEntry ¶
func (a *ReplyAssistantEntriesApiService) GetReplyAssistantEntry(ctx context.Context, replyAssistantEntryId string) (ReplyAssistantEntry, *http.Response, error)
ReplyAssistantEntriesApiService Getting a reply assistant entry from its id This method renders an entry from given id. Authorization: only users that have the right to manage reply assistant.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param replyAssistantEntryId
@return ReplyAssistantEntry
func (*ReplyAssistantEntriesApiService) UpdateReplyAssistantEntry ¶
func (a *ReplyAssistantEntriesApiService) UpdateReplyAssistantEntry(ctx context.Context, replyAssistantEntryId string, localVarOptionals *UpdateReplyAssistantEntryOpts) (ReplyAssistantEntry, *http.Response, error)
type ReplyAssistantEntry ¶
type ReplyAssistantEntry struct { CategoryIds []string `json:"category_ids,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` EntryGroupId string `json:"entry_group_id,omitempty"` ForeignId string `json:"foreign_id,omitempty"` Id string `json:"id"` Label string `json:"label,omitempty"` Shortcuts string `json:"shortcuts,omitempty"` SourceIds []string `json:"source_ids,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` VersionIds []string `json:"version_ids,omitempty"` }
type ReplyAssistantGroup ¶
type ReplyAssistantGroup struct { Autocomplete bool `json:"autocomplete,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` EntryIds []string `json:"entry_ids,omitempty"` Id string `json:"id"` Name string `json:"name,omitempty"` Position int32 `json:"position,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type ReplyAssistantGroupsApiService ¶
type ReplyAssistantGroupsApiService service
func (*ReplyAssistantGroupsApiService) CreateReplyAssistantGroup ¶
func (a *ReplyAssistantGroupsApiService) CreateReplyAssistantGroup(ctx context.Context, name string, localVarOptionals *CreateReplyAssistantGroupOpts) (ReplyAssistantGroup, *http.Response, error)
func (*ReplyAssistantGroupsApiService) DeleteReplyAssistantGroup ¶
func (a *ReplyAssistantGroupsApiService) DeleteReplyAssistantGroup(ctx context.Context, replyAssistantGroupId string) (ReplyAssistantGroup, *http.Response, error)
ReplyAssistantGroupsApiService Deleting a reply assistant group This method destroys an existing group. It renders the group itself. It renders a 404 if id is invalid. Authorization: only users that have the right to manage reply assistant.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param replyAssistantGroupId
@return ReplyAssistantGroup
func (*ReplyAssistantGroupsApiService) GetAllReplyAssistantGroups ¶
func (a *ReplyAssistantGroupsApiService) GetAllReplyAssistantGroups(ctx context.Context, localVarOptionals *GetAllReplyAssistantGroupsOpts) (GetAllReplyAssistantGroupsResponse, *http.Response, error)
func (*ReplyAssistantGroupsApiService) GetReplyAssistantGroup ¶
func (a *ReplyAssistantGroupsApiService) GetReplyAssistantGroup(ctx context.Context, replyAssistantGroupId string) (ReplyAssistantGroup, *http.Response, error)
ReplyAssistantGroupsApiService Getting a reply assistant group from its id This method renders an entry group from given id. Authorization: only users that have the right to manage reply assistant.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param replyAssistantGroupId
@return ReplyAssistantGroup
func (*ReplyAssistantGroupsApiService) UpdateReplyAssistantGroup ¶
func (a *ReplyAssistantGroupsApiService) UpdateReplyAssistantGroup(ctx context.Context, replyAssistantGroupId string, localVarOptionals *UpdateReplyAssistantGroupOpts) (ReplyAssistantGroup, *http.Response, error)
type ReplyAssistantVersion ¶
type ReplyAssistantVersion struct { AttachmentsCount int32 `json:"attachments_count,omitempty"` Body string `json:"body,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` EntryId string `json:"entry_id,omitempty"` Format string `json:"format,omitempty"` Id string `json:"id"` Language string `json:"language,omitempty"` SourceIds []string `json:"source_ids,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type ReplyAssistantVersionsApiService ¶
type ReplyAssistantVersionsApiService service
func (*ReplyAssistantVersionsApiService) CreateReplyAssistantVersion ¶
func (a *ReplyAssistantVersionsApiService) CreateReplyAssistantVersion(ctx context.Context, body string, entryId string, localVarOptionals *CreateReplyAssistantVersionOpts) (ReplyAssistantVersion, *http.Response, error)
func (*ReplyAssistantVersionsApiService) DeleteReplyAssistantVersion ¶
func (a *ReplyAssistantVersionsApiService) DeleteReplyAssistantVersion(ctx context.Context, replyAssistantVersionId string) (ReplyAssistantVersion, *http.Response, error)
ReplyAssistantVersionsApiService Deleting a reply assistant version This method destroys an existing version. It renders the version itself. It renders a 404 if id is invalid. Authorization: only users that have the right to manage reply assistant.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param replyAssistantVersionId
@return ReplyAssistantVersion
func (*ReplyAssistantVersionsApiService) GetAllReplyAssistantVersions ¶
func (a *ReplyAssistantVersionsApiService) GetAllReplyAssistantVersions(ctx context.Context, localVarOptionals *GetAllReplyAssistantVersionsOpts) (GetAllReplyAssistantVersionsResponse, *http.Response, error)
func (*ReplyAssistantVersionsApiService) GetReplyAssistantVersion ¶
func (a *ReplyAssistantVersionsApiService) GetReplyAssistantVersion(ctx context.Context, replyAssistantVersionId string) (ReplyAssistantVersion, *http.Response, error)
ReplyAssistantVersionsApiService Getting a reply assistant version from its id This method renders a version from given id. Authorization: only users that have the right to manage reply assistant.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param replyAssistantVersionId
@return ReplyAssistantVersion
func (*ReplyAssistantVersionsApiService) UpdateReplyAssistantVersion ¶
func (a *ReplyAssistantVersionsApiService) UpdateReplyAssistantVersion(ctx context.Context, replyAssistantVersionId string, localVarOptionals *UpdateReplyAssistantVersionOpts) (ReplyAssistantVersion, *http.Response, error)
type Restriction ¶
type Restriction struct {
Only []string `json:"only,omitempty"`
}
type Role ¶
type Role struct { AccessHelpCenter bool `json:"access_help_center,omitempty"` AccessPreviousMessages bool `json:"access_previous_messages,omitempty"` AccessPullMode bool `json:"access_pull_mode,omitempty"` AdminStampAnswer bool `json:"admin_stamp_answer,omitempty"` AnonymizeIdentity bool `json:"anonymize_identity,omitempty"` ApproveContent bool `json:"approve_content,omitempty"` AssignIntervention bool `json:"assign_intervention,omitempty"` AuthorBlockContent bool `json:"author_block_content,omitempty"` CloseContentThread bool `json:"close_content_thread,omitempty"` CreateAndDestroyExtension bool `json:"create_and_destroy_extension,omitempty"` CreateCommunity bool `json:"create_community,omitempty"` CreateContentSource bool `json:"create_content_source,omitempty"` CreateUser bool `json:"create_user,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` DelayExportContent bool `json:"delay_export_content,omitempty"` DeleteContentThread bool `json:"delete_content_thread,omitempty"` ExportIdentity bool `json:"export_identity,omitempty"` Id string `json:"id,omitempty"` ImpersonateUser bool `json:"impersonate_user,omitempty"` InviteUser bool `json:"invite_user,omitempty"` Label string `json:"label,omitempty"` LockIdentity bool `json:"lock_identity,omitempty"` ManageApiAccessTokens bool `json:"manage_api_access_tokens,omitempty"` ManageAppSdkApplications bool `json:"manage_app_sdk_applications,omitempty"` ManageCategories bool `json:"manage_categories,omitempty"` ManageChat bool `json:"manage_chat,omitempty"` ManageCustomFields bool `json:"manage_custom_fields,omitempty"` ManageCustomNotifications bool `json:"manage_custom_notifications,omitempty"` ManageEmailsTemplates bool `json:"manage_emails_templates,omitempty"` ManageFolders bool `json:"manage_folders,omitempty"` ManageIce bool `json:"manage_ice,omitempty"` ManageIdentities bool `json:"manage_identities,omitempty"` ManageMessaging bool `json:"manage_messaging,omitempty"` ManageOwnNotifications bool `json:"manage_own_notifications,omitempty"` ManageReplyAssistant bool `json:"manage_reply_assistant,omitempty"` ManageRoles bool `json:"manage_roles,omitempty"` ManageRulesEngineRules bool `json:"manage_rules_engine_rules,omitempty"` ManageTags bool `json:"manage_tags,omitempty"` ManageTeams bool `json:"manage_teams,omitempty"` ManageTopologies bool `json:"manage_topologies,omitempty"` ManageUsersOfMyTeams bool `json:"manage_users_of_my_teams,omitempty"` MonitorTasks bool `json:"monitor_tasks,omitempty"` MonitorTeamTasks bool `json:"monitor_team_tasks,omitempty"` MuteContent bool `json:"mute_content,omitempty"` OpenContentThread bool `json:"open_content_thread,omitempty"` PublishContent bool `json:"publish_content,omitempty"` ReadCommunity bool `json:"read_community,omitempty"` ReadContentSource bool `json:"read_content_source,omitempty"` ReadEvent bool `json:"read_event,omitempty"` ReadExport bool `json:"read_export,omitempty"` ReadIdentity bool `json:"read_identity,omitempty"` ReadOwnStats bool `json:"read_own_stats,omitempty"` ReadPresence bool `json:"read_presence,omitempty"` ReadStats bool `json:"read_stats,omitempty"` ReadUser bool `json:"read_user,omitempty"` ReceiveTasks bool `json:"receive_tasks,omitempty"` ReplyWithAssistant bool `json:"reply_with_assistant,omitempty"` SearchContents bool `json:"search_contents,omitempty"` SearchEvent bool `json:"search_event,omitempty"` UpdateCommunity bool `json:"update_community,omitempty"` UpdateContentSource bool `json:"update_content_source,omitempty"` UpdateExtension bool `json:"update_extension,omitempty"` UpdateIdentity bool `json:"update_identity,omitempty"` UpdateIntervention bool `json:"update_intervention,omitempty"` UpdateOwnIntervention bool `json:"update_own_intervention,omitempty"` UpdateSettings bool `json:"update_settings,omitempty"` UpdateTimeSheet bool `json:"update_time_sheet,omitempty"` UpdateUser bool `json:"update_user,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` UseCobrowsing bool `json:"use_cobrowsing,omitempty"` UseEmoji bool `json:"use_emoji,omitempty"` }
type RolesApiService ¶
type RolesApiService service
func (*RolesApiService) CreateRole ¶
func (a *RolesApiService) CreateRole(ctx context.Context, label string, localVarOptionals *CreateRoleOpts) (Role, *http.Response, error)
func (*RolesApiService) GetAllRoles ¶
func (a *RolesApiService) GetAllRoles(ctx context.Context, localVarOptionals *GetAllRolesOpts) (GetAllRolesResponse, *http.Response, error)
func (*RolesApiService) GetRole ¶
RolesApiService Getting a role from its id This method renders a role from given id. Authorization: only users that can manage roles.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param roleId
@return Role
func (*RolesApiService) UpdateRole ¶
func (a *RolesApiService) UpdateRole(ctx context.Context, roleId string, localVarOptionals *UpdateRoleOpts) (Role, *http.Response, error)
type Settings ¶
type Settings struct { ActivityPresenceThreshold int32 `json:"activity_presence_threshold,omitempty"` ActivityTracking bool `json:"activity_tracking,omitempty"` BeginningOfWeek string `json:"beginning_of_week,omitempty"` BrowserNotificationsDisabled bool `json:"browser_notifications_disabled,omitempty"` ContentLanguages []string `json:"content_languages[],omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` DenyIframeIntegration bool `json:"deny_iframe_integration,omitempty"` DisablePasswordAutocomplete bool `json:"disable_password_autocomplete,omitempty"` DisplayOnlyUnknownBbcode bool `json:"display_only_unknown_bbcode,omitempty"` DumpInPreprod bool `json:"dump_in_preprod,omitempty"` ExpirePasswordAfter int32 `json:"expire_password_after,omitempty"` ExpirePasswordEnabled bool `json:"expire_password_enabled,omitempty"` FteDuration int32 `json:"fte_duration,omitempty"` Id string `json:"id,omitempty"` IdentityMerge bool `json:"identity_merge,omitempty"` InterventionClosingPeriod int32 `json:"intervention_closing_period,omitempty"` InterventionDeferRates []int32 `json:"intervention_defer_rates,omitempty"` InterventionDeferThreshold int32 `json:"intervention_defer_threshold,omitempty"` InterventionRates []int32 `json:"intervention_rates,omitempty"` Locale string `json:"locale,omitempty"` MultiLang bool `json:"multi_lang,omitempty"` Name string `json:"name,omitempty"` PasswordArchivableEnabled bool `json:"password_archivable_enabled,omitempty"` PasswordArchivableSize int32 `json:"password_archivable_size,omitempty"` PasswordMinLength int32 `json:"password_min_length,omitempty"` PasswordNonWord bool `json:"password_non_word,omitempty"` PasswordNumbers bool `json:"password_numbers,omitempty"` PasswordRecoveryDisabled bool `json:"password_recovery_disabled,omitempty"` PushEnabled bool `json:"push_enabled,omitempty"` ReplyAsAnyIdentity bool `json:"reply_as_any_identity,omitempty"` RtlSupport bool `json:"rtl_support,omitempty"` SelfApprovalRequired bool `json:"self_approval_required,omitempty"` SessionTimeout int32 `json:"session_timeout,omitempty"` ShardingKey string `json:"sharding_key,omitempty"` Spellchecking bool `json:"spellchecking,omitempty"` Style string `json:"style,omitempty"` ThirdPartyServicesDisabled bool `json:"third_party_services_disabled,omitempty"` Timezone string `json:"timezone,omitempty"` Type string `json:"type,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` UrgentTaskThreshold int32 `json:"urgent_task_threshold,omitempty"` UseTwoLettersAvatars bool `json:"use_two_letters_avatars,omitempty"` }
type SettingsApiService ¶
type SettingsApiService service
func (*SettingsApiService) GetAllSettings ¶
SettingsApiService Getting all settings This method renders all settings of your domain. Authorization: only users that can update settings.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return Settings
func (*SettingsApiService) UpdateSettings ¶
func (a *SettingsApiService) UpdateSettings(ctx context.Context, localVarOptionals *UpdateSettingsOpts) (Settings, *http.Response, error)
type Source ¶
type Source struct { // Activate/deactivate the source Active bool `json:"active,omitempty"` // Auto-detect content language (Boolean) AutoDetectContentLanguage bool `json:"auto_detect_content_language,omitempty"` ChannelId string `json:"channel_id,omitempty"` // Color of the icon: Default: 0 Blue: 1 Green: 2 Turquoise: 3 Purple: 4 Yellow: 5 Orange: 6 Red: 7 Asphalt: 8 Grey: 9 Color int32 `json:"color,omitempty"` CommunityId string `json:"community_id,omitempty"` // Automatic archiving of old contents (Boolean) ContentArchiving bool `json:"content_archiving,omitempty"` // Archive contents older than (seconds) ContentArchivingPeriod int64 `json:"content_archiving_period,omitempty"` ContentLanguages []string `json:"content_languages,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` // Default categories DefaultCategoryIds []string `json:"default_category_ids,omitempty"` // Default content language DefaultContentLanguage string `json:"default_content_language,omitempty"` ErrorMessage string `json:"error_message,omitempty"` // Hide from statistics HiddenFromStats bool `json:"hidden_from_stats,omitempty"` Id string `json:"id,omitempty"` // Priority boost of messages with intervention InterventionMessagesBoost int32 `json:"intervention_messages_boost,omitempty"` // Source name Name string `json:"name,omitempty"` // SLA expired strategy (\"max\", \"half\" or \"base\") SlaExpiredStrategy string `json:"sla_expired_strategy,omitempty"` // Response time (seconds) SlaResponse int32 `json:"sla_response,omitempty"` Status string `json:"status,omitempty"` TimeSheetIds []string `json:"time_sheet_ids,omitempty"` // Priority boost of transferred tasks TransferredTasksBoost int32 `json:"transferred_tasks_boost,omitempty"` Type string `json:"type,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` // Default categories (agent messages) UserThreadDefaultCategoryIds []string `json:"user_thread_default_category_ids,omitempty"` }
type SourcesApiService ¶
type SourcesApiService service
func (*SourcesApiService) GetAllSources ¶
func (a *SourcesApiService) GetAllSources(ctx context.Context, localVarOptionals *GetAllSourcesOpts) (GetAllSourcesResponse, *http.Response, error)
func (*SourcesApiService) GetSource ¶
func (a *SourcesApiService) GetSource(ctx context.Context, sourceId string) (Source, *http.Response, error)
SourcesApiService Getting a source from its id This method renders a source from given id.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param sourceId
@return Source
func (*SourcesApiService) UpdateSource ¶
func (a *SourcesApiService) UpdateSource(ctx context.Context, sourceId string, localVarOptionals *UpdateSourceOpts) (Source, *http.Response, error)
type TagsApiService ¶
type TagsApiService service
func (*TagsApiService) CreateTag ¶
TagsApiService Creating a tag This method creates a new tag. In case of success it renders the created tag, otherwise, it renders an error (422 HTTP code).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Tag name (mandatory).
@return Tag
func (*TagsApiService) DeleteTag ¶
TagsApiService Deleting a tag This method destroys an existing tag. It renders tag itself. It renders a 404 if id is invalid. Authorization: only users that are able to destroy tags.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param tagId
@return Tag
func (*TagsApiService) GetAllTags ¶
func (a *TagsApiService) GetAllTags(ctx context.Context, localVarOptionals *GetAllTagsOpts) (GetAllTagsResponse, *http.Response, error)
func (*TagsApiService) GetTag ¶
TagsApiService Getting a tag from its id This method renders a tag from given id.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param tagId
@return Tag
func (*TagsApiService) UpdateTag ¶
func (a *TagsApiService) UpdateTag(ctx context.Context, tagId string, name string) (Tag, *http.Response, error)
TagsApiService Updating a tag This method updates an existing tag from given attributes and renders it in case of success. Authorization: only users that are able to update tags.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param tagId
- @param name Tag’s label.
@return Tag
type Task ¶
type Task struct { AcceptedAt time.Time `json:"accepted_at,omitempty"` AgentIds []string `json:"agent_ids,omitempty"` ChannelId string `json:"channel_id,omitempty"` CompletedAt time.Time `json:"completed_at,omitempty"` ContentId string `json:"content_id,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` ExpireAt time.Time `json:"expire_at,omitempty"` Id string `json:"id"` InterventionId string `json:"intervention_id,omitempty"` LockedAt time.Time `json:"locked_at,omitempty"` Priority int32 `json:"priority,omitempty"` Step string `json:"step,omitempty"` ThreadId string `json:"thread_id,omitempty"` TransferedAt time.Time `json:"transfered_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type TasksApiService ¶
type TasksApiService service
func (*TasksApiService) GetAllTasks ¶
func (a *TasksApiService) GetAllTasks(ctx context.Context, localVarOptionals *GetAllTasksOpts) (GetAllTasksResponse, *http.Response, error)
func (*TasksApiService) GetTask ¶
TasksApiService Getting a task from its id This method renders a task from given id.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param taskId
@return Task
func (*TasksApiService) MoveTask ¶
func (a *TasksApiService) MoveTask(ctx context.Context, taskId string, queue string) (Task, *http.Response, error)
TasksApiService Move a task to another queue This method changes a task queue and renders it in case of success. Only accepts “undelivered” and special queue defined in topology (e.g. triage). Authorization: only users that have the right to monitor the task view.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param taskId
- @param queue Name of the queue task has to be moved in.
@return Task
func (*TasksApiService) TransferTask ¶
func (a *TasksApiService) TransferTask(ctx context.Context, taskId string, localVarOptionals *TransferTaskOpts) (Task, *http.Response, error)
type TeamsApiService ¶
type TeamsApiService service
func (*TeamsApiService) CreateTeam ¶
func (a *TeamsApiService) CreateTeam(ctx context.Context, localVarOptionals *CreateTeamOpts) (Team, *http.Response, error)
func (*TeamsApiService) DeleteTeam ¶
func (a *TeamsApiService) DeleteTeam(ctx context.Context, teamId string, localVarOptionals *DeleteTeamOpts) (Team, *http.Response, error)
func (*TeamsApiService) GetAllTeams ¶
func (a *TeamsApiService) GetAllTeams(ctx context.Context, localVarOptionals *GetAllTeamsOpts) (GetAllTeamsResponse, *http.Response, error)
func (*TeamsApiService) GetTeam ¶
TeamsApiService Getting a team from its id This method renders a team from given id.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param teamId
@return Team
func (*TeamsApiService) UpdateTeam ¶
func (a *TeamsApiService) UpdateTeam(ctx context.Context, teamId string, localVarOptionals *UpdateTeamOpts) (Team, *http.Response, error)
type Thread ¶
type Thread struct { CategoryIds []string `json:"category_ids,omitempty"` Closed bool `json:"closed,omitempty"` ContentsCount int32 `json:"contents_count,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` ExtraData map[string]interface{} `json:"extra_data,omitempty"` ForeignId string `json:"foreign_id,omitempty"` Id string `json:"id"` InterventionsCount int32 `json:"interventions_count,omitempty"` SourceId string `json:"source_id,omitempty"` ThreadCategoryIds []string `json:"thread_category_ids,omitempty"` Title string `json:"title,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type ThreadsApiService ¶
type ThreadsApiService service
func (*ThreadsApiService) ArchiveThread ¶
func (a *ThreadsApiService) ArchiveThread(ctx context.Context, threadId string) (Thread, *http.Response, error)
ThreadsApiService Archiving a thread Archives the contents of a thread. If token’s user does not have “read” on thread’s source a 404 HTTP response will be returned. If the thread is already being archived, a 409 HTTP response will be returned. Authorization: no.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param threadId
@return Thread
func (*ThreadsApiService) CategorizeThread ¶
func (a *ThreadsApiService) CategorizeThread(ctx context.Context, threadId string, localVarOptionals *CategorizeThreadOpts) (Thread, *http.Response, error)
func (*ThreadsApiService) CloseThread ¶
func (a *ThreadsApiService) CloseThread(ctx context.Context, threadId string) (Thread, *http.Response, error)
ThreadsApiService Close a thread Thread closure/opening is only available for the following sources: * Emails * Answers * Ideas * Facebook Messenger * Google+ * Lithium * Mobile Messaging Starts a job to close a thread. It returns the thread but as the job is asynchronous, the state of the “close” attribute in the returned object do not is the one when the job started. If token’s user does not have “read” on thread’s source a 404 HTTP response will be returned. Returns a 403 if the thread cannot be closed or if the user does not have the permission to close a thread. Authorization: no.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param threadId
@return Thread
func (*ThreadsApiService) GetAllThreads ¶
func (a *ThreadsApiService) GetAllThreads(ctx context.Context, localVarOptionals *GetAllThreadsOpts) (GetAllThreadsResponse, *http.Response, error)
func (*ThreadsApiService) GetThread ¶
func (a *ThreadsApiService) GetThread(ctx context.Context, threadId string) (Thread, *http.Response, error)
ThreadsApiService Getting a thread from its id This method renders a thread from given id. If token’s user does not have “read” on thread’s source a 404 HTTP response will be returned. Authorization: no.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param threadId
@return Thread
func (*ThreadsApiService) OpenThread ¶
func (a *ThreadsApiService) OpenThread(ctx context.Context, threadId string) (Thread, *http.Response, error)
ThreadsApiService Open a thread Thread closure/opening is only available for the following sources: * Emails * Answers * Ideas * Facebook Messenger * Google+ * Lithium * Mobile Messaging Starts a job to open a thread. It returns the thread but as the job is asynchronous, the state of the “close” attribute in the returned object is the one when the job started. If token’s user does not have “read” on thread’s source a 404 HTTP response will be returned. Returns a 403 if the thread cannot be opened or if the user does not have the permission to open a thread. Authorization: no.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param threadId
@return Thread
type TimeSheet ¶
type TimeSheet struct { Active bool `json:"active,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` FridayHours string `json:"friday_hours,omitempty"` Holidays []TimeSheetHoliday `json:"holidays[],omitempty"` Id string `json:"id"` Label string `json:"label,omitempty"` MondayHours string `json:"monday_hours,omitempty"` SaturdayHours string `json:"saturday_hours,omitempty"` SourceIds []string `json:"source_ids,omitempty"` SundayHours string `json:"sunday_hours,omitempty"` ThursdayHours string `json:"thursday_hours,omitempty"` Timezone string `json:"timezone,omitempty"` TuesdayHours string `json:"tuesday_hours,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` WednesdayHours string `json:"wednesday_hours,omitempty"` }
type TimeSheetHoliday ¶
type TimeSheetsApiService ¶
type TimeSheetsApiService service
func (*TimeSheetsApiService) CreateTimeSheet ¶
func (a *TimeSheetsApiService) CreateTimeSheet(ctx context.Context, label string, localVarOptionals *CreateTimeSheetOpts) (TimeSheet, *http.Response, error)
func (*TimeSheetsApiService) DeleteTimeSheet ¶
func (a *TimeSheetsApiService) DeleteTimeSheet(ctx context.Context, timeSheetId string) (TimeSheet, *http.Response, error)
TimeSheetsApiService Deleting a time sheet This method destroys an existing time sheet. It renders time sheet itself. It renders a 404 if id is invalid.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param timeSheetId
@return TimeSheet
func (*TimeSheetsApiService) GetAllTimeSheets ¶
func (a *TimeSheetsApiService) GetAllTimeSheets(ctx context.Context, localVarOptionals *GetAllTimeSheetsOpts) (GetAllTimeSheetsResponse, *http.Response, error)
func (*TimeSheetsApiService) GetTimeSheet ¶
func (a *TimeSheetsApiService) GetTimeSheet(ctx context.Context, timeSheetId string) (TimeSheet, *http.Response, error)
TimeSheetsApiService Getting a time sheet from its id This method renders a time sheet from given id. Authorization: only users that can see time sheets in administration section.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param timeSheetId
@return TimeSheet
func (*TimeSheetsApiService) UpdateTimeSheet ¶
func (a *TimeSheetsApiService) UpdateTimeSheet(ctx context.Context, timeSheetId string, localVarOptionals *UpdateTimeSheetOpts) (TimeSheet, *http.Response, error)
type TimezonesApiService ¶
type TimezonesApiService service
func (*TimezonesApiService) GetAllTimezones ¶
func (a *TimezonesApiService) GetAllTimezones(ctx context.Context) ([]Timezone, *http.Response, error)
TimezonesApiService Getting all timezones This method renders all available timezones.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []Timezone
type TransferTaskOpts ¶
type UpdateCategoryOpts ¶
type UpdateChannelOpts ¶
type UpdateCustomFieldOpts ¶
type UpdateFolderOpts ¶
type UpdateIdentityGroupOpts ¶
type UpdateIdentityGroupOpts struct { Company optional.String CustomFieldValuesCustomFieldKey optional.String Emails optional.Interface Firstname optional.String Gender optional.String HomePhones optional.Interface Lastname optional.String MobilePhones optional.Interface Notes optional.String TagIds optional.Interface }
type UpdateRoleOpts ¶
type UpdateRoleOpts struct { AccessHelpCenter optional.Bool AccessPreviousMessages optional.Bool AccessPullMode optional.Bool AdminStampAnswer optional.Bool ApproveContent optional.Bool AssignIntervention optional.Bool AuthorBlockContent optional.Bool CloseContentThread optional.Bool CreateAndDestroyExtension optional.Bool CreateCommunity optional.Bool CreateContentSource optional.Bool CreateUser optional.Bool DelayExportContent optional.Bool DeleteContentThread optional.Bool ImpersonateUser optional.Bool InviteUser optional.Bool ManageApiAccessTokens optional.Bool ManageAppSdkApplications optional.Bool ManageAutomaticExportsTasks optional.Bool ManageCategories optional.Bool ManageChat optional.Bool ManageCustomFields optional.Bool ManageCustomNotifications optional.Bool ManageEmailsTemplates optional.Bool ManageFolders optional.Bool ManageIce optional.Bool ManageIdentities optional.Bool ManageOwnNotifications optional.Bool ManageReplyAssistant optional.Bool ManageRoles optional.Bool ManageRulesEngineRules optional.Bool ManageSurveys optional.Bool ManageTags optional.Bool ManageTeams optional.Bool ManageTopologies optional.Bool ManageUsersOfMyTeams optional.Bool MonitorTasks optional.Bool MonitorTeamTasks optional.Bool MuteContent optional.Bool OpenContentThread optional.Bool PublishContent optional.Bool ReadCommunity optional.Bool ReadContentSource optional.Bool ReadEvent optional.Bool ReadExport optional.Bool ReadIdentity optional.Bool ReadOwnStats optional.Bool ReadPresence optional.Bool ReadStats optional.Bool ReadSurveys optional.Bool ReadUser optional.Bool ReceiveTasks optional.Bool ReplyWithAssistant optional.Bool SearchContents optional.Bool SearchEvent optional.Bool UpdateCommunity optional.Bool UpdateContentSource optional.Bool UpdateExtension optional.Bool UpdateIdentity optional.Bool UpdateIntervention optional.Bool UpdateOwnIntervention optional.Bool UpdateSettings optional.Bool UpdateTimeSheet optional.Bool UpdateUser optional.Bool UseEmoji optional.Bool }
type UpdateSettingsOpts ¶
type UpdateSettingsOpts struct { ActivityPresenceThreshold optional.Int32 ActivityTracking optional.Bool BeginningOfWeek optional.String CategoryTagging optional.Bool ContentLanguages optional.String Dashboard optional.Bool DenyIframeIntegration optional.Bool DisablePasswordAutocomplete optional.Bool ExpirePasswordAfter optional.Int32 ExpirePasswordEnabled optional.Bool ExportInSeconds optional.Bool FoldUselessContents optional.Bool FteDuration optional.Int32 IdentityMerge optional.Bool InterventionDeferRates optional.Interface InterventionDeferThreshold optional.Int32 InterventionRates optional.Interface Locale optional.String MultiLang optional.Bool Name optional.String PasswordArchivableEnabled optional.Bool PasswordArchivableSize optional.Int32 PasswordMinLength optional.Int32 PasswordNonWord optional.Bool PasswordNumbers optional.Bool PasswordRecoveryDisabled optional.Bool PushEnabled optional.Bool ReplyAsAnyIdentity optional.Bool RtlSupport optional.Bool SelfApprovalRequired optional.Bool SessionTimeout optional.Int32 Spellchecking optional.Bool Style optional.String ThirdPartyServicesDisabled optional.Bool Timezone optional.String TrackJs optional.Bool Type_ optional.String UrgentTaskThreshold optional.Int32 UseSystemFont optional.Bool }
type UpdateSourceOpts ¶
type UpdateSourceOpts struct { Name optional.String Active optional.Bool ChannelId optional.String Color optional.Int32 SlaResponse optional.Int32 SlaExpiredStrategy optional.String InterventionMessagesBoost optional.Int32 TransferredTasksBoost optional.Int32 HiddenFromStats optional.Bool DefaultCategoryIds optional.Interface UserThreadDefaultCategoryIds optional.Interface DefaultContentLanguage optional.String AutoDetectContentLanguage optional.Bool ContentArchiving optional.Bool ContentArchivingPeriod optional.Int32 }
type UpdateTeamOpts ¶
type UpdateTimeSheetOpts ¶
type UpdateTimeSheetOpts struct { Active optional.Bool Label optional.String SourceIds optional.Interface Holidays optional.String MondayHours optional.String TuesdayHours optional.String WednesdayHours optional.String ThursdayHours optional.String FridayHours optional.String SaturdayHours optional.String SundayHours optional.String }
type UpdateUserOpts ¶
type UpdateUserOpts struct { CategoryIds optional.Interface Email optional.String Enabled optional.Bool ExternalId optional.String Firstname optional.String Gender optional.String IdentityIds optional.Interface Lastname optional.String Locale optional.String Nickname optional.String Password optional.String RoleId optional.String TeamIds optional.Interface Timezone optional.String SpokenLanguages optional.Interface }
type UpdateWebhookOpts ¶
type User ¶
type User struct { CategoryIds []string `json:"category_ids,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` Email string `json:"email,omitempty"` Enabled bool `json:"enabled,omitempty"` ExternalId string `json:"external_id,omitempty"` Firstname string `json:"firstname,omitempty"` Gender string `json:"gender,omitempty"` Id string `json:"id"` IdentityIds []string `json:"identity_ids,omitempty"` InvitationPending bool `json:"invitation_pending,omitempty"` Lastname string `json:"lastname,omitempty"` Locale string `json:"locale,omitempty"` Nickname string `json:"nickname,omitempty"` RcUserId string `json:"rc_user_id,omitempty"` RoleId string `json:"role_id,omitempty"` SpokenLanguages []string `json:"spoken_languages,omitempty"` TeamIds []string `json:"team_ids,omitempty"` Timezone string `json:"timezone,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type UsersApiService ¶
type UsersApiService service
func (*UsersApiService) CreateUser ¶
func (*UsersApiService) DeleteUser ¶
func (a *UsersApiService) DeleteUser(ctx context.Context, userId string) (User, *http.Response, error)
UsersApiService Deleting a user This method deletes the given user. In case of success it renders the deleted user, otherwise, it renders an error (422 HTTP code). Authorization: only users that can update users. The user affiliated to the token must have at least all the permissions of the other user. If the user affiliated to the token has the manage_users_of_my_teams permission, the deleted user will need to belong to at least one of the teams he’s the leader of.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param userId
@return User
func (*UsersApiService) GetAllUsers ¶
func (a *UsersApiService) GetAllUsers(ctx context.Context, localVarOptionals *GetAllUsersOpts) (GetAllUsersResponse, *http.Response, error)
func (*UsersApiService) GetUser ¶
UsersApiService Getting a user from its id This method renders a user from given id.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param userId
@return User
func (*UsersApiService) InviteUser ¶
func (*UsersApiService) UpdateUser ¶
func (a *UsersApiService) UpdateUser(ctx context.Context, userId string, localVarOptionals *UpdateUserOpts) (User, *http.Response, error)
type Webhook ¶
type Webhook struct { Active bool `json:"active,omitempty"` ApiAccessToken WebhookAccessToken `json:"api_access_token,omitempty"` Id string `json:"id"` RegisteredEvents []string `json:"registered_events,omitempty"` StagingUse bool `json:"staging_use,omitempty"` Url string `json:"url,omitempty"` VerifyToken string `json:"verify_token,omitempty"` }
type WebhookAccessToken ¶
type WebhooksApiService ¶
type WebhooksApiService service
func (*WebhooksApiService) CreateWebhook ¶
func (*WebhooksApiService) DeleteWebhook ¶
func (a *WebhooksApiService) DeleteWebhook(ctx context.Context, webhookId string, accessToken string) (Webhook, *http.Response, error)
WebhooksApiService Deleting a webhook This method destroys an existing webhook. It renders webhook itself. It renders a 404 if id is invalid. Authorization: All users having the manage_api_access_tokens permission or all users having an api access token belonging to the webhook you’re deleting.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param webhookId
- @param accessToken Access token.
@return Webhook
func (*WebhooksApiService) GetAllWebhooks ¶
func (a *WebhooksApiService) GetAllWebhooks(ctx context.Context, accessToken string, localVarOptionals *GetAllWebhooksOpts) (GetAllWebhooksResponse, *http.Response, error)
func (*WebhooksApiService) GetWebhook ¶
func (a *WebhooksApiService) GetWebhook(ctx context.Context, webhookId string, accessToken string) (Webhook, *http.Response, error)
WebhooksApiService Getting a webhook from its id This method renders a webhook from given id. Authorization: users having manage_api_access_tokens permission can see any webhook / users don’t having the `manage_api_access_tokens` permission can see only the webhook in case the webhook is associated to an access token created by them.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param webhookId
- @param accessToken Access token.
@return Webhook
func (*WebhooksApiService) UpdateWebhook ¶
func (a *WebhooksApiService) UpdateWebhook(ctx context.Context, webhookId string, accessToken string, localVarOptionals *UpdateWebhookOpts) (Webhook, *http.Response, error)
Source Files ¶
- api_agent_status.go
- api_attachments.go
- api_categories.go
- api_channels.go
- api_communities.go
- api_contents.go
- api_custom_fields.go
- api_events.go
- api_folders.go
- api_identities.go
- api_identity_groups.go
- api_intervention_comments.go
- api_interventions.go
- api_locales.go
- api_presence_status.go
- api_reply_assistant_entries.go
- api_reply_assistant_groups.go
- api_reply_assistant_versions.go
- api_roles.go
- api_settings.go
- api_sources.go
- api_tags.go
- api_tasks.go
- api_teams.go
- api_threads.go
- api_time_sheets.go
- api_timezones.go
- api_users.go
- api_webhooks.go
- client.go
- configuration.go
- model_agent_custom_status.go
- model_agent_status.go
- model_agent_status_channel.go
- model_attachment.go
- model_category.go
- model_channel.go
- model_community.go
- model_content.go
- model_content_attachment.go
- model_content_body_formatted.go
- model_custom_field.go
- model_event.go
- model_event_extra_info.go
- model_folder.go
- model_get_all_agent_status_response.go
- model_get_all_attachments_response.go
- model_get_all_categories_response.go
- model_get_all_channels_response.go
- model_get_all_communities_response.go
- model_get_all_contents_response.go
- model_get_all_custom_fields_response.go
- model_get_all_events_response.go
- model_get_all_folders_response.go
- model_get_all_identities_response.go
- model_get_all_identity_groups_response.go
- model_get_all_intervention_comments_response.go
- model_get_all_interventions_response.go
- model_get_all_presence_status_response.go
- model_get_all_reply_assistant_entries_response.go
- model_get_all_reply_assistant_groups_response.go
- model_get_all_reply_assistant_versions_response.go
- model_get_all_roles_response.go
- model_get_all_sources_response.go
- model_get_all_tags_response.go
- model_get_all_tasks_response.go
- model_get_all_teams_response.go
- model_get_all_threads_response.go
- model_get_all_time_sheets_response.go
- model_get_all_users_response.go
- model_get_all_webhooks_response.go
- model_identity.go
- model_identity_group.go
- model_intervention.go
- model_intervention_comment.go
- model_locale.go
- model_presence_status.go
- model_reply_assistant_entry.go
- model_reply_assistant_group.go
- model_reply_assistant_version.go
- model_restriction.go
- model_role.go
- model_settings.go
- model_source.go
- model_tag.go
- model_task.go
- model_team.go
- model_thread.go
- model_time_sheet.go
- model_time_sheet_holiday.go
- model_timezone.go
- model_user.go
- model_webhook.go
- model_webhook_access_token.go
- response.go