@apidog/vk-typings
Advanced tools
Comparing version 1.0.20 to 1.0.21
{ | ||
"name": "@apidog/vk-typings", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "Typings for VK API objects", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -16,2 +16,3 @@ import type { IPhoto } from './IPhoto'; | ||
can_share?: boolean; | ||
can_report?: boolean; | ||
created: number; | ||
@@ -28,2 +29,3 @@ question: string; | ||
friends?: { id: number }[]; | ||
embed_hash?: string; | ||
} |
@@ -18,2 +18,5 @@ import type { IPhoto } from './IPhoto'; | ||
can_see?: 1; | ||
can_like?: boolean; | ||
can_hide?: 0 | 1; | ||
is_ads?: boolean; | ||
link?: IStoryLink; | ||
@@ -28,3 +31,3 @@ parent_story_owner_id?: number; | ||
clickable_stickers?: IStoryClickableStickers; | ||
views: number; | ||
views?: number; | ||
access_key?: string; | ||
@@ -45,5 +48,5 @@ seen?: boolean; | ||
export interface IStoryVideo extends IStoryBase<'video'> { | ||
video: IVideo & Required<Pick<IVideo, 'image'>>; | ||
video: Omit<IVideo, 'comments' | 'can_comment' | 'can_like' | 'can_repost' | 'can_add_to_faves'> & Required<Pick<IVideo, 'image'>>; | ||
} | ||
export type IStory = IStoryPhoto | IStoryVideo; |
@@ -6,2 +6,3 @@ import type { IApplication } from './IApplication'; | ||
type: 'stories'; | ||
id: string; | ||
stories: IStory[]; | ||
@@ -8,0 +9,0 @@ has_unseen?: boolean; |
@@ -24,3 +24,3 @@ import type { IPoll } from './IPoll'; | ||
style: 'transparent' | 'underline' | 'red_gradient'; | ||
style?: 'transparent' | 'underline' | 'red_gradient'; | ||
@@ -27,0 +27,0 @@ // type = post |
@@ -56,6 +56,8 @@ import type { ILikesInfo } from './ILikesInfo'; | ||
/** only without callback */ | ||
can_play_in_background?: boolean; | ||
can_play_in_background?: 0 | 1; | ||
/** only without callback */ | ||
can_download?: boolean; | ||
can_download?: 0 | 1; | ||
/** only without callback */ | ||
is_from_message?: 0 | 1; | ||
/** only without callback */ | ||
files?: Partial<Record<VideoFilesKey, string>> & { | ||
@@ -78,2 +80,4 @@ failover_host?: string; | ||
restriction?: IVideoRestriction; | ||
ov_id?: string; | ||
thumb_hash?: string; | ||
} |
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'; | ||
export type VideoFilesKey = VideoFilesMp4 | 'external' | 'hls' | 'dash_sep' | 'dash_webm'; |
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
75194
2487