@myronsi/messenger-api 2.1.0-alpha.30 → 2.1.0-alpha.31

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/dist/schema.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.30. Do not edit. */
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.31. Do not edit. */
2
2
  export interface paths {
3
3
  "/meta": {
4
4
  parameters: {
@@ -2151,6 +2151,289 @@ export interface paths {
2151
2151
  patch?: never;
2152
2152
  trace?: never;
2153
2153
  };
2154
+ "/emoji/packs": {
2155
+ parameters: {
2156
+ query?: never;
2157
+ header?: {
2158
+ /** @description Version of the client app, for logs and the per-client metric. */
2159
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
2160
+ /** @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`). */
2161
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
2162
+ };
2163
+ path?: never;
2164
+ cookie?: never;
2165
+ };
2166
+ /**
2167
+ * The custom emoji the user can use
2168
+ * @description The user's own packs, the packs they added, and the group emoji of every group they are in (`chat_id`
2169
+ * set). Each pack lists its emoji in order. At most 100 packs.
2170
+ */
2171
+ get: operations["listEmojiPacks"];
2172
+ put?: never;
2173
+ /**
2174
+ * Create an emoji pack
2175
+ * @description A new, empty pack owned by the user. Its `slug` is the share link (`/emoji/links/{slug}`).
2176
+ */
2177
+ post: operations["createEmojiPack"];
2178
+ delete?: never;
2179
+ options?: never;
2180
+ head?: never;
2181
+ patch?: never;
2182
+ trace?: never;
2183
+ };
2184
+ "/emoji/packs/{pack_id}": {
2185
+ parameters: {
2186
+ query?: never;
2187
+ header?: {
2188
+ /** @description Version of the client app, for logs and the per-client metric. */
2189
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
2190
+ /** @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`). */
2191
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
2192
+ };
2193
+ path: {
2194
+ pack_id: components["parameters"]["EmojiPackId"];
2195
+ };
2196
+ cookie?: never;
2197
+ };
2198
+ /**
2199
+ * An emoji pack
2200
+ * @description The user's own pack, a pack they added, or the group emoji of a group they are in (`404` otherwise, so
2201
+ * packs cannot be found by guessing IDs). Open other packs with `GET /emoji/links/{slug}`.
2202
+ */
2203
+ get: operations["getEmojiPack"];
2204
+ put?: never;
2205
+ post?: never;
2206
+ /**
2207
+ * Delete an emoji pack
2208
+ * @description Only the owner. Emoji already sent from it turn into their `:shortcode:` text in clients.
2209
+ */
2210
+ delete: operations["deleteEmojiPack"];
2211
+ options?: never;
2212
+ head?: never;
2213
+ /**
2214
+ * Rename an emoji pack
2215
+ * @description Only the owner (`403` otherwise). Group emoji take the group's name and cannot be renamed.
2216
+ */
2217
+ patch: operations["updateEmojiPack"];
2218
+ trace?: never;
2219
+ };
2220
+ "/emoji/packs/{pack_id}/installation": {
2221
+ parameters: {
2222
+ query?: never;
2223
+ header?: {
2224
+ /** @description Version of the client app, for logs and the per-client metric. */
2225
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
2226
+ /** @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`). */
2227
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
2228
+ };
2229
+ path: {
2230
+ pack_id: components["parameters"]["EmojiPackId"];
2231
+ };
2232
+ cookie?: never;
2233
+ };
2234
+ get?: never;
2235
+ /**
2236
+ * Add an emoji pack
2237
+ * @description Lets the user use the pack's emoji. A pack of another user is found by its link first.
2238
+ */
2239
+ put: operations["addEmojiPack"];
2240
+ post?: never;
2241
+ /** Remove an added emoji pack */
2242
+ delete: operations["removeEmojiPack"];
2243
+ options?: never;
2244
+ head?: never;
2245
+ patch?: never;
2246
+ trace?: never;
2247
+ };
2248
+ "/emoji/packs/{pack_id}/emoji": {
2249
+ parameters: {
2250
+ query?: never;
2251
+ header?: {
2252
+ /** @description Version of the client app, for logs and the per-client metric. */
2253
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
2254
+ /** @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`). */
2255
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
2256
+ };
2257
+ path: {
2258
+ pack_id: components["parameters"]["EmojiPackId"];
2259
+ };
2260
+ cookie?: never;
2261
+ };
2262
+ get?: never;
2263
+ put?: never;
2264
+ /**
2265
+ * Add an emoji to a pack
2266
+ * @description The owner of a pack, or the owner and admins of a group for its group emoji. Upload the image with
2267
+ * `POST /attachments` (`purpose: emoji`) first. At most 200 emoji per pack and 50 per group (`409`), and a
2268
+ * shortcode once per pack (`409`).
2269
+ */
2270
+ post: operations["addCustomEmoji"];
2271
+ delete?: never;
2272
+ options?: never;
2273
+ head?: never;
2274
+ patch?: never;
2275
+ trace?: never;
2276
+ };
2277
+ "/emoji/packs/{pack_id}/emoji/{emoji_id}": {
2278
+ parameters: {
2279
+ query?: never;
2280
+ header?: {
2281
+ /** @description Version of the client app, for logs and the per-client metric. */
2282
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
2283
+ /** @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`). */
2284
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
2285
+ };
2286
+ path: {
2287
+ pack_id: components["parameters"]["EmojiPackId"];
2288
+ emoji_id: components["parameters"]["EmojiId"];
2289
+ };
2290
+ cookie?: never;
2291
+ };
2292
+ get?: never;
2293
+ put?: never;
2294
+ post?: never;
2295
+ /** Remove an emoji from a pack */
2296
+ delete: operations["deleteCustomEmoji"];
2297
+ options?: never;
2298
+ head?: never;
2299
+ /** Change an emoji's shortcode */
2300
+ patch: operations["updateCustomEmoji"];
2301
+ trace?: never;
2302
+ };
2303
+ "/emoji/packs/{pack_id}/report": {
2304
+ parameters: {
2305
+ query?: never;
2306
+ header?: {
2307
+ /** @description Version of the client app, for logs and the per-client metric. */
2308
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
2309
+ /** @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`). */
2310
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
2311
+ };
2312
+ path: {
2313
+ pack_id: components["parameters"]["EmojiPackId"];
2314
+ };
2315
+ cookie?: never;
2316
+ };
2317
+ get?: never;
2318
+ put?: never;
2319
+ /**
2320
+ * Report an emoji pack
2321
+ * @description Packs with enough reports are hidden. At most 20 reports per user and day (`429`).
2322
+ */
2323
+ post: operations["reportEmojiPack"];
2324
+ delete?: never;
2325
+ options?: never;
2326
+ head?: never;
2327
+ patch?: never;
2328
+ trace?: never;
2329
+ };
2330
+ "/emoji/links/{slug}": {
2331
+ parameters: {
2332
+ query?: never;
2333
+ header?: {
2334
+ /** @description Version of the client app, for logs and the per-client metric. */
2335
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
2336
+ /** @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`). */
2337
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
2338
+ };
2339
+ path: {
2340
+ slug: components["parameters"]["StickerPackSlug"];
2341
+ };
2342
+ cookie?: never;
2343
+ };
2344
+ /** An emoji pack by its share link */
2345
+ get: operations["getEmojiPackByLink"];
2346
+ put?: never;
2347
+ post?: never;
2348
+ delete?: never;
2349
+ options?: never;
2350
+ head?: never;
2351
+ patch?: never;
2352
+ trace?: never;
2353
+ };
2354
+ "/emoji/items/{emoji_id}": {
2355
+ parameters: {
2356
+ query?: never;
2357
+ header?: {
2358
+ /** @description Version of the client app, for logs and the per-client metric. */
2359
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
2360
+ /** @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`). */
2361
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
2362
+ };
2363
+ path: {
2364
+ emoji_id: components["parameters"]["EmojiId"];
2365
+ };
2366
+ cookie?: never;
2367
+ };
2368
+ /**
2369
+ * One custom emoji
2370
+ * @description Any signed-in user. For tooltips of `c:<id>` reactions and to open the pack (`pack_slug`).
2371
+ */
2372
+ get: operations["getCustomEmoji"];
2373
+ put?: never;
2374
+ post?: never;
2375
+ delete?: never;
2376
+ options?: never;
2377
+ head?: never;
2378
+ patch?: never;
2379
+ trace?: never;
2380
+ };
2381
+ "/emoji/items/{emoji_id}/image": {
2382
+ parameters: {
2383
+ query?: never;
2384
+ header?: {
2385
+ /** @description Version of the client app, for logs and the per-client metric. */
2386
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
2387
+ /** @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`). */
2388
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
2389
+ };
2390
+ path: {
2391
+ emoji_id: components["parameters"]["EmojiId"];
2392
+ };
2393
+ cookie?: never;
2394
+ };
2395
+ /**
2396
+ * The image of a custom emoji
2397
+ * @description Any signed-in user; a PNG of 128 x 128 px or a GIF. Cached as immutable. `404` once the emoji or its pack
2398
+ * is deleted: clients then show the token's `:shortcode:` text.
2399
+ */
2400
+ get: operations["getCustomEmojiImage"];
2401
+ put?: never;
2402
+ post?: never;
2403
+ delete?: never;
2404
+ options?: never;
2405
+ head?: never;
2406
+ patch?: never;
2407
+ trace?: never;
2408
+ };
2409
+ "/groups/{chat_id}/emoji": {
2410
+ parameters: {
2411
+ query?: never;
2412
+ header?: {
2413
+ /** @description Version of the client app, for logs and the per-client metric. */
2414
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
2415
+ /** @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`). */
2416
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
2417
+ };
2418
+ path: {
2419
+ chat_id: components["parameters"]["ChatId"];
2420
+ };
2421
+ cookie?: never;
2422
+ };
2423
+ /**
2424
+ * The group's emoji
2425
+ * @description Members only. Created empty on first use; owner and admins add and remove emoji through
2426
+ * `/emoji/packs/{pack_id}/emoji` (`can_edit`). Members can use them in any chat while they are members.
2427
+ */
2428
+ get: operations["getGroupEmoji"];
2429
+ put?: never;
2430
+ post?: never;
2431
+ delete?: never;
2432
+ options?: never;
2433
+ head?: never;
2434
+ patch?: never;
2435
+ trace?: never;
2436
+ };
2154
2437
  "/stickers/recent": {
2155
2438
  parameters: {
2156
2439
  query?: never;
@@ -3501,7 +3784,12 @@ export interface components {
3501
3784
  new_password: string;
3502
3785
  };
3503
3786
  UpdateMeRequest: {
3787
+ /**
3788
+ * @description At most 64 characters, counting each custom emoji token (`<:shortcode:id>`) as its `:shortcode:` text.
3789
+ * Tokens the user may not use become `:shortcode:`.
3790
+ */
3504
3791
  display_name?: string;
3792
+ /** @description At most 500 characters, counting custom emoji tokens as their `:shortcode:` text. */
3505
3793
  bio?: string | null;
3506
3794
  /** @description Free text; `null` or an empty string removes it. */
3507
3795
  pronouns?: string | null;
@@ -3730,9 +4018,13 @@ export interface components {
3730
4018
  *
3731
4019
  * `profile_background`: an image (10 MB), an animated GIF (15 MB) or a video of at most 15 s (15 MB). Use it
3732
4020
  * with `PUT /me/background` or `PUT /groups/{chat_id}/background`.
4021
+ *
4022
+ * `emoji`: a PNG, JPEG, still WebP or GIF of at most 8 MB. The server scales it into 128 x 128 px (a GIF frame
4023
+ * by frame) and refuses it with `413` when the result is still over 256 KB. Use it with
4024
+ * `POST /emoji/packs/{pack_id}/emoji`.
3733
4025
  * @enum {string}
3734
4026
  */
3735
- UploadPurpose: "message" | "avatar" | "sticker" | "profile_music" | "profile_background";
4027
+ UploadPurpose: "message" | "avatar" | "sticker" | "profile_music" | "profile_background" | "emoji";
3736
4028
  UploadAttachmentRequest: {
3737
4029
  /** Format: binary */
3738
4030
  file: string;
@@ -3882,6 +4174,52 @@ export interface components {
3882
4174
  ReorderStickersRequest: {
3883
4175
  sticker_ids: components["schemas"]["Id"][];
3884
4176
  };
4177
+ /**
4178
+ * @description A custom emoji. In text it is written as the token `<:shortcode:id>` (`<a:shortcode:id>` when animated) and
4179
+ * drawn with `GET /emoji/items/{id}/image`; in reactions as `c:<id>`.
4180
+ */
4181
+ CustomEmoji: {
4182
+ id: components["schemas"]["Id"];
4183
+ pack_id: components["schemas"]["Id"];
4184
+ shortcode: components["schemas"]["EmojiShortcode"];
4185
+ is_animated: boolean;
4186
+ /** @description Same-origin path of the image (`/api/v2/emoji/items/{id}/image`). */
4187
+ url: string;
4188
+ /** @description The share link of the emoji's pack; missing for group emoji. */
4189
+ pack_slug?: components["schemas"]["StickerPackSlug"];
4190
+ };
4191
+ EmojiShortcode: string;
4192
+ EmojiPack: {
4193
+ id: components["schemas"]["Id"];
4194
+ title: string;
4195
+ /** @description Grows whenever the title or the emoji of the pack change. */
4196
+ version: number;
4197
+ /** @description The share link; missing for group emoji. */
4198
+ slug?: components["schemas"]["StickerPackSlug"];
4199
+ /** @description Set for the group emoji of that group. */
4200
+ chat_id?: components["schemas"]["Id"];
4201
+ owner_id?: components["schemas"]["Id"];
4202
+ is_mine: boolean;
4203
+ is_installed: boolean;
4204
+ /** @description Hidden after reports; only the owner sees and uses it. */
4205
+ is_hidden: boolean;
4206
+ /** @description The user may add, rename and remove emoji (owner of the pack, or owner or admin of the group). */
4207
+ can_edit: boolean;
4208
+ emoji: components["schemas"]["CustomEmoji"][];
4209
+ };
4210
+ EmojiPackList: {
4211
+ items: components["schemas"]["EmojiPack"][];
4212
+ };
4213
+ EmojiPackTitleRequest: {
4214
+ title: string;
4215
+ };
4216
+ AddCustomEmojiRequest: {
4217
+ attachment_id: components["schemas"]["AttachmentRef"];
4218
+ shortcode: components["schemas"]["EmojiShortcode"];
4219
+ };
4220
+ UpdateCustomEmojiRequest: {
4221
+ shortcode: components["schemas"]["EmojiShortcode"];
4222
+ };
3885
4223
  /** @enum {string} */
3886
4224
  StickerPackReportReason: "spam" | "violence" | "sexual" | "hate" | "copyright" | "other";
3887
4225
  ReportStickerPackRequest: {
@@ -3891,6 +4229,7 @@ export interface components {
3891
4229
  items: components["schemas"]["Sticker"][];
3892
4230
  };
3893
4231
  Reaction: {
4232
+ /** @description A Unicode emoji, or `c:<id>` for a custom emoji (`GET /emoji/items/{id}/image`). */
3894
4233
  emoji: string;
3895
4234
  user_id: components["schemas"]["Id"];
3896
4235
  };
@@ -4606,6 +4945,8 @@ export interface components {
4606
4945
  AttachmentId: components["schemas"]["AttachmentRef"];
4607
4946
  StickerPackId: components["schemas"]["Id"];
4608
4947
  StickerId: components["schemas"]["Id"];
4948
+ EmojiPackId: components["schemas"]["Id"];
4949
+ EmojiId: components["schemas"]["Id"];
4609
4950
  StickerPackSlug: components["schemas"]["StickerPackSlug"];
4610
4951
  SessionId: string;
4611
4952
  CallId: components["schemas"]["Id"];
@@ -8281,6 +8622,497 @@ export interface operations {
8281
8622
  426: components["responses"]["ClientOutdated"];
8282
8623
  };
8283
8624
  };
8625
+ listEmojiPacks: {
8626
+ parameters: {
8627
+ query?: never;
8628
+ header?: {
8629
+ /** @description Version of the client app, for logs and the per-client metric. */
8630
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
8631
+ /** @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`). */
8632
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
8633
+ };
8634
+ path?: never;
8635
+ cookie?: never;
8636
+ };
8637
+ requestBody?: never;
8638
+ responses: {
8639
+ /** @description The packs */
8640
+ 200: {
8641
+ headers: {
8642
+ [name: string]: unknown;
8643
+ };
8644
+ content: {
8645
+ "application/json": components["schemas"]["EmojiPackList"];
8646
+ };
8647
+ };
8648
+ 400: components["responses"]["BadRequest"];
8649
+ 401: components["responses"]["Unauthorized"];
8650
+ 426: components["responses"]["ClientOutdated"];
8651
+ };
8652
+ };
8653
+ createEmojiPack: {
8654
+ parameters: {
8655
+ query?: never;
8656
+ header?: {
8657
+ /** @description Version of the client app, for logs and the per-client metric. */
8658
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
8659
+ /** @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`). */
8660
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
8661
+ };
8662
+ path?: never;
8663
+ cookie?: never;
8664
+ };
8665
+ requestBody: {
8666
+ content: {
8667
+ "application/json": components["schemas"]["EmojiPackTitleRequest"];
8668
+ };
8669
+ };
8670
+ responses: {
8671
+ /** @description The new pack */
8672
+ 201: {
8673
+ headers: {
8674
+ [name: string]: unknown;
8675
+ };
8676
+ content: {
8677
+ "application/json": components["schemas"]["EmojiPack"];
8678
+ };
8679
+ };
8680
+ 400: components["responses"]["BadRequest"];
8681
+ 401: components["responses"]["Unauthorized"];
8682
+ 422: components["responses"]["ValidationFailed"];
8683
+ 426: components["responses"]["ClientOutdated"];
8684
+ };
8685
+ };
8686
+ getEmojiPack: {
8687
+ parameters: {
8688
+ query?: never;
8689
+ header?: {
8690
+ /** @description Version of the client app, for logs and the per-client metric. */
8691
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
8692
+ /** @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`). */
8693
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
8694
+ };
8695
+ path: {
8696
+ pack_id: components["parameters"]["EmojiPackId"];
8697
+ };
8698
+ cookie?: never;
8699
+ };
8700
+ requestBody?: never;
8701
+ responses: {
8702
+ /** @description The pack */
8703
+ 200: {
8704
+ headers: {
8705
+ [name: string]: unknown;
8706
+ };
8707
+ content: {
8708
+ "application/json": components["schemas"]["EmojiPack"];
8709
+ };
8710
+ };
8711
+ 400: components["responses"]["BadRequest"];
8712
+ 401: components["responses"]["Unauthorized"];
8713
+ 404: components["responses"]["NotFound"];
8714
+ 426: components["responses"]["ClientOutdated"];
8715
+ };
8716
+ };
8717
+ deleteEmojiPack: {
8718
+ parameters: {
8719
+ query?: never;
8720
+ header?: {
8721
+ /** @description Version of the client app, for logs and the per-client metric. */
8722
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
8723
+ /** @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`). */
8724
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
8725
+ };
8726
+ path: {
8727
+ pack_id: components["parameters"]["EmojiPackId"];
8728
+ };
8729
+ cookie?: never;
8730
+ };
8731
+ requestBody?: never;
8732
+ responses: {
8733
+ /** @description Deleted */
8734
+ 204: {
8735
+ headers: {
8736
+ [name: string]: unknown;
8737
+ };
8738
+ content?: never;
8739
+ };
8740
+ 400: components["responses"]["BadRequest"];
8741
+ 401: components["responses"]["Unauthorized"];
8742
+ 403: components["responses"]["Forbidden"];
8743
+ 404: components["responses"]["NotFound"];
8744
+ 426: components["responses"]["ClientOutdated"];
8745
+ };
8746
+ };
8747
+ updateEmojiPack: {
8748
+ parameters: {
8749
+ query?: never;
8750
+ header?: {
8751
+ /** @description Version of the client app, for logs and the per-client metric. */
8752
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
8753
+ /** @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`). */
8754
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
8755
+ };
8756
+ path: {
8757
+ pack_id: components["parameters"]["EmojiPackId"];
8758
+ };
8759
+ cookie?: never;
8760
+ };
8761
+ requestBody: {
8762
+ content: {
8763
+ "application/json": components["schemas"]["EmojiPackTitleRequest"];
8764
+ };
8765
+ };
8766
+ responses: {
8767
+ /** @description The pack */
8768
+ 200: {
8769
+ headers: {
8770
+ [name: string]: unknown;
8771
+ };
8772
+ content: {
8773
+ "application/json": components["schemas"]["EmojiPack"];
8774
+ };
8775
+ };
8776
+ 400: components["responses"]["BadRequest"];
8777
+ 401: components["responses"]["Unauthorized"];
8778
+ 403: components["responses"]["Forbidden"];
8779
+ 404: components["responses"]["NotFound"];
8780
+ 422: components["responses"]["ValidationFailed"];
8781
+ 426: components["responses"]["ClientOutdated"];
8782
+ };
8783
+ };
8784
+ addEmojiPack: {
8785
+ parameters: {
8786
+ query?: never;
8787
+ header?: {
8788
+ /** @description Version of the client app, for logs and the per-client metric. */
8789
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
8790
+ /** @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`). */
8791
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
8792
+ };
8793
+ path: {
8794
+ pack_id: components["parameters"]["EmojiPackId"];
8795
+ };
8796
+ cookie?: never;
8797
+ };
8798
+ requestBody?: never;
8799
+ responses: {
8800
+ /** @description Added */
8801
+ 204: {
8802
+ headers: {
8803
+ [name: string]: unknown;
8804
+ };
8805
+ content?: never;
8806
+ };
8807
+ 400: components["responses"]["BadRequest"];
8808
+ 401: components["responses"]["Unauthorized"];
8809
+ 404: components["responses"]["NotFound"];
8810
+ 426: components["responses"]["ClientOutdated"];
8811
+ };
8812
+ };
8813
+ removeEmojiPack: {
8814
+ parameters: {
8815
+ query?: never;
8816
+ header?: {
8817
+ /** @description Version of the client app, for logs and the per-client metric. */
8818
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
8819
+ /** @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`). */
8820
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
8821
+ };
8822
+ path: {
8823
+ pack_id: components["parameters"]["EmojiPackId"];
8824
+ };
8825
+ cookie?: never;
8826
+ };
8827
+ requestBody?: never;
8828
+ responses: {
8829
+ /** @description Removed */
8830
+ 204: {
8831
+ headers: {
8832
+ [name: string]: unknown;
8833
+ };
8834
+ content?: never;
8835
+ };
8836
+ 400: components["responses"]["BadRequest"];
8837
+ 401: components["responses"]["Unauthorized"];
8838
+ 404: components["responses"]["NotFound"];
8839
+ 426: components["responses"]["ClientOutdated"];
8840
+ };
8841
+ };
8842
+ addCustomEmoji: {
8843
+ parameters: {
8844
+ query?: never;
8845
+ header?: {
8846
+ /** @description Version of the client app, for logs and the per-client metric. */
8847
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
8848
+ /** @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`). */
8849
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
8850
+ };
8851
+ path: {
8852
+ pack_id: components["parameters"]["EmojiPackId"];
8853
+ };
8854
+ cookie?: never;
8855
+ };
8856
+ requestBody: {
8857
+ content: {
8858
+ "application/json": components["schemas"]["AddCustomEmojiRequest"];
8859
+ };
8860
+ };
8861
+ responses: {
8862
+ /** @description The emoji */
8863
+ 201: {
8864
+ headers: {
8865
+ [name: string]: unknown;
8866
+ };
8867
+ content: {
8868
+ "application/json": components["schemas"]["CustomEmoji"];
8869
+ };
8870
+ };
8871
+ 400: components["responses"]["BadRequest"];
8872
+ 401: components["responses"]["Unauthorized"];
8873
+ 403: components["responses"]["Forbidden"];
8874
+ 404: components["responses"]["NotFound"];
8875
+ 409: components["responses"]["Conflict"];
8876
+ 422: components["responses"]["ValidationFailed"];
8877
+ 426: components["responses"]["ClientOutdated"];
8878
+ };
8879
+ };
8880
+ deleteCustomEmoji: {
8881
+ parameters: {
8882
+ query?: never;
8883
+ header?: {
8884
+ /** @description Version of the client app, for logs and the per-client metric. */
8885
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
8886
+ /** @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`). */
8887
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
8888
+ };
8889
+ path: {
8890
+ pack_id: components["parameters"]["EmojiPackId"];
8891
+ emoji_id: components["parameters"]["EmojiId"];
8892
+ };
8893
+ cookie?: never;
8894
+ };
8895
+ requestBody?: never;
8896
+ responses: {
8897
+ /** @description Removed */
8898
+ 204: {
8899
+ headers: {
8900
+ [name: string]: unknown;
8901
+ };
8902
+ content?: never;
8903
+ };
8904
+ 400: components["responses"]["BadRequest"];
8905
+ 401: components["responses"]["Unauthorized"];
8906
+ 403: components["responses"]["Forbidden"];
8907
+ 404: components["responses"]["NotFound"];
8908
+ 426: components["responses"]["ClientOutdated"];
8909
+ };
8910
+ };
8911
+ updateCustomEmoji: {
8912
+ parameters: {
8913
+ query?: never;
8914
+ header?: {
8915
+ /** @description Version of the client app, for logs and the per-client metric. */
8916
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
8917
+ /** @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`). */
8918
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
8919
+ };
8920
+ path: {
8921
+ pack_id: components["parameters"]["EmojiPackId"];
8922
+ emoji_id: components["parameters"]["EmojiId"];
8923
+ };
8924
+ cookie?: never;
8925
+ };
8926
+ requestBody: {
8927
+ content: {
8928
+ "application/json": components["schemas"]["UpdateCustomEmojiRequest"];
8929
+ };
8930
+ };
8931
+ responses: {
8932
+ /** @description The emoji */
8933
+ 200: {
8934
+ headers: {
8935
+ [name: string]: unknown;
8936
+ };
8937
+ content: {
8938
+ "application/json": components["schemas"]["CustomEmoji"];
8939
+ };
8940
+ };
8941
+ 400: components["responses"]["BadRequest"];
8942
+ 401: components["responses"]["Unauthorized"];
8943
+ 403: components["responses"]["Forbidden"];
8944
+ 404: components["responses"]["NotFound"];
8945
+ 409: components["responses"]["Conflict"];
8946
+ 422: components["responses"]["ValidationFailed"];
8947
+ 426: components["responses"]["ClientOutdated"];
8948
+ };
8949
+ };
8950
+ reportEmojiPack: {
8951
+ parameters: {
8952
+ query?: never;
8953
+ header?: {
8954
+ /** @description Version of the client app, for logs and the per-client metric. */
8955
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
8956
+ /** @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`). */
8957
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
8958
+ };
8959
+ path: {
8960
+ pack_id: components["parameters"]["EmojiPackId"];
8961
+ };
8962
+ cookie?: never;
8963
+ };
8964
+ requestBody: {
8965
+ content: {
8966
+ "application/json": components["schemas"]["ReportStickerPackRequest"];
8967
+ };
8968
+ };
8969
+ responses: {
8970
+ /** @description Reported */
8971
+ 204: {
8972
+ headers: {
8973
+ [name: string]: unknown;
8974
+ };
8975
+ content?: never;
8976
+ };
8977
+ 400: components["responses"]["BadRequest"];
8978
+ 401: components["responses"]["Unauthorized"];
8979
+ 403: components["responses"]["Forbidden"];
8980
+ 404: components["responses"]["NotFound"];
8981
+ 426: components["responses"]["ClientOutdated"];
8982
+ 429: components["responses"]["TooManyRequests"];
8983
+ };
8984
+ };
8985
+ getEmojiPackByLink: {
8986
+ parameters: {
8987
+ query?: never;
8988
+ header?: {
8989
+ /** @description Version of the client app, for logs and the per-client metric. */
8990
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
8991
+ /** @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`). */
8992
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
8993
+ };
8994
+ path: {
8995
+ slug: components["parameters"]["StickerPackSlug"];
8996
+ };
8997
+ cookie?: never;
8998
+ };
8999
+ requestBody?: never;
9000
+ responses: {
9001
+ /** @description The pack */
9002
+ 200: {
9003
+ headers: {
9004
+ [name: string]: unknown;
9005
+ };
9006
+ content: {
9007
+ "application/json": components["schemas"]["EmojiPack"];
9008
+ };
9009
+ };
9010
+ 400: components["responses"]["BadRequest"];
9011
+ 401: components["responses"]["Unauthorized"];
9012
+ 404: components["responses"]["NotFound"];
9013
+ 426: components["responses"]["ClientOutdated"];
9014
+ };
9015
+ };
9016
+ getCustomEmoji: {
9017
+ parameters: {
9018
+ query?: never;
9019
+ header?: {
9020
+ /** @description Version of the client app, for logs and the per-client metric. */
9021
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
9022
+ /** @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`). */
9023
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
9024
+ };
9025
+ path: {
9026
+ emoji_id: components["parameters"]["EmojiId"];
9027
+ };
9028
+ cookie?: never;
9029
+ };
9030
+ requestBody?: never;
9031
+ responses: {
9032
+ /** @description The emoji */
9033
+ 200: {
9034
+ headers: {
9035
+ [name: string]: unknown;
9036
+ };
9037
+ content: {
9038
+ "application/json": components["schemas"]["CustomEmoji"];
9039
+ };
9040
+ };
9041
+ 400: components["responses"]["BadRequest"];
9042
+ 401: components["responses"]["Unauthorized"];
9043
+ 404: components["responses"]["NotFound"];
9044
+ 426: components["responses"]["ClientOutdated"];
9045
+ };
9046
+ };
9047
+ getCustomEmojiImage: {
9048
+ parameters: {
9049
+ query?: never;
9050
+ header?: {
9051
+ /** @description Version of the client app, for logs and the per-client metric. */
9052
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
9053
+ /** @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`). */
9054
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
9055
+ };
9056
+ path: {
9057
+ emoji_id: components["parameters"]["EmojiId"];
9058
+ };
9059
+ cookie?: never;
9060
+ };
9061
+ requestBody?: never;
9062
+ responses: {
9063
+ /** @description Image */
9064
+ 200: {
9065
+ headers: {
9066
+ [name: string]: unknown;
9067
+ };
9068
+ content: {
9069
+ "image/*": string;
9070
+ };
9071
+ };
9072
+ /** @description Redirect to a short-lived signed URL in object storage */
9073
+ 302: {
9074
+ headers: {
9075
+ [name: string]: unknown;
9076
+ };
9077
+ content?: never;
9078
+ };
9079
+ 400: components["responses"]["BadRequest"];
9080
+ 401: components["responses"]["Unauthorized"];
9081
+ 404: components["responses"]["NotFound"];
9082
+ 426: components["responses"]["ClientOutdated"];
9083
+ };
9084
+ };
9085
+ getGroupEmoji: {
9086
+ parameters: {
9087
+ query?: never;
9088
+ header?: {
9089
+ /** @description Version of the client app, for logs and the per-client metric. */
9090
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
9091
+ /** @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`). */
9092
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
9093
+ };
9094
+ path: {
9095
+ chat_id: components["parameters"]["ChatId"];
9096
+ };
9097
+ cookie?: never;
9098
+ };
9099
+ requestBody?: never;
9100
+ responses: {
9101
+ /** @description The group's pack */
9102
+ 200: {
9103
+ headers: {
9104
+ [name: string]: unknown;
9105
+ };
9106
+ content: {
9107
+ "application/json": components["schemas"]["EmojiPack"];
9108
+ };
9109
+ };
9110
+ 400: components["responses"]["BadRequest"];
9111
+ 401: components["responses"]["Unauthorized"];
9112
+ 404: components["responses"]["NotFound"];
9113
+ 426: components["responses"]["ClientOutdated"];
9114
+ };
9115
+ };
8284
9116
  listRecentStickers: {
8285
9117
  parameters: {
8286
9118
  query?: never;