forked from VKCOM/vk-api-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobjects.json
542 lines (542 loc) · 15.2 KB
/
objects.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "objects",
"definitions": {
"account_account_counters": {
"type": "object",
"properties": {
"app_requests": {
"type": "integer",
"description": "New app requests number",
"minimum": 1
},
"events": {
"type": "integer",
"description": "New events number",
"minimum": 1
},
"faves": {
"type": "integer",
"description": "New faves number",
"minimum": 1
},
"friends": {
"type": "integer",
"description": "New friends requests number",
"minimum": 1
},
"friends_suggestions": {
"type": "integer",
"description": "New friends suggestions number",
"minimum": 1
},
"friends_recommendations": {
"type": "integer",
"description": "New friends recommendations number",
"minimum": 1
},
"gifts": {
"type": "integer",
"description": "New gifts number",
"minimum": 1
},
"groups": {
"type": "integer",
"description": "New groups number",
"minimum": 1
},
"menu_discover_badge": {
"type": "integer"
},
"menu_clips_badge": {
"type": "integer"
},
"messages": {
"type": "integer",
"description": "New messages number",
"minimum": 1
},
"memories": {
"type": "integer",
"description": "New memories number",
"minimum": 1
},
"notes": {
"type": "integer",
"description": "New notes number",
"minimum": 1
},
"notifications": {
"type": "integer",
"description": "New notifications number",
"minimum": 1
},
"photos": {
"type": "integer",
"description": "New photo tags number",
"minimum": 1
},
"sdk": {
"type": "integer",
"description": "New sdk number",
"minimum": 1
}
},
"additionalProperties": false
},
"account_info": {
"type": "object",
"properties": {
"wishlists_ae_promo_banner_show": {
"$ref": "../base/objects.json#/definitions/base_bool_int"
},
"2fa_required": {
"description": "Two factor authentication is enabled",
"$ref": "../base/objects.json#/definitions/base_bool_int"
},
"country": {
"type": "string",
"description": "Country code"
},
"https_required": {
"description": "Information whether HTTPS-only is enabled",
"$ref": "../base/objects.json#/definitions/base_bool_int"
},
"intro": {
"description": "Information whether user has been processed intro",
"$ref": "../base/objects.json#/definitions/base_bool_int"
},
"show_vk_apps_intro": {
"type": "boolean"
},
"mini_apps_ads_slot_id": {
"description": "Ads slot id for MyTarget",
"minimum": 0,
"type": "integer"
},
"qr_promotion": {
"type": "integer",
"minimum": 0
},
"link_redirects": {
"type": "object"
},
"lang": {
"type": "integer",
"description": "Language ID"
},
"no_wall_replies": {
"description": "Information whether wall comments should be hidden",
"$ref": "../base/objects.json#/definitions/base_bool_int"
},
"own_posts_default": {
"description": "Information whether only owners posts should be shown",
"$ref": "../base/objects.json#/definitions/base_bool_int"
},
"subscriptions": {
"type": "object",
"$ref": "../account/objects.json#/definitions/account_subscriptions"
}
},
"additionalProperties": false
},
"account_name_request": {
"type": "object",
"properties": {
"first_name": {
"type": "string",
"description": "First name in request"
},
"id": {
"type": "integer",
"description": "Request ID needed to cancel the request"
},
"last_name": {
"type": "string",
"description": "Last name in request"
},
"status": {
"$ref": "../account/objects.json#/definitions/account_name_request_status"
},
"lang": {
"type": "string",
"description": "Text to display to user"
},
"link_href": {
"type": "string",
"description": "href for link in lang field"
},
"link_label": {
"type": "string",
"description": "label to display for link in lang field"
}
},
"additionalProperties": false
},
"account_name_request_status": {
"type": "string",
"description": "Request status",
"enum": [
"success",
"processing",
"declined",
"was_accepted",
"was_declined",
"declined_with_link",
"response",
"response_with_link"
]
},
"account_offer": {
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "Offer description"
},
"id": {
"type": "integer",
"description": "Offer ID"
},
"img": {
"type": "string",
"format": "uri",
"description": "URL of the preview image"
},
"instruction": {
"type": "string",
"description": "Instruction how to process the offer"
},
"instruction_html": {
"type": "string",
"description": "Instruction how to process the offer (HTML format)"
},
"price": {
"type": "integer",
"description": "Offer price"
},
"short_description": {
"type": "string",
"description": "Offer short description"
},
"tag": {
"type": "string",
"description": "Offer tag"
},
"title": {
"type": "string",
"description": "Offer title"
},
"currency_amount": {
"type": "number",
"description": "Currency amount"
},
"link_id": {
"type": "integer",
"description": "Link id"
},
"link_type": {
"type": "string",
"description": "Link type",
"enum": [
"profile",
"group",
"app"
]
}
},
"additionalProperties": false
},
"account_push_conversations": {
"type": "object",
"properties": {
"count": {
"type": "integer",
"minimum": 0,
"description": "Items count"
},
"items": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_conversations_item"
}
}
},
"additionalProperties": false
},
"account_push_conversations_item": {
"type": "object",
"properties": {
"disabled_until": {
"type": "integer",
"description": "Time until that notifications are disabled in seconds",
"required": true
},
"peer_id": {
"type": "integer",
"description": "Peer ID",
"required": true
},
"sound": {
"description": "Information whether the sound are enabled",
"$ref": "../base/objects.json#/definitions/base_bool_int",
"required": true
},
"disabled_mentions": {
"description": "Information whether the mentions are disabled",
"$ref": "../base/objects.json#/definitions/base_bool_int"
},
"disabled_mass_mentions": {
"description": "Information whether the mass mentions (like '@all', '@online') are disabled. Can be affected by 'disabled_mentions'",
"$ref": "../base/objects.json#/definitions/base_bool_int"
}
},
"additionalProperties": false
},
"account_push_params": {
"type": "object",
"properties": {
"msg": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_mode"
}
},
"chat": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_mode"
}
},
"like": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_settings"
}
},
"repost": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_settings"
}
},
"comment": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_settings"
}
},
"mention": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_settings"
}
},
"reply": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_onoff"
}
},
"new_post": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_onoff"
}
},
"wall_post": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_onoff"
}
},
"wall_publish": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_onoff"
}
},
"friend": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_onoff"
}
},
"friend_found": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_onoff"
}
},
"friend_accepted": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_onoff"
}
},
"group_invite": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_onoff"
}
},
"group_accepted": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_onoff"
}
},
"birthday": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_onoff"
}
},
"event_soon": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_onoff"
}
},
"app_request": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_onoff"
}
},
"sdk_open": {
"type": "array",
"items": {
"$ref": "../account/objects.json#/definitions/account_push_params_onoff"
}
}
},
"additionalProperties": false
},
"account_push_params_mode": {
"type": "string",
"description": "Settings parameters",
"enum": [
"on",
"off",
"no_sound",
"no_text"
]
},
"account_push_params_onoff": {
"type": "string",
"description": "Settings parameters",
"enum": [
"on",
"off"
]
},
"account_push_params_settings": {
"type": "string",
"description": "Settings parameters",
"enum": [
"on",
"off",
"fr_of_fr"
]
},
"account_push_settings": {
"type": "object",
"properties": {
"disabled": {
"description": "Information whether notifications are disabled",
"$ref": "../base/objects.json#/definitions/base_bool_int"
},
"disabled_until": {
"type": "integer",
"description": "Time until that notifications are disabled in Unixtime"
},
"settings": {
"$ref": "../account/objects.json#/definitions/account_push_params"
},
"conversations": {
"$ref": "../account/objects.json#/definitions/account_push_conversations"
}
},
"additionalProperties": false
},
"account_subscriptions": {
"type": "array",
"items": {
"type": "integer"
}
},
"account_user_settings": {
"type": "object",
"allOf": [
{
"$ref": "../users/objects.json#/definitions/users_user_min"
},
{
"$ref": "../users/objects.json#/definitions/users_user_settings_xtr"
},
{
"properties": {
"photo_200": {
"type": "string",
"format": "uri",
"description": "URL of square photo of the user with 200 pixels in width"
},
"is_service_account": {
"type": "boolean",
"description": "flag about service account"
}
}
}
],
"additionalProperties": false
},
"account_user_settings_interest": {
"type": "object",
"properties": {
"title": {
"type": "string",
"required": true
},
"value": {
"type": "string",
"required": true
}
},
"additionalProperties": false
},
"account_user_settings_interests": {
"type": "object",
"properties": {
"activities": {
"$ref": "../account/objects.json#/definitions/account_user_settings_interest"
},
"interests": {
"$ref": "../account/objects.json#/definitions/account_user_settings_interest"
},
"music": {
"$ref": "../account/objects.json#/definitions/account_user_settings_interest"
},
"tv": {
"$ref": "../account/objects.json#/definitions/account_user_settings_interest"
},
"movies": {
"$ref": "../account/objects.json#/definitions/account_user_settings_interest"
},
"books": {
"$ref": "../account/objects.json#/definitions/account_user_settings_interest"
},
"games": {
"$ref": "../account/objects.json#/definitions/account_user_settings_interest"
},
"quotes": {
"$ref": "../account/objects.json#/definitions/account_user_settings_interest"
},
"about": {
"$ref": "../account/objects.json#/definitions/account_user_settings_interest"
}
},
"additionalProperties": false
}
}
}