Skip to content

Commit

Permalink
JSON-schema for public 5.199
Browse files Browse the repository at this point in the history
  • Loading branch information
vkcom committed Jan 20, 2025
1 parent 1da2ccc commit 08576fa
Show file tree
Hide file tree
Showing 20 changed files with 126 additions and 113 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/php-sdk-generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion apps/methods.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@
"favorite",
"featured",
"installed",
"new"
"new",
"recommended"
]
}
],
Expand Down
7 changes: 5 additions & 2 deletions base/objects.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"open_url",
"market_clear_recent_queries",
"close_web_app",
"add_playlist",
"open_search_tab",
"open_search_filters",
"import_contacts",
Expand All @@ -496,7 +497,8 @@
"flat",
"outline_with_chevron",
"inline",
"modal"
"modal",
"right_button"
],
"enumNames": [
"updates",
Expand All @@ -511,7 +513,8 @@
"flat",
"outline_with_chevron",
"inline",
"modal"
"modal",
"right_button"
]
},
"base_link_no_product": {
Expand Down
6 changes: 6 additions & 0 deletions bugtracker/objects.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@
"need_correction_long_time",
"ready_for_testing_long_time"
]
},
"product_has_wishes": {
"type": "boolean"
}
}
},
Expand Down Expand Up @@ -278,6 +281,9 @@
"moder_name": {
"type": "string"
},
"moder_number": {
"type": "integer"
},
"link": {
"type": "string"
}
Expand Down
16 changes: 16 additions & 0 deletions database/methods.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down
3 changes: 3 additions & 0 deletions database/objects.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
20 changes: 4 additions & 16 deletions errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion gifts/objects.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
"properties": {
"id": {
"type": "integer",
"description": "Gift ID"
"description": "Gift ID",
"required": true
},
"thumb_512": {
"type": "string",
Expand Down
3 changes: 2 additions & 1 deletion groups/methods.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down
5 changes: 5 additions & 0 deletions groups/objects.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
30 changes: 30 additions & 0 deletions market/methods.json
Original file line number Diff line number Diff line change
Expand Up @@ -1684,6 +1684,11 @@
"format": "int64",
"minimum": 1,
"entity": "owner"
},
{
"name": "bulk",
"type": "boolean",
"default": false
}
],
"responses": {
Expand Down Expand Up @@ -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",
Expand Down
14 changes: 14 additions & 0 deletions market/objects.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
12 changes: 12 additions & 0 deletions market/responses.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
6 changes: 5 additions & 1 deletion messages/methods.json
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,8 @@
"extendedResponse": {
"$ref": "../messages/responses.json#/definitions/messages_getByConversationMessageId_extended_response"
}
}
},
"errors": []
},
{
"name": "messages.getById",
Expand Down Expand Up @@ -2642,6 +2643,9 @@
},
{
"$ref": "../errors.json#/errors/api_error_messages_chat_not_admin"
},
{
"$ref": "../errors.json#/errors/api_error_messages_chat_disabled"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vkontakte/api-schema",
"version": "5.199.81",
"version": "5.199.91",
"description": "VK API JSON Schema",
"repository": {
"type": "git",
Expand Down
9 changes: 8 additions & 1 deletion stories/objects.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
"clip_id": {
"type": "integer"
},
"video_id": {
"type": "integer"
},
"question": {
"type": "string"
},
Expand Down Expand Up @@ -105,7 +108,10 @@
"album",
"horizontal",
"equalizer",
"header_meta"
"header_meta",
"preview",
"miniature",
"fullview"
]
},
"type": {
Expand All @@ -127,6 +133,7 @@
"situational_theme",
"playlist",
"clip",
"vk_video",
"situational_template",
"spoiler"
],
Expand Down
1 change: 1 addition & 0 deletions utils/objects.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"user",
"group",
"application",
"event",
"page",
"vk_app",
"community_application"
Expand Down
1 change: 1 addition & 0 deletions video/methods.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@
"description": "ID of the user or community that owns the video(s).",
"type": "integer",
"format": "int64",
"default": 0,
"entity": "owner"
},
{
Expand Down
Loading

0 comments on commit 08576fa

Please sign in to comment.