vk-io-stable
Version:
Модуль для создания бота VK
2,721 lines (2,522 loc) • 120 kB
TypeScript
/* eslint-disable */
export interface AccountAccountCounters {
/**
* New app requests number
*/
app_requests?: number;
/**
* New events number
*/
events?: number;
/**
* New friends requests number
*/
friends?: number;
/**
* New friends suggestions number
*/
friends_suggestions?: number;
/**
* New gifts number
*/
gifts?: number;
/**
* New groups number
*/
groups?: number;
/**
* New messages number
*/
messages?: number;
/**
* New notifications number
*/
notifications?: number;
/**
* New photo tags number
*/
photos?: number;
/**
* New video tags number
*/
videos?: number;
[key: string]: any;
}
export interface AccountInfo {
/**
* Country code
*/
country?: string;
/**
* Language ID
*/
lang?: number;
[key: string]: any;
}
export interface AccountNameRequest {
/**
* First name in request
*/
first_name?: string;
/**
* Request ID needed to cancel the request
*/
id?: number;
/**
* Last name in request
*/
last_name?: string;
[key: string]: any;
}
export type AccountNameRequestStatus = "success" | "processing" | "declined" | "was_accepted" | "was_declined";
export interface AccountOffer {
/**
* Offer description
*/
description?: string;
/**
* Offer ID
*/
id?: number;
/**
* URL of the preview image
*/
img?: string;
/**
* Instruction how to process the offer
*/
instruction?: string;
/**
* Instruction how to process the offer (HTML format)
*/
instruction_html?: string;
/**
* Offer price
*/
price?: number;
/**
* Offer short description
*/
short_description?: string;
/**
* Offer tag
*/
tag?: string;
/**
* Offer title
*/
title?: string;
[key: string]: any;
}
export type AccountOnoffOptions = "on" | "off";
export interface AccountPushConversations {
/**
* Items count
*/
count?: number;
[key: string]: any;
items?: AccountPushConversationsItem[];
}
export interface AccountPushConversationsItem {
/**
* Time until that notifications are disabled in seconds
*/
disabled_until?: number;
/**
* Peer ID
*/
peer_id?: number;
[key: string]: any;
}
export interface AccountPushParams {
[key: string]: any;
app_request?: AccountOnoffOptions[];
birthday?: AccountOnoffOptions[];
chat?: AccountPushParamsMode[];
comment?: AccountPushParamsSettings[];
event_soon?: AccountOnoffOptions[];
friend?: AccountOnoffOptions[];
friend_accepted?: AccountOnoffOptions[];
friend_found?: AccountOnoffOptions[];
group_accepted?: AccountOnoffOptions[];
group_invite?: AccountOnoffOptions[];
like?: AccountPushParamsSettings[];
mention?: AccountPushParamsSettings[];
msg?: AccountPushParamsMode[];
new_post?: AccountOnoffOptions[];
photos_tag?: AccountPushParamsSettings[];
reply?: AccountOnoffOptions[];
repost?: AccountPushParamsSettings[];
sdk_open?: AccountOnoffOptions[];
wall_post?: AccountOnoffOptions[];
wall_publish?: AccountOnoffOptions[];
}
export type AccountPushParamsMode = "on" | "off" | "no_sound" | "no_text";
export type AccountPushParamsSettings = "on" | "off" | "fr_of_fr";
export interface AccountPushSettings {
/**
* Time until that notifications are disabled in Unixtime
*/
disabled_until?: number;
[key: string]: any;
}
export interface AccountUserSettings {
/**
* User's date of birth
*/
bdate?: string;
/**
* Information whether user's birthdate are hidden
*/
bdate_visibility?: number;
/**
* User first name
*/
first_name?: string;
/**
* User's hometown
*/
home_town?: string;
/**
* User last name
*/
last_name?: string;
/**
* User maiden name
*/
maiden_name?: string;
/**
* User phone number with some hidden digits
*/
phone?: string;
/**
* User relationship status
*/
relation?: number;
/**
* Information whether relation status is pending
*/
relation_pending?: number;
/**
* Domain name of the user's page
*/
screen_name?: string;
/**
* User status
*/
status?: string;
[key: string]: any;
relation_requests?: UsersUserMin[];
}
export type AddressesFields = "id" | "title" | "address" | "additional_address" | "country_id" | "city_id" | "metro_station_id" | "latitude" | "longitude" | "distance" | "work_info_status" | "timetable" | "phone" | "time_offset";
export type AdsAccessRole = "admin" | "manager" | "reports";
export interface AdsAccesses {
/**
* Client ID
*/
client_id?: string;
[key: string]: any;
}
export interface AdsAccount {
/**
* Account ID
*/
account_id: number;
[key: string]: any;
}
export type AdsAccountType = "general" | "agency";
export interface AdsAd {
/**
* Ad format
*/
ad_format: number;
/**
* Total limit
*/
all_limit: number;
/**
* Campaign ID
*/
campaign_id: number;
/**
* Category ID
*/
category1_id?: number;
/**
* Additional category ID
*/
category2_id?: number;
/**
* Cost of a click, kopecks
*/
cpc?: number;
/**
* Cost of 1000 impressions, kopecks
*/
cpm?: number;
/**
* Ad ID
*/
id: number;
/**
* Impressions limit
*/
impressions_limit?: number;
/**
* Ad title
*/
name: string;
[key: string]: any;
}
export type AdsAdApproved = 0 | 1 | 2 | 3;
export type AdsAdCostType = 0 | 1;
export interface AdsAdLayout {
/**
* Ad format
*/
ad_format: number;
/**
* Campaign ID
*/
campaign_id: number;
/**
* Ad description
*/
description: string;
/**
* Ad ID
*/
id: number;
/**
* Image URL
*/
image_src: string;
/**
* URL of the preview image in double size
*/
image_src_2x?: string;
/**
* Domain of advertised object
*/
link_domain?: string;
/**
* URL of advertised object
*/
link_url: string;
/**
* Ad title
*/
title: string;
[key: string]: any;
}
export type AdsAdLayoutCostType = 0 | 1;
export type AdsAdStatus = 0 | 1 | 2;
export interface AdsCampaign {
/**
* Campaign's total limit, rubles
*/
all_limit: string;
/**
* Campaign's day limit, rubles
*/
day_limit: string;
/**
* Campaign ID
*/
id: number;
/**
* Campaign title
*/
name: string;
/**
* Campaign start time, as Unixtime
*/
start_time: number;
/**
* Campaign stop time, as Unixtime
*/
stop_time: number;
[key: string]: any;
}
export type AdsCampaignStatus = 0 | 1 | 2;
export type AdsCampaignType = "normal" | "vk_apps_managed" | "mobile_apps" | "promoted_posts";
export interface AdsCategory {
/**
* Category ID
*/
id: number;
/**
* Category name
*/
name: string;
[key: string]: any;
subcategories?: BaseObjectWithName[];
}
export interface AdsClient {
/**
* Client's total limit, rubles
*/
all_limit: string;
/**
* Client's day limit, rubles
*/
day_limit: string;
/**
* Client ID
*/
id: number;
/**
* Client name
*/
name: string;
[key: string]: any;
}
export interface AdsCriteria {
/**
* Age from
*/
age_from?: number;
/**
* Age to
*/
age_to?: number;
/**
* Apps IDs
*/
apps?: string;
/**
* Apps IDs to except
*/
apps_not?: string;
/**
* Days to birthday
*/
birthday?: number;
/**
* Cities IDs
*/
cities?: string;
/**
* Cities IDs to except
*/
cities_not?: string;
/**
* Country ID
*/
country?: number;
/**
* Districts IDs
*/
districts?: string;
/**
* Communities IDs
*/
groups?: string;
/**
* Interests categories IDs
*/
interest_categories?: string;
/**
* Interests
*/
interests?: string;
/**
* Positions IDs
*/
positions?: string;
/**
* Religions IDs
*/
religions?: string;
/**
* Retargeting groups IDs
*/
retargeting_groups?: string;
/**
* Retargeting groups IDs to except
*/
retargeting_groups_not?: string;
/**
* School graduation year from
*/
school_from?: number;
/**
* School graduation year to
*/
school_to?: number;
/**
* Schools IDs
*/
schools?: string;
/**
* Stations IDs
*/
stations?: string;
/**
* Relationship statuses
*/
statuses?: string;
/**
* Streets IDs
*/
streets?: string;
/**
* University graduation year from
*/
uni_from?: number;
/**
* University graduation year to
*/
uni_to?: number;
/**
* Browsers
*/
user_browsers?: string;
/**
* Devices
*/
user_devices?: string;
/**
* Operating systems
*/
user_os?: string;
[key: string]: any;
}
export type AdsCriteriaSex = 0 | 1 | 2;
export interface AdsDemoStats {
/**
* Object ID
*/
id?: number;
[key: string]: any;
}
export interface AdsDemostatsFormat {
/**
* Day as YYYY-MM-DD
*/
day?: string;
/**
* Month as YYYY-MM
*/
month?: string;
/**
* 1 if period=overall
*/
overall?: number;
[key: string]: any;
age?: AdsStatsAge[];
cities?: AdsStatsCities[];
sex?: AdsStatsSex[];
sex_age?: AdsStatsSexAge[];
}
export interface AdsFloodStats {
/**
* Requests left
*/
left: number;
/**
* Time to refresh in seconds
*/
refresh: number;
[key: string]: any;
}
export interface AdsLinkStatus {
/**
* Reject reason
*/
description: string;
/**
* URL
*/
redirect_url: string;
/**
* Link status
*/
status: string;
[key: string]: any;
}
export type AdsObjectType = "ad" | "campaign" | "client" | "office";
export interface AdsParagraphs {
/**
* Rules paragraph
*/
paragraph?: string;
[key: string]: any;
}
export interface AdsPromotedPostReach {
/**
* Hides amount
*/
hide: number;
/**
* Object ID from 'ids' parameter
*/
id: number;
/**
* Community joins
*/
join_group: number;
/**
* Link clicks
*/
links: number;
/**
* Subscribers reach
*/
reach_subscribers: number;
/**
* Total reach
*/
reach_total: number;
/**
* Reports amount
*/
report: number;
/**
* Community clicks
*/
to_group: number;
/**
* 'Unsubscribe' events amount
*/
unsubscribe: number;
/**
* Video views for 100 percent
*/
video_views_100p?: number;
/**
* Video views for 25 percent
*/
video_views_25p?: number;
/**
* Video views for 3 seconds
*/
video_views_3s?: number;
/**
* Video views for 50 percent
*/
video_views_50p?: number;
/**
* Video views for 75 percent
*/
video_views_75p?: number;
/**
* Video starts
*/
video_views_start?: number;
[key: string]: any;
}
export interface AdsRejectReason {
/**
* Comment text
*/
comment?: string;
[key: string]: any;
rules?: AdsRules[];
}
export interface AdsRules {
/**
* Comment
*/
title?: string;
[key: string]: any;
paragraphs?: AdsParagraphs[];
}
export interface AdsStats {
/**
* Object ID
*/
id?: number;
[key: string]: any;
}
export interface AdsStatsAge {
/**
* Clicks rate
*/
clicks_rate?: number;
/**
* Impressions rate
*/
impressions_rate?: number;
/**
* Age interval
*/
value?: string;
[key: string]: any;
}
export interface AdsStatsCities {
/**
* Clicks rate
*/
clicks_rate?: number;
/**
* Impressions rate
*/
impressions_rate?: number;
/**
* City name
*/
name?: string;
/**
* City ID
*/
value?: number;
[key: string]: any;
}
export interface AdsStatsFormat {
/**
* Clicks number
*/
clicks?: number;
/**
* Day as YYYY-MM-DD
*/
day?: string;
/**
* Impressions number
*/
impressions?: number;
/**
* Events number
*/
join_rate?: number;
/**
* Month as YYYY-MM
*/
month?: string;
/**
* 1 if period=overall
*/
overall?: number;
/**
* Reach
*/
reach?: number;
/**
* Spent funds
*/
spent?: number;
/**
* Clickthoughs to the advertised site
*/
video_clicks_site?: number;
/**
* Video views number
*/
video_views?: number;
/**
* Video views (full video)
*/
video_views_full?: number;
/**
* Video views (half of video)
*/
video_views_half?: number;
[key: string]: any;
}
export interface AdsStatsSex {
/**
* Clicks rate
*/
clicks_rate?: number;
/**
* Impressions rate
*/
impressions_rate?: number;
[key: string]: any;
}
export interface AdsStatsSexAge {
/**
* Clicks rate
*/
clicks_rate?: number;
/**
* Impressions rate
*/
impressions_rate?: number;
/**
* Sex and age interval
*/
value?: string;
[key: string]: any;
}
export type AdsStatsSexValue = "f" | "m";
export interface AdsTargSettings1 {
/**
* Ad ID
*/
id?: number;
/**
* Campaign ID
*/
campaign_id?: number;
}
export type AdsTargSettings = AdsTargSettings1 & AdsCriteria;
export interface AdsTargStats {
/**
* Audience
*/
audience_count: number;
/**
* Recommended CPC value
*/
recommended_cpc?: number;
/**
* Recommended CPM value
*/
recommended_cpm?: number;
[key: string]: any;
}
export interface AdsTargSuggestions {
/**
* Object ID
*/
id?: number;
/**
* Object name
*/
name?: string;
[key: string]: any;
}
export interface AdsTargSuggestionsCities {
/**
* Object ID
*/
id?: number;
/**
* Object name
*/
name?: string;
/**
* Parent object
*/
parent?: string;
[key: string]: any;
}
export interface AdsTargSuggestionsRegions {
/**
* Object ID
*/
id?: number;
/**
* Object name
*/
name?: string;
/**
* Object type
*/
type?: string;
[key: string]: any;
}
export interface AdsTargSuggestionsSchools {
/**
* Full school title
*/
desc?: string;
/**
* School ID
*/
id?: number;
/**
* School title
*/
name?: string;
/**
* City name
*/
parent?: string;
[key: string]: any;
}
export type AdsTargSuggestionsSchoolsType = "school" | "university" | "faculty" | "chair";
export interface AdsTargetGroup {
/**
* Audience
*/
audience_count?: number;
/**
* Site domain
*/
domain?: string;
/**
* Group ID
*/
id?: number;
/**
* Number of days for user to be in group
*/
lifetime?: number;
/**
* Group name
*/
name?: string;
/**
* Pixel code
*/
pixel?: string;
[key: string]: any;
}
export interface AdsUsers {
/**
* User ID
*/
user_id: number;
[key: string]: any;
accesses: AdsAccesses[];
}
export interface AppsApp {
/**
* Official community's ID
*/
author_group?: number;
/**
* Application author's ID
*/
author_id?: number;
/**
* Application author's URL
*/
author_url?: string;
/**
* URL of the app banner with 1120 px in width
*/
banner_1120?: string;
/**
* URL of the app banner with 560 px in width
*/
banner_560?: string;
/**
* Catalog position
*/
catalog_position?: number;
/**
* Application description
*/
description?: string;
/**
* Genre name
*/
genre?: string;
/**
* Genre ID
*/
genre_id?: number;
/**
* URL of the app icon with 139 px in width
*/
icon_139?: string;
/**
* URL of the app icon with 150 px in width
*/
icon_150?: string;
/**
* URL of the app icon with 279 px in width
*/
icon_278?: string;
/**
* URL of the app icon with 75 px in width
*/
icon_75?: string;
/**
* Application ID
*/
id: number;
/**
* Information whether the application is multilanguage
*/
international?: number;
/**
* Information whether application is in mobile catalog
*/
is_in_catalog?: number;
/**
* Members number
*/
members_count?: number;
/**
* Application ID in store
*/
platform_id?: number;
/**
* Date when the application has been published in Unixtime
*/
published_date?: number;
/**
* Screen name
*/
screen_name?: string;
/**
* Application section name
*/
section?: string;
/**
* Application title
*/
title: string;
[key: string]: any;
screenshots?: PhotosPhoto[];
}
export type AppsAppLeaderboardType = 0 | 1 | 2;
export type AppsAppType = "app" | "game" | "site" | "standalone" | "vk_app" | "community_app" | "html5_game";
export interface AppsLeaderboard {
/**
* Level
*/
level?: number;
/**
* Points number
*/
points?: number;
/**
* Score number
*/
score?: number;
/**
* User ID
*/
user_id: number;
[key: string]: any;
}
/*Scope description*/
export interface AppsScope {
/**
* Scope name
*/
name: string;
/**
* Scope title
*/
title?: string;
[key: string]: any;
}
export interface AudioAudio {
/**
* Access key for the audio
*/
access_key?: string;
/**
* Artist name
*/
artist: string;
/**
* Audio ID
*/
id: number;
/**
* Audio owner's ID
*/
owner_id: number;
/**
* Title
*/
title: string;
/**
* URL of mp3 file
*/
url?: string;
[key: string]: any;
is_explicit: boolean;
is_focus_track: boolean;
is_licensed: boolean;
}
export interface AudioAudioFull1 {
/**
* Duration in seconds
*/
duration?: number;
/**
* Date when uploaded
*/
date?: number;
/**
* Album ID
*/
album_id?: number;
/**
* Lyrics ID
*/
lyrics_id?: number;
/**
* Genre ID
*/
genre_id?: number;
no_search?: BaseBoolInt;
is_hq?: boolean;
}
export type AudioAudioFull = AudioAudio & AudioAudioFull1;
export type BaseBoolInt = 0 | 1;
export interface BaseCommentsInfo {
/**
* Comments number
*/
count?: number;
/**
* Information whether groups can comment the post
*/
groups_can_post?: boolean;
[key: string]: any;
}
export interface BaseCountry {
/**
* Country ID
*/
id: number;
/**
* Country title
*/
title: string;
[key: string]: any;
}
export interface BaseError {
/**
* Error code
*/
error_code?: number;
/**
* Error message
*/
error_msg?: string;
[key: string]: any;
request_params?: BaseRequestParam[];
}
export interface BaseGeo {
/**
* Information whether a map is showed
*/
showmap?: number;
/**
* Place type
*/
type?: string;
[key: string]: any;
}
export interface BaseGeoCoordinates {
[key: string]: any;
latitude: number;
longitude: number;
}
export interface BaseImage {
/**
* Image height
*/
height: number;
/**
* Image url
*/
url: string;
/**
* Image width
*/
width: number;
[key: string]: any;
}
export interface BaseLikes {
/**
* Likes number
*/
count?: number;
[key: string]: any;
}
export interface BaseLikesInfo {
/**
* Likes number
*/
count: number;
/**
* Information whether current uer has liked the post
*/
user_likes: number;
[key: string]: any;
}
export interface BaseLink {
/**
* Link caption
*/
caption?: string;
/**
* Link description
*/
description?: string;
/**
* Link ID
*/
id?: number;
/**
* String ID of the page with article preview
*/
preview_page?: string;
/**
* URL of the page with article preview
*/
preview_url?: string;
/**
* Link title
*/
title?: string;
/**
* Link URL
*/
url: string;
[key: string]: any;
is_favorite?: boolean;
}
export interface BaseLinkApplication {
/**
* Application Id
*/
app_id?: number;
[key: string]: any;
}
export interface BaseLinkApplicationStore {
/**
* Store Id
*/
id?: number;
/**
* Store name
*/
name?: string;
[key: string]: any;
}
export interface BaseLinkButton {
/**
* Button title
*/
title?: string;
[key: string]: any;
}
export interface BaseLinkButtonAction {
/**
* Action URL
*/
url?: string;
[key: string]: any;
}
export type BaseLinkButtonActionType = "open_url";
export interface BaseLinkProduct {
[key: string]: any;
}
export interface BaseLinkRating {
/**
* Count of reviews
*/
reviews_count?: number;
/**
* Count of stars
*/
stars?: number;
[key: string]: any;
}
export interface BaseMessageError {
/**
* Error code
*/
code?: number;
/**
* Error message
*/
description?: string;
[key: string]: any;
}
export interface BaseObject {
/**
* Object ID
*/
id: number;
/**
* Object title
*/
title: string;
[key: string]: any;
}
export interface BaseObjectCount {
/**
* Items count
*/
count?: number;
[key: string]: any;
}
export interface BaseObjectWithName {
/**
* Object ID
*/
id: number;
/**
* Object name
*/
name: string;
[key: string]: any;
}
export type BaseOkResponse = 1;
export interface BasePlace {
/**
* Place address
*/
address?: string;
/**
* Checkins number
*/
checkins?: number;
/**
* City name
*/
city?: string;
/**
* Country name
*/
country?: string;
/**
* Date of the place creation in Unixtime
*/
created?: number;
/**
* URL of the place's icon
*/
icon?: string;
/**
* Place ID
*/
id?: number;
/**
* Place latitude
*/
latitude?: number;
/**
* Place longitude
*/
longitude?: number;
/**
* Place title
*/
title?: string;
/**
* Place type
*/
type?: string;
[key: string]: any;
}
export type BasePropertyExists = 1;
export interface BaseRepostsInfo {
/**
* Reposts number
*/
count?: number;
/**
* Information whether current user has reposted the post
*/
user_reposted?: number;
[key: string]: any;
}
export interface BaseRequestParam {
/**
* Parameter name
*/
key?: string;
/**
* Parameter value
*/
value?: string;
[key: string]: any;
}
export type BaseSex = 0 | 1 | 2;
export interface BaseSticker {
/**
* Collection ID
*/
product_id?: number;
/**
* Sticker ID
*/
sticker_id?: number;
[key: string]: any;
images?: BaseImage[];
images_with_background?: BaseImage[];
}
export interface BaseUploadServer {
/**
* Upload URL
*/
upload_url: string;
[key: string]: any;
}
export type BaseUserGroupFields = "about" | "action_button" | "activities" | "activity" | "addresses" | "admin_level" | "age_limits" | "author_id" | "ban_info" | "bdate" | "blacklisted" | "blacklisted_by_me" | "books" | "can_create_topic" | "can_message" | "can_post" | "can_see_all_posts" | "can_see_audio" | "can_send_friend_request" | "can_upload_video" | "can_write_private_message" | "career" | "city" | "common_count" | "connections" | "contacts" | "counters" | "country" | "cover" | "crop_photo" | "deactivated" | "description" | "domain" | "education" | "exports" | "finish_date" | "fixed_post" | "followers_count" | "friend_status" | "games" | "has_market_app" | "has_mobile" | "has_photo" | "home_town" | "id" | "interests" | "is_admin" | "is_closed" | "is_favorite" | "is_friend" | "is_hidden_from_feed" | "is_member" | "is_messages_blocked" | "can_send_notify" | "is_subscribed" | "last_seen" | "links" | "lists" | "maiden_name" | "main_album_id" | "main_section" | "market" | "member_status" | "members_count" | "military" | "movies" | "music" | "name" | "nickname" | "occupation" | "online" | "online_status" | "personal" | "phone" | "photo_100" | "photo_200" | "photo_200_orig" | "photo_400_orig" | "photo_50" | "photo_id" | "photo_max" | "photo_max_orig" | "quotes" | "relation" | "relatives" | "schools" | "screen_name" | "sex" | "site" | "start_date" | "status" | "timezone" | "trending" | "tv" | "type" | "universities" | "verified" | "wall_comments" | "wiki_page" | "vk_admin_status";
export interface BaseUserId {
/**
* User ID
*/
user_id?: number;
[key: string]: any;
}
export type BoardDefaultOrder = 1 | 2 | -1 | -2;
export interface BoardTopic {
/**
* Comments number
*/
comments?: number;
/**
* Date when the topic has been created in Unixtime
*/
created?: number;
/**
* Creator ID
*/
created_by?: number;
/**
* Topic ID
*/
id?: number;
/**
* Topic title
*/
title?: string;
/**
* Date when the topic has been updated in Unixtime
*/
updated?: number;
/**
* ID of user who updated the topic
*/
updated_by?: number;
[key: string]: any;
}
export interface BoardTopicComment {
/**
* Date when the comment has been added in Unixtime
*/
date: number;
/**
* Author ID
*/
from_id: number;
/**
* Comment ID
*/
id: number;
/**
* Real position of the comment
*/
real_offset?: number;
/**
* Comment text
*/
text: string;
[key: string]: any;
attachments?: WallCommentAttachment[];
}
export interface BoardTopicPoll {
/**
* Current user's answer ID
*/
answer_id: number;
/**
* Date when poll has been created in Unixtime
*/
created: number;
/**
* Poll owner's ID
*/
owner_id: number;
/**
* Poll ID
*/
poll_id: number;
/**
* Poll question
*/
question: string;
/**
* Votes number
*/
votes: string;
[key: string]: any;
answers: PollsAnswer[];
}
export interface DatabaseCity1 {
/**
* Area title
*/
area?: string;
/**
* Region title
*/
region?: string;
important?: BaseBoolInt;
}
export type DatabaseCity = BaseObject & DatabaseCity1;
export interface DatabaseFaculty {
/**
* Faculty ID
*/
id?: number;
/**
* Faculty title
*/
title?: string;
[key: string]: any;
}
export interface DatabaseRegion {
/**
* Region ID
*/
id?: number;
/**
* Region title
*/
title?: string;
[key: string]: any;
}
export interface DatabaseSchool {
/**
* School ID
*/
id?: number;
/**
* School title
*/
title?: string;
[key: string]: any;
}
export interface DatabaseStation {
/**
* City ID
*/
city_id?: number;
/**
* Hex color code without #
*/
color?: string;
/**
* Station ID
*/
id: number;
/**
* Station name
*/
name: string;
[key: string]: any;
}
export interface DatabaseUniversity {
/**
* University ID
*/
id?: number;
/**
* University title
*/
title?: string;
[key: string]: any;
}
export interface DocsDoc {
/**
* Access key for the document
*/
access_key?: string;
/**
* Date when file has been uploaded in Unixtime
*/
date: number;
/**
* File extension
*/
ext: string;
/**
* Document ID
*/
id: number;
/**
* Document owner ID
*/
owner_id: number;
/**
* File size in bites
*/
size: number;
/**
* Document title
*/
title: string;
/**
* Document type
*/
type: number;
/**
* File URL
*/
url?: string;
[key: string]: any;
}
export type DocsDocAttachmentType = "doc" | "graffiti" | "audio_message";
export interface DocsDocPreview {
[key: string]: any;
}
export interface DocsDocPreviewPhoto {
[key: string]: any;
sizes?: PhotosPhotoSizes[];
}
export interface DocsDocPreviewVideo {
/**
* Video file size in bites
*/
filesize: number;
/**
* Video's height in pixels
*/
height: number;
/**
* Video URL
*/
src: string;
/**
* Video's width in pixels
*/
width: number;
[key: string]: any;
}
export interface DocsDocTypes {
/**
* Number of docs
*/
count?: number;
/**
* Doc type ID
*/
id?: number;
/**
* Doc type title
*/
title?: string;
[key: string]: any;
}
export interface DocsDocUploadResponse {
/**
* Uploaded file data
*/
file?: string;
[key: string]: any;
}
export interface EventsEventAttach {
/**
* address of event
*/
address?: string;
/**
* text of attach
*/
button_text: string;
/**
* event ID
*/
id: number;
/**
* is favorite
*/
is_favorite: boolean;
/**
* text of attach
*/
text: string;
/**
* event start time
*/
time?: number;
[key: string]: any;
friends: number[];
}
export interface FaveFavesLink {
/**
* Link description
*/
description?: string;
/**
* Link ID
*/
id?: number;
/**
* URL of the preview image with 100 px in width
*/
photo_100?: string;
/**
* URL of the preview image with 200 px in width
*/
photo_200?: string;
/**
* URL of the preview image with 50 px in width
*/
photo_50?: string;
/**
* Link title
*/
title?: string;
/**
* Link URL
*/
url?: string;
[key: string]: any;
}
export interface FriendsFriendStatus {
/**
* Message sent with request
*/
request_message?: string;
/**
* MD5 hash for the result validation
*/
sign?: string;
/**
* User ID
*/
user_id: number;
[key: string]: any;
}
export type FriendsFriendStatusStatus = 0 | 1 | 2 | 3;
export interface FriendsFriendsList {
/**
* List ID
*/
id: number;
/**
* List title
*/
name: string;
[key: string]: any;
}
export interface FriendsMutualFriend {
/**
* Total mutual friends number
*/
common_count?: number;
/**
* User ID
*/
common_friends?: number[];
/**
* User ID
*/
id?: number;
[key: string]: any;
}
export interface FriendsRequests {
/**
* ID of the user by whom friend has been suggested
*/
from?: string;
/**
* User ID
*/
user_id?: number;
[key: string]: any;
}
export interface FriendsRequestsMutual {
/**
* Total mutual friends number
*/
count?: number;
/**
* User ID
*/
users?: number[];
[key: string]: any;
}
export interface FriendsRequestsXtrMessage {
/**
* ID of the user by whom friend has been suggested
*/
from?: string;
/**
* Message sent with a request
*/
message?: string;
/**
* User ID
*/
user_id?: number;
[key: string]: any;
}
export interface FriendsUserXtrLists1 {
/**
* IDs of friend lists with user
*/
lists?: number[];
}
export type FriendsUserXtrLists = UsersUserFull & FriendsUserXtrLists1;
export interface FriendsUserXtrPhone1 {
/**
* User phone
*/
phone?: string;
}
export type FriendsUserXtrPhone = UsersUserFull & FriendsUserXtrPhone1;
export interface GiftsGift {
/**
* Date when gist has been sent in Unixtime
*/
date?: number;
/**
* Gift sender ID
*/
from_id?: number;
/**
* Hash
*/
gift_hash?: string;
/**
* Gift ID
*/
id?: number;
/**
* Comment text
*/
message?: string;
[key: string]: any;
}
export type GiftsGiftPrivacy = 0 | 1 | 2;
export interface GiftsLayout {
/**
* Gift ID
*/
id?: number;
/**
* URL of the preview image with 256 px in width
*/
thumb_256?: string;
/**
* URL of the preview image with 48 px in width
*/
thumb_48?: string;
/**
* URL of the preview image with 96 px in width
*/
thumb_96?: string;
[key: string]: any;
}
export interface GroupsAddress {
/**
* Additional address to the place (6 floor, left door)
*/
additional_address?: string;
/**
* String address to the place (Nevsky, 28)
*/
address?: string;
/**
* City id of address
*/
city_id?: number;
/**
* Country id of address
*/
country_id?: number;
/**
* Distance from the point
*/
distance?: number;
/**
* Address id
*/
id: number;
/**
* Address latitude
*/
latitude?: number;
/**
* Address longitude
*/
longitude?: number;
/**
* Metro id of address
*/
metro_station_id?: number;
/**
* Address phone
*/
phone?: string;
/**
* Time offset int minutes from utc time
*/
time_offset?: number;
/**
* Title of the place (Zinger, etc)
*/
title?: string;
[key: string]: any;
}
/*Timetable for a week*/
export interface GroupsAddressTimetable {
[key: string]: any;
}
/*Timetable for one day*/
export interface GroupsAddressTimetableDay {
/**
* Close time of the break in minutes
*/
break_close_time?: number;
/**
* Start time of the break in minutes
*/
break_open_time?: number;
/**
* Close time in minutes
*/
close_time: number;
/**
* Open time in minutes
*/
open_time: number;
[key: string]: any;
}
export type GroupsAddressWorkInfoStatus = "no_information" | "temporarily_closed" | "always_opened" | "timetable" | "forever_closed";
export interface GroupsAddressesInfo {
/**
* Information whether addresses is enabled
*/
is_enabled: boolean;
/**
* Main address id for group
*/
main_address_id?: number;
[key: string]: any;
}
export interface GroupsBanInfo {
/**
* Administrator ID
*/
admin_id?: number;
/**
* Comment for a ban
*/
comment?: string;
/**
* Date when user has been added to blacklist in Unixtime
*/
date?: number;
/**
* Date when user will be removed from blacklist in Unixtime
*/
end_date?: number;
[key: string]: any;
}
export type GroupsBanInfoReason = 0 | 1 | 2 | 3 | 4;
export interface GroupsCallbackSettings {
/**
* API version used for the events
*/
api_version?: string;
[key: string]: any;
}
export interface GroupsContactsItem {
/**
* Contact description
*/
desc?: string;
/**
* Contact email
*/
email?: string;
/**
* Contact phone
*/
phone?: string;
/**
* User ID
*/
user_id?: number;
[key: string]: any;
}
export interface GroupsCountersGroup {
/**
* Addresses number
*/
addresses?: number;
/**
* Photo albums number
*/
albums?: number;
/**
* Audios number
*/
audios?: number;
/**
* Docs number
*/
docs?: number;
/**
* Market items number
*/
market?: number;
/**
* Photos number
*/
photos?: number;
/**
* Topics number
*/
topics?: number;
/**
* Videos number
*/
videos?: number;
[key: string]: any;
}
export interface GroupsCover {
[key: string]: any;
images?: BaseImage[];
}
export type GroupsFields = "market" | "member_status" | "is_favorite" | "is_subscribed" | "city" | "country" | "verified" | "description" | "wiki_page" | "members_count" | "counters" | "cover" | "can_post" | "can_see_all_posts" | "activity" | "fixed_post" | "can_create_topic" | "can_upload_video" | "has_photo" | "status" | "main_album_id" | "links" | "contacts" | "site" | "main_section" | "trending" | "can_message" | "is_messages_blocked" | "can_send_notify" | "online_status" | "start_date" | "finish_date" | "age_limits" | "ban_info" | "action_button" | "author_id" | "phone" | "has_market_app" | "addresses" | "live_covers" | "is_adult" | "can_subscribe_posts";
export type GroupsFilter = "admin" | "editor" | "moder" | "groups" | "publics" | "events" | "has_addresses";
export interface GroupsGroup {
/**
* Information whether community is banned
*/
deactivated?: string;
/**
* Finish date in Unixtime format
*/
finish_date?: number;
/**
* Community ID
*/
id?: number;
/**
* Community name
*/
name?: string;
/**
* URL of square photo of the community with 100 pixels in width
*/
photo_100?: string;
/**
* URL of square photo of the community with 200 pixels in width
*/
photo_200?: string;
/**
* URL of square photo of the community with 50 pixels in width
*/
photo_50?: string;
/**
* Domain of the community page
*/
screen_name?: string;
/**
* Start date in Unixtime format
*/
start_date?: number;
[key: string]: any;
}
export type GroupsGroupAccess = 0 | 1 | 2;
export type GroupsGroupAdminLevel = 1 | 2 | 3;
export type GroupsGroupAgeLimits = 1 | 2 | 3;
export type GroupsGroupAudio = 0 | 1 | 2;
export interface GroupsGroupBanInfo {
/**
* Ban comment
*/
comment?: string;
/**
* End date of ban in Unixtime
*/
end_date?: number;
[key: string]: any;
}
export interface GroupsGroupCategory {
/**
* Category ID
*/
id: number;
/**
* Category name
*/
name: string;
[key: string]: any;
subcategories?: BaseObjectWithName[];
}
export interface GroupsGroupCategoryFull {
/**
* Category ID
*/
id: number;
/**
* Category name
*/
name: string;
/**
* Pages number
*/
page_count: number;
[key: string]: any;
page_previews: GroupsGroup[];
subcategories?: GroupsGroupCategory[];
}
export interface GroupsGroupCategoryType {
[key: string]: any;
id?: number;
name?: string;
}
export type GroupsGroupDocs = 0 | 1 | 2;
export interface GroupsGroupFull1 {
/**
* Community description
*/
description?: string;
/**
* Community's main wiki page title
*/
wiki_page?: string;
/**
* Community members number
*/
members_count?: number;
/**
* Type of group, start date of event or category of public page
*/
activity?: string;
/**
* Fixed post ID
*/
fixed_post?: number;
/**
* Community status
*/
status?: string;
/**
* Community's main photo album ID
*/
main_album_id?: number;
/**
* Community's website
*/
site?: string;
/**
* Information whether current user is subscribed to podcasts
*/
is_subscribed_podcasts?: boolean;
/**
* Owner in whitelist or not
*/
can_subscribe_podcasts?: boolean;
/**
* Can subscribe to wall
*/
can_subscribe_posts?: boolean;
market?: GroupsMarketInfo;
member_status?: GroupsGroupFullMemberStatus;
is_favorite?: BaseBoolInt;
is_subscribed?: BaseBoolInt;
city?: BaseObject;
country?: BaseCountry;
verified?: BaseBoolInt;
counters?: GroupsCountersGroup;
cover?: GroupsCover;
can_post?: BaseBoolInt;
can_see_all_posts?: BaseBoolInt;
can_create_topic?: BaseBoolInt;
can_upload_video?: BaseBoolInt;
has_photo?: BaseBoolInt;
links?: GroupsLinksItem[];
contacts?: GroupsContactsItem[];
main_section?: GroupsGroupFullMainSection;
trending?: BaseBoolInt;
can_message?: BaseBoolInt;
is_messages_blocked?: BaseBoolInt;
can_send_notify?: BaseBoolInt;
online_status?: GroupsOnlineStatus;
age_limits?: GroupsGroupFullAgeLimits;
ban_info?: GroupsGroupBanInfo;
addresses?: GroupsAddressesInfo;
}
export type GroupsGroupFull = GroupsGroup & GroupsGroupFull1;
export type GroupsGroupFullAgeLimits = 1 | 2 | 3;
export type GroupsGroupFullMainSection = 0 | 1 | 2 | 3 | 4 | 5;
export type GroupsGroupFullMemberStatus = 0 | 1 | 2 | 3 | 4 | 5;
export type GroupsGroupIsClosed = 0 | 1 | 2;
export interface GroupsGroupLink {
/**
* Link description
*/
desc?: string;
/**
* Link ID
*/
id?: number;
/**
* Link URL
*/
url?: string;
[key: string]: any;
}
export type GroupsGroupMarketCurrency = 643 | 980 | 398 | 978 | 840;
export type GroupsGroupPhotos = 0 | 1 | 2;
export interface GroupsGroupPublicCategoryList {
[key: string]: any;
id?: number;
name?: string;
subtypes_list?: GroupsGroupCategoryType[];
}
export type GroupsGroupRole = "moderator" | "editor" | "administrator";
export interface GroupsGroupSettings {
/**
* Community access settings
*/
access?: number;
/**
* Community's page domain
*/
address?: string;
/**
* Audio settings
*/
audio?: number;
/**
* Community description
*/
description?: string;
/**
* Docs settings
*/
docs?: number;
/**
* The list of stop words
*/
obscene_words?: string;
/**
* Photos settings
*/
photos?: number;
/**
* Information about the group category
*/
public_category?: number;
/**
* Information about the group subcategory
*/
public_subcategory?: number;
/**
* URL of the RSS feed
*/
rss?: string;
/**
* Community subject ID
*/
subject?: number;
/**
* Community title
*/
title?: string;
/**
* Topics settings
*/
topics?: number;
/**
* Video settings
*/
video?: number;
/**
* Wall settings
*/
wall?: number;
/**
* Community website
*/
website?: string;
/**
* Wiki settings
*/
wiki?: number;
[key: string]: any;
public_category_list?: GroupsGroupPublicCategoryList[];
subject_list?: GroupsSubjectItem[];
}
export type GroupsGroupSubject = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "40" | "41" | "42";
export type GroupsGroupTopics = 0 | 1 | 2;
export type GroupsGroupType = "group" | "page" | "event";
export type GroupsGroupVideo = 0 | 1 | 2;
export type GroupsGroupWall = 0 | 1 | 2 | 3;
export type GroupsGroupWiki = 0 | 1 | 2;
export interface GroupsGroupXtrInvitedBy {
/**
* Community ID
*/
id?: string;
/**
* Inviter ID
*/
invited_by?: number;
/**
* Community name
*/
name?: string;
/**
* URL of square photo of the community with 100 pixels in width
*/
photo_100?: string;
/**
* URL of square photo of the community with 200 pixels in width
*/
photo_200?: string;
/**
* URL of square photo of the community with 50 pixels in width
*/
photo_50?: string;
/**
* Domain of the community page
*/
screen_name?: string;
[key: string]: any;
}
export type GroupsGroupXtrInvitedByAdminLevel = 1 | 2 | 3;
export type GroupsGroupXtrInvitedByType = "group" | "page" | "event";
export interface GroupsGroupsArray {
/**
* Communities number
*/
count: number;
/**
* Community ID
*/
items: number[];
[key: string]: any;
}
export interface GroupsLinksItem {
/**
* Link description
*/
desc?: string;
/**
* Link ID
*/
id?: number;
/**
* Link title
*/
name?: string;
/**
* URL of square image of the link with 100 pixels in width
*/
photo_100?: string;
/**
* URL of square image of the link with 50 pixels in width
*/
photo_50?: string;
/**
* Link URL
*/
url?: string;
[key: string]: any;
}
export interface GroupsLongPollEvents {
[key: string]: any;
}
export interface GroupsLongPollServer {
/**
* Long Poll key
*/
key: string;
/**
* Long Poll server address
*/
server: string;
/**
* Number of the last event
*/
ts: number;
[key: string]: any;
}
export interface GroupsLongPollSettings {
/**
* API version used for the events
*/
api_version?: string;
/**
* Shows whether Long Poll is enabled
*/
is_enabled: boolean;
[key: string]: any;
}
export interface GroupsMarketInfo {
/**
* Contact person ID
*/
contact_id?: number;
/**
* Currency name
*/
currency_text?: string;
/**
* Main market album ID
*/
main_album_id?: number;
/**
* Maximum price
*/
price_max?: number;
/**
* Minimum price
*/
price_min?: number;
[key: string]: any;
}
export interface GroupsMemberRole {
/**
* User ID
*/
id?: number;
[key: string]: any;
}
export type GroupsMemberRoleStatus = "moderator" | "editor" | "administrator" | "creator";
export interface GroupsMemberStatus {
/**
* User ID
*/
user_id: number;
[key: string]: any;
}
export interface GroupsMemberStatusFull {
/**
* User ID
*/
user_id: number;
[key: string]: any;
}
/*Online status of group*/
export interface GroupsOnlineStatus {
/**
* Estimated time of answer (for status = answer_mark)
*/
minutes?: number;
[key: string]: any;
}
export type GroupsOnlineStatusType = "none" | "online" | "answer_mark";
export interface GroupsOwnerXtrBanInfo {
[key: string]: any;
}
export type GroupsOwnerXtrBanInfoType = "group" | "profile";
export type GroupsRoleOptions = "moderator" | "editor" | "administrator" | "creator";
export interface GroupsSubjectItem {
/**
* Subject ID
*/
id?: number;
/**
* Subject title
*/
name?: string;
[key: string]: any;
}
export interface GroupsUserXtrRole1 {
role?: GroupsRoleOptions;
}
export type GroupsUserXtrRole = UsersUserFull & GroupsUserXtrRole1;
export interface LeadsChecked {
/**
* Reason why user can't start the lead
*/
reason?: string;
/**
* Session ID
*/
sid?: string;
/**
* URL user should open to start the lead
*/
start_link?: string;
[key: string]: any;
}
export type LeadsCheckedResult = "true" | "false";
export interface LeadsComplete {
/**
* Offer cost
*/
cost?: number;
/**
* Offer limit
*/
limit?: number;
/**
* Amount of spent votes
*/
spent?: number;
[key: string]: any;
}
export interface LeadsEntry {
/**
* Application ID
*/
aid?: number;
/**
* Comment text
*/
comment?: string;
/**
* Date when the action has been started in Unixtime
*/
date?: number;
/**
* Session string ID
*/
sid?: string;
/**
* Start date in Unixtime (for status=2)
*/
start_date?: number;
/**
* Action type
*/
status?: number;
/**
* User ID
*/
uid?: number;
[key: string]: any;
}
export interface LeadsLead {
/**
* Completed offers number
*/
completed?: number;
/**
* Offer cost
*/
cost?: number;
/**
* Impressions number
*/
impressions?: number;
/**
* Lead limit
*/
limit?: number;
/**
* Amount of spent votes
*/
spent?: number;
/**
* Started offers number
*/
started?: number;
[key: string]: any;
}
export interface LeadsLeadDays {
/**
* Completed offers number
*/
completed?: number;
/**
* Impressions number
*/
impressions?: number;
/**
* Amount of spent votes
*/
spent?: number;
/**
* Started offers number
*/
started?: number;
[key: string]: any;
}
export interface LeadsStart {
/**
* Session data
*/
vk_sid?: string;
[key: string]: any;
}
export type LikesType = "post" | "comment" | "photo" | "audio" | "video" | "note" | "market