summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/SevereCloud/vksdk/v2/object
diff options
context:
space:
mode:
authorWim <wim@42.be>2021-06-16 21:00:49 +0200
committerGitHub <noreply@github.com>2021-06-16 21:00:49 +0200
commitfb5a84212c491332504fcdd4b5f4a4b97705d2e3 (patch)
treebe03e973d30d040a49a90c47f1e6b73ed8922539 /vendor/github.com/SevereCloud/vksdk/v2/object
parentdedc1c45a113d8db373d9e4638f54a0f9d29624f (diff)
downloadmatterbridge-msglm-fb5a84212c491332504fcdd4b5f4a4b97705d2e3.tar.gz
matterbridge-msglm-fb5a84212c491332504fcdd4b5f4a4b97705d2e3.tar.bz2
matterbridge-msglm-fb5a84212c491332504fcdd4b5f4a4b97705d2e3.zip
Update dependencies (#1521)
Diffstat (limited to 'vendor/github.com/SevereCloud/vksdk/v2/object')
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/object/account.go8
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/object/groups.go1
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/object/market.go6
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/object/messages.go3
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/object/object.go1
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/object/polls.go1
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/object/stories.go19
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/object/users.go1
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/object/video.go19
9 files changed, 40 insertions, 19 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/account.go b/vendor/github.com/SevereCloud/vksdk/v2/object/account.go
index cac22def..82247745 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/object/account.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/object/account.go
@@ -16,9 +16,11 @@ type AccountPushConversations struct {
// AccountPushConversationsItem struct.
type AccountPushConversationsItem struct {
- DisabledUntil int `json:"disabled_until"` // Time until that notifications are disabled in seconds
- PeerID int `json:"peer_id"` // Peer ID
- Sound int `json:"sound"` // Information whether the sound are enabled
+ DisabledUntil int `json:"disabled_until"` // Time until that notifications are disabled in seconds
+ PeerID int `json:"peer_id"` // Peer ID
+ Sound int `json:"sound"` // Information whether the sound are enabled
+ DisabledMentions BaseBoolInt `json:"disabled_mentions"`
+ DisabledMassMentions BaseBoolInt `json:"disabled_mass_mentions"`
}
// AccountPushParams struct.
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/groups.go b/vendor/github.com/SevereCloud/vksdk/v2/object/groups.go
index b66c1ee6..d1f31e95 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/object/groups.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/object/groups.go
@@ -32,6 +32,7 @@ type GroupsAddress struct {
Timetable GroupsAddressTimetable `json:"timetable"` // Week timetable for the address
Title string `json:"title"` // Title of the place (Zinger, etc)
WorkInfoStatus string `json:"work_info_status"` // Status of information about timetable
+ PlaceID int `json:"place_id"`
}
// GroupsAddressTimetable Timetable for a week.
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/market.go b/vendor/github.com/SevereCloud/vksdk/v2/object/market.go
index 8f5d172f..a74f8b83 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/object/market.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/object/market.go
@@ -15,8 +15,9 @@ const (
// MarketCurrency struct.
type MarketCurrency struct {
- ID int `json:"id"` // Currency ID
- Name string `json:"name"` // Currency sign
+ ID int `json:"id"` // Currency ID
+ Name string `json:"name"` // Currency sign
+ Title string `json:"title"` // Currency Title
}
// MarketMarketAlbum struct.
@@ -72,6 +73,7 @@ type MarketMarketItem struct {
VariantsGroupingID int `json:"variants_grouping_id"`
PropertyValues []MarketMarketItemProperty `json:"property_values"`
CartQuantity int `json:"cart_quantity"`
+ SKU string `json:"sku"`
}
// UnmarshalJSON MarketMarketItem.
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/messages.go b/vendor/github.com/SevereCloud/vksdk/v2/object/messages.go
index 65c65f53..c6fcf5d8 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/object/messages.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/object/messages.go
@@ -63,6 +63,7 @@ type MessagesMessage struct {
Important BaseBoolInt `json:"important"` // Is it an important message
IsHidden BaseBoolInt `json:"is_hidden"`
IsCropped BaseBoolInt `json:"is_cropped"`
+ IsSilent BaseBoolInt `json:"is_silent"`
Out BaseBoolInt `json:"out"` // Information whether the message is outcoming
WasListened BaseBoolInt `json:"was_listened,omitempty"`
Keyboard MessagesKeyboard `json:"keyboard"`
@@ -461,6 +462,7 @@ type MessagesChatPreview struct {
LocalID int `json:"local_id"`
Joined bool `json:"joined"`
ChatSettings MessagesConversationChatSettings `json:"chat_settings"`
+ IsMember BaseBoolInt `json:"is_member"`
}
// MessagesChatPushSettings struct.
@@ -510,6 +512,7 @@ type MessagesConversationCanWrite struct {
// MessagesConversationChatSettings struct.
type MessagesConversationChatSettings struct {
MembersCount int `json:"members_count"`
+ FriendsCount int `json:"friends_count"`
Photo MessagesChatSettingsPhoto `json:"photo"`
PinnedMessage MessagesPinnedMessage `json:"pinned_message"`
State string `json:"state"`
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/object.go b/vendor/github.com/SevereCloud/vksdk/v2/object/object.go
index 4daf7c07..e6c89efd 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/object/object.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/object/object.go
@@ -262,6 +262,7 @@ type BaseSticker struct {
ImagesWithBackground []BaseImage `json:"images_with_background"`
ProductID int `json:"product_id"`
StickerID int `json:"sticker_id"`
+ IsAllowed bool `json:"is_allowed"`
AnimationURL string `json:"animation_url"`
}
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/polls.go b/vendor/github.com/SevereCloud/vksdk/v2/object/polls.go
index a2f69656..44593da0 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/object/polls.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/object/polls.go
@@ -38,6 +38,7 @@ type PollsPoll struct {
Friends []PollsFriend `json:"friends"`
Profiles []UsersUser `json:"profiles"`
Groups []GroupsGroup `json:"groups"`
+ EmbedHash string `json:"embed_hash"`
}
// ToAttachment return attachment format.
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/stories.go b/vendor/github.com/SevereCloud/vksdk/v2/object/stories.go
index 8995e8d4..248fd8c0 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/object/stories.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/object/stories.go
@@ -27,7 +27,9 @@ type StoriesNarrativeInfo struct {
Views int `json:"views"`
}
-// StoriesPromoData struct.
+// StoriesPromoData additional data for promo stories.
+//
+// TODO: v3 rename StoriesPromoBlock.
type StoriesPromoData struct {
Name string `json:"name"`
Photo50 string `json:"photo_50"`
@@ -164,11 +166,16 @@ const (
// StoriesFeedItem struct.
type StoriesFeedItem struct {
- Type StoriesFeedItemType `json:"type"`
- ID string `json:"id"`
- Stories []StoriesStory `json:"stories"`
- Grouped StoriesFeedItemType `json:"grouped"`
- App AppsApp `json:"app"`
+ Type StoriesFeedItemType `json:"type"`
+ ID string `json:"id"`
+ Stories []StoriesStory `json:"stories"`
+ Grouped StoriesFeedItemType `json:"grouped"`
+ App AppsApp `json:"app"`
+ BirthdayUserID int `json:"birthday_user_id"`
+ TrackCode string `json:"track_code"`
+ HasUnseen BaseBoolInt `json:"has_unseen"`
+ Name string `json:"name"`
+ PromoData StoriesPromoData `json:"promo_data"`
}
// StoriesClickableStickers struct.
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/users.go b/vendor/github.com/SevereCloud/vksdk/v2/object/users.go
index c578c489..24a08d63 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/object/users.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/object/users.go
@@ -69,6 +69,7 @@ type UsersUser struct {
CanSeeAudio BaseBoolInt `json:"can_see_audio"`
CanWritePrivateMessage BaseBoolInt `json:"can_write_private_message"`
CanSendFriendRequest BaseBoolInt `json:"can_send_friend_request"`
+ CanCallFromGroup BaseBoolInt `json:"can_call_from_group"`
Verified BaseBoolInt `json:"verified"`
Trending BaseBoolInt `json:"trending"`
Blacklisted BaseBoolInt `json:"blacklisted"`
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/video.go b/vendor/github.com/SevereCloud/vksdk/v2/object/video.go
index 993b0c90..0816af24 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/object/video.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/object/video.go
@@ -81,14 +81,15 @@ func (video VideoVideo) ToAttachment() string {
// VideoRestriction struct.
type VideoRestriction struct {
- Title string `json:"title"`
- Text string `json:"text"`
- AlwaysShown BaseBoolInt `json:"always_shown"`
- Blur BaseBoolInt `json:"blur"`
- CanPlay BaseBoolInt `json:"can_play"`
- CanPreview BaseBoolInt `json:"can_preview"`
- CardIcon []BaseImage `json:"card_icon"`
- ListIcon []BaseImage `json:"list_icon"`
+ Title string `json:"title"`
+ Text string `json:"text"`
+ AlwaysShown BaseBoolInt `json:"always_shown"`
+ Blur BaseBoolInt `json:"blur"`
+ CanPlay BaseBoolInt `json:"can_play"`
+ CanPreview BaseBoolInt `json:"can_preview"`
+ CardIcon []BaseImage `json:"card_icon"`
+ ListIcon []BaseImage `json:"list_icon"`
+ DisclaimerType int `json:"disclaimer_type"`
}
// VideoActionButton struct.
@@ -113,6 +114,8 @@ type VideoSnippet struct {
type VideoVideoFiles struct {
External string `json:"external"` // URL of the external player
Mp4_1080 string `json:"mp4_1080"` // URL of the mpeg4 file with 1080p quality
+ Mp4_1440 string `json:"mp4_1440"` // URL of the mpeg4 file with 2k quality
+ Mp4_2160 string `json:"mp4_2160"` // URL of the mpeg4 file with 4k quality
Mp4_240 string `json:"mp4_240"` // URL of the mpeg4 file with 240p quality
Mp4_360 string `json:"mp4_360"` // URL of the mpeg4 file with 360p quality
Mp4_480 string `json:"mp4_480"` // URL of the mpeg4 file with 480p quality