models

package
v0.0.0-...-60cd5c1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessType

type AccessType int
const (
	NormalAccess AccessType = 3
)

type ActiveMeetup

type ActiveMeetup struct {
	MessageId           string
	ConversationURL     string    `json:"conversationUrl"`
	ConversationId      string    `json:"conversationId"`
	GroupCallInitiator  string    `json:"groupCallInitiator"`
	WasInitiatorInLobby bool      `json:"wasInitiatorInLobby"`
	Expiration          time.Time `json:"expiration"`
	Status              string    `json:"status"`
	IsHostless          bool      `json:"isHostless"`
	TenantId            string    `json:"tenantId"`
	OrganizerId         string    `json:"organizerId"`
	CallMeetingType     int       `json:"callMeetingType"`
	ConversationType    string    `json:"conversationType"`
}

type AnnotationsSummary

type AnnotationsSummary struct {
	Emotions map[string]int64
}

type CSATeam

type CSATeam struct {
	AccessType                     AccessType          `json:"accessType"`
	ChannelOnlyMember              bool                `json:"channelOnlyMember"`
	Channels                       []Channel           `json:"channels"`
	Classification                 string              `json:"classification"`
	ConversationVersion            string              `json:"conversationVersion"`
	Creator                        string              `json:"creator"`
	Description                    string              `json:"description"`
	DisplayName                    string              `json:"displayName"`
	DynamicMembership              bool                `json:"dynamicMembership"`
	GuestUsersCategory             string              `json:"guestUsersCategory"`
	Id                             string              `json:"id"`
	IsArchived                     bool                `json:"isArchived"`
	IsCollapsed                    bool                `json:"isCollapsed"`
	IsCreator                      bool                `json:"isCreator"`
	IsDeleted                      bool                `json:"isDeleted"`
	IsFavorite                     bool                `json:"isFavorite"`
	IsFollowed                     bool                `json:"isFollowed"`
	IsTeamLocked                   bool                `json:"isTeamLocked"`
	IsTenantWide                   bool                `json:"isTenantWide"`
	IsUnlockMembershipSyncRequired bool                `json:"isUnlockMembershipSyncRequired"`
	IsUserMuted                    bool                `json:"isUserMuted"`
	LastJoinAt                     string              `json:"lastJoinAt"`
	MaximumMemberLimitExceeded     bool                `json:"maximumMemberLimitExceeded"`
	MemberRole                     MemberRole          `json:"memberRole"`
	MembershipExpiry               int                 `json:"membershipExpiry"`
	MembershipSummary              *MembershipSummary  `json:"membershipSummary"`
	MembershipVersion              int                 `json:"membershipVersion"`
	PictureETag                    string              `json:"pictureETag"`
	SmtpAddress                    string              `json:"smtpAddress"`
	TeamGuestSettings              TeamSettings        `json:"teamGuestSettings"`
	TeamSettings                   TeamSettings        `json:"teamSettings"`
	TeamSiteInformation            TeamSiteInformation `json:"teamSiteInformation"`
	TeamStatus                     TeamStatus          `json:"teamStatus"`
	TeamType                       TeamType            `json:"teamType"`
	ExtensionDefinition            ExtensionDefinition `json:"extensionDefinition"`
	TenantId                       string              `json:"tenantId"`
	ThreadSchemaVersion            string              `json:"threadSchemaVersion,omitempty"`
	ThreadVersion                  string              `json:"threadVersion"`
}

type Channel

