Skip to content

Commit 333481b

Browse files
author
vkcom
committed
JSON-schema for public 5.199
1 parent 0efe478 commit 333481b

File tree

18 files changed

+328
-146
lines changed

18 files changed

+328
-146
lines changed

ads/objects.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@
153153
"description": "Information whether disclaimer is enabled",
154154
"$ref": "../base/objects.json#/definitions/base_bool_int"
155155
},
156+
"disclaimer_credits": {
157+
"description": "Information whether disclaimer is enabled",
158+
"$ref": "../base/objects.json#/definitions/base_bool_int"
159+
},
156160
"id": {
157161
"type": "integer",
158162
"description": "Ad ID",

base/objects.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@
475475
"add_playlist",
476476
"open_search_tab",
477477
"open_search_filters",
478+
"reset_search_filters",
478479
"import_contacts",
479480
"add_friends",
480481
"onboarding",
@@ -489,6 +490,7 @@
489490
"default",
490491
"primary",
491492
"secondary",
493+
"negative",
492494
"tertiary",
493495
"float_bottom",
494496
"cell_button_centered_icon",
@@ -498,13 +500,15 @@
498500
"outline_with_chevron",
499501
"inline",
500502
"modal",
501-
"right_button"
503+
"right_button",
504+
"after_toolbar"
502505
],
503506
"enumNames": [
504507
"updates",
505508
"default",
506509
"primary",
507510
"secondary",
511+
"negative",
508512
"tertiary",
509513
"float_bottom",
510514
"cell_button_centered_icon",
@@ -514,7 +518,8 @@
514518
"outline_with_chevron",
515519
"inline",
516520
"modal",
517-
"right_button"
521+
"right_button",
522+
"after_toolbar"
518523
]
519524
},
520525
"base_link_no_product": {
@@ -1083,7 +1088,8 @@
10831088
"image_status",
10841089
"is_nft",
10851090
"is_nft_photo",
1086-
"is_verified"
1091+
"is_verified",
1092+
"url"
10871093
]
10881094
},
10891095
"base_user_id": {

errors.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,14 @@
994994
"code": 1526,
995995
"description": "Market services are disabled"
996996
},
997+
"api_error_market_add_to_service_album": {
998+
"code": 1531,
999+
"description": "Add item to service album"
1000+
},
1001+
"api_error_market_add_to_market_album": {
1002+
"code": 1532,
1003+
"description": "Add service to market album"
1004+
},
9971005
"api_error_story_expired": {
9981006
"code": 1600,
9991007
"description": "Story has already expired"

groups/methods.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,8 @@
16141614
"donut",
16151615
"friends",
16161616
"managers",
1617-
"unsure"
1617+
"unsure",
1618+
"unsure_friends"
16181619
]
16191620
}
16201621
],

groups/objects.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,6 +2081,14 @@
20812081
"type": "string",
20822082
"description": "User first name",
20832083
"required": true
2084+
},
2085+
"last_name": {
2086+
"type": "string",
2087+
"description": "User last name"
2088+
},
2089+
"screen_name": {
2090+
"type": "string",
2091+
"description": "Domain of the user page"
20842092
}
20852093
}
20862094
},

