UNPKG

vk-io-stable

Version:

Модуль для создания бота VK

1,916 lines (1,786 loc) 188 kB
/* eslint-disable */ import * as Objects from "./objects.d"; export interface AccountBanParams { owner_id?: number; [key: string]: any; } export interface AccountChangePasswordParams { /** * Session id received after the [vk.com/dev/auth.restore|auth.restore] method is executed. (If the password is changed right after the access was restored) */ restore_sid?: string; /** * Hash received after a successful OAuth authorization with a code got by SMS. (If the password is changed right after the access was restored) */ change_password_hash?: string; /** * Current user password. */ old_password?: string; /** * New password that will be set as a current */ new_password: string; [key: string]: any; } export interface AccountGetActiveOffersParams { /** * Number of results to return. */ count?: number; offset?: number; [key: string]: any; } export interface AccountGetAppPermissionsParams { /** * User ID whose settings information shall be got. By default: current user. */ user_id: number; [key: string]: any; } export interface AccountGetBannedParams { /** * Offset needed to return a specific subset of results. */ offset?: number; /** * Number of results to return. */ count?: number; [key: string]: any; } export interface AccountGetCountersParams { filter?: ("friends" | "messages" | "photos" | "videos" | "notes" | "gifts" | "events" | "groups" | "sdk" | "friends_suggestions")[] | ("friends" | "messages" | "photos" | "videos" | "notes" | "gifts" | "events" | "groups" | "sdk" | "friends_suggestions"); [key: string]: any; } export interface AccountGetInfoParams { fields?: ("country" | "https_required" | "own_posts_default" | "no_wall_replies" | "intro" | "lang")[] | ("country" | "https_required" | "own_posts_default" | "no_wall_replies" | "intro" | "lang"); [key: string]: any; } export interface AccountGetProfileInfoParams { [key: string]: any; } export interface AccountGetPushSettingsParams { /** * Unique device ID. */ device_id?: string; [key: string]: any; } export interface AccountRegisterDeviceParams { /** * Device token used to send notifications. (for mpns, the token shall be URL for sending of notifications) */ token: string; /** * String name of device model. */ device_model?: string; /** * Device year. */ device_year?: number; /** * Unique device ID. */ device_id: string; /** * String version of device operating system. */ system_version?: string; /** * Push settings in a [vk.com/dev/push_settings|special format]. */ settings?: string; sandbox?: boolean; [key: string]: any; } export interface AccountSaveProfileInfoParams { /** * User first name. */ first_name?: string; /** * User last name. */ last_name?: string; /** * User maiden name (female only) */ maiden_name?: string; /** * User screen name. */ screen_name?: string; /** * ID of the name change request to be canceled. If this parameter is sent, all the others are ignored. */ cancel_request_id?: number; /** * User sex. Possible values: , * '1' – female,, * '2' – male. */ sex?: 0 | 1 | 2; /** * User relationship status. Possible values: , * '1' – single,, * '2' – in a relationship,, * '3' – engaged,, * '4' – married,, * '5' – it's complicated,, * '6' – actively searching,, * '7' – in love,, * '0' – not specified. */ relation?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 0; /** * ID of the relationship partner. */ relation_partner_id?: number; /** * User birth date, format: DD.MM.YYYY. */ bdate?: string; /** * Birth date visibility. Returned values: , * '1' – show birth date,, * '2' – show only month and day,, * '0' – hide birth date. */ bdate_visibility?: 1 | 2 | 0; /** * User home town. */ home_town?: string; /** * User country. */ country_id?: number; /** * User city. */ city_id?: number; /** * Status text. */ status?: string; [key: string]: any; } export interface AccountSetInfoParams { /** * Setting name. */ name?: string; /** * Setting value. */ value?: string; [key: string]: any; } export interface AccountSetNameInMenuParams { /** * User ID. */ user_id: number; /** * Application screen name. */ name?: string; [key: string]: any; } export interface AccountSetOfflineParams { [key: string]: any; } export interface AccountSetOnlineParams { /** * '1' if videocalls are available for current device. */ voip?: boolean; [key: string]: any; } export interface AccountSetPushSettingsParams { /** * Unique device ID. */ device_id: string; /** * Push settings in a [vk.com/dev/push_settings|special format]. */ settings?: string; /** * Notification key. */ key?: string; value?: string[] | string; [key: string]: any; } export interface AccountSetSilenceModeParams { /** * Unique device ID. */ device_id?: string; /** * Time in seconds for what notifications should be disabled. '-1' to disable forever. */ time?: number; /** * Destination ID. "For user: 'User ID', e.g. '12345'. For chat: '2000000000' + 'Chat ID', e.g. '2000000001'. For community: '- Community ID', e.g. '-12345'. " */ peer_id?: number; /** * '1' — to enable sound in this dialog, '0' — to disable sound. Only if 'peer_id' contains user or community ID. */ sound?: number; [key: string]: any; } export interface AccountUnbanParams { owner_id?: number; [key: string]: any; } export interface AccountUnregisterDeviceParams { /** * Unique device ID. */ device_id?: string; sandbox?: boolean; [key: string]: any; } export interface AdsAddOfficeUsersParams { /** * Advertising account ID. */ account_id: number; /** * Serialized JSON array of objects that describe added managers. Description of 'user_specification' objects see below. */ data: string; [key: string]: any; } export interface AdsCheckLinkParams { /** * Advertising account ID. */ account_id: number; /** * Object type: *'community' — community,, *'post' — community post,, *'application' — VK application,, *'video' — video,, *'site' — external site. */ link_type: "community" | "post" | "application" | "video" | "site"; /** * Object URL. */ link_url: string; /** * Campaign ID */ campaign_id?: number; [key: string]: any; } export interface AdsCreateAdsParams { /** * Advertising account ID. */ account_id: number; /** * Serialized JSON array of objects that describe created ads. Description of 'ad_specification' objects see below. */ data: string; [key: string]: any; } export interface AdsCreateCampaignsParams { /** * Advertising account ID. */ account_id: number; /** * Serialized JSON array of objects that describe created campaigns. Description of 'campaign_specification' objects see below. */ data: string; [key: string]: any; } export interface AdsCreateClientsParams { /** * Advertising account ID. */ account_id: number; /** * Serialized JSON array of objects that describe created campaigns. Description of 'client_specification' objects see below. */ data: string; [key: string]: any; } export interface AdsCreateTargetGroupParams { /** * Advertising account ID. */ account_id: number; /** * 'Only for advertising agencies.', ID of the client with the advertising account where the group will be created. */ client_id?: number; /** * Name of the target group — a string up to 64 characters long. */ name: string; /** * 'For groups with auditory created with pixel code only.', , Number of days after that users will be automatically removed from the group. '0' — not to remove users. */ lifetime?: number; target_pixel_id?: number; target_pixel_rules?: string; [key: string]: any; } export interface AdsDeleteAdsParams { /** * Advertising account ID. */ account_id: number; /** * Serialized JSON array with ad IDs. */ ids: string; [key: string]: any; } export interface AdsDeleteCampaignsParams { /** * Advertising account ID. */ account_id: number; /** * Serialized JSON array with IDs of deleted campaigns. */ ids: string; [key: string]: any; } export interface AdsDeleteClientsParams { /** * Advertising account ID. */ account_id: number; /** * Serialized JSON array with IDs of deleted clients. */ ids: string; [key: string]: any; } export interface AdsDeleteTargetGroupParams { /** * Advertising account ID. */ account_id: number; /** * 'Only for advertising agencies.' , ID of the client with the advertising account where the group will be created. */ client_id?: number; /** * Group ID. */ target_group_id: number; [key: string]: any; } export interface AdsGetAccountsParams { [key: string]: any; } export interface AdsGetAdsParams { /** * Advertising account ID. */ account_id: number; /** * Filter by ads. Serialized JSON array with ad IDs. If the parameter is null, all ads will be shown. */ ad_ids?: string; /** * Filter by advertising campaigns. Serialized JSON array with campaign IDs. If the parameter is null, ads of all campaigns will be shown. */ campaign_ids?: string; /** * 'Available and required for advertising agencies.' ID of the client ads are retrieved from. */ client_id?: number; /** * Flag that specifies whether archived ads shall be shown: *0 — show only active ads,, *1 — show all ads. */ include_deleted?: boolean; /** * Limit of number of returned ads. Used only if ad_ids parameter is null, and 'campaign_ids' parameter contains ID of only one campaign. */ limit?: number; /** * Offset. Used in the same cases as 'limit' parameter. */ offset?: number; [key: string]: any; } export interface AdsGetAdsLayoutParams { /** * Advertising account ID. */ account_id: number; /** * Filter by ads. Serialized JSON array with ad IDs. If the parameter is null, all ads will be shown. */ ad_ids?: string; /** * Filter by advertising campaigns. Serialized JSON array with campaign IDs. If the parameter is null, ads of all campaigns will be shown. */ campaign_ids?: string; /** * 'For advertising agencies.' ID of the client ads are retrieved from. */ client_id?: number; /** * Flag that specifies whether archived ads shall be shown. *0 — show only active ads,, *1 — show all ads. */ include_deleted?: boolean; /** * Limit of number of returned ads. Used only if 'ad_ids' parameter is null, and 'campaign_ids' parameter contains ID of only one campaign. */ limit?: number; /** * Offset. Used in the same cases as 'limit' parameter. */ offset?: number; [key: string]: any; } export interface AdsGetAdsTargetingParams { /** * Advertising account ID. */ account_id: number; /** * Filter by ads. Serialized JSON array with ad IDs. If the parameter is null, all ads will be shown. */ ad_ids?: string; /** * Filter by advertising campaigns. Serialized JSON array with campaign IDs. If the parameter is null, ads of all campaigns will be shown. */ campaign_ids?: string; /** * 'For advertising agencies.' ID of the client ads are retrieved from. */ client_id?: number; /** * flag that specifies whether archived ads shall be shown: *0 — show only active ads,, *1 — show all ads. */ include_deleted?: boolean; /** * Limit of number of returned ads. Used only if 'ad_ids' parameter is null, and 'campaign_ids' parameter contains ID of only one campaign. */ limit?: number; /** * Offset needed to return a specific subset of results. */ offset?: number; [key: string]: any; } export interface AdsGetBudgetParams { /** * Advertising account ID. */ account_id: number; [key: string]: any; } export interface AdsGetCampaignsParams { /** * Advertising account ID. */ account_id: number; /** * 'For advertising agencies'. ID of the client advertising campaigns are retrieved from. */ client_id?: number; /** * Flag that specifies whether archived ads shall be shown. *0 — show only active campaigns,, *1 — show all campaigns. */ include_deleted?: boolean; /** * Filter of advertising campaigns to show. Serialized JSON array with campaign IDs. Only campaigns that exist in 'campaign_ids' and belong to the specified advertising account will be shown. If the parameter is null, all campaigns will be shown. */ campaign_ids?: string; [key: string]: any; } export interface AdsGetCategoriesParams { /** * Language. The full list of supported languages is [vk.com/dev/api_requests|here]. */ lang?: string; [key: string]: any; } export interface AdsGetClientsParams { /** * Advertising account ID. */ account_id: number; [key: string]: any; } export interface AdsGetDemographicsParams { /** * Advertising account ID. */ account_id: number; /** * Type of requested objects listed in 'ids' parameter: *ad — ads,, *campaign — campaigns. */ ids_type: "ad" | "campaign"; /** * IDs requested ads or campaigns, separated with a comma, depending on the value set in 'ids_type'. Maximum 2000 objects. */ ids: string; /** * Data grouping by dates: *day — statistics by days,, *month — statistics by months,, *overall — overall statistics. 'date_from' and 'date_to' parameters set temporary limits. */ period: "day" | "month" | "overall"; /** * Date to show statistics from. For different value of 'period' different date format is used: *day: YYYY-MM-DD, example: 2011-09-27 — September 27, 2011, **0 — day it was created on,, *month: YYYY-MM, example: 2011-09 — September 2011, **0 — month it was created in,, *overall: 0. */ date_from: string; /** * Date to show statistics to. For different value of 'period' different date format is used: *day: YYYY-MM-DD, example: 2011-09-27 — September 27, 2011, **0 — current day,, *month: YYYY-MM, example: 2011-09 — September 2011, **0 — current month,, *overall: 0. */ date_to: string; [key: string]: any; } export interface AdsGetFloodStatsParams { /** * Advertising account ID. */ account_id: number; [key: string]: any; } export interface AdsGetOfficeUsersParams { /** * Advertising account ID. */ account_id: number; [key: string]: any; } export interface AdsGetPostsReachParams { /** * Advertising account ID. */ account_id: number; /** * Type of requested objects listed in 'ids' parameter: *ad — ads,, *campaign — campaigns. */ ids_type: "ad" | "campaign"; /** * IDs requested ads or campaigns, separated with a comma, depending on the value set in 'ids_type'. Maximum 100 objects. */ ids: string; [key: string]: any; } export interface AdsGetRejectionReasonParams { /** * Advertising account ID. */ account_id: number; /** * Ad ID. */ ad_id: number; [key: string]: any; } export interface AdsGetStatisticsParams { /** * Advertising account ID. */ account_id: number; /** * Type of requested objects listed in 'ids' parameter: *ad — ads,, *campaign — campaigns,, *client — clients,, *office — account. */ ids_type: "ad" | "campaign" | "client" | "office"; /** * IDs requested ads, campaigns, clients or account, separated with a comma, depending on the value set in 'ids_type'. Maximum 2000 objects. */ ids: string; /** * Data grouping by dates: *day — statistics by days,, *month — statistics by months,, *overall — overall statistics. 'date_from' and 'date_to' parameters set temporary limits. */ period: "day" | "month" | "overall"; /** * Date to show statistics from. For different value of 'period' different date format is used: *day: YYYY-MM-DD, example: 2011-09-27 — September 27, 2011, **0 — day it was created on,, *month: YYYY-MM, example: 2011-09 — September 2011, **0 — month it was created in,, *overall: 0. */ date_from: string; /** * Date to show statistics to. For different value of 'period' different date format is used: *day: YYYY-MM-DD, example: 2011-09-27 — September 27, 2011, **0 — current day,, *month: YYYY-MM, example: 2011-09 — September 2011, **0 — current month,, *overall: 0. */ date_to: string; [key: string]: any; } export interface AdsGetSuggestionsParams { /** * Section, suggestions are retrieved in. Available values: *countries — request of a list of countries. If q is not set or blank, a short list of countries is shown. Otherwise, a full list of countries is shown. *regions — requested list of regions. 'country' parameter is required. *cities — requested list of cities. 'country' parameter is required. *districts — requested list of districts. 'cities' parameter is required. *stations — requested list of subway stations. 'cities' parameter is required. *streets — requested list of streets. 'cities' parameter is required. *schools — requested list of educational organizations. 'cities' parameter is required. *interests — requested list of interests. *positions — requested list of positions (professions). *group_types — requested list of group types. *religions — requested list of religious commitments. *browsers — requested list of browsers and mobile devices. */ section: "countries" | "regions" | "cities" | "districts" | "stations" | "streets" | "schools" | "interests" | "positions" | "group_types" | "religions" | "browsers"; /** * Objects IDs separated by commas. If the parameter is passed, 'q, country, cities' should not be passed. */ ids?: string; /** * Filter-line of the request (for countries, regions, cities, streets, schools, interests, positions). */ q?: string; /** * ID of the country objects are searched in. */ country?: number; /** * IDs of cities where objects are searched in, separated with a comma. */ cities?: string; /** * Language of the returned string values. Supported languages: *ru — Russian,, *ua — Ukrainian,, *en — English. */ lang?: "ru" | "ua" | "en"; [key: string]: any; } export interface AdsGetTargetGroupsParams { /** * Advertising account ID. */ account_id: number; /** * 'Only for advertising agencies.', ID of the client with the advertising account where the group will be created. */ client_id?: number; /** * '1' — to return pixel code. */ extended?: boolean; [key: string]: any; } export interface AdsGetTargetingStatsParams { /** * Advertising account ID. */ account_id: number; /** * Serialized JSON object that describes targeting parameters. Description of 'criteria' object see below. */ criteria?: string; /** * ID of an ad which targeting parameters shall be analyzed. */ ad_id?: number; /** * Ad format. Possible values: *'1' — image and text,, *'2' — big image,, *'3' — exclusive format,, *'4' — community, square image,, *'7' — special app format,, *'8' — special community format,, *'9' — post in community,, *'10' — app board. */ ad_format?: 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10; /** * Platforms to use for ad showing. Possible values: (for 'ad_format' = '1'), *'0' — VK and partner sites,, *'1' — VK only. (for 'ad_format' = '9'), *'all' — all platforms,, *'desktop' — desktop version,, *'mobile' — mobile version and apps. */ ad_platform?: string; /** * URL for the advertised object. */ link_url: string; /** * Domain of the advertised object. */ link_domain?: string; client_id?: number; ad_platform_no_wall?: string; ad_platform_no_ad_network?: string; [key: string]: any; } export interface AdsGetUploadURLParams { /** * Ad format: *1 — image and text,, *2 — big image,, *3 — exclusive format,, *4 — community, square image,, *7 — special app format. */ ad_format: 1 | 2 | 3 | 4 | 7; icon?: number; [key: string]: any; } export interface AdsGetVideoUploadURLParams { [key: string]: any; } export interface AdsImportTargetContactsParams { /** * Advertising account ID. */ account_id: number; /** * 'Only for advertising agencies.' , ID of the client with the advertising account where the group will be created. */ client_id?: number; /** * Target group ID. */ target_group_id: number; /** * List of phone numbers, emails or user IDs separated with a comma. */ contacts: string; [key: string]: any; } export interface AdsRemoveOfficeUsersParams { /** * Advertising account ID. */ account_id: number; /** * Serialized JSON array with IDs of deleted managers. */ ids: string; [key: string]: any; } export interface AdsUpdateAdsParams { /** * Advertising account ID. */ account_id: number; /** * Serialized JSON array of objects that describe changes in ads. Description of 'ad_edit_specification' objects see below. */ data: string; [key: string]: any; } export interface AdsUpdateCampaignsParams { /** * Advertising account ID. */ account_id: number; /** * Serialized JSON array of objects that describe changes in campaigns. Description of 'campaign_mod' objects see below. */ data: string; [key: string]: any; } export interface AdsUpdateClientsParams { /** * Advertising account ID. */ account_id: number; /** * Serialized JSON array of objects that describe changes in clients. Description of 'client_mod' objects see below. */ data: string; [key: string]: any; } export interface AdsUpdateTargetGroupParams { /** * Advertising account ID. */ account_id: number; /** * 'Only for advertising agencies.' , ID of the client with the advertising account where the group will be created. */ client_id?: number; /** * Group ID. */ target_group_id: number; /** * New name of the target group — a string up to 64 characters long. */ name: string; /** * Domain of the site where user accounting code will be placed. */ domain?: string; /** * 'Only for the groups that get audience from sites with user accounting code.', Time in days when users added to a retarget group will be automatically excluded from it. '0' – automatic exclusion is off. */ lifetime?: number; target_pixel_id?: number; target_pixel_rules?: string; [key: string]: any; } export interface AppsDeleteAppRequestsParams { [key: string]: any; } export interface AppsGetParams { /** * Application ID */ app_id?: number; /** * platform. Possible values: *'ios' — iOS,, *'android' — Android,, *'winphone' — Windows Phone,, *'web' — приложения на vk.com. By default: 'web'. */ platform?: "android" | "ios" | "web" | "winphone"; /** * Case for declension of user name and surname: 'nom' — nominative (default),, 'gen' — genitive,, 'dat' — dative,, 'acc' — accusative,, 'ins' — instrumental,, 'abl' — prepositional. (only if 'return_friends' = '1') */ name_case?: "nom" | "gen" | "dat" | "acc" | "ins" | "abl"; app_ids?: string[] | string; extended?: boolean; return_friends?: boolean; fields?: Objects.UsersFields[]; [key: string]: any; } export interface AppsGetCatalogParams { /** * Sort order: 'popular_today' — popular for one day (default), 'visitors' — by visitors number , 'create_date' — by creation date, 'growth_rate' — by growth rate, 'popular_week' — popular for one week */ sort?: "popular_today" | "visitors" | "create_date" | "growth_rate" | "popular_week"; /** * Offset required to return a specific subset of apps. */ offset?: number; /** * Number of apps to return. */ count: number; /** * '1' — to return additional fields 'screenshots', 'MAU', 'catalog_position', and 'international'. If set, 'count' must be less than or equal to '100'. '0' — not to return additional fields (default). */ extended?: boolean; /** * Search query string. */ q?: string; /** * 'installed' — to return list of installed apps (only for mobile platform). */ filter?: "favorite" | "featured" | "installed" | "new"; platform?: string; return_friends?: boolean; fields?: Objects.UsersFields[]; name_case?: string; genre_id?: number; [key: string]: any; } export interface AppsGetFriendsListParams { /** * List size. */ count?: number; /** * List type. Possible values: * 'invite' — available for invites (don't play the game),, * 'request' — available for request (play the game). By default: 'invite'. */ type?: "invite" | "request"; extended?: boolean; offset?: number; fields?: Objects.UsersFields[]; [key: string]: any; } export interface AppsGetLeaderboardParams { /** * Leaderboard type. Possible values: *'level' — by level,, *'points' — by mission points,, *'score' — by score (). */ type: "level" | "points" | "score"; /** * Rating type. Possible values: *'1' — global rating among all players,, *'0' — rating among user friends. */ global?: boolean; /** * 1 — to return additional info about users */ extended?: boolean; [key: string]: any; } export interface AppsGetScopesParams { type?: "group" | "user"; [key: string]: any; } export interface AppsGetScoreParams { user_id: number; [key: string]: any; } export interface AppsSendRequestParams { /** * id of the user to send a request */ user_id: number; /** * request text */ text?: string; /** * request type. Values: 'invite' – if the request is sent to a user who does not have the app installed,, 'request' – if a user has already installed the app */ type?: "invite" | "request"; /** * special string key to be sent with the request */ key?: string; name?: string; separate?: boolean; [key: string]: any; } export interface AuthCheckPhoneParams { /** * Phone number. */ phone: string; /** * User ID. */ client_id?: number; client_secret?: string; auth_by_phone?: boolean; [key: string]: any; } export interface AuthRestoreParams { /** * User phone number. */ phone: string; /** * User last name. */ last_name: string; [key: string]: any; } export interface BoardAddTopicParams { /** * ID of the community that owns the discussion board. */ group_id: number; /** * Topic title. */ title: string; /** * Text of the topic. */ text?: string; /** * For a community: '1' — to post the topic as by the community, '0' — to post the topic as by the user (default) */ from_group?: boolean; attachments?: string[] | string; [key: string]: any; } export interface BoardCloseTopicParams { /** * ID of the community that owns the discussion board. */ group_id: number; /** * Topic ID. */ topic_id: number; [key: string]: any; } export interface BoardCreateCommentParams { /** * ID of the community that owns the discussion board. */ group_id: number; /** * ID of the topic to be commented on. */ topic_id: number; /** * (Required if 'attachments' is not set.) Text of the comment. */ message?: string; /** * '1' — to post the comment as by the community, '0' — to post the comment as by the user (default) */ from_group?: boolean; /** * Sticker ID. */ sticker_id?: number; /** * Unique identifier to avoid repeated comments. */ guid?: string; attachments?: string[] | string; [key: string]: any; } export interface BoardDeleteCommentParams { /** * ID of the community that owns the discussion board. */ group_id: number; /** * Topic ID. */ topic_id: number; /** * Comment ID. */ comment_id: number; [key: string]: any; } export interface BoardDeleteTopicParams { /** * ID of the community that owns the discussion board. */ group_id: number; /** * Topic ID. */ topic_id: number; [key: string]: any; } export interface BoardEditCommentParams { /** * ID of the community that owns the discussion board. */ group_id: number; /** * Topic ID. */ topic_id: number; /** * ID of the comment on the topic. */ comment_id: number; /** * (Required if 'attachments' is not set). New comment text. */ message?: string; attachments?: string[] | string; [key: string]: any; } export interface BoardEditTopicParams { /** * ID of the community that owns the discussion board. */ group_id: number; /** * Topic ID. */ topic_id: number; /** * New title of the topic. */ title: string; [key: string]: any; } export interface BoardFixTopicParams { /** * ID of the community that owns the discussion board. */ group_id: number; /** * Topic ID. */ topic_id: number; [key: string]: any; } export interface BoardGetCommentsParams { /** * ID of the community that owns the discussion board. */ group_id: number; /** * Topic ID. */ topic_id: number; /** * '1' — to return the 'likes' field, '0' — not to return the 'likes' field (default) */ need_likes?: boolean; /** * Offset needed to return a specific subset of comments. */ offset?: number; /** * Number of comments to return. */ count?: number; /** * '1' — to return information about users who posted comments, '0' — to return no additional fields (default) */ extended?: boolean; /** * Sort order: 'asc' — by creation date in chronological order, 'desc' — by creation date in reverse chronological order, */ sort?: "asc" | "desc"; start_comment_id?: number; [key: string]: any; } export interface BoardGetTopicsParams { /** * ID of the community that owns the discussion board. */ group_id: number; /** * Sort order: '1' — by date updated in reverse chronological order. '2' — by date created in reverse chronological order. '-1' — by date updated in chronological order. '-2' — by date created in chronological order. If no sort order is specified, topics are returned in the order specified by the group administrator. Pinned topics are returned first, regardless of the sorting. */ order?: 1 | 2 | -1 | -2 | 0; /** * Offset needed to return a specific subset of topics. */ offset?: number; /** * Number of topics to return. */ count?: number; /** * '1' — to return information about users who created topics or who posted there last, '0' — to return no additional fields (default) */ extended?: boolean; /** * '1' — to return the first comment in each topic,, '2' — to return the last comment in each topic,, '0' — to return no comments. By default: '0'. */ preview?: 1 | 2 | 0; /** * Number of characters after which to truncate the previewed comment. To preview the full comment, specify '0'. */ preview_length?: number; topic_ids?: number[] | number; [key: string]: any; } export interface BoardOpenTopicParams { /** * ID of the community that owns the discussion board. */ group_id: number; /** * Topic ID. */ topic_id: number; [key: string]: any; } export interface BoardRestoreCommentParams { /** * ID of the community that owns the discussion board. */ group_id: number; /** * Topic ID. */ topic_id: number; /** * Comment ID. */ comment_id: number; [key: string]: any; } export interface BoardUnfixTopicParams { /** * ID of the community that owns the discussion board. */ group_id: number; /** * Topic ID. */ topic_id: number; [key: string]: any; } export interface DatabaseGetChairsParams { /** * id of the faculty to get chairs from */ faculty_id: number; /** * offset required to get a certain subset of chairs */ offset?: number; /** * amount of chairs to get */ count?: number; [key: string]: any; } export interface DatabaseGetCitiesParams { /** * Country ID. */ country_id: number; /** * Region ID. */ region_id?: number; /** * Search query. */ q?: string; /** * '1' — to return all cities in the country, '0' — to return major cities in the country (default), */ need_all?: boolean; /** * Offset needed to return a specific subset of cities. */ offset?: number; /** * Number of cities to return. */ count?: number; [key: string]: any; } export interface DatabaseGetCitiesByIdParams { city_ids?: number[] | number; [key: string]: any; } export interface DatabaseGetCountriesParams { /** * '1' — to return a full list of all countries, '0' — to return a list of countries near the current user's country (default). */ need_all?: boolean; /** * Country codes in [vk.com/dev/country_codes|ISO 3166-1 alpha-2] standard. */ code?: string; /** * Offset needed to return a specific subset of countries. */ offset?: number; /** * Number of countries to return. */ count?: number; [key: string]: any; } export interface DatabaseGetCountriesByIdParams { country_ids?: number[] | number; [key: string]: any; } export interface DatabaseGetFacultiesParams { /** * University ID. */ university_id: number; /** * Offset needed to return a specific subset of faculties. */ offset?: number; /** * Number of faculties to return. */ count?: number; [key: string]: any; } export interface DatabaseGetMetroStationsParams { city_id: number; offset?: number; count?: number; extended?: boolean; [key: string]: any; } export interface DatabaseGetMetroStationsByIdParams { station_ids?: number[] | number; [key: string]: any; } export interface DatabaseGetRegionsParams { /** * Country ID, received in [vk.com/dev/database.getCountries|database.getCountries] method. */ country_id: number; /** * Search query. */ q?: string; /** * Offset needed to return specific subset of regions. */ offset?: number; /** * Number of regions to return. */ count?: number; [key: string]: any; } export interface DatabaseGetSchoolClassesParams { /** * Country ID. */ country_id?: number; [key: string]: any; } export interface DatabaseGetSchoolsParams { /** * Search query. */ q?: string; /** * City ID. */ city_id: number; /** * Offset needed to return a specific subset of schools. */ offset?: number; /** * Number of schools to return. */ count?: number; [key: string]: any; } export interface DatabaseGetUniversitiesParams { /** * Search query. */ q?: string; /** * Country ID. */ country_id?: number; /** * City ID. */ city_id?: number; /** * Offset needed to return a specific subset of universities. */ offset?: number; /** * Number of universities to return. */ count?: number; [key: string]: any; } export interface DocsAddParams { /** * ID of the user or community that owns the document. Use a negative value to designate a community ID. */ owner_id: number; /** * Document ID. */ doc_id: number; /** * Access key. This parameter is required if 'access_key' was returned with the document's data. */ access_key?: string; [key: string]: any; } export interface DocsDeleteParams { /** * ID of the user or community that owns the document. Use a negative value to designate a community ID. */ owner_id: number; /** * Document ID. */ doc_id: number; [key: string]: any; } export interface DocsEditParams { /** * User ID or community ID. Use a negative value to designate a community ID. */ owner_id: number; /** * Document ID. */ doc_id: number; /** * Document title. */ title?: string; tags?: string[] | string; [key: string]: any; } export interface DocsGetParams { /** * Number of documents to return. By default, all documents. */ count?: number; /** * Offset needed to return a specific subset of documents. */ offset?: number; /** * ID of the user or community that owns the documents. Use a negative value to designate a community ID. */ owner_id?: number; type?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; [key: string]: any; } export interface DocsGetByIdParams { docs?: string[] | string; [key: string]: any; } export interface DocsGetMessagesUploadServerParams { /** * Document type. */ type?: "audio_message" | "doc" | "graffiti"; /** * Destination ID. "For user: 'User ID', e.g. '12345'. For chat: '2000000000' + 'Chat ID', e.g. '2000000001'. For community: '- Community ID', e.g. '-12345'. " */ peer_id?: number; [key: string]: any; } export interface DocsGetTypesParams { /** * ID of the user or community that owns the documents. Use a negative value to designate a community ID. */ owner_id: number; [key: string]: any; } export interface DocsGetUploadServerParams { /** * Community ID (if the document will be uploaded to the community). */ group_id?: number; [key: string]: any; } export interface DocsGetWallUploadServerParams { /** * Community ID (if the document will be uploaded to the community). */ group_id?: number; [key: string]: any; } export interface DocsSaveParams { /** * This parameter is returned when the file is [vk.com/dev/upload_files_2|uploaded to the server]. */ file: string; /** * Document title. */ title?: string; /** * Document tags. */ tags?: string; [key: string]: any; } export interface DocsSearchParams { /** * Search query string. */ q: string; /** * Number of results to return. */ count?: number; /** * Offset needed to return a specific subset of results. */ offset?: number; search_own?: boolean; [key: string]: any; } export interface FaveAddGroupParams { /** * Community ID. */ group_id: number; [key: string]: any; } export interface FaveAddLinkParams { /** * Link URL. */ link: string; [key: string]: any; } export interface FaveAddUserParams { /** * Profile ID. */ user_id: number; [key: string]: any; } export interface FaveGetLinksParams { /** * Offset needed to return a specific subset of users. */ offset?: number; /** * Number of results to return. */ count?: number; [key: string]: any; } export interface FaveGetMarketItemsParams { /** * Number of results to return. */ count?: number; /** * '1' – to return additional fields 'likes, can_comment, can_repost, photos'. By default: '0'. */ extended?: boolean; offset?: number; [key: string]: any; } export interface FaveGetPhotosParams { /** * Offset needed to return a specific subset of photos. */ offset?: number; /** * Number of photos to return. */ count?: number; [key: string]: any; } export interface FaveGetPostsParams { /** * Offset needed to return a specific subset of posts. */ offset?: number; /** * Number of posts to return. */ count?: number; /** * '1' — to return additional 'wall', 'profiles', and 'groups' fields. By default: '0'. */ extended?: boolean; [key: string]: any; } export interface FaveGetUsersParams { /** * Offset needed to return a specific subset of users. */ offset?: number; /** * Number of users to return. */ count?: number; [key: string]: any; } export interface FaveGetVideosParams { /** * Offset needed to return a specific subset of videos. */ offset?: number; /** * Number of videos to return. */ count?: number; /** * Return an additional information about videos. Also returns all owners profiles and groups. */ extended?: boolean; [key: string]: any; } export interface FaveRemoveGroupParams { /** * Community ID. */ group_id: number; [key: string]: any; } export interface FaveRemoveLinkParams { /** * Link ID (can be obtained by [vk.com/dev/faves.getLinks|faves.getLinks] method). */ link_id?: string; [key: string]: any; } export interface FaveRemoveUserParams { /** * Profile ID. */ user_id: number; [key: string]: any; } export interface FriendsAddParams { /** * ID of the user whose friend request will be approved or to whom a friend request will be sent. */ user_id?: number; /** * Text of the message (up to 500 characters) for the friend request, if any. */ text?: string; /** * '1' to pass an incoming request to followers list. */ follow?: boolean; [key: string]: any; } export interface FriendsAddListParams { /** * Name of the friend list. */ name: string; user_ids?: number[] | number; [key: string]: any; } export interface FriendsAreFriendsParams { /** * '1' — to return 'sign' field. 'sign' is md5("{id}_{user_id}_{friends_status}_{application_secret}"), where id is current user ID. This field allows to check that data has not been modified by the client. By default: '0'. */ need_sign?: boolean; user_ids?: number[] | number; [key: string]: any; } export interface FriendsDeleteParams { /** * ID of the user whose friend request is to be declined or who is to be deleted from the current user's friend list. */ user_id?: number; [key: string]: any; } export interface FriendsDeleteAllRequestsParams { [key: string]: any; } export interface FriendsDeleteListParams { /** * ID of the friend list to delete. */ list_id: number; [key: string]: any; } export interface FriendsEditParams { /** * ID of the user whose friend list is to be edited. */ user_id: number; list_ids?: number[] | number; [key: string]: any; } export interface FriendsEditListParams { /** * Name of the friend list. */ name?: string; /** * Friend list ID. */ list_id: number; user_ids?: number[] | number; add_user_ids?: number[] | number; delete_user_ids?: number[] | number; [key: string]: any; } export interface FriendsGetParams { /** * User ID. By default, the current user ID. */ user_id?: number; /** * Sort order: , 'name' — by name (enabled only if the 'fields' parameter is used), 'hints' — by rating, similar to how friends are sorted in My friends section, , This parameter is available only for [vk.com/dev/standalone|desktop applications]. */ order?: "name" | "hints"; /** * ID of the friend list returned by the [vk.com/dev/friends.getLists|friends.getLists] method to be used as the source. This parameter is taken into account only when the uid parameter is set to the current user ID. This parameter is available only for [vk.com/dev/standalone|desktop applications]. */ list_id?: number; /** * Number of friends to return. */ count?: number; /** * Offset needed to return a specific subset of friends. */ offset?: number; /** * Case for declension of user name and surname: , 'nom' — nominative (default) , 'gen' — genitive , 'dat' — dative , 'acc' — accusative , 'ins' — instrumental , 'abl' — prepositional */ name_case?: "nom" | "gen" | "dat" | "acc" | "ins" | "abl"; fields?: Objects.UsersFields[]; [key: string]: any; } export interface FriendsGetAppUsersParams { [key: string]: any; } export interface FriendsGetByPhonesParams { phones?: string[] | string; fields?: Objects.UsersFields[]; [key: string]: any; } export interface FriendsGetListsParams { /** * User ID. */ user_id?: number; /** * '1' — to return system friend lists. By default: '0'. */ return_system?: boolean; [key: string]: any; } export interface FriendsGetMutualParams { /** * ID of the user whose friends will be checked against the friends of the user specified in 'target_uid'. */ source_uid?: number; /** * ID of the user whose friends will be checked against the friends of the user specified in 'source_uid'. */ target_uid?: number; /** * Sort order: 'random' — random order */ order?: string; /** * Number of mutual friends to return. */ count?: number; /** * Offset needed to return a specific subset of mutual friends. */ offset?: number; target_uids?: number[] | number; [key: string]: any; } export interface FriendsGetOnlineParams { /** * User ID. */ user_id?: number; /** * Friend list ID. If this parameter is not set, information about all online friends is returned. */ list_id?: number; /** * '1' — to return an additional 'online_mobile' field, '0' — (default), */ online_mobile?: boolean; /** * Sort order: 'random' — random order */ order?: string; /** * Number of friends to return. */ count?: number; /** * Offset needed to return a specific subset of friends. */ offset?: number; [key: string]: any; } export interface FriendsGetRecentParams { /** * Number of recently added friends to return. */ count?: number; [key: string]: any; } export interface FriendsGetRequestsParams { /** * Offset needed to return a specific subset of friend requests. */ offset?: number; /** * Number of friend requests to return (default 100, maximum 1000). */ count?: number; /** * '1' — to return response messages from users who have sent a friend request or, if 'suggested' is set to '1', to return a list of suggested friends */ extended?: boolean; /** * '1' — to return a list of mutual friends (up to 20), if any */ need_mutual?: boolean; /** * '1' — to return outgoing requests, '0' — to return incoming requests (default) */ out?: boolean; /** * Sort order: '1' — by number of mutual friends, '0' — by date */ sort?: 0 | 1; /** * '1' — to return a list of suggested friends, '0' — to return friend requests (default) */ suggested?: boolean; need_viewed?: boolean; [key: string]: any; } export interface FriendsGetSuggestionsParams { /** * Number of suggestions to return. */ count?: number; /** * Offset needed to return a specific subset of suggestions. */ offset?: number; /** * Case for declension of user name and surname: , 'nom' — nominative (default) , 'gen' — genitive , 'dat' — dative , 'acc' — accusative , 'ins' — instrumental , 'abl' — prepositional */ name_case?: "nom" | "gen" | "dat" | "acc" | "ins" | "abl"; filter?: ("mutual" | "contacts" | "mutual_contacts")[] | ("mutual" | "contacts" | "mutual_contacts"); fields?: Objects.UsersFields[]; [key: string]: any; } export interface FriendsSearchParams { /** * User ID. */ user_id: number; /** * Search query string (e.g., 'Vasya Babich'). */ q?: string; /** * Case for declension of user name and surname: 'nom' — nominative (default), 'gen' — genitive , 'dat' — dative, 'acc' — accusative , 'ins' — instrumental , 'abl' — prepositional */ name_case?: "nom