type Channel struct {
	Id                       string
	DisplayName              string
	Description              string
	ConsumptionHorizon       *ConsumptionHorizon
	RetentionHorizon         *RetentionHorizon
	RetentionHorizonV2       *RetentionHorizonV2
	Version                  int
	ThreadVersion            int
	ParentTeamId             string
	IsGeneral                bool
	IsFavorite               bool
	IsFollowed               bool
	IsMember                 bool
	Creator                  string
	IsMessageRead            bool
	IsImportantMessageRead   bool
	IsGapDetectionEnabled    bool
	DefaultFileSettings      FileSettings
	Tabs                     []Tab
	LastMessage              Message
	ConnectorProfiles        []ConnectorProfile
	IsDeleted                bool
	IsPinned                 bool
	IsShared                 bool
	LastImportantMessageTime time.Time
	LastLeaveAt              time.Time
	LastJoinAt               time.Time
	MemberRole               MemberRole
	IsMuted                  bool
	MembershipExpiry         int
	ActiveMeetups            []ActiveMeetup
	IsFavoriteByDefault      bool
	CreationTime             time.Time
	IsArchived               bool
	ChannelType              ChannelType
	ChannelSettings          ChannelSettings
	MembershipVersion        int
	MembershipSummary        *MembershipSummary
	MemberSettings           MemberSettings `json:"memberSettings"`
	GuestSettings            MemberSettings `json:"guestSettings"`
	IsModerator              bool
	GroupId                  string
	ChannelOnlyMember        bool
	ExplicitlyAdded          bool
	ThreadSchemaVersion      string `json:"threadSchemaVersion,omitempty"`
	UserConsumptionHorizon   ConsumptionHorizon
	TenantId                 string `json:"tenantId"`
}

type ChannelSettings

type ChannelSettings struct {
	ChannelPostPermissions           int
	ChannelReplyPermissions          int
	ChannelPinPostPermissions        int
	ChannelConnectorsPostPermissions int
	ChannelBotsPostPermissions       int
}

type ChannelType

type ChannelType int
const (
	NormalChannel ChannelType = iota
)

type Chat

type Chat struct {
	ChatSubType               int                `json:"chatSubType"`
	ChatType                  string             `json:"chatType"`
	ConsumptionHorizon        ConsumptionHorizon `json:"consumptionHorizon"`
	ConversationBlockedAt     int                `json:"conversationBlockedAt"`
	CreatedAt                 string             `json:"createdAt"`
	Creator                   string             `json:"creator"`
	HasTranscript             bool               `json:"hasTranscript"`
	Hidden                    bool               `json:"hidden"`
	Id                        string             `json:"id"`
	InteropConversationStatus string             `json:"interopConversationStatus"`
	InteropType               int                `json:"interopType"`
	IsDisabled                bool               `json:"isDisabled"`
	IsGapDetectionEnabled     bool               `json:"isGapDetectionEnabled"`
	IsHighImportance          bool               `json:"isHighImportance"`
	IsLastMessageFromMe       bool               `json:"isLastMessageFromMe"`
	IsMessagingDisabled       bool               `json:"isMessagingDisabled"`
	IsOneOnOne                bool               `json:"isOneOnOne"`
	IsRead                    bool               `json:"isRead"`
	IsSticky                  bool               `json:"isSticky"`
	IsShared                  bool               `json:"isShared"`
	LastJoinAt                time.Time          `json:"lastJoinAt"`
	LastLeaveAt               time.Time          `json:"lastLeaveAt"`
	LastMessage               Message            `json:"lastMessage"`
	MeetingInformation        MeetingInfo        `json:"meetingInformation"`
	MeetingPolicy             string             `json:"meetingPolicy"`
	Members                   []ChatMember       `json:"members"`
	RetentionHorizon          string             `json:"retentionHorizon"`
	RetentionHorizonV2        string             `json:"retentionHorizonV2"`
	ShareHistoryFromTime      string             `json:"shareHistoryFromTime"`
	Tabs                      []Tab              `json:"tabs"`
	TenantId                  string             `json:"tenantId"`
	ThreadVersion             int                `json:"threadVersion"`
	ThreadSchemaVersion       string             `json:"threadSchemaVersion,omitempty"`
	Title                     string             `json:"title"`
	UserConsumptionHorizon    ConsumptionHorizon `json:"userConsumptionHorizon"`
	Version                   int                `json:"version"`
}

type ChatMember

type ChatMember struct {
	IsMuted      bool
	Mri          string
	Role         ChatMemberRole
	FriendlyName string
	TenantId     string
	ObjectId     string
}

type ChatMemberRole

type ChatMemberRole string
const (
	ChatMemberAdmin ChatMemberRole = "Admin"
)

type ChatMessage