market/methods.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,12 @@
406406
},
407407
{
408408
"$ref": "../errors.json#/errors/api_error_market_item_already_added"
409+
},
410+
{
411+
"$ref": "../errors.json#/errors/api_error_market_add_to_service_album"
412+
},
413+
{
414+
"$ref": "../errors.json#/errors/api_error_market_add_to_market_album"
409415
}
410416
]
411417
},
@@ -1504,6 +1510,46 @@
15041510
}
15051511
]
15061512
},
1513+
{
1514+
"name": "market.getFavesForAttach",
1515+
"access_token_type": [
1516+
"user"
1517+
],
1518+
"parameters": [
1519+
{
1520+
"name": "current_group_id",
1521+
"description": "Group which represents content",
1522+
"type": "integer",
1523+
"format": "int64",
1524+
"minimum": 1,
1525+
"entity": "owner"
1526+
},
1527+
{
1528+
"name": "public_only",
1529+
"type": "boolean",
1530+
"default": false
1531+
},
1532+
{
1533+
"name": "offset",
1534+
"description": "Offset needed to return a specific subset of users.",
1535+
"type": "integer",
1536+
"minimum": 0
1537+
},
1538+
{
1539+
"name": "count",
1540+
"description": "Number of users to return.",
1541+
"type": "integer",
1542+
"default": 50,
1543+
"minimum": 1,
1544+
"maximum": 100
1545+
}
1546+
],
1547+
"responses": {
1548+
"response": {
1549+
"$ref": "../market/responses.json#/definitions/market_getFavesForAttach_response"
1550+
}
1551+
}
1552+
},
15071553
{
15081554
"name": "market.getGroupOrders",
15091555
"description": "Get market orders",

market/objects.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,10 @@
447447
"description": "Information whether current use can comment the item",
448448
"$ref": "../base/objects.json#/definitions/base_bool_int"
449449
},
450+
"show_comments": {
451+
"description": "Information about whether to show the comments tab",
452+
"$ref": "../base/objects.json#/definitions/base_bool_int"
453+
},
450454
"can_repost": {
451455
"description": "Information whether current use can repost the item",
452456
"$ref": "../base/objects.json#/definitions/base_bool_int"

market/responses.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,28 @@
229229
}
230230
}
231231
},
232+
"market_getFavesForAttach_response": {
233+
"type": "object",
234+
"properties": {
235+
"response": {
236+
"type": "object",
237+
"properties": {
238+
"market_items": {
239+
"type": "array",
240+
"items": {
241+
"$ref": "../market/objects.json#/definitions/market_market_item"
242+
},
243+
"required": true
244+
},
245+
"next_from": {
246+
"type": "integer",
247+
"description": "Offset for using in next query"
248+
}
249+
},
250+
"required": true
251+
}
252+
}
253+
},
232254
"market_getGroupOrders_response": {
233255
"type": "object",
234256
"properties": {

messages/methods.json

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
},
6767
{
6868
"$ref": "../errors.json#/errors/api_error_messages_group_peer_access"
69+
},
70+
{
71+
"$ref": "../errors.json#/errors/api_error_messages_writing_disabled_for_chat"
6972
}
7073
]
7174
},
@@ -242,6 +245,9 @@
242245
"errors": [
243246
{
244247
"$ref": "../errors.json#/errors/api_error_messages_cant_delete_for_all"
248+
},
249+
{
250+
"$ref": "../errors.json#/errors/api_error_messages_chat_not_exist"
245251
}
246252
]
247253
},
@@ -540,6 +546,9 @@
540546
},
541547
{
542548
"$ref": "../errors.json#/errors/api_error_messages_chat_unsupported"
549+
},
550+
{
551+
"$ref": "../errors.json#/errors/api_error_messages_writing_disabled_for_chat"
543552
}
544553
]
545554
},
@@ -1227,7 +1236,12 @@
12271236
"response": {
12281237
"$ref": "../messages/responses.json#/definitions/messages_getHistoryAttachments_response"
12291238
}
1230-
}
1239+
},
1240+
"errors": [
1241+
{
1242+
"$ref": "../errors.json#/errors/api_error_messages_chat_not_exist"
1243+
}
1244+
]
12311245
},
12321246
{
12331247
"name": "messages.getImportantMessages",
@@ -1531,6 +1545,9 @@
15311545
{
15321546
"$ref": "../errors.json#/errors/api_error_messages_chat_not_exist"
15331547
},
1548+
{
1549+
"$ref": "../errors.json#/errors/api_error_messages_contact_not_found"
1550+
},
15341551
{
15351552
"$ref": "../errors.json#/errors/api_error_messages_drop_device_cache"
15361553
}
@@ -1993,6 +2010,9 @@
19932010
},
19942011
{
19952012
"$ref": "../errors.json#/errors/api_error_messages_chat_not_exist"
2013+
},
2014+
{
2015+
"$ref": "../errors.json#/errors/api_error_messages_writing_disabled_for_chat"
19962016
}
19972017
]
19982018
},
@@ -2681,6 +2701,9 @@
26812701
},
26822702
{
26832703
"$ref": "../errors.json#/errors/api_error_messages_chat_not_exist"
2704+
},
2705+
{
2706+
"$ref": "../errors.json#/errors/api_error_messages_writing_disabled_for_chat"
26842707
}
26852708
]
26862709
}

messages/objects.json

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,20 +1484,7 @@
14841484
}
14851485
},
14861486
"messages_longpoll_messages": {
1487-
"type": "object",
1488-
"properties": {
1489-
"count": {
1490-
"type": "integer",
1491-
"minimum": 0,
1492-
"description": "Total number"
1493-
},
1494-
"items": {
1495-
"type": "array",
1496-
"items": {
1497-
"$ref": "../messages/objects.json#/definitions/messages_message"
1498-
}
1499-
}
1500-
}
1487+
"type": "object"
15011488
},
15021489
"messages_longpoll_params": {
15031490
"type": "object",

0 commit comments

Comments
 (0)