pachca

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package pachca provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.

Index

Constants

View Source
const (
	BearerAuthScopes = "BearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewBotOperationsDeleteWebhookEventRequest

func NewBotOperationsDeleteWebhookEventRequest(server string, id string) (*http.Request, error)

NewBotOperationsDeleteWebhookEventRequest generates requests for BotOperationsDeleteWebhookEvent

func NewBotOperationsGetWebhookEventsRequest

func NewBotOperationsGetWebhookEventsRequest(server string, params *BotOperationsGetWebhookEventsParams) (*http.Request, error)

NewBotOperationsGetWebhookEventsRequest generates requests for BotOperationsGetWebhookEvents

func NewBotOperationsUpdateBotRequest

func NewBotOperationsUpdateBotRequest(server string, id int32, body BotOperationsUpdateBotJSONRequestBody) (*http.Request, error)

NewBotOperationsUpdateBotRequest calls the generic BotOperationsUpdateBot builder with application/json body

func NewBotOperationsUpdateBotRequestWithBody

func NewBotOperationsUpdateBotRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)

NewBotOperationsUpdateBotRequestWithBody generates requests for BotOperationsUpdateBot with any type of body

func NewChatMemberOperationsAddMembersRequest

func NewChatMemberOperationsAddMembersRequest(server string, id int32, body ChatMemberOperationsAddMembersJSONRequestBody) (*http.Request, error)

NewChatMemberOperationsAddMembersRequest calls the generic ChatMemberOperationsAddMembers builder with application/json body

func NewChatMemberOperationsAddMembersRequestWithBody

func NewChatMemberOperationsAddMembersRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)

NewChatMemberOperationsAddMembersRequestWithBody generates requests for ChatMemberOperationsAddMembers with any type of body

func NewChatMemberOperationsAddTagsRequest

func NewChatMemberOperationsAddTagsRequest(server string, id int32, body ChatMemberOperationsAddTagsJSONRequestBody) (*http.Request, error)

NewChatMemberOperationsAddTagsRequest calls the generic ChatMemberOperationsAddTags builder with application/json body

func NewChatMemberOperationsAddTagsRequestWithBody

func NewChatMemberOperationsAddTagsRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)

NewChatMemberOperationsAddTagsRequestWithBody generates requests for ChatMemberOperationsAddTags with any type of body

func NewChatMemberOperationsLeaveChatRequest

func NewChatMemberOperationsLeaveChatRequest(server string, id int32) (*http.Request, error)

NewChatMemberOperationsLeaveChatRequest generates requests for ChatMemberOperationsLeaveChat

func NewChatMemberOperationsListMembersRequest

func NewChatMemberOperationsListMembersRequest(server string, id int32, params *ChatMemberOperationsListMembersParams) (*http.Request, error)

NewChatMemberOperationsListMembersRequest generates requests for ChatMemberOperationsListMembers

func NewChatMemberOperationsRemoveMemberRequest

func NewChatMemberOperationsRemoveMemberRequest(server string, id int32, userId int32) (*http.Request, error)

NewChatMemberOperationsRemoveMemberRequest generates requests for ChatMemberOperationsRemoveMember

func NewChatMemberOperationsRemoveTagRequest

func NewChatMemberOperationsRemoveTagRequest(server string, id int32, tagId int32) (*http.Request, error)

NewChatMemberOperationsRemoveTagRequest generates requests for ChatMemberOperationsRemoveTag

func NewChatMemberOperationsUpdateMemberRoleRequest

func NewChatMemberOperationsUpdateMemberRoleRequest(server string, id int32, userId int32, body ChatMemberOperationsUpdateMemberRoleJSONRequestBody) (*http.Request, error)

NewChatMemberOperationsUpdateMemberRoleRequest calls the generic ChatMemberOperationsUpdateMemberRole builder with application/json body

func NewChatMemberOperationsUpdateMemberRoleRequestWithBody

func NewChatMemberOperationsUpdateMemberRoleRequestWithBody(server string, id int32, userId int32, contentType string, body io.Reader) (*http.Request, error)

NewChatMemberOperationsUpdateMemberRoleRequestWithBody generates requests for ChatMemberOperationsUpdateMemberRole with any type of body

func NewChatMessageOperationsListChatMessagesRequest

func NewChatMessageOperationsListChatMessagesRequest(server string, params *ChatMessageOperationsListChatMessagesParams) (*http.Request, error)

NewChatMessageOperationsListChatMessagesRequest generates requests for ChatMessageOperationsListChatMessages

func NewChatOperationsArchiveChatRequest

func NewChatOperationsArchiveChatRequest(server string, id int32) (*http.Request, error)

NewChatOperationsArchiveChatRequest generates requests for ChatOperationsArchiveChat

func NewChatOperationsCreateChatRequest

func NewChatOperationsCreateChatRequest(server string, body ChatOperationsCreateChatJSONRequestBody) (*http.Request, error)

NewChatOperationsCreateChatRequest calls the generic ChatOperationsCreateChat builder with application/json body

func NewChatOperationsCreateChatRequestWithBody

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

NewChatOperationsCreateChatRequestWithBody generates requests for ChatOperationsCreateChat with any type of body

func NewChatOperationsGetChatRequest

func NewChatOperationsGetChatRequest(server string, id int32) (*http.Request, error)

NewChatOperationsGetChatRequest generates requests for ChatOperationsGetChat

func NewChatOperationsListChatsRequest

func NewChatOperationsListChatsRequest(server string, params *ChatOperationsListChatsParams) (*http.Request, error)

NewChatOperationsListChatsRequest generates requests for ChatOperationsListChats

func NewChatOperationsUnarchiveChatRequest

func NewChatOperationsUnarchiveChatRequest(server string, id int32) (*http.Request, error)

NewChatOperationsUnarchiveChatRequest generates requests for ChatOperationsUnarchiveChat

func NewChatOperationsUpdateChatRequest

func NewChatOperationsUpdateChatRequest(server string, id int32, body ChatOperationsUpdateChatJSONRequestBody) (*http.Request, error)

NewChatOperationsUpdateChatRequest calls the generic ChatOperationsUpdateChat builder with application/json body

func NewChatOperationsUpdateChatRequestWithBody

func NewChatOperationsUpdateChatRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)

NewChatOperationsUpdateChatRequestWithBody generates requests for ChatOperationsUpdateChat with any type of body

func NewCommonOperationsListPropertiesRequest

func NewCommonOperationsListPropertiesRequest(server string, params *CommonOperationsListPropertiesParams) (*http.Request, error)

NewCommonOperationsListPropertiesRequest generates requests for CommonOperationsListProperties

func NewDirectUploadOperationsUploadFileRequestWithBody

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

NewDirectUploadOperationsUploadFileRequestWithBody generates requests for DirectUploadOperationsUploadFile with any type of body

func NewExportOperationsDownloadExportRequest

func NewExportOperationsDownloadExportRequest(server string, id int32) (*http.Request, error)

NewExportOperationsDownloadExportRequest generates requests for ExportOperationsDownloadExport

func NewExportOperationsRequestExportRequest

func NewExportOperationsRequestExportRequest(server string, body ExportOperationsRequestExportJSONRequestBody) (*http.Request, error)

NewExportOperationsRequestExportRequest calls the generic ExportOperationsRequestExport builder with application/json body

func NewExportOperationsRequestExportRequestWithBody

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

NewExportOperationsRequestExportRequestWithBody generates requests for ExportOperationsRequestExport with any type of body

func NewFormOperationsOpenViewRequest

func NewFormOperationsOpenViewRequest(server string, body FormOperationsOpenViewJSONRequestBody) (*http.Request, error)

NewFormOperationsOpenViewRequest calls the generic FormOperationsOpenView builder with application/json body

func NewFormOperationsOpenViewRequestWithBody

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

NewFormOperationsOpenViewRequestWithBody generates requests for FormOperationsOpenView with any type of body

func NewGroupTagOperationsCreateTagRequest

func NewGroupTagOperationsCreateTagRequest(server string, body GroupTagOperationsCreateTagJSONRequestBody) (*http.Request, error)

NewGroupTagOperationsCreateTagRequest calls the generic GroupTagOperationsCreateTag builder with application/json body

func NewGroupTagOperationsCreateTagRequestWithBody

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

NewGroupTagOperationsCreateTagRequestWithBody generates requests for GroupTagOperationsCreateTag with any type of body

func NewGroupTagOperationsDeleteTagRequest

func NewGroupTagOperationsDeleteTagRequest(server string, id int32) (*http.Request, error)

NewGroupTagOperationsDeleteTagRequest generates requests for GroupTagOperationsDeleteTag

func NewGroupTagOperationsGetTagRequest

func NewGroupTagOperationsGetTagRequest(server string, id int32) (*http.Request, error)

NewGroupTagOperationsGetTagRequest generates requests for GroupTagOperationsGetTag

func NewGroupTagOperationsGetTagUsersRequest

func NewGroupTagOperationsGetTagUsersRequest(server string, id int32, params *GroupTagOperationsGetTagUsersParams) (*http.Request, error)

NewGroupTagOperationsGetTagUsersRequest generates requests for GroupTagOperationsGetTagUsers

func NewGroupTagOperationsListTagsRequest

func NewGroupTagOperationsListTagsRequest(server string, params *GroupTagOperationsListTagsParams) (*http.Request, error)

NewGroupTagOperationsListTagsRequest generates requests for GroupTagOperationsListTags

func NewGroupTagOperationsUpdateTagRequest

func NewGroupTagOperationsUpdateTagRequest(server string, id int32, body GroupTagOperationsUpdateTagJSONRequestBody) (*http.Request, error)

NewGroupTagOperationsUpdateTagRequest calls the generic GroupTagOperationsUpdateTag builder with application/json body

func NewGroupTagOperationsUpdateTagRequestWithBody

func NewGroupTagOperationsUpdateTagRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)

NewGroupTagOperationsUpdateTagRequestWithBody generates requests for GroupTagOperationsUpdateTag with any type of body

func NewLinkPreviewOperationsCreateLinkPreviewsRequest

func NewLinkPreviewOperationsCreateLinkPreviewsRequest(server string, id int32, body LinkPreviewOperationsCreateLinkPreviewsJSONRequestBody) (*http.Request, error)

NewLinkPreviewOperationsCreateLinkPreviewsRequest calls the generic LinkPreviewOperationsCreateLinkPreviews builder with application/json body

func NewLinkPreviewOperationsCreateLinkPreviewsRequestWithBody

func NewLinkPreviewOperationsCreateLinkPreviewsRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)

NewLinkPreviewOperationsCreateLinkPreviewsRequestWithBody generates requests for LinkPreviewOperationsCreateLinkPreviews with any type of body

func NewMessageOperationsCreateMessageRequest

func NewMessageOperationsCreateMessageRequest(server string, body MessageOperationsCreateMessageJSONRequestBody) (*http.Request, error)

NewMessageOperationsCreateMessageRequest calls the generic MessageOperationsCreateMessage builder with application/json body

func NewMessageOperationsCreateMessageRequestWithBody

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

NewMessageOperationsCreateMessageRequestWithBody generates requests for MessageOperationsCreateMessage with any type of body

func NewMessageOperationsDeleteMessageRequest

func NewMessageOperationsDeleteMessageRequest(server string, id int32) (*http.Request, error)

NewMessageOperationsDeleteMessageRequest generates requests for MessageOperationsDeleteMessage

func NewMessageOperationsGetMessageRequest

func NewMessageOperationsGetMessageRequest(server string, id int32) (*http.Request, error)

NewMessageOperationsGetMessageRequest generates requests for MessageOperationsGetMessage

func NewMessageOperationsPinMessageRequest

func NewMessageOperationsPinMessageRequest(server string, id int32) (*http.Request, error)

NewMessageOperationsPinMessageRequest generates requests for MessageOperationsPinMessage

func NewMessageOperationsUnpinMessageRequest

func NewMessageOperationsUnpinMessageRequest(server string, id int32) (*http.Request, error)

NewMessageOperationsUnpinMessageRequest generates requests for MessageOperationsUnpinMessage

func NewMessageOperationsUpdateMessageRequest

func NewMessageOperationsUpdateMessageRequest(server string, id int32, body MessageOperationsUpdateMessageJSONRequestBody) (*http.Request, error)

NewMessageOperationsUpdateMessageRequest calls the generic MessageOperationsUpdateMessage builder with application/json body

func NewMessageOperationsUpdateMessageRequestWithBody

func NewMessageOperationsUpdateMessageRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)

NewMessageOperationsUpdateMessageRequestWithBody generates requests for MessageOperationsUpdateMessage with any type of body

func NewOAuthOperationsGetTokenInfoRequest

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

NewOAuthOperationsGetTokenInfoRequest generates requests for OAuthOperationsGetTokenInfo

func NewProfileOperationsDeleteStatusRequest

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

NewProfileOperationsDeleteStatusRequest generates requests for ProfileOperationsDeleteStatus

func NewProfileOperationsGetProfileRequest

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

NewProfileOperationsGetProfileRequest generates requests for ProfileOperationsGetProfile

func NewProfileOperationsGetStatusRequest

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

NewProfileOperationsGetStatusRequest generates requests for ProfileOperationsGetStatus

func NewProfileOperationsUpdateStatusRequest

func NewProfileOperationsUpdateStatusRequest(server string, body ProfileOperationsUpdateStatusJSONRequestBody) (*http.Request, error)

NewProfileOperationsUpdateStatusRequest calls the generic ProfileOperationsUpdateStatus builder with application/json body

func NewProfileOperationsUpdateStatusRequestWithBody

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

NewProfileOperationsUpdateStatusRequestWithBody generates requests for ProfileOperationsUpdateStatus with any type of body

func NewReactionOperationsAddReactionRequest

func NewReactionOperationsAddReactionRequest(server string, id int32, body ReactionOperationsAddReactionJSONRequestBody) (*http.Request, error)

NewReactionOperationsAddReactionRequest calls the generic ReactionOperationsAddReaction builder with application/json body

func NewReactionOperationsAddReactionRequestWithBody

func NewReactionOperationsAddReactionRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)

NewReactionOperationsAddReactionRequestWithBody generates requests for ReactionOperationsAddReaction with any type of body

func NewReactionOperationsListReactionsRequest

func NewReactionOperationsListReactionsRequest(server string, id int32, params *ReactionOperationsListReactionsParams) (*http.Request, error)

NewReactionOperationsListReactionsRequest generates requests for ReactionOperationsListReactions

func NewReactionOperationsRemoveReactionRequest

func NewReactionOperationsRemoveReactionRequest(server string, id int32, params *ReactionOperationsRemoveReactionParams) (*http.Request, error)

NewReactionOperationsRemoveReactionRequest generates requests for ReactionOperationsRemoveReaction

func NewReadMemberOperationsListReadMembersRequest

func NewReadMemberOperationsListReadMembersRequest(server string, id int32, params *ReadMemberOperationsListReadMembersParams) (*http.Request, error)

NewReadMemberOperationsListReadMembersRequest generates requests for ReadMemberOperationsListReadMembers

func NewSecurityOperationsGetAuditEventsRequest

func NewSecurityOperationsGetAuditEventsRequest(server string, params *SecurityOperationsGetAuditEventsParams) (*http.Request, error)

NewSecurityOperationsGetAuditEventsRequest generates requests for SecurityOperationsGetAuditEvents

func NewTaskOperationsCreateTaskRequest

func NewTaskOperationsCreateTaskRequest(server string, body TaskOperationsCreateTaskJSONRequestBody) (*http.Request, error)

NewTaskOperationsCreateTaskRequest calls the generic TaskOperationsCreateTask builder with application/json body

func NewTaskOperationsCreateTaskRequestWithBody

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

NewTaskOperationsCreateTaskRequestWithBody generates requests for TaskOperationsCreateTask with any type of body

func NewTaskOperationsDeleteTaskRequest

func NewTaskOperationsDeleteTaskRequest(server string, id int32) (*http.Request, error)

NewTaskOperationsDeleteTaskRequest generates requests for TaskOperationsDeleteTask

func NewTaskOperationsGetTaskRequest

func NewTaskOperationsGetTaskRequest(server string, id int32) (*http.Request, error)

NewTaskOperationsGetTaskRequest generates requests for TaskOperationsGetTask

func NewTaskOperationsListTasksRequest

func NewTaskOperationsListTasksRequest(server string, params *TaskOperationsListTasksParams) (*http.Request, error)

NewTaskOperationsListTasksRequest generates requests for TaskOperationsListTasks

func NewTaskOperationsUpdateTaskRequest

func NewTaskOperationsUpdateTaskRequest(server string, id int32, body TaskOperationsUpdateTaskJSONRequestBody) (*http.Request, error)

NewTaskOperationsUpdateTaskRequest calls the generic TaskOperationsUpdateTask builder with application/json body

func NewTaskOperationsUpdateTaskRequestWithBody

func NewTaskOperationsUpdateTaskRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)

NewTaskOperationsUpdateTaskRequestWithBody generates requests for TaskOperationsUpdateTask with any type of body

func NewThreadOperationsCreateThreadRequest

func NewThreadOperationsCreateThreadRequest(server string, id int32) (*http.Request, error)

NewThreadOperationsCreateThreadRequest generates requests for ThreadOperationsCreateThread

func NewThreadOperationsGetThreadRequest

func NewThreadOperationsGetThreadRequest(server string, id int32) (*http.Request, error)

NewThreadOperationsGetThreadRequest generates requests for ThreadOperationsGetThread

func NewUploadOperationsGetUploadParamsRequest

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

NewUploadOperationsGetUploadParamsRequest generates requests for UploadOperationsGetUploadParams

func NewUserOperationsCreateUserRequest

func NewUserOperationsCreateUserRequest(server string, body UserOperationsCreateUserJSONRequestBody) (*http.Request, error)

NewUserOperationsCreateUserRequest calls the generic UserOperationsCreateUser builder with application/json body

func NewUserOperationsCreateUserRequestWithBody

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

NewUserOperationsCreateUserRequestWithBody generates requests for UserOperationsCreateUser with any type of body

func NewUserOperationsDeleteUserRequest

func NewUserOperationsDeleteUserRequest(server string, id int32) (*http.Request, error)

NewUserOperationsDeleteUserRequest generates requests for UserOperationsDeleteUser

func NewUserOperationsGetUserRequest

func NewUserOperationsGetUserRequest(server string, id int32) (*http.Request, error)

NewUserOperationsGetUserRequest generates requests for UserOperationsGetUser

func NewUserOperationsListUsersRequest

func NewUserOperationsListUsersRequest(server string, params *UserOperationsListUsersParams) (*http.Request, error)

NewUserOperationsListUsersRequest generates requests for UserOperationsListUsers

func NewUserOperationsUpdateUserRequest

func NewUserOperationsUpdateUserRequest(server string, id int32, body UserOperationsUpdateUserJSONRequestBody) (*http.Request, error)

NewUserOperationsUpdateUserRequest calls the generic UserOperationsUpdateUser builder with application/json body

func NewUserOperationsUpdateUserRequestWithBody

func NewUserOperationsUpdateUserRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)

NewUserOperationsUpdateUserRequestWithBody generates requests for UserOperationsUpdateUser with any type of body

func NewUserStatusOperationsDeleteUserStatusRequest

func NewUserStatusOperationsDeleteUserStatusRequest(server string, userId int32) (*http.Request, error)

NewUserStatusOperationsDeleteUserStatusRequest generates requests for UserStatusOperationsDeleteUserStatus

func NewUserStatusOperationsGetUserStatusRequest

func NewUserStatusOperationsGetUserStatusRequest(server string, userId int32) (*http.Request, error)

NewUserStatusOperationsGetUserStatusRequest generates requests for UserStatusOperationsGetUserStatus

func NewUserStatusOperationsUpdateUserStatusRequest

func NewUserStatusOperationsUpdateUserStatusRequest(server string, userId int32, body UserStatusOperationsUpdateUserStatusJSONRequestBody) (*http.Request, error)

NewUserStatusOperationsUpdateUserStatusRequest calls the generic UserStatusOperationsUpdateUserStatus builder with application/json body

func NewUserStatusOperationsUpdateUserStatusRequestWithBody

func NewUserStatusOperationsUpdateUserStatusRequestWithBody(server string, userId int32, contentType string, body io.Reader) (*http.Request, error)

NewUserStatusOperationsUpdateUserStatusRequestWithBody generates requests for UserStatusOperationsUpdateUserStatus with any type of body

Types

type AccessTokenInfo

type AccessTokenInfo struct {
	// CreatedAt Дата создания токена
	CreatedAt time.Time `json:"created_at"`

	// ExpiresIn Время жизни токена в секундах
	ExpiresIn *int32 `json:"expires_in"`

	// Id Идентификатор токена
	Id int64 `json:"id"`

	// LastUsedAt Дата последнего использования токена
	LastUsedAt *time.Time `json:"last_used_at"`

	// Name Пользовательское имя токена
	Name *string `json:"name"`

	// RevokedAt Дата отзыва токена
	RevokedAt *time.Time `json:"revoked_at"`

	// Scopes Список скоупов токена
	Scopes []OAuthScope `json:"scopes"`

	// Token Маскированный токен (видны первые 8 и последние 4 символа)
	Token string `json:"token"`

	// UserId Идентификатор владельца токена
	UserId int64 `json:"user_id"`
}

AccessTokenInfo Информация о текущем OAuth токене

type AddMembersRequest

type AddMembersRequest struct {
	// MemberIds Массив идентификаторов пользователей, которые станут участниками
	MemberIds []int32 `json:"member_ids"`

	// Silent Не создавать в чате системное сообщение о добавлении участника
	Silent *bool `json:"silent,omitempty"`
}

AddMembersRequest Запрос на добавление участников в чат

type AddTagsRequest

type AddTagsRequest struct {
	// GroupTagIds Массив идентификаторов тегов, которые станут участниками
	GroupTagIds []int32 `json:"group_tag_ids"`
}

AddTagsRequest Запрос на добавление тегов в чат

type ApiError

type ApiError struct {
	// Errors Массив ошибок
	Errors []ApiErrorItem `json:"errors"`
}

ApiError Ошибка API (используется для 400, 403, 404, 409, 410, 422)

type ApiErrorItem

type ApiErrorItem struct {
	// Code Код ошибки
	Code ValidationErrorCode `json:"code"`

	// Key Ключ поля с ошибкой
	Key string `json:"key"`

	// Message Сообщение об ошибке
	Message string `json:"message"`

	// Payload Дополнительные данные об ошибке
	Payload *string `json:"payload"`

	// Value Значение поля, которое вызвало ошибку
	Value *string `json:"value"`
}

ApiErrorItem Детальная информация об ошибке

type AuditEvent

type AuditEvent struct {
	// ActorId Идентификатор пользователя, выполнившего действие
	ActorId string `json:"actor_id"`

	// ActorType Тип актора
	ActorType string `json:"actor_type"`

	// CreatedAt Дата и время создания события (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	CreatedAt time.Time `json:"created_at"`

	// Details Дополнительные детали события
	Details map[string]interface{} `json:"details"`

	// EntityId Идентификатор затронутой сущности
	EntityId string `json:"entity_id"`

	// EntityType Тип затронутой сущности
	EntityType string `json:"entity_type"`

	// EventKey Ключ типа события
	EventKey AuditEventKey `json:"event_key"`

	// Id Уникальный идентификатор события
	Id string `json:"id"`

	// IpAddress IP-адрес, с которого было выполнено действие
	IpAddress string `json:"ip_address"`

	// UserAgent User agent клиента
	UserAgent string `json:"user_agent"`
}

AuditEvent Событие аудита

type AuditEventKey

type AuditEventKey string

AuditEventKey Тип аудит-события

const (
	AccessTokenCreated    AuditEventKey = "access_token_created"
	AccessTokenDestroy    AuditEventKey = "access_token_destroy"
	AccessTokenUpdated    AuditEventKey = "access_token_updated"
	AuditEventsAccessed   AuditEventKey = "audit_events_accessed"
	ChatCreated           AuditEventKey = "chat_created"
	ChatPermissionChanged AuditEventKey = "chat_permission_changed"
	ChatRenamed           AuditEventKey = "chat_renamed"
	DlpViolationDetected  AuditEventKey = "dlp_violation_detected"
	KmsDecrypt            AuditEventKey = "kms_decrypt"
	KmsEncrypt            AuditEventKey = "kms_encrypt"
	MessageCreated        AuditEventKey = "message_created"
	MessageDeleted        AuditEventKey = "message_deleted"
	MessageUpdated        AuditEventKey = "message_updated"
	ReactionCreated       AuditEventKey = "reaction_created"
	ReactionDeleted       AuditEventKey = "reaction_deleted"
	TagAddedToChat        AuditEventKey = "tag_added_to_chat"
	TagCreated            AuditEventKey = "tag_created"
	TagDeleted            AuditEventKey = "tag_deleted"
	TagRemovedFromChat    AuditEventKey = "tag_removed_from_chat"
	ThreadCreated         AuditEventKey = "thread_created"
	User2faFail           AuditEventKey = "user_2fa_fail"
	User2faSuccess        AuditEventKey = "user_2fa_success"
	UserAddedToTag        AuditEventKey = "user_added_to_tag"
	UserChatJoin          AuditEventKey = "user_chat_join"
	UserChatLeave         AuditEventKey = "user_chat_leave"
	UserCreated           AuditEventKey = "user_created"
	UserDeleted           AuditEventKey = "user_deleted"
	UserLogin             AuditEventKey = "user_login"
	UserLogout            AuditEventKey = "user_logout"
	UserRemovedFromTag    AuditEventKey = "user_removed_from_tag"
	UserRoleChanged       AuditEventKey = "user_role_changed"
	UserUpdated           AuditEventKey = "user_updated"
)

