Skip to content

Commit

Permalink
JSON-schema for public 5.130
Browse files Browse the repository at this point in the history
  • Loading branch information
vkcom committed May 21, 2021
1 parent a9df986 commit 85b3512
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 80 deletions.
8 changes: 6 additions & 2 deletions errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"too_many_communities": {
"subcode": 1
},
"user_link_with_another_service_uuid": {
"user_reached_linked_accounts_limit": {
"subcode": 1000
},
"service_uuid_link_with_another_user": {
Expand Down Expand Up @@ -55,7 +55,7 @@
"global": true,
"subcodes": [
{
"$ref": "#/definitions/subcodes/user_link_with_another_service_uuid"
"$ref": "#/definitions/subcodes/user_reached_linked_accounts_limit"
},
{
"$ref": "#/definitions/subcodes/service_uuid_link_with_another_user"
Expand Down Expand Up @@ -721,6 +721,10 @@
"code": 1409,
"description": "Extended market not enabled"
},
"api_error_market_grouping_items_with_different_properties": {
"code": 1412,
"description": "Grouping items with different properties"
},
"api_error_market_grouping_already_has_such_variant": {
"code": 1413,
"description": "Grouping already has such variant"
Expand Down
50 changes: 42 additions & 8 deletions methods.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,23 @@
"friends",
"messages",
"photos",
"videos",
"notes",
"gifts",
"events",
"groups",
"sdk",
"friends_suggestions"
"friends_suggestions",
"notifications",
"app_requests",
"friends_recommendations"
]
}
},
{
"name": "user_id",
"description": "User ID",
"type": "integer",
"minimum": 0
}
],
"responses": {
Expand Down Expand Up @@ -9606,6 +9614,9 @@
{
"$ref": "errors.json#/errors/api_error_market_item_has_bad_links"
},
{
"$ref": "errors.json#/errors/api_error_market_grouping_items_with_different_properties"
},
{
"$ref": "errors.json#/errors/api_error_market_grouping_already_has_such_variant"
},
Expand Down Expand Up @@ -10818,6 +10829,21 @@
"description": "'1' — delete message for for all.",
"type": "boolean",
"default": false
},
{
"name": "peer_id",
"description": "Destination ID. \"For user: 'User ID', e.g. '12345'. For chat: '2000000000' + 'chat_id', e.g. '2000000001'. For community: '- community ID', e.g. '-12345'. \"",
"type": "integer"
},
{
"name": "conversation_message_ids",
"description": "Conversation message IDs.",
"type": "array",
"items": {
"type": "integer",
"minimum": 0
},
"maxItems": 100
}
],
"responses": {
Expand Down Expand Up @@ -10936,7 +10962,8 @@
"name": "peer_id",
"description": "Destination ID. \"For user: 'User ID', e.g. '12345'. For chat: '2000000000' + 'chat_id', e.g. '2000000001'. For community: '- community ID', e.g. '-12345'. \"",
"type": "integer",
"required": true
"required": true,
"format": "int32"
},
{
"name": "message",
Expand Down Expand Up @@ -10983,11 +11010,13 @@
{
"name": "message_id",
"type": "integer",
"format": "int32",
"minimum": 0
},
{
"name": "conversation_message_id",
"type": "integer",
"format": "int32",
"minimum": 0
},
{
Expand Down Expand Up @@ -11145,7 +11174,8 @@
"required": true,
"items": {
"type": "integer",
"minimum": 0
"minimum": 0,
"format": "int32"
},
"maxItems": 100
},
Expand Down Expand Up @@ -12348,7 +12378,8 @@
{
"name": "user_id",
"description": "User ID (by default — current user).",
"type": "integer"
"type": "integer",
"format": "int32"
},
{
"name": "random_id",
Expand All @@ -12358,14 +12389,16 @@
{
"name": "peer_id",
"description": "Destination ID. \"For user: 'User ID', e.g. '12345'. For chat: '2000000000' + 'chat_id', e.g. '2000000001'. For community: '- community ID', e.g. '-12345'. \"",
"type": "integer"
"type": "integer",
"format": "int32"
},
{
"name": "peer_ids",
"description": "IDs of message recipients. (See peer_id)",
"type": "array",
"items": {
"type": "integer"
"type": "integer",
"format": "int32"
},
"maxItems": 100
},
Expand All @@ -12386,7 +12419,8 @@
"description": "IDs of message recipients (if new conversation shall be started).",
"type": "array",
"items": {
"type": "integer"
"type": "integer",
"format": "int32"
},
"maxItems": 100
},
Expand Down
93 changes: 24 additions & 69 deletions objects.json
Original file line number Diff line number Diff line change
Expand Up @@ -7697,53 +7697,6 @@
"rows"
]
},
"media_restriction": {
"description": "Media restrictions",
"type": "object",
"properties": {
"text": {
"type": "string"
},
"title": {
"type": "string"
},
"button": {
"$ref": "objects.json#/definitions/video_restriction_button"
},
"blur": {
"description": "Need blur current video or not",
"$ref": "objects.json#/definitions/base_bool_int"
},
"can_play": {
"description": "Can play video or not",
"$ref": "objects.json#/definitions/base_bool_int"
},
"can_preview": {
"description": "Can preview video or not",
"$ref": "objects.json#/definitions/base_bool_int"
},
"card_icon": {
"type": "array",
"items": {
"$ref": "objects.json#/definitions/base_image"
}
},
"disclaimer_type": {
"type": "integer",
"description": "The type of disclaimer that describes, whether to remove other disclaimers"
},
"list_icon": {
"type": "array",
"items": {
"$ref": "objects.json#/definitions/base_image"
}
}
},
"required": [
"title"
],
"additionalProperties": false
},
"messages_audio_message": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -8904,6 +8857,10 @@
"pinned_at": {
"type": "integer",
"description": "Date when the message has been pinned in Unixtime"
},
"is_silent": {
"type": "boolean",
"description": "Is silent message, push without sound"
}
},
"required": [
Expand Down Expand Up @@ -10489,6 +10446,22 @@
"type": "integer",
"description": "Subscription price"
},
"title": {
"type": "string",
"description": "Subscription name"
},
"app_id": {
"type": "integer",
"description": "Subscription's application id"
},
"application_name": {
"type": "string",
"description": "Subscription's application name"
},
"photo_url": {
"type": "string",
"description": "Item photo image url"
},
"status": {
"type": "string",
"description": "Subscription status"
Expand Down Expand Up @@ -10915,9 +10888,6 @@
"has_tags": {
"type": "boolean",
"description": "Whether photo has attached tag links"
},
"restrictions": {
"$ref": "objects.json#/definitions/media_restriction"
}
},
"required": [
Expand Down Expand Up @@ -14112,6 +14082,10 @@
"description": "Information whether current user can call",
"type": "boolean"
},
"can_call_from_group": {
"description": "Information whether group can call user",
"type": "boolean"
},
"can_see_wishes": {
"description": "Information whether current user can see the user's wishes",
"type": "boolean"
Expand Down Expand Up @@ -14821,22 +14795,6 @@
},
"additionalProperties": false
},
"video_restriction_button": {
"description": "Video restriction button",
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"play"
]
},
"title": {
"type": "string"
}
},
"additionalProperties": false
},
"video_save_result": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -14994,9 +14952,6 @@
"$ref": "objects.json#/definitions/base_bool_int",
"description": "1 if video is being converted"
},
"restriction": {
"$ref": "objects.json#/definitions/media_restriction"
},
"added": {
"$ref": "objects.json#/definitions/base_bool_int",
"description": "1 if video is added to user's albums"
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.130.69",
"version": "5.130.74",
"description": "VK API JSON Schema",
"repository": {
"type": "git",
Expand Down

0 comments on commit 85b3512

Please sign in to comment.