4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-27 21:39:22 +00:00

Update dependencies (#1521)

This commit is contained in:
Wim
2021-06-16 21:00:49 +02:00
committed by GitHub
parent dedc1c45a1
commit fb5a84212c
243 changed files with 12622 additions and 14260 deletions

View File

@ -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

View File

@ -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

View File

@ -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.

35
vendor/github.com/SevereCloud/vksdk/v2/api/store.go generated vendored Normal file
View File

@ -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
}

View File

@ -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.

View File

@ -7,6 +7,6 @@ package vksdk
// Module constants.
const (
Version = "2.9.2"
API = "5.126"
Version = "2.10.0"
API = "5.131"
)

View File

@ -27,6 +27,7 @@ const (
LongPollTsKey
CallbackRetryCounterKey
CallbackRetryAfterKey
CallbackRemove
)
// ContextClient return *http.Client.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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"`

View File

@ -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"`
}

View File

@ -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.

View File

@ -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.

View File

@ -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"`

View File

@ -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