Defines values for AuditEventKey.

type BotOperationsDeleteWebhookEventResponse

type BotOperationsDeleteWebhookEventResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
}

func ParseBotOperationsDeleteWebhookEventResponse

func ParseBotOperationsDeleteWebhookEventResponse(rsp *http.Response) (*BotOperationsDeleteWebhookEventResponse, error)

ParseBotOperationsDeleteWebhookEventResponse parses an HTTP response from a BotOperationsDeleteWebhookEventWithResponse call

func (BotOperationsDeleteWebhookEventResponse) Status

Status returns HTTPResponse.Status

func (BotOperationsDeleteWebhookEventResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type BotOperationsGetWebhookEventsParams

type BotOperationsGetWebhookEventsParams struct {
	// Limit Количество возвращаемых сущностей за один запрос
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Курсор для пагинации (из meta.paginate.next_page)
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

BotOperationsGetWebhookEventsParams defines parameters for BotOperationsGetWebhookEvents.

type BotOperationsGetWebhookEventsResponse

type BotOperationsGetWebhookEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data []WebhookEvent `json:"data"`

		// Meta Метаданные пагинации
		Meta *PaginationMeta `json:"meta,omitempty"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON422 *ApiError
}

func ParseBotOperationsGetWebhookEventsResponse

func ParseBotOperationsGetWebhookEventsResponse(rsp *http.Response) (*BotOperationsGetWebhookEventsResponse, error)

ParseBotOperationsGetWebhookEventsResponse parses an HTTP response from a BotOperationsGetWebhookEventsWithResponse call

func (BotOperationsGetWebhookEventsResponse) Status

Status returns HTTPResponse.Status

func (BotOperationsGetWebhookEventsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type BotOperationsUpdateBotJSONRequestBody

type BotOperationsUpdateBotJSONRequestBody = BotUpdateRequest

BotOperationsUpdateBotJSONRequestBody defines body for BotOperationsUpdateBot for application/json ContentType.

type BotOperationsUpdateBotResponse

type BotOperationsUpdateBotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Ответ с данными бота
		Data BotResponse `json:"data"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
	JSON422 *ApiError
}

func ParseBotOperationsUpdateBotResponse

func ParseBotOperationsUpdateBotResponse(rsp *http.Response) (*BotOperationsUpdateBotResponse, error)

ParseBotOperationsUpdateBotResponse parses an HTTP response from a BotOperationsUpdateBotWithResponse call

func (BotOperationsUpdateBotResponse) Status

Status returns HTTPResponse.Status

func (BotOperationsUpdateBotResponse) StatusCode

func (r BotOperationsUpdateBotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BotResponse

type BotResponse struct {
	// Id Идентификатор бота
	Id int32 `json:"id"`

	// Webhook Объект параметров вебхука
	Webhook struct {
		// OutgoingUrl URL исходящего вебхука
		OutgoingUrl string `json:"outgoing_url"`
	} `json:"webhook"`
}

BotResponse Ответ с данными бота

type BotUpdateRequest

type BotUpdateRequest struct {
	// Bot Собранный объект параметров редактируемого бота
	Bot struct {
		// Webhook Объект параметров вебхука
		Webhook struct {
			// OutgoingUrl URL исходящего вебхука
			OutgoingUrl string `json:"outgoing_url"`
		} `json:"webhook"`
	} `json:"bot"`
}

BotUpdateRequest Запрос на обновление бота

type Button

type Button struct {
	// Data Данные, которые будут отправлены в исходном вебхуке по нажатию кнопки
	Data *string `json:"data,omitempty"`

	// Text Текст, отображаемый на кнопке
	Text string `json:"text"`

	// Url Ссылка, которая будет открыта по нажатию кнопки
	Url *string `json:"url,omitempty"`
}

Button Кнопка

type ButtonWebhookPayload

type ButtonWebhookPayload struct {
	// ChatId Идентификатор чата, в котором была нажата кнопка
	ChatId int32 `json:"chat_id"`

	// Data Данные нажатой кнопки
	Data string `json:"data"`

	// Event Тип события
	Event ButtonWebhookPayloadEvent `json:"event"`

	// MessageId Идентификатор сообщения, к которому относится кнопка
	MessageId int32 `json:"message_id"`

	// TriggerId Уникальный идентификатор события. Время жизни — 3 секунды. Может быть использован, например, для открытия представления пользователю
	TriggerId string `json:"trigger_id"`

	// Type Тип объекта
	Type ButtonWebhookPayloadType `json:"type"`

	// UserId Идентификатор пользователя, который нажал кнопку
	UserId int32 `json:"user_id"`

	// WebhookTimestamp Дата и время отправки вебхука (UTC+0) в формате UNIX
	WebhookTimestamp int32 `json:"webhook_timestamp"`
}

ButtonWebhookPayload Структура исходящего вебхука о нажатии кнопки

type ButtonWebhookPayloadEvent

type ButtonWebhookPayloadEvent string

ButtonWebhookPayloadEvent Тип события

const (
	Click ButtonWebhookPayloadEvent = "click"
)

Defines values for ButtonWebhookPayloadEvent.

type ButtonWebhookPayloadType

type ButtonWebhookPayloadType string

ButtonWebhookPayloadType Тип объекта

const (
	ButtonWebhookPayloadTypeButton ButtonWebhookPayloadType = "button"
)

Defines values for ButtonWebhookPayloadType.

type Chat

type Chat struct {
	// Channel Является каналом
	Channel bool `json:"channel"`

	// CreatedAt Дата и время создания чата (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	CreatedAt time.Time `json:"created_at"`

	// GroupTagIds Массив идентификаторов тегов, участников
	GroupTagIds []int32 `json:"group_tag_ids"`

	// Id Идентификатор созданного чата
	Id int32 `json:"id"`

	// LastMessageAt Дата и время создания последнего сообщения в чате (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	LastMessageAt time.Time `json:"last_message_at"`

	// MeetRoomUrl Ссылка на Видеочат
	MeetRoomUrl string `json:"meet_room_url"`

	// MemberIds Массив идентификаторов пользователей, участников
	MemberIds []int32 `json:"member_ids"`

	// Name Название
	Name string `json:"name"`

	// OwnerId Идентификатор пользователя, создавшего чат
	OwnerId int32 `json:"owner_id"`

	// Personal Является личным чатом
	Personal bool `json:"personal"`

	// Public Открытый доступ
	Public bool `json:"public"`
}

Chat Чат

type ChatAvailability

type ChatAvailability string

ChatAvailability Доступность чатов для пользователя

const (
	IsMember ChatAvailability = "is_member"
	Public   ChatAvailability = "public"
)

Defines values for ChatAvailability.

type ChatCreateRequest

type ChatCreateRequest struct {
	// Chat Собранный объект параметров создаваемого чата
	Chat struct {
		// Channel Является каналом
		Channel *bool `json:"channel,omitempty"`

		// GroupTagIds Массив идентификаторов тегов, которые станут участниками
		GroupTagIds *[]int32 `json:"group_tag_ids,omitempty"`

		// MemberIds Массив идентификаторов пользователей, которые станут участниками
		MemberIds *[]int32 `json:"member_ids,omitempty"`

		// Name Название
		Name string `json:"name"`

		// Public Открытый доступ
		Public *bool `json:"public,omitempty"`
	} `json:"chat"`
}

ChatCreateRequest Запрос на создание чата

type ChatMemberOperationsAddMembersJSONRequestBody

type ChatMemberOperationsAddMembersJSONRequestBody = AddMembersRequest

ChatMemberOperationsAddMembersJSONRequestBody defines body for ChatMemberOperationsAddMembers for application/json ContentType.

type ChatMemberOperationsAddMembersResponse

type ChatMemberOperationsAddMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON400      *ApiError
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
	JSON422      *ApiError
}

func ParseChatMemberOperationsAddMembersResponse

func ParseChatMemberOperationsAddMembersResponse(rsp *http.Response) (*ChatMemberOperationsAddMembersResponse, error)

ParseChatMemberOperationsAddMembersResponse parses an HTTP response from a ChatMemberOperationsAddMembersWithResponse call

func (ChatMemberOperationsAddMembersResponse) Status

Status returns HTTPResponse.Status

func (ChatMemberOperationsAddMembersResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ChatMemberOperationsAddTagsJSONRequestBody

type ChatMemberOperationsAddTagsJSONRequestBody = AddTagsRequest

ChatMemberOperationsAddTagsJSONRequestBody defines body for ChatMemberOperationsAddTags for application/json ContentType.

type ChatMemberOperationsAddTagsResponse

type ChatMemberOperationsAddTagsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON400      *ApiError
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
	JSON422      *ApiError
}

func ParseChatMemberOperationsAddTagsResponse

func ParseChatMemberOperationsAddTagsResponse(rsp *http.Response) (*ChatMemberOperationsAddTagsResponse, error)

ParseChatMemberOperationsAddTagsResponse parses an HTTP response from a ChatMemberOperationsAddTagsWithResponse call

func (ChatMemberOperationsAddTagsResponse) Status

Status returns HTTPResponse.Status

func (ChatMemberOperationsAddTagsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ChatMemberOperationsLeaveChatResponse

type ChatMemberOperationsLeaveChatResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON400      *ApiError
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
	JSON422      *ApiError
}

func ParseChatMemberOperationsLeaveChatResponse

func ParseChatMemberOperationsLeaveChatResponse(rsp *http.Response) (*ChatMemberOperationsLeaveChatResponse, error)

ParseChatMemberOperationsLeaveChatResponse parses an HTTP response from a ChatMemberOperationsLeaveChatWithResponse call

func (ChatMemberOperationsLeaveChatResponse) Status

Status returns HTTPResponse.Status

func (ChatMemberOperationsLeaveChatResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ChatMemberOperationsListMembersParams

type ChatMemberOperationsListMembersParams struct {
	// Role Роль в чате
	Role *ChatMemberRoleFilter `form:"role,omitempty" json:"role,omitempty"`

	// Limit Количество возвращаемых сущностей за один запрос
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Курсор для пагинации (из meta.paginate.next_page)
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ChatMemberOperationsListMembersParams defines parameters for ChatMemberOperationsListMembers.

type ChatMemberOperationsListMembersResponse

type ChatMemberOperationsListMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data []User `json:"data"`

		// Meta Метаданные пагинации
		Meta *PaginationMeta `json:"meta,omitempty"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
	JSON422 *ApiError
}

func ParseChatMemberOperationsListMembersResponse

func ParseChatMemberOperationsListMembersResponse(rsp *http.Response) (*ChatMemberOperationsListMembersResponse, error)

ParseChatMemberOperationsListMembersResponse parses an HTTP response from a ChatMemberOperationsListMembersWithResponse call

func (ChatMemberOperationsListMembersResponse) Status

Status returns HTTPResponse.Status

func (ChatMemberOperationsListMembersResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ChatMemberOperationsRemoveMemberResponse

type ChatMemberOperationsRemoveMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
}

func ParseChatMemberOperationsRemoveMemberResponse

func ParseChatMemberOperationsRemoveMemberResponse(rsp *http.Response) (*ChatMemberOperationsRemoveMemberResponse, error)

ParseChatMemberOperationsRemoveMemberResponse parses an HTTP response from a ChatMemberOperationsRemoveMemberWithResponse call

func (ChatMemberOperationsRemoveMemberResponse) Status

Status returns HTTPResponse.Status

func (ChatMemberOperationsRemoveMemberResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ChatMemberOperationsRemoveTagResponse

type ChatMemberOperationsRemoveTagResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
}

func ParseChatMemberOperationsRemoveTagResponse

func ParseChatMemberOperationsRemoveTagResponse(rsp *http.Response) (*ChatMemberOperationsRemoveTagResponse, error)

ParseChatMemberOperationsRemoveTagResponse parses an HTTP response from a ChatMemberOperationsRemoveTagWithResponse call

func (ChatMemberOperationsRemoveTagResponse) Status

Status returns HTTPResponse.Status

func (ChatMemberOperationsRemoveTagResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ChatMemberOperationsUpdateMemberRoleJSONRequestBody

type ChatMemberOperationsUpdateMemberRoleJSONRequestBody = UpdateMemberRoleRequest

ChatMemberOperationsUpdateMemberRoleJSONRequestBody defines body for ChatMemberOperationsUpdateMemberRole for application/json ContentType.

type ChatMemberOperationsUpdateMemberRoleResponse

type ChatMemberOperationsUpdateMemberRoleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON400      *ApiError
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
	JSON422      *ApiError
}

func ParseChatMemberOperationsUpdateMemberRoleResponse

func ParseChatMemberOperationsUpdateMemberRoleResponse(rsp *http.Response) (*ChatMemberOperationsUpdateMemberRoleResponse, error)

ParseChatMemberOperationsUpdateMemberRoleResponse parses an HTTP response from a ChatMemberOperationsUpdateMemberRoleWithResponse call

func (ChatMemberOperationsUpdateMemberRoleResponse) Status

Status returns HTTPResponse.Status

func (ChatMemberOperationsUpdateMemberRoleResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ChatMemberRole

type ChatMemberRole string

ChatMemberRole Роль участника чата

const (
	ChatMemberRoleAdmin  ChatMemberRole = "admin"
	ChatMemberRoleEditor ChatMemberRole = "editor"
	ChatMemberRoleMember ChatMemberRole = "member"
)

Defines values for ChatMemberRole.

type ChatMemberRoleFilter

type ChatMemberRoleFilter string

ChatMemberRoleFilter Роль участника чата (с фильтром все)

const (
	ChatMemberRoleFilterAdmin  ChatMemberRoleFilter = "admin"
	ChatMemberRoleFilterAll    ChatMemberRoleFilter = "all"
	ChatMemberRoleFilterEditor ChatMemberRoleFilter = "editor"
	ChatMemberRoleFilterMember ChatMemberRoleFilter = "member"
	ChatMemberRoleFilterOwner  ChatMemberRoleFilter = "owner"
)

Defines values for ChatMemberRoleFilter.

type ChatMemberWebhookPayload

type ChatMemberWebhookPayload struct {
	// ChatId Идентификатор чата, в котором изменился состав участников
	ChatId int32 `json:"chat_id"`

	// CreatedAt Дата и время события (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	CreatedAt time.Time `json:"created_at"`

	// Event Тип события
	Event MemberEventType `json:"event"`

	// ThreadId Идентификатор треда
	ThreadId *int32 `json:"thread_id"`

	// Type Тип объекта
	Type ChatMemberWebhookPayloadType `json:"type"`

	// UserIds Массив идентификаторов пользователей, с которыми произошло событие
	UserIds []int32 `json:"user_ids"`

	// WebhookTimestamp Дата и время отправки вебхука (UTC+0) в формате UNIX
	WebhookTimestamp int32 `json:"webhook_timestamp"`
}

ChatMemberWebhookPayload Структура исходящего вебхука об участниках чата

type ChatMemberWebhookPayloadType

type ChatMemberWebhookPayloadType string

ChatMemberWebhookPayloadType Тип объекта

const (
	ChatMember ChatMemberWebhookPayloadType = "chat_member"
)

Defines values for ChatMemberWebhookPayloadType.

type ChatMessageOperationsListChatMessagesParams

type ChatMessageOperationsListChatMessagesParams struct {
	// ChatId Идентификатор чата (беседа, канал, диалог или чат треда)
	ChatId int32 `form:"chat_id" json:"chat_id"`

	// SortField Составной параметр сортировки сущностей выборки. На данный момент сортировка доступна только по полю `id` (идентификатор сообщения).
	SortField *SortOrder `form:"sort[{field}],omitempty" json:"sort[{field}],omitempty"`

	// Limit Количество возвращаемых сущностей за один запрос
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Курсор для пагинации (из `meta.paginate.next_page`)
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ChatMessageOperationsListChatMessagesParams defines parameters for ChatMessageOperationsListChatMessages.

type ChatMessageOperationsListChatMessagesResponse

type ChatMessageOperationsListChatMessagesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data []Message `json:"data"`

		// Meta Метаданные пагинации
		Meta *PaginationMeta `json:"meta,omitempty"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
	JSON422 *ApiError
}

func ParseChatMessageOperationsListChatMessagesResponse

func ParseChatMessageOperationsListChatMessagesResponse(rsp *http.Response) (*ChatMessageOperationsListChatMessagesResponse, error)

ParseChatMessageOperationsListChatMessagesResponse parses an HTTP response from a ChatMessageOperationsListChatMessagesWithResponse call

func (ChatMessageOperationsListChatMessagesResponse) Status

Status returns HTTPResponse.Status

func (ChatMessageOperationsListChatMessagesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ChatOperationsArchiveChatResponse

type ChatOperationsArchiveChatResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
}

func ParseChatOperationsArchiveChatResponse

func ParseChatOperationsArchiveChatResponse(rsp *http.Response) (*ChatOperationsArchiveChatResponse, error)

ParseChatOperationsArchiveChatResponse parses an HTTP response from a ChatOperationsArchiveChatWithResponse call

func (ChatOperationsArchiveChatResponse) Status

Status returns HTTPResponse.Status

func (ChatOperationsArchiveChatResponse) StatusCode

func (r ChatOperationsArchiveChatResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChatOperationsCreateChatJSONRequestBody

type ChatOperationsCreateChatJSONRequestBody = ChatCreateRequest

ChatOperationsCreateChatJSONRequestBody defines body for ChatOperationsCreateChat for application/json ContentType.

type ChatOperationsCreateChatResponse

type ChatOperationsCreateChatResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		// Data Чат
		Data Chat `json:"data"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON422 *ApiError
}

func ParseChatOperationsCreateChatResponse

func ParseChatOperationsCreateChatResponse(rsp *http.Response) (*ChatOperationsCreateChatResponse, error)

ParseChatOperationsCreateChatResponse parses an HTTP response from a ChatOperationsCreateChatWithResponse call

func (ChatOperationsCreateChatResponse) Status

Status returns HTTPResponse.Status

func (ChatOperationsCreateChatResponse) StatusCode

func (r ChatOperationsCreateChatResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChatOperationsGetChatResponse

type ChatOperationsGetChatResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Чат
		Data Chat `json:"data"`
	}
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
}

func ParseChatOperationsGetChatResponse

func ParseChatOperationsGetChatResponse(rsp *http.Response) (*ChatOperationsGetChatResponse, error)

ParseChatOperationsGetChatResponse parses an HTTP response from a ChatOperationsGetChatWithResponse call

func (ChatOperationsGetChatResponse) Status

Status returns HTTPResponse.Status

func (ChatOperationsGetChatResponse) StatusCode

func (r ChatOperationsGetChatResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChatOperationsListChatsParams

type ChatOperationsListChatsParams struct {
	// SortField Составной параметр сортировки сущностей выборки. На данный момент сортировка доступна по полям `id` (идентификатор чата) и `last_message_at` (дата и время создания последнего сообщения).
	SortField *SortOrder `form:"sort[{field}],omitempty" json:"sort[{field}],omitempty"`

	// Availability Параметр, который отвечает за доступность и выборку чатов для пользователя
	Availability *ChatAvailability `form:"availability,omitempty" json:"availability,omitempty"`

	// LastMessageAtAfter Фильтрация по времени создания последнего сообщения. Будут возвращены те чаты, время последнего созданного сообщения в которых не раньше чем указанное (в формате YYYY-MM-DDThh:mm:ss.sssZ).
	LastMessageAtAfter *time.Time `form:"last_message_at_after,omitempty" json:"last_message_at_after,omitempty"`

	// LastMessageAtBefore Фильтрация по времени создания последнего сообщения. Будут возвращены те чаты, время последнего созданного сообщения в которых не позже чем указанное (в формате YYYY-MM-DDThh:mm:ss.sssZ).
	LastMessageAtBefore *time.Time `form:"last_message_at_before,omitempty" json:"last_message_at_before,omitempty"`

	// Personal Фильтрация по личным и групповым чатам. Если параметр не указан, возвращаются любые чаты.
	Personal *bool `form:"personal,omitempty" json:"personal,omitempty"`

	// Limit Количество возвращаемых сущностей за один запрос
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Курсор для пагинации (из meta.paginate.next_page)
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ChatOperationsListChatsParams defines parameters for ChatOperationsListChats.

type ChatOperationsListChatsResponse

type ChatOperationsListChatsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data []Chat `json:"data"`

		// Meta Метаданные пагинации
		Meta *PaginationMeta `json:"meta,omitempty"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON422 *ApiError
}

func ParseChatOperationsListChatsResponse

func ParseChatOperationsListChatsResponse(rsp *http.Response) (*ChatOperationsListChatsResponse, error)

ParseChatOperationsListChatsResponse parses an HTTP response from a ChatOperationsListChatsWithResponse call

func (ChatOperationsListChatsResponse) Status

Status returns HTTPResponse.Status

func (ChatOperationsListChatsResponse) StatusCode

func (r ChatOperationsListChatsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChatOperationsUnarchiveChatResponse

type ChatOperationsUnarchiveChatResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
}

func ParseChatOperationsUnarchiveChatResponse

func ParseChatOperationsUnarchiveChatResponse(rsp *http.Response) (*ChatOperationsUnarchiveChatResponse, error)

ParseChatOperationsUnarchiveChatResponse parses an HTTP response from a ChatOperationsUnarchiveChatWithResponse call

func (ChatOperationsUnarchiveChatResponse) Status

Status returns HTTPResponse.Status

func (ChatOperationsUnarchiveChatResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ChatOperationsUpdateChatJSONRequestBody

type ChatOperationsUpdateChatJSONRequestBody = ChatUpdateRequest

ChatOperationsUpdateChatJSONRequestBody defines body for ChatOperationsUpdateChat for application/json ContentType.

type ChatOperationsUpdateChatResponse

type ChatOperationsUpdateChatResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Чат
		Data Chat `json:"data"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
	JSON422 *ApiError
}

func ParseChatOperationsUpdateChatResponse

func ParseChatOperationsUpdateChatResponse(rsp *http.Response) (*ChatOperationsUpdateChatResponse, error)

ParseChatOperationsUpdateChatResponse parses an HTTP response from a ChatOperationsUpdateChatWithResponse call

func (ChatOperationsUpdateChatResponse) Status

Status returns HTTPResponse.Status

func (ChatOperationsUpdateChatResponse) StatusCode

func (r ChatOperationsUpdateChatResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChatUpdateRequest

type ChatUpdateRequest struct {
	// Chat Собранный объект параметров обновляемого чата
	Chat struct {
		// Name Название
		Name *string `json:"name,omitempty"`

		// Public Открытый доступ
		Public *bool `json:"public,omitempty"`
	} `json:"chat"`
}

ChatUpdateRequest Запрос на обновление чата

type Client

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

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

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

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

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

Creates a new Client, with reasonable defaults

func (*Client) BotOperationsDeleteWebhookEvent

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

func (*Client) BotOperationsGetWebhookEvents

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

func (*Client) BotOperationsUpdateBot

func (c *Client) BotOperationsUpdateBot(ctx context.Context, id int32, body BotOperationsUpdateBotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) BotOperationsUpdateBotWithBody

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

func (*Client) ChatMemberOperationsAddMembers

func (c *Client) ChatMemberOperationsAddMembers(ctx context.Context, id int32, body ChatMemberOperationsAddMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChatMemberOperationsAddMembersWithBody

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

func (*Client) ChatMemberOperationsAddTags

func (c *Client) ChatMemberOperationsAddTags(ctx context.Context, id int32, body ChatMemberOperationsAddTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChatMemberOperationsAddTagsWithBody

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

func (*Client) ChatMemberOperationsLeaveChat

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

func (*Client) ChatMemberOperationsListMembers

func (c *Client) ChatMemberOperationsListMembers(ctx context.Context, id int32, params *ChatMemberOperationsListMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChatMemberOperationsRemoveMember

func (c *Client) ChatMemberOperationsRemoveMember(ctx context.Context, id int32, userId int32, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChatMemberOperationsRemoveTag

func (c *Client) ChatMemberOperationsRemoveTag(ctx context.Context, id int32, tagId int32, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChatMemberOperationsUpdateMemberRole

func (c *Client) ChatMemberOperationsUpdateMemberRole(ctx context.Context, id int32, userId int32, body ChatMemberOperationsUpdateMemberRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChatMemberOperationsUpdateMemberRoleWithBody

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

func (*Client) ChatMessageOperationsListChatMessages

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

func (*Client) ChatOperationsArchiveChat

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

func (*Client) ChatOperationsCreateChat

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

func (*Client) ChatOperationsCreateChatWithBody

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

func (*Client) ChatOperationsGetChat

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

func (*Client) ChatOperationsListChats

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

func (*Client) ChatOperationsUnarchiveChat

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

func (*Client) ChatOperationsUpdateChat

func (c *Client) ChatOperationsUpdateChat(ctx context.Context, id int32, body ChatOperationsUpdateChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChatOperationsUpdateChatWithBody

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

func (*Client) CommonOperationsListProperties

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

func (*Client) DirectUploadOperationsUploadFileWithBody

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

func (*Client) ExportOperationsDownloadExport

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

func (*Client) ExportOperationsRequestExport

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

func (*Client) ExportOperationsRequestExportWithBody

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

func (*Client) FormOperationsOpenView

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

func (*Client) FormOperationsOpenViewWithBody

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

func (*Client) GroupTagOperationsCreateTag

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

func (*Client) GroupTagOperationsCreateTagWithBody

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

func (*Client) GroupTagOperationsDeleteTag

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

func (*Client) GroupTagOperationsGetTag

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

func (*Client) GroupTagOperationsGetTagUsers

func (c *Client) GroupTagOperationsGetTagUsers(ctx context.Context, id int32, params *GroupTagOperationsGetTagUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GroupTagOperationsListTags

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

func (*Client) GroupTagOperationsUpdateTag

func (c *Client) GroupTagOperationsUpdateTag(ctx context.Context, id int32, body GroupTagOperationsUpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GroupTagOperationsUpdateTagWithBody

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

func (*Client) LinkPreviewOperationsCreateLinkPreviews

func (c *Client) LinkPreviewOperationsCreateLinkPreviews(ctx context.Context, id int32, body LinkPreviewOperationsCreateLinkPreviewsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) LinkPreviewOperationsCreateLinkPreviewsWithBody

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

func (*Client) MessageOperationsCreateMessage

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

func (*Client) MessageOperationsCreateMessageWithBody

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

func (*Client) MessageOperationsDeleteMessage

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

func (*Client) MessageOperationsGetMessage

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

func (*Client) MessageOperationsPinMessage

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

func (*Client) MessageOperationsUnpinMessage

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

func (*Client) MessageOperationsUpdateMessage

func (c *Client) MessageOperationsUpdateMessage(ctx context.Context, id int32, body MessageOperationsUpdateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MessageOperationsUpdateMessageWithBody

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

func (*Client) OAuthOperationsGetTokenInfo

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

func (*Client) ProfileOperationsDeleteStatus

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

func (*Client) ProfileOperationsGetProfile

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

func (*Client) ProfileOperationsGetStatus

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

func (*Client) ProfileOperationsUpdateStatus

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

func (*Client) ProfileOperationsUpdateStatusWithBody

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

func (*Client) ReactionOperationsAddReaction

func (c *Client) ReactionOperationsAddReaction(ctx context.Context, id int32, body ReactionOperationsAddReactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReactionOperationsAddReactionWithBody

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

func (*Client) ReactionOperationsListReactions

func (c *Client) ReactionOperationsListReactions(ctx context.Context, id int32, params *ReactionOperationsListReactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReactionOperationsRemoveReaction

func (c *Client) ReactionOperationsRemoveReaction(ctx context.Context, id int32, params *ReactionOperationsRemoveReactionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReadMemberOperationsListReadMembers

func (c *Client) ReadMemberOperationsListReadMembers(ctx context.Context, id int32, params *ReadMemberOperationsListReadMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SecurityOperationsGetAuditEvents

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

func (*Client) TaskOperationsCreateTask

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

func (*Client) TaskOperationsCreateTaskWithBody

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

func (*Client) TaskOperationsDeleteTask

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

func (*Client) TaskOperationsGetTask

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

func (*Client) TaskOperationsListTasks

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

func (*Client) TaskOperationsUpdateTask

func (c *Client) TaskOperationsUpdateTask(ctx context.Context, id int32, body TaskOperationsUpdateTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TaskOperationsUpdateTaskWithBody

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

func (*Client) ThreadOperationsCreateThread

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

func (*Client) ThreadOperationsGetThread

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

func (*Client) UploadOperationsGetUploadParams

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

func (*Client) UserOperationsCreateUser

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

func (*Client) UserOperationsCreateUserWithBody

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

func (*Client) UserOperationsDeleteUser

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

func (*Client) UserOperationsGetUser

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

func (*Client) UserOperationsListUsers

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

func (*Client) UserOperationsUpdateUser

func (c *Client) UserOperationsUpdateUser(ctx context.Context, id int32, body UserOperationsUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UserOperationsUpdateUserWithBody

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

func (*Client) UserStatusOperationsDeleteUserStatus

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

func (*Client) UserStatusOperationsGetUserStatus

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

func (*Client) UserStatusOperationsUpdateUserStatus

func (c *Client) UserStatusOperationsUpdateUserStatus(ctx context.Context, userId int32, body UserStatusOperationsUpdateUserStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UserStatusOperationsUpdateUserStatusWithBody

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

type ClientInterface

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

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

	BotOperationsUpdateBot(ctx context.Context, id int32, body BotOperationsUpdateBotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	ChatOperationsCreateChat(ctx context.Context, body ChatOperationsCreateChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ExportOperationsRequestExport(ctx context.Context, body ExportOperationsRequestExportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ExportOperationsDownloadExport request
	ExportOperationsDownloadExport(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChatOperationsGetChat request
	ChatOperationsGetChat(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ChatOperationsUpdateChat(ctx context.Context, id int32, body ChatOperationsUpdateChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChatOperationsArchiveChat request
	ChatOperationsArchiveChat(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ChatMemberOperationsAddTags(ctx context.Context, id int32, body ChatMemberOperationsAddTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChatMemberOperationsRemoveTag request
	ChatMemberOperationsRemoveTag(ctx context.Context, id int32, tagId int32, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChatMemberOperationsLeaveChat request
	ChatMemberOperationsLeaveChat(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChatMemberOperationsListMembers request
	ChatMemberOperationsListMembers(ctx context.Context, id int32, params *ChatMemberOperationsListMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ChatMemberOperationsAddMembers(ctx context.Context, id int32, body ChatMemberOperationsAddMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChatMemberOperationsRemoveMember request
	ChatMemberOperationsRemoveMember(ctx context.Context, id int32, userId int32, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ChatMemberOperationsUpdateMemberRole(ctx context.Context, id int32, userId int32, body ChatMemberOperationsUpdateMemberRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChatOperationsUnarchiveChat request
	ChatOperationsUnarchiveChat(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

	GroupTagOperationsCreateTag(ctx context.Context, body GroupTagOperationsCreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GroupTagOperationsDeleteTag request
	GroupTagOperationsDeleteTag(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GroupTagOperationsGetTag request
	GroupTagOperationsGetTag(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	GroupTagOperationsUpdateTag(ctx context.Context, id int32, body GroupTagOperationsUpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GroupTagOperationsGetTagUsers request
	GroupTagOperationsGetTagUsers(ctx context.Context, id int32, params *GroupTagOperationsGetTagUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	MessageOperationsCreateMessage(ctx context.Context, body MessageOperationsCreateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MessageOperationsDeleteMessage request
	MessageOperationsDeleteMessage(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MessageOperationsGetMessage request
	MessageOperationsGetMessage(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	MessageOperationsUpdateMessage(ctx context.Context, id int32, body MessageOperationsUpdateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	LinkPreviewOperationsCreateLinkPreviews(ctx context.Context, id int32, body LinkPreviewOperationsCreateLinkPreviewsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MessageOperationsUnpinMessage request
	MessageOperationsUnpinMessage(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MessageOperationsPinMessage request
	MessageOperationsPinMessage(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReactionOperationsRemoveReaction request
	ReactionOperationsRemoveReaction(ctx context.Context, id int32, params *ReactionOperationsRemoveReactionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReactionOperationsListReactions request
	ReactionOperationsListReactions(ctx context.Context, id int32, params *ReactionOperationsListReactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ReactionOperationsAddReaction(ctx context.Context, id int32, body ReactionOperationsAddReactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReadMemberOperationsListReadMembers request
	ReadMemberOperationsListReadMembers(ctx context.Context, id int32, params *ReadMemberOperationsListReadMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ThreadOperationsCreateThread request
	ThreadOperationsCreateThread(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

	ProfileOperationsUpdateStatus(ctx context.Context, body ProfileOperationsUpdateStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	TaskOperationsCreateTask(ctx context.Context, body TaskOperationsCreateTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TaskOperationsDeleteTask request
	TaskOperationsDeleteTask(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TaskOperationsGetTask request
	TaskOperationsGetTask(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	TaskOperationsUpdateTask(ctx context.Context, id int32, body TaskOperationsUpdateTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ThreadOperationsGetThread request
	ThreadOperationsGetThread(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

	UserOperationsCreateUser(ctx context.Context, body UserOperationsCreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserOperationsDeleteUser request
	UserOperationsDeleteUser(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserOperationsGetUser request
	UserOperationsGetUser(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UserOperationsUpdateUser(ctx context.Context, id int32, body UserOperationsUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserStatusOperationsDeleteUserStatus request
	UserStatusOperationsDeleteUserStatus(ctx context.Context, userId int32, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserStatusOperationsGetUserStatus request
	UserStatusOperationsGetUserStatus(ctx context.Context, userId int32, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UserStatusOperationsUpdateUserStatus(ctx context.Context, userId int32, body UserStatusOperationsUpdateUserStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	FormOperationsOpenView(ctx context.Context, body FormOperationsOpenViewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// BotOperationsDeleteWebhookEvent request
	BotOperationsDeleteWebhookEvent(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

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

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

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

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

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

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

func (*ClientWithResponses) BotOperationsDeleteWebhookEventWithResponse

func (c *ClientWithResponses) BotOperationsDeleteWebhookEventWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*BotOperationsDeleteWebhookEventResponse, error)

BotOperationsDeleteWebhookEventWithResponse request returning *BotOperationsDeleteWebhookEventResponse

func (*ClientWithResponses) BotOperationsGetWebhookEventsWithResponse

func (c *ClientWithResponses) BotOperationsGetWebhookEventsWithResponse(ctx context.Context, params *BotOperationsGetWebhookEventsParams, reqEditors ...RequestEditorFn) (*BotOperationsGetWebhookEventsResponse, error)

BotOperationsGetWebhookEventsWithResponse request returning *BotOperationsGetWebhookEventsResponse

func (*ClientWithResponses) BotOperationsUpdateBotWithBodyWithResponse

func (c *ClientWithResponses) BotOperationsUpdateBotWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BotOperationsUpdateBotResponse, error)

BotOperationsUpdateBotWithBodyWithResponse request with arbitrary body returning *BotOperationsUpdateBotResponse

func (*ClientWithResponses) BotOperationsUpdateBotWithResponse

func (c *ClientWithResponses) BotOperationsUpdateBotWithResponse(ctx context.Context, id int32, body BotOperationsUpdateBotJSONRequestBody, reqEditors ...RequestEditorFn) (*BotOperationsUpdateBotResponse, error)

func (*ClientWithResponses) ChatMemberOperationsAddMembersWithBodyWithResponse

func (c *ClientWithResponses) ChatMemberOperationsAddMembersWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChatMemberOperationsAddMembersResponse, error)

ChatMemberOperationsAddMembersWithBodyWithResponse request with arbitrary body returning *ChatMemberOperationsAddMembersResponse

func (*ClientWithResponses) ChatMemberOperationsAddMembersWithResponse

func (c *ClientWithResponses) ChatMemberOperationsAddMembersWithResponse(ctx context.Context, id int32, body ChatMemberOperationsAddMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatMemberOperationsAddMembersResponse, error)

func (*ClientWithResponses) ChatMemberOperationsAddTagsWithBodyWithResponse

func (c *ClientWithResponses) ChatMemberOperationsAddTagsWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChatMemberOperationsAddTagsResponse, error)

ChatMemberOperationsAddTagsWithBodyWithResponse request with arbitrary body returning *ChatMemberOperationsAddTagsResponse

func (*ClientWithResponses) ChatMemberOperationsAddTagsWithResponse

func (c *ClientWithResponses) ChatMemberOperationsAddTagsWithResponse(ctx context.Context, id int32, body ChatMemberOperationsAddTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatMemberOperationsAddTagsResponse, error)

func (*ClientWithResponses) ChatMemberOperationsLeaveChatWithResponse

func (c *ClientWithResponses) ChatMemberOperationsLeaveChatWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ChatMemberOperationsLeaveChatResponse, error)

ChatMemberOperationsLeaveChatWithResponse request returning *ChatMemberOperationsLeaveChatResponse

func (*ClientWithResponses) ChatMemberOperationsListMembersWithResponse

func (c *ClientWithResponses) ChatMemberOperationsListMembersWithResponse(ctx context.Context, id int32, params *ChatMemberOperationsListMembersParams, reqEditors ...RequestEditorFn) (*ChatMemberOperationsListMembersResponse, error)

ChatMemberOperationsListMembersWithResponse request returning *ChatMemberOperationsListMembersResponse

func (*ClientWithResponses) ChatMemberOperationsRemoveMemberWithResponse

func (c *ClientWithResponses) ChatMemberOperationsRemoveMemberWithResponse(ctx context.Context, id int32, userId int32, reqEditors ...RequestEditorFn) (*ChatMemberOperationsRemoveMemberResponse, error)

ChatMemberOperationsRemoveMemberWithResponse request returning *ChatMemberOperationsRemoveMemberResponse

func (*ClientWithResponses) ChatMemberOperationsRemoveTagWithResponse

func (c *ClientWithResponses) ChatMemberOperationsRemoveTagWithResponse(ctx context.Context, id int32, tagId int32, reqEditors ...RequestEditorFn) (*ChatMemberOperationsRemoveTagResponse, error)

ChatMemberOperationsRemoveTagWithResponse request returning *ChatMemberOperationsRemoveTagResponse

func (*ClientWithResponses) ChatMemberOperationsUpdateMemberRoleWithBodyWithResponse

func (c *ClientWithResponses) ChatMemberOperationsUpdateMemberRoleWithBodyWithResponse(ctx context.Context, id int32, userId int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChatMemberOperationsUpdateMemberRoleResponse, error)

ChatMemberOperationsUpdateMemberRoleWithBodyWithResponse request with arbitrary body returning *ChatMemberOperationsUpdateMemberRoleResponse

func (*ClientWithResponses) ChatMemberOperationsUpdateMemberRoleWithResponse

func (c *ClientWithResponses) ChatMemberOperationsUpdateMemberRoleWithResponse(ctx context.Context, id int32, userId int32, body ChatMemberOperationsUpdateMemberRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatMemberOperationsUpdateMemberRoleResponse, error)

func (*ClientWithResponses) ChatMessageOperationsListChatMessagesWithResponse

func (c *ClientWithResponses) ChatMessageOperationsListChatMessagesWithResponse(ctx context.Context, params *ChatMessageOperationsListChatMessagesParams, reqEditors ...RequestEditorFn) (*ChatMessageOperationsListChatMessagesResponse, error)

ChatMessageOperationsListChatMessagesWithResponse request returning *ChatMessageOperationsListChatMessagesResponse

func (*ClientWithResponses) ChatOperationsArchiveChatWithResponse

func (c *ClientWithResponses) ChatOperationsArchiveChatWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ChatOperationsArchiveChatResponse, error)

ChatOperationsArchiveChatWithResponse request returning *ChatOperationsArchiveChatResponse

func (*ClientWithResponses) ChatOperationsCreateChatWithBodyWithResponse

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

ChatOperationsCreateChatWithBodyWithResponse request with arbitrary body returning *ChatOperationsCreateChatResponse

func (*ClientWithResponses) ChatOperationsCreateChatWithResponse

func (c *ClientWithResponses) ChatOperationsCreateChatWithResponse(ctx context.Context, body ChatOperationsCreateChatJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatOperationsCreateChatResponse, error)

func (*ClientWithResponses) ChatOperationsGetChatWithResponse

func (c *ClientWithResponses) ChatOperationsGetChatWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ChatOperationsGetChatResponse, error)

ChatOperationsGetChatWithResponse request returning *ChatOperationsGetChatResponse

func (*ClientWithResponses) ChatOperationsListChatsWithResponse

func (c *ClientWithResponses) ChatOperationsListChatsWithResponse(ctx context.Context, params *ChatOperationsListChatsParams, reqEditors ...RequestEditorFn) (*ChatOperationsListChatsResponse, error)

ChatOperationsListChatsWithResponse request returning *ChatOperationsListChatsResponse

func (*ClientWithResponses) ChatOperationsUnarchiveChatWithResponse

func (c *ClientWithResponses) ChatOperationsUnarchiveChatWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ChatOperationsUnarchiveChatResponse, error)

ChatOperationsUnarchiveChatWithResponse request returning *ChatOperationsUnarchiveChatResponse

func (*ClientWithResponses) ChatOperationsUpdateChatWithBodyWithResponse

func (c *ClientWithResponses) ChatOperationsUpdateChatWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChatOperationsUpdateChatResponse, error)

ChatOperationsUpdateChatWithBodyWithResponse request with arbitrary body returning *ChatOperationsUpdateChatResponse

func (*ClientWithResponses) ChatOperationsUpdateChatWithResponse

func (c *ClientWithResponses) ChatOperationsUpdateChatWithResponse(ctx context.Context, id int32, body ChatOperationsUpdateChatJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatOperationsUpdateChatResponse, error)

func (*ClientWithResponses) CommonOperationsListPropertiesWithResponse

func (c *ClientWithResponses) CommonOperationsListPropertiesWithResponse(ctx context.Context, params *CommonOperationsListPropertiesParams, reqEditors ...RequestEditorFn) (*CommonOperationsListPropertiesResponse, error)

CommonOperationsListPropertiesWithResponse request returning *CommonOperationsListPropertiesResponse

func (*ClientWithResponses) DirectUploadOperationsUploadFileWithBodyWithResponse

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

DirectUploadOperationsUploadFileWithBodyWithResponse request with arbitrary body returning *DirectUploadOperationsUploadFileResponse

func (*ClientWithResponses) ExportOperationsDownloadExportWithResponse

func (c *ClientWithResponses) ExportOperationsDownloadExportWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ExportOperationsDownloadExportResponse, error)

ExportOperationsDownloadExportWithResponse request returning *ExportOperationsDownloadExportResponse

func (*ClientWithResponses) ExportOperationsRequestExportWithBodyWithResponse

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

ExportOperationsRequestExportWithBodyWithResponse request with arbitrary body returning *ExportOperationsRequestExportResponse

func (*ClientWithResponses) ExportOperationsRequestExportWithResponse

func (c *ClientWithResponses) ExportOperationsRequestExportWithResponse(ctx context.Context, body ExportOperationsRequestExportJSONRequestBody, reqEditors ...RequestEditorFn) (*ExportOperationsRequestExportResponse, error)

func (*ClientWithResponses) FormOperationsOpenViewWithBodyWithResponse

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

FormOperationsOpenViewWithBodyWithResponse request with arbitrary body returning *FormOperationsOpenViewResponse

func (*ClientWithResponses) FormOperationsOpenViewWithResponse

func (c *ClientWithResponses) FormOperationsOpenViewWithResponse(ctx context.Context, body FormOperationsOpenViewJSONRequestBody, reqEditors ...RequestEditorFn) (*FormOperationsOpenViewResponse, error)

func (*ClientWithResponses) GroupTagOperationsCreateTagWithBodyWithResponse

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

GroupTagOperationsCreateTagWithBodyWithResponse request with arbitrary body returning *GroupTagOperationsCreateTagResponse

func (*ClientWithResponses) GroupTagOperationsCreateTagWithResponse

func (c *ClientWithResponses) GroupTagOperationsCreateTagWithResponse(ctx context.Context, body GroupTagOperationsCreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*GroupTagOperationsCreateTagResponse, error)

func (*ClientWithResponses) GroupTagOperationsDeleteTagWithResponse

func (c *ClientWithResponses) GroupTagOperationsDeleteTagWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GroupTagOperationsDeleteTagResponse, error)

GroupTagOperationsDeleteTagWithResponse request returning *GroupTagOperationsDeleteTagResponse

func (*ClientWithResponses) GroupTagOperationsGetTagUsersWithResponse

func (c *ClientWithResponses) GroupTagOperationsGetTagUsersWithResponse(ctx context.Context, id int32, params *GroupTagOperationsGetTagUsersParams, reqEditors ...RequestEditorFn) (*GroupTagOperationsGetTagUsersResponse, error)

GroupTagOperationsGetTagUsersWithResponse request returning *GroupTagOperationsGetTagUsersResponse

func (*ClientWithResponses) GroupTagOperationsGetTagWithResponse

func (c *ClientWithResponses) GroupTagOperationsGetTagWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GroupTagOperationsGetTagResponse, error)

GroupTagOperationsGetTagWithResponse request returning *GroupTagOperationsGetTagResponse

func (*ClientWithResponses) GroupTagOperationsListTagsWithResponse

func (c *ClientWithResponses) GroupTagOperationsListTagsWithResponse(ctx context.Context, params *GroupTagOperationsListTagsParams, reqEditors ...RequestEditorFn) (*GroupTagOperationsListTagsResponse, error)

GroupTagOperationsListTagsWithResponse request returning *GroupTagOperationsListTagsResponse

func (*ClientWithResponses) GroupTagOperationsUpdateTagWithBodyWithResponse

func (c *ClientWithResponses) GroupTagOperationsUpdateTagWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GroupTagOperationsUpdateTagResponse, error)

GroupTagOperationsUpdateTagWithBodyWithResponse request with arbitrary body returning *GroupTagOperationsUpdateTagResponse

func (*ClientWithResponses) GroupTagOperationsUpdateTagWithResponse

func (c *ClientWithResponses) GroupTagOperationsUpdateTagWithResponse(ctx context.Context, id int32, body GroupTagOperationsUpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*GroupTagOperationsUpdateTagResponse, error)

func (*ClientWithResponses) LinkPreviewOperationsCreateLinkPreviewsWithBodyWithResponse

func (c *ClientWithResponses) LinkPreviewOperationsCreateLinkPreviewsWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LinkPreviewOperationsCreateLinkPreviewsResponse, error)

LinkPreviewOperationsCreateLinkPreviewsWithBodyWithResponse request with arbitrary body returning *LinkPreviewOperationsCreateLinkPreviewsResponse

func (*ClientWithResponses) MessageOperationsCreateMessageWithBodyWithResponse

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

MessageOperationsCreateMessageWithBodyWithResponse request with arbitrary body returning *MessageOperationsCreateMessageResponse

func (*ClientWithResponses) MessageOperationsCreateMessageWithResponse

func (c *ClientWithResponses) MessageOperationsCreateMessageWithResponse(ctx context.Context, body MessageOperationsCreateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*MessageOperationsCreateMessageResponse, error)

func (*ClientWithResponses) MessageOperationsDeleteMessageWithResponse

func (c *ClientWithResponses) MessageOperationsDeleteMessageWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*MessageOperationsDeleteMessageResponse, error)

MessageOperationsDeleteMessageWithResponse request returning *MessageOperationsDeleteMessageResponse

func (*ClientWithResponses) MessageOperationsGetMessageWithResponse

func (c *ClientWithResponses) MessageOperationsGetMessageWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*MessageOperationsGetMessageResponse, error)

MessageOperationsGetMessageWithResponse request returning *MessageOperationsGetMessageResponse

func (*ClientWithResponses) MessageOperationsPinMessageWithResponse

func (c *ClientWithResponses) MessageOperationsPinMessageWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*MessageOperationsPinMessageResponse, error)

MessageOperationsPinMessageWithResponse request returning *MessageOperationsPinMessageResponse

func (*ClientWithResponses) MessageOperationsUnpinMessageWithResponse

func (c *ClientWithResponses) MessageOperationsUnpinMessageWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*MessageOperationsUnpinMessageResponse, error)

MessageOperationsUnpinMessageWithResponse request returning *MessageOperationsUnpinMessageResponse

func (*ClientWithResponses) MessageOperationsUpdateMessageWithBodyWithResponse

func (c *ClientWithResponses) MessageOperationsUpdateMessageWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MessageOperationsUpdateMessageResponse, error)

MessageOperationsUpdateMessageWithBodyWithResponse request with arbitrary body returning *MessageOperationsUpdateMessageResponse

func (*ClientWithResponses) MessageOperationsUpdateMessageWithResponse

func (c *ClientWithResponses) MessageOperationsUpdateMessageWithResponse(ctx context.Context, id int32, body MessageOperationsUpdateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*MessageOperationsUpdateMessageResponse, error)

func (*ClientWithResponses) OAuthOperationsGetTokenInfoWithResponse

func (c *ClientWithResponses) OAuthOperationsGetTokenInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OAuthOperationsGetTokenInfoResponse, error)

OAuthOperationsGetTokenInfoWithResponse request returning *OAuthOperationsGetTokenInfoResponse

func (*ClientWithResponses) ProfileOperationsDeleteStatusWithResponse

func (c *ClientWithResponses) ProfileOperationsDeleteStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProfileOperationsDeleteStatusResponse, error)

ProfileOperationsDeleteStatusWithResponse request returning *ProfileOperationsDeleteStatusResponse

func (*ClientWithResponses) ProfileOperationsGetProfileWithResponse

func (c *ClientWithResponses) ProfileOperationsGetProfileWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProfileOperationsGetProfileResponse, error)

ProfileOperationsGetProfileWithResponse request returning *ProfileOperationsGetProfileResponse

func (*ClientWithResponses) ProfileOperationsGetStatusWithResponse

func (c *ClientWithResponses) ProfileOperationsGetStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProfileOperationsGetStatusResponse, error)

ProfileOperationsGetStatusWithResponse request returning *ProfileOperationsGetStatusResponse

func (*ClientWithResponses) ProfileOperationsUpdateStatusWithBodyWithResponse

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

ProfileOperationsUpdateStatusWithBodyWithResponse request with arbitrary body returning *ProfileOperationsUpdateStatusResponse

func (*ClientWithResponses) ProfileOperationsUpdateStatusWithResponse

func (c *ClientWithResponses) ProfileOperationsUpdateStatusWithResponse(ctx context.Context, body ProfileOperationsUpdateStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*ProfileOperationsUpdateStatusResponse, error)

func (*ClientWithResponses) ReactionOperationsAddReactionWithBodyWithResponse

func (c *ClientWithResponses) ReactionOperationsAddReactionWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReactionOperationsAddReactionResponse, error)

ReactionOperationsAddReactionWithBodyWithResponse request with arbitrary body returning *ReactionOperationsAddReactionResponse

func (*ClientWithResponses) ReactionOperationsAddReactionWithResponse

func (c *ClientWithResponses) ReactionOperationsAddReactionWithResponse(ctx context.Context, id int32, body ReactionOperationsAddReactionJSONRequestBody, reqEditors ...RequestEditorFn) (*ReactionOperationsAddReactionResponse, error)

func (*ClientWithResponses) ReactionOperationsListReactionsWithResponse

func (c *ClientWithResponses) ReactionOperationsListReactionsWithResponse(ctx context.Context, id int32, params *ReactionOperationsListReactionsParams, reqEditors ...RequestEditorFn) (*ReactionOperationsListReactionsResponse, error)

ReactionOperationsListReactionsWithResponse request returning *ReactionOperationsListReactionsResponse

func (*ClientWithResponses) ReactionOperationsRemoveReactionWithResponse

func (c *ClientWithResponses) ReactionOperationsRemoveReactionWithResponse(ctx context.Context, id int32, params *ReactionOperationsRemoveReactionParams, reqEditors ...RequestEditorFn) (*ReactionOperationsRemoveReactionResponse, error)

ReactionOperationsRemoveReactionWithResponse request returning *ReactionOperationsRemoveReactionResponse

func (*ClientWithResponses) ReadMemberOperationsListReadMembersWithResponse

func (c *ClientWithResponses) ReadMemberOperationsListReadMembersWithResponse(ctx context.Context, id int32, params *ReadMemberOperationsListReadMembersParams, reqEditors ...RequestEditorFn) (*ReadMemberOperationsListReadMembersResponse, error)

ReadMemberOperationsListReadMembersWithResponse request returning *ReadMemberOperationsListReadMembersResponse

func (*ClientWithResponses) SecurityOperationsGetAuditEventsWithResponse

func (c *ClientWithResponses) SecurityOperationsGetAuditEventsWithResponse(ctx context.Context, params *SecurityOperationsGetAuditEventsParams, reqEditors ...RequestEditorFn) (*SecurityOperationsGetAuditEventsResponse, error)

SecurityOperationsGetAuditEventsWithResponse request returning *SecurityOperationsGetAuditEventsResponse

func (*ClientWithResponses) TaskOperationsCreateTaskWithBodyWithResponse

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

TaskOperationsCreateTaskWithBodyWithResponse request with arbitrary body returning *TaskOperationsCreateTaskResponse

func (*ClientWithResponses) TaskOperationsCreateTaskWithResponse

func (c *ClientWithResponses) TaskOperationsCreateTaskWithResponse(ctx context.Context, body TaskOperationsCreateTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*TaskOperationsCreateTaskResponse, error)

func (*ClientWithResponses) TaskOperationsDeleteTaskWithResponse

func (c *ClientWithResponses) TaskOperationsDeleteTaskWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*TaskOperationsDeleteTaskResponse, error)

TaskOperationsDeleteTaskWithResponse request returning *TaskOperationsDeleteTaskResponse

func (*ClientWithResponses) TaskOperationsGetTaskWithResponse

func (c *ClientWithResponses) TaskOperationsGetTaskWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*TaskOperationsGetTaskResponse, error)

TaskOperationsGetTaskWithResponse request returning *TaskOperationsGetTaskResponse

func (*ClientWithResponses) TaskOperationsListTasksWithResponse

func (c *ClientWithResponses) TaskOperationsListTasksWithResponse(ctx context.Context, params *TaskOperationsListTasksParams, reqEditors ...RequestEditorFn) (*TaskOperationsListTasksResponse, error)

TaskOperationsListTasksWithResponse request returning *TaskOperationsListTasksResponse

func (*ClientWithResponses) TaskOperationsUpdateTaskWithBodyWithResponse

func (c *ClientWithResponses) TaskOperationsUpdateTaskWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TaskOperationsUpdateTaskResponse, error)

TaskOperationsUpdateTaskWithBodyWithResponse request with arbitrary body returning *TaskOperationsUpdateTaskResponse

func (*ClientWithResponses) TaskOperationsUpdateTaskWithResponse

func (c *ClientWithResponses) TaskOperationsUpdateTaskWithResponse(ctx context.Context, id int32, body TaskOperationsUpdateTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*TaskOperationsUpdateTaskResponse, error)

func (*ClientWithResponses) ThreadOperationsCreateThreadWithResponse

func (c *ClientWithResponses) ThreadOperationsCreateThreadWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ThreadOperationsCreateThreadResponse, error)

ThreadOperationsCreateThreadWithResponse request returning *ThreadOperationsCreateThreadResponse

func (*ClientWithResponses) ThreadOperationsGetThreadWithResponse

func (c *ClientWithResponses) ThreadOperationsGetThreadWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ThreadOperationsGetThreadResponse, error)

ThreadOperationsGetThreadWithResponse request returning *ThreadOperationsGetThreadResponse

func (*ClientWithResponses) UploadOperationsGetUploadParamsWithResponse

func (c *ClientWithResponses) UploadOperationsGetUploadParamsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UploadOperationsGetUploadParamsResponse, error)

UploadOperationsGetUploadParamsWithResponse request returning *UploadOperationsGetUploadParamsResponse

func (*ClientWithResponses) UserOperationsCreateUserWithBodyWithResponse

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

UserOperationsCreateUserWithBodyWithResponse request with arbitrary body returning *UserOperationsCreateUserResponse

func (*ClientWithResponses) UserOperationsCreateUserWithResponse

func (c *ClientWithResponses) UserOperationsCreateUserWithResponse(ctx context.Context, body UserOperationsCreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UserOperationsCreateUserResponse, error)

func (*ClientWithResponses) UserOperationsDeleteUserWithResponse

func (c *ClientWithResponses) UserOperationsDeleteUserWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*UserOperationsDeleteUserResponse, error)

UserOperationsDeleteUserWithResponse request returning *UserOperationsDeleteUserResponse

func (*ClientWithResponses) UserOperationsGetUserWithResponse

func (c *ClientWithResponses) UserOperationsGetUserWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*UserOperationsGetUserResponse, error)

UserOperationsGetUserWithResponse request returning *UserOperationsGetUserResponse

func (*ClientWithResponses) UserOperationsListUsersWithResponse

func (c *ClientWithResponses) UserOperationsListUsersWithResponse(ctx context.Context, params *UserOperationsListUsersParams, reqEditors ...RequestEditorFn) (*UserOperationsListUsersResponse, error)

UserOperationsListUsersWithResponse request returning *UserOperationsListUsersResponse

func (*ClientWithResponses) UserOperationsUpdateUserWithBodyWithResponse

func (c *ClientWithResponses) UserOperationsUpdateUserWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserOperationsUpdateUserResponse, error)

UserOperationsUpdateUserWithBodyWithResponse request with arbitrary body returning *UserOperationsUpdateUserResponse

func (*ClientWithResponses) UserOperationsUpdateUserWithResponse

func (c *ClientWithResponses) UserOperationsUpdateUserWithResponse(ctx context.Context, id int32, body UserOperationsUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UserOperationsUpdateUserResponse, error)

func (*ClientWithResponses) UserStatusOperationsDeleteUserStatusWithResponse

func (c *ClientWithResponses) UserStatusOperationsDeleteUserStatusWithResponse(ctx context.Context, userId int32, reqEditors ...RequestEditorFn) (*UserStatusOperationsDeleteUserStatusResponse, error)

UserStatusOperationsDeleteUserStatusWithResponse request returning *UserStatusOperationsDeleteUserStatusResponse

func (*ClientWithResponses) UserStatusOperationsGetUserStatusWithResponse

func (c *ClientWithResponses) UserStatusOperationsGetUserStatusWithResponse(ctx context.Context, userId int32, reqEditors ...RequestEditorFn) (*UserStatusOperationsGetUserStatusResponse, error)

UserStatusOperationsGetUserStatusWithResponse request returning *UserStatusOperationsGetUserStatusResponse

func (*ClientWithResponses) UserStatusOperationsUpdateUserStatusWithBodyWithResponse

func (c *ClientWithResponses) UserStatusOperationsUpdateUserStatusWithBodyWithResponse(ctx context.Context, userId int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserStatusOperationsUpdateUserStatusResponse, error)

UserStatusOperationsUpdateUserStatusWithBodyWithResponse request with arbitrary body returning *UserStatusOperationsUpdateUserStatusResponse

func (*ClientWithResponses) UserStatusOperationsUpdateUserStatusWithResponse

func (c *ClientWithResponses) UserStatusOperationsUpdateUserStatusWithResponse(ctx context.Context, userId int32, body UserStatusOperationsUpdateUserStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UserStatusOperationsUpdateUserStatusResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// SecurityOperationsGetAuditEventsWithResponse request
	SecurityOperationsGetAuditEventsWithResponse(ctx context.Context, params *SecurityOperationsGetAuditEventsParams, reqEditors ...RequestEditorFn) (*SecurityOperationsGetAuditEventsResponse, error)

	// BotOperationsUpdateBotWithBodyWithResponse request with any body
	BotOperationsUpdateBotWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BotOperationsUpdateBotResponse, error)

	BotOperationsUpdateBotWithResponse(ctx context.Context, id int32, body BotOperationsUpdateBotJSONRequestBody, reqEditors ...RequestEditorFn) (*BotOperationsUpdateBotResponse, error)

	// ChatOperationsListChatsWithResponse request
	ChatOperationsListChatsWithResponse(ctx context.Context, params *ChatOperationsListChatsParams, reqEditors ...RequestEditorFn) (*ChatOperationsListChatsResponse, error)

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

	ChatOperationsCreateChatWithResponse(ctx context.Context, body ChatOperationsCreateChatJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatOperationsCreateChatResponse, error)

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

	ExportOperationsRequestExportWithResponse(ctx context.Context, body ExportOperationsRequestExportJSONRequestBody, reqEditors ...RequestEditorFn) (*ExportOperationsRequestExportResponse, error)

	// ExportOperationsDownloadExportWithResponse request
	ExportOperationsDownloadExportWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ExportOperationsDownloadExportResponse, error)

	// ChatOperationsGetChatWithResponse request
	ChatOperationsGetChatWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ChatOperationsGetChatResponse, error)

	// ChatOperationsUpdateChatWithBodyWithResponse request with any body
	ChatOperationsUpdateChatWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChatOperationsUpdateChatResponse, error)

	ChatOperationsUpdateChatWithResponse(ctx context.Context, id int32, body ChatOperationsUpdateChatJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatOperationsUpdateChatResponse, error)

	// ChatOperationsArchiveChatWithResponse request
	ChatOperationsArchiveChatWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ChatOperationsArchiveChatResponse, error)

	// ChatMemberOperationsAddTagsWithBodyWithResponse request with any body
	ChatMemberOperationsAddTagsWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChatMemberOperationsAddTagsResponse, error)

	ChatMemberOperationsAddTagsWithResponse(ctx context.Context, id int32, body ChatMemberOperationsAddTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatMemberOperationsAddTagsResponse, error)

	// ChatMemberOperationsRemoveTagWithResponse request
	ChatMemberOperationsRemoveTagWithResponse(ctx context.Context, id int32, tagId int32, reqEditors ...RequestEditorFn) (*ChatMemberOperationsRemoveTagResponse, error)

	// ChatMemberOperationsLeaveChatWithResponse request
	ChatMemberOperationsLeaveChatWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ChatMemberOperationsLeaveChatResponse, error)

	// ChatMemberOperationsListMembersWithResponse request
	ChatMemberOperationsListMembersWithResponse(ctx context.Context, id int32, params *ChatMemberOperationsListMembersParams, reqEditors ...RequestEditorFn) (*ChatMemberOperationsListMembersResponse, error)

	// ChatMemberOperationsAddMembersWithBodyWithResponse request with any body
	ChatMemberOperationsAddMembersWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChatMemberOperationsAddMembersResponse, error)

	ChatMemberOperationsAddMembersWithResponse(ctx context.Context, id int32, body ChatMemberOperationsAddMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatMemberOperationsAddMembersResponse, error)

	// ChatMemberOperationsRemoveMemberWithResponse request
	ChatMemberOperationsRemoveMemberWithResponse(ctx context.Context, id int32, userId int32, reqEditors ...RequestEditorFn) (*ChatMemberOperationsRemoveMemberResponse, error)

	// ChatMemberOperationsUpdateMemberRoleWithBodyWithResponse request with any body
	ChatMemberOperationsUpdateMemberRoleWithBodyWithResponse(ctx context.Context, id int32, userId int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChatMemberOperationsUpdateMemberRoleResponse, error)

	ChatMemberOperationsUpdateMemberRoleWithResponse(ctx context.Context, id int32, userId int32, body ChatMemberOperationsUpdateMemberRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatMemberOperationsUpdateMemberRoleResponse, error)

	// ChatOperationsUnarchiveChatWithResponse request
	ChatOperationsUnarchiveChatWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ChatOperationsUnarchiveChatResponse, error)

	// CommonOperationsListPropertiesWithResponse request
	CommonOperationsListPropertiesWithResponse(ctx context.Context, params *CommonOperationsListPropertiesParams, reqEditors ...RequestEditorFn) (*CommonOperationsListPropertiesResponse, error)

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

	// GroupTagOperationsListTagsWithResponse request
	GroupTagOperationsListTagsWithResponse(ctx context.Context, params *GroupTagOperationsListTagsParams, reqEditors ...RequestEditorFn) (*GroupTagOperationsListTagsResponse, error)

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

	GroupTagOperationsCreateTagWithResponse(ctx context.Context, body GroupTagOperationsCreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*GroupTagOperationsCreateTagResponse, error)

	// GroupTagOperationsDeleteTagWithResponse request
	GroupTagOperationsDeleteTagWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GroupTagOperationsDeleteTagResponse, error)

	// GroupTagOperationsGetTagWithResponse request
	GroupTagOperationsGetTagWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GroupTagOperationsGetTagResponse, error)

	// GroupTagOperationsUpdateTagWithBodyWithResponse request with any body
	GroupTagOperationsUpdateTagWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GroupTagOperationsUpdateTagResponse, error)

	GroupTagOperationsUpdateTagWithResponse(ctx context.Context, id int32, body GroupTagOperationsUpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*GroupTagOperationsUpdateTagResponse, error)

	// GroupTagOperationsGetTagUsersWithResponse request
	GroupTagOperationsGetTagUsersWithResponse(ctx context.Context, id int32, params *GroupTagOperationsGetTagUsersParams, reqEditors ...RequestEditorFn) (*GroupTagOperationsGetTagUsersResponse, error)

	// ChatMessageOperationsListChatMessagesWithResponse request
	ChatMessageOperationsListChatMessagesWithResponse(ctx context.Context, params *ChatMessageOperationsListChatMessagesParams, reqEditors ...RequestEditorFn) (*ChatMessageOperationsListChatMessagesResponse, error)

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

	MessageOperationsCreateMessageWithResponse(ctx context.Context, body MessageOperationsCreateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*MessageOperationsCreateMessageResponse, error)

	// MessageOperationsDeleteMessageWithResponse request
	MessageOperationsDeleteMessageWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*MessageOperationsDeleteMessageResponse, error)

	// MessageOperationsGetMessageWithResponse request
	MessageOperationsGetMessageWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*MessageOperationsGetMessageResponse, error)

	// MessageOperationsUpdateMessageWithBodyWithResponse request with any body
	MessageOperationsUpdateMessageWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MessageOperationsUpdateMessageResponse, error)

	MessageOperationsUpdateMessageWithResponse(ctx context.Context, id int32, body MessageOperationsUpdateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*MessageOperationsUpdateMessageResponse, error)

	// LinkPreviewOperationsCreateLinkPreviewsWithBodyWithResponse request with any body
	LinkPreviewOperationsCreateLinkPreviewsWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LinkPreviewOperationsCreateLinkPreviewsResponse, error)

	LinkPreviewOperationsCreateLinkPreviewsWithResponse(ctx context.Context, id int32, body LinkPreviewOperationsCreateLinkPreviewsJSONRequestBody, reqEditors ...RequestEditorFn) (*LinkPreviewOperationsCreateLinkPreviewsResponse, error)

	// MessageOperationsUnpinMessageWithResponse request
	MessageOperationsUnpinMessageWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*MessageOperationsUnpinMessageResponse, error)

	// MessageOperationsPinMessageWithResponse request
	MessageOperationsPinMessageWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*MessageOperationsPinMessageResponse, error)

	// ReactionOperationsRemoveReactionWithResponse request
	ReactionOperationsRemoveReactionWithResponse(ctx context.Context, id int32, params *ReactionOperationsRemoveReactionParams, reqEditors ...RequestEditorFn) (*ReactionOperationsRemoveReactionResponse, error)

	// ReactionOperationsListReactionsWithResponse request
	ReactionOperationsListReactionsWithResponse(ctx context.Context, id int32, params *ReactionOperationsListReactionsParams, reqEditors ...RequestEditorFn) (*ReactionOperationsListReactionsResponse, error)

	// ReactionOperationsAddReactionWithBodyWithResponse request with any body
	ReactionOperationsAddReactionWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReactionOperationsAddReactionResponse, error)

	ReactionOperationsAddReactionWithResponse(ctx context.Context, id int32, body ReactionOperationsAddReactionJSONRequestBody, reqEditors ...RequestEditorFn) (*ReactionOperationsAddReactionResponse, error)

	// ReadMemberOperationsListReadMembersWithResponse request
	ReadMemberOperationsListReadMembersWithResponse(ctx context.Context, id int32, params *ReadMemberOperationsListReadMembersParams, reqEditors ...RequestEditorFn) (*ReadMemberOperationsListReadMembersResponse, error)

	// ThreadOperationsCreateThreadWithResponse request
	ThreadOperationsCreateThreadWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ThreadOperationsCreateThreadResponse, error)

	// OAuthOperationsGetTokenInfoWithResponse request
	OAuthOperationsGetTokenInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OAuthOperationsGetTokenInfoResponse, error)

	// ProfileOperationsGetProfileWithResponse request
	ProfileOperationsGetProfileWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProfileOperationsGetProfileResponse, error)

	// ProfileOperationsDeleteStatusWithResponse request
	ProfileOperationsDeleteStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProfileOperationsDeleteStatusResponse, error)

	// ProfileOperationsGetStatusWithResponse request
	ProfileOperationsGetStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProfileOperationsGetStatusResponse, error)

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

	ProfileOperationsUpdateStatusWithResponse(ctx context.Context, body ProfileOperationsUpdateStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*ProfileOperationsUpdateStatusResponse, error)

	// TaskOperationsListTasksWithResponse request
	TaskOperationsListTasksWithResponse(ctx context.Context, params *TaskOperationsListTasksParams, reqEditors ...RequestEditorFn) (*TaskOperationsListTasksResponse, error)

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

	TaskOperationsCreateTaskWithResponse(ctx context.Context, body TaskOperationsCreateTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*TaskOperationsCreateTaskResponse, error)

	// TaskOperationsDeleteTaskWithResponse request
	TaskOperationsDeleteTaskWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*TaskOperationsDeleteTaskResponse, error)

	// TaskOperationsGetTaskWithResponse request
	TaskOperationsGetTaskWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*TaskOperationsGetTaskResponse, error)

	// TaskOperationsUpdateTaskWithBodyWithResponse request with any body
	TaskOperationsUpdateTaskWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TaskOperationsUpdateTaskResponse, error)

	TaskOperationsUpdateTaskWithResponse(ctx context.Context, id int32, body TaskOperationsUpdateTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*TaskOperationsUpdateTaskResponse, error)

	// ThreadOperationsGetThreadWithResponse request
	ThreadOperationsGetThreadWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ThreadOperationsGetThreadResponse, error)

	// UploadOperationsGetUploadParamsWithResponse request
	UploadOperationsGetUploadParamsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UploadOperationsGetUploadParamsResponse, error)

	// UserOperationsListUsersWithResponse request
	UserOperationsListUsersWithResponse(ctx context.Context, params *UserOperationsListUsersParams, reqEditors ...RequestEditorFn) (*UserOperationsListUsersResponse, error)

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

	UserOperationsCreateUserWithResponse(ctx context.Context, body UserOperationsCreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UserOperationsCreateUserResponse, error)

	// UserOperationsDeleteUserWithResponse request
	UserOperationsDeleteUserWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*UserOperationsDeleteUserResponse, error)

	// UserOperationsGetUserWithResponse request
	UserOperationsGetUserWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*UserOperationsGetUserResponse, error)

	// UserOperationsUpdateUserWithBodyWithResponse request with any body
	UserOperationsUpdateUserWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserOperationsUpdateUserResponse, error)

	UserOperationsUpdateUserWithResponse(ctx context.Context, id int32, body UserOperationsUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UserOperationsUpdateUserResponse, error)

	// UserStatusOperationsDeleteUserStatusWithResponse request
	UserStatusOperationsDeleteUserStatusWithResponse(ctx context.Context, userId int32, reqEditors ...RequestEditorFn) (*UserStatusOperationsDeleteUserStatusResponse, error)

	// UserStatusOperationsGetUserStatusWithResponse request
	UserStatusOperationsGetUserStatusWithResponse(ctx context.Context, userId int32, reqEditors ...RequestEditorFn) (*UserStatusOperationsGetUserStatusResponse, error)

	// UserStatusOperationsUpdateUserStatusWithBodyWithResponse request with any body
	UserStatusOperationsUpdateUserStatusWithBodyWithResponse(ctx context.Context, userId int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserStatusOperationsUpdateUserStatusResponse, error)

	UserStatusOperationsUpdateUserStatusWithResponse(ctx context.Context, userId int32, body UserStatusOperationsUpdateUserStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UserStatusOperationsUpdateUserStatusResponse, error)

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

	FormOperationsOpenViewWithResponse(ctx context.Context, body FormOperationsOpenViewJSONRequestBody, reqEditors ...RequestEditorFn) (*FormOperationsOpenViewResponse, error)

	// BotOperationsGetWebhookEventsWithResponse request
	BotOperationsGetWebhookEventsWithResponse(ctx context.Context, params *BotOperationsGetWebhookEventsParams, reqEditors ...RequestEditorFn) (*BotOperationsGetWebhookEventsResponse, error)

	// BotOperationsDeleteWebhookEventWithResponse request
	BotOperationsDeleteWebhookEventWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*BotOperationsDeleteWebhookEventResponse, error)
}

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

type CommonOperationsListPropertiesParams

type CommonOperationsListPropertiesParams struct {
	// EntityType Тип сущности
	EntityType SearchEntityType `form:"entity_type" json:"entity_type"`
}

CommonOperationsListPropertiesParams defines parameters for CommonOperationsListProperties.

type CommonOperationsListPropertiesResponse

type CommonOperationsListPropertiesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data []CustomPropertyDefinition `json:"data"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON422 *ApiError
}

func ParseCommonOperationsListPropertiesResponse

func ParseCommonOperationsListPropertiesResponse(rsp *http.Response) (*CommonOperationsListPropertiesResponse, error)

ParseCommonOperationsListPropertiesResponse parses an HTTP response from a CommonOperationsListPropertiesWithResponse call

func (CommonOperationsListPropertiesResponse) Status

Status returns HTTPResponse.Status

func (CommonOperationsListPropertiesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type CompanyMemberWebhookPayload

type CompanyMemberWebhookPayload struct {
	// CreatedAt Дата и время события (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	CreatedAt time.Time `json:"created_at"`

	// Event Тип события
	Event UserEventType `json:"event"`

	// Type Тип объекта
	Type CompanyMemberWebhookPayloadType `json:"type"`

	// UserIds Массив идентификаторов пользователей, с которыми произошло событие
	UserIds []int32 `json:"user_ids"`

	// WebhookTimestamp Дата и время отправки вебхука (UTC+0) в формате UNIX
	WebhookTimestamp int32 `json:"webhook_timestamp"`
}

CompanyMemberWebhookPayload Структура исходящего вебхука об участниках пространства

type CompanyMemberWebhookPayloadType

type CompanyMemberWebhookPayloadType string

CompanyMemberWebhookPayloadType Тип объекта

const (
	CompanyMember CompanyMemberWebhookPayloadType = "company_member"
)

Defines values for CompanyMemberWebhookPayloadType.

type CustomProperty

type CustomProperty struct {
	// DataType Тип поля
	DataType CustomPropertyDataType `json:"data_type"`

	// Id Идентификатор поля
	Id int32 `json:"id"`

	// Name Название поля
	Name string `json:"name"`

	// Value Значение
	Value string `json:"value"`
}

CustomProperty Дополнительное поле

type CustomPropertyDataType

type CustomPropertyDataType string

CustomPropertyDataType Тип данных дополнительного поля

const (
	CustomPropertyDataTypeDate   CustomPropertyDataType = "date"
	CustomPropertyDataTypeLink   CustomPropertyDataType = "link"
	CustomPropertyDataTypeNumber CustomPropertyDataType = "number"
	CustomPropertyDataTypeString CustomPropertyDataType = "string"
)

Defines values for CustomPropertyDataType.

type CustomPropertyDefinition

type CustomPropertyDefinition struct {
	// DataType Тип поля
	DataType CustomPropertyDataType `json:"data_type"`

	// Id Идентификатор поля
	Id int32 `json:"id"`

	// Name Название поля
	Name string `json:"name"`
}

CustomPropertyDefinition Определение дополнительного поля (без значения)

type DirectUploadOperationsUploadFileMultipartRequestBody

type DirectUploadOperationsUploadFileMultipartRequestBody = FileUploadRequest

DirectUploadOperationsUploadFileMultipartRequestBody defines body for DirectUploadOperationsUploadFile for multipart/form-data ContentType.

type DirectUploadOperationsUploadFileResponse

type DirectUploadOperationsUploadFileResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDirectUploadOperationsUploadFileResponse

func ParseDirectUploadOperationsUploadFileResponse(rsp *http.Response) (*DirectUploadOperationsUploadFileResponse, error)

ParseDirectUploadOperationsUploadFileResponse parses an HTTP response from a DirectUploadOperationsUploadFileWithResponse call

func (DirectUploadOperationsUploadFileResponse) Status

Status returns HTTPResponse.Status

func (DirectUploadOperationsUploadFileResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type EmptyResponse

type EmptyResponse = map[string]interface{}

EmptyResponse При безошибочном выполнении запроса тело ответа отсутствует

type ExportOperationsDownloadExport4031

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

type ExportOperationsDownloadExportResponse

type ExportOperationsDownloadExportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *OAuthError
	JSON403      *struct {
		// contains filtered or unexported fields
	}
	JSON404 *ApiError
}

func ParseExportOperationsDownloadExportResponse

func ParseExportOperationsDownloadExportResponse(rsp *http.Response) (*ExportOperationsDownloadExportResponse, error)

ParseExportOperationsDownloadExportResponse parses an HTTP response from a ExportOperationsDownloadExportWithResponse call

func (ExportOperationsDownloadExportResponse) Status

Status returns HTTPResponse.Status

func (ExportOperationsDownloadExportResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExportOperationsRequestExportJSONRequestBody

type ExportOperationsRequestExportJSONRequestBody = ExportRequest

ExportOperationsRequestExportJSONRequestBody defines body for ExportOperationsRequestExport for application/json ContentType.

type ExportOperationsRequestExportResponse

type ExportOperationsRequestExportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON400      *ApiError
	JSON401      *OAuthError
	JSON403      *struct {
		// contains filtered or unexported fields
	}
	JSON422 *ApiError
}

func ParseExportOperationsRequestExportResponse

func ParseExportOperationsRequestExportResponse(rsp *http.Response) (*ExportOperationsRequestExportResponse, error)

ParseExportOperationsRequestExportResponse parses an HTTP response from a ExportOperationsRequestExportWithResponse call

func (ExportOperationsRequestExportResponse) Status

Status returns HTTPResponse.Status

func (ExportOperationsRequestExportResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExportRequest

type ExportRequest struct {
	// ChatIds Массив идентификаторов чатов. Указывается, если нужно получить сообщения только некоторых чатов.
	ChatIds *[]int32 `json:"chat_ids,omitempty"`

	// EndAt Дата окончания для экспорта (ISO-8601, UTC+0) в формате YYYY-MM-DD
	EndAt openapi_types.Date `json:"end_at"`

	// SkipChatsFile Пропуск формирования файла со списком чатов (chats.json)
	SkipChatsFile *bool `json:"skip_chats_file,omitempty"`

	// StartAt Дата начала для экспорта (ISO-8601, UTC+0) в формате YYYY-MM-DD
	StartAt openapi_types.Date `json:"start_at"`

	// WebhookUrl Адрес, на который будет отправлен вебхук по завершению экспорта
	WebhookUrl string `json:"webhook_url"`
}

ExportRequest Запрос на экспорт сообщений

type File

type File struct {
	// FileType Тип файла
	FileType FileType `json:"file_type"`

	// Height Высота изображения в пикселях
	Height *int32 `json:"height"`

	// Id Идентификатор файла
	Id int32 `json:"id"`

	// Key Путь к файлу
	Key string `json:"key"`

	// Name Название файла с расширением
	Name string `json:"name"`

	// Url Прямая ссылка на скачивание файла
	Url string `json:"url"`

	// Width Ширина изображения в пикселях
	Width *int32 `json:"width"`
}

File Файл

type FileType

type FileType string

FileType Тип файла

const (
	FileTypeFile  FileType = "file"
	FileTypeImage FileType = "image"
)

Defines values for FileType.

type FileUploadRequest

type FileUploadRequest struct {
	// Acl Параметр acl, полученный в ответе на запрос [Получение подписи, ключа и других параметров](POST /uploads)
	Acl string `json:"acl"`

	// ContentDisposition Параметр Content-Disposition, полученный в ответе на запрос [Получение подписи, ключа и других параметров](POST /uploads)
	ContentDisposition string `json:"contentDisposition"`

	// File Файл для загрузки
	File openapi_types.File `json:"file"`

	// Key Параметр key, полученный в ответе на запрос [Получение подписи, ключа и других параметров](POST /uploads)
	Key string `json:"key"`

	// Policy Параметр policy, полученный в ответе на запрос [Получение подписи, ключа и других параметров](POST /uploads)
	Policy string `json:"policy"`

	// XAmzAlgorithm Параметр x-amz-algorithm, полученный в ответе на запрос [Получение подписи, ключа и других параметров](POST /uploads)
	XAmzAlgorithm string `json:"xAmzAlgorithm"`

	// XAmzCredential Параметр x-amz-credential, полученный в ответе на запрос [Получение подписи, ключа и других параметров](POST /uploads)
	XAmzCredential string `json:"xAmzCredential"`

	// XAmzDate Параметр x-amz-date, полученный в ответе на запрос [Получение подписи, ключа и других параметров](POST /uploads)
	XAmzDate string `json:"xAmzDate"`

	// XAmzSignature Параметр x-amz-signature, полученный в ответе на запрос [Получение подписи, ключа и других параметров](POST /uploads)
	XAmzSignature string `json:"xAmzSignature"`
}

FileUploadRequest defines model for FileUploadRequest.

type FormOperationsOpenViewJSONRequestBody

type FormOperationsOpenViewJSONRequestBody = OpenViewRequest

FormOperationsOpenViewJSONRequestBody defines body for FormOperationsOpenView for application/json ContentType.

type FormOperationsOpenViewResponse

type FormOperationsOpenViewResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *EmptyResponse
	JSON400      *ApiError
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON410      *ApiError
	JSON422      *ApiError
}

func ParseFormOperationsOpenViewResponse

func ParseFormOperationsOpenViewResponse(rsp *http.Response) (*FormOperationsOpenViewResponse, error)

ParseFormOperationsOpenViewResponse parses an HTTP response from a FormOperationsOpenViewWithResponse call

func (FormOperationsOpenViewResponse) Status

Status returns HTTPResponse.Status

func (FormOperationsOpenViewResponse) StatusCode

func (r FormOperationsOpenViewResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Forwarding

type Forwarding struct {
	// AuthorId Идентификатор пользователя, создавшего оригинальное сообщение
	AuthorId int32 `json:"author_id"`

	// OriginalChatId Идентификатор чата, в котором находится оригинальное сообщение
	OriginalChatId int32 `json:"original_chat_id"`

	// OriginalCreatedAt Дата и время создания оригинального сообщения (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	OriginalCreatedAt time.Time `json:"original_created_at"`

	// OriginalMessageId Идентификатор оригинального сообщения
	OriginalMessageId int32 `json:"original_message_id"`

	// OriginalThreadId Идентификатор треда, в котором находится оригинальное сообщение
	OriginalThreadId *int32 `json:"original_thread_id"`

	// OriginalThreadMessageId Идентификатор сообщения, к которому был создан тред, в котором находится оригинальное сообщение
	OriginalThreadMessageId *int32 `json:"original_thread_message_id"`

	// OriginalThreadParentChatId Идентификатор чата сообщения, к которому был создан тред, в котором находится оригинальное сообщение
	OriginalThreadParentChatId *int32 `json:"original_thread_parent_chat_id"`
}

Forwarding Информация о пересланном сообщении

type GroupTag

type GroupTag struct {
	// Id Идентификатор тега
	Id int32 `json:"id"`

	// Name Название тега
	Name string `json:"name"`

	// UsersCount Количество сотрудников, которые имеют этот тег
	UsersCount int32 `json:"users_count"`
}

GroupTag Тег

type GroupTagOperationsCreateTagJSONRequestBody

type GroupTagOperationsCreateTagJSONRequestBody = GroupTagRequest

GroupTagOperationsCreateTagJSONRequestBody defines body for GroupTagOperationsCreateTag for application/json ContentType.

type GroupTagOperationsCreateTagResponse

type GroupTagOperationsCreateTagResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		// Data Тег
		Data GroupTag `json:"data"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON422 *ApiError
}

func ParseGroupTagOperationsCreateTagResponse

func ParseGroupTagOperationsCreateTagResponse(rsp *http.Response) (*GroupTagOperationsCreateTagResponse, error)

ParseGroupTagOperationsCreateTagResponse parses an HTTP response from a GroupTagOperationsCreateTagWithResponse call

func (GroupTagOperationsCreateTagResponse) Status

Status returns HTTPResponse.Status

func (GroupTagOperationsCreateTagResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GroupTagOperationsDeleteTagResponse

type GroupTagOperationsDeleteTagResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
}

func ParseGroupTagOperationsDeleteTagResponse

func ParseGroupTagOperationsDeleteTagResponse(rsp *http.Response) (*GroupTagOperationsDeleteTagResponse, error)

ParseGroupTagOperationsDeleteTagResponse parses an HTTP response from a GroupTagOperationsDeleteTagWithResponse call

func (GroupTagOperationsDeleteTagResponse) Status

Status returns HTTPResponse.Status

func (GroupTagOperationsDeleteTagResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GroupTagOperationsGetTagResponse

type GroupTagOperationsGetTagResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Тег
		Data GroupTag `json:"data"`
	}
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
}

func ParseGroupTagOperationsGetTagResponse

func ParseGroupTagOperationsGetTagResponse(rsp *http.Response) (*GroupTagOperationsGetTagResponse, error)

ParseGroupTagOperationsGetTagResponse parses an HTTP response from a GroupTagOperationsGetTagWithResponse call

func (GroupTagOperationsGetTagResponse) Status

Status returns HTTPResponse.Status

func (GroupTagOperationsGetTagResponse) StatusCode

func (r GroupTagOperationsGetTagResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GroupTagOperationsGetTagUsersParams

type GroupTagOperationsGetTagUsersParams struct {
	// Limit Количество возвращаемых сущностей за один запрос
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Курсор для пагинации (из `meta.paginate.next_page`)
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GroupTagOperationsGetTagUsersParams defines parameters for GroupTagOperationsGetTagUsers.

type GroupTagOperationsGetTagUsersResponse

type GroupTagOperationsGetTagUsersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data []User `json:"data"`

		// Meta Метаданные пагинации
		Meta *PaginationMeta `json:"meta,omitempty"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
	JSON422 *ApiError
}

func ParseGroupTagOperationsGetTagUsersResponse

func ParseGroupTagOperationsGetTagUsersResponse(rsp *http.Response) (*GroupTagOperationsGetTagUsersResponse, error)

ParseGroupTagOperationsGetTagUsersResponse parses an HTTP response from a GroupTagOperationsGetTagUsersWithResponse call

func (GroupTagOperationsGetTagUsersResponse) Status

Status returns HTTPResponse.Status

func (GroupTagOperationsGetTagUsersResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GroupTagOperationsListTagsParams

type GroupTagOperationsListTagsParams struct {
	// Names Массив названий тегов, по которым вы хотите отфильтровать список
	Names *TagNamesFilter `form:"names,omitempty" json:"names,omitempty"`

	// Limit Количество возвращаемых сущностей за один запрос
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Курсор для пагинации (из `meta.paginate.next_page`)
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GroupTagOperationsListTagsParams defines parameters for GroupTagOperationsListTags.

type GroupTagOperationsListTagsResponse

type GroupTagOperationsListTagsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data []GroupTag `json:"data"`

		// Meta Метаданные пагинации
		Meta *PaginationMeta `json:"meta,omitempty"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON422 *ApiError
}

func ParseGroupTagOperationsListTagsResponse

func ParseGroupTagOperationsListTagsResponse(rsp *http.Response) (*GroupTagOperationsListTagsResponse, error)

ParseGroupTagOperationsListTagsResponse parses an HTTP response from a GroupTagOperationsListTagsWithResponse call

func (GroupTagOperationsListTagsResponse) Status

Status returns HTTPResponse.Status

func (GroupTagOperationsListTagsResponse) StatusCode

func (r GroupTagOperationsListTagsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GroupTagOperationsUpdateTagJSONRequestBody

type GroupTagOperationsUpdateTagJSONRequestBody = GroupTagRequest

GroupTagOperationsUpdateTagJSONRequestBody defines body for GroupTagOperationsUpdateTag for application/json ContentType.

type GroupTagOperationsUpdateTagResponse

type GroupTagOperationsUpdateTagResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Тег
		Data GroupTag `json:"data"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
	JSON422 *ApiError
}

func ParseGroupTagOperationsUpdateTagResponse

func ParseGroupTagOperationsUpdateTagResponse(rsp *http.Response) (*GroupTagOperationsUpdateTagResponse, error)

ParseGroupTagOperationsUpdateTagResponse parses an HTTP response from a GroupTagOperationsUpdateTagWithResponse call

func (GroupTagOperationsUpdateTagResponse) Status

Status returns HTTPResponse.Status

func (GroupTagOperationsUpdateTagResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GroupTagRequest

type GroupTagRequest struct {
	GroupTag struct {
		// Name Название тега
		Name string `json:"name"`
	} `json:"group_tag"`
}

GroupTagRequest Запрос на создание или редактирование тега

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InviteStatus

type InviteStatus string

InviteStatus Статус приглашения пользователя

const (
	Confirmed InviteStatus = "confirmed"
	Sent      InviteStatus = "sent"
)

Defines values for InviteStatus.

type LinkPreview

type LinkPreview struct {
	// Description Описание
	Description string `json:"description"`

	// Image Изображение
	Image *struct {
		// Key Путь к изображению, полученный в результате [загрузки файла](POST /direct_url)
		Key string `json:"key"`

		// Name Название изображения (рекомендуется писать вместе с расширением)
		Name string `json:"name"`

		// Size Размер изображения в байтах
		Size int32 `json:"size"`
	} `json:"image,omitempty"`

	// ImageUrl Публичная ссылка на изображение (если вы хотите загрузить файл изображения в Пачку, то используйте параметр image)
	ImageUrl *string `json:"image_url,omitempty"`

	// Title Заголовок
	Title string `json:"title"`
}

LinkPreview Данные для предпросмотра ссылки

type LinkPreviewOperationsCreateLinkPreviewsJSONRequestBody

type LinkPreviewOperationsCreateLinkPreviewsJSONRequestBody = LinkPreviewsRequest

LinkPreviewOperationsCreateLinkPreviewsJSONRequestBody defines body for LinkPreviewOperationsCreateLinkPreviews for application/json ContentType.

type LinkPreviewOperationsCreateLinkPreviewsResponse

type LinkPreviewOperationsCreateLinkPreviewsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON400      *ApiError
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
	JSON422      *ApiError
}

func ParseLinkPreviewOperationsCreateLinkPreviewsResponse

func ParseLinkPreviewOperationsCreateLinkPreviewsResponse(rsp *http.Response) (*LinkPreviewOperationsCreateLinkPreviewsResponse, error)

ParseLinkPreviewOperationsCreateLinkPreviewsResponse parses an HTTP response from a LinkPreviewOperationsCreateLinkPreviewsWithResponse call

func (LinkPreviewOperationsCreateLinkPreviewsResponse) Status

Status returns HTTPResponse.Status

func (LinkPreviewOperationsCreateLinkPreviewsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type LinkPreviewsRequest

type LinkPreviewsRequest struct {
	// LinkPreviews `JSON` карта предпросмотров ссылок, где каждый ключ — `URL`, который был получен в исходящем вебхуке о новом сообщении.
	LinkPreviews map[string]LinkPreview `json:"link_previews"`
}

LinkPreviewsRequest Запрос на разворачивание ссылок

type LinkSharedWebhookPayload

type LinkSharedWebhookPayload struct {
	// ChatId Идентификатор чата, в котором обнаружена ссылка
	ChatId int32 `json:"chat_id"`

	// CreatedAt Дата и время создания сообщения (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	CreatedAt time.Time `json:"created_at"`

	// Event Тип события
	Event LinkSharedWebhookPayloadEvent `json:"event"`

	// Links Массив обнаруженных ссылок на отслеживаемые домены
	Links []WebhookLink `json:"links"`

	// MessageId Идентификатор сообщения, содержащего ссылку
	MessageId int32 `json:"message_id"`

	// Type Тип объекта
	Type LinkSharedWebhookPayloadType `json:"type"`

	// WebhookTimestamp Дата и время отправки вебхука (UTC+0) в формате UNIX
	WebhookTimestamp int32 `json:"webhook_timestamp"`
}

LinkSharedWebhookPayload Структура исходящего вебхука о разворачивании ссылок

type LinkSharedWebhookPayloadEvent

type LinkSharedWebhookPayloadEvent string

LinkSharedWebhookPayloadEvent Тип события

const (
	LinkShared LinkSharedWebhookPayloadEvent = "link_shared"
)

Defines values for LinkSharedWebhookPayloadEvent.

type LinkSharedWebhookPayloadType

type LinkSharedWebhookPayloadType string

LinkSharedWebhookPayloadType Тип объекта

const (
	LinkSharedWebhookPayloadTypeMessage LinkSharedWebhookPayloadType = "message"
)

Defines values for LinkSharedWebhookPayloadType.

type MemberEventType

type MemberEventType string

MemberEventType Тип события webhook для участников

const (
	Add    MemberEventType = "add"
	Remove MemberEventType = "remove"
)

Defines values for MemberEventType.

type Message

type Message struct {
	// Buttons Массив строк, каждая из которых представлена массивом кнопок
	Buttons [][]Button `json:"buttons"`

	// ChatId Идентификатор чата, в котором находится сообщение
	ChatId int32 `json:"chat_id"`

	// Content Текст сообщения
	Content string `json:"content"`

	// CreatedAt Дата и время создания сообщения (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	CreatedAt time.Time `json:"created_at"`

	// DisplayAvatarUrl Ссылка на аватарку отправителя сообщения
	DisplayAvatarUrl *string `json:"display_avatar_url"`

	// DisplayName Полное имя отправителя сообщения
	DisplayName *string `json:"display_name"`

	// EntityId Идентификатор сущности, к которой относится сообщение (беседы/канала, треда или пользователя)
	EntityId int32 `json:"entity_id"`

	// EntityType Тип сущности, к которой относится сообщение
	EntityType MessageEntityType `json:"entity_type"`

	// Files Прикрепленные файлы
	Files []File `json:"files"`

	// Forwarding Информация о пересланном сообщении
	Forwarding *Forwarding `json:"forwarding"`

	// Id Идентификатор сообщения
	Id int32 `json:"id"`

	// ParentMessageId Идентификатор сообщения, к которому написан ответ
	ParentMessageId *int32 `json:"parent_message_id"`

	// Thread Тред сообщения
	Thread *Thread `json:"thread"`

	// Url Прямая ссылка на сообщение
	Url string `json:"url"`

	// UserId Идентификатор пользователя, создавшего сообщение
	UserId int32 `json:"user_id"`
}

Message Сообщение

type MessageCreateRequest

type MessageCreateRequest struct {
	// Message Собранный объект параметров создаваемого сообщения
	Message struct {
		// Buttons Массив строк, каждая из которых представлена массивом кнопок. Максимум 100 кнопок у сообщения, до 8 кнопок в строке.
		Buttons *[][]Button `json:"buttons,omitempty"`

		// Content Текст сообщения
		Content string `json:"content"`

		// DisplayAvatarUrl Ссылка на специальную аватарку отправителя для этого сообщения. Использование этого поля возможно только с access_token бота.
		DisplayAvatarUrl *string `json:"display_avatar_url,omitempty"`

		// DisplayName Полное специальное имя отправителя для этого сообщения. Использование этого поля возможно только с access_token бота.
		DisplayName *string `json:"display_name,omitempty"`

		// EntityId Идентификатор сущности
		EntityId int32 `json:"entity_id"`

		// EntityType Тип сущности
		EntityType *MessageEntityType `json:"entity_type,omitempty"`

		// Files Прикрепляемые файлы
		Files *[]struct {
			// FileType Тип файла
			FileType MessageCreateRequestMessageFilesFileType `json:"file_type"`

			// Height Высота изображения в px (используется в случае, если file_type указан как image)
			Height *int32 `json:"height,omitempty"`

			// Key Путь к файлу, полученный в результате [загрузки файла](POST /direct_url)
			Key string `json:"key"`

			// Name Название файла, которое вы хотите отображать пользователю (рекомендуется писать вместе с расширением)
			Name string `json:"name"`

			// Size Размер файла в байтах, отображаемый пользователю
			Size int32 `json:"size"`

			// Width Ширина изображения в px (используется в случае, если file_type указан как image)
			Width *int32 `json:"width,omitempty"`
		} `json:"files,omitempty"`

		// LinkPreview Отображение предпросмотра первой найденной ссылки в тексте сообщения
		LinkPreview *bool `json:"link_preview,omitempty"`

		// ParentMessageId Идентификатор сообщения. Указывается в случае, если вы отправляете ответ на другое сообщение.
		ParentMessageId *int32 `json:"parent_message_id,omitempty"`

		// SkipInviteMentions Пропуск добавления упоминаемых пользователей в тред. Работает только при отправке сообщения в тред.
		SkipInviteMentions *bool `json:"skip_invite_mentions,omitempty"`
	} `json:"message"`
}

MessageCreateRequest Запрос на создание сообщения

type MessageCreateRequestMessageFilesFileType

type MessageCreateRequestMessageFilesFileType string

MessageCreateRequestMessageFilesFileType Тип файла

const (
	MessageCreateRequestMessageFilesFileTypeFile  MessageCreateRequestMessageFilesFileType = "file"
	MessageCreateRequestMessageFilesFileTypeImage MessageCreateRequestMessageFilesFileType = "image"
)

Defines values for MessageCreateRequestMessageFilesFileType.

type MessageEntityType

type MessageEntityType string

MessageEntityType Тип сущности для сообщений

const (
	MessageEntityTypeDiscussion MessageEntityType = "discussion"
	MessageEntityTypeThread     MessageEntityType = "thread"
	MessageEntityTypeUser       MessageEntityType = "user"
)

Defines values for MessageEntityType.

type MessageOperationsCreateMessageJSONRequestBody

type MessageOperationsCreateMessageJSONRequestBody = MessageCreateRequest

MessageOperationsCreateMessageJSONRequestBody defines body for MessageOperationsCreateMessage for application/json ContentType.

type MessageOperationsCreateMessageResponse

type MessageOperationsCreateMessageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		// Data Сообщение
		Data Message `json:"data"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON422 *ApiError
}

func ParseMessageOperationsCreateMessageResponse

func ParseMessageOperationsCreateMessageResponse(rsp *http.Response) (*MessageOperationsCreateMessageResponse, error)

ParseMessageOperationsCreateMessageResponse parses an HTTP response from a MessageOperationsCreateMessageWithResponse call

func (MessageOperationsCreateMessageResponse) Status

Status returns HTTPResponse.Status

func (MessageOperationsCreateMessageResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type MessageOperationsDeleteMessageResponse

type MessageOperationsDeleteMessageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
}

func ParseMessageOperationsDeleteMessageResponse

func ParseMessageOperationsDeleteMessageResponse(rsp *http.Response) (*MessageOperationsDeleteMessageResponse, error)

ParseMessageOperationsDeleteMessageResponse parses an HTTP response from a MessageOperationsDeleteMessageWithResponse call

func (MessageOperationsDeleteMessageResponse) Status

Status returns HTTPResponse.Status

func (MessageOperationsDeleteMessageResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type MessageOperationsGetMessageResponse

type MessageOperationsGetMessageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Сообщение
		Data Message `json:"data"`
	}
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
}

func ParseMessageOperationsGetMessageResponse

func ParseMessageOperationsGetMessageResponse(rsp *http.Response) (*MessageOperationsGetMessageResponse, error)

ParseMessageOperationsGetMessageResponse parses an HTTP response from a MessageOperationsGetMessageWithResponse call

func (MessageOperationsGetMessageResponse) Status

Status returns HTTPResponse.Status

func (MessageOperationsGetMessageResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type MessageOperationsPinMessageResponse

type MessageOperationsPinMessageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *EmptyResponse
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
	JSON409      *ApiError
}

func ParseMessageOperationsPinMessageResponse

func ParseMessageOperationsPinMessageResponse(rsp *http.Response) (*MessageOperationsPinMessageResponse, error)

ParseMessageOperationsPinMessageResponse parses an HTTP response from a MessageOperationsPinMessageWithResponse call

func (MessageOperationsPinMessageResponse) Status

Status returns HTTPResponse.Status

func (MessageOperationsPinMessageResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type MessageOperationsUnpinMessageResponse

type MessageOperationsUnpinMessageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
}

func ParseMessageOperationsUnpinMessageResponse

func ParseMessageOperationsUnpinMessageResponse(rsp *http.Response) (*MessageOperationsUnpinMessageResponse, error)

ParseMessageOperationsUnpinMessageResponse parses an HTTP response from a MessageOperationsUnpinMessageWithResponse call

func (MessageOperationsUnpinMessageResponse) Status

Status returns HTTPResponse.Status

func (MessageOperationsUnpinMessageResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type MessageOperationsUpdateMessageJSONRequestBody

type MessageOperationsUpdateMessageJSONRequestBody = MessageUpdateRequest

MessageOperationsUpdateMessageJSONRequestBody defines body for MessageOperationsUpdateMessage for application/json ContentType.

type MessageOperationsUpdateMessageResponse

type MessageOperationsUpdateMessageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Сообщение
		Data Message `json:"data"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
	JSON422 *ApiError
}

func ParseMessageOperationsUpdateMessageResponse

func ParseMessageOperationsUpdateMessageResponse(rsp *http.Response) (*MessageOperationsUpdateMessageResponse, error)

ParseMessageOperationsUpdateMessageResponse parses an HTTP response from a MessageOperationsUpdateMessageWithResponse call

func (MessageOperationsUpdateMessageResponse) Status

Status returns HTTPResponse.Status

func (MessageOperationsUpdateMessageResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type MessageUpdateRequest

type MessageUpdateRequest struct {
	// Message Собранный объект параметров редактируемого сообщения
	Message struct {
		// Buttons Массив строк, каждая из которых представлена массивом кнопок. Максимум 100 кнопок у сообщения, до 8 кнопок в строке. Для удаления кнопок пришлите пустой массив.
		Buttons *[][]Button `json:"buttons,omitempty"`

		// Content Текст сообщения
		Content *string `json:"content,omitempty"`

		// DisplayAvatarUrl Ссылка на специальную аватарку отправителя для этого сообщения. Использование этого поля возможно только с access_token бота.
		DisplayAvatarUrl *string `json:"display_avatar_url,omitempty"`

		// DisplayName Полное специальное имя отправителя для этого сообщения. Использование этого поля возможно только с access_token бота.
		DisplayName *string `json:"display_name,omitempty"`

		// Files Прикрепляемые файлы
		Files *[]struct {
			// FileType Тип файла: файл (file), изображение (image)
			FileType *string `json:"file_type,omitempty"`

			// Height Высота изображения в px (используется в случае, если file_type указан как image)
			Height *int32 `json:"height,omitempty"`

			// Key Путь к файлу, полученный в результате [загрузки файла](POST /direct_url)
			Key string `json:"key"`

			// Name Название файла, которое вы хотите отображать пользователю (рекомендуется писать вместе с расширением)
			Name string `json:"name"`

			// Size Размер файла в байтах, отображаемый пользователю
			Size *int32 `json:"size,omitempty"`

			// Width Ширина изображения в px (используется в случае, если file_type указан как image)
			Width *int32 `json:"width,omitempty"`
		} `json:"files,omitempty"`
	} `json:"message"`
}

MessageUpdateRequest Запрос на редактирование сообщения

type MessageWebhookPayload

type MessageWebhookPayload struct {
	// ChatId Идентификатор чата, в котором находится сообщение
	ChatId int32 `json:"chat_id"`

	// Content Текст сообщения
	Content string `json:"content"`

	// CreatedAt Дата и время создания сообщения (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	CreatedAt time.Time `json:"created_at"`

	// EntityId Идентификатор сущности, к которой относится сообщение
	EntityId int32 `json:"entity_id"`

	// EntityType Тип сущности, к которой относится сообщение
	EntityType MessageEntityType `json:"entity_type"`

	// Event Тип события
	Event WebhookEventType `json:"event"`

	// Id Идентификатор сообщения
	Id int32 `json:"id"`

	// ParentMessageId Идентификатор сообщения, к которому написан ответ
	ParentMessageId *int32 `json:"parent_message_id"`

	// Thread Объект с параметрами треда
	Thread *WebhookMessageThread `json:"thread"`

	// Type Тип объекта
	Type MessageWebhookPayloadType `json:"type"`

	// Url Прямая ссылка на сообщение
	Url string `json:"url"`

	// UserId Идентификатор отправителя сообщения
	UserId int32 `json:"user_id"`

	// WebhookTimestamp Дата и время отправки вебхука (UTC+0) в формате UNIX
	WebhookTimestamp int32 `json:"webhook_timestamp"`
}

MessageWebhookPayload Структура исходящего вебхука о сообщении

type MessageWebhookPayloadType

type MessageWebhookPayloadType string

MessageWebhookPayloadType Тип объекта

const (
	MessageWebhookPayloadTypeMessage MessageWebhookPayloadType = "message"
)

Defines values for MessageWebhookPayloadType.

type OAuthError

type OAuthError struct {
	// Error Код ошибки
	Error string `json:"error"`

	// ErrorDescription Описание ошибки
	ErrorDescription string `json:"error_description"`
}

OAuthError Ошибка OAuth авторизации (используется для 401 и 403)

type OAuthOperationsGetTokenInfoResponse

type OAuthOperationsGetTokenInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Информация о текущем OAuth токене
		Data AccessTokenInfo `json:"data"`
	}
	JSON401 *OAuthError
}

func ParseOAuthOperationsGetTokenInfoResponse

func ParseOAuthOperationsGetTokenInfoResponse(rsp *http.Response) (*OAuthOperationsGetTokenInfoResponse, error)

ParseOAuthOperationsGetTokenInfoResponse parses an HTTP response from a OAuthOperationsGetTokenInfoWithResponse call

func (OAuthOperationsGetTokenInfoResponse) Status

Status returns HTTPResponse.Status

func (OAuthOperationsGetTokenInfoResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type OAuthScope

type OAuthScope string

OAuthScope Скоуп доступа OAuth токена

const (
	AuditEventsRead      OAuthScope = "audit_events:read"
	BotsWrite            OAuthScope = "bots:write"
	ChatExportsRead      OAuthScope = "chat_exports:read"
	ChatExportsWrite     OAuthScope = "chat_exports:write"
	ChatMembersRead      OAuthScope = "chat_members:read"
	ChatMembersWrite     OAuthScope = "chat_members:write"
	ChatsArchive         OAuthScope = "chats:archive"
	ChatsCreate          OAuthScope = "chats:create"
	ChatsLeave           OAuthScope = "chats:leave"
	ChatsRead            OAuthScope = "chats:read"
	ChatsUpdate          OAuthScope = "chats:update"
	CustomPropertiesRead OAuthScope = "custom_properties:read"
	FilesRead            OAuthScope = "files:read"
	FilesWrite           OAuthScope = "files:write"
	GroupTagsRead        OAuthScope = "group_tags:read"
	GroupTagsWrite       OAuthScope = "group_tags:write"
	LinkPreviewsWrite    OAuthScope = "link_previews:write"
	MessagesCreate       OAuthScope = "messages:create"
	MessagesDelete       OAuthScope = "messages:delete"
	MessagesRead         OAuthScope = "messages:read"
	MessagesUpdate       OAuthScope = "messages:update"
	PinsWrite            OAuthScope = "pins:write"
	ProfileRead          OAuthScope = "profile:read"
	ProfileStatusRead    OAuthScope = "profile_status:read"
	ProfileStatusWrite   OAuthScope = "profile_status:write"
	ReactionsRead        OAuthScope = "reactions:read"
	ReactionsWrite       OAuthScope = "reactions:write"
	TasksCreate          OAuthScope = "tasks:create"
	TasksDelete          OAuthScope = "tasks:delete"
	TasksRead            OAuthScope = "tasks:read"
	TasksUpdate          OAuthScope = "tasks:update"
	ThreadsCreate        OAuthScope = "threads:create"
	ThreadsRead          OAuthScope = "threads:read"
	UploadsWrite         OAuthScope = "uploads:write"
	UserStatusRead       OAuthScope = "user_status:read"
	UserStatusWrite      OAuthScope = "user_status:write"
	UsersCreate          OAuthScope = "users:create"
	UsersDelete          OAuthScope = "users:delete"
	UsersRead            OAuthScope = "users:read"
	UsersUpdate          OAuthScope = "users:update"
	ViewsWrite           OAuthScope = "views:write"
	WebhooksEventsDelete OAuthScope = "webhooks:events:delete"
	WebhooksEventsRead   OAuthScope = "webhooks:events:read"
	WebhooksRead         OAuthScope = "webhooks:read"
	WebhooksWrite        OAuthScope = "webhooks:write"
)

Defines values for OAuthScope.

type OpenViewRequest

type OpenViewRequest struct {
	// CallbackId Необязательный идентификатор для распознавания этого представления, который будет отправлен в ваше приложение при отправке пользователем заполненной формы. Используйте это поле, например, для понимания, какую форму должен был заполнить пользователь.
	CallbackId *string `json:"callback_id,omitempty"`

	// PrivateMetadata Необязательная строка, которая будет отправлена в ваше приложение при отправке пользователем заполненной формы. Используйте это поле, например, для передачи в формате `JSON` какой то дополнительной информации вместе с заполненной пользователем формой.
	PrivateMetadata *string `json:"private_metadata,omitempty"`

	// TriggerId Уникальный идентификатор события (полученный, например, в исходящем вебхуке о нажатии кнопки)
	TriggerId string `json:"trigger_id"`

	// Type Способ открытия представления
	Type OpenViewRequestType `json:"type"`

	// View Собранный объект представления
	View struct {
		// Blocks Массив блоков представления
		Blocks []ViewBlockUnion `json:"blocks"`

		// CloseText Текст кнопки закрытия представления
		CloseText *string `json:"close_text,omitempty"`

		// SubmitText Текст кнопки отправки формы
		SubmitText *string `json:"submit_text,omitempty"`

		// Title Заголовок представления
		Title string `json:"title"`
	} `json:"view"`
}

OpenViewRequest Запрос на открытие представления

type OpenViewRequestType

type OpenViewRequestType string

OpenViewRequestType Способ открытия представления

const (
	Modal OpenViewRequestType = "modal"
)

Defines values for OpenViewRequestType.

type PaginationMeta

type PaginationMeta struct {
	// Paginate Вспомогательная информация
	Paginate *struct {
		// NextPage Курсор пагинации следующей страницы
		NextPage *string `json:"next_page,omitempty"`
	} `json:"paginate,omitempty"`
}

PaginationMeta Метаданные пагинации

type ProfileOperationsDeleteStatusResponse

type ProfileOperationsDeleteStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON401      *OAuthError
	JSON403      *OAuthError
}

func ParseProfileOperationsDeleteStatusResponse

func ParseProfileOperationsDeleteStatusResponse(rsp *http.Response) (*ProfileOperationsDeleteStatusResponse, error)

ParseProfileOperationsDeleteStatusResponse parses an HTTP response from a ProfileOperationsDeleteStatusWithResponse call

func (ProfileOperationsDeleteStatusResponse) Status

Status returns HTTPResponse.Status

func (ProfileOperationsDeleteStatusResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ProfileOperationsGetProfileResponse

type ProfileOperationsGetProfileResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Сотрудник
		Data User `json:"data"`
	}
	JSON401 *OAuthError
	JSON403 *OAuthError
}

func ParseProfileOperationsGetProfileResponse

func ParseProfileOperationsGetProfileResponse(rsp *http.Response) (*ProfileOperationsGetProfileResponse, error)

ParseProfileOperationsGetProfileResponse parses an HTTP response from a ProfileOperationsGetProfileWithResponse call

func (ProfileOperationsGetProfileResponse) Status

Status returns HTTPResponse.Status

func (ProfileOperationsGetProfileResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ProfileOperationsGetStatusResponse

type ProfileOperationsGetStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data *UserStatus `json:"data"`
	}
	JSON401 *OAuthError
	JSON403 *OAuthError
}

func ParseProfileOperationsGetStatusResponse

func ParseProfileOperationsGetStatusResponse(rsp *http.Response) (*ProfileOperationsGetStatusResponse, error)

ParseProfileOperationsGetStatusResponse parses an HTTP response from a ProfileOperationsGetStatusWithResponse call

func (ProfileOperationsGetStatusResponse) Status

Status returns HTTPResponse.Status

func (ProfileOperationsGetStatusResponse) StatusCode

func (r ProfileOperationsGetStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ProfileOperationsUpdateStatusJSONRequestBody

type ProfileOperationsUpdateStatusJSONRequestBody = StatusUpdateRequest

ProfileOperationsUpdateStatusJSONRequestBody defines body for ProfileOperationsUpdateStatus for application/json ContentType.

type ProfileOperationsUpdateStatusResponse

type ProfileOperationsUpdateStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Статус пользователя
		Data UserStatus `json:"data"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON422 *ApiError
}

func ParseProfileOperationsUpdateStatusResponse

func ParseProfileOperationsUpdateStatusResponse(rsp *http.Response) (*ProfileOperationsUpdateStatusResponse, error)

ParseProfileOperationsUpdateStatusResponse parses an HTTP response from a ProfileOperationsUpdateStatusWithResponse call

func (ProfileOperationsUpdateStatusResponse) Status

Status returns HTTPResponse.Status

func (ProfileOperationsUpdateStatusResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type Reaction

type Reaction struct {
	// Code Emoji символ реакции
	Code string `json:"code"`

	// CreatedAt Дата и время добавления реакции (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	CreatedAt time.Time `json:"created_at"`

	// Name Название emoji реакции
	Name *string `json:"name,omitempty"`

	// UserId Идентификатор пользователя, который добавил реакцию
	UserId int32 `json:"user_id"`
}

Reaction Реакция на сообщение

type ReactionEventType

type ReactionEventType string

ReactionEventType Тип события webhook для реакций

const (
	ReactionEventTypeDelete ReactionEventType = "delete"
	ReactionEventTypeNew    ReactionEventType = "new"
)

Defines values for ReactionEventType.

type ReactionOperationsAddReactionJSONRequestBody

type ReactionOperationsAddReactionJSONRequestBody = ReactionRequest

ReactionOperationsAddReactionJSONRequestBody defines body for ReactionOperationsAddReaction for application/json ContentType.

type ReactionOperationsAddReactionResponse

type ReactionOperationsAddReactionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Reaction
	JSON400      *ApiError
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
	JSON422      *ApiError
}

func ParseReactionOperationsAddReactionResponse

func ParseReactionOperationsAddReactionResponse(rsp *http.Response) (*ReactionOperationsAddReactionResponse, error)

ParseReactionOperationsAddReactionResponse parses an HTTP response from a ReactionOperationsAddReactionWithResponse call

func (ReactionOperationsAddReactionResponse) Status

Status returns HTTPResponse.Status

func (ReactionOperationsAddReactionResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ReactionOperationsListReactionsParams

type ReactionOperationsListReactionsParams struct {
	// Limit Количество возвращаемых сущностей за один запрос
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Курсор для пагинации (из `meta.paginate.next_page`)
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ReactionOperationsListReactionsParams defines parameters for ReactionOperationsListReactions.

type ReactionOperationsListReactionsResponse

type ReactionOperationsListReactionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data []Reaction `json:"data"`

		// Meta Метаданные пагинации
		Meta *PaginationMeta `json:"meta,omitempty"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
	JSON422 *ApiError
}

func ParseReactionOperationsListReactionsResponse

func ParseReactionOperationsListReactionsResponse(rsp *http.Response) (*ReactionOperationsListReactionsResponse, error)

ParseReactionOperationsListReactionsResponse parses an HTTP response from a ReactionOperationsListReactionsWithResponse call

func (ReactionOperationsListReactionsResponse) Status

Status returns HTTPResponse.Status

func (ReactionOperationsListReactionsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ReactionOperationsRemoveReactionParams

type ReactionOperationsRemoveReactionParams struct {
	// Code Emoji символ реакции
	Code string `form:"code" json:"code"`

	// Name Текстовое имя эмодзи (используется для кастомных эмодзи)
	Name *string `form:"name,omitempty" json:"name,omitempty"`
}

ReactionOperationsRemoveReactionParams defines parameters for ReactionOperationsRemoveReaction.

type ReactionOperationsRemoveReactionResponse

type ReactionOperationsRemoveReactionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON400      *ApiError
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
	JSON422      *ApiError
}

func ParseReactionOperationsRemoveReactionResponse

func ParseReactionOperationsRemoveReactionResponse(rsp *http.Response) (*ReactionOperationsRemoveReactionResponse, error)

ParseReactionOperationsRemoveReactionResponse parses an HTTP response from a ReactionOperationsRemoveReactionWithResponse call

func (ReactionOperationsRemoveReactionResponse) Status

Status returns HTTPResponse.Status

func (ReactionOperationsRemoveReactionResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ReactionRequest

type ReactionRequest struct {
	// Code Emoji символ реакции
	Code string `json:"code"`

	// Name Текстовое имя эмодзи (используется для кастомных эмодзи)
	Name *string `json:"name,omitempty"`
}

ReactionRequest Запрос на добавление реакции

type ReactionWebhookPayload

type ReactionWebhookPayload struct {
	// Code Emoji символ реакции
	Code string `json:"code"`

	// CreatedAt Дата и время создания сообщения (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	CreatedAt time.Time `json:"created_at"`

	// Event Тип события
	Event ReactionEventType `json:"event"`

	// MessageId Идентификатор сообщения, к которому относится реакция
	MessageId int32 `json:"message_id"`

	// Name Название реакции
	Name string `json:"name"`

	// Type Тип объекта
	Type ReactionWebhookPayloadType `json:"type"`

	// UserId Идентификатор пользователя, который добавил или удалил реакцию
	UserId int32 `json:"user_id"`

	// WebhookTimestamp Дата и время отправки вебхука (UTC+0) в формате UNIX
	WebhookTimestamp int32 `json:"webhook_timestamp"`
}

ReactionWebhookPayload Структура исходящего вебхука о реакции

type ReactionWebhookPayloadType

type ReactionWebhookPayloadType string

ReactionWebhookPayloadType Тип объекта

const (
	ReactionWebhookPayloadTypeReaction ReactionWebhookPayloadType = "reaction"
)

Defines values for ReactionWebhookPayloadType.

type ReadMemberOperationsListReadMembersParams

type ReadMemberOperationsListReadMembersParams struct {
	// Limit Количество возвращаемых сущностей за один запрос
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Курсор для пагинации (из `meta.paginate.next_page`)
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ReadMemberOperationsListReadMembersParams defines parameters for ReadMemberOperationsListReadMembers.

type ReadMemberOperationsListReadMembersResponse

type ReadMemberOperationsListReadMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data []int32 `json:"data"`

		// Meta Метаданные пагинации
		Meta *PaginationMeta `json:"meta,omitempty"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
	JSON422 *ApiError
}

func ParseReadMemberOperationsListReadMembersResponse

func ParseReadMemberOperationsListReadMembersResponse(rsp *http.Response) (*ReadMemberOperationsListReadMembersResponse, error)

ParseReadMemberOperationsListReadMembersResponse parses an HTTP response from a ReadMemberOperationsListReadMembersWithResponse call

func (ReadMemberOperationsListReadMembersResponse) Status

Status returns HTTPResponse.Status

func (ReadMemberOperationsListReadMembersResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type SearchEntityType

type SearchEntityType string

SearchEntityType Тип сущности для поиска

const (
	SearchEntityTypeTask SearchEntityType = "Task"
	SearchEntityTypeUser SearchEntityType = "User"
)

Defines values for SearchEntityType.

type SecurityOperationsGetAuditEventsParams

type SecurityOperationsGetAuditEventsParams struct {
	// StartTime Начальная метка времени (включительно)
	StartTime time.Time `form:"start_time" json:"start_time"`

	// EndTime Конечная метка времени (исключительно)
	EndTime time.Time `form:"end_time" json:"end_time"`

	// EventKey Фильтр по конкретному типу события
	EventKey *AuditEventKey `form:"event_key,omitempty" json:"event_key,omitempty"`

	// ActorId Идентификатор пользователя, выполнившего действие
	ActorId *int32 `form:"actor_id,omitempty" json:"actor_id,omitempty"`

	// ActorType Тип актора
	ActorType *string `form:"actor_type,omitempty" json:"actor_type,omitempty"`

	// EntityId Идентификатор затронутой сущности
	EntityId *int32 `form:"entity_id,omitempty" json:"entity_id,omitempty"`

	// EntityType Тип сущности
	EntityType *string `form:"entity_type,omitempty" json:"entity_type,omitempty"`

	// Limit Количество записей для возврата
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Курсор для пагинации из meta.paginate.next_page
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

SecurityOperationsGetAuditEventsParams defines parameters for SecurityOperationsGetAuditEvents.

type SecurityOperationsGetAuditEventsResponse

type SecurityOperationsGetAuditEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data []AuditEvent `json:"data"`

		// Meta Метаданные пагинации
		Meta *PaginationMeta `json:"meta,omitempty"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON422 *ApiError
}

func ParseSecurityOperationsGetAuditEventsResponse

func ParseSecurityOperationsGetAuditEventsResponse(rsp *http.Response) (*SecurityOperationsGetAuditEventsResponse, error)

ParseSecurityOperationsGetAuditEventsResponse parses an HTTP response from a SecurityOperationsGetAuditEventsWithResponse call

func (SecurityOperationsGetAuditEventsResponse) Status

Status returns HTTPResponse.Status

func (SecurityOperationsGetAuditEventsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type SortOrder

type SortOrder string

SortOrder Порядок сортировки

const (
	Asc  SortOrder = "asc"
	Desc SortOrder = "desc"
)

Defines values for SortOrder.

type StatusUpdateRequest

type StatusUpdateRequest struct {
	Status struct {
		// Emoji Emoji символ статуса
		Emoji string `json:"emoji"`

		// ExpiresAt Срок жизни статуса (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
		ExpiresAt *time.Time `json:"expires_at,omitempty"`

		// IsAway Режим «Нет на месте»
		IsAway *bool `json:"is_away,omitempty"`

		// Title Текст статуса
		Title string `json:"title"`
	} `json:"status"`
}

StatusUpdateRequest Запрос на установку статуса

type TagNamesFilter

type TagNamesFilter = []string

TagNamesFilter Массив названий тегов

type Task

type Task struct {
	// AllDay Напоминание на весь день (без указания времени)
	AllDay bool `json:"all_day"`

	// ChatId Идентификатор чата, к которому привязано напоминание
	ChatId *int32 `json:"chat_id"`

	// Content Описание
	Content string `json:"content"`

	// CreatedAt Дата и время создания напоминания (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	CreatedAt time.Time `json:"created_at"`

	// CustomProperties Дополнительные поля напоминания
	CustomProperties []CustomProperty `json:"custom_properties"`

	// DueAt Срок выполнения напоминания (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	DueAt *time.Time `json:"due_at"`

	// Id Идентификатор напоминания
	Id int32 `json:"id"`

	// Kind Тип
	Kind TaskKind `json:"kind"`

	// PerformerIds Массив идентификаторов пользователей, привязанных к напоминанию как «ответственные»
	PerformerIds []int32 `json:"performer_ids"`

	// Priority Приоритет
	Priority int32 `json:"priority"`

	// Status Статус напоминания
	Status TaskStatus `json:"status"`

	// UserId Идентификатор пользователя-создателя напоминания
	UserId int32 `json:"user_id"`
}

Task Напоминание

type TaskCreateRequest

type TaskCreateRequest struct {
	// Task Собранный объект параметров создаваемого напоминания
	Task struct {
		// AllDay Напоминание на весь день (без указания времени)
		AllDay *bool `json:"all_day,omitempty"`

		// ChatId Идентификатор чата, к которому привязывается напоминание
		ChatId *int32 `json:"chat_id,omitempty"`

		// Content Описание (по умолчанию — название типа)
		Content *string `json:"content,omitempty"`

		// CustomProperties Задаваемые дополнительные поля
		CustomProperties *[]struct {
			// Id Идентификатор поля
			Id int32 `json:"id"`

			// Value Устанавливаемое значение
			Value string `json:"value"`
		} `json:"custom_properties,omitempty"`

		// DueAt Срок выполнения напоминания (ISO-8601) в формате YYYY-MM-DDThh:mm:ss.sssTZD. Если указано время 23:59:59.000, то напоминание будет создано на весь день (без указания времени).
		DueAt *time.Time `json:"due_at,omitempty"`

		// Kind Тип
		Kind TaskKind `json:"kind"`

		// PerformerIds Массив идентификаторов пользователей, привязываемых к напоминанию как «ответственные» (по умолчанию ответственным назначается вы)
		PerformerIds *[]int32 `json:"performer_ids,omitempty"`

		// Priority Приоритет: 1, 2 (важно) или 3 (очень важно).
		Priority *int32 `json:"priority,omitempty"`
	} `json:"task"`
}

TaskCreateRequest Запрос на создание напоминания

type TaskKind

type TaskKind string

TaskKind Тип задачи

const (
	Call     TaskKind = "call"
	Email    TaskKind = "email"
	Event    TaskKind = "event"
	Meeting  TaskKind = "meeting"
	Reminder TaskKind = "reminder"
)

Defines values for TaskKind.

type TaskOperationsCreateTaskJSONRequestBody

type TaskOperationsCreateTaskJSONRequestBody = TaskCreateRequest

TaskOperationsCreateTaskJSONRequestBody defines body for TaskOperationsCreateTask for application/json ContentType.

type TaskOperationsCreateTaskResponse

type TaskOperationsCreateTaskResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		// Data Напоминание
		Data Task `json:"data"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
	JSON422 *ApiError
}

func ParseTaskOperationsCreateTaskResponse

func ParseTaskOperationsCreateTaskResponse(rsp *http.Response) (*TaskOperationsCreateTaskResponse, error)

ParseTaskOperationsCreateTaskResponse parses an HTTP response from a TaskOperationsCreateTaskWithResponse call

func (TaskOperationsCreateTaskResponse) Status

Status returns HTTPResponse.Status

func (TaskOperationsCreateTaskResponse) StatusCode

func (r TaskOperationsCreateTaskResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TaskOperationsDeleteTaskResponse

type TaskOperationsDeleteTaskResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
}

func ParseTaskOperationsDeleteTaskResponse

func ParseTaskOperationsDeleteTaskResponse(rsp *http.Response) (*TaskOperationsDeleteTaskResponse, error)

ParseTaskOperationsDeleteTaskResponse parses an HTTP response from a TaskOperationsDeleteTaskWithResponse call

func (TaskOperationsDeleteTaskResponse) Status

Status returns HTTPResponse.Status

func (TaskOperationsDeleteTaskResponse) StatusCode

func (r TaskOperationsDeleteTaskResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TaskOperationsGetTaskResponse

type TaskOperationsGetTaskResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Напоминание
		Data Task `json:"data"`
	}
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
}

func ParseTaskOperationsGetTaskResponse

func ParseTaskOperationsGetTaskResponse(rsp *http.Response) (*TaskOperationsGetTaskResponse, error)

ParseTaskOperationsGetTaskResponse parses an HTTP response from a TaskOperationsGetTaskWithResponse call

func (TaskOperationsGetTaskResponse) Status

Status returns HTTPResponse.Status

func (TaskOperationsGetTaskResponse) StatusCode

func (r TaskOperationsGetTaskResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TaskOperationsListTasksParams

type TaskOperationsListTasksParams struct {
	// Limit Количество возвращаемых сущностей за один запрос
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Курсор для пагинации (из `meta.paginate.next_page`)
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

TaskOperationsListTasksParams defines parameters for TaskOperationsListTasks.

type TaskOperationsListTasksResponse

type TaskOperationsListTasksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data []Task `json:"data"`

		// Meta Метаданные пагинации
		Meta *PaginationMeta `json:"meta,omitempty"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
}

func ParseTaskOperationsListTasksResponse

func ParseTaskOperationsListTasksResponse(rsp *http.Response) (*TaskOperationsListTasksResponse, error)

ParseTaskOperationsListTasksResponse parses an HTTP response from a TaskOperationsListTasksWithResponse call

func (TaskOperationsListTasksResponse) Status

Status returns HTTPResponse.Status

func (TaskOperationsListTasksResponse) StatusCode

func (r TaskOperationsListTasksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TaskOperationsUpdateTaskJSONRequestBody

type TaskOperationsUpdateTaskJSONRequestBody = TaskUpdateRequest

TaskOperationsUpdateTaskJSONRequestBody defines body for TaskOperationsUpdateTask for application/json ContentType.

type TaskOperationsUpdateTaskResponse

type TaskOperationsUpdateTaskResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Напоминание
		Data Task `json:"data"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
	JSON422 *ApiError
}

func ParseTaskOperationsUpdateTaskResponse

func ParseTaskOperationsUpdateTaskResponse(rsp *http.Response) (*TaskOperationsUpdateTaskResponse, error)

ParseTaskOperationsUpdateTaskResponse parses an HTTP response from a TaskOperationsUpdateTaskWithResponse call

func (TaskOperationsUpdateTaskResponse) Status

Status returns HTTPResponse.Status

func (TaskOperationsUpdateTaskResponse) StatusCode

func (r TaskOperationsUpdateTaskResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TaskStatus

type TaskStatus string

TaskStatus Статус напоминания

const (
	TaskStatusDone   TaskStatus = "done"
	TaskStatusUndone TaskStatus = "undone"
)

Defines values for TaskStatus.

type TaskUpdateRequest

type TaskUpdateRequest struct {
	// Task Собранный объект параметров обновляемого напоминания
	Task struct {
		// AllDay Напоминание на весь день (без указания времени)
		AllDay *bool `json:"all_day,omitempty"`

		// Content Описание
		Content *string `json:"content,omitempty"`

		// CustomProperties Задаваемые дополнительные поля
		CustomProperties *[]struct {
			// Id Идентификатор поля
			Id int32 `json:"id"`

			// Value Устанавливаемое значение
			Value string `json:"value"`
		} `json:"custom_properties,omitempty"`

		// DoneAt Дата и время выполнения напоминания (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
		DoneAt *time.Time `json:"done_at,omitempty"`

		// DueAt Срок выполнения напоминания (ISO-8601) в формате YYYY-MM-DDThh:mm:ss.sssTZD. Если указано время 23:59:59.000, то напоминание будет создано на весь день (без указания времени).
		DueAt *time.Time `json:"due_at,omitempty"`

		// Kind Тип
		Kind *TaskKind `json:"kind,omitempty"`

		// PerformerIds Массив идентификаторов пользователей, привязываемых к напоминанию как «ответственные»
		PerformerIds *[]int32 `json:"performer_ids,omitempty"`

		// Priority Приоритет: 1, 2 (важно) или 3 (очень важно).
		Priority *int32 `json:"priority,omitempty"`

		// Status Статус
		Status *TaskUpdateRequestTaskStatus `json:"status,omitempty"`
	} `json:"task"`
}

TaskUpdateRequest Запрос на обновление напоминания

type TaskUpdateRequestTaskStatus

type TaskUpdateRequestTaskStatus string

TaskUpdateRequestTaskStatus Статус

const (
	TaskUpdateRequestTaskStatusDone   TaskUpdateRequestTaskStatus = "done"
	TaskUpdateRequestTaskStatusUndone TaskUpdateRequestTaskStatus = "undone"
)

Defines values for TaskUpdateRequestTaskStatus.

type Thread

type Thread struct {
	// ChatId Идентификатор чата треда (используется для отправки [новых комментариев](POST /messages) в тред и получения [списка комментариев](GET /messages))
	ChatId int64 `json:"chat_id"`

	// Id Идентификатор созданного треда (используется для отправки [новых комментариев](POST /messages) в тред)
	Id int64 `json:"id"`

	// MessageChatId Идентификатор чата сообщения
	MessageChatId int64 `json:"message_chat_id"`

	// MessageId Идентификатор сообщения, к которому был создан тред
	MessageId int64 `json:"message_id"`

	// UpdatedAt Дата и время обновления треда (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	UpdatedAt time.Time `json:"updated_at"`
}

Thread Тред

type ThreadOperationsCreateThreadResponse

type ThreadOperationsCreateThreadResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		// Data Тред
		Data Thread `json:"data"`
	}
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
}

func ParseThreadOperationsCreateThreadResponse

func ParseThreadOperationsCreateThreadResponse(rsp *http.Response) (*ThreadOperationsCreateThreadResponse, error)

ParseThreadOperationsCreateThreadResponse parses an HTTP response from a ThreadOperationsCreateThreadWithResponse call

func (ThreadOperationsCreateThreadResponse) Status

Status returns HTTPResponse.Status

func (ThreadOperationsCreateThreadResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ThreadOperationsGetThreadResponse

type ThreadOperationsGetThreadResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Тред
		Data Thread `json:"data"`
	}
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
}

func ParseThreadOperationsGetThreadResponse

func ParseThreadOperationsGetThreadResponse(rsp *http.Response) (*ThreadOperationsGetThreadResponse, error)

ParseThreadOperationsGetThreadResponse parses an HTTP response from a ThreadOperationsGetThreadWithResponse call

func (ThreadOperationsGetThreadResponse) Status

Status returns HTTPResponse.Status

func (ThreadOperationsGetThreadResponse) StatusCode

func (r ThreadOperationsGetThreadResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateMemberRoleRequest

type UpdateMemberRoleRequest struct {
	// Role Роль
	Role ChatMemberRole `json:"role"`
}

UpdateMemberRoleRequest Запрос на изменение роли участника

type UploadOperationsGetUploadParamsResponse

type UploadOperationsGetUploadParamsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *UploadParams
	JSON401      *OAuthError
	JSON403      *OAuthError
}

func ParseUploadOperationsGetUploadParamsResponse

func ParseUploadOperationsGetUploadParamsResponse(rsp *http.Response) (*UploadOperationsGetUploadParamsResponse, error)

ParseUploadOperationsGetUploadParamsResponse parses an HTTP response from a UploadOperationsGetUploadParamsWithResponse call

func (UploadOperationsGetUploadParamsResponse) Status

Status returns HTTPResponse.Status

func (UploadOperationsGetUploadParamsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UploadParams

type UploadParams struct {
	// ContentDisposition Используемый заголовок (в данном запросе — attachment)
	ContentDisposition string `json:"Content-Disposition"`

	// Acl Уровень безопасности (в данном запросе — private)
	Acl string `json:"acl"`

	// DirectUrl Адрес для загрузки файла
	DirectUrl string `json:"direct_url"`

	// Key Уникальный ключ для загрузки файла
	Key string `json:"key"`

	// Policy Уникальная policy для загрузки файла
	Policy string `json:"policy"`

	// XAmzAlgorithm Используемый алгоритм (в данном запросе — AWS4-HMAC-SHA256)
	XAmzAlgorithm string `json:"x-amz-algorithm"`

	// XAmzCredential x-amz-credential для загрузки файла
	XAmzCredential string `json:"x-amz-credential"`

	// XAmzDate Уникальный x-amz-date для загрузки файла
	XAmzDate string `json:"x-amz-date"`

	// XAmzSignature Уникальная подпись для загрузки файла
	XAmzSignature string `json:"x-amz-signature"`
}

UploadParams Параметры для загрузки файла

type User

type User struct {
	// Bot Является ботом
	Bot bool `json:"bot"`

	// CreatedAt Дата создания (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	CreatedAt time.Time `json:"created_at"`

	// CustomProperties Дополнительные поля сотрудника
	CustomProperties []CustomProperty `json:"custom_properties"`

	// Department Департамент
	Department string `json:"department"`

	// Email Электронная почта
	Email string `json:"email"`

	// FirstName Имя
	FirstName string `json:"first_name"`

	// Id Идентификатор пользователя
	Id int32 `json:"id"`

	// ImageUrl Ссылка на скачивание аватарки пользователя
	ImageUrl *string `json:"image_url"`

	// InviteStatus Статус приглашения
	InviteStatus InviteStatus `json:"invite_status"`

	// LastActivityAt Дата последней активности пользователя (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	LastActivityAt time.Time `json:"last_activity_at"`

	// LastName Фамилия
	LastName string `json:"last_name"`

	// ListTags Массив тегов, привязанных к сотруднику
	ListTags []string `json:"list_tags"`

	// Nickname Имя пользователя
	Nickname string `json:"nickname"`

	// PhoneNumber Телефон
	PhoneNumber string `json:"phone_number"`

	// Role Уровень доступа
	Role UserRole `json:"role"`

	// Sso Использует ли пользователь SSO
	Sso bool `json:"sso"`

	// Suspended Деактивация пользователя
	Suspended bool `json:"suspended"`

	// TimeZone Часовой пояс пользователя
	TimeZone string `json:"time_zone"`

	// Title Должность
	Title string `json:"title"`

	// UserStatus Статус
	UserStatus *UserStatus `json:"user_status"`
}

User Сотрудник

type UserCreateRequest

type UserCreateRequest struct {
	// SkipEmailNotify Пропуск этапа отправки приглашения сотруднику. Сотруднику не будет отправлено письмо на электронную почту с приглашением создать аккаунт. Полезно при предварительном создании аккаунтов перед входом через SSO.
	SkipEmailNotify *bool `json:"skip_email_notify,omitempty"`
	User            struct {
		// CustomProperties Задаваемые дополнительные поля
		CustomProperties *[]struct {
			// Id Идентификатор поля
			Id int32 `json:"id"`

			// Value Устанавливаемое значение
			Value string `json:"value"`
		} `json:"custom_properties,omitempty"`

		// Department Департамент
		Department *string `json:"department,omitempty"`

		// Email Электронная почта
		Email string `json:"email"`

		// FirstName Имя
		FirstName *string `json:"first_name,omitempty"`

		// LastName Фамилия
		LastName *string `json:"last_name,omitempty"`

		// ListTags Массив тегов, привязываемых к сотруднику
		ListTags *[]string `json:"list_tags,omitempty"`

		// Nickname Имя пользователя
		Nickname *string `json:"nickname,omitempty"`

		// PhoneNumber Телефон
		PhoneNumber *string `json:"phone_number,omitempty"`

		// Role Уровень доступа
		Role *UserRole `json:"role,omitempty"`

		// Suspended Деактивация пользователя
		Suspended *bool `json:"suspended,omitempty"`

		// Title Должность
		Title *string `json:"title,omitempty"`
	} `json:"user"`
}

UserCreateRequest Запрос на создание сотрудника

type UserEventType

type UserEventType string

UserEventType Тип события webhook для пользователей

const (
	UserEventTypeActivate UserEventType = "activate"
	UserEventTypeConfirm  UserEventType = "confirm"
	UserEventTypeDelete   UserEventType = "delete"
	UserEventTypeInvite   UserEventType = "invite"
	UserEventTypeSuspend  UserEventType = "suspend"
	UserEventTypeUpdate   UserEventType = "update"
)

Defines values for UserEventType.

type UserOperationsCreateUserJSONRequestBody

type UserOperationsCreateUserJSONRequestBody = UserCreateRequest

UserOperationsCreateUserJSONRequestBody defines body for UserOperationsCreateUser for application/json ContentType.

type UserOperationsCreateUserResponse

type UserOperationsCreateUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		// Data Сотрудник
		Data User `json:"data"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON422 *ApiError
}

func ParseUserOperationsCreateUserResponse

func ParseUserOperationsCreateUserResponse(rsp *http.Response) (*UserOperationsCreateUserResponse, error)

ParseUserOperationsCreateUserResponse parses an HTTP response from a UserOperationsCreateUserWithResponse call

func (UserOperationsCreateUserResponse) Status

Status returns HTTPResponse.Status

func (UserOperationsCreateUserResponse) StatusCode

func (r UserOperationsCreateUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserOperationsDeleteUserResponse

type UserOperationsDeleteUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
}

func ParseUserOperationsDeleteUserResponse

func ParseUserOperationsDeleteUserResponse(rsp *http.Response) (*UserOperationsDeleteUserResponse, error)

ParseUserOperationsDeleteUserResponse parses an HTTP response from a UserOperationsDeleteUserWithResponse call

func (UserOperationsDeleteUserResponse) Status

Status returns HTTPResponse.Status

func (UserOperationsDeleteUserResponse) StatusCode

func (r UserOperationsDeleteUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserOperationsGetUserResponse

type UserOperationsGetUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Сотрудник
		Data User `json:"data"`
	}
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
}

func ParseUserOperationsGetUserResponse

func ParseUserOperationsGetUserResponse(rsp *http.Response) (*UserOperationsGetUserResponse, error)

ParseUserOperationsGetUserResponse parses an HTTP response from a UserOperationsGetUserWithResponse call

func (UserOperationsGetUserResponse) Status

Status returns HTTPResponse.Status

func (UserOperationsGetUserResponse) StatusCode

func (r UserOperationsGetUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserOperationsListUsersParams

type UserOperationsListUsersParams struct {
	// Query Поисковая фраза для фильтрации результатов. Поиск работает по полям: `first_name` (имя), `last_name` (фамилия), `email` (электронная почта), `phone_number` (телефон) и `nickname` (никнейм).
	Query *string `form:"query,omitempty" json:"query,omitempty"`

	// Limit Количество возвращаемых сущностей за один запрос
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Курсор для пагинации (из `meta.paginate.next_page`)
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

UserOperationsListUsersParams defines parameters for UserOperationsListUsers.

type UserOperationsListUsersResponse

type UserOperationsListUsersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data []User `json:"data"`

		// Meta Метаданные пагинации
		Meta *PaginationMeta `json:"meta,omitempty"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON422 *ApiError
}

func ParseUserOperationsListUsersResponse

func ParseUserOperationsListUsersResponse(rsp *http.Response) (*UserOperationsListUsersResponse, error)

ParseUserOperationsListUsersResponse parses an HTTP response from a UserOperationsListUsersWithResponse call

func (UserOperationsListUsersResponse) Status

Status returns HTTPResponse.Status

func (UserOperationsListUsersResponse) StatusCode

func (r UserOperationsListUsersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserOperationsUpdateUserJSONRequestBody

type UserOperationsUpdateUserJSONRequestBody = UserUpdateRequest

UserOperationsUpdateUserJSONRequestBody defines body for UserOperationsUpdateUser for application/json ContentType.

type UserOperationsUpdateUserResponse

type UserOperationsUpdateUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Сотрудник
		Data User `json:"data"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
	JSON422 *ApiError
}

func ParseUserOperationsUpdateUserResponse

func ParseUserOperationsUpdateUserResponse(rsp *http.Response) (*UserOperationsUpdateUserResponse, error)

ParseUserOperationsUpdateUserResponse parses an HTTP response from a UserOperationsUpdateUserWithResponse call

func (UserOperationsUpdateUserResponse) Status

Status returns HTTPResponse.Status

func (UserOperationsUpdateUserResponse) StatusCode

func (r UserOperationsUpdateUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserRole

type UserRole string

UserRole Роль пользователя в системе

const (
	UserRoleAdmin      UserRole = "admin"
	UserRoleMultiGuest UserRole = "multi_guest"
	UserRoleUser       UserRole = "user"
)

Defines values for UserRole.

type UserStatus

type UserStatus struct {
	// Emoji Emoji символ статуса
	Emoji string `json:"emoji"`

	// ExpiresAt Срок жизни статуса (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	ExpiresAt *time.Time `json:"expires_at"`

	// IsAway Режим «Нет на месте»
	IsAway bool `json:"is_away"`

	// Title Текст статуса
	Title string `json:"title"`
}

UserStatus Статус пользователя

type UserStatusOperationsDeleteUserStatusResponse

type UserStatusOperationsDeleteUserStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *EmptyResponse
	JSON401      *OAuthError
	JSON403      *OAuthError
	JSON404      *ApiError
}

func ParseUserStatusOperationsDeleteUserStatusResponse

func ParseUserStatusOperationsDeleteUserStatusResponse(rsp *http.Response) (*UserStatusOperationsDeleteUserStatusResponse, error)

ParseUserStatusOperationsDeleteUserStatusResponse parses an HTTP response from a UserStatusOperationsDeleteUserStatusWithResponse call

func (UserStatusOperationsDeleteUserStatusResponse) Status

Status returns HTTPResponse.Status

func (UserStatusOperationsDeleteUserStatusResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UserStatusOperationsGetUserStatusResponse

type UserStatusOperationsGetUserStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data *UserStatus `json:"data"`
	}
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
}

func ParseUserStatusOperationsGetUserStatusResponse

func ParseUserStatusOperationsGetUserStatusResponse(rsp *http.Response) (*UserStatusOperationsGetUserStatusResponse, error)

ParseUserStatusOperationsGetUserStatusResponse parses an HTTP response from a UserStatusOperationsGetUserStatusWithResponse call

func (UserStatusOperationsGetUserStatusResponse) Status

Status returns HTTPResponse.Status

func (UserStatusOperationsGetUserStatusResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UserStatusOperationsUpdateUserStatusJSONRequestBody

type UserStatusOperationsUpdateUserStatusJSONRequestBody = StatusUpdateRequest

UserStatusOperationsUpdateUserStatusJSONRequestBody defines body for UserStatusOperationsUpdateUserStatus for application/json ContentType.

type UserStatusOperationsUpdateUserStatusResponse

type UserStatusOperationsUpdateUserStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Статус пользователя
		Data UserStatus `json:"data"`
	}
	JSON400 *ApiError
	JSON401 *OAuthError
	JSON403 *OAuthError
	JSON404 *ApiError
	JSON422 *ApiError
}

