@myronsi/messenger-api 2.1.0-alpha.40 → 2.1.0-alpha.41.next.147
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 +23 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/openapi.yaml +730 -3
- package/dist/schema.d.ts +3582 -2283
- package/dist/ws-docs.json +6 -2
- package/dist/ws-events.d.ts +57 -3
- package/dist/ws-events.schema.json +455 -2
- package/package.json +1 -1
package/dist/ws-docs.json
CHANGED
|
@@ -252,6 +252,7 @@
|
|
|
252
252
|
"is_archived": false,
|
|
253
253
|
"is_request": false,
|
|
254
254
|
"unread_count": 1,
|
|
255
|
+
"unread_mentions_count": 0,
|
|
255
256
|
"first_unread_message_id": "7217400317439950001",
|
|
256
257
|
"last_read_message_id": null,
|
|
257
258
|
"last_message": {
|
|
@@ -325,6 +326,7 @@
|
|
|
325
326
|
"is_archived": false,
|
|
326
327
|
"is_request": false,
|
|
327
328
|
"unread_count": 1,
|
|
329
|
+
"unread_mentions_count": 0,
|
|
328
330
|
"first_unread_message_id": "7217400317439950001",
|
|
329
331
|
"last_read_message_id": null,
|
|
330
332
|
"last_message": {
|
|
@@ -452,7 +454,8 @@
|
|
|
452
454
|
"joined_at": "2026-10-04T12:00:00Z"
|
|
453
455
|
}
|
|
454
456
|
],
|
|
455
|
-
"created_at": "2026-10-04T12:00:00Z"
|
|
457
|
+
"created_at": "2026-10-04T12:00:00Z",
|
|
458
|
+
"public_name": null
|
|
456
459
|
}
|
|
457
460
|
}
|
|
458
461
|
},
|
|
@@ -490,7 +493,8 @@
|
|
|
490
493
|
"joined_at": "2026-10-04T12:00:00Z"
|
|
491
494
|
}
|
|
492
495
|
],
|
|
493
|
-
"created_at": "2026-10-04T12:00:00Z"
|
|
496
|
+
"created_at": "2026-10-04T12:00:00Z",
|
|
497
|
+
"public_name": null
|
|
494
498
|
}
|
|
495
499
|
}
|
|
496
500
|
},
|
package/dist/ws-events.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.41. Do not edit. */
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Any WebSocket event, in either direction.
|
|
@@ -82,7 +82,9 @@ export type AccountRestriction =
|
|
|
82
82
|
| "publish_pack"
|
|
83
83
|
| "search"
|
|
84
84
|
| "send"
|
|
85
|
-
| "manage_group"
|
|
85
|
+
| "manage_group"
|
|
86
|
+
| "share_group"
|
|
87
|
+
| "join_by_link";
|
|
86
88
|
/**
|
|
87
89
|
* Who set the current status: `automatic` (reports, decay, appeal) or `staff` (reviewed by a person on the
|
|
88
90
|
* moderation team). Missing means `automatic`. Unknown values must be treated like `automatic`.
|
|
@@ -176,6 +178,12 @@ export type ErrorCode =
|
|
|
176
178
|
| "limit_reached"
|
|
177
179
|
| "account_restricted"
|
|
178
180
|
| "internal_error";
|
|
181
|
+
/**
|
|
182
|
+
* A username or a group's public name. One name space for both, unique ignoring case; links are `/@name` on the
|
|
183
|
+
* web app's origin.
|
|
184
|
+
*
|
|
185
|
+
*/
|
|
186
|
+
export type PublicName = string;
|
|
179
187
|
/**
|
|
180
188
|
* What was reported. Unknown values must be shown without the subject.
|
|
181
189
|
*/
|
|
@@ -732,6 +740,12 @@ export interface Chat {
|
|
|
732
740
|
*/
|
|
733
741
|
is_request: boolean;
|
|
734
742
|
unread_count: number;
|
|
743
|
+
/**
|
|
744
|
+
* Unread messages that mention the caller (`GET /chats/{chat_id}/mentions`). Clients show an `@` badge while
|
|
745
|
+
* it is above 0. Always 0 in direct chats.
|
|
746
|
+
*
|
|
747
|
+
*/
|
|
748
|
+
unread_mentions_count: number;
|
|
735
749
|
/**
|
|
736
750
|
* The oldest message the caller has not read (the same messages `unread_count` counts: not their own,
|
|
737
751
|
* not system messages, not deleted); `null` when nothing is unread. Clients open the chat around it and
|
|
@@ -811,6 +825,40 @@ export interface Message {
|
|
|
811
825
|
moderation_reason?: ModerationRemovalReason;
|
|
812
826
|
system_event?: SystemEvent;
|
|
813
827
|
client_temp_id?: ClientTempId;
|
|
828
|
+
/**
|
|
829
|
+
* Group members the text mentions by `@username` (ignoring case), found by the server when the message was
|
|
830
|
+
* sent or last edited; at most 20. Absent when there are none and in direct chats. Clients render every
|
|
831
|
+
* `@name` token as a link to `/@name`; these IDs only decide highlighting and notifications.
|
|
832
|
+
*
|
|
833
|
+
*
|
|
834
|
+
* @maxItems 20
|
|
835
|
+
*/
|
|
836
|
+
mentions?:
|
|
837
|
+
| []
|
|
838
|
+
| [Id]
|
|
839
|
+
| [Id, Id]
|
|
840
|
+
| [Id, Id, Id]
|
|
841
|
+
| [Id, Id, Id, Id]
|
|
842
|
+
| [Id, Id, Id, Id, Id]
|
|
843
|
+
| [Id, Id, Id, Id, Id, Id]
|
|
844
|
+
| [Id, Id, Id, Id, Id, Id, Id]
|
|
845
|
+
| [Id, Id, Id, Id, Id, Id, Id, Id]
|
|
846
|
+
| [Id, Id, Id, Id, Id, Id, Id, Id, Id]
|
|
847
|
+
| [Id, Id, Id, Id, Id, Id, Id, Id, Id, Id]
|
|
848
|
+
| [Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id]
|
|
849
|
+
| [Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id]
|
|
850
|
+
| [Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id]
|
|
851
|
+
| [Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id]
|
|
852
|
+
| [Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id]
|
|
853
|
+
| [Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id]
|
|
854
|
+
| [Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id]
|
|
855
|
+
| [Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id]
|
|
856
|
+
| [Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id]
|
|
857
|
+
| [Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id, Id];
|
|
858
|
+
/**
|
|
859
|
+
* `true` when an owner or admin wrote `@all`; it mentions every member. Absent otherwise.
|
|
860
|
+
*/
|
|
861
|
+
mentions_all?: boolean;
|
|
814
862
|
}
|
|
815
863
|
/**
|
|
816
864
|
* What a reply shows of the message it answers, so a client can draw the quote without loading that
|
|
@@ -998,7 +1046,9 @@ export interface ServerErrorEvent {
|
|
|
998
1046
|
| "publish_pack"
|
|
999
1047
|
| "search"
|
|
1000
1048
|
| "send"
|
|
1001
|
-
| "manage_group"
|
|
1049
|
+
| "manage_group"
|
|
1050
|
+
| "share_group"
|
|
1051
|
+
| "join_by_link";
|
|
1002
1052
|
/**
|
|
1003
1053
|
* The setting or field that caused the error, for example `voice_video_messages` for a voice message or video the recipient does not accept.
|
|
1004
1054
|
*/
|
|
@@ -1030,6 +1080,10 @@ export interface Group {
|
|
|
1030
1080
|
my_role: GroupRole;
|
|
1031
1081
|
members: GroupMember[];
|
|
1032
1082
|
created_at: Timestamp;
|
|
1083
|
+
/**
|
|
1084
|
+
* The group's public name (`/@name`); `null` for a private group.
|
|
1085
|
+
*/
|
|
1086
|
+
public_name: PublicName | null;
|
|
1033
1087
|
}
|
|
1034
1088
|
export interface GroupMember {
|
|
1035
1089
|
user: User;
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"birthday_reminders": {
|
|
22
22
|
"type": "boolean",
|
|
23
23
|
"description": "A push at 09:00 (in `Me.time_zone`) when someone you have a direct chat with has a birthday. Always sent\nby the server; when a `PUT` leaves it out, it stays as it is. Defaults to `true`.\n"
|
|
24
|
+
},
|
|
25
|
+
"mentions_in_muted": {
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"description": "A push when someone mentions you (`@username`, or `@all` from an owner or admin) in a chat you muted.\nAlways sent by the server; when a `PUT` leaves it out, it stays as it is. Defaults to `true`.\n"
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
},
|
|
@@ -1119,6 +1123,7 @@
|
|
|
1119
1123
|
"typing_indicators_enabled",
|
|
1120
1124
|
"voice_video_messages",
|
|
1121
1125
|
"forward_link",
|
|
1126
|
+
"web_profile_visibility",
|
|
1122
1127
|
"exceptions"
|
|
1123
1128
|
],
|
|
1124
1129
|
"properties": {
|
|
@@ -1197,6 +1202,9 @@
|
|
|
1197
1202
|
}
|
|
1198
1203
|
]
|
|
1199
1204
|
},
|
|
1205
|
+
"web_profile_visibility": {
|
|
1206
|
+
"$ref": "#/$defs/WebProfileVisibility"
|
|
1207
|
+
},
|
|
1200
1208
|
"exceptions": {
|
|
1201
1209
|
"$ref": "#/$defs/PrivacyExceptions"
|
|
1202
1210
|
}
|
|
@@ -1249,6 +1257,9 @@
|
|
|
1249
1257
|
},
|
|
1250
1258
|
"forward_link": {
|
|
1251
1259
|
"$ref": "#/$defs/ForwardLinkPolicy"
|
|
1260
|
+
},
|
|
1261
|
+
"web_profile_visibility": {
|
|
1262
|
+
"$ref": "#/$defs/WebProfileVisibility"
|
|
1252
1263
|
}
|
|
1253
1264
|
}
|
|
1254
1265
|
},
|
|
@@ -1509,7 +1520,9 @@
|
|
|
1509
1520
|
"publish_pack",
|
|
1510
1521
|
"search",
|
|
1511
1522
|
"send",
|
|
1512
|
-
"manage_group"
|
|
1523
|
+
"manage_group",
|
|
1524
|
+
"share_group",
|
|
1525
|
+
"join_by_link"
|
|
1513
1526
|
]
|
|
1514
1527
|
},
|
|
1515
1528
|
"AccountStatus": {
|
|
@@ -3151,6 +3164,18 @@
|
|
|
3151
3164
|
},
|
|
3152
3165
|
"client_temp_id": {
|
|
3153
3166
|
"$ref": "#/$defs/ClientTempId"
|
|
3167
|
+
},
|
|
3168
|
+
"mentions": {
|
|
3169
|
+
"type": "array",
|
|
3170
|
+
"description": "Group members the text mentions by `@username` (ignoring case), found by the server when the message was\nsent or last edited; at most 20. Absent when there are none and in direct chats. Clients render every\n`@name` token as a link to `/@name`; these IDs only decide highlighting and notifications.\n",
|
|
3171
|
+
"maxItems": 20,
|
|
3172
|
+
"items": {
|
|
3173
|
+
"$ref": "#/$defs/Id"
|
|
3174
|
+
}
|
|
3175
|
+
},
|
|
3176
|
+
"mentions_all": {
|
|
3177
|
+
"type": "boolean",
|
|
3178
|
+
"description": "`true` when an owner or admin wrote `@all`; it mentions every member. Absent otherwise."
|
|
3154
3179
|
}
|
|
3155
3180
|
}
|
|
3156
3181
|
},
|
|
@@ -3763,6 +3788,7 @@
|
|
|
3763
3788
|
"is_archived",
|
|
3764
3789
|
"is_request",
|
|
3765
3790
|
"unread_count",
|
|
3791
|
+
"unread_mentions_count",
|
|
3766
3792
|
"first_unread_message_id",
|
|
3767
3793
|
"last_read_message_id",
|
|
3768
3794
|
"last_message",
|
|
@@ -3818,6 +3844,11 @@
|
|
|
3818
3844
|
"type": "integer",
|
|
3819
3845
|
"minimum": 0
|
|
3820
3846
|
},
|
|
3847
|
+
"unread_mentions_count": {
|
|
3848
|
+
"type": "integer",
|
|
3849
|
+
"minimum": 0,
|
|
3850
|
+
"description": "Unread messages that mention the caller (`GET /chats/{chat_id}/mentions`). Clients show an `@` badge while\nit is above 0. Always 0 in direct chats.\n"
|
|
3851
|
+
},
|
|
3821
3852
|
"first_unread_message_id": {
|
|
3822
3853
|
"description": "The oldest message the caller has not read (the same messages `unread_count` counts: not their own,\nnot system messages, not deleted); `null` when nothing is unread. Clients open the chat around it and\nshow the \"new messages\" divider above it.\n",
|
|
3823
3854
|
"oneOf": [
|
|
@@ -4043,7 +4074,8 @@
|
|
|
4043
4074
|
"owner_id",
|
|
4044
4075
|
"my_role",
|
|
4045
4076
|
"members",
|
|
4046
|
-
"created_at"
|
|
4077
|
+
"created_at",
|
|
4078
|
+
"public_name"
|
|
4047
4079
|
],
|
|
4048
4080
|
"properties": {
|
|
4049
4081
|
"id": {
|
|
@@ -4092,6 +4124,17 @@
|
|
|
4092
4124
|
},
|
|
4093
4125
|
"created_at": {
|
|
4094
4126
|
"$ref": "#/$defs/Timestamp"
|
|
4127
|
+
},
|
|
4128
|
+
"public_name": {
|
|
4129
|
+
"description": "The group's public name (`/@name`); `null` for a private group.",
|
|
4130
|
+
"oneOf": [
|
|
4131
|
+
{
|
|
4132
|
+
"$ref": "#/$defs/PublicName"
|
|
4133
|
+
},
|
|
4134
|
+
{
|
|
4135
|
+
"type": "null"
|
|
4136
|
+
}
|
|
4137
|
+
]
|
|
4095
4138
|
}
|
|
4096
4139
|
}
|
|
4097
4140
|
},
|
|
@@ -4180,6 +4223,416 @@
|
|
|
4180
4223
|
}
|
|
4181
4224
|
}
|
|
4182
4225
|
},
|
|
4226
|
+
"PublicName": {
|
|
4227
|
+
"type": "string",
|
|
4228
|
+
"description": "A username or a group's public name. One name space for both, unique ignoring case; links are `/@name` on the\nweb app's origin.\n",
|
|
4229
|
+
"pattern": "^[A-Za-z0-9_]{3,32}$"
|
|
4230
|
+
},
|
|
4231
|
+
"InviteToken": {
|
|
4232
|
+
"type": "string",
|
|
4233
|
+
"description": "The secret part of an invite link `/join/{token}`.",
|
|
4234
|
+
"pattern": "^[A-Za-z0-9]{22}$"
|
|
4235
|
+
},
|
|
4236
|
+
"WebProfileVisibility": {
|
|
4237
|
+
"type": "string",
|
|
4238
|
+
"description": "Whether people without an account (and link previews in other apps) see the profile card at `/@username`:\ndisplay name, username, and the avatar and bio when `avatar_visibility` and `profile_visibility` are\n`everyone`. Defaults to `everyone`.\n",
|
|
4239
|
+
"enum": [
|
|
4240
|
+
"everyone",
|
|
4241
|
+
"nobody"
|
|
4242
|
+
]
|
|
4243
|
+
},
|
|
4244
|
+
"PublicUser": {
|
|
4245
|
+
"type": "object",
|
|
4246
|
+
"description": "The card of a user for someone without an account. Never carries an ID, presence or other fields.",
|
|
4247
|
+
"required": [
|
|
4248
|
+
"username",
|
|
4249
|
+
"display_name",
|
|
4250
|
+
"avatar_url",
|
|
4251
|
+
"bio"
|
|
4252
|
+
],
|
|
4253
|
+
"properties": {
|
|
4254
|
+
"username": {
|
|
4255
|
+
"$ref": "#/$defs/Username"
|
|
4256
|
+
},
|
|
4257
|
+
"display_name": {
|
|
4258
|
+
"type": "string"
|
|
4259
|
+
},
|
|
4260
|
+
"avatar_url": {
|
|
4261
|
+
"description": "`/api/v2/public/names/{username}/avatar?rev=…`; `null` when hidden or unset.",
|
|
4262
|
+
"type": [
|
|
4263
|
+
"string",
|
|
4264
|
+
"null"
|
|
4265
|
+
]
|
|
4266
|
+
},
|
|
4267
|
+
"bio": {
|
|
4268
|
+
"description": "`null` when `profile_visibility` is not `everyone` or the bio is empty.",
|
|
4269
|
+
"type": [
|
|
4270
|
+
"string",
|
|
4271
|
+
"null"
|
|
4272
|
+
]
|
|
4273
|
+
}
|
|
4274
|
+
}
|
|
4275
|
+
},
|
|
4276
|
+
"PublicGroup": {
|
|
4277
|
+
"type": "object",
|
|
4278
|
+
"description": "The card of a group for someone without an account. No members and no messages.",
|
|
4279
|
+
"required": [
|
|
4280
|
+
"name",
|
|
4281
|
+
"public_name",
|
|
4282
|
+
"description",
|
|
4283
|
+
"avatar_url",
|
|
4284
|
+
"member_count"
|
|
4285
|
+
],
|
|
4286
|
+
"properties": {
|
|
4287
|
+
"name": {
|
|
4288
|
+
"type": "string"
|
|
4289
|
+
},
|
|
4290
|
+
"public_name": {
|
|
4291
|
+
"description": "Set for a public group.",
|
|
4292
|
+
"oneOf": [
|
|
4293
|
+
{
|
|
4294
|
+
"$ref": "#/$defs/PublicName"
|
|
4295
|
+
},
|
|
4296
|
+
{
|
|
4297
|
+
"type": "null"
|
|
4298
|
+
}
|
|
4299
|
+
]
|
|
4300
|
+
},
|
|
4301
|
+
"description": {
|
|
4302
|
+
"type": [
|
|
4303
|
+
"string",
|
|
4304
|
+
"null"
|
|
4305
|
+
]
|
|
4306
|
+
},
|
|
4307
|
+
"avatar_url": {
|
|
4308
|
+
"description": "A public avatar URL (`/api/v2/public/names/…/avatar` or `/api/v2/public/invites/…/avatar`), or `null`.",
|
|
4309
|
+
"type": [
|
|
4310
|
+
"string",
|
|
4311
|
+
"null"
|
|
4312
|
+
]
|
|
4313
|
+
},
|
|
4314
|
+
"member_count": {
|
|
4315
|
+
"type": "integer",
|
|
4316
|
+
"minimum": 0
|
|
4317
|
+
}
|
|
4318
|
+
}
|
|
4319
|
+
},
|
|
4320
|
+
"PublicNameKind": {
|
|
4321
|
+
"type": "string",
|
|
4322
|
+
"description": "Unknown values must be treated like `unavailable`.",
|
|
4323
|
+
"enum": [
|
|
4324
|
+
"user",
|
|
4325
|
+
"group",
|
|
4326
|
+
"unavailable"
|
|
4327
|
+
]
|
|
4328
|
+
},
|
|
4329
|
+
"PublicNameLookup": {
|
|
4330
|
+
"type": "object",
|
|
4331
|
+
"required": [
|
|
4332
|
+
"kind"
|
|
4333
|
+
],
|
|
4334
|
+
"properties": {
|
|
4335
|
+
"kind": {
|
|
4336
|
+
"$ref": "#/$defs/PublicNameKind"
|
|
4337
|
+
},
|
|
4338
|
+
"user": {
|
|
4339
|
+
"description": "Set when `kind` is `user`.",
|
|
4340
|
+
"$ref": "#/$defs/PublicUser"
|
|
4341
|
+
},
|
|
4342
|
+
"group": {
|
|
4343
|
+
"description": "Set when `kind` is `group`.",
|
|
4344
|
+
"$ref": "#/$defs/PublicGroup"
|
|
4345
|
+
}
|
|
4346
|
+
}
|
|
4347
|
+
},
|
|
4348
|
+
"GroupPreview": {
|
|
4349
|
+
"type": "object",
|
|
4350
|
+
"description": "A group the caller may join, as seen before joining.",
|
|
4351
|
+
"required": [
|
|
4352
|
+
"group",
|
|
4353
|
+
"chat_id"
|
|
4354
|
+
],
|
|
4355
|
+
"properties": {
|
|
4356
|
+
"group": {
|
|
4357
|
+
"$ref": "#/$defs/PublicGroup"
|
|
4358
|
+
},
|
|
4359
|
+
"chat_id": {
|
|
4360
|
+
"description": "The chat when the caller is already a member; `null` otherwise.",
|
|
4361
|
+
"oneOf": [
|
|
4362
|
+
{
|
|
4363
|
+
"$ref": "#/$defs/Id"
|
|
4364
|
+
},
|
|
4365
|
+
{
|
|
4366
|
+
"type": "null"
|
|
4367
|
+
}
|
|
4368
|
+
]
|
|
4369
|
+
}
|
|
4370
|
+
}
|
|
4371
|
+
},
|
|
4372
|
+
"GroupPreviewPage": {
|
|
4373
|
+
"type": "object",
|
|
4374
|
+
"required": [
|
|
4375
|
+
"items",
|
|
4376
|
+
"next_cursor"
|
|
4377
|
+
],
|
|
4378
|
+
"properties": {
|
|
4379
|
+
"items": {
|
|
4380
|
+
"type": "array",
|
|
4381
|
+
"items": {
|
|
4382
|
+
"$ref": "#/$defs/GroupPreview"
|
|
4383
|
+
}
|
|
4384
|
+
},
|
|
4385
|
+
"next_cursor": {
|
|
4386
|
+
"$ref": "#/$defs/Cursor"
|
|
4387
|
+
}
|
|
4388
|
+
}
|
|
4389
|
+
},
|
|
4390
|
+
"PublicNameAvailability": {
|
|
4391
|
+
"type": "object",
|
|
4392
|
+
"required": [
|
|
4393
|
+
"public_name",
|
|
4394
|
+
"available"
|
|
4395
|
+
],
|
|
4396
|
+
"properties": {
|
|
4397
|
+
"public_name": {
|
|
4398
|
+
"$ref": "#/$defs/PublicName"
|
|
4399
|
+
},
|
|
4400
|
+
"available": {
|
|
4401
|
+
"type": "boolean",
|
|
4402
|
+
"description": "`false` when a user or another group has the name (ignoring case) or it is reserved."
|
|
4403
|
+
}
|
|
4404
|
+
}
|
|
4405
|
+
},
|
|
4406
|
+
"InviteLink": {
|
|
4407
|
+
"type": "object",
|
|
4408
|
+
"required": [
|
|
4409
|
+
"id",
|
|
4410
|
+
"token",
|
|
4411
|
+
"name",
|
|
4412
|
+
"created_by",
|
|
4413
|
+
"created_at",
|
|
4414
|
+
"expires_at",
|
|
4415
|
+
"max_uses",
|
|
4416
|
+
"use_count",
|
|
4417
|
+
"revoked_at",
|
|
4418
|
+
"is_active"
|
|
4419
|
+
],
|
|
4420
|
+
"properties": {
|
|
4421
|
+
"id": {
|
|
4422
|
+
"$ref": "#/$defs/Id"
|
|
4423
|
+
},
|
|
4424
|
+
"token": {
|
|
4425
|
+
"$ref": "#/$defs/InviteToken"
|
|
4426
|
+
},
|
|
4427
|
+
"name": {
|
|
4428
|
+
"type": [
|
|
4429
|
+
"string",
|
|
4430
|
+
"null"
|
|
4431
|
+
],
|
|
4432
|
+
"maxLength": 64
|
|
4433
|
+
},
|
|
4434
|
+
"created_by": {
|
|
4435
|
+
"description": "The user who created the link; `null` after that account was deleted.",
|
|
4436
|
+
"oneOf": [
|
|
4437
|
+
{
|
|
4438
|
+
"$ref": "#/$defs/Id"
|
|
4439
|
+
},
|
|
4440
|
+
{
|
|
4441
|
+
"type": "null"
|
|
4442
|
+
}
|
|
4443
|
+
]
|
|
4444
|
+
},
|
|
4445
|
+
"created_at": {
|
|
4446
|
+
"$ref": "#/$defs/Timestamp"
|
|
4447
|
+
},
|
|
4448
|
+
"expires_at": {
|
|
4449
|
+
"description": "`null`: never expires.",
|
|
4450
|
+
"oneOf": [
|
|
4451
|
+
{
|
|
4452
|
+
"$ref": "#/$defs/Timestamp"
|
|
4453
|
+
},
|
|
4454
|
+
{
|
|
4455
|
+
"type": "null"
|
|
4456
|
+
}
|
|
4457
|
+
]
|
|
4458
|
+
},
|
|
4459
|
+
"max_uses": {
|
|
4460
|
+
"description": "`null`: no limit.",
|
|
4461
|
+
"type": [
|
|
4462
|
+
"integer",
|
|
4463
|
+
"null"
|
|
4464
|
+
],
|
|
4465
|
+
"minimum": 1,
|
|
4466
|
+
"maximum": 100000
|
|
4467
|
+
},
|
|
4468
|
+
"use_count": {
|
|
4469
|
+
"type": "integer",
|
|
4470
|
+
"minimum": 0
|
|
4471
|
+
},
|
|
4472
|
+
"revoked_at": {
|
|
4473
|
+
"oneOf": [
|
|
4474
|
+
{
|
|
4475
|
+
"$ref": "#/$defs/Timestamp"
|
|
4476
|
+
},
|
|
4477
|
+
{
|
|
4478
|
+
"type": "null"
|
|
4479
|
+
}
|
|
4480
|
+
]
|
|
4481
|
+
},
|
|
4482
|
+
"is_active": {
|
|
4483
|
+
"type": "boolean",
|
|
4484
|
+
"description": "Not revoked, not expired and not used up."
|
|
4485
|
+
}
|
|
4486
|
+
}
|
|
4487
|
+
},
|
|
4488
|
+
"InviteLinkList": {
|
|
4489
|
+
"type": "object",
|
|
4490
|
+
"required": [
|
|
4491
|
+
"items"
|
|
4492
|
+
],
|
|
4493
|
+
"properties": {
|
|
4494
|
+
"items": {
|
|
4495
|
+
"type": "array",
|
|
4496
|
+
"items": {
|
|
4497
|
+
"$ref": "#/$defs/InviteLink"
|
|
4498
|
+
}
|
|
4499
|
+
}
|
|
4500
|
+
}
|
|
4501
|
+
},
|
|
4502
|
+
"CreateInviteLinkRequest": {
|
|
4503
|
+
"type": "object",
|
|
4504
|
+
"properties": {
|
|
4505
|
+
"name": {
|
|
4506
|
+
"type": [
|
|
4507
|
+
"string",
|
|
4508
|
+
"null"
|
|
4509
|
+
],
|
|
4510
|
+
"maxLength": 64
|
|
4511
|
+
},
|
|
4512
|
+
"expires_at": {
|
|
4513
|
+
"description": "In the future, at most 366 days ahead; `null` or absent for a link that never expires.",
|
|
4514
|
+
"oneOf": [
|
|
4515
|
+
{
|
|
4516
|
+
"$ref": "#/$defs/Timestamp"
|
|
4517
|
+
},
|
|
4518
|
+
{
|
|
4519
|
+
"type": "null"
|
|
4520
|
+
}
|
|
4521
|
+
]
|
|
4522
|
+
},
|
|
4523
|
+
"max_uses": {
|
|
4524
|
+
"description": "`null` or absent for no limit.",
|
|
4525
|
+
"type": [
|
|
4526
|
+
"integer",
|
|
4527
|
+
"null"
|
|
4528
|
+
],
|
|
4529
|
+
"minimum": 1,
|
|
4530
|
+
"maximum": 100000
|
|
4531
|
+
}
|
|
4532
|
+
}
|
|
4533
|
+
},
|
|
4534
|
+
"UpdateInviteLinkRequest": {
|
|
4535
|
+
"type": "object",
|
|
4536
|
+
"minProperties": 1,
|
|
4537
|
+
"description": "Fields left out stay as they are; `null` clears the expiry or the limit.",
|
|
4538
|
+
"properties": {
|
|
4539
|
+
"name": {
|
|
4540
|
+
"type": [
|
|
4541
|
+
"string",
|
|
4542
|
+
"null"
|
|
4543
|
+
],
|
|
4544
|
+
"maxLength": 64
|
|
4545
|
+
},
|
|
4546
|
+
"expires_at": {
|
|
4547
|
+
"oneOf": [
|
|
4548
|
+
{
|
|
4549
|
+
"$ref": "#/$defs/Timestamp"
|
|
4550
|
+
},
|
|
4551
|
+
{
|
|
4552
|
+
"type": "null"
|
|
4553
|
+
}
|
|
4554
|
+
]
|
|
4555
|
+
},
|
|
4556
|
+
"max_uses": {
|
|
4557
|
+
"type": [
|
|
4558
|
+
"integer",
|
|
4559
|
+
"null"
|
|
4560
|
+
],
|
|
4561
|
+
"minimum": 1,
|
|
4562
|
+
"maximum": 100000
|
|
4563
|
+
}
|
|
4564
|
+
}
|
|
4565
|
+
},
|
|
4566
|
+
"SetPublicNameRequest": {
|
|
4567
|
+
"type": "object",
|
|
4568
|
+
"required": [
|
|
4569
|
+
"public_name"
|
|
4570
|
+
],
|
|
4571
|
+
"properties": {
|
|
4572
|
+
"public_name": {
|
|
4573
|
+
"$ref": "#/$defs/PublicName"
|
|
4574
|
+
}
|
|
4575
|
+
}
|
|
4576
|
+
},
|
|
4577
|
+
"GroupBan": {
|
|
4578
|
+
"type": "object",
|
|
4579
|
+
"required": [
|
|
4580
|
+
"user",
|
|
4581
|
+
"banned_by",
|
|
4582
|
+
"created_at"
|
|
4583
|
+
],
|
|
4584
|
+
"properties": {
|
|
4585
|
+
"user": {
|
|
4586
|
+
"$ref": "#/$defs/User"
|
|
4587
|
+
},
|
|
4588
|
+
"banned_by": {
|
|
4589
|
+
"oneOf": [
|
|
4590
|
+
{
|
|
4591
|
+
"$ref": "#/$defs/Id"
|
|
4592
|
+
},
|
|
4593
|
+
{
|
|
4594
|
+
"type": "null"
|
|
4595
|
+
}
|
|
4596
|
+
]
|
|
4597
|
+
},
|
|
4598
|
+
"created_at": {
|
|
4599
|
+
"$ref": "#/$defs/Timestamp"
|
|
4600
|
+
}
|
|
4601
|
+
}
|
|
4602
|
+
},
|
|
4603
|
+
"GroupBanPage": {
|
|
4604
|
+
"type": "object",
|
|
4605
|
+
"required": [
|
|
4606
|
+
"items",
|
|
4607
|
+
"next_cursor"
|
|
4608
|
+
],
|
|
4609
|
+
"properties": {
|
|
4610
|
+
"items": {
|
|
4611
|
+
"type": "array",
|
|
4612
|
+
"items": {
|
|
4613
|
+
"$ref": "#/$defs/GroupBan"
|
|
4614
|
+
}
|
|
4615
|
+
},
|
|
4616
|
+
"next_cursor": {
|
|
4617
|
+
"$ref": "#/$defs/Cursor"
|
|
4618
|
+
}
|
|
4619
|
+
}
|
|
4620
|
+
},
|
|
4621
|
+
"MentionList": {
|
|
4622
|
+
"type": "object",
|
|
4623
|
+
"required": [
|
|
4624
|
+
"message_ids"
|
|
4625
|
+
],
|
|
4626
|
+
"properties": {
|
|
4627
|
+
"message_ids": {
|
|
4628
|
+
"type": "array",
|
|
4629
|
+
"maxItems": 100,
|
|
4630
|
+
"items": {
|
|
4631
|
+
"$ref": "#/$defs/Id"
|
|
4632
|
+
}
|
|
4633
|
+
}
|
|
4634
|
+
}
|
|
4635
|
+
},
|
|
4183
4636
|
"ApprovalRequestType": {
|
|
4184
4637
|
"type": "string",
|
|
4185
4638
|
"enum": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myronsi/messenger-api",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.41.next.147",
|
|
4
4
|
"description": "API contract of the Messenger backend: OpenAPI document, WebSocket event schemas and generated TypeScript types",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|