type ChatMessage struct {
	Id                  string
	SequenceId          int64
	SkypeEditedId       string
	SkypeEditOffset     int
	ClientMessageId     string
	Version             string
	ConversationId      string
	ConversationLink    string
	Type                ChatMessageType
	MessageType         string
	ContentType         string
	Content             string
	AmsReferences       []string
	From                string
	FromTenantId        string
	ImDisplayName       string
	S2SPartnerName      string
	ComposeTime         RFC3339Time
	OriginalArrivalTime RFC3339Time
	Properties          ChatMessageProperties
	AnnotationsSummary  AnnotationsSummary
}

type ChatMessageProperties

type ChatMessageProperties struct {
	Subject               string
	Title                 string
	EmailDetails          string
	Meta                  string
	Files                 string
	Emotions              []Emotion
	DeltaEmotions         []DeltaEmotion
	DeleteTime            int64 // TODO: Convert to time.Time ?
	AdminDelete           bool
	S2SPartnerName        string
	Mentions              string
	Links                 string
	EditTime              interface{} // Can be either string or int64, wtf? TODO: Convert to time.Time ?
	CounterPartyMessageId int64
	OriginContextId       int64
	ParentMessageId       int64
	SkipFanOutToBots      interface{} // Can be either string or bool, wtf?
	Cards                 string
	Importance            string
	Atp                   string
	CrossPostId           string
	Meeting               string
	SkypeGuid             string
}

type ChatMessageType

type ChatMessageType string
const (
	ChatMessageTypeMessage  ChatMessageType = "Message"
	EvenCall                ChatMessageType = "Event/Call"
	ThreadActivityAddMember ChatMessageType = "ThreadActivity/AddMember"
)

type ConnectorProfile

type ConnectorProfile struct {
	AvatarUrl     string
	DisplayName   string
	IncomingUrl   *string
	ConnectorType string
	Id            string
}

type ConsumptionHorizon

type ConsumptionHorizon struct {
	OriginalArrivalTime int
	TimeStamp           int
	ClientMessageId     string
}

type ConversationMetadata

type ConversationMetadata struct {
	SyncToken     string
	IsPartialData bool
}

type ConversationResponse

type ConversationResponse struct {
	Chats        []Chat
	Metadata     ConversationMetadata
	PrivateFeeds []PrivateFeed
	Teams        []CSATeam
	Users        []User
}

type DateRange

type DateRange struct {
	StartDate time.Time
	EndDate   time.Time
}

type DeltaEmotion

type DeltaEmotion struct {
	Key   string
	Users []UserEmotion
}

type Emotion

type Emotion struct {
	Key   string
	Users []UserEmotion
}

type ExtensionDefinition

type ExtensionDefinition struct {
	UpdatedTime time.Time
}

type FeatureSettings

type FeatureSettings struct {
	IsPrivateChatEnabled           bool
	EnableShiftPresence            bool
	CoExistenceMode                string
	EnableScheduleOwnerPermissions bool
}

type FeedProperty

type FeedProperty struct {
	IsEmptyConversation        string
	ConsumptionHorizon         string
	ConsumptionHorizonBookmark string
}

type FileSettings

type FileSettings struct {
	FilesRelativePath     string
	DocumentLibraryId     string
	SharepointRootLibrary string
}

type MeetingInfo

type MeetingInfo struct {
	Subject                string
	Location               string
	StartTime              string // TODO: Switch to time.Time
	EndTime                string // TODO: Switch to time.Time
	ExchangeId             *string
	ICalUid                string
	IsCancelled            bool
	EventRecurrenceRange   DateRange
	EventRecurrencePattern RecurrencePattern
	AppointmentType        int
	MeetingType            int
	Scenario               string
	TenantId               string `json:"tenantId"`
}

type MemberRole

type MemberRole int
const (
	MemberRole_Unknown MemberRole = iota
	MemberRole_Member
)

type MemberSettings

type MemberSettings TeamSettings

type MembershipSummary

type MembershipSummary struct {
	BotCount          int `json:"botCount"`
	MutedMembersCount int `json:"mutedMembersCount"`
	TotalMemberCount  int
	AdminRoleCount    int
	UserRoleCount     int
	GuestRoleCount    int
}

