@getmikan/sdk 0.5.201-rc.12 → 0.5.201-rc.13

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.
Files changed (2) hide show
  1. package/dist/schema.d.ts +2402 -321
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -227,6 +227,142 @@ export interface paths {
227
227
  patch?: never;
228
228
  trace?: never;
229
229
  };
230
+ "/auth/github/callback": {
231
+ parameters: {
232
+ query?: never;
233
+ header?: never;
234
+ path?: never;
235
+ cookie?: never;
236
+ };
237
+ /** Возврат с GitHub */
238
+ get: operations["github-callback"];
239
+ put?: never;
240
+ post?: never;
241
+ delete?: never;
242
+ options?: never;
243
+ head?: never;
244
+ patch?: never;
245
+ trace?: never;
246
+ };
247
+ "/auth/identities": {
248
+ parameters: {
249
+ query?: never;
250
+ header?: never;
251
+ path?: never;
252
+ cookie?: never;
253
+ };
254
+ /** Аккаунты для входа (GitHub, Telegram) */
255
+ get: operations["list-identities"];
256
+ put?: never;
257
+ post?: never;
258
+ delete?: never;
259
+ options?: never;
260
+ head?: never;
261
+ patch?: never;
262
+ trace?: never;
263
+ };
264
+ "/auth/identities/github/begin": {
265
+ parameters: {
266
+ query?: never;
267
+ header?: never;
268
+ path?: never;
269
+ cookie?: never;
270
+ };
271
+ get?: never;
272
+ put?: never;
273
+ /** Начать привязку GitHub */
274
+ post: operations["github-link-begin"];
275
+ delete?: never;
276
+ options?: never;
277
+ head?: never;
278
+ patch?: never;
279
+ trace?: never;
280
+ };
281
+ "/auth/identities/telegram": {
282
+ parameters: {
283
+ query?: never;
284
+ header?: never;
285
+ path?: never;
286
+ cookie?: never;
287
+ };
288
+ get?: never;
289
+ put?: never;
290
+ /** Привязать Telegram */
291
+ post: operations["link-telegram"];
292
+ delete?: never;
293
+ options?: never;
294
+ head?: never;
295
+ patch?: never;
296
+ trace?: never;
297
+ };
298
+ "/auth/identities/telegram/begin": {
299
+ parameters: {
300
+ query?: never;
301
+ header?: never;
302
+ path?: never;
303
+ cookie?: never;
304
+ };
305
+ get?: never;
306
+ put?: never;
307
+ /** Начать привязку Telegram */
308
+ post: operations["telegram-link-begin"];
309
+ delete?: never;
310
+ options?: never;
311
+ head?: never;
312
+ patch?: never;
313
+ trace?: never;
314
+ };
315
+ "/auth/identities/{id}": {
316
+ parameters: {
317
+ query?: never;
318
+ header?: never;
319
+ path?: never;
320
+ cookie?: never;
321
+ };
322
+ get?: never;
323
+ put?: never;
324
+ post?: never;
325
+ /** Отвязать аккаунт */
326
+ delete: operations["delete-identity"];
327
+ options?: never;
328
+ head?: never;
329
+ patch?: never;
330
+ trace?: never;
331
+ };
332
+ "/auth/identity-providers": {
333
+ parameters: {
334
+ query?: never;
335
+ header?: never;
336
+ path?: never;
337
+ cookie?: never;
338
+ };
339
+ /** Настройка входа через GitHub и Telegram */
340
+ get: operations["identity-providers"];
341
+ put?: never;
342
+ post?: never;
343
+ delete?: never;
344
+ options?: never;
345
+ head?: never;
346
+ patch?: never;
347
+ trace?: never;
348
+ };
349
+ "/auth/identity-providers/github": {
350
+ parameters: {
351
+ query?: never;
352
+ header?: never;
353
+ path?: never;
354
+ cookie?: never;
355
+ };
356
+ get?: never;
357
+ /** OAuth-приложение GitHub */
358
+ put: operations["set-github-app"];
359
+ post?: never;
360
+ delete?: never;
361
+ options?: never;
362
+ head?: never;
363
+ patch?: never;
364
+ trace?: never;
365
+ };
230
366
  "/auth/login": {
231
367
  parameters: {
232
368
  query?: never;
@@ -244,6 +380,57 @@ export interface paths {
244
380
  patch?: never;
245
381
  trace?: never;
246
382
  };
383
+ "/auth/login/github": {
384
+ parameters: {
385
+ query?: never;
386
+ header?: never;
387
+ path?: never;
388
+ cookie?: never;
389
+ };
390
+ get?: never;
391
+ put?: never;
392
+ /** Вход через GitHub */
393
+ post: operations["github-login"];
394
+ delete?: never;
395
+ options?: never;
396
+ head?: never;
397
+ patch?: never;
398
+ trace?: never;
399
+ };
400
+ "/auth/login/github/begin": {
401
+ parameters: {
402
+ query?: never;
403
+ header?: never;
404
+ path?: never;
405
+ cookie?: never;
406
+ };
407
+ get?: never;
408
+ put?: never;
409
+ /** Начать вход через GitHub */
410
+ post: operations["github-login-begin"];
411
+ delete?: never;
412
+ options?: never;
413
+ head?: never;
414
+ patch?: never;
415
+ trace?: never;
416
+ };
417
+ "/auth/login/methods": {
418
+ parameters: {
419
+ query?: never;
420
+ header?: never;
421
+ path?: never;
422
+ cookie?: never;
423
+ };
424
+ /** Способы входа */
425
+ get: operations["login-methods"];
426
+ put?: never;
427
+ post?: never;
428
+ delete?: never;
429
+ options?: never;
430
+ head?: never;
431
+ patch?: never;
432
+ trace?: never;
433
+ };
247
434
  "/auth/login/passkey": {
248
435
  parameters: {
249
436
  query?: never;
@@ -278,6 +465,40 @@ export interface paths {
278
465
  patch?: never;
279
466
  trace?: never;
280
467
  };
468
+ "/auth/login/telegram": {
469
+ parameters: {
470
+ query?: never;
471
+ header?: never;
472
+ path?: never;
473
+ cookie?: never;
474
+ };
475
+ get?: never;
476
+ put?: never;
477
+ /** Вход через Telegram */
478
+ post: operations["telegram-login"];
479
+ delete?: never;
480
+ options?: never;
481
+ head?: never;
482
+ patch?: never;
483
+ trace?: never;
484
+ };
485
+ "/auth/login/telegram/begin": {
486
+ parameters: {
487
+ query?: never;
488
+ header?: never;
489
+ path?: never;
490
+ cookie?: never;
491
+ };
492
+ get?: never;
493
+ put?: never;
494
+ /** Начать вход через Telegram */
495
+ post: operations["telegram-login-begin"];
496
+ delete?: never;
497
+ options?: never;
498
+ head?: never;
499
+ patch?: never;
500
+ trace?: never;
501
+ };
281
502
  "/auth/logout": {
282
503
  parameters: {
283
504
  query?: never;
@@ -570,6 +791,59 @@ export interface paths {
570
791
  patch: operations["update-campaign"];
571
792
  trace?: never;
572
793
  };
794
+ "/custom-fields": {
795
+ parameters: {
796
+ query?: never;
797
+ header?: never;
798
+ path?: never;
799
+ cookie?: never;
800
+ };
801
+ /** Свои поля пользователей и нод */
802
+ get: operations["list-custom-fields"];
803
+ put?: never;
804
+ /** Добавить своё поле */
805
+ post: operations["create-custom-field"];
806
+ delete?: never;
807
+ options?: never;
808
+ head?: never;
809
+ patch?: never;
810
+ trace?: never;
811
+ };
812
+ "/custom-fields/order": {
813
+ parameters: {
814
+ query?: never;
815
+ header?: never;
816
+ path?: never;
817
+ cookie?: never;
818
+ };
819
+ get?: never;
820
+ /** Порядок своих полей */
821
+ put: operations["order-custom-fields"];
822
+ post?: never;
823
+ delete?: never;
824
+ options?: never;
825
+ head?: never;
826
+ patch?: never;
827
+ trace?: never;
828
+ };
829
+ "/custom-fields/{id}": {
830
+ parameters: {
831
+ query?: never;
832
+ header?: never;
833
+ path?: never;
834
+ cookie?: never;
835
+ };
836
+ get?: never;
837
+ put?: never;
838
+ post?: never;
839
+ /** Удалить своё поле вместе с его значениями */
840
+ delete: operations["delete-custom-field"];
841
+ options?: never;
842
+ head?: never;
843
+ /** Переименовать своё поле */
844
+ patch: operations["update-custom-field"];
845
+ trace?: never;
846
+ };
573
847
  "/exit-dns": {
574
848
  parameters: {
575
849
  query?: never;
@@ -665,49 +939,42 @@ export interface paths {
665
939
  patch: operations["update-folder"];
666
940
  trace?: never;
667
941
  };
668
- "/import": {
942
+ "/groups": {
669
943
  parameters: {
670
944
  query?: never;
671
945
  header?: never;
672
946
  path?: never;
673
947
  cookie?: never;
674
948
  };
675
- get?: never;
949
+ /** Группы клиентов */
950
+ get: operations["list-groups"];
676
951
  put?: never;
677
- /**
678
- * Перенести пользователей из другой панели
679
- * @description Импорт идёт в фоне: ответ 202 сразу, ход и итог — в GET /api/v1/import/status.
680
- */
681
- post: operations["import-run"];
682
- /**
683
- * Остановить импорт
684
- * @description Уже созданные пользователи остаются, их список — в отчёте.
685
- */
686
- delete: operations["import-cancel"];
952
+ /** Создать группу клиентов */
953
+ post: operations["create-group"];
954
+ delete?: never;
687
955
  options?: never;
688
956
  head?: never;
689
957
  patch?: never;
690
958
  trace?: never;
691
959
  };
692
- "/import/legacy": {
960
+ "/groups/order": {
693
961
  parameters: {
694
962
  query?: never;
695
963
  header?: never;
696
964
  path?: never;
697
965
  cookie?: never;
698
966
  };
699
- /** Старые ссылки подписки */
700
- get: operations["get-legacy-links"];
701
- put?: never;
967
+ get?: never;
968
+ /** Порядок групп клиентов */
969
+ put: operations["order-groups"];
702
970
  post?: never;
703
971
  delete?: never;
704
972
  options?: never;
705
973
  head?: never;
706
- /** Настроить старые ссылки подписки */
707
- patch: operations["update-legacy-links"];
974
+ patch?: never;
708
975
  trace?: never;
709
976
  };
710
- "/import/preview": {
977
+ "/groups/{id}": {
711
978
  parameters: {
712
979
  query?: never;
713
980
  header?: never;
@@ -716,35 +983,137 @@ export interface paths {
716
983
  };
717
984
  get?: never;
718
985
  put?: never;
986
+ post?: never;
719
987
  /**
720
- * Что перенесётся из другой панели
721
- * @description Идёт в фоне: ответ 202 сразу, итог — в GET /api/v1/import/status (preview).
988
+ * Удалить группу: её клиенты и тарифы остаются без неё
989
+ * @description Клиенты группы возвращаются к серверам тарифа. Адрес, который выдавался только этой группе, больше не выдаётся никому, пока ему не выберут другие группы.
722
990
  */
723
- post: operations["import-preview"];
724
- delete?: never;
991
+ delete: operations["delete-group"];
725
992
  options?: never;
726
993
  head?: never;
727
- patch?: never;
994
+ /** Изменить группу клиентов */
995
+ patch: operations["update-group"];
728
996
  trace?: never;
729
997
  };
730
- "/import/status": {
998
+ "/groups/{id}/page": {
731
999
  parameters: {
732
1000
  query?: never;
733
1001
  header?: never;
734
1002
  path?: never;
735
1003
  cookie?: never;
736
1004
  };
737
- /** Ход импорта */
738
- get: operations["import-status"];
739
- put?: never;
1005
+ /** Страница подписки группы */
1006
+ get: operations["get-group-page"];
1007
+ /** Своя страница подписки группы */
1008
+ put: operations["put-group-page"];
740
1009
  post?: never;
741
- delete?: never;
1010
+ /** Группе — страница подписки для всех */
1011
+ delete: operations["delete-group-page"];
742
1012
  options?: never;
743
1013
  head?: never;
744
1014
  patch?: never;
745
1015
  trace?: never;
746
1016
  };
747
- "/inbounds": {
1017
+ "/import": {
1018
+ parameters: {
1019
+ query?: never;
1020
+ header?: never;
1021
+ path?: never;
1022
+ cookie?: never;
1023
+ };
1024
+ get?: never;
1025
+ put?: never;
1026
+ /**
1027
+ * Перенести пользователей из другой панели
1028
+ * @description Импорт идёт в фоне: ответ 202 сразу, ход и итог — в GET /api/v1/import/status.
1029
+ */
1030
+ post: operations["import-run"];
1031
+ /**
1032
+ * Остановить импорт
1033
+ * @description Уже созданные пользователи остаются, их список — в отчёте.
1034
+ */
1035
+ delete: operations["import-cancel"];
1036
+ options?: never;
1037
+ head?: never;
1038
+ patch?: never;
1039
+ trace?: never;
1040
+ };
1041
+ "/import/bot": {
1042
+ parameters: {
1043
+ query?: never;
1044
+ header?: never;
1045
+ path?: never;
1046
+ cookie?: never;
1047
+ };
1048
+ get?: never;
1049
+ put?: never;
1050
+ /**
1051
+ * Перенести аккаунты из бота продаж
1052
+ * @description Telegram-аккаунты бота становятся владельцами своих подписок, их балансы переносятся один раз, завершённые транзакции — в историю. Идёт в фоне: ответ 202 сразу, ход и итог — в GET /api/v1/import/status (bot_report).
1053
+ */
1054
+ post: operations["import-bot"];
1055
+ delete?: never;
1056
+ options?: never;
1057
+ head?: never;
1058
+ patch?: never;
1059
+ trace?: never;
1060
+ };
1061
+ "/import/legacy": {
1062
+ parameters: {
1063
+ query?: never;
1064
+ header?: never;
1065
+ path?: never;
1066
+ cookie?: never;
1067
+ };
1068
+ /** Старые ссылки подписки */
1069
+ get: operations["get-legacy-links"];
1070
+ put?: never;
1071
+ post?: never;
1072
+ delete?: never;
1073
+ options?: never;
1074
+ head?: never;
1075
+ /** Настроить старые ссылки подписки */
1076
+ patch: operations["update-legacy-links"];
1077
+ trace?: never;
1078
+ };
1079
+ "/import/preview": {
1080
+ parameters: {
1081
+ query?: never;
1082
+ header?: never;
1083
+ path?: never;
1084
+ cookie?: never;
1085
+ };
1086
+ get?: never;
1087
+ put?: never;
1088
+ /**
1089
+ * Что перенесётся из другой панели
1090
+ * @description Идёт в фоне: ответ 202 сразу, итог — в GET /api/v1/import/status (preview).
1091
+ */
1092
+ post: operations["import-preview"];
1093
+ delete?: never;
1094
+ options?: never;
1095
+ head?: never;
1096
+ patch?: never;
1097
+ trace?: never;
1098
+ };
1099
+ "/import/status": {
1100
+ parameters: {
1101
+ query?: never;
1102
+ header?: never;
1103
+ path?: never;
1104
+ cookie?: never;
1105
+ };
1106
+ /** Ход импорта */
1107
+ get: operations["import-status"];
1108
+ put?: never;
1109
+ post?: never;
1110
+ delete?: never;
1111
+ options?: never;
1112
+ head?: never;
1113
+ patch?: never;
1114
+ trace?: never;
1115
+ };
1116
+ "/inbounds": {
748
1117
  parameters: {
749
1118
  query?: never;
750
1119
  header?: never;
@@ -796,6 +1165,27 @@ export interface paths {
796
1165
  patch?: never;
797
1166
  trace?: never;
798
1167
  };
1168
+ "/inbounds/order": {
1169
+ parameters: {
1170
+ query?: never;
1171
+ header?: never;
1172
+ path?: never;
1173
+ cookie?: never;
1174
+ };
1175
+ /**
1176
+ * Порядок серверов в подписке
1177
+ * @description Все серверы подписок по порядку, у всех нод: каждый адрес для клиентов каждого подключения. Каждый клиент получает те из них, что ему доступны, в этом порядке.
1178
+ */
1179
+ get: operations["list-server-order"];
1180
+ /** Задать порядок серверов в подписке */
1181
+ put: operations["order-servers"];
1182
+ post?: never;
1183
+ delete?: never;
1184
+ options?: never;
1185
+ head?: never;
1186
+ patch?: never;
1187
+ trace?: never;
1188
+ };
799
1189
  "/inbounds/scan-targets": {
800
1190
  parameters: {
801
1191
  query?: never;
@@ -1090,7 +1480,7 @@ export interface paths {
1090
1480
  cookie?: never;
1091
1481
  };
1092
1482
  get?: never;
1093
- /** Порядок серверов в подписке */
1483
+ /** Порядок нод в подписке */
1094
1484
  put: operations["order-nodes"];
1095
1485
  post?: never;
1096
1486
  delete?: never;
@@ -3266,6 +3656,26 @@ export interface paths {
3266
3656
  patch?: never;
3267
3657
  trace?: never;
3268
3658
  };
3659
+ "/users/{id}/sub-preview": {
3660
+ parameters: {
3661
+ query?: never;
3662
+ header?: never;
3663
+ path?: never;
3664
+ cookie?: never;
3665
+ };
3666
+ get?: never;
3667
+ put?: never;
3668
+ /**
3669
+ * Что получит клиент: ответ на запрос его подписки
3670
+ * @description Ничего не меняет: ключи — заглушки, устройство места не занимает, балансировка клиента никуда не ставит, журнал запросов не пишется.
3671
+ */
3672
+ post: operations["user-sub-preview"];
3673
+ delete?: never;
3674
+ options?: never;
3675
+ head?: never;
3676
+ patch?: never;
3677
+ trace?: never;
3678
+ };
3269
3679
  "/users/{id}/telegram": {
3270
3680
  parameters: {
3271
3681
  query?: never;
@@ -3439,7 +3849,7 @@ export interface components {
3439
3849
  /** @description Первые символы ключа, чтобы отличать ключи */
3440
3850
  prefix: string;
3441
3851
  /** @enum {string} */
3442
- scope: "read" | "full";
3852
+ scope: "read" | "full" | "subscription";
3443
3853
  };
3444
3854
  Action: {
3445
3855
  format?: string;
@@ -3878,10 +4288,84 @@ export interface components {
3878
4288
  /** Format: int64 */
3879
4289
  balance: number;
3880
4290
  currency: string;
4291
+ /** @description История из бота продаж, откуда перенесён аккаунт: последние 50; это не платежи mikan */
4292
+ imported: components["schemas"]["ImportedPaymentView"][];
3881
4293
  ops: components["schemas"]["BalanceOpView"][];
3882
4294
  /** Format: int64 */
3883
4295
  tg_id: number;
3884
4296
  };
4297
+ BotPreview: {
4298
+ /**
4299
+ * Format: int64
4300
+ * @description Telegram-аккаунты бота
4301
+ */
4302
+ accounts: number;
4303
+ /**
4304
+ * Format: int64
4305
+ * @description Сколько всего, в копейках (сотых) валюты баланса
4306
+ */
4307
+ balance_total: number;
4308
+ /**
4309
+ * Format: int64
4310
+ * @description Аккаунты, чей баланс будет перенесён
4311
+ */
4312
+ balances: number;
4313
+ /**
4314
+ * Format: int64
4315
+ * @description Аккаунты, чей баланс уже перенесён прежде: второй раз он не добавится
4316
+ */
4317
+ carried: number;
4318
+ /** @description Валюта баланса mikan; пусто — не выбрана, и балансы не переносятся */
4319
+ currency: string;
4320
+ /**
4321
+ * Format: int64
4322
+ * @description Подписки, которые получат аккаунт-владельца
4323
+ */
4324
+ links: number;
4325
+ /**
4326
+ * Format: int64
4327
+ * @description Аккаунты, чьи подписки нашлись среди пользователей mikan
4328
+ */
4329
+ matched: number;
4330
+ /** @description Подписки, у которых уже другой владелец: он остаётся */
4331
+ owned: components["schemas"]["List"];
4332
+ /**
4333
+ * Format: int64
4334
+ * @description Завершённые транзакции бота
4335
+ */
4336
+ payments: number;
4337
+ /** @description Аккаунты с подпиской в боте, которой нет в mikan: сначала импортируйте пользователей Remnawave */
4338
+ unmatched: components["schemas"]["List"];
4339
+ };
4340
+ BotReport: {
4341
+ /**
4342
+ * Format: int64
4343
+ * @description Аккаунты, у которых что-то перенесено
4344
+ */
4345
+ accounts: number;
4346
+ /** Format: int64 */
4347
+ balance_total: number;
4348
+ /**
4349
+ * Format: int64
4350
+ * @description Аккаунты, чей баланс перенесён
4351
+ */
4352
+ balances: number;
4353
+ currency: string;
4354
+ /** @description Аккаунты, которые не удалось сохранить */
4355
+ failed: components["schemas"]["List"];
4356
+ /**
4357
+ * Format: int64
4358
+ * @description Подписки, получившие аккаунт-владельца
4359
+ */
4360
+ links: number;
4361
+ /** @description Подписки с другим владельцем: оставлены как были */
4362
+ owned: components["schemas"]["List"];
4363
+ /**
4364
+ * Format: int64
4365
+ * @description Транзакции, добавленные в историю (уже перенесённые не повторяются)
4366
+ */
4367
+ payments: number;
4368
+ };
3885
4369
  BotSlotInputBody: {
3886
4370
  /** @description id аддона с правом bot или пусто */
3887
4371
  addon: string;
@@ -3956,6 +4440,11 @@ export interface components {
3956
4440
  * @default all
3957
4441
  */
3958
4442
  folder: string;
4443
+ /**
4444
+ * @description all — любая; none — ни в какой группе; число — id группы (своей или тарифа)
4445
+ * @default all
4446
+ */
4447
+ group: string;
3959
4448
  /**
3960
4449
  * @description Как у списка: по умолчанию вместе со скрытыми
3961
4450
  * @default show
@@ -3968,7 +4457,7 @@ export interface components {
3968
4457
  * @default all
3969
4458
  * @enum {string}
3970
4459
  */
3971
- source: "all" | "admin" | "bot" | "trial" | "free" | "import";
4460
+ source: "all" | "admin" | "bot" | "web" | "trial" | "free" | "import";
3972
4461
  /**
3973
4462
  * @default all
3974
4463
  * @enum {string}
@@ -3977,10 +4466,10 @@ export interface components {
3977
4466
  };
3978
4467
  BulkInputBody: {
3979
4468
  /**
3980
- * @description hide и unhide прячут пользователей из списка и возвращают, move кладёт в папку: ни то ни другое не меняет доступ
4469
+ * @description hide и unhide прячут пользователей из списка и возвращают, move кладёт в папку: ни то ни другое не меняет доступ. group даёт клиентам свою группу: от неё зависят серверы и адреса, которые они видят
3981
4470
  * @enum {string}
3982
4471
  */
3983
- action: "extend" | "reset" | "disable" | "enable" | "delete" | "hide" | "unhide" | "move";
4472
+ action: "extend" | "reset" | "disable" | "enable" | "delete" | "hide" | "unhide" | "move" | "group";
3984
4473
  /**
3985
4474
  * Format: int64
3986
4475
  * @description Для extend; не задано — на один период: до следующего дня оплаты или на 30 дней
@@ -3995,6 +4484,11 @@ export interface components {
3995
4484
  * @description Для move: папка; 0 или не задано — убрать из папок
3996
4485
  */
3997
4486
  folder_id?: number;
4487
+ /**
4488
+ * Format: int64
4489
+ * @description Для group: группа; 0 или не задано — убрать свою группу, клиенты вернутся в группы своих тарифов
4490
+ */
4491
+ group_id?: number;
3998
4492
  /** @description Пользователи по id; задаётся либо ids, либо filter */
3999
4493
  ids?: number[];
4000
4494
  };
@@ -4045,6 +4539,11 @@ export interface components {
4045
4539
  expires_at: string | null;
4046
4540
  /** Format: int64 */
4047
4541
  folder_id: number | null;
4542
+ /**
4543
+ * Format: int64
4544
+ * @description Только для group: своя группа клиента сейчас
4545
+ */
4546
+ group_id: number | null;
4048
4547
  /** @enum {string} */
4049
4548
  state: "active" | "expiring" | "limited" | "expired" | "disabled";
4050
4549
  /**
@@ -4340,10 +4839,10 @@ export interface components {
4340
4839
  /** @description Пароль админа: ключ не выпускается из одной лишь украденной сессии */
4341
4840
  password: string;
4342
4841
  /**
4343
- * @description read — только GET-запросы, без ссылок подписок и секретных адресов; full — изменения, кроме входа, сессий, ключей и операций, где уходят деньги, ключи и адреса клиентов (в справочнике помечены «только сессия»)
4842
+ * @description subscription — только mikan-sub; read — только GET-запросы, без ссылок подписок и секретных адресов; full — изменения, кроме входа, сессий, ключей и операций, где уходят деньги, ключи и адреса клиентов (в справочнике помечены «только сессия»)
4344
4843
  * @enum {string}
4345
4844
  */
4346
- scope: "read" | "full";
4845
+ scope: "read" | "full" | "subscription";
4347
4846
  /** @description Код из приложения, если включена 2FA */
4348
4847
  totp?: string;
4349
4848
  };
@@ -4363,13 +4862,25 @@ export interface components {
4363
4862
  /** @description Первые символы ключа, чтобы отличать ключи */
4364
4863
  prefix: string;
4365
4864
  /** @enum {string} */
4366
- scope: "read" | "full";
4865
+ scope: "read" | "full" | "subscription";
4367
4866
  };
4368
4867
  CreateCampaignInputBody: {
4369
4868
  /** @description Метка в ссылке: латиница, цифры, _ и -; пусто — случайная */
4370
4869
  code?: string;
4371
4870
  name: string;
4372
4871
  };
4872
+ CreateCustomFieldInputBody: {
4873
+ /** @description Латиница в нижнем регистре, цифры и _, с буквы; потом не меняется */
4874
+ key: string;
4875
+ /**
4876
+ * @description Потом не меняется
4877
+ * @enum {string}
4878
+ */
4879
+ kind: "text" | "number" | "bool" | "date" | "url";
4880
+ label: string;
4881
+ /** @enum {string} */
4882
+ scope: "user" | "node";
4883
+ };
4373
4884
  CreateFolderInputBody: {
4374
4885
  /**
4375
4886
  * @description Не задан — gray
@@ -4379,6 +4890,17 @@ export interface components {
4379
4890
  emoji?: string;
4380
4891
  name: string;
4381
4892
  };
4893
+ CreateGroupInputBody: {
4894
+ /**
4895
+ * @description Не задан — gray
4896
+ * @enum {string}
4897
+ */
4898
+ color?: "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "purple" | "pink";
4899
+ emoji?: string;
4900
+ name: string;
4901
+ /** @description Не передан — как в тарифе */
4902
+ servers?: components["schemas"]["GroupServersBody"];
4903
+ };
4382
4904
  CreateInboundInputBody: {
4383
4905
  /** @description Шаблон листенера (YAML) для preset=custom */
4384
4906
  config?: string;
@@ -4452,6 +4974,10 @@ export interface components {
4452
4974
  };
4453
4975
  CreateUserInputBody: {
4454
4976
  contact?: string;
4977
+ /** @description Значения своих полей по ключу; пустая строка — без значения */
4978
+ custom_fields?: {
4979
+ [key: string]: string;
4980
+ };
4455
4981
  name: string;
4456
4982
  note?: string;
4457
4983
  /** @description Срок начнётся с первого подключения; не задано — как у тарифа */
@@ -4472,6 +4998,29 @@ export interface components {
4472
4998
  /** @description http:// или https:// и адрес получателя. Адреса этого сервера, его сети и облачных метаданных панель не принимает; для адресов сети нужен allow_local */
4473
4999
  url: string;
4474
5000
  };
5001
+ CustomFieldView: {
5002
+ /** Format: int64 */
5003
+ id: number;
5004
+ /** @description Имя поля в API: ключ в custom_fields пользователя или ноды */
5005
+ key: string;
5006
+ /**
5007
+ * @description text — строка, number — число, bool — да/нет (значение true), date — дата YYYY-MM-DD, url — ссылка http(s)
5008
+ * @enum {string}
5009
+ */
5010
+ kind: "text" | "number" | "bool" | "date" | "url";
5011
+ /** @description Название поля в панели */
5012
+ label: string;
5013
+ /**
5014
+ * @description Чьё поле: пользователей или нод
5015
+ * @enum {string}
5016
+ */
5017
+ scope: "user" | "node";
5018
+ /**
5019
+ * Format: int64
5020
+ * @description У скольких пользователей или нод поле заполнено
5021
+ */
5022
+ values: number;
5023
+ };
4475
5024
  DNS: {
4476
5025
  default_nameserver?: string[];
4477
5026
  nameserver?: string[];
@@ -4714,6 +5263,26 @@ export interface components {
4714
5263
  /** @description IP или домен сервера */
4715
5264
  host: string;
4716
5265
  };
5266
+ GitHubProvider: {
5267
+ /** @description Authorization callback URL, который нужно указать в приложении GitHub; пусто, пока у панели нет адреса */
5268
+ callback_url: string;
5269
+ /** @description Client ID OAuth-приложения GitHub; пусто — вход через GitHub выключен */
5270
+ client_id: string;
5271
+ /** @description Client secret сохранён (сам он не показывается) */
5272
+ secret_set: boolean;
5273
+ };
5274
+ GithubAppInputBody: {
5275
+ /** @description Client ID; пусто — выключить вход через GitHub */
5276
+ client_id: string;
5277
+ /** @description Client secret; не передан — остаётся сохранённый */
5278
+ client_secret?: string;
5279
+ };
5280
+ GithubLoginInputBody: {
5281
+ /** @description Из адреса страницы входа (#github=…) */
5282
+ ticket: string;
5283
+ /** @description Код из приложения, если включена 2FA */
5284
+ totp?: string;
5285
+ };
4717
5286
  Goal: {
4718
5287
  about?: {
4719
5288
  [key: string]: string;
@@ -4786,56 +5355,276 @@ export interface components {
4786
5355
  /** @enum {string} */
4787
5356
  op: "and" | "or";
4788
5357
  };
4789
- GroupInTariff: {
4790
- /** @enum {string} */
4791
- mode: "main" | "own" | "unlimited" | "closed";
5358
+ GroupAddressBody: {
5359
+ /** @description Адрес или домен; не передан — адрес ноды */
5360
+ address?: string;
5361
+ cdn?: boolean;
5362
+ host?: string;
4792
5363
  /** Format: int64 */
4793
- tariff_id: number;
5364
+ inbound_id: number;
5365
+ name?: string;
4794
5366
  /**
4795
5367
  * Format: int64
4796
- * @description Байты за период; только с mode=own
5368
+ * @description Не передан — порт подключения
4797
5369
  */
4798
- traffic_limit?: number;
4799
- };
4800
- GroupInboundsInputBody: {
4801
- /** @description Все подключения группы: перечисленные переходят в неё из других групп, остальные её подключения возвращаются к основным серверам */
4802
- inbound_ids: number[];
4803
- };
4804
- GroupTariffsInputBody: {
4805
- /** @description Тарифы, в которых группа меняется; остальные тарифы держат её как раньше. Закрытие и открытие группы действует сразу на клиентов тарифа */
4806
- tariffs: components["schemas"]["GroupInTariff"][];
4807
- };
4808
- HappLinkOutputBody: {
4809
- /** @description happ://crypt5/…: Happ открывает подписку, не показывая её адрес; пусто — шифрованная ссылка выключена */
4810
- link: string;
4811
- };
4812
- Header: {
4813
- name: string;
4814
- value: string;
5370
+ port?: number;
5371
+ sni?: string;
4815
5372
  };
4816
- HostInput: {
4817
- /** @description Адрес для клиентов; пусто — адрес ноды */
5373
+ GroupAddressView: {
5374
+ /** @description Адрес или домен; пусто — адрес ноды */
4818
5375
  address: string;
4819
- /** @description Отпечаток TLS у клиентов, как fingerprint подключения; пусто — общий из настроек */
4820
- fingerprint: string;
4821
- /** @description HTTP Host у клиентов: VLESS и Trojan по WebSocket и XHTTP; пусто — как на сервере */
5376
+ /** @description Впереди CDN со своим сертификатом: сертификат ноды не закрепляется */
5377
+ cdn: boolean;
5378
+ /** @description HTTP Host у WebSocket и XHTTP; пусто — как у сервера */
4822
5379
  host: string;
5380
+ /** Format: int64 */
5381
+ inbound_id: number;
5382
+ /** @description Имя в подписке, с переменными заголовка; пусто — имя подключения */
5383
+ name: string;
4823
5384
  /**
4824
5385
  * Format: int64
4825
- * @description Порт для клиентов; 0 — порт подключения
5386
+ * @description 0 — порт подключения
4826
5387
  */
4827
5388
  port: number;
4828
- /** @description SNI для клиентов; пусто — как обычно. Не у REALITY: там имя задаёт сайт маскировки */
5389
+ /** @description Пусто — обычное имя TLS */
4829
5390
  sni: string;
4830
5391
  };
4831
- HostItem: {
4832
- detail: string;
4833
- /** @description Что сделать; пусто, если всё хорошо */
4834
- fix?: string;
4835
- label: string;
5392
+ GroupAppearanceBody: {
5393
+ addresses?: components["schemas"]["GroupAddressBody"][];
5394
+ /** @description До 10 строк; пустая строка — без объявления */
5395
+ announce?: string;
5396
+ /** @description https://… или tg://… */
5397
+ announce_url?: string;
5398
+ /** @description Как дополнительные заголовки правила ответа: без заголовков кэша и длины */
5399
+ headers?: components["schemas"]["Header"][];
5400
+ require_hwid?: boolean;
5401
+ /** @description https://… или tg://… */
5402
+ support_url?: string;
5403
+ templates?: components["schemas"]["GroupTemplatesBody"];
5404
+ title?: string;
5405
+ /** @description Свои правила отвязки; не передано — правила для всех */
5406
+ unbind?: components["schemas"]["UnbindRules"];
5407
+ /** Format: int64 */
5408
+ update_hours?: number;
5409
+ };
5410
+ GroupAppearanceView: {
5411
+ /** @description Где клиенты группы подключаются к протоколу вместо его адреса по умолчанию */
5412
+ addresses: components["schemas"]["GroupAddressView"][];
5413
+ /** @description Объявление; пустая строка — без объявления; null — как в настройках подписки */
5414
+ announce: string | null;
5415
+ /** @description Куда ведёт нажатие на объявление; null — как в настройках подписки */
5416
+ announce_url: string | null;
5417
+ /** @description Свои заголовки каждого ответа подписки; заголовки правила ответа сильнее */
5418
+ headers: components["schemas"]["Header"][];
5419
+ /** @description Своя страница подписки: GET, PUT и DELETE /api/v1/groups/{id}/page */
5420
+ page: boolean;
5421
+ /** @description Не выдавать подписку приложениям без ID устройства; null — как в настройках */
5422
+ require_hwid: boolean | null;
5423
+ /** @description Ссылка на поддержку; null — как в настройках подписки */
5424
+ support_url: string | null;
5425
+ templates: components["schemas"]["GroupTemplates"];
5426
+ /** @description Название подписки в приложениях, с переменными как в sub_title; null — как в настройках подписки */
5427
+ title: string | null;
5428
+ unbind: components["schemas"]["UnbindRules"];
5429
+ /** @description Свои правила отвязки устройств; false — правила для всех, они в unbind */
5430
+ unbind_own: boolean;
5431
+ /**
5432
+ * Format: int64
5433
+ * @description Как часто приложения обновляют подписку, в часах (Profile-Update-Interval); null — раз в час
5434
+ */
5435
+ update_hours: number | null;
5436
+ };
5437
+ GroupHostView: {
5438
+ /** @description Пусто — адрес ноды */
5439
+ address: string;
5440
+ /** @description Адрес по умолчанию: из настроек подключения */
5441
+ default: boolean;
5442
+ /** Format: int64 */
5443
+ id: number;
5444
+ /** Format: int64 */
5445
+ inbound_id: number;
5446
+ inbound_name: string;
5447
+ /**
5448
+ * @description only — адрес выдаётся только клиентам названных групп, never — всем, кроме них
5449
+ * @enum {string}
5450
+ */
5451
+ mode: "only" | "never";
5452
+ /** @description Своё имя адреса в подписке; пусто — имя подключения */
5453
+ name: string;
5454
+ /** Format: int64 */
5455
+ node_id: number;
5456
+ };
5457
+ GroupInTariff: {
5458
+ /** @enum {string} */
5459
+ mode: "main" | "own" | "unlimited" | "closed";
5460
+ /** Format: int64 */
5461
+ tariff_id: number;
5462
+ /**
5463
+ * Format: int64
5464
+ * @description Байты за период; только с mode=own
5465
+ */
5466
+ traffic_limit?: number;
5467
+ };
5468
+ GroupInboundsInputBody: {
5469
+ /** @description Все подключения группы: перечисленные переходят в неё из других групп, остальные её подключения возвращаются к основным серверам */
5470
+ inbound_ids: number[];
5471
+ };
5472
+ GroupPageView: {
5473
+ background?: components["schemas"]["PageAsset"];
5474
+ /** @description Название бренда (settings.brand), общее для всех страниц */
5475
+ brand: string;
5476
+ /** @description Цвет бренда (settings.brand_accent), общий для всех страниц */
5477
+ brand_accent: string;
5478
+ config: components["schemas"]["Page"];
5479
+ /** @description Страница по умолчанию — к ней ведёт «Сбросить» */
5480
+ defaults: components["schemas"]["Page"];
5481
+ logo?: components["schemas"]["PageAsset"];
5482
+ /** @description У группы своя страница; false — в config страница для всех */
5483
+ own: boolean;
5484
+ };
5485
+ GroupServers: {
5486
+ /** @description Серверы как в тарифе клиента; false — только выбранные ноды и протоколы, вместо тарифных. Свой список протоколов в карточке клиента сильнее и того и другого */
5487
+ as_tariff: boolean;
5488
+ /** @description Отдельные протоколы */
5489
+ inbounds: number[];
5490
+ /** @description Ноды целиком, с протоколами, которые на них появятся потом */
5491
+ nodes: number[];
5492
+ };
5493
+ GroupServersBody: {
5494
+ /** @description Серверы как в тарифе клиента; false — только выбранные, хотя бы одна нода или протокол */
5495
+ as_tariff: boolean;
5496
+ /** @description Отдельные протоколы */
5497
+ inbounds?: number[];
5498
+ /** @description Ноды целиком, с протоколами, которые на них появятся потом */
5499
+ nodes?: number[];
5500
+ };
5501
+ GroupTariffsInputBody: {
5502
+ /** @description Тарифы, в которых группа меняется; остальные тарифы держат её как раньше. Закрытие и открытие группы действует сразу на клиентов тарифа */
5503
+ tariffs: components["schemas"]["GroupInTariff"][];
5504
+ };
5505
+ GroupTemplates: {
5506
+ /**
5507
+ * Format: int64
5508
+ * @description Шаблон Clash (mihomo); null — шаблон по умолчанию
5509
+ */
5510
+ mihomo: number | null;
5511
+ /**
5512
+ * Format: int64
5513
+ * @description Шаблон sing-box; null — шаблон по умолчанию
5514
+ */
5515
+ singbox: number | null;
5516
+ /**
5517
+ * Format: int64
5518
+ * @description Шаблон Xray; null — шаблон по умолчанию
5519
+ */
5520
+ xray: number | null;
5521
+ };
5522
+ GroupTemplatesBody: {
5523
+ /**
5524
+ * Format: int64
5525
+ * @description Шаблон Clash (mihomo); не передан — шаблон по умолчанию
5526
+ */
5527
+ mihomo?: number;
5528
+ /**
5529
+ * Format: int64
5530
+ * @description Шаблон sing-box; не передан — шаблон по умолчанию
5531
+ */
5532
+ singbox?: number;
5533
+ /**
5534
+ * Format: int64
5535
+ * @description Шаблон Xray; не передан — шаблон по умолчанию
5536
+ */
5537
+ xray?: number;
5538
+ };
5539
+ GroupView: {
5540
+ appearance: components["schemas"]["GroupAppearanceView"];
5541
+ /** @enum {string} */
5542
+ color: "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "purple" | "pink";
5543
+ /** @description Значок перед названием; может быть пустым */
5544
+ emoji: string;
5545
+ /** @description Адреса для клиентов, которые выдаются по группам и называют эту */
5546
+ hosts: components["schemas"]["GroupHostView"][];
5547
+ /** Format: int64 */
5548
+ id: number;
5549
+ name: string;
5550
+ /**
5551
+ * Format: int64
5552
+ * @description Из них в группе своей группой, заданной в карточке
5553
+ */
5554
+ own_users: number;
5555
+ servers: components["schemas"]["GroupServers"];
5556
+ /**
5557
+ * Format: int64
5558
+ * @description Сколько тарифов, кроме архивных, кладут своих клиентов в эту группу
5559
+ */
5560
+ tariffs: number;
5561
+ /**
5562
+ * Format: int64
5563
+ * @description Сколько клиентов в группе: своей группой и через тариф, скрытые тоже
5564
+ */
5565
+ users: number;
5566
+ };
5567
+ HappLinkOutputBody: {
5568
+ /** @description happ://crypt5/…: Happ открывает подписку, не показывая её адрес; пусто — шифрованная ссылка выключена */
5569
+ link: string;
5570
+ };
5571
+ Header: {
5572
+ name: string;
5573
+ value: string;
5574
+ };
5575
+ HostInput: {
5576
+ /** @description Адрес для клиентов; пусто — адрес ноды */
5577
+ address: string;
5578
+ /** @description Ещё адреса для клиентов: каждый получает один из address и этих, всегда один и тот же (по токену подписки); пустой address среди них — адрес ноды */
5579
+ addresses?: string[];
5580
+ /** @description ALPN у клиентов, по порядку: h3, h2, http/1.1. Только с TLS: на сертификате ноды и у QUIC-протоколов; пусто — как в приложении */
5581
+ alpn?: string[];
5582
+ /** @description Перед адресом CDN со своим сертификатом: VLESS и Trojan на сертификате ноды по XHTTP, WebSocket или gRPC */
5583
+ cdn?: boolean;
5584
+ /** @description Отпечаток TLS у клиентов, как fingerprint подключения; пусто — общий из настроек */
5585
+ fingerprint: string;
5586
+ /** @description only — только клиентам групп groups, never — всем, кроме них; пусто — всем. Группа клиента — своя или его тарифа */
5587
+ group_mode?: string;
5588
+ /** @description Группы для group_mode, по id; с режимом нужна хотя бы одна */
5589
+ groups?: number[];
5590
+ /** @description HTTP Host у клиентов: VLESS и Trojan по WebSocket и XHTTP; пусто — как на сервере */
5591
+ host: string;
5592
+ /** @description Как клиенты доходят до адреса: ipv4, ipv6, ipv4-prefer, ipv6-prefer; пусто — как в приложении */
5593
+ ip_version?: string;
5594
+ /** @description Мультиплексирование соединений (sing-mux): VLESS, Trojan и Shadowsocks, не XHTTP и не Vision; выключенное не хранит протокол и padding */
5595
+ mux?: components["schemas"]["HostMux"];
5596
+ /** @description Имя в подписке; можно с переменными заголовка: «🇳🇱 NL · осталось {left}». Пусто — имя подключения, у доп. адресов с номером */
5597
+ name?: string;
5598
+ /**
5599
+ * Format: int64
5600
+ * @description Порт для клиентов; 0 — порт подключения
5601
+ */
5602
+ port: number;
5603
+ /** @description SNI для клиентов; пусто — как обычно. Не у REALITY: там имя задаёт сайт маскировки */
5604
+ sni: string;
5605
+ /** @description Ещё SNI: каждый клиент получает одно из sni и этих, всегда одно и то же; только где можно задать sni */
5606
+ snis?: string[];
5607
+ /** @description Выдавать адрес только подпискам в этих статусах (истекающая — активная); пусто или все — всем. Скрытый адрес по умолчанию тоже не выдаётся */
5608
+ states?: ("active" | "limited" | "expired" | "disabled")[];
5609
+ /** @description only — только пробным (пришли с пробного и ничего не оплатили сверх него), never — всем, кроме пробных; пусто — всем */
5610
+ trial?: string;
5611
+ };
5612
+ HostItem: {
5613
+ detail: string;
5614
+ /** @description Что сделать; пусто, если всё хорошо */
5615
+ fix?: string;
5616
+ label: string;
4836
5617
  /** @enum {string} */
4837
5618
  level: "ok" | "warn" | "error";
4838
5619
  };
5620
+ HostMux: {
5621
+ /** @description Включено: VLESS, Trojan и Shadowsocks, не XHTTP и не Vision */
5622
+ enabled: boolean;
5623
+ /** @description Дополнять кадры случайными данными */
5624
+ padding: boolean;
5625
+ /** @description smux, yamux или h2mux; пусто — как в приложении */
5626
+ protocol: string;
5627
+ };
4839
5628
  HostReport: {
4840
5629
  /** @description RFC 3339 */
4841
5630
  at: string;
@@ -4862,14 +5651,30 @@ export interface components {
4862
5651
  HostView: {
4863
5652
  /** @description Адрес для клиентов; пусто — адрес ноды */
4864
5653
  address: string;
5654
+ /** @description Ещё адреса: каждый клиент получает один из address и этих, всегда один и тот же */
5655
+ addresses: string[];
5656
+ /** @description ALPN, который предлагают клиенты, по порядку: h3, h2, http/1.1; пусто — как в приложении */
5657
+ alpn: string[];
5658
+ /** @description Перед адресом CDN со своим сертификатом: самоподписанный сертификат ноды клиентам не закрепляется */
5659
+ cdn: boolean;
4865
5660
  /** @description Адрес по умолчанию: тот же, что client и fingerprint подключения; удаляется только с подключением */
4866
5661
  default: boolean;
4867
5662
  /** @description Отпечаток TLS (uTLS); пусто — общий из настроек */
4868
5663
  fingerprint: string;
5664
+ /** @description Кому адрес выдаётся по группе клиента: only — только клиентам групп groups, never — всем, кроме них; пусто — всем */
5665
+ group_mode: string;
5666
+ /** @description Группы для group_mode, по id; при only без групп (все удалены) адрес не выдаётся никому */
5667
+ groups: number[];
4869
5668
  /** @description HTTP Host у клиентов (WebSocket, XHTTP); пусто — как на сервере */
4870
5669
  host: string;
4871
5670
  /** Format: int64 */
4872
5671
  id: number;
5672
+ /** @description Как клиенты доходят до адреса: ipv4, ipv6, ipv4-prefer, ipv6-prefer; пусто — как в приложении */
5673
+ ip_version: string;
5674
+ /** @description Мультиплексирование соединений (sing-mux) */
5675
+ mux: components["schemas"]["HostMux"];
5676
+ /** @description Имя в подписке, с переменными заголовка ({days}, {left}…) для каждого пользователя; пусто — имя подключения */
5677
+ name: string;
4873
5678
  /**
4874
5679
  * Format: int64
4875
5680
  * @description Порт для клиентов; 0 — порт подключения
@@ -4877,6 +5682,46 @@ export interface components {
4877
5682
  port: number;
4878
5683
  /** @description SNI для клиентов; пусто — как обычно */
4879
5684
  sni: string;
5685
+ /** @description Ещё SNI: каждый клиент получает одно из sni и этих, всегда одно и то же */
5686
+ snis: string[];
5687
+ /** @description Кому адрес выдаётся по статусу подписки (истекающая — активная); пусто — всем */
5688
+ states: ("active" | "limited" | "expired" | "disabled")[];
5689
+ /** @description only — только пробным, never — всем, кроме пробных; пусто — всем */
5690
+ trial: string;
5691
+ };
5692
+ IdentityBeginInputBody: {
5693
+ /** @description Пароль: без него украденная сессия привязала бы свой аккаунт */
5694
+ password: string;
5695
+ /** @description Код из приложения, если включена 2FA */
5696
+ totp?: string;
5697
+ };
5698
+ IdentityProviders: {
5699
+ github: components["schemas"]["GitHubProvider"];
5700
+ telegram: components["schemas"]["TelegramProvider"];
5701
+ };
5702
+ IdentityURLOutputBody: {
5703
+ /** @description Куда перейти браузеру */
5704
+ url: string;
5705
+ };
5706
+ IdentityView: {
5707
+ /** Format: date-time */
5708
+ created_at: string;
5709
+ /** Format: int64 */
5710
+ id: number;
5711
+ /** Format: date-time */
5712
+ last_used_at?: string;
5713
+ /** @description Имя аккаунта там: логин GitHub, @username или имя в Telegram */
5714
+ name: string;
5715
+ /** @enum {string} */
5716
+ provider: "github" | "telegram";
5717
+ };
5718
+ ImportBotInputBody: {
5719
+ /** @enum {string} */
5720
+ kind: "bedolaga";
5721
+ /** @description Ключ Web API бота */
5722
+ token: string;
5723
+ /** @description Адрес Web API бота: https://bot.example.com или http://127.0.0.1:8080 */
5724
+ url: string;
4880
5725
  };
4881
5726
  ImportRunInputBody: {
4882
5727
  /** @enum {string} */
@@ -4892,16 +5737,36 @@ export interface components {
4892
5737
  username?: string;
4893
5738
  };
4894
5739
  ImportSource: {
4895
- /** @enum {string} */
4896
- kind: "marzban" | "pasarguard" | "remnawave" | "3xui";
5740
+ /**
5741
+ * @description bedolaga — бот продаж: аккаунты, балансы и история поверх уже перенесённых пользователей Remnawave; переносится через POST /api/v1/import/bot
5742
+ * @enum {string}
5743
+ */
5744
+ kind: "marzban" | "pasarguard" | "remnawave" | "3xui" | "bedolaga";
4897
5745
  password?: string;
4898
- /** @description Remnawave: API-токен; PasarGuard: API-ключ вместо логина; 3x-ui: API-токен вместо логина */
5746
+ /** @description Remnawave: API-токен; PasarGuard: API-ключ вместо логина; 3x-ui: API-токен вместо логина; Bedolaga: ключ его Web API (X-API-Key) */
4899
5747
  token?: string;
4900
5748
  /** @description Адрес старой панели: https://panel.example.com, у 3x-ui — с его секретным путём; http:// — только для этого сервера или локальной сети */
4901
5749
  url: string;
4902
5750
  /** @description Marzban, PasarGuard, 3x-ui: логин администратора */
4903
5751
  username?: string;
4904
5752
  };
5753
+ ImportedPaymentView: {
5754
+ /**
5755
+ * Format: int64
5756
+ * @description В копейках (сотых) валюты, как в боте
5757
+ */
5758
+ amount: number;
5759
+ /** Format: date-time */
5760
+ created_at: string;
5761
+ currency: string;
5762
+ description?: string;
5763
+ /** @description Тип в боте: deposit, subscription_payment, refund, withdrawal, referral_reward и другие */
5764
+ kind: string;
5765
+ /** @description Способ оплаты в боте */
5766
+ method?: string;
5767
+ /** @description Откуда: bedolaga */
5768
+ source: string;
5769
+ };
4905
5770
  InactiveOutputBody: {
4906
5771
  /**
4907
5772
  * Format: int64
@@ -4976,6 +5841,8 @@ export interface components {
4976
5841
  exit_node_id?: number;
4977
5842
  /** @description Отпечаток TLS (uTLS) у клиентов; пусто — общий из настроек */
4978
5843
  fingerprint?: string;
5844
+ /** @description ALPN, которые можно задать адресам для клиентов: у QUIC — из ALPN самого подключения, у TLS по TCP — h2 и http/1.1, без TLS ноды — ничего */
5845
+ host_alpn: string[];
4979
5846
  /** Format: int64 */
4980
5847
  id: number;
4981
5848
  /** @description Подключение входит в «Авто» подписки; выключено — только в списке и группе страны (выключенная нода убирает все свои) */
@@ -5057,6 +5924,8 @@ export interface components {
5057
5924
  op: "and" | "or";
5058
5925
  };
5059
5926
  JobState: {
5927
+ bot_preview?: components["schemas"]["BotPreview"];
5928
+ bot_report?: components["schemas"]["BotReport"];
5060
5929
  /** Format: int64 */
5061
5930
  done: number;
5062
5931
  /** @description Код ошибки, когда state = failed */
@@ -5065,6 +5934,8 @@ export interface components {
5065
5934
  finished?: string;
5066
5935
  /** @description Панель и её адрес (без пути и данных для входа) */
5067
5936
  from?: string;
5937
+ /** @description Откуда: marzban, pasarguard, remnawave, 3xui или bedolaga */
5938
+ kind?: string;
5068
5939
  /** @enum {string} */
5069
5940
  mode?: "preview" | "import";
5070
5941
  preview?: components["schemas"]["Preview"];
@@ -5122,19 +5993,23 @@ export interface components {
5122
5993
  names: string[];
5123
5994
  };
5124
5995
  ListUsersOutputBody: {
5125
- /** @description Пользователи по состояниям среди подходящих под папку, источник и скрытых; состояние и поиск не учитываются */
5996
+ /** @description Пользователи по состояниям среди подходящих под папку, группу, источник и скрытых; состояние и поиск не учитываются */
5126
5997
  counts: components["schemas"]["UserCounts"];
5127
- /** @description Пользователи по папкам (ключ — id папки, none — вне папок) среди подходящих под источник и скрытых */
5998
+ /** @description Пользователи по папкам (ключ — id папки, none — вне папок) среди подходящих под группу, источник и скрытых */
5128
5999
  folder_counts: {
5129
6000
  [key: string]: number;
5130
6001
  };
6002
+ /** @description Пользователи по группам (ключ — id группы, none — ни в какой) среди подходящих под папку, источник и скрытых */
6003
+ group_counts: {
6004
+ [key: string]: number;
6005
+ };
5131
6006
  /**
5132
6007
  * Format: int64
5133
6008
  * @description Сколько из них скрыто
5134
6009
  */
5135
6010
  hidden_total: number;
5136
6011
  items: components["schemas"]["UserView"][];
5137
- /** @description Пользователи по источникам (admin, bot, trial, import) среди подходящих под папку и скрытых */
6012
+ /** @description Пользователи по источникам (admin, bot, web, trial, free, import) среди подходящих под папку, группу и скрытых */
5138
6013
  source_counts: {
5139
6014
  [key: string]: number;
5140
6015
  };
@@ -5169,6 +6044,12 @@ export interface components {
5169
6044
  totp?: string;
5170
6045
  username: string;
5171
6046
  };
6047
+ LoginMethodsOutputBody: {
6048
+ /** @description Можно войти через GitHub */
6049
+ github: boolean;
6050
+ /** @description Можно войти через Telegram */
6051
+ telegram: boolean;
6052
+ };
5172
6053
  LogsView: {
5173
6054
  lines: components["schemas"]["LogLine"][];
5174
6055
  source: string;
@@ -5538,6 +6419,10 @@ export interface components {
5538
6419
  * @description Загрузка процессора всего сервера, не только ноды
5539
6420
  */
5540
6421
  cpu_percent: number;
6422
+ /** @description Свои поля админа (GET /api/v1/custom-fields, scope node) по ключу; поля без значения нет в объекте */
6423
+ custom_fields: {
6424
+ [key: string]: string;
6425
+ };
5541
6426
  domain: string;
5542
6427
  enabled: boolean;
5543
6428
  /** @description Слова ошибки связи как есть, для «подробнее» */
@@ -5763,14 +6648,28 @@ export interface components {
5763
6648
  traffic_100: boolean;
5764
6649
  traffic_90: boolean;
5765
6650
  };
6651
+ OrderCustomFieldsInputBody: {
6652
+ /** @description Все поля этого scope, каждое один раз, в том порядке, в каком их показывают карточки */
6653
+ ids: number[];
6654
+ /** @enum {string} */
6655
+ scope: "user" | "node";
6656
+ };
5766
6657
  OrderFoldersInputBody: {
5767
6658
  /** @description Все папки, каждая один раз, в том порядке, в каком их показывает список */
5768
6659
  ids: number[];
5769
6660
  };
6661
+ OrderGroupsInputBody: {
6662
+ /** @description Все группы, каждая один раз, в том порядке, в каком их показывать */
6663
+ ids: number[];
6664
+ };
5770
6665
  OrderNodesInputBody: {
5771
- /** @description Все ноды панели, каждая один раз, в том порядке, в каком их серверы идут в подписках */
6666
+ /** @description Все ноды панели, каждая один раз. Их серверы встают в подписках блоками в этом порядке, серверы одной ноды — как шли */
5772
6667
  ids: number[];
5773
6668
  };
6669
+ OrderServersInputBody: {
6670
+ /** @description Все адреса подключений панели (host_id), каждый один раз, в том порядке, в каком серверы идут в подписках. Нода встаёт туда, где её первый сервер */
6671
+ host_ids: number[];
6672
+ };
5774
6673
  OrderSubDocsInputBody: {
5775
6674
  /** @description Все инструкции в новом порядке */
5776
6675
  ids: number[];
@@ -6028,7 +6927,7 @@ export interface components {
6028
6927
  current: string;
6029
6928
  /** @description Не короче 12 символов */
6030
6929
  new: string;
6031
- /** @description Отозвать и ключи API, и ключи доступа (passkey) (по умолчанию да): другие сессии завершаются при смене пароля, ключ, выпущенный или добавленный из угнанной сессии, пережил бы это */
6930
+ /** @description Отозвать ключи API и ключи доступа (passkey), отвязать аккаунты GitHub и Telegram (по умолчанию да): другие сессии завершаются при смене пароля, а выпущенное или привязанное из угнанной сессии пережило бы это */
6032
6931
  revoke_keys?: boolean;
6033
6932
  };
6034
6933
  PatchAddonInputBody: {
@@ -6049,6 +6948,9 @@ export interface components {
6049
6948
  archived?: boolean;
6050
6949
  name?: string;
6051
6950
  };
6951
+ PatchCustomFieldInputBody: {
6952
+ label: string;
6953
+ };
6052
6954
  PatchFiltersInputBody: {
6053
6955
  /** @description Весь исходящий фильтр */
6054
6956
  egress?: components["schemas"]["EgressFilter"];
@@ -6062,6 +6964,17 @@ export interface components {
6062
6964
  emoji?: string;
6063
6965
  name?: string;
6064
6966
  };
6967
+ PatchGroupInputBody: {
6968
+ /** @description Оформление целиком, с адресами; не передано — без изменений. Только из сессии администратора, не ключом API */
6969
+ appearance?: components["schemas"]["GroupAppearanceBody"];
6970
+ /** @enum {string} */
6971
+ color?: "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "purple" | "pink";
6972
+ /** @description Пустая строка убирает значок */
6973
+ emoji?: string;
6974
+ name?: string;
6975
+ /** @description Не передан — без изменений. Действует сразу на всех клиентов группы */
6976
+ servers?: components["schemas"]["GroupServersBody"];
6977
+ };
6065
6978
  PatchInboundInputBody: {
6066
6979
  /** @description Нельзя включить, пока у подключения свой адрес (listen) */
6067
6980
  auto_port?: boolean;
@@ -6130,6 +7043,10 @@ export interface components {
6130
7043
  * @description Ширина канала ноды, Мбит/с в каждую сторону
6131
7044
  */
6132
7045
  channel_mbps?: number;
7046
+ /** @description Значения своих полей по ключу, только названные; пустая строка стирает значение */
7047
+ custom_fields?: {
7048
+ [key: string]: string;
7049
+ };
6133
7050
  domain?: string;
6134
7051
  enabled?: boolean;
6135
7052
  /** @description Делить канал ноды поровну между теми, кто сейчас качает; нужен channel_mbps */
@@ -6189,6 +7106,7 @@ export interface components {
6189
7106
  * @description Тариф пробного периода; 0 — выключить
6190
7107
  */
6191
7108
  trial_tariff_id?: number;
7109
+ website?: boolean;
6192
7110
  };
6193
7111
  PatchSettingsInputBody: {
6194
7112
  /**
@@ -6241,6 +7159,7 @@ export interface components {
6241
7159
  sub_announce_url?: string;
6242
7160
  /** @description Домен для ссылок подписки, отдельный от домена панели; пусто — убрать. Старые ссылки продолжают работать */
6243
7161
  sub_domain?: string;
7162
+ sub_external?: boolean;
6244
7163
  sub_group_auto?: string;
6245
7164
  sub_group_main?: string;
6246
7165
  sub_inactive_server?: boolean;
@@ -6301,6 +7220,10 @@ export interface components {
6301
7220
  */
6302
7221
  billing_day?: number;
6303
7222
  contact?: string;
7223
+ /** @description Значения своих полей по ключу, только названные; пустая строка стирает значение */
7224
+ custom_fields?: {
7225
+ [key: string]: string;
7226
+ };
6304
7227
  /** Format: int64 */
6305
7228
  device_limit?: number;
6306
7229
  /**
@@ -6317,12 +7240,22 @@ export interface components {
6317
7240
  * @description Положить в папку; 0 — убрать из папки
6318
7241
  */
6319
7242
  folder_id?: number;
7243
+ /**
7244
+ * Format: int64
7245
+ * @description Своя группа клиента: от неё зависят серверы и адреса, которые он видит; 0 — убрать свою, клиент вернётся в группу тарифа
7246
+ */
7247
+ group_id?: number;
6320
7248
  /** @description Скрыть пользователя из списка или вернуть в него; доступ он не теряет */
6321
7249
  hidden?: boolean;
6322
7250
  inbounds?: number[];
6323
7251
  name?: string;
6324
7252
  never_expires?: boolean;
6325
7253
  note?: string;
7254
+ /**
7255
+ * @description Когда обнулять трафик этому клиенту: основной и групп со своим лимитом. Продление, смена тарифа и применение тарифа к выданным подпискам снова ставят сброс тарифа; с tariff_id в том же запросе действует этот. Начавшийся период остаётся: если по новому правилу он уже прошёл, трафик обнулится при ближайшей проверке
7256
+ * @enum {string}
7257
+ */
7258
+ reset_strategy?: "none" | "month_start" | "period";
6326
7259
  /**
6327
7260
  * Format: int64
6328
7261
  * @description Скорость, Мбит/с в каждую сторону
@@ -6405,6 +7338,8 @@ export interface components {
6405
7338
  * @description Сколько пробных подписок выдано
6406
7339
  */
6407
7340
  trials: number;
7341
+ /** @description Продажи и продление подписок в браузере; выключено по умолчанию */
7342
+ website: boolean;
6408
7343
  };
6409
7344
  PaymentSettingsViewAvailableStruct: {
6410
7345
  /** @description Адаптеры маркетплейса, которые принимают оплату прямо сейчас */
@@ -6736,6 +7671,9 @@ export interface components {
6736
7671
  /** Format: int64 */
6737
7672
  successful_activations: number;
6738
7673
  };
7674
+ PutGroupPageInputBody: {
7675
+ config: components["schemas"]["Page"];
7676
+ };
6739
7677
  PutSitePageInputBody: {
6740
7678
  /** @description Документ конструктора (JSON) */
6741
7679
  doc: string;
@@ -7254,6 +8192,8 @@ export interface components {
7254
8192
  sub_certificate?: components["schemas"]["Status"];
7255
8193
  /** @description Свой домен для ссылок подписки; пусто — адрес панели */
7256
8194
  sub_domain: string;
8195
+ /** @description Домен подписки обслуживает внешний mikan-sub */
8196
+ sub_external: boolean;
7257
8197
  /** @description Группа автовыбора самого быстрого подключения */
7258
8198
  sub_group_auto: string;
7259
8199
  /** @description Главная группа в Clash-приложениях */
@@ -7512,6 +8452,37 @@ export interface components {
7512
8452
  /** @description Что решило: имя правила, builtin:ssr, builtin:old, apps; пусто — ничего */
7513
8453
  rule: string;
7514
8454
  };
8455
+ SubOrderItem: {
8456
+ /** @description Адрес для клиентов; пусто — адрес ноды */
8457
+ address: string;
8458
+ /** @description Клиенты ходят через CDN */
8459
+ cdn: boolean;
8460
+ /** @description Адрес по умолчанию: тот, что задаёт само подключение */
8461
+ default: boolean;
8462
+ /** @description Адрес выдают не всем: только части статусов подписки, только пробным или всем, кроме них, или по группам клиентов */
8463
+ for_some: boolean;
8464
+ /**
8465
+ * Format: int64
8466
+ * @description Адрес подключения для клиентов: его id в порядке, который сохраняют
8467
+ */
8468
+ host_id: number;
8469
+ /**
8470
+ * Format: int64
8471
+ * @description Подключение (протокол), чей это адрес
8472
+ */
8473
+ inbound_id: number;
8474
+ /** @description Имя сервера в приложении клиента, которому доступно всё; переменные — как написаны. У сервера, который клиенты сейчас не получают, — его собственное имя или имя подключения, без флага ноды */
8475
+ name: string;
8476
+ /** Format: int64 */
8477
+ node_id: number;
8478
+ /**
8479
+ * Format: int64
8480
+ * @description Порт для клиентов; 0 — порт подключения
8481
+ */
8482
+ port: number;
8483
+ /** @description Клиенты получают этот сервер сейчас: подключение и нода включены */
8484
+ served: boolean;
8485
+ };
7515
8486
  SubPageView: {
7516
8487
  background?: components["schemas"]["PageAsset"];
7517
8488
  /** @description Название бренда (settings.brand) */
@@ -7523,50 +8494,174 @@ export interface components {
7523
8494
  defaults: components["schemas"]["Page"];
7524
8495
  logo?: components["schemas"]["PageAsset"];
7525
8496
  };
7526
- SubRuleLimits: {
7527
- /** Format: int64 */
7528
- conds: number;
7529
- /** Format: int64 */
7530
- groups: number;
7531
- /** Format: int64 */
7532
- headers: number;
7533
- /** Format: int64 */
7534
- html: number;
7535
- /** Format: int64 */
7536
- name: number;
7537
- /** Format: int64 */
7538
- rules: number;
7539
- /** Format: int64 */
7540
- text: number;
7541
- /** Format: int64 */
7542
- value: number;
7543
- };
7544
- SubRuleTest: {
8497
+ SubPreview: {
7545
8498
  /** @description Известное приложение по User-Agent; пусто — неизвестное */
7546
8499
  app_id: string;
7547
8500
  app_name: string;
7548
- /** @description Формат профиля или заглушки; пусто, когда профиля в ответе нет */
7549
- format: string;
7550
- /** @description Заголовки, которые добавляет правило */
7551
- headers: components["schemas"]["Header"][];
8501
+ /** @description Тело ответа: профиль с ключами-заглушками, ссылки — раскрытыми из base64; токен ссылки скрыт. Пусто для страницы подписки */
8502
+ body: string;
8503
+ /** @description Тело длиннее 2 МиБ и обрезано */
8504
+ body_cut?: boolean;
8505
+ /** @description Серверы клиента — свои серверы его группы */
8506
+ by_group: boolean;
8507
+ /**
8508
+ * @description Что получит устройство: known — привязано и останется, new — займёт новое место, shared — общее место приложений без ID, inactive — подписка не работает, места не займёт; пусто — до ключей не дошло
8509
+ * @enum {string}
8510
+ */
8511
+ device: "" | "known" | "new" | "shared" | "inactive";
8512
+ /**
8513
+ * @description Формат ответа: clash, singbox, xray, uri, html (страница подписки); пусто — правило ответило без профиля
8514
+ * @enum {string}
8515
+ */
8516
+ format: "" | "clash" | "singbox" | "uri" | "xray" | "html";
7552
8517
  /**
7553
8518
  * Format: int64
7554
- * @description Место сработавшего правила в списке, с 1; 0 — сработало не правило из списка
8519
+ * @description Группа, в которой клиент сейчас
8520
+ */
8521
+ group_id: number | null;
8522
+ /** @description Заголовки ответа, по имени */
8523
+ headers: components["schemas"]["SubPreviewHeader"][];
8524
+ /** @description Что из серверов панели в ответ не попало, и почему */
8525
+ left: components["schemas"]["SubPreviewLeft"][];
8526
+ /** @description Что ядро формата (sing-box, Xray) делает с профилем по-своему или опускает */
8527
+ notes: components["schemas"]["Note"][];
8528
+ /**
8529
+ * @description error — панель не смогла ответить, причина в её журнале
8530
+ * @enum {string}
8531
+ */
8532
+ outcome: "served" | "stub" | "blocked" | "dropped" | "error";
8533
+ /** @description Серверы клиента — свой список протоколов карточки */
8534
+ own: boolean;
8535
+ /**
8536
+ * Format: int64
8537
+ * @description Место сработавшего правила в списке, с 1; 0 — не правило из списка
7555
8538
  */
7556
8539
  position: number;
8540
+ /** @description Серверы в ответе, по порядку */
8541
+ proxies: components["schemas"]["SubPreviewProxy"][];
7557
8542
  /** @enum {string} */
7558
8543
  respond: "serve" | "stub" | "403" | "404" | "html" | "drop";
7559
- /** @description Что решило: имя правила, builtin:ssr, builtin:old, apps (список приложений); пусто — ничего, ответ как обычно */
8544
+ /** @description Что решило: имя правила ответа, builtin:ssr, builtin:old, apps (список приложений); пусто — ничего */
7560
8545
  rule: string;
7561
- skip_hwid: boolean;
7562
8546
  /**
7563
8547
  * Format: int64
7564
8548
  * @description Код ответа; 0 — соединение закрыто без ответа
7565
8549
  */
7566
8550
  status: number;
7567
8551
  /**
7568
- * Format: int64
7569
- * @description Шаблон подписки, из которого собран профиль; 0 — встроенный профиль
8552
+ * @description Почему вместо серверов ушла заглушка: unsupported, device_limit, no_hwid, device_banned, device_unbound, inactive, no_proxies; пусто — заглушки нет
8553
+ * @enum {string}
8554
+ */
8555
+ stub: "" | "unsupported" | "device_limit" | "no_hwid" | "device_banned" | "device_unbound" | "inactive" | "no_proxies";
8556
+ /** @description Свой шаблон, из которого собран профиль; null — встроенный профиль */
8557
+ template: components["schemas"]["SubPreviewTemplate"];
8558
+ /** @description Шаблон не собрался для этого клиента, ушёл встроенный профиль */
8559
+ template_failed: boolean;
8560
+ };
8561
+ SubPreviewHeader: {
8562
+ name: string;
8563
+ /** @description Значение вида base64:… как текст */
8564
+ text?: string;
8565
+ value: string;
8566
+ };
8567
+ SubPreviewInputBody: {
8568
+ /**
8569
+ * @description Формат, который называет ссылка (?format=); не задан — как решат заголовки
8570
+ * @enum {string}
8571
+ */
8572
+ format?: "clash" | "singbox" | "uri" | "xray" | "html";
8573
+ /** @description Остальные заголовки запроса: X-Hwid, X-Device-Os, Accept, Host, свои */
8574
+ headers?: components["schemas"]["Header"][];
8575
+ /** @description User-Agent приложения; пусто — запрос без него */
8576
+ user_agent: string;
8577
+ };
8578
+ SubPreviewLeft: {
8579
+ /** @description Адрес; пусто у адреса — адрес ноды */
8580
+ address?: string;
8581
+ /** @description Для broken: почему */
8582
+ error?: string;
8583
+ /**
8584
+ * Format: int64
8585
+ * @description Адрес для клиентов; не задан — протокол целиком
8586
+ */
8587
+ host_id?: number;
8588
+ /** @description Своё имя адреса в подписке */
8589
+ host_name?: string;
8590
+ /** Format: int64 */
8591
+ inbound_id: number;
8592
+ /** @description Имя протокола в подписке */
8593
+ inbound_name: string;
8594
+ /** Format: int64 */
8595
+ node_id: number;
8596
+ /**
8597
+ * @description inbound_off — протокол выключен, node_off — нода выключена, not_own — нет в своём списке протоколов карточки, not_in_group — нет в серверах группы, not_in_tariff — нет в серверах тарифа, pool_shut — группа серверов закрыта или её трафик кончился, hidden — на ноде клиенту не выдаётся ни один адрес, balance — балансировка держит клиента на другой ноде, host_state, host_trial, host_group — адрес выдаётся другим статусам, пробным или группам, app — приложение не умеет этот протокол, broken — протокол не собрался
8598
+ * @enum {string}
8599
+ */
8600
+ reason: "inbound_off" | "node_off" | "not_own" | "not_in_group" | "not_in_tariff" | "pool_shut" | "hidden" | "balance" | "host_state" | "host_trial" | "host_group" | "app" | "broken";
8601
+ };
8602
+ SubPreviewProxy: {
8603
+ name: string;
8604
+ /** Format: int64 */
8605
+ node_id: number;
8606
+ /** Format: int64 */
8607
+ port: number;
8608
+ /** @description Диапазон портов Hysteria2 */
8609
+ ports?: string;
8610
+ server: string;
8611
+ /** @description Протокол: vless, hysteria2, tuic… */
8612
+ type: string;
8613
+ };
8614
+ SubPreviewTemplate: {
8615
+ /** @enum {string} */
8616
+ core: "mihomo" | "singbox" | "xray";
8617
+ /** Format: int64 */
8618
+ id: number;
8619
+ name: string;
8620
+ };
8621
+ SubRuleLimits: {
8622
+ /** Format: int64 */
8623
+ conds: number;
8624
+ /** Format: int64 */
8625
+ groups: number;
8626
+ /** Format: int64 */
8627
+ headers: number;
8628
+ /** Format: int64 */
8629
+ html: number;
8630
+ /** Format: int64 */
8631
+ name: number;
8632
+ /** Format: int64 */
8633
+ rules: number;
8634
+ /** Format: int64 */
8635
+ text: number;
8636
+ /** Format: int64 */
8637
+ value: number;
8638
+ };
8639
+ SubRuleTest: {
8640
+ /** @description Известное приложение по User-Agent; пусто — неизвестное */
8641
+ app_id: string;
8642
+ app_name: string;
8643
+ /** @description Формат профиля или заглушки; пусто, когда профиля в ответе нет */
8644
+ format: string;
8645
+ /** @description Заголовки, которые добавляет правило */
8646
+ headers: components["schemas"]["Header"][];
8647
+ /**
8648
+ * Format: int64
8649
+ * @description Место сработавшего правила в списке, с 1; 0 — сработало не правило из списка
8650
+ */
8651
+ position: number;
8652
+ /** @enum {string} */
8653
+ respond: "serve" | "stub" | "403" | "404" | "html" | "drop";
8654
+ /** @description Что решило: имя правила, builtin:ssr, builtin:old, apps (список приложений); пусто — ничего, ответ как обычно */
8655
+ rule: string;
8656
+ skip_hwid: boolean;
8657
+ /**
8658
+ * Format: int64
8659
+ * @description Код ответа; 0 — соединение закрыто без ответа
8660
+ */
8661
+ status: number;
8662
+ /**
8663
+ * Format: int64
8664
+ * @description Шаблон подписки, из которого собран профиль; 0 — встроенный профиль
7570
8665
  */
7571
8666
  template: number;
7572
8667
  /** @description Текст заглушки */
@@ -7747,6 +8842,11 @@ export interface components {
7747
8842
  extra_devices?: components["schemas"]["ExtraDevices"];
7748
8843
  /** @description Пакеты трафика в подарок при каждой оплате тарифа; каждый должен добавлять к квоте, которую тариф даёт: к основному трафику с лимитом или к группе со своим лимитом. Не передан — без изменений */
7749
8844
  gifts?: number[];
8845
+ /**
8846
+ * Format: int64
8847
+ * @description Группа для клиентов тарифа без своей группы; 0 — никакой. Не передан — без изменений (у нового тарифа — никакой). Действует сразу на всех клиентов тарифа
8848
+ */
8849
+ group_id?: number;
7750
8850
  name: string;
7751
8851
  /** @description Продавать в боте и Mini App; нужна хотя бы одна цена */
7752
8852
  on_sale?: boolean;
@@ -7813,6 +8913,11 @@ export interface components {
7813
8913
  extra_devices: components["schemas"]["ExtraDevices"];
7814
8914
  /** @description Пакеты трафика в подарок при каждой оплате тарифа: покупке и продлении */
7815
8915
  gifts: number[];
8916
+ /**
8917
+ * Format: int64
8918
+ * @description Группа, в которой клиенты тарифа без своей группы: покупатели и пробные попадают в неё сами; null — ни в какой
8919
+ */
8920
+ group_id: number | null;
7816
8921
  /** Format: int64 */
7817
8922
  id: number;
7818
8923
  name: string;
@@ -7833,7 +8938,7 @@ export interface components {
7833
8938
  price_stars: number | null;
7834
8939
  /** @enum {string} */
7835
8940
  reset_strategy: "none" | "month_start" | "period";
7836
- /** @description Какие серверы входят в тариф: все или выбранные. Действует сразу на всех клиентов тарифа; клиент со своим списком протоколов в карточке остаётся при нём */
8941
+ /** @description Какие серверы входят в тариф: все или выбранные. Действует сразу на всех клиентов тарифа; клиент со своим списком протоколов в карточке остаётся при нём, клиент в группе со своими серверами видит серверы группы */
7837
8942
  servers: components["schemas"]["ServersView"];
7838
8943
  /** Format: int64 */
7839
8944
  sort: number;
@@ -7885,6 +8990,16 @@ export interface components {
7885
8990
  name: string;
7886
8991
  username: string;
7887
8992
  };
8993
+ TelegramLinkInputBody: {
8994
+ /** @description Значение tgAuthResult из адреса, с которым Telegram вернул на страницу */
8995
+ result: string;
8996
+ };
8997
+ TelegramLoginInputBody: {
8998
+ /** @description Значение tgAuthResult из адреса страницы входа */
8999
+ result: string;
9000
+ /** @description Код из приложения, если включена 2FA */
9001
+ totp?: string;
9002
+ };
7888
9003
  TelegramPreviewInputBody: {
7889
9004
  /** @description Текст бота с Markdown */
7890
9005
  text: string;
@@ -7897,6 +9012,12 @@ export interface components {
7897
9012
  /** @description Сообщение, как его отправит бот: HTML Telegram */
7898
9013
  html: string;
7899
9014
  };
9015
+ TelegramProvider: {
9016
+ /** @description Бот панели (@username), через которого идёт вход; пусто — бот не подключён */
9017
+ bot: string;
9018
+ /** @description Домен, который нужно указать боту в @BotFather (/setdomain); пусто — у панели нет домена, вход через Telegram недоступен */
9019
+ domain: string;
9020
+ };
7900
9021
  TelegramRoute: {
7901
9022
  /**
7902
9023
  * @description Напрямую с сервера панели, через её ноду или через прокси — когда Telegram на сервере заблокирован
@@ -8338,6 +9459,10 @@ export interface components {
8338
9459
  contact: string;
8339
9460
  /** Format: date-time */
8340
9461
  created_at: string;
9462
+ /** @description Свои поля админа (GET /api/v1/custom-fields) по ключу; поля без значения нет в объекте */
9463
+ custom_fields: {
9464
+ [key: string]: string;
9465
+ };
8341
9466
  /** Format: int64 */
8342
9467
  device_limit: number | null;
8343
9468
  /**
@@ -8345,6 +9470,11 @@ export interface components {
8345
9470
  * @enum {string}
8346
9471
  */
8347
9472
  device_mode: "bound" | "online";
9473
+ /**
9474
+ * Format: int64
9475
+ * @description Группа, в которой клиент сейчас: своя (group_id) или его тарифа; null — ни в какой. От неё зависят серверы и адреса, которые он видит
9476
+ */
9477
+ effective_group_id: number | null;
8348
9478
  /** Format: date-time */
8349
9479
  expires_at: string | null;
8350
9480
  /**
@@ -8352,6 +9482,11 @@ export interface components {
8352
9482
  * @description Папка пользователя; null — вне папок
8353
9483
  */
8354
9484
  folder_id: number | null;
9485
+ /**
9486
+ * Format: int64
9487
+ * @description Своя группа клиента, заданная в карточке; null — группа его тарифа
9488
+ */
9489
+ group_id: number | null;
8355
9490
  /** @description Скрыт из списка пользователей. Только прячет строку: подписка, оплата и ноды работают как у всех, счётчики обзора не меняются */
8356
9491
  hidden: boolean;
8357
9492
  /** Format: int64 */
@@ -8376,10 +9511,10 @@ export interface components {
8376
9511
  /** Format: date-time */
8377
9512
  resets_at: string | null;
8378
9513
  /**
8379
- * @description Откуда пользователь: admin — создан в панели или по ключу API, bot — куплен в боте, trial — пробный период бота, free — бесплатный тариф из бота или Mini App, import — перенесён из другой панели. Заполняется при создании, не меняется
9514
+ * @description Откуда пользователь: admin — создан в панели или по ключу API, bot — куплен в боте, web — куплен на сайте, trial — пробный период бота, free — бесплатный тариф из бота или Mini App, import — перенесён из другой панели. Заполняется при создании, не меняется
8380
9515
  * @enum {string}
8381
9516
  */
8382
- source: "admin" | "bot" | "trial" | "free" | "import";
9517
+ source: "admin" | "bot" | "web" | "trial" | "free" | "import";
8383
9518
  /**
8384
9519
  * Format: int64
8385
9520
  * @description Мбит/с в каждую сторону; null — без ограничения
@@ -9147,9 +10282,820 @@ export interface operations {
9147
10282
  headers: {
9148
10283
  [name: string]: unknown;
9149
10284
  };
9150
- content: {
9151
- "application/json": components["schemas"]["APIKeyView"][];
9152
- };
10285
+ content: {
10286
+ "application/json": components["schemas"]["APIKeyView"][];
10287
+ };
10288
+ };
10289
+ /** @description Error */
10290
+ default: {
10291
+ headers: {
10292
+ [name: string]: unknown;
10293
+ };
10294
+ content: {
10295
+ "application/problem+json": components["schemas"]["ErrorModel"];
10296
+ };
10297
+ };
10298
+ };
10299
+ };
10300
+ "create-api-key": {
10301
+ parameters: {
10302
+ query?: never;
10303
+ header?: never;
10304
+ path?: never;
10305
+ cookie?: never;
10306
+ };
10307
+ requestBody: {
10308
+ content: {
10309
+ "application/json": components["schemas"]["CreateAPIKeyInputBody"];
10310
+ };
10311
+ };
10312
+ responses: {
10313
+ /** @description Created */
10314
+ 201: {
10315
+ headers: {
10316
+ [name: string]: unknown;
10317
+ };
10318
+ content: {
10319
+ "application/json": components["schemas"]["CreateAPIKeyOutputBody"];
10320
+ };
10321
+ };
10322
+ /** @description Error */
10323
+ default: {
10324
+ headers: {
10325
+ [name: string]: unknown;
10326
+ };
10327
+ content: {
10328
+ "application/problem+json": components["schemas"]["ErrorModel"];
10329
+ };
10330
+ };
10331
+ };
10332
+ };
10333
+ "delete-api-key": {
10334
+ parameters: {
10335
+ query?: never;
10336
+ header?: never;
10337
+ path: {
10338
+ id: number;
10339
+ };
10340
+ cookie?: never;
10341
+ };
10342
+ requestBody?: never;
10343
+ responses: {
10344
+ /** @description No Content */
10345
+ 204: {
10346
+ headers: {
10347
+ [name: string]: unknown;
10348
+ };
10349
+ content?: never;
10350
+ };
10351
+ /** @description Error */
10352
+ default: {
10353
+ headers: {
10354
+ [name: string]: unknown;
10355
+ };
10356
+ content: {
10357
+ "application/problem+json": components["schemas"]["ErrorModel"];
10358
+ };
10359
+ };
10360
+ };
10361
+ };
10362
+ "list-audit": {
10363
+ parameters: {
10364
+ query?: {
10365
+ /** @description Записи до этого номера; 0 — самые новые */
10366
+ before?: number;
10367
+ limit?: number;
10368
+ };
10369
+ header?: never;
10370
+ path?: never;
10371
+ cookie?: never;
10372
+ };
10373
+ requestBody?: never;
10374
+ responses: {
10375
+ /** @description OK */
10376
+ 200: {
10377
+ headers: {
10378
+ [name: string]: unknown;
10379
+ };
10380
+ content: {
10381
+ "application/json": components["schemas"]["AuditOutputBody"];
10382
+ };
10383
+ };
10384
+ /** @description Error */
10385
+ default: {
10386
+ headers: {
10387
+ [name: string]: unknown;
10388
+ };
10389
+ content: {
10390
+ "application/problem+json": components["schemas"]["ErrorModel"];
10391
+ };
10392
+ };
10393
+ };
10394
+ };
10395
+ "github-callback": {
10396
+ parameters: {
10397
+ query?: {
10398
+ code?: string;
10399
+ state?: string;
10400
+ error?: string;
10401
+ };
10402
+ header?: never;
10403
+ path?: never;
10404
+ cookie?: never;
10405
+ };
10406
+ requestBody?: never;
10407
+ responses: {
10408
+ /** @description Found */
10409
+ 302: {
10410
+ headers: {
10411
+ "Cache-Control"?: string;
10412
+ Location?: string;
10413
+ [name: string]: unknown;
10414
+ };
10415
+ content?: never;
10416
+ };
10417
+ /** @description Error */
10418
+ default: {
10419
+ headers: {
10420
+ [name: string]: unknown;
10421
+ };
10422
+ content: {
10423
+ "application/problem+json": components["schemas"]["ErrorModel"];
10424
+ };
10425
+ };
10426
+ };
10427
+ };
10428
+ "list-identities": {
10429
+ parameters: {
10430
+ query?: never;
10431
+ header?: never;
10432
+ path?: never;
10433
+ cookie?: never;
10434
+ };
10435
+ requestBody?: never;
10436
+ responses: {
10437
+ /** @description OK */
10438
+ 200: {
10439
+ headers: {
10440
+ [name: string]: unknown;
10441
+ };
10442
+ content: {
10443
+ "application/json": components["schemas"]["IdentityView"][];
10444
+ };
10445
+ };
10446
+ /** @description Error */
10447
+ default: {
10448
+ headers: {
10449
+ [name: string]: unknown;
10450
+ };
10451
+ content: {
10452
+ "application/problem+json": components["schemas"]["ErrorModel"];
10453
+ };
10454
+ };
10455
+ };
10456
+ };
10457
+ "github-link-begin": {
10458
+ parameters: {
10459
+ query?: never;
10460
+ header?: never;
10461
+ path?: never;
10462
+ cookie?: never;
10463
+ };
10464
+ requestBody: {
10465
+ content: {
10466
+ "application/json": components["schemas"]["IdentityBeginInputBody"];
10467
+ };
10468
+ };
10469
+ responses: {
10470
+ /** @description OK */
10471
+ 200: {
10472
+ headers: {
10473
+ [name: string]: unknown;
10474
+ };
10475
+ content: {
10476
+ "application/json": components["schemas"]["IdentityURLOutputBody"];
10477
+ };
10478
+ };
10479
+ /** @description Error */
10480
+ default: {
10481
+ headers: {
10482
+ [name: string]: unknown;
10483
+ };
10484
+ content: {
10485
+ "application/problem+json": components["schemas"]["ErrorModel"];
10486
+ };
10487
+ };
10488
+ };
10489
+ };
10490
+ "link-telegram": {
10491
+ parameters: {
10492
+ query?: never;
10493
+ header?: never;
10494
+ path?: never;
10495
+ cookie?: never;
10496
+ };
10497
+ requestBody: {
10498
+ content: {
10499
+ "application/json": components["schemas"]["TelegramLinkInputBody"];
10500
+ };
10501
+ };
10502
+ responses: {
10503
+ /** @description Created */
10504
+ 201: {
10505
+ headers: {
10506
+ [name: string]: unknown;
10507
+ };
10508
+ content: {
10509
+ "application/json": components["schemas"]["IdentityView"];
10510
+ };
10511
+ };
10512
+ /** @description Error */
10513
+ default: {
10514
+ headers: {
10515
+ [name: string]: unknown;
10516
+ };
10517
+ content: {
10518
+ "application/problem+json": components["schemas"]["ErrorModel"];
10519
+ };
10520
+ };
10521
+ };
10522
+ };
10523
+ "telegram-link-begin": {
10524
+ parameters: {
10525
+ query?: never;
10526
+ header?: never;
10527
+ path?: never;
10528
+ cookie?: never;
10529
+ };
10530
+ requestBody: {
10531
+ content: {
10532
+ "application/json": components["schemas"]["IdentityBeginInputBody"];
10533
+ };
10534
+ };
10535
+ responses: {
10536
+ /** @description OK */
10537
+ 200: {
10538
+ headers: {
10539
+ [name: string]: unknown;
10540
+ };
10541
+ content: {
10542
+ "application/json": components["schemas"]["IdentityURLOutputBody"];
10543
+ };
10544
+ };
10545
+ /** @description Error */
10546
+ default: {
10547
+ headers: {
10548
+ [name: string]: unknown;
10549
+ };
10550
+ content: {
10551
+ "application/problem+json": components["schemas"]["ErrorModel"];
10552
+ };
10553
+ };
10554
+ };
10555
+ };
10556
+ "delete-identity": {
10557
+ parameters: {
10558
+ query?: never;
10559
+ header?: never;
10560
+ path: {
10561
+ id: number;
10562
+ };
10563
+ cookie?: never;
10564
+ };
10565
+ requestBody?: never;
10566
+ responses: {
10567
+ /** @description No Content */
10568
+ 204: {
10569
+ headers: {
10570
+ [name: string]: unknown;
10571
+ };
10572
+ content?: never;
10573
+ };
10574
+ /** @description Error */
10575
+ default: {
10576
+ headers: {
10577
+ [name: string]: unknown;
10578
+ };
10579
+ content: {
10580
+ "application/problem+json": components["schemas"]["ErrorModel"];
10581
+ };
10582
+ };
10583
+ };
10584
+ };
10585
+ "identity-providers": {
10586
+ parameters: {
10587
+ query?: never;
10588
+ header?: never;
10589
+ path?: never;
10590
+ cookie?: never;
10591
+ };
10592
+ requestBody?: never;
10593
+ responses: {
10594
+ /** @description OK */
10595
+ 200: {
10596
+ headers: {
10597
+ [name: string]: unknown;
10598
+ };
10599
+ content: {
10600
+ "application/json": components["schemas"]["IdentityProviders"];
10601
+ };
10602
+ };
10603
+ /** @description Error */
10604
+ default: {
10605
+ headers: {
10606
+ [name: string]: unknown;
10607
+ };
10608
+ content: {
10609
+ "application/problem+json": components["schemas"]["ErrorModel"];
10610
+ };
10611
+ };
10612
+ };
10613
+ };
10614
+ "set-github-app": {
10615
+ parameters: {
10616
+ query?: never;
10617
+ header?: never;
10618
+ path?: never;
10619
+ cookie?: never;
10620
+ };
10621
+ requestBody: {
10622
+ content: {
10623
+ "application/json": components["schemas"]["GithubAppInputBody"];
10624
+ };
10625
+ };
10626
+ responses: {
10627
+ /** @description OK */
10628
+ 200: {
10629
+ headers: {
10630
+ [name: string]: unknown;
10631
+ };
10632
+ content: {
10633
+ "application/json": components["schemas"]["IdentityProviders"];
10634
+ };
10635
+ };
10636
+ /** @description Error */
10637
+ default: {
10638
+ headers: {
10639
+ [name: string]: unknown;
10640
+ };
10641
+ content: {
10642
+ "application/problem+json": components["schemas"]["ErrorModel"];
10643
+ };
10644
+ };
10645
+ };
10646
+ };
10647
+ login: {
10648
+ parameters: {
10649
+ query?: never;
10650
+ header?: never;
10651
+ path?: never;
10652
+ cookie?: never;
10653
+ };
10654
+ requestBody: {
10655
+ content: {
10656
+ "application/json": components["schemas"]["LoginInputBody"];
10657
+ };
10658
+ };
10659
+ responses: {
10660
+ /** @description OK */
10661
+ 200: {
10662
+ headers: {
10663
+ "Set-Cookie"?: string;
10664
+ [name: string]: unknown;
10665
+ };
10666
+ content: {
10667
+ "application/json": components["schemas"]["MeBody"];
10668
+ };
10669
+ };
10670
+ /** @description Error */
10671
+ default: {
10672
+ headers: {
10673
+ [name: string]: unknown;
10674
+ };
10675
+ content: {
10676
+ "application/problem+json": components["schemas"]["ErrorModel"];
10677
+ };
10678
+ };
10679
+ };
10680
+ };
10681
+ "github-login": {
10682
+ parameters: {
10683
+ query?: never;
10684
+ header?: never;
10685
+ path?: never;
10686
+ cookie?: never;
10687
+ };
10688
+ requestBody: {
10689
+ content: {
10690
+ "application/json": components["schemas"]["GithubLoginInputBody"];
10691
+ };
10692
+ };
10693
+ responses: {
10694
+ /** @description OK */
10695
+ 200: {
10696
+ headers: {
10697
+ "Set-Cookie"?: string;
10698
+ [name: string]: unknown;
10699
+ };
10700
+ content: {
10701
+ "application/json": components["schemas"]["MeBody"];
10702
+ };
10703
+ };
10704
+ /** @description Error */
10705
+ default: {
10706
+ headers: {
10707
+ [name: string]: unknown;
10708
+ };
10709
+ content: {
10710
+ "application/problem+json": components["schemas"]["ErrorModel"];
10711
+ };
10712
+ };
10713
+ };
10714
+ };
10715
+ "github-login-begin": {
10716
+ parameters: {
10717
+ query?: never;
10718
+ header?: never;
10719
+ path?: never;
10720
+ cookie?: never;
10721
+ };
10722
+ requestBody?: never;
10723
+ responses: {
10724
+ /** @description OK */
10725
+ 200: {
10726
+ headers: {
10727
+ [name: string]: unknown;
10728
+ };
10729
+ content: {
10730
+ "application/json": components["schemas"]["IdentityURLOutputBody"];
10731
+ };
10732
+ };
10733
+ /** @description Error */
10734
+ default: {
10735
+ headers: {
10736
+ [name: string]: unknown;
10737
+ };
10738
+ content: {
10739
+ "application/problem+json": components["schemas"]["ErrorModel"];
10740
+ };
10741
+ };
10742
+ };
10743
+ };
10744
+ "login-methods": {
10745
+ parameters: {
10746
+ query?: never;
10747
+ header?: never;
10748
+ path?: never;
10749
+ cookie?: never;
10750
+ };
10751
+ requestBody?: never;
10752
+ responses: {
10753
+ /** @description OK */
10754
+ 200: {
10755
+ headers: {
10756
+ [name: string]: unknown;
10757
+ };
10758
+ content: {
10759
+ "application/json": components["schemas"]["LoginMethodsOutputBody"];
10760
+ };
10761
+ };
10762
+ /** @description Error */
10763
+ default: {
10764
+ headers: {
10765
+ [name: string]: unknown;
10766
+ };
10767
+ content: {
10768
+ "application/problem+json": components["schemas"]["ErrorModel"];
10769
+ };
10770
+ };
10771
+ };
10772
+ };
10773
+ "passkey-login": {
10774
+ parameters: {
10775
+ query?: never;
10776
+ header?: never;
10777
+ path?: never;
10778
+ cookie?: never;
10779
+ };
10780
+ requestBody: {
10781
+ content: {
10782
+ "application/json": components["schemas"]["PasskeyLoginInputBody"];
10783
+ };
10784
+ };
10785
+ responses: {
10786
+ /** @description OK */
10787
+ 200: {
10788
+ headers: {
10789
+ "Set-Cookie"?: string;
10790
+ [name: string]: unknown;
10791
+ };
10792
+ content: {
10793
+ "application/json": components["schemas"]["MeBody"];
10794
+ };
10795
+ };
10796
+ /** @description Error */
10797
+ default: {
10798
+ headers: {
10799
+ [name: string]: unknown;
10800
+ };
10801
+ content: {
10802
+ "application/problem+json": components["schemas"]["ErrorModel"];
10803
+ };
10804
+ };
10805
+ };
10806
+ };
10807
+ "passkey-login-begin": {
10808
+ parameters: {
10809
+ query?: never;
10810
+ header?: never;
10811
+ path?: never;
10812
+ cookie?: never;
10813
+ };
10814
+ requestBody?: never;
10815
+ responses: {
10816
+ /** @description OK */
10817
+ 200: {
10818
+ headers: {
10819
+ [name: string]: unknown;
10820
+ };
10821
+ content: {
10822
+ "application/json": components["schemas"]["PasskeyLoginBeginOutputBody"];
10823
+ };
10824
+ };
10825
+ /** @description Error */
10826
+ default: {
10827
+ headers: {
10828
+ [name: string]: unknown;
10829
+ };
10830
+ content: {
10831
+ "application/problem+json": components["schemas"]["ErrorModel"];
10832
+ };
10833
+ };
10834
+ };
10835
+ };
10836
+ "telegram-login": {
10837
+ parameters: {
10838
+ query?: never;
10839
+ header?: never;
10840
+ path?: never;
10841
+ cookie?: never;
10842
+ };
10843
+ requestBody: {
10844
+ content: {
10845
+ "application/json": components["schemas"]["TelegramLoginInputBody"];
10846
+ };
10847
+ };
10848
+ responses: {
10849
+ /** @description OK */
10850
+ 200: {
10851
+ headers: {
10852
+ "Set-Cookie"?: string;
10853
+ [name: string]: unknown;
10854
+ };
10855
+ content: {
10856
+ "application/json": components["schemas"]["MeBody"];
10857
+ };
10858
+ };
10859
+ /** @description Error */
10860
+ default: {
10861
+ headers: {
10862
+ [name: string]: unknown;
10863
+ };
10864
+ content: {
10865
+ "application/problem+json": components["schemas"]["ErrorModel"];
10866
+ };
10867
+ };
10868
+ };
10869
+ };
10870
+ "telegram-login-begin": {
10871
+ parameters: {
10872
+ query?: never;
10873
+ header?: never;
10874
+ path?: never;
10875
+ cookie?: never;
10876
+ };
10877
+ requestBody?: never;
10878
+ responses: {
10879
+ /** @description OK */
10880
+ 200: {
10881
+ headers: {
10882
+ [name: string]: unknown;
10883
+ };
10884
+ content: {
10885
+ "application/json": components["schemas"]["IdentityURLOutputBody"];
10886
+ };
10887
+ };
10888
+ /** @description Error */
10889
+ default: {
10890
+ headers: {
10891
+ [name: string]: unknown;
10892
+ };
10893
+ content: {
10894
+ "application/problem+json": components["schemas"]["ErrorModel"];
10895
+ };
10896
+ };
10897
+ };
10898
+ };
10899
+ logout: {
10900
+ parameters: {
10901
+ query?: never;
10902
+ header?: never;
10903
+ path?: never;
10904
+ cookie?: never;
10905
+ };
10906
+ requestBody?: never;
10907
+ responses: {
10908
+ /** @description No Content */
10909
+ 204: {
10910
+ headers: {
10911
+ "Set-Cookie"?: string;
10912
+ [name: string]: unknown;
10913
+ };
10914
+ content?: never;
10915
+ };
10916
+ /** @description Error */
10917
+ default: {
10918
+ headers: {
10919
+ [name: string]: unknown;
10920
+ };
10921
+ content: {
10922
+ "application/problem+json": components["schemas"]["ErrorModel"];
10923
+ };
10924
+ };
10925
+ };
10926
+ };
10927
+ me: {
10928
+ parameters: {
10929
+ query?: never;
10930
+ header?: never;
10931
+ path?: never;
10932
+ cookie?: never;
10933
+ };
10934
+ requestBody?: never;
10935
+ responses: {
10936
+ /** @description OK */
10937
+ 200: {
10938
+ headers: {
10939
+ [name: string]: unknown;
10940
+ };
10941
+ content: {
10942
+ "application/json": components["schemas"]["MeBody"];
10943
+ };
10944
+ };
10945
+ /** @description Error */
10946
+ default: {
10947
+ headers: {
10948
+ [name: string]: unknown;
10949
+ };
10950
+ content: {
10951
+ "application/problem+json": components["schemas"]["ErrorModel"];
10952
+ };
10953
+ };
10954
+ };
10955
+ };
10956
+ "list-passkeys": {
10957
+ parameters: {
10958
+ query?: never;
10959
+ header?: never;
10960
+ path?: never;
10961
+ cookie?: never;
10962
+ };
10963
+ requestBody?: never;
10964
+ responses: {
10965
+ /** @description OK */
10966
+ 200: {
10967
+ headers: {
10968
+ [name: string]: unknown;
10969
+ };
10970
+ content: {
10971
+ "application/json": components["schemas"]["PasskeyView"][];
10972
+ };
10973
+ };
10974
+ /** @description Error */
10975
+ default: {
10976
+ headers: {
10977
+ [name: string]: unknown;
10978
+ };
10979
+ content: {
10980
+ "application/problem+json": components["schemas"]["ErrorModel"];
10981
+ };
10982
+ };
10983
+ };
10984
+ };
10985
+ "add-passkey": {
10986
+ parameters: {
10987
+ query?: never;
10988
+ header?: never;
10989
+ path?: never;
10990
+ cookie?: never;
10991
+ };
10992
+ requestBody: {
10993
+ content: {
10994
+ "application/json": components["schemas"]["PasskeyAddInputBody"];
10995
+ };
10996
+ };
10997
+ responses: {
10998
+ /** @description Created */
10999
+ 201: {
11000
+ headers: {
11001
+ [name: string]: unknown;
11002
+ };
11003
+ content: {
11004
+ "application/json": components["schemas"]["PasskeyView"];
11005
+ };
11006
+ };
11007
+ /** @description Error */
11008
+ default: {
11009
+ headers: {
11010
+ [name: string]: unknown;
11011
+ };
11012
+ content: {
11013
+ "application/problem+json": components["schemas"]["ErrorModel"];
11014
+ };
11015
+ };
11016
+ };
11017
+ };
11018
+ "passkey-begin": {
11019
+ parameters: {
11020
+ query?: never;
11021
+ header?: never;
11022
+ path?: never;
11023
+ cookie?: never;
11024
+ };
11025
+ requestBody: {
11026
+ content: {
11027
+ "application/json": components["schemas"]["PasskeyBeginInputBody"];
11028
+ };
11029
+ };
11030
+ responses: {
11031
+ /** @description OK */
11032
+ 200: {
11033
+ headers: {
11034
+ [name: string]: unknown;
11035
+ };
11036
+ content: {
11037
+ "application/json": components["schemas"]["PasskeyOptionsOutputBody"];
11038
+ };
11039
+ };
11040
+ /** @description Error */
11041
+ default: {
11042
+ headers: {
11043
+ [name: string]: unknown;
11044
+ };
11045
+ content: {
11046
+ "application/problem+json": components["schemas"]["ErrorModel"];
11047
+ };
11048
+ };
11049
+ };
11050
+ };
11051
+ "delete-passkey": {
11052
+ parameters: {
11053
+ query?: never;
11054
+ header?: never;
11055
+ path: {
11056
+ id: number;
11057
+ };
11058
+ cookie?: never;
11059
+ };
11060
+ requestBody?: never;
11061
+ responses: {
11062
+ /** @description No Content */
11063
+ 204: {
11064
+ headers: {
11065
+ [name: string]: unknown;
11066
+ };
11067
+ content?: never;
11068
+ };
11069
+ /** @description Error */
11070
+ default: {
11071
+ headers: {
11072
+ [name: string]: unknown;
11073
+ };
11074
+ content: {
11075
+ "application/problem+json": components["schemas"]["ErrorModel"];
11076
+ };
11077
+ };
11078
+ };
11079
+ };
11080
+ "change-password": {
11081
+ parameters: {
11082
+ query?: never;
11083
+ header?: never;
11084
+ path?: never;
11085
+ cookie?: never;
11086
+ };
11087
+ requestBody: {
11088
+ content: {
11089
+ "application/json": components["schemas"]["PasswordInputBody"];
11090
+ };
11091
+ };
11092
+ responses: {
11093
+ /** @description No Content */
11094
+ 204: {
11095
+ headers: {
11096
+ [name: string]: unknown;
11097
+ };
11098
+ content?: never;
9153
11099
  };
9154
11100
  /** @description Error */
9155
11101
  default: {
@@ -9162,26 +11108,22 @@ export interface operations {
9162
11108
  };
9163
11109
  };
9164
11110
  };
9165
- "create-api-key": {
11111
+ "list-sessions": {
9166
11112
  parameters: {
9167
11113
  query?: never;
9168
11114
  header?: never;
9169
11115
  path?: never;
9170
11116
  cookie?: never;
9171
11117
  };
9172
- requestBody: {
9173
- content: {
9174
- "application/json": components["schemas"]["CreateAPIKeyInputBody"];
9175
- };
9176
- };
11118
+ requestBody?: never;
9177
11119
  responses: {
9178
- /** @description Created */
9179
- 201: {
11120
+ /** @description OK */
11121
+ 200: {
9180
11122
  headers: {
9181
11123
  [name: string]: unknown;
9182
11124
  };
9183
11125
  content: {
9184
- "application/json": components["schemas"]["CreateAPIKeyOutputBody"];
11126
+ "application/json": components["schemas"]["SessionView"][];
9185
11127
  };
9186
11128
  };
9187
11129
  /** @description Error */
@@ -9195,12 +11137,12 @@ export interface operations {
9195
11137
  };
9196
11138
  };
9197
11139
  };
9198
- "delete-api-key": {
11140
+ "revoke-session": {
9199
11141
  parameters: {
9200
11142
  query?: never;
9201
11143
  header?: never;
9202
11144
  path: {
9203
- id: number;
11145
+ id: string;
9204
11146
  };
9205
11147
  cookie?: never;
9206
11148
  };
@@ -9224,27 +11166,25 @@ export interface operations {
9224
11166
  };
9225
11167
  };
9226
11168
  };
9227
- "list-audit": {
11169
+ "totp-disable": {
9228
11170
  parameters: {
9229
- query?: {
9230
- /** @description Записи до этого номера; 0 — самые новые */
9231
- before?: number;
9232
- limit?: number;
9233
- };
11171
+ query?: never;
9234
11172
  header?: never;
9235
11173
  path?: never;
9236
11174
  cookie?: never;
9237
11175
  };
9238
- requestBody?: never;
11176
+ requestBody: {
11177
+ content: {
11178
+ "application/json": components["schemas"]["TotpDisableInputBody"];
11179
+ };
11180
+ };
9239
11181
  responses: {
9240
- /** @description OK */
9241
- 200: {
11182
+ /** @description No Content */
11183
+ 204: {
9242
11184
  headers: {
9243
11185
  [name: string]: unknown;
9244
11186
  };
9245
- content: {
9246
- "application/json": components["schemas"]["AuditOutputBody"];
9247
- };
11187
+ content?: never;
9248
11188
  };
9249
11189
  /** @description Error */
9250
11190
  default: {
@@ -9257,7 +11197,7 @@ export interface operations {
9257
11197
  };
9258
11198
  };
9259
11199
  };
9260
- login: {
11200
+ "totp-enable": {
9261
11201
  parameters: {
9262
11202
  query?: never;
9263
11203
  header?: never;
@@ -9266,18 +11206,17 @@ export interface operations {
9266
11206
  };
9267
11207
  requestBody: {
9268
11208
  content: {
9269
- "application/json": components["schemas"]["LoginInputBody"];
11209
+ "application/json": components["schemas"]["TotpCodeInputBody"];
9270
11210
  };
9271
11211
  };
9272
11212
  responses: {
9273
11213
  /** @description OK */
9274
11214
  200: {
9275
11215
  headers: {
9276
- "Set-Cookie"?: string;
9277
11216
  [name: string]: unknown;
9278
11217
  };
9279
11218
  content: {
9280
- "application/json": components["schemas"]["MeBody"];
11219
+ "application/json": components["schemas"]["RecoveryOutputBody"];
9281
11220
  };
9282
11221
  };
9283
11222
  /** @description Error */
@@ -9291,7 +11230,7 @@ export interface operations {
9291
11230
  };
9292
11231
  };
9293
11232
  };
9294
- "passkey-login": {
11233
+ "totp-setup": {
9295
11234
  parameters: {
9296
11235
  query?: never;
9297
11236
  header?: never;
@@ -9300,18 +11239,17 @@ export interface operations {
9300
11239
  };
9301
11240
  requestBody: {
9302
11241
  content: {
9303
- "application/json": components["schemas"]["PasskeyLoginInputBody"];
11242
+ "application/json": components["schemas"]["TotpSetupInputBody"];
9304
11243
  };
9305
11244
  };
9306
11245
  responses: {
9307
11246
  /** @description OK */
9308
11247
  200: {
9309
11248
  headers: {
9310
- "Set-Cookie"?: string;
9311
11249
  [name: string]: unknown;
9312
11250
  };
9313
11251
  content: {
9314
- "application/json": components["schemas"]["MeBody"];
11252
+ "application/json": components["schemas"]["TotpSetupOutputBody"];
9315
11253
  };
9316
11254
  };
9317
11255
  /** @description Error */
@@ -9325,7 +11263,7 @@ export interface operations {
9325
11263
  };
9326
11264
  };
9327
11265
  };
9328
- "passkey-login-begin": {
11266
+ "list-balance": {
9329
11267
  parameters: {
9330
11268
  query?: never;
9331
11269
  header?: never;
@@ -9340,7 +11278,7 @@ export interface operations {
9340
11278
  [name: string]: unknown;
9341
11279
  };
9342
11280
  content: {
9343
- "application/json": components["schemas"]["PasskeyLoginBeginOutputBody"];
11281
+ "application/json": components["schemas"]["BalanceGroupView"][];
9344
11282
  };
9345
11283
  };
9346
11284
  /** @description Error */
@@ -9354,22 +11292,25 @@ export interface operations {
9354
11292
  };
9355
11293
  };
9356
11294
  };
9357
- logout: {
11295
+ "redistribute-balance": {
9358
11296
  parameters: {
9359
11297
  query?: never;
9360
11298
  header?: never;
9361
- path?: never;
11299
+ path: {
11300
+ group: string;
11301
+ };
9362
11302
  cookie?: never;
9363
11303
  };
9364
11304
  requestBody?: never;
9365
11305
  responses: {
9366
- /** @description No Content */
9367
- 204: {
11306
+ /** @description OK */
11307
+ 200: {
9368
11308
  headers: {
9369
- "Set-Cookie"?: string;
9370
11309
  [name: string]: unknown;
9371
11310
  };
9372
- content?: never;
11311
+ content: {
11312
+ "application/json": components["schemas"]["RedistributeOutputBody"];
11313
+ };
9373
11314
  };
9374
11315
  /** @description Error */
9375
11316
  default: {
@@ -9382,11 +11323,13 @@ export interface operations {
9382
11323
  };
9383
11324
  };
9384
11325
  };
9385
- me: {
11326
+ "get-balance": {
9386
11327
  parameters: {
9387
11328
  query?: never;
9388
11329
  header?: never;
9389
- path?: never;
11330
+ path: {
11331
+ tg_id: number;
11332
+ };
9390
11333
  cookie?: never;
9391
11334
  };
9392
11335
  requestBody?: never;
@@ -9397,7 +11340,7 @@ export interface operations {
9397
11340
  [name: string]: unknown;
9398
11341
  };
9399
11342
  content: {
9400
- "application/json": components["schemas"]["MeBody"];
11343
+ "application/json": components["schemas"]["BalanceView"];
9401
11344
  };
9402
11345
  };
9403
11346
  /** @description Error */
@@ -9411,14 +11354,20 @@ export interface operations {
9411
11354
  };
9412
11355
  };
9413
11356
  };
9414
- "list-passkeys": {
11357
+ "adjust-balance": {
9415
11358
  parameters: {
9416
11359
  query?: never;
9417
11360
  header?: never;
9418
- path?: never;
11361
+ path: {
11362
+ tg_id: number;
11363
+ };
9419
11364
  cookie?: never;
9420
11365
  };
9421
- requestBody?: never;
11366
+ requestBody: {
11367
+ content: {
11368
+ "application/json": components["schemas"]["AdjustBalanceInputBody"];
11369
+ };
11370
+ };
9422
11371
  responses: {
9423
11372
  /** @description OK */
9424
11373
  200: {
@@ -9426,7 +11375,7 @@ export interface operations {
9426
11375
  [name: string]: unknown;
9427
11376
  };
9428
11377
  content: {
9429
- "application/json": components["schemas"]["PasskeyView"][];
11378
+ "application/json": components["schemas"]["BalanceView"];
9430
11379
  };
9431
11380
  };
9432
11381
  /** @description Error */
@@ -9440,26 +11389,25 @@ export interface operations {
9440
11389
  };
9441
11390
  };
9442
11391
  };
9443
- "add-passkey": {
11392
+ "list-campaigns": {
9444
11393
  parameters: {
9445
- query?: never;
11394
+ query?: {
11395
+ /** @description За сколько дней статистика; 0 — за всё время */
11396
+ days?: number;
11397
+ };
9446
11398
  header?: never;
9447
11399
  path?: never;
9448
11400
  cookie?: never;
9449
11401
  };
9450
- requestBody: {
9451
- content: {
9452
- "application/json": components["schemas"]["PasskeyAddInputBody"];
9453
- };
9454
- };
11402
+ requestBody?: never;
9455
11403
  responses: {
9456
- /** @description Created */
9457
- 201: {
11404
+ /** @description OK */
11405
+ 200: {
9458
11406
  headers: {
9459
11407
  [name: string]: unknown;
9460
11408
  };
9461
11409
  content: {
9462
- "application/json": components["schemas"]["PasskeyView"];
11410
+ "application/json": components["schemas"]["CampaignView"][];
9463
11411
  };
9464
11412
  };
9465
11413
  /** @description Error */
@@ -9473,7 +11421,7 @@ export interface operations {
9473
11421
  };
9474
11422
  };
9475
11423
  };
9476
- "passkey-begin": {
11424
+ "create-campaign": {
9477
11425
  parameters: {
9478
11426
  query?: never;
9479
11427
  header?: never;
@@ -9482,17 +11430,17 @@ export interface operations {
9482
11430
  };
9483
11431
  requestBody: {
9484
11432
  content: {
9485
- "application/json": components["schemas"]["PasskeyBeginInputBody"];
11433
+ "application/json": components["schemas"]["CreateCampaignInputBody"];
9486
11434
  };
9487
11435
  };
9488
11436
  responses: {
9489
- /** @description OK */
9490
- 200: {
11437
+ /** @description Created */
11438
+ 201: {
9491
11439
  headers: {
9492
11440
  [name: string]: unknown;
9493
11441
  };
9494
11442
  content: {
9495
- "application/json": components["schemas"]["PasskeyOptionsOutputBody"];
11443
+ "application/json": components["schemas"]["CampaignView"];
9496
11444
  };
9497
11445
  };
9498
11446
  /** @description Error */
@@ -9506,7 +11454,7 @@ export interface operations {
9506
11454
  };
9507
11455
  };
9508
11456
  };
9509
- "delete-passkey": {
11457
+ "delete-campaign": {
9510
11458
  parameters: {
9511
11459
  query?: never;
9512
11460
  header?: never;
@@ -9535,25 +11483,29 @@ export interface operations {
9535
11483
  };
9536
11484
  };
9537
11485
  };
9538
- "change-password": {
11486
+ "update-campaign": {
9539
11487
  parameters: {
9540
11488
  query?: never;
9541
11489
  header?: never;
9542
- path?: never;
11490
+ path: {
11491
+ id: number;
11492
+ };
9543
11493
  cookie?: never;
9544
11494
  };
9545
11495
  requestBody: {
9546
11496
  content: {
9547
- "application/json": components["schemas"]["PasswordInputBody"];
11497
+ "application/json": components["schemas"]["PatchCampaignInputBody"];
9548
11498
  };
9549
11499
  };
9550
11500
  responses: {
9551
- /** @description No Content */
9552
- 204: {
11501
+ /** @description OK */
11502
+ 200: {
9553
11503
  headers: {
9554
11504
  [name: string]: unknown;
9555
11505
  };
9556
- content?: never;
11506
+ content: {
11507
+ "application/json": components["schemas"]["CampaignView"];
11508
+ };
9557
11509
  };
9558
11510
  /** @description Error */
9559
11511
  default: {
@@ -9566,7 +11518,7 @@ export interface operations {
9566
11518
  };
9567
11519
  };
9568
11520
  };
9569
- "list-sessions": {
11521
+ "list-custom-fields": {
9570
11522
  parameters: {
9571
11523
  query?: never;
9572
11524
  header?: never;
@@ -9581,7 +11533,7 @@ export interface operations {
9581
11533
  [name: string]: unknown;
9582
11534
  };
9583
11535
  content: {
9584
- "application/json": components["schemas"]["SessionView"][];
11536
+ "application/json": components["schemas"]["CustomFieldView"][];
9585
11537
  };
9586
11538
  };
9587
11539
  /** @description Error */
@@ -9595,23 +11547,27 @@ export interface operations {
9595
11547
  };
9596
11548
  };
9597
11549
  };
9598
- "revoke-session": {
11550
+ "create-custom-field": {
9599
11551
  parameters: {
9600
11552
  query?: never;
9601
11553
  header?: never;
9602
- path: {
9603
- id: string;
9604
- };
11554
+ path?: never;
9605
11555
  cookie?: never;
9606
11556
  };
9607
- requestBody?: never;
11557
+ requestBody: {
11558
+ content: {
11559
+ "application/json": components["schemas"]["CreateCustomFieldInputBody"];
11560
+ };
11561
+ };
9608
11562
  responses: {
9609
- /** @description No Content */
9610
- 204: {
11563
+ /** @description Created */
11564
+ 201: {
9611
11565
  headers: {
9612
11566
  [name: string]: unknown;
9613
11567
  };
9614
- content?: never;
11568
+ content: {
11569
+ "application/json": components["schemas"]["CustomFieldView"];
11570
+ };
9615
11571
  };
9616
11572
  /** @description Error */
9617
11573
  default: {
@@ -9624,7 +11580,7 @@ export interface operations {
9624
11580
  };
9625
11581
  };
9626
11582
  };
9627
- "totp-disable": {
11583
+ "order-custom-fields": {
9628
11584
  parameters: {
9629
11585
  query?: never;
9630
11586
  header?: never;
@@ -9633,7 +11589,7 @@ export interface operations {
9633
11589
  };
9634
11590
  requestBody: {
9635
11591
  content: {
9636
- "application/json": components["schemas"]["TotpDisableInputBody"];
11592
+ "application/json": components["schemas"]["OrderCustomFieldsInputBody"];
9637
11593
  };
9638
11594
  };
9639
11595
  responses: {
@@ -9655,27 +11611,23 @@ export interface operations {
9655
11611
  };
9656
11612
  };
9657
11613
  };
9658
- "totp-enable": {
11614
+ "delete-custom-field": {
9659
11615
  parameters: {
9660
11616
  query?: never;
9661
11617
  header?: never;
9662
- path?: never;
9663
- cookie?: never;
9664
- };
9665
- requestBody: {
9666
- content: {
9667
- "application/json": components["schemas"]["TotpCodeInputBody"];
11618
+ path: {
11619
+ id: number;
9668
11620
  };
11621
+ cookie?: never;
9669
11622
  };
11623
+ requestBody?: never;
9670
11624
  responses: {
9671
- /** @description OK */
9672
- 200: {
11625
+ /** @description No Content */
11626
+ 204: {
9673
11627
  headers: {
9674
11628
  [name: string]: unknown;
9675
11629
  };
9676
- content: {
9677
- "application/json": components["schemas"]["RecoveryOutputBody"];
9678
- };
11630
+ content?: never;
9679
11631
  };
9680
11632
  /** @description Error */
9681
11633
  default: {
@@ -9688,16 +11640,18 @@ export interface operations {
9688
11640
  };
9689
11641
  };
9690
11642
  };
9691
- "totp-setup": {
11643
+ "update-custom-field": {
9692
11644
  parameters: {
9693
11645
  query?: never;
9694
11646
  header?: never;
9695
- path?: never;
11647
+ path: {
11648
+ id: number;
11649
+ };
9696
11650
  cookie?: never;
9697
11651
  };
9698
11652
  requestBody: {
9699
11653
  content: {
9700
- "application/json": components["schemas"]["TotpSetupInputBody"];
11654
+ "application/json": components["schemas"]["PatchCustomFieldInputBody"];
9701
11655
  };
9702
11656
  };
9703
11657
  responses: {
@@ -9707,7 +11661,7 @@ export interface operations {
9707
11661
  [name: string]: unknown;
9708
11662
  };
9709
11663
  content: {
9710
- "application/json": components["schemas"]["TotpSetupOutputBody"];
11664
+ "application/json": components["schemas"]["CustomFieldView"];
9711
11665
  };
9712
11666
  };
9713
11667
  /** @description Error */
@@ -9721,7 +11675,7 @@ export interface operations {
9721
11675
  };
9722
11676
  };
9723
11677
  };
9724
- "list-balance": {
11678
+ "get-exit-dns": {
9725
11679
  parameters: {
9726
11680
  query?: never;
9727
11681
  header?: never;
@@ -9736,7 +11690,7 @@ export interface operations {
9736
11690
  [name: string]: unknown;
9737
11691
  };
9738
11692
  content: {
9739
- "application/json": components["schemas"]["BalanceGroupView"][];
11693
+ "application/json": components["schemas"]["ExitDNSInfo"];
9740
11694
  };
9741
11695
  };
9742
11696
  /** @description Error */
@@ -9750,16 +11704,18 @@ export interface operations {
9750
11704
  };
9751
11705
  };
9752
11706
  };
9753
- "redistribute-balance": {
11707
+ "update-exit-dns": {
9754
11708
  parameters: {
9755
11709
  query?: never;
9756
11710
  header?: never;
9757
- path: {
9758
- group: string;
9759
- };
11711
+ path?: never;
9760
11712
  cookie?: never;
9761
11713
  };
9762
- requestBody?: never;
11714
+ requestBody: {
11715
+ content: {
11716
+ "application/json": components["schemas"]["ExitDNSView"];
11717
+ };
11718
+ };
9763
11719
  responses: {
9764
11720
  /** @description OK */
9765
11721
  200: {
@@ -9767,7 +11723,7 @@ export interface operations {
9767
11723
  [name: string]: unknown;
9768
11724
  };
9769
11725
  content: {
9770
- "application/json": components["schemas"]["RedistributeOutputBody"];
11726
+ "application/json": components["schemas"]["ExitDNSInfo"];
9771
11727
  };
9772
11728
  };
9773
11729
  /** @description Error */
@@ -9781,13 +11737,11 @@ export interface operations {
9781
11737
  };
9782
11738
  };
9783
11739
  };
9784
- "get-balance": {
11740
+ "get-filters": {
9785
11741
  parameters: {
9786
11742
  query?: never;
9787
11743
  header?: never;
9788
- path: {
9789
- tg_id: number;
9790
- };
11744
+ path?: never;
9791
11745
  cookie?: never;
9792
11746
  };
9793
11747
  requestBody?: never;
@@ -9798,7 +11752,7 @@ export interface operations {
9798
11752
  [name: string]: unknown;
9799
11753
  };
9800
11754
  content: {
9801
- "application/json": components["schemas"]["BalanceView"];
11755
+ "application/json": components["schemas"]["FiltersView"];
9802
11756
  };
9803
11757
  };
9804
11758
  /** @description Error */
@@ -9812,20 +11766,47 @@ export interface operations {
9812
11766
  };
9813
11767
  };
9814
11768
  };
9815
- "adjust-balance": {
11769
+ "update-filters": {
9816
11770
  parameters: {
9817
11771
  query?: never;
9818
11772
  header?: never;
9819
- path: {
9820
- tg_id: number;
9821
- };
11773
+ path?: never;
9822
11774
  cookie?: never;
9823
11775
  };
9824
11776
  requestBody: {
9825
11777
  content: {
9826
- "application/json": components["schemas"]["AdjustBalanceInputBody"];
11778
+ "application/json": components["schemas"]["PatchFiltersInputBody"];
11779
+ };
11780
+ };
11781
+ responses: {
11782
+ /** @description OK */
11783
+ 200: {
11784
+ headers: {
11785
+ [name: string]: unknown;
11786
+ };
11787
+ content: {
11788
+ "application/json": components["schemas"]["FiltersView"];
11789
+ };
11790
+ };
11791
+ /** @description Error */
11792
+ default: {
11793
+ headers: {
11794
+ [name: string]: unknown;
11795
+ };
11796
+ content: {
11797
+ "application/problem+json": components["schemas"]["ErrorModel"];
11798
+ };
9827
11799
  };
9828
11800
  };
11801
+ };
11802
+ "list-folders": {
11803
+ parameters: {
11804
+ query?: never;
11805
+ header?: never;
11806
+ path?: never;
11807
+ cookie?: never;
11808
+ };
11809
+ requestBody?: never;
9829
11810
  responses: {
9830
11811
  /** @description OK */
9831
11812
  200: {
@@ -9833,7 +11814,7 @@ export interface operations {
9833
11814
  [name: string]: unknown;
9834
11815
  };
9835
11816
  content: {
9836
- "application/json": components["schemas"]["BalanceView"];
11817
+ "application/json": components["schemas"]["FolderView"][];
9837
11818
  };
9838
11819
  };
9839
11820
  /** @description Error */
@@ -9847,25 +11828,26 @@ export interface operations {
9847
11828
  };
9848
11829
  };
9849
11830
  };
9850
- "list-campaigns": {
11831
+ "create-folder": {
9851
11832
  parameters: {
9852
- query?: {
9853
- /** @description За сколько дней статистика; 0 — за всё время */
9854
- days?: number;
9855
- };
11833
+ query?: never;
9856
11834
  header?: never;
9857
11835
  path?: never;
9858
11836
  cookie?: never;
9859
11837
  };
9860
- requestBody?: never;
11838
+ requestBody: {
11839
+ content: {
11840
+ "application/json": components["schemas"]["CreateFolderInputBody"];
11841
+ };
11842
+ };
9861
11843
  responses: {
9862
- /** @description OK */
9863
- 200: {
11844
+ /** @description Created */
11845
+ 201: {
9864
11846
  headers: {
9865
11847
  [name: string]: unknown;
9866
11848
  };
9867
11849
  content: {
9868
- "application/json": components["schemas"]["CampaignView"][];
11850
+ "application/json": components["schemas"]["FolderView"];
9869
11851
  };
9870
11852
  };
9871
11853
  /** @description Error */
@@ -9879,7 +11861,7 @@ export interface operations {
9879
11861
  };
9880
11862
  };
9881
11863
  };
9882
- "create-campaign": {
11864
+ "order-folders": {
9883
11865
  parameters: {
9884
11866
  query?: never;
9885
11867
  header?: never;
@@ -9888,18 +11870,16 @@ export interface operations {
9888
11870
  };
9889
11871
  requestBody: {
9890
11872
  content: {
9891
- "application/json": components["schemas"]["CreateCampaignInputBody"];
11873
+ "application/json": components["schemas"]["OrderFoldersInputBody"];
9892
11874
  };
9893
11875
  };
9894
11876
  responses: {
9895
- /** @description Created */
9896
- 201: {
11877
+ /** @description No Content */
11878
+ 204: {
9897
11879
  headers: {
9898
11880
  [name: string]: unknown;
9899
11881
  };
9900
- content: {
9901
- "application/json": components["schemas"]["CampaignView"];
9902
- };
11882
+ content?: never;
9903
11883
  };
9904
11884
  /** @description Error */
9905
11885
  default: {
@@ -9912,7 +11892,7 @@ export interface operations {
9912
11892
  };
9913
11893
  };
9914
11894
  };
9915
- "delete-campaign": {
11895
+ "delete-folder": {
9916
11896
  parameters: {
9917
11897
  query?: never;
9918
11898
  header?: never;
@@ -9941,7 +11921,7 @@ export interface operations {
9941
11921
  };
9942
11922
  };
9943
11923
  };
9944
- "update-campaign": {
11924
+ "update-folder": {
9945
11925
  parameters: {
9946
11926
  query?: never;
9947
11927
  header?: never;
@@ -9952,7 +11932,7 @@ export interface operations {
9952
11932
  };
9953
11933
  requestBody: {
9954
11934
  content: {
9955
- "application/json": components["schemas"]["PatchCampaignInputBody"];
11935
+ "application/json": components["schemas"]["PatchFolderInputBody"];
9956
11936
  };
9957
11937
  };
9958
11938
  responses: {
@@ -9962,7 +11942,7 @@ export interface operations {
9962
11942
  [name: string]: unknown;
9963
11943
  };
9964
11944
  content: {
9965
- "application/json": components["schemas"]["CampaignView"];
11945
+ "application/json": components["schemas"]["FolderView"];
9966
11946
  };
9967
11947
  };
9968
11948
  /** @description Error */
@@ -9976,7 +11956,7 @@ export interface operations {
9976
11956
  };
9977
11957
  };
9978
11958
  };
9979
- "get-exit-dns": {
11959
+ "list-groups": {
9980
11960
  parameters: {
9981
11961
  query?: never;
9982
11962
  header?: never;
@@ -9991,7 +11971,7 @@ export interface operations {
9991
11971
  [name: string]: unknown;
9992
11972
  };
9993
11973
  content: {
9994
- "application/json": components["schemas"]["ExitDNSInfo"];
11974
+ "application/json": components["schemas"]["GroupView"][];
9995
11975
  };
9996
11976
  };
9997
11977
  /** @description Error */
@@ -10005,7 +11985,7 @@ export interface operations {
10005
11985
  };
10006
11986
  };
10007
11987
  };
10008
- "update-exit-dns": {
11988
+ "create-group": {
10009
11989
  parameters: {
10010
11990
  query?: never;
10011
11991
  header?: never;
@@ -10014,17 +11994,17 @@ export interface operations {
10014
11994
  };
10015
11995
  requestBody: {
10016
11996
  content: {
10017
- "application/json": components["schemas"]["ExitDNSView"];
11997
+ "application/json": components["schemas"]["CreateGroupInputBody"];
10018
11998
  };
10019
11999
  };
10020
12000
  responses: {
10021
- /** @description OK */
10022
- 200: {
12001
+ /** @description Created */
12002
+ 201: {
10023
12003
  headers: {
10024
12004
  [name: string]: unknown;
10025
12005
  };
10026
12006
  content: {
10027
- "application/json": components["schemas"]["ExitDNSInfo"];
12007
+ "application/json": components["schemas"]["GroupView"];
10028
12008
  };
10029
12009
  };
10030
12010
  /** @description Error */
@@ -10038,23 +12018,25 @@ export interface operations {
10038
12018
  };
10039
12019
  };
10040
12020
  };
10041
- "get-filters": {
12021
+ "order-groups": {
10042
12022
  parameters: {
10043
12023
  query?: never;
10044
12024
  header?: never;
10045
12025
  path?: never;
10046
12026
  cookie?: never;
10047
12027
  };
10048
- requestBody?: never;
12028
+ requestBody: {
12029
+ content: {
12030
+ "application/json": components["schemas"]["OrderGroupsInputBody"];
12031
+ };
12032
+ };
10049
12033
  responses: {
10050
- /** @description OK */
10051
- 200: {
12034
+ /** @description No Content */
12035
+ 204: {
10052
12036
  headers: {
10053
12037
  [name: string]: unknown;
10054
12038
  };
10055
- content: {
10056
- "application/json": components["schemas"]["FiltersView"];
10057
- };
12039
+ content?: never;
10058
12040
  };
10059
12041
  /** @description Error */
10060
12042
  default: {
@@ -10067,27 +12049,23 @@ export interface operations {
10067
12049
  };
10068
12050
  };
10069
12051
  };
10070
- "update-filters": {
12052
+ "delete-group": {
10071
12053
  parameters: {
10072
12054
  query?: never;
10073
12055
  header?: never;
10074
- path?: never;
10075
- cookie?: never;
10076
- };
10077
- requestBody: {
10078
- content: {
10079
- "application/json": components["schemas"]["PatchFiltersInputBody"];
12056
+ path: {
12057
+ id: number;
10080
12058
  };
12059
+ cookie?: never;
10081
12060
  };
12061
+ requestBody?: never;
10082
12062
  responses: {
10083
- /** @description OK */
10084
- 200: {
12063
+ /** @description No Content */
12064
+ 204: {
10085
12065
  headers: {
10086
12066
  [name: string]: unknown;
10087
12067
  };
10088
- content: {
10089
- "application/json": components["schemas"]["FiltersView"];
10090
- };
12068
+ content?: never;
10091
12069
  };
10092
12070
  /** @description Error */
10093
12071
  default: {
@@ -10100,14 +12078,20 @@ export interface operations {
10100
12078
  };
10101
12079
  };
10102
12080
  };
10103
- "list-folders": {
12081
+ "update-group": {
10104
12082
  parameters: {
10105
12083
  query?: never;
10106
12084
  header?: never;
10107
- path?: never;
12085
+ path: {
12086
+ id: number;
12087
+ };
10108
12088
  cookie?: never;
10109
12089
  };
10110
- requestBody?: never;
12090
+ requestBody: {
12091
+ content: {
12092
+ "application/json": components["schemas"]["PatchGroupInputBody"];
12093
+ };
12094
+ };
10111
12095
  responses: {
10112
12096
  /** @description OK */
10113
12097
  200: {
@@ -10115,7 +12099,7 @@ export interface operations {
10115
12099
  [name: string]: unknown;
10116
12100
  };
10117
12101
  content: {
10118
- "application/json": components["schemas"]["FolderView"][];
12102
+ "application/json": components["schemas"]["GroupView"];
10119
12103
  };
10120
12104
  };
10121
12105
  /** @description Error */
@@ -10129,26 +12113,24 @@ export interface operations {
10129
12113
  };
10130
12114
  };
10131
12115
  };
10132
- "create-folder": {
12116
+ "get-group-page": {
10133
12117
  parameters: {
10134
12118
  query?: never;
10135
12119
  header?: never;
10136
- path?: never;
10137
- cookie?: never;
10138
- };
10139
- requestBody: {
10140
- content: {
10141
- "application/json": components["schemas"]["CreateFolderInputBody"];
12120
+ path: {
12121
+ id: number;
10142
12122
  };
12123
+ cookie?: never;
10143
12124
  };
12125
+ requestBody?: never;
10144
12126
  responses: {
10145
- /** @description Created */
10146
- 201: {
12127
+ /** @description OK */
12128
+ 200: {
10147
12129
  headers: {
10148
12130
  [name: string]: unknown;
10149
12131
  };
10150
12132
  content: {
10151
- "application/json": components["schemas"]["FolderView"];
12133
+ "application/json": components["schemas"]["GroupPageView"];
10152
12134
  };
10153
12135
  };
10154
12136
  /** @description Error */
@@ -10162,25 +12144,29 @@ export interface operations {
10162
12144
  };
10163
12145
  };
10164
12146
  };
10165
- "order-folders": {
12147
+ "put-group-page": {
10166
12148
  parameters: {
10167
12149
  query?: never;
10168
12150
  header?: never;
10169
- path?: never;
12151
+ path: {
12152
+ id: number;
12153
+ };
10170
12154
  cookie?: never;
10171
12155
  };
10172
12156
  requestBody: {
10173
12157
  content: {
10174
- "application/json": components["schemas"]["OrderFoldersInputBody"];
12158
+ "application/json": components["schemas"]["PutGroupPageInputBody"];
10175
12159
  };
10176
12160
  };
10177
12161
  responses: {
10178
- /** @description No Content */
10179
- 204: {
12162
+ /** @description OK */
12163
+ 200: {
10180
12164
  headers: {
10181
12165
  [name: string]: unknown;
10182
12166
  };
10183
- content?: never;
12167
+ content: {
12168
+ "application/json": components["schemas"]["GroupPageView"];
12169
+ };
10184
12170
  };
10185
12171
  /** @description Error */
10186
12172
  default: {
@@ -10193,7 +12179,7 @@ export interface operations {
10193
12179
  };
10194
12180
  };
10195
12181
  };
10196
- "delete-folder": {
12182
+ "delete-group-page": {
10197
12183
  parameters: {
10198
12184
  query?: never;
10199
12185
  header?: never;
@@ -10222,28 +12208,26 @@ export interface operations {
10222
12208
  };
10223
12209
  };
10224
12210
  };
10225
- "update-folder": {
12211
+ "import-run": {
10226
12212
  parameters: {
10227
12213
  query?: never;
10228
12214
  header?: never;
10229
- path: {
10230
- id: number;
10231
- };
12215
+ path?: never;
10232
12216
  cookie?: never;
10233
12217
  };
10234
12218
  requestBody: {
10235
12219
  content: {
10236
- "application/json": components["schemas"]["PatchFolderInputBody"];
12220
+ "application/json": components["schemas"]["ImportRunInputBody"];
10237
12221
  };
10238
12222
  };
10239
12223
  responses: {
10240
- /** @description OK */
10241
- 200: {
12224
+ /** @description Accepted */
12225
+ 202: {
10242
12226
  headers: {
10243
12227
  [name: string]: unknown;
10244
12228
  };
10245
12229
  content: {
10246
- "application/json": components["schemas"]["FolderView"];
12230
+ "application/json": components["schemas"]["JobState"];
10247
12231
  };
10248
12232
  };
10249
12233
  /** @description Error */
@@ -10257,27 +12241,21 @@ export interface operations {
10257
12241
  };
10258
12242
  };
10259
12243
  };
10260
- "import-run": {
12244
+ "import-cancel": {
10261
12245
  parameters: {
10262
12246
  query?: never;
10263
12247
  header?: never;
10264
12248
  path?: never;
10265
12249
  cookie?: never;
10266
12250
  };
10267
- requestBody: {
10268
- content: {
10269
- "application/json": components["schemas"]["ImportRunInputBody"];
10270
- };
10271
- };
12251
+ requestBody?: never;
10272
12252
  responses: {
10273
- /** @description Accepted */
10274
- 202: {
12253
+ /** @description No Content */
12254
+ 204: {
10275
12255
  headers: {
10276
12256
  [name: string]: unknown;
10277
12257
  };
10278
- content: {
10279
- "application/json": components["schemas"]["JobState"];
10280
- };
12258
+ content?: never;
10281
12259
  };
10282
12260
  /** @description Error */
10283
12261
  default: {
@@ -10290,21 +12268,27 @@ export interface operations {
10290
12268
  };
10291
12269
  };
10292
12270
  };
10293
- "import-cancel": {
12271
+ "import-bot": {
10294
12272
  parameters: {
10295
12273
  query?: never;
10296
12274
  header?: never;
10297
12275
  path?: never;
10298
12276
  cookie?: never;
10299
12277
  };
10300
- requestBody?: never;
12278
+ requestBody: {
12279
+ content: {
12280
+ "application/json": components["schemas"]["ImportBotInputBody"];
12281
+ };
12282
+ };
10301
12283
  responses: {
10302
- /** @description No Content */
10303
- 204: {
12284
+ /** @description Accepted */
12285
+ 202: {
10304
12286
  headers: {
10305
12287
  [name: string]: unknown;
10306
12288
  };
10307
- content?: never;
12289
+ content: {
12290
+ "application/json": components["schemas"]["JobState"];
12291
+ };
10308
12292
  };
10309
12293
  /** @description Error */
10310
12294
  default: {
@@ -10572,6 +12556,66 @@ export interface operations {
10572
12556
  };
10573
12557
  };
10574
12558
  };
12559
+ "list-server-order": {
12560
+ parameters: {
12561
+ query?: never;
12562
+ header?: never;
12563
+ path?: never;
12564
+ cookie?: never;
12565
+ };
12566
+ requestBody?: never;
12567
+ responses: {
12568
+ /** @description OK */
12569
+ 200: {
12570
+ headers: {
12571
+ [name: string]: unknown;
12572
+ };
12573
+ content: {
12574
+ "application/json": components["schemas"]["SubOrderItem"][];
12575
+ };
12576
+ };
12577
+ /** @description Error */
12578
+ default: {
12579
+ headers: {
12580
+ [name: string]: unknown;
12581
+ };
12582
+ content: {
12583
+ "application/problem+json": components["schemas"]["ErrorModel"];
12584
+ };
12585
+ };
12586
+ };
12587
+ };
12588
+ "order-servers": {
12589
+ parameters: {
12590
+ query?: never;
12591
+ header?: never;
12592
+ path?: never;
12593
+ cookie?: never;
12594
+ };
12595
+ requestBody: {
12596
+ content: {
12597
+ "application/json": components["schemas"]["OrderServersInputBody"];
12598
+ };
12599
+ };
12600
+ responses: {
12601
+ /** @description No Content */
12602
+ 204: {
12603
+ headers: {
12604
+ [name: string]: unknown;
12605
+ };
12606
+ content?: never;
12607
+ };
12608
+ /** @description Error */
12609
+ default: {
12610
+ headers: {
12611
+ [name: string]: unknown;
12612
+ };
12613
+ content: {
12614
+ "application/problem+json": components["schemas"]["ErrorModel"];
12615
+ };
12616
+ };
12617
+ };
12618
+ };
10575
12619
  "scan-targets": {
10576
12620
  parameters: {
10577
12621
  query?: {
@@ -15519,8 +17563,10 @@ export interface operations {
15519
17563
  q?: string;
15520
17564
  /** @description all — любая; none — вне папок; число — id папки */
15521
17565
  folder?: string;
17566
+ /** @description all — любая; none — ни в какой группе; число — id группы. Группа клиента — своя или его тарифа (effective_group_id) */
17567
+ group?: string;
15522
17568
  /** @description Откуда пользователь, см. source у пользователя */
15523
- source?: "all" | "admin" | "bot" | "trial" | "free" | "import";
17569
+ source?: "all" | "admin" | "bot" | "web" | "trial" | "free" | "import";
15524
17570
  /** @description show — вместе со скрытыми (по умолчанию: скрытие касается только списка в панели); hide — без скрытых; only — только скрытые */
15525
17571
  hidden?: "hide" | "show" | "only";
15526
17572
  limit?: number;
@@ -16454,6 +18500,41 @@ export interface operations {
16454
18500
  };
16455
18501
  };
16456
18502
  };
18503
+ "user-sub-preview": {
18504
+ parameters: {
18505
+ query?: never;
18506
+ header?: never;
18507
+ path: {
18508
+ id: number;
18509
+ };
18510
+ cookie?: never;
18511
+ };
18512
+ requestBody: {
18513
+ content: {
18514
+ "application/json": components["schemas"]["SubPreviewInputBody"];
18515
+ };
18516
+ };
18517
+ responses: {
18518
+ /** @description OK */
18519
+ 200: {
18520
+ headers: {
18521
+ [name: string]: unknown;
18522
+ };
18523
+ content: {
18524
+ "application/json": components["schemas"]["SubPreview"];
18525
+ };
18526
+ };
18527
+ /** @description Error */
18528
+ default: {
18529
+ headers: {
18530
+ [name: string]: unknown;
18531
+ };
18532
+ content: {
18533
+ "application/problem+json": components["schemas"]["ErrorModel"];
18534
+ };
18535
+ };
18536
+ };
18537
+ };
16457
18538
  "unlink-telegram": {
16458
18539
  parameters: {
16459
18540
  query?: never;