diff options
author | Wim <wim@42.be> | 2021-06-16 21:00:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 21:00:49 +0200 |
commit | fb5a84212c491332504fcdd4b5f4a4b97705d2e3 (patch) | |
tree | be03e973d30d040a49a90c47f1e6b73ed8922539 /vendor/github.com/SevereCloud | |
parent | dedc1c45a113d8db373d9e4638f54a0f9d29624f (diff) | |
download | matterbridge-msglm-fb5a84212c491332504fcdd4b5f4a4b97705d2e3.tar.gz matterbridge-msglm-fb5a84212c491332504fcdd4b5f4a4b97705d2e3.tar.bz2 matterbridge-msglm-fb5a84212c491332504fcdd4b5f4a4b97705d2e3.zip |
Update dependencies (#1521)
Diffstat (limited to 'vendor/github.com/SevereCloud')
16 files changed, 112 insertions, 26 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/README.md b/vendor/github.com/SevereCloud/vksdk/v2/README.md index 59224718..c3ddd2d3 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/README.md +++ b/vendor/github.com/SevereCloud/vksdk/v2/README.md @@ -14,7 +14,7 @@ ## Features -Version API 5.126. +Version API 5.131. - [API](https://pkg.go.dev/github.com/SevereCloud/vksdk/v2/api) - 400+ methods @@ -40,6 +40,9 @@ Version API 5.126. - Machine-readable ontology describing persons - Works with users and groups - The only place to get page creation date +- [Games](https://pkg.go.dev/github.com/SevereCloud/vksdk/v2/games) + - Checking launch parameters + - Intermediate http handler - [VK Mini Apps](https://pkg.go.dev/github.com/SevereCloud/vksdk/v2/vkapps) - Checking launch parameters - Intermediate http handler @@ -47,6 +50,7 @@ Version API 5.126. - Processes payment notifications - [Marusia Skills](https://pkg.go.dev/github.com/SevereCloud/vksdk/v2/marusia) - For creating Marusia Skills + - Support SSML ## Install diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/errors.go b/vendor/github.com/SevereCloud/vksdk/v2/api/errors.go index a852e7d9..e9ea1310 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/errors.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/errors.go @@ -174,6 +174,9 @@ const ( // Unknown group. ErrUnknownGroup ErrorType = 40 + // Additional signup required. + ErrAdditionalSignupRequired ErrorType = 41 + // One of the parameters specified was missing or invalid // // Check the required parameters list and their format on a method @@ -658,9 +661,15 @@ const ( // Item has bad links in description. ErrMarketItemHasBadLinks ErrorType = 1408 - // Shop not enabled. + // Extended market not enabled. ErrMarketShopNotEnabled ErrorType = 1409 + // Grouping items with different properties. + ErrMarketGroupingItemsWithDifferentProperties ErrorType = 1412 + + // Grouping already has such variant. + ErrMarketGroupingAlreadyHasSuchVariant ErrorType = 1413 + // Variant not found. ErrMarketVariantNotFound ErrorType = 1416 @@ -697,6 +706,9 @@ const ( // Crop size is less than the minimum. ErrMarketPhotosCropSizeTooLow ErrorType = 1435 + // Market not enabled. + ErrMarketNotEnabled ErrorType = 1438 + // Cart is empty. ErrMarketCartEmpty ErrorType = 1427 @@ -730,6 +742,15 @@ const ( // Servers number limit is reached. ErrCallbackServersLimit ErrorType = 2000 + // Stickers are not purchased. + ErrStickersNotPurchased ErrorType = 2100 + + // Too many favorite stickers. + ErrStickersTooManyFavorites ErrorType = 2101 + + // Stickers are not favorite. + ErrStickersNotFavorite ErrorType = 2102 + // Specified link is incorrect (can't find source). ErrWallCheckLinkCantDetermineSource ErrorType = 3102 diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/market.go b/vendor/github.com/SevereCloud/vksdk/v2/api/market.go index dc140a86..f78a068d 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/market.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/market.go @@ -306,8 +306,9 @@ func (vk *VK) MarketRestoreComment(params Params) (response int, err error) { // MarketSearchResponse struct. type MarketSearchResponse struct { - Count int `json:"count"` - Items []object.MarketMarketItem `json:"items"` + Count int `json:"count"` + Items []object.MarketMarketItem `json:"items"` + ViewType int `json:"view_type"` } // MarketSearch searches market items in a community's catalog. diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/store.go b/vendor/github.com/SevereCloud/vksdk/v2/api/store.go new file mode 100644 index 00000000..a2df4ca0 --- /dev/null +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/store.go @@ -0,0 +1,35 @@ +package api // import "github.com/SevereCloud/vksdk/api" + +import ( + "github.com/SevereCloud/vksdk/v2/object" +) + +// StoreAddStickersToFavorite add stickers to favorite. +// +// https://vk.com/dev/store.addStickersToFavorite +func (vk *VK) StoreAddStickersToFavorite(params Params) (response int, err error) { + err = vk.RequestUnmarshal("store.addStickersToFavorite", &response, params) + return +} + +// StoreGetFavoriteStickersResponse struct. +type StoreGetFavoriteStickersResponse struct { + Count int `json:"count"` + Items []object.BaseSticker `json:"items"` +} + +// StoreGetFavoriteStickers return favorite stickers. +// +// https://vk.com/dev/store.getFavoriteStickers +func (vk *VK) StoreGetFavoriteStickers(params Params) (response StoreGetFavoriteStickersResponse, err error) { + err = vk.RequestUnmarshal("store.getFavoriteStickers", &response, params) + return +} + +// StoreRemoveStickersFromFavorite remove stickers from favorite. +// +// https://vk.com/dev/store.removeStickersFromFavorite +func (vk *VK) StoreRemoveStickersFromFavorite(params Params) (response int, err error) { + err = vk.RequestUnmarshal("store.removeStickersFromFavorite", &response, params) + return +} diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go b/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go index 46c643b9..b68424b8 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go @@ -1,6 +1,8 @@ package api // import "github.com/SevereCloud/vksdk/v2/api" -import "github.com/SevereCloud/vksdk/v2/object" +import ( + "github.com/SevereCloud/vksdk/v2/object" +) // StoriesBanOwner allows to hide stories from chosen sources from current user's feed. // @@ -240,6 +242,7 @@ func (vk *VK) StoriesHideReply(params Params) (response int, err error) { type StoriesSaveResponse struct { Count int `json:"count"` Items []object.StoriesStory `json:"items"` + object.ExtendedResponse } // StoriesSave method. diff --git a/vendor/github.com/SevereCloud/vksdk/v2/doc.go b/vendor/github.com/SevereCloud/vksdk/v2/doc.go index dd947709..1be7800e 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/doc.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/doc.go @@ -7,6 +7,6 @@ package vksdk // Module constants. const ( - Version = "2.9.2" - API = "5.126" + Version = "2.10.0" + API = "5.131" ) diff --git a/vendor/github.com/SevereCloud/vksdk/v2/internal/transport.go b/vendor/github.com/SevereCloud/vksdk/v2/internal/transport.go index 2ff8fbb3..6611b496 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/internal/transport.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/internal/transport.go @@ -27,6 +27,7 @@ const ( LongPollTsKey CallbackRetryCounterKey CallbackRetryAfterKey + CallbackRemove ) // ContextClient return *http.Client. 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 |