@apidog/vk-typings
Advanced tools
Comparing version 1.0.9 to 1.0.10
{ | ||
"name": "@apidog/vk-typings", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Typings for VK API objects", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -12,2 +12,4 @@ import type { ICommentThread } from './ICommentThread'; | ||
post_id: number; | ||
photo_id?: number; | ||
video_id?: number; | ||
/** Автор комментария */ | ||
@@ -14,0 +16,0 @@ from_id: number; |
@@ -5,3 +5,3 @@ import type { ICoordinates } from './ICoordinates'; | ||
export interface IGeo { | ||
type: string; | ||
type: 'place' | 'point'; | ||
coordinates: ICoordinates | `${number} ${number}`; | ||
@@ -8,0 +8,0 @@ place?: IPlace; |
@@ -30,3 +30,3 @@ import type { IAttachments } from './IAttachments'; | ||
type: string; // TODO | ||
post_type: 'post' | 'copy' | 'reply' | 'postpone' | 'suggest'; | ||
post_type: 'post' | 'copy' | 'reply' | 'postpone' | 'suggest' | 'post_ads' | 'photo' | 'video'; | ||
post_source?: IPostSource; | ||
@@ -50,3 +50,3 @@ attachments?: IAttachments; | ||
activity?: IPostActivity; | ||
zoom_text?: boolean; | ||
short_text_rate?: number; | ||
} |
@@ -8,2 +8,2 @@ export interface IPostSource { | ||
export type PostSourceType = 'vk' | 'widget' | 'api' | 'rss' | 'sms'; | ||
export type PostSourceType = 'vk' | 'widget' | 'api' | 'rss' | 'sms' | 'mvk'; |
@@ -38,7 +38,17 @@ import type { IAccountPhotoSize } from './IAccountPhotoSize'; | ||
interface IUserExtended { | ||
can_post?: boolean; | ||
can_post: boolean; | ||
can_write_private_message: boolean; | ||
can_see_gifts: boolean; | ||
can_send_friend_request: boolean; | ||
can_see_audio: boolean; | ||
can_invite_to_chats: boolean; | ||
can_be_invited_group: boolean; | ||
can_upload_doc: boolean; | ||
can_ban: boolean; | ||
can_call: boolean; | ||
can_see_all_posts: boolean; | ||
service_description: string; | ||
sex: number; | ||
can_write_private_message: boolean; | ||
maiden_name: string; | ||
friend_status: number; | ||
friend_status: FriendStatus; | ||
blacklisted: boolean; | ||
@@ -51,2 +61,3 @@ blacklisted_by_me: boolean; | ||
is_favorite: boolean; | ||
is_hidden_from_feed: boolean; | ||
last_seen: IUserLastSeen; | ||
@@ -58,8 +69,10 @@ crop_photo: IUserCropPhoto; | ||
status: string; | ||
has_mobile: boolean; | ||
has_unseen_stories: boolean; | ||
trending: boolean; | ||
mobile_phone: string; | ||
home_phone: string; | ||
home_town: string; | ||
can_see_gifts: boolean; | ||
common_count: number; | ||
counters: IUserCounters; | ||
common_count: number; | ||
relatives: IUserRelative[]; | ||
@@ -74,3 +87,3 @@ facebook_name: string; | ||
universities: IUniversityItem[]; | ||
relation: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; | ||
relation: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; | ||
relation_partner: { | ||
@@ -83,2 +96,5 @@ id: number; | ||
activity: string; | ||
wall_comments?: 1; | ||
wall_default?: 'all' | 'owner'; | ||
is_no_index?: boolean; | ||
} | ||
@@ -103,1 +119,8 @@ | ||
} | ||
export const enum FriendStatus { | ||
NOT_A_FRIEND = 0, | ||
OUTCOMING_REQUEST = 1, | ||
INCOMING_REQUEST = 2, | ||
IS_FRIEND = 3, | ||
} |
@@ -1,3 +0,3 @@ | ||
export interface IUserOnlineInfo { | ||
visible: boolean; | ||
export interface IUserOnlineInfo_visible_yes { | ||
visible: true; | ||
last_seen?: number; | ||
@@ -8,1 +8,11 @@ app_id?: number; | ||
} | ||
export interface IUserOnlineInfo_visible_no { | ||
visible: false; | ||
status: 'recently' | 'last_week' | 'last_month' | 'long_ago' | 'not_show'; | ||
} | ||
/** | ||
* https://github.com/VKCOM/vk-api-schema/blob/ff08ec8436250434e64ae93bd27fa7da2a009324/users/objects.json#L274C13-L313 | ||
*/ | ||
export type IUserOnlineInfo = IUserOnlineInfo_visible_yes | IUserOnlineInfo_visible_no; |
@@ -10,2 +10,3 @@ import type { ILikesInfo } from './ILikesInfo'; | ||
export interface IVideo { | ||
type: 'video' | 'music_video' | 'movie' | 'live' | 'short_video'; | ||
owner_id: number; | ||
@@ -23,9 +24,13 @@ id: number; | ||
local_views?: number; | ||
spectators?: number; | ||
comments: number; | ||
player: string; | ||
platform: string; | ||
can_add: boolean; | ||
can_edit: boolean; | ||
can_add: boolean; | ||
can_edit_privacy: boolean; | ||
can_delete: boolean; | ||
is_private: boolean; | ||
processing?: boolean; | ||
converting?: boolean; | ||
live?: boolean; | ||
@@ -40,2 +45,3 @@ upcoming?: boolean; | ||
can_repost: boolean; | ||
can_attach_link: boolean; | ||
can_subscribe: boolean; | ||
@@ -59,7 +65,10 @@ /** only without callback */ | ||
track_code: string; | ||
// Неизвестно что это | ||
response_type?: 'full' | 'min'; | ||
content_restricted?: 1; | ||
content_restricted_message?: string; | ||
balance?: number; | ||
can_dislike?: 1; | ||
/** Id of the user who uploaded the video if it was uploaded to a group by member */ | ||
user_id?: number; | ||
restriction?: IVideoRestriction; | ||
} |
import type { IVideoImage } from './IVideoImage'; | ||
export interface IVideoAlbum { | ||
response_type?: 'full' | 'min'; | ||
owner_id: number; | ||
@@ -11,2 +12,6 @@ id: number; | ||
is_system?: 1; | ||
image_blur?: 1; | ||
can_edit?: 1; | ||
can_delete?: 1; | ||
can_upload?: 1; | ||
} |
@@ -1,2 +0,2 @@ | ||
export type VideoFilesMp4 = 'mp4_240' | 'mp4_360' | 'mp4_480' | 'mp4_720' | 'mp4_1080'; | ||
export type VideoFilesMp4 = 'mp4_144' | 'mp4_240' | 'mp4_360' | 'mp4_480' | 'mp4_720' | 'mp4_1080' | 'mp4_1440' | 'mp4_2160'; | ||
export type VideoFilesKey = VideoFilesMp4 | 'external' | 'hls'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67484
2243