type Message

type Message struct {
	MessageType             MessageType
	Content                 string
	ClientMessageId         string
	ImDisplayName           string
	Id                      string
	Type                    string
	ComposeTime             RFC3339Time
	OriginalArrivalTime     RFC3339Time
	ContainerId             string
	ParentMessageId         string
	From                    string
	SequenceId              int
	Version                 int
	ThreadType              *string
	IsEscalationToNewPerson bool
}

type MessageType

type MessageType string
const (
	TextMessage MessageType = "Text"
)

type MessagesMetadata

type MessagesMetadata struct {
	BackwardLink                 string
	SyncState                    string
	LastCompleteSegmentStartTime int64 // TODO: Parse as time.Time
	LastCompleteSegmentEndTime   int64 // TODO: Parse as time.Time
}

type MessagesResponse

type MessagesResponse struct {
	Messages []ChatMessage    `json:"messages"`
	Metadata MessagesMetadata `json:"_metadata"`
}

type MonthlyRecurrence

type MonthlyRecurrence struct {
	Interval            int
	WeekOfTheMonthIndex int
	DayOfTheWeek        int
}

type Phone

type Phone struct {
	Type   PhoneType `json:"type"`
	Number string    `json:"number"`
}

type PhoneType

type PhoneType string
const (
	MobilePhone PhoneType = "Mobile"
)

type PrivateFeed

type PrivateFeed struct {
	Id          string
	Type        string
	Version     int
	Properties  FeedProperty
	LastMessage Message
	Messages    string
	TargetLink  string
	StreamType  string
}

type RFC3339Time

type RFC3339Time time.Time

func (*RFC3339Time) MarshalJSON

func (t *RFC3339Time) MarshalJSON() ([]byte, error)

func (*RFC3339Time) UnmarshalJSON

func (t *RFC3339Time) UnmarshalJSON(bytes []byte) error

type RecurrencePattern

type RecurrencePattern struct {
	PatternType     int
	Weekly          WeeklyRecurrence
	RelativeMonthly MonthlyRecurrence
}

type RetentionHorizon

type RetentionHorizon struct {
}

type RetentionHorizonV2

type RetentionHorizonV2 struct {
}

type SkypeTeamsInfo

type SkypeTeamsInfo struct {
	IsSkypeTeamsUser bool
}

type SortMessageByTime

type SortMessageByTime []ChatMessage

func (SortMessageByTime) Len

func (s SortMessageByTime) Len() int

func (SortMessageByTime) Less

func (s SortMessageByTime) Less(i, j int) bool

func (SortMessageByTime) Swap

func (s SortMessageByTime) Swap(i, j int)

type Tab

type Tab struct {
	Id           string
	Name         string
	DefinitionId string
	Directive    string
	TabType      string
	Order        float32
	ReplyChainId int
	Settings     interface{}
}

type TeamSettings

type TeamSettings struct {
	AddDisplayContent               bool `json:"addDisplayContent"`
	AdminDeleteEnabled              bool `json:"adminDeleteEnabled"`
	ChannelMention                  bool `json:"channelMention"`
	CreateIntegration               bool `json:"createIntegration"`
	CreateTab                       bool `json:"createTab"`
	CreateTopic                     bool `json:"createTopic"`
	CustomMemesEnabled              bool `json:"customMemesEnabled"`
	DeleteEnabled                   bool `json:"deleteEnabled"`
	DeleteIntegration               bool `json:"deleteIntegration"`
	DeleteTab                       bool `json:"deleteTab"`
	DeleteTopic                     bool `json:"deleteTopic"`
	EditEnabled                     bool `json:"editEnabled"`
	GeneralChannelPosting           int  `json:"generalChannelPosting"`
	GiphyEnabled                    bool `json:"giphyEnabled"`
	GiphyRating                     int  `json:"giphyRating"`
	InstallApp                      bool `json:"installApp"`
	IsPrivateChannelCreationEnabled bool `json:"isPrivateChannelCreationEnabled"`
	MessageThreadingEnabled         bool `json:"messageThreadingEnabled"`
	RemoveDisplayContent            bool `json:"removeDisplayContent"`
	StickersEnabled                 bool `json:"stickersEnabled"`
	TeamMemesEnabled                bool `json:"teamMemesEnabled"`
	TeamMention                     bool `json:"teamMention"`
	UninstallApp                    bool `json:"uninstallApp"`
	UpdateIntegration               bool `json:"updateIntegration"`
	UpdateTopic                     bool `json:"updateTopic"`
	UploadCustomApp                 bool `json:"uploadCustomApp"`
}

