@myronsi/messenger-api 2.1.0-alpha.28.next.110 → 2.1.0-alpha.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/openapi.yaml +282 -7
- package/dist/schema.d.ts +376 -5
- package/dist/ws-docs.json +38 -0
- package/dist/ws-events.d.ts +148 -76
- package/dist/ws-events.schema.json +327 -5
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated from api/openapi.yaml 2.1.0-alpha.
|
|
1
|
+
/* Generated from api/openapi.yaml 2.1.0-alpha.29. Do not edit. */
|
|
2
2
|
export interface paths {
|
|
3
3
|
"/meta": {
|
|
4
4
|
parameters: {
|
|
@@ -311,6 +311,55 @@ export interface paths {
|
|
|
311
311
|
patch?: never;
|
|
312
312
|
trace?: never;
|
|
313
313
|
};
|
|
314
|
+
"/me/music": {
|
|
315
|
+
parameters: {
|
|
316
|
+
query?: never;
|
|
317
|
+
header?: {
|
|
318
|
+
/** @description Version of the client app, for logs and the per-client metric. */
|
|
319
|
+
"X-Client-Version"?: components["parameters"]["ClientVersion"];
|
|
320
|
+
/** @description Contract version the client was built with (`API_VERSION` of `@myronsi/messenger-api`). A different MAJOR or a version below `min_client_api_version` is answered with `426`; a malformed value with `400` (`invalid_client_version`). */
|
|
321
|
+
"X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
|
|
322
|
+
};
|
|
323
|
+
path?: never;
|
|
324
|
+
cookie?: never;
|
|
325
|
+
};
|
|
326
|
+
get?: never;
|
|
327
|
+
/**
|
|
328
|
+
* Set the profile music
|
|
329
|
+
* @description Upload the file with `POST /attachments` (`purpose: profile_music`) first.
|
|
330
|
+
*/
|
|
331
|
+
put: operations["setMyMusic"];
|
|
332
|
+
post?: never;
|
|
333
|
+
/** Remove the profile music */
|
|
334
|
+
delete: operations["deleteMyMusic"];
|
|
335
|
+
options?: never;
|
|
336
|
+
head?: never;
|
|
337
|
+
patch?: never;
|
|
338
|
+
trace?: never;
|
|
339
|
+
};
|
|
340
|
+
"/me/background": {
|
|
341
|
+
parameters: {
|
|
342
|
+
query?: never;
|
|
343
|
+
header?: {
|
|
344
|
+
/** @description Version of the client app, for logs and the per-client metric. */
|
|
345
|
+
"X-Client-Version"?: components["parameters"]["ClientVersion"];
|
|
346
|
+
/** @description Contract version the client was built with (`API_VERSION` of `@myronsi/messenger-api`). A different MAJOR or a version below `min_client_api_version` is answered with `426`; a malformed value with `400` (`invalid_client_version`). */
|
|
347
|
+
"X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
|
|
348
|
+
};
|
|
349
|
+
path?: never;
|
|
350
|
+
cookie?: never;
|
|
351
|
+
};
|
|
352
|
+
get?: never;
|
|
353
|
+
/** Set the profile background */
|
|
354
|
+
put: operations["setMyBackground"];
|
|
355
|
+
post?: never;
|
|
356
|
+
/** Remove the profile background */
|
|
357
|
+
delete: operations["deleteMyBackground"];
|
|
358
|
+
options?: never;
|
|
359
|
+
head?: never;
|
|
360
|
+
patch?: never;
|
|
361
|
+
trace?: never;
|
|
362
|
+
};
|
|
314
363
|
"/me/password": {
|
|
315
364
|
parameters: {
|
|
316
365
|
query?: never;
|
|
@@ -514,7 +563,7 @@ export interface paths {
|
|
|
514
563
|
"X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
|
|
515
564
|
};
|
|
516
565
|
path: {
|
|
517
|
-
setting_key: "avatar_visibility" | "profile_visibility" | "presence_visibility" | "last_seen_visibility" | "group_invites" | "direct_messages" | "search_visibility";
|
|
566
|
+
setting_key: "avatar_visibility" | "profile_visibility" | "presence_visibility" | "last_seen_visibility" | "birthday_visibility" | "group_invites" | "direct_messages" | "search_visibility";
|
|
518
567
|
effect: "allow" | "deny";
|
|
519
568
|
};
|
|
520
569
|
cookie?: never;
|
|
@@ -1471,6 +1520,37 @@ export interface paths {
|
|
|
1471
1520
|
patch?: never;
|
|
1472
1521
|
trace?: never;
|
|
1473
1522
|
};
|
|
1523
|
+
"/groups/{chat_id}/background": {
|
|
1524
|
+
parameters: {
|
|
1525
|
+
query?: never;
|
|
1526
|
+
header?: {
|
|
1527
|
+
/** @description Version of the client app, for logs and the per-client metric. */
|
|
1528
|
+
"X-Client-Version"?: components["parameters"]["ClientVersion"];
|
|
1529
|
+
/** @description Contract version the client was built with (`API_VERSION` of `@myronsi/messenger-api`). A different MAJOR or a version below `min_client_api_version` is answered with `426`; a malformed value with `400` (`invalid_client_version`). */
|
|
1530
|
+
"X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
|
|
1531
|
+
};
|
|
1532
|
+
path: {
|
|
1533
|
+
chat_id: components["parameters"]["ChatId"];
|
|
1534
|
+
};
|
|
1535
|
+
cookie?: never;
|
|
1536
|
+
};
|
|
1537
|
+
get?: never;
|
|
1538
|
+
/**
|
|
1539
|
+
* Set the group background
|
|
1540
|
+
* @description Owner and admins. For `media`, the caller uploads the file with purpose `profile_background` first.
|
|
1541
|
+
*/
|
|
1542
|
+
put: operations["setGroupBackground"];
|
|
1543
|
+
post?: never;
|
|
1544
|
+
/**
|
|
1545
|
+
* Remove the group background
|
|
1546
|
+
* @description Owner and admins.
|
|
1547
|
+
*/
|
|
1548
|
+
delete: operations["deleteGroupBackground"];
|
|
1549
|
+
options?: never;
|
|
1550
|
+
head?: never;
|
|
1551
|
+
patch?: never;
|
|
1552
|
+
trace?: never;
|
|
1553
|
+
};
|
|
1474
1554
|
"/groups/{chat_id}/participants": {
|
|
1475
1555
|
parameters: {
|
|
1476
1556
|
query?: never;
|
|
@@ -2997,6 +3077,11 @@ export interface components {
|
|
|
2997
3077
|
enabled: boolean;
|
|
2998
3078
|
sound: boolean;
|
|
2999
3079
|
previews: boolean;
|
|
3080
|
+
/**
|
|
3081
|
+
* @description A push at 09:00 (in `Me.time_zone`) when someone you have a direct chat with has a birthday. Always sent
|
|
3082
|
+
* by the server; when a `PUT` leaves it out, it stays as it is. Defaults to `true`.
|
|
3083
|
+
*/
|
|
3084
|
+
birthday_reminders?: boolean;
|
|
3000
3085
|
};
|
|
3001
3086
|
NotificationSettings: {
|
|
3002
3087
|
preferences: components["schemas"]["NotificationPreferences"];
|
|
@@ -3169,6 +3254,14 @@ export interface components {
|
|
|
3169
3254
|
UpdateMeRequest: {
|
|
3170
3255
|
display_name?: string;
|
|
3171
3256
|
bio?: string | null;
|
|
3257
|
+
/** @description Free text; `null` or an empty string removes it. */
|
|
3258
|
+
pronouns?: string | null;
|
|
3259
|
+
/**
|
|
3260
|
+
* @description `null` removes it. With a `year` the date must exist (no 29 February in other years); without one,
|
|
3261
|
+
* 29 February is allowed.
|
|
3262
|
+
*/
|
|
3263
|
+
birthday?: components["schemas"]["Birthday"] | null;
|
|
3264
|
+
time_zone?: components["schemas"]["TimeZone"];
|
|
3172
3265
|
};
|
|
3173
3266
|
SetAvatarRequest: {
|
|
3174
3267
|
attachment_id: components["schemas"]["AttachmentRef"];
|
|
@@ -3247,6 +3340,8 @@ export interface components {
|
|
|
3247
3340
|
presence_visibility: components["schemas"]["Visibility"];
|
|
3248
3341
|
/** @description Who sees when the user was last online (`User.last_seen`, `presence` events). */
|
|
3249
3342
|
last_seen_visibility: components["schemas"]["Visibility"];
|
|
3343
|
+
/** @description Who sees the birthday (`User.birthday`) and gets a reminder on the day. Defaults to `contacts`. */
|
|
3344
|
+
birthday_visibility: components["schemas"]["Visibility"];
|
|
3250
3345
|
read_receipts_enabled: boolean;
|
|
3251
3346
|
direct_messages: components["schemas"]["DirectMessagePolicy"];
|
|
3252
3347
|
group_invites: components["schemas"]["GroupInvitePolicy"];
|
|
@@ -3262,6 +3357,7 @@ export interface components {
|
|
|
3262
3357
|
profile_visibility?: components["schemas"]["Visibility"];
|
|
3263
3358
|
presence_visibility?: components["schemas"]["Visibility"];
|
|
3264
3359
|
last_seen_visibility?: components["schemas"]["Visibility"];
|
|
3360
|
+
birthday_visibility?: components["schemas"]["Visibility"];
|
|
3265
3361
|
read_receipts_enabled?: boolean;
|
|
3266
3362
|
direct_messages?: components["schemas"]["DirectMessagePolicy"];
|
|
3267
3363
|
group_invites?: components["schemas"]["GroupInvitePolicy"];
|
|
@@ -3275,8 +3371,19 @@ export interface components {
|
|
|
3275
3371
|
/** @description A user as visible to the requesting user; hidden fields are `null`. */
|
|
3276
3372
|
User: {
|
|
3277
3373
|
id: components["schemas"]["Id"];
|
|
3278
|
-
/**
|
|
3374
|
+
/**
|
|
3375
|
+
* @description Grows whenever the username, display name, bio, avatar, pronouns, birthday, profile music or profile
|
|
3376
|
+
* background changes (not with presence). Clients keep a stored profile until a higher version arrives.
|
|
3377
|
+
*/
|
|
3279
3378
|
profile_version: number;
|
|
3379
|
+
/** @description Free text such as "she/her". Visible like the bio (`profile_visibility`). */
|
|
3380
|
+
pronouns: string | null;
|
|
3381
|
+
/** @description Visible by `birthday_visibility`; `null` when not set or hidden. */
|
|
3382
|
+
birthday: components["schemas"]["Birthday"] | null;
|
|
3383
|
+
/** @description A short song on the profile, visible like the bio. Clients never play it on their own. */
|
|
3384
|
+
music: components["schemas"]["ProfileMusic"] | null;
|
|
3385
|
+
/** @description The banner and page background of the profile, visible like the bio. */
|
|
3386
|
+
background: components["schemas"]["ProfileBackground"] | null;
|
|
3280
3387
|
username: components["schemas"]["Username"];
|
|
3281
3388
|
display_name: string;
|
|
3282
3389
|
/** @description The requesting user's own name for this user, if set. */
|
|
@@ -3291,6 +3398,63 @@ export interface components {
|
|
|
3291
3398
|
Me: components["schemas"]["User"] & {
|
|
3292
3399
|
created_at: components["schemas"]["Timestamp"];
|
|
3293
3400
|
recovery_setup_required?: boolean;
|
|
3401
|
+
/** @description The user's time zone; birthday reminders arrive at 09:00 in it. `UTC` until a client sets it. */
|
|
3402
|
+
time_zone: components["schemas"]["TimeZone"];
|
|
3403
|
+
};
|
|
3404
|
+
/**
|
|
3405
|
+
* @description An IANA time zone name such as `Europe/Berlin`.
|
|
3406
|
+
* @example Europe/Berlin
|
|
3407
|
+
*/
|
|
3408
|
+
TimeZone: string;
|
|
3409
|
+
Birthday: {
|
|
3410
|
+
day: number;
|
|
3411
|
+
month: number;
|
|
3412
|
+
/** @description Optional; `null` when the user keeps the year to themselves. */
|
|
3413
|
+
year: number | null;
|
|
3414
|
+
};
|
|
3415
|
+
ProfileMusic: {
|
|
3416
|
+
/** @description The clip (at most 30 s). `thumbnail_url` is the cover when the file had one. */
|
|
3417
|
+
attachment: components["schemas"]["Attachment"];
|
|
3418
|
+
title: string | null;
|
|
3419
|
+
artist: string | null;
|
|
3420
|
+
};
|
|
3421
|
+
/**
|
|
3422
|
+
* @description `media` an uploaded image, GIF or short video (`attachment`), `preset` one of the clients' built-in
|
|
3423
|
+
* gradients (`preset`), `color` one color or a gradient of two (`colors`).
|
|
3424
|
+
* @enum {string}
|
|
3425
|
+
*/
|
|
3426
|
+
ProfileBackgroundKind: "media" | "preset" | "color";
|
|
3427
|
+
/** @description Name of a built-in gradient. Clients show their default background for a name they do not know. */
|
|
3428
|
+
BackgroundPreset: string;
|
|
3429
|
+
/** @example #3366ff */
|
|
3430
|
+
BackgroundColor: string;
|
|
3431
|
+
ProfileBackground: {
|
|
3432
|
+
kind: components["schemas"]["ProfileBackgroundKind"];
|
|
3433
|
+
/**
|
|
3434
|
+
* @description Set for `media`. An image, an animated GIF or a muted video of at most 15 s; `thumbnail_url` is a still
|
|
3435
|
+
* frame to show while it loads and when the viewer prefers reduced motion.
|
|
3436
|
+
*/
|
|
3437
|
+
attachment?: components["schemas"]["Attachment"];
|
|
3438
|
+
preset?: components["schemas"]["BackgroundPreset"];
|
|
3439
|
+
colors?: components["schemas"]["BackgroundColor"][];
|
|
3440
|
+
};
|
|
3441
|
+
/**
|
|
3442
|
+
* @description `media` needs `attachment_id` (uploaded with purpose `profile_background`), `preset` needs `preset`, `color`
|
|
3443
|
+
* needs `colors`; other fields must be absent (`422` otherwise).
|
|
3444
|
+
*/
|
|
3445
|
+
SetBackgroundRequest: {
|
|
3446
|
+
kind: components["schemas"]["ProfileBackgroundKind"];
|
|
3447
|
+
attachment_id?: components["schemas"]["AttachmentRef"];
|
|
3448
|
+
preset?: components["schemas"]["BackgroundPreset"];
|
|
3449
|
+
colors?: components["schemas"]["BackgroundColor"][];
|
|
3450
|
+
};
|
|
3451
|
+
SetMusicRequest: {
|
|
3452
|
+
/** @description An upload of the caller with purpose `profile_music`. */
|
|
3453
|
+
attachment_id: components["schemas"]["AttachmentRef"];
|
|
3454
|
+
/** @description Shown title. Clients fill it in from `Attachment.tags` of the upload and let the user edit it. */
|
|
3455
|
+
title?: string | null;
|
|
3456
|
+
/** @description Shown artist, filled in the same way. */
|
|
3457
|
+
artist?: string | null;
|
|
3294
3458
|
};
|
|
3295
3459
|
UserPage: {
|
|
3296
3460
|
items: components["schemas"]["User"][];
|
|
@@ -3310,9 +3474,16 @@ export interface components {
|
|
|
3310
3474
|
* @description `sticker`: a PNG, JPEG or still WebP of at most 5 MB. The server fits it into 512 x 512 px with a transparent
|
|
3311
3475
|
* border and stores a WebP (`413` when that is still over 512 KB). Only its uploader can load it until it is
|
|
3312
3476
|
* added to a pack.
|
|
3477
|
+
*
|
|
3478
|
+
* `profile_music`: an audio file of at most 20 MB. The server keeps at most 30 s of it (from `start_ms` to
|
|
3479
|
+
* `end_ms`, or the first 30 s), stored as AAC, reads the title and artist into `tags` and the embedded cover
|
|
3480
|
+
* into `thumbnail_url`. Use it with `PUT /me/music`.
|
|
3481
|
+
*
|
|
3482
|
+
* `profile_background`: an image (10 MB), an animated GIF (15 MB) or a video of at most 15 s (15 MB). Use it
|
|
3483
|
+
* with `PUT /me/background` or `PUT /groups/{chat_id}/background`.
|
|
3313
3484
|
* @enum {string}
|
|
3314
3485
|
*/
|
|
3315
|
-
UploadPurpose: "message" | "avatar" | "sticker";
|
|
3486
|
+
UploadPurpose: "message" | "avatar" | "sticker" | "profile_music" | "profile_background";
|
|
3316
3487
|
UploadAttachmentRequest: {
|
|
3317
3488
|
/** Format: binary */
|
|
3318
3489
|
file: string;
|
|
@@ -3322,6 +3493,10 @@ export interface components {
|
|
|
3322
3493
|
duration_ms?: number;
|
|
3323
3494
|
/** @description Amplitude samples (0-255) of a voice message */
|
|
3324
3495
|
waveform?: number[];
|
|
3496
|
+
/** @description `profile_music` only: where the kept part starts. */
|
|
3497
|
+
start_ms?: number;
|
|
3498
|
+
/** @description `profile_music` only: where the kept part ends, at most 30 s after `start_ms`. */
|
|
3499
|
+
end_ms?: number;
|
|
3325
3500
|
};
|
|
3326
3501
|
Attachment: {
|
|
3327
3502
|
id: components["schemas"]["AttachmentRef"];
|
|
@@ -3340,6 +3515,8 @@ export interface components {
|
|
|
3340
3515
|
readonly display_url?: string | null;
|
|
3341
3516
|
duration_ms?: number | null;
|
|
3342
3517
|
waveform?: number[] | null;
|
|
3518
|
+
/** @description Only in the answer to a `profile_music` upload; what the file says about itself. */
|
|
3519
|
+
tags?: components["schemas"]["AudioTags"];
|
|
3343
3520
|
/**
|
|
3344
3521
|
* @description What the sender drew on this image of this message. Clients show the image with the drawing on top
|
|
3345
3522
|
* and never without it. Absent when the image has no drawing. The same image can carry another drawing
|
|
@@ -3347,6 +3524,10 @@ export interface components {
|
|
|
3347
3524
|
*/
|
|
3348
3525
|
drawing?: components["schemas"]["Drawing"];
|
|
3349
3526
|
};
|
|
3527
|
+
AudioTags: {
|
|
3528
|
+
title: string | null;
|
|
3529
|
+
artist: string | null;
|
|
3530
|
+
};
|
|
3350
3531
|
/**
|
|
3351
3532
|
* @description Strokes and text labels on an image. Coordinates, widths and sizes are fractions of the image as it is
|
|
3352
3533
|
* shown (0 is the left or top edge, 1 the right or bottom edge), so the drawing fits any display size.
|
|
@@ -3713,6 +3894,8 @@ export interface components {
|
|
|
3713
3894
|
name: string;
|
|
3714
3895
|
description: string | null;
|
|
3715
3896
|
avatar_url: string | null;
|
|
3897
|
+
/** @description The banner and page background of the group profile; set by the owner and admins. */
|
|
3898
|
+
background: components["schemas"]["ProfileBackground"] | null;
|
|
3716
3899
|
owner_id: components["schemas"]["Id"];
|
|
3717
3900
|
my_role: components["schemas"]["GroupRole"];
|
|
3718
3901
|
members: components["schemas"]["GroupMember"][];
|
|
@@ -4703,6 +4886,126 @@ export interface operations {
|
|
|
4703
4886
|
426: components["responses"]["ClientOutdated"];
|
|
4704
4887
|
};
|
|
4705
4888
|
};
|
|
4889
|
+
setMyMusic: {
|
|
4890
|
+
parameters: {
|
|
4891
|
+
query?: never;
|
|
4892
|
+
header?: {
|
|
4893
|
+
/** @description Version of the client app, for logs and the per-client metric. */
|
|
4894
|
+
"X-Client-Version"?: components["parameters"]["ClientVersion"];
|
|
4895
|
+
/** @description Contract version the client was built with (`API_VERSION` of `@myronsi/messenger-api`). A different MAJOR or a version below `min_client_api_version` is answered with `426`; a malformed value with `400` (`invalid_client_version`). */
|
|
4896
|
+
"X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
|
|
4897
|
+
};
|
|
4898
|
+
path?: never;
|
|
4899
|
+
cookie?: never;
|
|
4900
|
+
};
|
|
4901
|
+
requestBody: {
|
|
4902
|
+
content: {
|
|
4903
|
+
"application/json": components["schemas"]["SetMusicRequest"];
|
|
4904
|
+
};
|
|
4905
|
+
};
|
|
4906
|
+
responses: {
|
|
4907
|
+
/** @description Updated user */
|
|
4908
|
+
200: {
|
|
4909
|
+
headers: {
|
|
4910
|
+
[name: string]: unknown;
|
|
4911
|
+
};
|
|
4912
|
+
content: {
|
|
4913
|
+
"application/json": components["schemas"]["Me"];
|
|
4914
|
+
};
|
|
4915
|
+
};
|
|
4916
|
+
400: components["responses"]["BadRequest"];
|
|
4917
|
+
401: components["responses"]["Unauthorized"];
|
|
4918
|
+
422: components["responses"]["ValidationFailed"];
|
|
4919
|
+
426: components["responses"]["ClientOutdated"];
|
|
4920
|
+
};
|
|
4921
|
+
};
|
|
4922
|
+
deleteMyMusic: {
|
|
4923
|
+
parameters: {
|
|
4924
|
+
query?: never;
|
|
4925
|
+
header?: {
|
|
4926
|
+
/** @description Version of the client app, for logs and the per-client metric. */
|
|
4927
|
+
"X-Client-Version"?: components["parameters"]["ClientVersion"];
|
|
4928
|
+
/** @description Contract version the client was built with (`API_VERSION` of `@myronsi/messenger-api`). A different MAJOR or a version below `min_client_api_version` is answered with `426`; a malformed value with `400` (`invalid_client_version`). */
|
|
4929
|
+
"X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
|
|
4930
|
+
};
|
|
4931
|
+
path?: never;
|
|
4932
|
+
cookie?: never;
|
|
4933
|
+
};
|
|
4934
|
+
requestBody?: never;
|
|
4935
|
+
responses: {
|
|
4936
|
+
/** @description Updated user */
|
|
4937
|
+
200: {
|
|
4938
|
+
headers: {
|
|
4939
|
+
[name: string]: unknown;
|
|
4940
|
+
};
|
|
4941
|
+
content: {
|
|
4942
|
+
"application/json": components["schemas"]["Me"];
|
|
4943
|
+
};
|
|
4944
|
+
};
|
|
4945
|
+
401: components["responses"]["Unauthorized"];
|
|
4946
|
+
426: components["responses"]["ClientOutdated"];
|
|
4947
|
+
};
|
|
4948
|
+
};
|
|
4949
|
+
setMyBackground: {
|
|
4950
|
+
parameters: {
|
|
4951
|
+
query?: never;
|
|
4952
|
+
header?: {
|
|
4953
|
+
/** @description Version of the client app, for logs and the per-client metric. */
|
|
4954
|
+
"X-Client-Version"?: components["parameters"]["ClientVersion"];
|
|
4955
|
+
/** @description Contract version the client was built with (`API_VERSION` of `@myronsi/messenger-api`). A different MAJOR or a version below `min_client_api_version` is answered with `426`; a malformed value with `400` (`invalid_client_version`). */
|
|
4956
|
+
"X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
|
|
4957
|
+
};
|
|
4958
|
+
path?: never;
|
|
4959
|
+
cookie?: never;
|
|
4960
|
+
};
|
|
4961
|
+
requestBody: {
|
|
4962
|
+
content: {
|
|
4963
|
+
"application/json": components["schemas"]["SetBackgroundRequest"];
|
|
4964
|
+
};
|
|
4965
|
+
};
|
|
4966
|
+
responses: {
|
|
4967
|
+
/** @description Updated user */
|
|
4968
|
+
200: {
|
|
4969
|
+
headers: {
|
|
4970
|
+
[name: string]: unknown;
|
|
4971
|
+
};
|
|
4972
|
+
content: {
|
|
4973
|
+
"application/json": components["schemas"]["Me"];
|
|
4974
|
+
};
|
|
4975
|
+
};
|
|
4976
|
+
400: components["responses"]["BadRequest"];
|
|
4977
|
+
401: components["responses"]["Unauthorized"];
|
|
4978
|
+
422: components["responses"]["ValidationFailed"];
|
|
4979
|
+
426: components["responses"]["ClientOutdated"];
|
|
4980
|
+
};
|
|
4981
|
+
};
|
|
4982
|
+
deleteMyBackground: {
|
|
4983
|
+
parameters: {
|
|
4984
|
+
query?: never;
|
|
4985
|
+
header?: {
|
|
4986
|
+
/** @description Version of the client app, for logs and the per-client metric. */
|
|
4987
|
+
"X-Client-Version"?: components["parameters"]["ClientVersion"];
|
|
4988
|
+
/** @description Contract version the client was built with (`API_VERSION` of `@myronsi/messenger-api`). A different MAJOR or a version below `min_client_api_version` is answered with `426`; a malformed value with `400` (`invalid_client_version`). */
|
|
4989
|
+
"X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
|
|
4990
|
+
};
|
|
4991
|
+
path?: never;
|
|
4992
|
+
cookie?: never;
|
|
4993
|
+
};
|
|
4994
|
+
requestBody?: never;
|
|
4995
|
+
responses: {
|
|
4996
|
+
/** @description Updated user */
|
|
4997
|
+
200: {
|
|
4998
|
+
headers: {
|
|
4999
|
+
[name: string]: unknown;
|
|
5000
|
+
};
|
|
5001
|
+
content: {
|
|
5002
|
+
"application/json": components["schemas"]["Me"];
|
|
5003
|
+
};
|
|
5004
|
+
};
|
|
5005
|
+
401: components["responses"]["Unauthorized"];
|
|
5006
|
+
426: components["responses"]["ClientOutdated"];
|
|
5007
|
+
};
|
|
5008
|
+
};
|
|
4706
5009
|
changePassword: {
|
|
4707
5010
|
parameters: {
|
|
4708
5011
|
query?: never;
|
|
@@ -5054,7 +5357,7 @@ export interface operations {
|
|
|
5054
5357
|
"X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
|
|
5055
5358
|
};
|
|
5056
5359
|
path: {
|
|
5057
|
-
setting_key: "avatar_visibility" | "profile_visibility" | "presence_visibility" | "last_seen_visibility" | "group_invites" | "direct_messages" | "search_visibility";
|
|
5360
|
+
setting_key: "avatar_visibility" | "profile_visibility" | "presence_visibility" | "last_seen_visibility" | "birthday_visibility" | "group_invites" | "direct_messages" | "search_visibility";
|
|
5058
5361
|
effect: "allow" | "deny";
|
|
5059
5362
|
};
|
|
5060
5363
|
cookie?: never;
|
|
@@ -6723,6 +7026,74 @@ export interface operations {
|
|
|
6723
7026
|
426: components["responses"]["ClientOutdated"];
|
|
6724
7027
|
};
|
|
6725
7028
|
};
|
|
7029
|
+
setGroupBackground: {
|
|
7030
|
+
parameters: {
|
|
7031
|
+
query?: never;
|
|
7032
|
+
header?: {
|
|
7033
|
+
/** @description Version of the client app, for logs and the per-client metric. */
|
|
7034
|
+
"X-Client-Version"?: components["parameters"]["ClientVersion"];
|
|
7035
|
+
/** @description Contract version the client was built with (`API_VERSION` of `@myronsi/messenger-api`). A different MAJOR or a version below `min_client_api_version` is answered with `426`; a malformed value with `400` (`invalid_client_version`). */
|
|
7036
|
+
"X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
|
|
7037
|
+
};
|
|
7038
|
+
path: {
|
|
7039
|
+
chat_id: components["parameters"]["ChatId"];
|
|
7040
|
+
};
|
|
7041
|
+
cookie?: never;
|
|
7042
|
+
};
|
|
7043
|
+
requestBody: {
|
|
7044
|
+
content: {
|
|
7045
|
+
"application/json": components["schemas"]["SetBackgroundRequest"];
|
|
7046
|
+
};
|
|
7047
|
+
};
|
|
7048
|
+
responses: {
|
|
7049
|
+
/** @description Updated group */
|
|
7050
|
+
200: {
|
|
7051
|
+
headers: {
|
|
7052
|
+
[name: string]: unknown;
|
|
7053
|
+
};
|
|
7054
|
+
content: {
|
|
7055
|
+
"application/json": components["schemas"]["Group"];
|
|
7056
|
+
};
|
|
7057
|
+
};
|
|
7058
|
+
400: components["responses"]["BadRequest"];
|
|
7059
|
+
401: components["responses"]["Unauthorized"];
|
|
7060
|
+
403: components["responses"]["Forbidden"];
|
|
7061
|
+
404: components["responses"]["NotFound"];
|
|
7062
|
+
422: components["responses"]["ValidationFailed"];
|
|
7063
|
+
426: components["responses"]["ClientOutdated"];
|
|
7064
|
+
};
|
|
7065
|
+
};
|
|
7066
|
+
deleteGroupBackground: {
|
|
7067
|
+
parameters: {
|
|
7068
|
+
query?: never;
|
|
7069
|
+
header?: {
|
|
7070
|
+
/** @description Version of the client app, for logs and the per-client metric. */
|
|
7071
|
+
"X-Client-Version"?: components["parameters"]["ClientVersion"];
|
|
7072
|
+
/** @description Contract version the client was built with (`API_VERSION` of `@myronsi/messenger-api`). A different MAJOR or a version below `min_client_api_version` is answered with `426`; a malformed value with `400` (`invalid_client_version`). */
|
|
7073
|
+
"X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
|
|
7074
|
+
};
|
|
7075
|
+
path: {
|
|
7076
|
+
chat_id: components["parameters"]["ChatId"];
|
|
7077
|
+
};
|
|
7078
|
+
cookie?: never;
|
|
7079
|
+
};
|
|
7080
|
+
requestBody?: never;
|
|
7081
|
+
responses: {
|
|
7082
|
+
/** @description Updated group */
|
|
7083
|
+
200: {
|
|
7084
|
+
headers: {
|
|
7085
|
+
[name: string]: unknown;
|
|
7086
|
+
};
|
|
7087
|
+
content: {
|
|
7088
|
+
"application/json": components["schemas"]["Group"];
|
|
7089
|
+
};
|
|
7090
|
+
};
|
|
7091
|
+
401: components["responses"]["Unauthorized"];
|
|
7092
|
+
403: components["responses"]["Forbidden"];
|
|
7093
|
+
404: components["responses"]["NotFound"];
|
|
7094
|
+
426: components["responses"]["ClientOutdated"];
|
|
7095
|
+
};
|
|
7096
|
+
};
|
|
6726
7097
|
listGroupMembers: {
|
|
6727
7098
|
parameters: {
|
|
6728
7099
|
query?: {
|
package/dist/ws-docs.json
CHANGED
|
@@ -95,6 +95,10 @@
|
|
|
95
95
|
"display_name": "Alice",
|
|
96
96
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
97
97
|
"bio": null,
|
|
98
|
+
"pronouns": null,
|
|
99
|
+
"birthday": null,
|
|
100
|
+
"music": null,
|
|
101
|
+
"background": null,
|
|
98
102
|
"is_online": true,
|
|
99
103
|
"last_seen": null,
|
|
100
104
|
"is_deleted": false,
|
|
@@ -186,6 +190,10 @@
|
|
|
186
190
|
"display_name": "Alice",
|
|
187
191
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
188
192
|
"bio": null,
|
|
193
|
+
"pronouns": null,
|
|
194
|
+
"birthday": null,
|
|
195
|
+
"music": null,
|
|
196
|
+
"background": null,
|
|
189
197
|
"is_online": true,
|
|
190
198
|
"last_seen": null,
|
|
191
199
|
"is_deleted": false,
|
|
@@ -207,6 +215,10 @@
|
|
|
207
215
|
"display_name": "Alice",
|
|
208
216
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
209
217
|
"bio": null,
|
|
218
|
+
"pronouns": null,
|
|
219
|
+
"birthday": null,
|
|
220
|
+
"music": null,
|
|
221
|
+
"background": null,
|
|
210
222
|
"is_online": true,
|
|
211
223
|
"last_seen": null,
|
|
212
224
|
"is_deleted": false,
|
|
@@ -250,6 +262,10 @@
|
|
|
250
262
|
"display_name": "Alice",
|
|
251
263
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
252
264
|
"bio": null,
|
|
265
|
+
"pronouns": null,
|
|
266
|
+
"birthday": null,
|
|
267
|
+
"music": null,
|
|
268
|
+
"background": null,
|
|
253
269
|
"is_online": true,
|
|
254
270
|
"last_seen": null,
|
|
255
271
|
"is_deleted": false,
|
|
@@ -271,6 +287,10 @@
|
|
|
271
287
|
"display_name": "Alice",
|
|
272
288
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
273
289
|
"bio": null,
|
|
290
|
+
"pronouns": null,
|
|
291
|
+
"birthday": null,
|
|
292
|
+
"music": null,
|
|
293
|
+
"background": null,
|
|
274
294
|
"is_online": true,
|
|
275
295
|
"last_seen": null,
|
|
276
296
|
"is_deleted": false,
|
|
@@ -316,6 +336,10 @@
|
|
|
316
336
|
"display_name": "Alice",
|
|
317
337
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
318
338
|
"bio": null,
|
|
339
|
+
"pronouns": null,
|
|
340
|
+
"birthday": null,
|
|
341
|
+
"music": null,
|
|
342
|
+
"background": null,
|
|
319
343
|
"is_online": true,
|
|
320
344
|
"last_seen": null,
|
|
321
345
|
"is_deleted": false,
|
|
@@ -354,6 +378,7 @@
|
|
|
354
378
|
"name": "Team",
|
|
355
379
|
"description": null,
|
|
356
380
|
"avatar_url": null,
|
|
381
|
+
"background": null,
|
|
357
382
|
"owner_id": "1001",
|
|
358
383
|
"my_role": "owner",
|
|
359
384
|
"members": [
|
|
@@ -364,6 +389,10 @@
|
|
|
364
389
|
"display_name": "Alice",
|
|
365
390
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
366
391
|
"bio": null,
|
|
392
|
+
"pronouns": null,
|
|
393
|
+
"birthday": null,
|
|
394
|
+
"music": null,
|
|
395
|
+
"background": null,
|
|
367
396
|
"is_online": true,
|
|
368
397
|
"last_seen": null,
|
|
369
398
|
"is_deleted": false,
|
|
@@ -387,6 +416,7 @@
|
|
|
387
416
|
"name": "Team",
|
|
388
417
|
"description": null,
|
|
389
418
|
"avatar_url": null,
|
|
419
|
+
"background": null,
|
|
390
420
|
"owner_id": "1001",
|
|
391
421
|
"my_role": "owner",
|
|
392
422
|
"members": [
|
|
@@ -397,6 +427,10 @@
|
|
|
397
427
|
"display_name": "Alice",
|
|
398
428
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
399
429
|
"bio": null,
|
|
430
|
+
"pronouns": null,
|
|
431
|
+
"birthday": null,
|
|
432
|
+
"music": null,
|
|
433
|
+
"background": null,
|
|
400
434
|
"is_online": true,
|
|
401
435
|
"last_seen": null,
|
|
402
436
|
"is_deleted": false,
|
|
@@ -445,6 +479,10 @@
|
|
|
445
479
|
"display_name": "Alice",
|
|
446
480
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
447
481
|
"bio": null,
|
|
482
|
+
"pronouns": null,
|
|
483
|
+
"birthday": null,
|
|
484
|
+
"music": null,
|
|
485
|
+
"background": null,
|
|
448
486
|
"is_online": true,
|
|
449
487
|
"last_seen": null,
|
|
450
488
|
"is_deleted": false,
|