diff --git a/.github/workflows/php-sdk-generate.yml b/.github/workflows/php-sdk-generate.yml index 9552a7b..b3cd8de 100644 --- a/.github/workflows/php-sdk-generate.yml +++ b/.github/workflows/php-sdk-generate.yml @@ -71,3 +71,6 @@ jobs: git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git commit -m "Autogenerate sdk on $SCHEMA_COMMENT" git push + tag=v$(cat ../schema/package.json | grep -o '"version": "[^"]*' | grep -o '[^"]*$') + git tag $tag + git push origin $tag \ No newline at end of file diff --git a/apps/methods.json b/apps/methods.json index 7717105..ac539f6 100644 --- a/apps/methods.json +++ b/apps/methods.json @@ -318,7 +318,8 @@ "favorite", "featured", "installed", - "new" + "new", + "recommended" ] } ], diff --git a/base/objects.json b/base/objects.json index 93b8435..9a065f6 100644 --- a/base/objects.json +++ b/base/objects.json @@ -472,6 +472,7 @@ "open_url", "market_clear_recent_queries", "close_web_app", + "add_playlist", "open_search_tab", "open_search_filters", "import_contacts", @@ -496,7 +497,8 @@ "flat", "outline_with_chevron", "inline", - "modal" + "modal", + "right_button" ], "enumNames": [ "updates", @@ -511,7 +513,8 @@ "flat", "outline_with_chevron", "inline", - "modal" + "modal", + "right_button" ] }, "base_link_no_product": { diff --git a/bugtracker/objects.json b/bugtracker/objects.json index f20663a..5ff4b74 100644 --- a/bugtracker/objects.json +++ b/bugtracker/objects.json @@ -185,6 +185,9 @@ "need_correction_long_time", "ready_for_testing_long_time" ] + }, + "product_has_wishes": { + "type": "boolean" } } }, @@ -278,6 +281,9 @@ "moder_name": { "type": "string" }, + "moder_number": { + "type": "integer" + }, "link": { "type": "string" } diff --git a/database/methods.json b/database/methods.json index d3bb2ac..4218b4b 100644 --- a/database/methods.json +++ b/database/methods.json @@ -77,6 +77,14 @@ "default": 100, "minimum": 0, "maximum": 1000 + }, + { + "name": "fields", + "description": "Cities fields to return. Sample values: 'fias_guid'", + "type": "array", + "items": { + "$ref": "../database/objects.json#/definitions/database_cities_fields" + } } ], "responses": { @@ -102,6 +110,14 @@ "minimum": 0 }, "maxItems": 1000 + }, + { + "name": "fields", + "description": "Cities fields to return. Sample values: 'fias_guid'", + "type": "array", + "items": { + "$ref": "../database/objects.json#/definitions/database_cities_fields" + } } ], "responses": { diff --git a/database/objects.json b/database/objects.json index 797f84f..2bdad61 100644 --- a/database/objects.json +++ b/database/objects.json @@ -5,6 +5,9 @@ "description": "Contains JSON Schema documents explaining the VK.COM API - objects", "termsOfService": "https://dev.vk.com/rules", "definitions": { + "database_cities_fields": { + "type": "string" + }, "database_city": { "type": "object", "allOf": [ diff --git a/errors.json b/errors.json index e51b4d9..5cea192 100644 --- a/errors.json +++ b/errors.json @@ -450,6 +450,10 @@ "code": 242, "description": "Too many friends" }, + "api_error_wall_comment_not_deleted": { + "code": 243, + "description": "Comment has not been deleted" + }, "api_error_polls_access": { "code": 250, "description": "Access to poll denied" @@ -1079,22 +1083,6 @@ "code": 3800, "description": "Can't set AliExpress tag to this type of object" }, - "api_error_asr_audio_duration_flooded": { - "code": 7701, - "description": "Total audio duration limit reached" - }, - "api_error_asr_file_is_too_big": { - "code": 7702, - "description": "Audio file is too big" - }, - "api_error_asr_invalid_hash": { - "code": 7703, - "description": "Invalid hash" - }, - "api_error_asr_not_found": { - "code": 7704, - "description": "Task not found" - }, "api_error_not_supported_http_method": { "code": 9999, "description": "Not supported http method", diff --git a/gifts/objects.json b/gifts/objects.json index ee0f14e..ee1f053 100644 --- a/gifts/objects.json +++ b/gifts/objects.json @@ -57,7 +57,8 @@ "properties": { "id": { "type": "integer", - "description": "Gift ID" + "description": "Gift ID", + "required": true }, "thumb_512": { "type": "string", diff --git a/groups/methods.json b/groups/methods.json index 17545ee..75d12bc 100644 --- a/groups/methods.json +++ b/groups/methods.json @@ -1062,7 +1062,8 @@ "name": "groups.get", "description": "Returns a list of the communities to which a user belongs.", "access_token_type": [ - "user" + "user", + "service" ], "parameters": [ { diff --git a/groups/objects.json b/groups/objects.json index 5c712de..589ac1c 100644 --- a/groups/objects.json +++ b/groups/objects.json @@ -462,12 +462,17 @@ "using_vkpay_market_app", "has_group_channel", "addresses", + "messages", + "business_rating", "is_subscribed_podcasts", "can_subscribe_podcasts", "can_subscribe_posts", "live_covers", "stories_archive_count", "has_unseen_stories", + "category", + "category0", + "category1", "rating", "is_market_market_link_attachment_enabled", "is_market_message_to_bc_attachment_enabled", diff --git a/market/methods.json b/market/methods.json index 18206ba..c269c8e 100644 --- a/market/methods.json +++ b/market/methods.json @@ -1684,6 +1684,11 @@ "format": "int64", "minimum": 1, "entity": "owner" + }, + { + "name": "bulk", + "type": "boolean", + "default": false } ], "responses": { @@ -2181,6 +2186,31 @@ } ] }, + { + "name": "market.saveProductPhotoBulk", + "description": "Bulk save market photo after upload.", + "access_token_type": [ + "user" + ], + "parameters": [ + { + "name": "upload_response", + "description": "Upload response", + "type": "string", + "required": true + } + ], + "responses": { + "response": { + "$ref": "../market/responses.json#/definitions/market_photo_id_bulk_response" + } + }, + "errors": [ + { + "$ref": "../errors.json#/errors/api_error_market_not_enabled" + } + ] + }, { "name": "market.search", "description": "Searches market items in a community's catalog", diff --git a/market/objects.json b/market/objects.json index 96a53e1..f1cc739 100644 --- a/market/objects.json +++ b/market/objects.json @@ -788,6 +788,20 @@ "cards", "rows" ] + }, + "market_upload_photo_data": { + "type": "object", + "properties": { + "photo_id": { + "type": "integer", + "description": "Photo ID", + "required": true + }, + "photo": { + "$ref": "../photos/objects.json#/definitions/photos_photo" + } + }, + "required": true } } } diff --git a/market/responses.json b/market/responses.json index aa7c9c0..9c9abe5 100644 --- a/market/responses.json +++ b/market/responses.json @@ -441,6 +441,18 @@ } } }, + "market_photo_id_bulk_response": { + "type": "object", + "properties": { + "response": { + "type": "array", + "items": { + "$ref": "../market/objects.json#/definitions/market_upload_photo_data" + }, + "required": true + } + } + }, "market_photo_id_response": { "type": "object", "properties": { diff --git a/messages/methods.json b/messages/methods.json index 7d26c81..41e0532 100644 --- a/messages/methods.json +++ b/messages/methods.json @@ -599,7 +599,8 @@ "extendedResponse": { "$ref": "../messages/responses.json#/definitions/messages_getByConversationMessageId_extended_response" } - } + }, + "errors": [] }, { "name": "messages.getById", @@ -2642,6 +2643,9 @@ }, { "$ref": "../errors.json#/errors/api_error_messages_chat_not_admin" + }, + { + "$ref": "../errors.json#/errors/api_error_messages_chat_disabled" } ] }, diff --git a/package.json b/package.json index 2a14d92..2f4041b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vkontakte/api-schema", - "version": "5.199.81", + "version": "5.199.91", "description": "VK API JSON Schema", "repository": { "type": "git", diff --git a/stories/objects.json b/stories/objects.json index 71f2dc9..37741df 100644 --- a/stories/objects.json +++ b/stories/objects.json @@ -56,6 +56,9 @@ "clip_id": { "type": "integer" }, + "video_id": { + "type": "integer" + }, "question": { "type": "string" }, @@ -105,7 +108,10 @@ "album", "horizontal", "equalizer", - "header_meta" + "header_meta", + "preview", + "miniature", + "fullview" ] }, "type": { @@ -127,6 +133,7 @@ "situational_theme", "playlist", "clip", + "vk_video", "situational_template", "spoiler" ], diff --git a/utils/objects.json b/utils/objects.json index b78c921..e09c934 100644 --- a/utils/objects.json +++ b/utils/objects.json @@ -30,6 +30,7 @@ "user", "group", "application", + "event", "page", "vk_app", "community_application" diff --git a/video/methods.json b/video/methods.json index b84c0d3..1f3acaa 100644 --- a/video/methods.json +++ b/video/methods.json @@ -522,6 +522,7 @@ "description": "ID of the user or community that owns the video(s).", "type": "integer", "format": "int64", + "default": 0, "entity": "owner" }, { diff --git a/video/objects.json b/video/objects.json index 9edbf1c..533a135 100644 --- a/video/objects.json +++ b/video/objects.json @@ -19,95 +19,6 @@ } } }, - "video_info": { - "type": "object", - "properties": { - "united_video_id": { - "type": "integer", - "minimum": 1, - "description": "United Video ID", - "required": true - }, - "qualities": { - "type": "array", - "items": { - "$ref": "../video/objects.json#/definitions/video_info_qualities" - }, - "required": true - }, - "tracks": { - "type": "array", - "items": { - "$ref": "../video/objects.json#/definitions/video_info_track" - }, - "required": true - } - } - }, - "video_info_qualities": { - "type": "object", - "properties": { - "name": { - "type": "string", - "required": true - }, - "quality": { - "description": "one of: video_mp4, audio_mp4, dash, dash_audio, dash_webm, dash_webm_audio, dash_av1_webm, dash_hevc", - "type": "array", - "items": { - "$ref": "../video/objects.json#/definitions/video_info_quality" - }, - "required": true - } - } - }, - "video_info_quality": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "one of: mobile, lowest, low, medium, high, full_hd, quad_hd, ultra_hd", - "required": true - }, - "size": { - "type": "integer", - "minimum": 0, - "required": true - }, - "codec": { - "type": "string", - "required": true - } - } - }, - "video_info_track": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "video", - "audio" - ], - "required": true - }, - "language": { - "type": "string", - "required": true - }, - "title": { - "type": "string", - "required": true - }, - "qualities": { - "type": "array", - "items": { - "$ref": "../video/objects.json#/definitions/video_info_qualities" - }, - "required": true - } - } - }, "video_live_category": { "type": "object", "properties": { diff --git a/wall/methods.json b/wall/methods.json index 179e6a1..cff8918 100644 --- a/wall/methods.json +++ b/wall/methods.json @@ -1364,6 +1364,12 @@ "errors": [ { "$ref": "../errors.json#/errors/api_error_wall_access_comment" + }, + { + "$ref": "../errors.json#/errors/api_error_not_found" + }, + { + "$ref": "../errors.json#/errors/api_error_wall_comment_not_deleted" } ] },