type TeamSiteInformation

type TeamSiteInformation struct {
	GroupId              string
	SharepointSiteUrl    string
	NotebookId           string
	IsOneNoteProvisioned bool
}

type TeamStatus

type TeamStatus struct {
	ExchangeTeamCreationStatus   int
	SharePointSiteCreationStatus int
	TeamNotebookCreationStatus   int
	ExchangeTeamDeletionStatus   int
}

type TeamType

type TeamType int
const (
	NormalTeam TeamType = 0
)

type Tenant

type Tenant struct {
	TenantID             string     `json:"tenantId"`
	TenantName           string     `json:"tenantName"`
	UserId               string     `json:"userId"`
	IsInvitationRedeemed bool       `json:"isInvitationRedeemed"`
	CountryLetterCode    string     `json:"countryLetterCode"`
	UserType             UserType   `json:"userType"`
	TenantType           TenantType `json:"tenantType"`
}

type TenantType

type TenantType string
const (
	Organization TenantType = "organization"
)

type User

type User struct {
	Alias                      string          `json:"alias"`
	AccountEnabled             bool            `json:"accountEnabled,omitempty"`
	Department                 string          `json:"department,omitempty"`
	DisplayName                string          `json:"displayName"`
	Email                      string          `json:"email"`
	FeatureSettings            FeatureSettings `json:"featureSettings,omitempty"`
	GivenName                  string          `json:"givenName"`
	IsShortProfile             bool            `json:"isShortProfile"`
	IsSipDisabled              bool            `json:"isSipDisabled,omitempty"`
	JobTitle                   string          `json:"jobTitle"`
	Mail                       string          `json:"mail,omitempty"`
	Mobile                     string          `json:"mobile,omitempty"`
	Mri                        string          `json:"mri,omitempty"`
	ObjectId                   string          `json:"objectId"`
	ObjectType                 string          `json:"objectType,omitempty"`
	Phones                     []Phone         `json:"phones,omitempty"`
	PhysicalDeliveryOfficeName string          `json:"physicalDeliveryOfficeName,omitempty"`
	PreferredLanguage          string          `json:"preferredLanguage,omitempty"`
	ResponseSourceInformation  string          `json:"responseSourceInformation,omitempty"`
	ShowInAddressList          bool            `json:"showInAddressList,omitempty"`
	SipProxyAddress            string          `json:"sipProxyAddress,omitempty"`
	SkypeTeamsInfo             SkypeTeamsInfo  `json:"skypeTeamsInfo,omitempty"`
	SmtpAddresses              []string        `json:"smtpAddresses,omitempty"`
	Surname                    string          `json:"surname"`
	TenantName                 string          `json:"tenantName"`
	TelephoneNumber            string          `json:"telephoneNumber,omitempty"`
	Type                       string          `json:"type"`
	UserLocation               string          `json:"userLocation"`
	UserPrincipalName          string          `json:"userPrincipalName"`
	UserType                   string          `json:"userType,omitempty"`
}

type UserEmotion

type UserEmotion struct {
	Mri   string
	Time  int64 // TODO: Convert to time.time ?
	Value string
}

type UserResponse

type UserResponse struct {
	Value User   `json:"value"`
	Type  string `json:"type"`
}

type UserType

type UserType string
const (
	Member UserType = "member"
)

type UsersResponse

type UsersResponse struct {
	Value []User `json:"value"`
	Type  string `json:"type"`
}

type WeeklyRecurrence

type WeeklyRecurrence struct {
	Interval      int
	DaysOfTheWeek []int
}

Jump to

Keyboard shortcuts

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