func ParseUserStatusOperationsUpdateUserStatusResponse

func ParseUserStatusOperationsUpdateUserStatusResponse(rsp *http.Response) (*UserStatusOperationsUpdateUserStatusResponse, error)

ParseUserStatusOperationsUpdateUserStatusResponse parses an HTTP response from a UserStatusOperationsUpdateUserStatusWithResponse call

func (UserStatusOperationsUpdateUserStatusResponse) Status

Status returns HTTPResponse.Status

func (UserStatusOperationsUpdateUserStatusResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UserUpdateRequest

type UserUpdateRequest struct {
	// User Собранный объект параметров редактируемого сотрудника
	User struct {
		// CustomProperties Задаваемые дополнительные поля
		CustomProperties *[]struct {
			// Id Идентификатор поля
			Id int32 `json:"id"`

			// Value Устанавливаемое значение
			Value string `json:"value"`
		} `json:"custom_properties,omitempty"`

		// Department Департамент
		Department *string `json:"department,omitempty"`

		// Email Электронная почта
		Email *string `json:"email,omitempty"`

		// FirstName Имя
		FirstName *string `json:"first_name,omitempty"`

		// LastName Фамилия
		LastName *string `json:"last_name,omitempty"`

		// ListTags Массив тегов, привязываемых к сотруднику
		ListTags *[]string `json:"list_tags,omitempty"`

		// Nickname Имя пользователя
		Nickname *string `json:"nickname,omitempty"`

		// PhoneNumber Телефон
		PhoneNumber *string `json:"phone_number,omitempty"`

		// Role Уровень доступа
		Role *UserUpdateRequestUserRole `json:"role,omitempty"`

		// Suspended Деактивация пользователя
		Suspended *bool `json:"suspended,omitempty"`

		// Title Должность
		Title *string `json:"title,omitempty"`
	} `json:"user"`
}

UserUpdateRequest Запрос на редактирование сотрудника

type UserUpdateRequestUserRole

type UserUpdateRequestUserRole string

UserUpdateRequestUserRole Уровень доступа

const (
	UserUpdateRequestUserRoleAdmin      UserUpdateRequestUserRole = "admin"
	UserUpdateRequestUserRoleMultiGuest UserUpdateRequestUserRole = "multi_guest"
	UserUpdateRequestUserRoleUser       UserUpdateRequestUserRole = "user"
)

Defines values for UserUpdateRequestUserRole.

type ValidationErrorCode

type ValidationErrorCode string

ValidationErrorCode Коды ошибок валидации

const (
	AccessDenied      ValidationErrorCode = "access_denied"
	AlreadyAssigned   ValidationErrorCode = "already_assigned"
	AlreadyExists     ValidationErrorCode = "already_exists"
	Blank             ValidationErrorCode = "blank"
	DisplayedError    ValidationErrorCode = "displayed_error"
	Exclusion         ValidationErrorCode = "exclusion"
	Forbidden         ValidationErrorCode = "forbidden"
	GeneralLimit      ValidationErrorCode = "general_limit"
	In                ValidationErrorCode = "in"
	Inclusion         ValidationErrorCode = "inclusion"
	Invalid           ValidationErrorCode = "invalid"
	InvalidDateRange  ValidationErrorCode = "invalid_date_range"
	InvalidWebhookUrl ValidationErrorCode = "invalid_webhook_url"
	LicensesLimit     ValidationErrorCode = "licenses_limit"
	MaxLength         ValidationErrorCode = "max_length"
	MinLength         ValidationErrorCode = "min_length"
	NotApplicable     ValidationErrorCode = "not_applicable"
	NotAuthorized     ValidationErrorCode = "not_authorized"
	NotFound          ValidationErrorCode = "not_found"
	OwnerProtected    ValidationErrorCode = "owner_protected"
	PaymentRequired   ValidationErrorCode = "payment_required"
	PermissionDenied  ValidationErrorCode = "permission_denied"
	PersonalChat      ValidationErrorCode = "personal_chat"
	RateLimit         ValidationErrorCode = "rate_limit"
	Required          ValidationErrorCode = "required"
	SelfUpdate        ValidationErrorCode = "self_update"
	Taken             ValidationErrorCode = "taken"
	TooLong           ValidationErrorCode = "too_long"
	TriggerExpired    ValidationErrorCode = "trigger_expired"
	TriggerNotFound   ValidationErrorCode = "trigger_not_found"
	Unhandled         ValidationErrorCode = "unhandled"
	UniqueLimit       ValidationErrorCode = "unique_limit"
	UserLimit         ValidationErrorCode = "user_limit"
	WrongEmoji        ValidationErrorCode = "wrong_emoji"
	WrongParams       ValidationErrorCode = "wrong_params"
)

Defines values for ValidationErrorCode.

type ViewBlockCheckbox

type ViewBlockCheckbox struct {
	// Hint Подсказка, которая отображается под группой чекбоксов серым цветом
	Hint *string `json:"hint,omitempty"`

	// Label Подпись к группе чекбоксов
	Label string `json:"label"`

	// Name Название, которое будет передано в ваше приложение как ключ указанного пользователем выбора
	Name string `json:"name"`

	// Options Массив чекбоксов
	Options *[]ViewBlockCheckboxOption `json:"options,omitempty"`

	// Required Обязательность
	Required *bool `json:"required,omitempty"`

	// Type Тип блока
	Type ViewBlockCheckboxType `json:"type"`
}

ViewBlockCheckbox Блок checkbox — чекбоксы

type ViewBlockCheckboxOption

type ViewBlockCheckboxOption struct {
	// Checked Изначально выбранный пункт
	Checked *bool `json:"checked,omitempty"`

	// Description Пояснение, которое будет указано серым цветом в этом пункте под отображаемым текстом
	Description *string `json:"description,omitempty"`

	// Text Отображаемый текст
	Text string `json:"text"`

	// Value Уникальное строковое значение, которое будет передано в ваше приложение при выборе этого пункта
	Value string `json:"value"`
}

ViewBlockCheckboxOption defines model for ViewBlockCheckboxOption.

type ViewBlockCheckboxType

type ViewBlockCheckboxType string

ViewBlockCheckboxType Тип блока

const (
	Checkbox ViewBlockCheckboxType = "checkbox"
)

Defines values for ViewBlockCheckboxType.

type ViewBlockDate

type ViewBlockDate struct {
	// Hint Подсказка, которая отображается под полем серым цветом
	Hint *string `json:"hint,omitempty"`

	// InitialDate Начальное значение в поле в формате YYYY-MM-DD
	InitialDate *openapi_types.Date `json:"initial_date,omitempty"`

	// Label Подпись к полю
	Label string `json:"label"`

	// Name Название, которое будет передано в ваше приложение как ключ указанного пользователем значения
	Name string `json:"name"`

	// Required Обязательность
	Required *bool `json:"required,omitempty"`

	// Type Тип блока
	Type ViewBlockDateType `json:"type"`
}

ViewBlockDate Блок date — выбор даты

type ViewBlockDateType

type ViewBlockDateType string

ViewBlockDateType Тип блока

const (
	ViewBlockDateTypeDate ViewBlockDateType = "date"
)

Defines values for ViewBlockDateType.

type ViewBlockDivider

type ViewBlockDivider struct {
	// Type Тип блока
	Type ViewBlockDividerType `json:"type"`
}

ViewBlockDivider Блок divider — разделитель

type ViewBlockDividerType

type ViewBlockDividerType string

ViewBlockDividerType Тип блока

const (
	Divider ViewBlockDividerType = "divider"
)

Defines values for ViewBlockDividerType.

type ViewBlockFileInput

type ViewBlockFileInput struct {
	// Filetypes Массив допустимых расширений файлов, указанные в виде строк (например, ["png","jpg","gif"]). Если это поле не указано, все расширения файлов будут приняты.
	Filetypes *[]string `json:"filetypes,omitempty"`

	// Hint Подсказка, которая отображается под полем серым цветом
	Hint *string `json:"hint,omitempty"`

	// Label Подпись к полю
	Label string `json:"label"`

	// MaxFiles Максимальное количество файлов, которое может загрузить пользователь в это поле.
	MaxFiles *int32 `json:"max_files,omitempty"`

	// Name Название, которое будет передано в ваше приложение как ключ указанного пользователем значения
	Name string `json:"name"`

	// Required Обязательность
	Required *bool `json:"required,omitempty"`

	// Type Тип блока
	Type ViewBlockFileInputType `json:"type"`
}

ViewBlockFileInput Блок file_input — загрузка файлов

type ViewBlockFileInputType

type ViewBlockFileInputType string

ViewBlockFileInputType Тип блока

const (
	FileInput ViewBlockFileInputType = "file_input"
)

Defines values for ViewBlockFileInputType.

type ViewBlockHeader

type ViewBlockHeader struct {
	// Text Текст заголовка
	Text string `json:"text"`

	// Type Тип блока
	Type ViewBlockHeaderType `json:"type"`
}

ViewBlockHeader Блок header — заголовок

type ViewBlockHeaderType

type ViewBlockHeaderType string

ViewBlockHeaderType Тип блока

const (
	Header ViewBlockHeaderType = "header"
)

Defines values for ViewBlockHeaderType.

type ViewBlockInput

type ViewBlockInput struct {
	// Hint Подсказка, которая отображается под полем серым цветом
	Hint *string `json:"hint,omitempty"`

	// InitialValue Начальное значение в поле
	InitialValue *string `json:"initial_value,omitempty"`

	// Label Подпись к полю
	Label string `json:"label"`

	// MaxLength Максимальная длина текста, который должен написать пользователь. Если пользователь напишет больше, он получит ошибку.
	MaxLength *int32 `json:"max_length,omitempty"`

	// MinLength Минимальная длина текста, который должен написать пользователь. Если пользователь напишет меньше, он получит ошибку.
	MinLength *int32 `json:"min_length,omitempty"`

	// Multiline Многострочное поле
	Multiline *bool `json:"multiline,omitempty"`

	// Name Название, которое будет передано в ваше приложение как ключ указанного пользователем значения
	Name string `json:"name"`

	// Placeholder Подсказка внутри поля ввода, пока оно пустое
	Placeholder *string `json:"placeholder,omitempty"`

	// Required Обязательность
	Required *bool `json:"required,omitempty"`

	// Type Тип блока
	Type ViewBlockInputType `json:"type"`
}

ViewBlockInput Блок input — текстовое поле ввода

type ViewBlockInputType

type ViewBlockInputType string

ViewBlockInputType Тип блока

const (
	Input ViewBlockInputType = "input"
)

Defines values for ViewBlockInputType.

type ViewBlockMarkdown

type ViewBlockMarkdown struct {
	// Text Текст
	Text string `json:"text"`

	// Type Тип блока
	Type ViewBlockMarkdownType `json:"type"`
}

ViewBlockMarkdown Блок markdown — форматированный текст

type ViewBlockMarkdownType

type ViewBlockMarkdownType string

ViewBlockMarkdownType Тип блока

const (
	Markdown ViewBlockMarkdownType = "markdown"
)

Defines values for ViewBlockMarkdownType.

type ViewBlockPlainText

type ViewBlockPlainText struct {
	// Text Текст
	Text string `json:"text"`

	// Type Тип блока
	Type ViewBlockPlainTextType `json:"type"`
}

ViewBlockPlainText Блок plain_text — обычный текст

type ViewBlockPlainTextType

type ViewBlockPlainTextType string

ViewBlockPlainTextType Тип блока

const (
	PlainText ViewBlockPlainTextType = "plain_text"
)

Defines values for ViewBlockPlainTextType.

type ViewBlockRadio

type ViewBlockRadio struct {
	// Hint Подсказка, которая отображается под группой радиокнопок серым цветом
	Hint *string `json:"hint,omitempty"`

	// Label Подпись к группе радиокнопок
	Label string `json:"label"`

	// Name Название, которое будет передано в ваше приложение как ключ указанного пользователем выбора
	Name string `json:"name"`

	// Options Массив радиокнопок
	Options *[]ViewBlockSelectableOption `json:"options,omitempty"`

	// Required Обязательность
	Required *bool `json:"required,omitempty"`

	// Type Тип блока
	Type ViewBlockRadioType `json:"type"`
}

ViewBlockRadio Блок radio — радиокнопки

type ViewBlockRadioType

type ViewBlockRadioType string

ViewBlockRadioType Тип блока

const (
	Radio ViewBlockRadioType = "radio"
)

Defines values for ViewBlockRadioType.

type ViewBlockSelect

type ViewBlockSelect struct {
	// Hint Подсказка, которая отображается под выпадающим списком серым цветом
	Hint *string `json:"hint,omitempty"`

	// Label Подпись к выпадающему списку
	Label string `json:"label"`

	// Name Название, которое будет передано в ваше приложение как ключ указанного пользователем выбора
	Name string `json:"name"`

	// Options Массив доступных пунктов в выпадающем списке
	Options *[]ViewBlockSelectableOption `json:"options,omitempty"`

	// Required Обязательность
	Required *bool `json:"required,omitempty"`

	// Type Тип блока
	Type ViewBlockSelectType `json:"type"`
}

ViewBlockSelect Блок select — выпадающий список

type ViewBlockSelectType

type ViewBlockSelectType string

ViewBlockSelectType Тип блока

const (
	Select ViewBlockSelectType = "select"
)

Defines values for ViewBlockSelectType.

type ViewBlockSelectableOption

type ViewBlockSelectableOption struct {
	// Description Пояснение, которое будет указано серым цветом в этом пункте под отображаемым текстом
	Description *string `json:"description,omitempty"`

	// Selected Изначально выбранный пункт. Только один пункт может быть выбран.
	Selected *bool `json:"selected,omitempty"`

	// Text Отображаемый текст
	Text string `json:"text"`

	// Value Уникальное строковое значение, которое будет передано в ваше приложение при выборе этого пункта
	Value string `json:"value"`
}

ViewBlockSelectableOption Опция для блоков select, radio и checkbox

type ViewBlockTime

type ViewBlockTime struct {
	// Hint Подсказка, которая отображается под полем серым цветом
	Hint *string `json:"hint,omitempty"`

	// InitialTime Начальное значение в поле в формате HH:mm
	InitialTime *string `json:"initial_time,omitempty"`

	// Label Подпись к полю
	Label string `json:"label"`

	// Name Название, которое будет передано в ваше приложение как ключ указанного пользователем значения
	Name string `json:"name"`

	// Required Обязательность
	Required *bool `json:"required,omitempty"`

	// Type Тип блока
	Type ViewBlockTimeType `json:"type"`
}

ViewBlockTime Блок time — выбор времени

type ViewBlockTimeType

type ViewBlockTimeType string

ViewBlockTimeType Тип блока

const (
	Time ViewBlockTimeType = "time"
)

Defines values for ViewBlockTimeType.

type ViewBlockUnion

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

ViewBlockUnion Union-тип для всех возможных блоков представления

func (ViewBlockUnion) AsViewBlockCheckbox

func (t ViewBlockUnion) AsViewBlockCheckbox() (ViewBlockCheckbox, error)

AsViewBlockCheckbox returns the union data inside the ViewBlockUnion as a ViewBlockCheckbox

func (ViewBlockUnion) AsViewBlockDate

func (t ViewBlockUnion) AsViewBlockDate() (ViewBlockDate, error)

AsViewBlockDate returns the union data inside the ViewBlockUnion as a ViewBlockDate

func (ViewBlockUnion) AsViewBlockDivider

func (t ViewBlockUnion) AsViewBlockDivider() (ViewBlockDivider, error)

AsViewBlockDivider returns the union data inside the ViewBlockUnion as a ViewBlockDivider

func (ViewBlockUnion) AsViewBlockFileInput

func (t ViewBlockUnion) AsViewBlockFileInput() (ViewBlockFileInput, error)

AsViewBlockFileInput returns the union data inside the ViewBlockUnion as a ViewBlockFileInput

func (ViewBlockUnion) AsViewBlockHeader

func (t ViewBlockUnion) AsViewBlockHeader() (ViewBlockHeader, error)

AsViewBlockHeader returns the union data inside the ViewBlockUnion as a ViewBlockHeader

func (ViewBlockUnion) AsViewBlockInput

func (t ViewBlockUnion) AsViewBlockInput() (ViewBlockInput, error)

AsViewBlockInput returns the union data inside the ViewBlockUnion as a ViewBlockInput

func (ViewBlockUnion) AsViewBlockMarkdown

func (t ViewBlockUnion) AsViewBlockMarkdown() (ViewBlockMarkdown, error)

AsViewBlockMarkdown returns the union data inside the ViewBlockUnion as a ViewBlockMarkdown

func (ViewBlockUnion) AsViewBlockPlainText

func (t ViewBlockUnion) AsViewBlockPlainText() (ViewBlockPlainText, error)

AsViewBlockPlainText returns the union data inside the ViewBlockUnion as a ViewBlockPlainText

func (ViewBlockUnion) AsViewBlockRadio

func (t ViewBlockUnion) AsViewBlockRadio() (ViewBlockRadio, error)

AsViewBlockRadio returns the union data inside the ViewBlockUnion as a ViewBlockRadio

func (ViewBlockUnion) AsViewBlockSelect

func (t ViewBlockUnion) AsViewBlockSelect() (ViewBlockSelect, error)

AsViewBlockSelect returns the union data inside the ViewBlockUnion as a ViewBlockSelect

func (ViewBlockUnion) AsViewBlockTime

func (t ViewBlockUnion) AsViewBlockTime() (ViewBlockTime, error)

AsViewBlockTime returns the union data inside the ViewBlockUnion as a ViewBlockTime

func (*ViewBlockUnion) FromViewBlockCheckbox

func (t *ViewBlockUnion) FromViewBlockCheckbox(v ViewBlockCheckbox) error

FromViewBlockCheckbox overwrites any union data inside the ViewBlockUnion as the provided ViewBlockCheckbox

func (*ViewBlockUnion) FromViewBlockDate

func (t *ViewBlockUnion) FromViewBlockDate(v ViewBlockDate) error

FromViewBlockDate overwrites any union data inside the ViewBlockUnion as the provided ViewBlockDate

func (*ViewBlockUnion) FromViewBlockDivider

func (t *ViewBlockUnion) FromViewBlockDivider(v ViewBlockDivider) error

FromViewBlockDivider overwrites any union data inside the ViewBlockUnion as the provided ViewBlockDivider

func (*ViewBlockUnion) FromViewBlockFileInput

func (t *ViewBlockUnion) FromViewBlockFileInput(v ViewBlockFileInput) error

FromViewBlockFileInput overwrites any union data inside the ViewBlockUnion as the provided ViewBlockFileInput

func (*ViewBlockUnion) FromViewBlockHeader

func (t *ViewBlockUnion) FromViewBlockHeader(v ViewBlockHeader) error

FromViewBlockHeader overwrites any union data inside the ViewBlockUnion as the provided ViewBlockHeader

func (*ViewBlockUnion) FromViewBlockInput

func (t *ViewBlockUnion) FromViewBlockInput(v ViewBlockInput) error

FromViewBlockInput overwrites any union data inside the ViewBlockUnion as the provided ViewBlockInput

func (*ViewBlockUnion) FromViewBlockMarkdown

func (t *ViewBlockUnion) FromViewBlockMarkdown(v ViewBlockMarkdown) error

FromViewBlockMarkdown overwrites any union data inside the ViewBlockUnion as the provided ViewBlockMarkdown

func (*ViewBlockUnion) FromViewBlockPlainText

func (t *ViewBlockUnion) FromViewBlockPlainText(v ViewBlockPlainText) error

FromViewBlockPlainText overwrites any union data inside the ViewBlockUnion as the provided ViewBlockPlainText

func (*ViewBlockUnion) FromViewBlockRadio

func (t *ViewBlockUnion) FromViewBlockRadio(v ViewBlockRadio) error

FromViewBlockRadio overwrites any union data inside the ViewBlockUnion as the provided ViewBlockRadio

func (*ViewBlockUnion) FromViewBlockSelect

func (t *ViewBlockUnion) FromViewBlockSelect(v ViewBlockSelect) error

FromViewBlockSelect overwrites any union data inside the ViewBlockUnion as the provided ViewBlockSelect

func (*ViewBlockUnion) FromViewBlockTime

func (t *ViewBlockUnion) FromViewBlockTime(v ViewBlockTime) error

FromViewBlockTime overwrites any union data inside the ViewBlockUnion as the provided ViewBlockTime

func (ViewBlockUnion) MarshalJSON

func (t ViewBlockUnion) MarshalJSON() ([]byte, error)

func (*ViewBlockUnion) MergeViewBlockCheckbox

func (t *ViewBlockUnion) MergeViewBlockCheckbox(v ViewBlockCheckbox) error

MergeViewBlockCheckbox performs a merge with any union data inside the ViewBlockUnion, using the provided ViewBlockCheckbox

func (*ViewBlockUnion) MergeViewBlockDate

func (t *ViewBlockUnion) MergeViewBlockDate(v ViewBlockDate) error

MergeViewBlockDate performs a merge with any union data inside the ViewBlockUnion, using the provided ViewBlockDate

func (*ViewBlockUnion) MergeViewBlockDivider

func (t *ViewBlockUnion) MergeViewBlockDivider(v ViewBlockDivider) error

MergeViewBlockDivider performs a merge with any union data inside the ViewBlockUnion, using the provided ViewBlockDivider

func (*ViewBlockUnion) MergeViewBlockFileInput

func (t *ViewBlockUnion) MergeViewBlockFileInput(v ViewBlockFileInput) error

MergeViewBlockFileInput performs a merge with any union data inside the ViewBlockUnion, using the provided ViewBlockFileInput

func (*ViewBlockUnion) MergeViewBlockHeader

func (t *ViewBlockUnion) MergeViewBlockHeader(v ViewBlockHeader) error

MergeViewBlockHeader performs a merge with any union data inside the ViewBlockUnion, using the provided ViewBlockHeader

func (*ViewBlockUnion) MergeViewBlockInput

func (t *ViewBlockUnion) MergeViewBlockInput(v ViewBlockInput) error

MergeViewBlockInput performs a merge with any union data inside the ViewBlockUnion, using the provided ViewBlockInput

func (*ViewBlockUnion) MergeViewBlockMarkdown

func (t *ViewBlockUnion) MergeViewBlockMarkdown(v ViewBlockMarkdown) error

MergeViewBlockMarkdown performs a merge with any union data inside the ViewBlockUnion, using the provided ViewBlockMarkdown

func (*ViewBlockUnion) MergeViewBlockPlainText

func (t *ViewBlockUnion) MergeViewBlockPlainText(v ViewBlockPlainText) error

MergeViewBlockPlainText performs a merge with any union data inside the ViewBlockUnion, using the provided ViewBlockPlainText

func (*ViewBlockUnion) MergeViewBlockRadio

func (t *ViewBlockUnion) MergeViewBlockRadio(v ViewBlockRadio) error

MergeViewBlockRadio performs a merge with any union data inside the ViewBlockUnion, using the provided ViewBlockRadio

func (*ViewBlockUnion) MergeViewBlockSelect

func (t *ViewBlockUnion) MergeViewBlockSelect(v ViewBlockSelect) error

MergeViewBlockSelect performs a merge with any union data inside the ViewBlockUnion, using the provided ViewBlockSelect

func (*ViewBlockUnion) MergeViewBlockTime

func (t *ViewBlockUnion) MergeViewBlockTime(v ViewBlockTime) error

MergeViewBlockTime performs a merge with any union data inside the ViewBlockUnion, using the provided ViewBlockTime

func (*ViewBlockUnion) UnmarshalJSON

func (t *ViewBlockUnion) UnmarshalJSON(b []byte) error

type WebhookEvent

type WebhookEvent struct {
	// CreatedAt Дата и время создания события (ISO-8601, UTC+0) в формате YYYY-MM-DDThh:mm:ss.sssZ
	CreatedAt time.Time `json:"created_at"`

	// EventType Тип события
	EventType string `json:"event_type"`

	// Id Идентификатор события
	Id string `json:"id"`

	// Payload Объект вебхука
	Payload WebhookPayloadUnion `json:"payload"`
}

WebhookEvent Событие исходящего вебхука

type WebhookEventType

type WebhookEventType string

WebhookEventType Тип события webhook

const (
	Delete WebhookEventType = "delete"
	New    WebhookEventType = "new"
	Update WebhookEventType = "update"
)

Defines values for WebhookEventType.

type WebhookLink struct {
	// Domain Домен ссылки
	Domain string `json:"domain"`

	// Url URL ссылки
	Url string `json:"url"`
}

WebhookLink Объект ссылки в вебхуке разворачивания ссылок

type WebhookMessageThread

type WebhookMessageThread struct {
	// MessageChatId Идентификатор чата сообщения, к которому был создан тред
	MessageChatId int32 `json:"message_chat_id"`

	// MessageId Идентификатор сообщения, к которому был создан тред
	MessageId int32 `json:"message_id"`
}

WebhookMessageThread Объект треда в вебхуке сообщения

type WebhookPayloadUnion

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

WebhookPayloadUnion Объединение всех типов payload вебхуков

func (WebhookPayloadUnion) AsButtonWebhookPayload

func (t WebhookPayloadUnion) AsButtonWebhookPayload() (ButtonWebhookPayload, error)

AsButtonWebhookPayload returns the union data inside the WebhookPayloadUnion as a ButtonWebhookPayload

func (WebhookPayloadUnion) AsChatMemberWebhookPayload

func (t WebhookPayloadUnion) AsChatMemberWebhookPayload() (ChatMemberWebhookPayload, error)

AsChatMemberWebhookPayload returns the union data inside the WebhookPayloadUnion as a ChatMemberWebhookPayload

func (WebhookPayloadUnion) AsCompanyMemberWebhookPayload

func (t WebhookPayloadUnion) AsCompanyMemberWebhookPayload() (CompanyMemberWebhookPayload, error)

AsCompanyMemberWebhookPayload returns the union data inside the WebhookPayloadUnion as a CompanyMemberWebhookPayload

func (WebhookPayloadUnion) AsLinkSharedWebhookPayload

func (t WebhookPayloadUnion) AsLinkSharedWebhookPayload() (LinkSharedWebhookPayload, error)

AsLinkSharedWebhookPayload returns the union data inside the WebhookPayloadUnion as a LinkSharedWebhookPayload

func (WebhookPayloadUnion) AsMessageWebhookPayload

func (t WebhookPayloadUnion) AsMessageWebhookPayload() (MessageWebhookPayload, error)

AsMessageWebhookPayload returns the union data inside the WebhookPayloadUnion as a MessageWebhookPayload

func (WebhookPayloadUnion) AsReactionWebhookPayload

func (t WebhookPayloadUnion) AsReactionWebhookPayload() (ReactionWebhookPayload, error)

AsReactionWebhookPayload returns the union data inside the WebhookPayloadUnion as a ReactionWebhookPayload

func (*WebhookPayloadUnion) FromButtonWebhookPayload

func (t *WebhookPayloadUnion) FromButtonWebhookPayload(v ButtonWebhookPayload) error

FromButtonWebhookPayload overwrites any union data inside the WebhookPayloadUnion as the provided ButtonWebhookPayload

func (*WebhookPayloadUnion) FromChatMemberWebhookPayload

func (t *WebhookPayloadUnion) FromChatMemberWebhookPayload(v ChatMemberWebhookPayload) error

FromChatMemberWebhookPayload overwrites any union data inside the WebhookPayloadUnion as the provided ChatMemberWebhookPayload

func (*WebhookPayloadUnion) FromCompanyMemberWebhookPayload

func (t *WebhookPayloadUnion) FromCompanyMemberWebhookPayload(v CompanyMemberWebhookPayload) error

FromCompanyMemberWebhookPayload overwrites any union data inside the WebhookPayloadUnion as the provided CompanyMemberWebhookPayload

func (*WebhookPayloadUnion) FromLinkSharedWebhookPayload

func (t *WebhookPayloadUnion) FromLinkSharedWebhookPayload(v LinkSharedWebhookPayload) error

FromLinkSharedWebhookPayload overwrites any union data inside the WebhookPayloadUnion as the provided LinkSharedWebhookPayload

func (*WebhookPayloadUnion) FromMessageWebhookPayload

func (t *WebhookPayloadUnion) FromMessageWebhookPayload(v MessageWebhookPayload) error

FromMessageWebhookPayload overwrites any union data inside the WebhookPayloadUnion as the provided MessageWebhookPayload

func (*WebhookPayloadUnion) FromReactionWebhookPayload

func (t *WebhookPayloadUnion) FromReactionWebhookPayload(v ReactionWebhookPayload) error

FromReactionWebhookPayload overwrites any union data inside the WebhookPayloadUnion as the provided ReactionWebhookPayload

func (WebhookPayloadUnion) MarshalJSON

func (t WebhookPayloadUnion) MarshalJSON() ([]byte, error)

func (*WebhookPayloadUnion) MergeButtonWebhookPayload

func (t *WebhookPayloadUnion) MergeButtonWebhookPayload(v ButtonWebhookPayload) error

MergeButtonWebhookPayload performs a merge with any union data inside the WebhookPayloadUnion, using the provided ButtonWebhookPayload

func (*WebhookPayloadUnion) MergeChatMemberWebhookPayload

func (t *WebhookPayloadUnion) MergeChatMemberWebhookPayload(v ChatMemberWebhookPayload) error

MergeChatMemberWebhookPayload performs a merge with any union data inside the WebhookPayloadUnion, using the provided ChatMemberWebhookPayload

func (*WebhookPayloadUnion) MergeCompanyMemberWebhookPayload

func (t *WebhookPayloadUnion) MergeCompanyMemberWebhookPayload(v CompanyMemberWebhookPayload) error

MergeCompanyMemberWebhookPayload performs a merge with any union data inside the WebhookPayloadUnion, using the provided CompanyMemberWebhookPayload

func (*WebhookPayloadUnion) MergeLinkSharedWebhookPayload

func (t *WebhookPayloadUnion) MergeLinkSharedWebhookPayload(v LinkSharedWebhookPayload) error

MergeLinkSharedWebhookPayload performs a merge with any union data inside the WebhookPayloadUnion, using the provided LinkSharedWebhookPayload

func (*WebhookPayloadUnion) MergeMessageWebhookPayload

func (t *WebhookPayloadUnion) MergeMessageWebhookPayload(v MessageWebhookPayload) error

MergeMessageWebhookPayload performs a merge with any union data inside the WebhookPayloadUnion, using the provided MessageWebhookPayload

func (*WebhookPayloadUnion) MergeReactionWebhookPayload

func (t *WebhookPayloadUnion) MergeReactionWebhookPayload(v ReactionWebhookPayload) error

MergeReactionWebhookPayload performs a merge with any union data inside the WebhookPayloadUnion, using the provided ReactionWebhookPayload

func (*WebhookPayloadUnion) UnmarshalJSON

func (t *WebhookPayloadUnion) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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