@getmikan/sdk 0.5.201-rc.6 → 0.5.201-rc.7

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 +1171 -70
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -244,6 +244,40 @@ export interface paths {
244
244
  patch?: never;
245
245
  trace?: never;
246
246
  };
247
+ "/auth/login/passkey": {
248
+ parameters: {
249
+ query?: never;
250
+ header?: never;
251
+ path?: never;
252
+ cookie?: never;
253
+ };
254
+ get?: never;
255
+ put?: never;
256
+ /** Вход по passkey */
257
+ post: operations["passkey-login"];
258
+ delete?: never;
259
+ options?: never;
260
+ head?: never;
261
+ patch?: never;
262
+ trace?: never;
263
+ };
264
+ "/auth/login/passkey/begin": {
265
+ parameters: {
266
+ query?: never;
267
+ header?: never;
268
+ path?: never;
269
+ cookie?: never;
270
+ };
271
+ get?: never;
272
+ put?: never;
273
+ /** Начать вход по passkey */
274
+ post: operations["passkey-login-begin"];
275
+ delete?: never;
276
+ options?: never;
277
+ head?: never;
278
+ patch?: never;
279
+ trace?: never;
280
+ };
247
281
  "/auth/logout": {
248
282
  parameters: {
249
283
  query?: never;
@@ -278,6 +312,58 @@ export interface paths {
278
312
  patch?: never;
279
313
  trace?: never;
280
314
  };
315
+ "/auth/passkeys": {
316
+ parameters: {
317
+ query?: never;
318
+ header?: never;
319
+ path?: never;
320
+ cookie?: never;
321
+ };
322
+ /** Ключи входа (passkey) */
323
+ get: operations["list-passkeys"];
324
+ put?: never;
325
+ /** Добавить passkey */
326
+ post: operations["add-passkey"];
327
+ delete?: never;
328
+ options?: never;
329
+ head?: never;
330
+ patch?: never;
331
+ trace?: never;
332
+ };
333
+ "/auth/passkeys/begin": {
334
+ parameters: {
335
+ query?: never;
336
+ header?: never;
337
+ path?: never;
338
+ cookie?: never;
339
+ };
340
+ get?: never;
341
+ put?: never;
342
+ /** Начать добавление passkey */
343
+ post: operations["passkey-begin"];
344
+ delete?: never;
345
+ options?: never;
346
+ head?: never;
347
+ patch?: never;
348
+ trace?: never;
349
+ };
350
+ "/auth/passkeys/{id}": {
351
+ parameters: {
352
+ query?: never;
353
+ header?: never;
354
+ path?: never;
355
+ cookie?: never;
356
+ };
357
+ get?: never;
358
+ put?: never;
359
+ post?: never;
360
+ /** Удалить passkey */
361
+ delete: operations["delete-passkey"];
362
+ options?: never;
363
+ head?: never;
364
+ patch?: never;
365
+ trace?: never;
366
+ };
281
367
  "/auth/password": {
282
368
  parameters: {
283
369
  query?: never;
@@ -779,6 +865,42 @@ export interface paths {
779
865
  patch?: never;
780
866
  trace?: never;
781
867
  };
868
+ "/inbounds/{id}/hosts": {
869
+ parameters: {
870
+ query?: never;
871
+ header?: never;
872
+ path?: never;
873
+ cookie?: never;
874
+ };
875
+ /** Адреса подключения для клиентов */
876
+ get: operations["list-inbound-hosts"];
877
+ put?: never;
878
+ /** Добавить адрес подключения */
879
+ post: operations["add-inbound-host"];
880
+ delete?: never;
881
+ options?: never;
882
+ head?: never;
883
+ patch?: never;
884
+ trace?: never;
885
+ };
886
+ "/inbounds/{id}/hosts/{host_id}": {
887
+ parameters: {
888
+ query?: never;
889
+ header?: never;
890
+ path?: never;
891
+ cookie?: never;
892
+ };
893
+ get?: never;
894
+ /** Изменить адрес подключения */
895
+ put: operations["update-inbound-host"];
896
+ post?: never;
897
+ /** Удалить адрес подключения */
898
+ delete: operations["delete-inbound-host"];
899
+ options?: never;
900
+ head?: never;
901
+ patch?: never;
902
+ trace?: never;
903
+ };
782
904
  "/lifecycle": {
783
905
  parameters: {
784
906
  query?: never;
@@ -1116,6 +1238,26 @@ export interface paths {
1116
1238
  patch?: never;
1117
1239
  trace?: never;
1118
1240
  };
1241
+ "/nodes/{id}/clients": {
1242
+ parameters: {
1243
+ query?: never;
1244
+ header?: never;
1245
+ path?: never;
1246
+ cookie?: never;
1247
+ };
1248
+ /**
1249
+ * Клиенты ноды
1250
+ * @description Кто ходил через ноду: последний раз, трафик на ней и кто в сети сейчас. Учёт идёт с версии, где он появился.
1251
+ */
1252
+ get: operations["node-clients"];
1253
+ put?: never;
1254
+ post?: never;
1255
+ delete?: never;
1256
+ options?: never;
1257
+ head?: never;
1258
+ patch?: never;
1259
+ trace?: never;
1260
+ };
1119
1261
  "/nodes/{id}/doctor": {
1120
1262
  parameters: {
1121
1263
  query?: never;
@@ -2016,6 +2158,46 @@ export interface paths {
2016
2158
  patch?: never;
2017
2159
  trace?: never;
2018
2160
  };
2161
+ "/sub-templates/ready": {
2162
+ parameters: {
2163
+ query?: never;
2164
+ header?: never;
2165
+ path?: never;
2166
+ cookie?: never;
2167
+ };
2168
+ /**
2169
+ * Готовые шаблоны подписки
2170
+ * @description Каталог, из которого редактор загружает шаблон. В базу панель их сама не кладёт.
2171
+ */
2172
+ get: operations["list-ready-sub-templates"];
2173
+ put?: never;
2174
+ post?: never;
2175
+ delete?: never;
2176
+ options?: never;
2177
+ head?: never;
2178
+ patch?: never;
2179
+ trace?: never;
2180
+ };
2181
+ "/sub-templates/ready/{id}": {
2182
+ parameters: {
2183
+ query?: never;
2184
+ header?: never;
2185
+ path?: never;
2186
+ cookie?: never;
2187
+ };
2188
+ /**
2189
+ * Готовый шаблон подписки с текстом
2190
+ * @description Ничего не сохраняет: текст для редактора.
2191
+ */
2192
+ get: operations["get-ready-sub-template"];
2193
+ put?: never;
2194
+ post?: never;
2195
+ delete?: never;
2196
+ options?: never;
2197
+ head?: never;
2198
+ patch?: never;
2199
+ trace?: never;
2200
+ };
2019
2201
  "/sub-templates/{id}": {
2020
2202
  parameters: {
2021
2203
  query?: never;
@@ -2858,6 +3040,43 @@ export interface paths {
2858
3040
  patch?: never;
2859
3041
  trace?: never;
2860
3042
  };
3043
+ "/users/{id}/nodes": {
3044
+ parameters: {
3045
+ query?: never;
3046
+ header?: never;
3047
+ path?: never;
3048
+ cookie?: never;
3049
+ };
3050
+ /**
3051
+ * Ноды пользователя
3052
+ * @description Через какие ноды ходил пользователь: последний раз и трафик на каждой. Учёт идёт с версии, где он появился.
3053
+ */
3054
+ get: operations["user-nodes"];
3055
+ put?: never;
3056
+ post?: never;
3057
+ delete?: never;
3058
+ options?: never;
3059
+ head?: never;
3060
+ patch?: never;
3061
+ trace?: never;
3062
+ };
3063
+ "/users/{id}/online": {
3064
+ parameters: {
3065
+ query?: never;
3066
+ header?: never;
3067
+ path?: never;
3068
+ cookie?: never;
3069
+ };
3070
+ /** Где пользователь онлайн сейчас: ноды, устройства, адреса */
3071
+ get: operations["user-online"];
3072
+ put?: never;
3073
+ post?: never;
3074
+ delete?: never;
3075
+ options?: never;
3076
+ head?: never;
3077
+ patch?: never;
3078
+ trace?: never;
3079
+ };
2861
3080
  "/users/{id}/pools": {
2862
3081
  parameters: {
2863
3082
  query?: never;
@@ -2893,6 +3112,23 @@ export interface paths {
2893
3112
  patch?: never;
2894
3113
  trace?: never;
2895
3114
  };
3115
+ "/users/{id}/reset-connections": {
3116
+ parameters: {
3117
+ query?: never;
3118
+ header?: never;
3119
+ path?: never;
3120
+ cookie?: never;
3121
+ };
3122
+ get?: never;
3123
+ put?: never;
3124
+ /** Сбросить соединения: ноды закрывают открытые соединения, доступ остаётся, приложения подключаются заново */
3125
+ post: operations["reset-user-connections"];
3126
+ delete?: never;
3127
+ options?: never;
3128
+ head?: never;
3129
+ patch?: never;
3130
+ trace?: never;
3131
+ };
2896
3132
  "/users/{id}/reset-traffic": {
2897
3133
  parameters: {
2898
3134
  query?: never;
@@ -3325,6 +3561,13 @@ export interface components {
3325
3561
  AlertsConfig: {
3326
3562
  admin_enabled: boolean;
3327
3563
  events: components["schemas"]["Events"];
3564
+ /** @description Группа Telegram, куда тоже идут уведомления админу: @username или числовой ID; пусто — нет */
3565
+ group_chat?: string;
3566
+ /**
3567
+ * Format: int64
3568
+ * @description Тема группы (message_thread_id) для групп с темами; 0 — общий чат группы
3569
+ */
3570
+ group_thread?: number;
3328
3571
  public_changes: boolean;
3329
3572
  public_channel?: string;
3330
3573
  public_enabled: boolean;
@@ -3332,7 +3575,12 @@ export interface components {
3332
3575
  };
3333
3576
  AlertsConfigPatch: {
3334
3577
  admin_enabled?: boolean;
3578
+ /** @description Адрес webhook канала Discord (https://discord.com/api/webhooks/…), куда тоже идут уведомления админу; пустая строка — удалить. В ответе не возвращается */
3579
+ discord_webhook?: string;
3335
3580
  events?: components["schemas"]["EventsPatch"];
3581
+ group_chat?: string;
3582
+ /** Format: int64 */
3583
+ group_thread?: number;
3336
3584
  public_changes?: boolean;
3337
3585
  public_channel?: string;
3338
3586
  public_enabled?: boolean;
@@ -3604,6 +3852,31 @@ export interface components {
3604
3852
  */
3605
3853
  with_balance: number;
3606
3854
  };
3855
+ BulkFilter: {
3856
+ /**
3857
+ * @description all — любая; none — вне папок; число — id папки
3858
+ * @default all
3859
+ */
3860
+ folder: string;
3861
+ /**
3862
+ * @description Как у списка: по умолчанию вместе со скрытыми
3863
+ * @default show
3864
+ * @enum {string}
3865
+ */
3866
+ hidden: "hide" | "show" | "only";
3867
+ /** @description Оператору поддержки без показа подписчиков закрыт: 403 support_denied */
3868
+ q?: string;
3869
+ /**
3870
+ * @default all
3871
+ * @enum {string}
3872
+ */
3873
+ source: "all" | "admin" | "bot" | "trial" | "free" | "import";
3874
+ /**
3875
+ * @default all
3876
+ * @enum {string}
3877
+ */
3878
+ state: "all" | "active" | "expiring" | "limited" | "expired" | "disabled" | "attention";
3879
+ };
3607
3880
  BulkInputBody: {
3608
3881
  /**
3609
3882
  * @description hide и unhide прячут пользователей из списка и возвращают, move кладёт в папку: ни то ни другое не меняет доступ
@@ -3615,12 +3888,17 @@ export interface components {
3615
3888
  * @description Для extend; не задано — на один период: до следующего дня оплаты или на 30 дней
3616
3889
  */
3617
3890
  days?: number;
3891
+ /** @description Только с filter, и для действия обязательно: digest из предпросмотра с тем же filter. Если под фильтр сейчас подходят не ровно те же пользователи (другое число или хоть один другой) — 409 filter_changed, и ничего не сделано. Предпросмотр его значение не проверяет */
3892
+ expect?: string;
3893
+ /** @description Все, кто подходит под фильтр списка пользователей (те же параметры и тот же смысл, что у GET /users), сколько бы их ни было; задаётся либо ids, либо filter */
3894
+ filter?: components["schemas"]["BulkFilter"];
3618
3895
  /**
3619
3896
  * Format: int64
3620
3897
  * @description Для move: папка; 0 или не задано — убрать из папок
3621
3898
  */
3622
3899
  folder_id?: number;
3623
- ids: number[];
3900
+ /** @description Пользователи по id; задаётся либо ids, либо filter */
3901
+ ids?: number[];
3624
3902
  };
3625
3903
  BulkOutputBody: {
3626
3904
  /** Format: int64 */
@@ -3634,6 +3912,8 @@ export interface components {
3634
3912
  * @description Скольких действие изменит
3635
3913
  */
3636
3914
  changed: number;
3915
+ /** @description Только с filter: SHA-256 (hex) списка id подходящих пользователей по возрастанию через запятую; его передают в действие как expect */
3916
+ digest?: string;
3637
3917
  /**
3638
3918
  * Format: int64
3639
3919
  * @description Сколько из них есть: к ним действие и применится (affected)
@@ -3901,6 +4181,21 @@ export interface components {
3901
4181
  quiet_night: boolean;
3902
4182
  texts: components["schemas"]["Texts"];
3903
4183
  };
4184
+ ConnResetView: {
4185
+ /**
4186
+ * Format: int64
4187
+ * @description Сколько соединений закрыла нода
4188
+ */
4189
+ closed: number;
4190
+ /** Format: int64 */
4191
+ node_id: number;
4192
+ node_name: string;
4193
+ /**
4194
+ * @description ok — соединения закрыты; node_too_old — нода старее 0.5.2.1 и сбрасывать не умеет, её пропустили; node_unavailable — нода не ответила
4195
+ * @enum {string}
4196
+ */
4197
+ status: "ok" | "node_too_old" | "node_unavailable";
4198
+ };
3904
4199
  CopyInboundInputBody: {
3905
4200
  /** @description REALITY: другой сайт маскировки, host:port; пусто — тот же */
3906
4201
  dest?: string;
@@ -3976,6 +4271,8 @@ export interface components {
3976
4271
  port?: string;
3977
4272
  /** @enum {string} */
3978
4273
  preset: "vless_reality_xhttp" | "hysteria2" | "hysteria2_gecko" | "tuic_v5" | "vless_reality_vision" | "vless_reality_grpc" | "trojan_reality" | "vless_tls_xhttp" | "vless_tls_vision" | "vless_tls_ws" | "vless_cdn_xhttp" | "vless_cdn_xhttp_get" | "anytls" | "vless_reality_xhttp_pq" | "trusttunnel" | "shadowquic" | "mieru" | "shadowsocks_2022" | "sudoku" | "snell" | "custom";
4274
+ /** @description Метки подключения, как у пользователя */
4275
+ tags?: string[];
3979
4276
  };
3980
4277
  CreateNodeInputBody: {
3981
4278
  /**
@@ -3988,6 +4285,8 @@ export interface components {
3988
4285
  /** @description IP или имя сервера ноды */
3989
4286
  host: string;
3990
4287
  name: string;
4288
+ /** @description Метки ноды, как у пользователя */
4289
+ tags?: string[];
3991
4290
  };
3992
4291
  CreateSubTemplateInputBody: {
3993
4292
  /** @description Конфиг ядра без серверов: YAML для mihomo, JSON для sing-box и Xray */
@@ -4153,6 +4452,7 @@ export interface components {
4153
4452
  Events: {
4154
4453
  autotune: boolean;
4155
4454
  autotune_recovery: boolean;
4455
+ billing: boolean;
4156
4456
  exit: boolean;
4157
4457
  inbound: boolean;
4158
4458
  node: boolean;
@@ -4164,6 +4464,7 @@ export interface components {
4164
4464
  EventsPatch: {
4165
4465
  autotune?: boolean;
4166
4466
  autotune_recovery?: boolean;
4467
+ billing?: boolean;
4167
4468
  exit?: boolean;
4168
4469
  inbound?: boolean;
4169
4470
  node?: boolean;
@@ -4365,6 +4666,21 @@ export interface components {
4365
4666
  name: string;
4366
4667
  value: string;
4367
4668
  };
4669
+ HostInput: {
4670
+ /** @description Адрес для клиентов; пусто — адрес ноды */
4671
+ address: string;
4672
+ /** @description Отпечаток TLS у клиентов, как fingerprint подключения; пусто — общий из настроек */
4673
+ fingerprint: string;
4674
+ /** @description HTTP Host у клиентов: VLESS и Trojan по WebSocket и XHTTP; пусто — как на сервере */
4675
+ host: string;
4676
+ /**
4677
+ * Format: int64
4678
+ * @description Порт для клиентов; 0 — порт подключения
4679
+ */
4680
+ port: number;
4681
+ /** @description SNI для клиентов; пусто — как обычно. Не у REALITY: там имя задаёт сайт маскировки */
4682
+ sni: string;
4683
+ };
4368
4684
  HostItem: {
4369
4685
  detail: string;
4370
4686
  /** @description Что сделать; пусто, если всё хорошо */
@@ -4396,9 +4712,28 @@ export interface components {
4396
4712
  state: "running" | "ok" | "failed";
4397
4713
  version: string;
4398
4714
  };
4715
+ HostView: {
4716
+ /** @description Адрес для клиентов; пусто — адрес ноды */
4717
+ address: string;
4718
+ /** @description Адрес по умолчанию: тот же, что client и fingerprint подключения; удаляется только с подключением */
4719
+ default: boolean;
4720
+ /** @description Отпечаток TLS (uTLS); пусто — общий из настроек */
4721
+ fingerprint: string;
4722
+ /** @description HTTP Host у клиентов (WebSocket, XHTTP); пусто — как на сервере */
4723
+ host: string;
4724
+ /** Format: int64 */
4725
+ id: number;
4726
+ /**
4727
+ * Format: int64
4728
+ * @description Порт для клиентов; 0 — порт подключения
4729
+ */
4730
+ port: number;
4731
+ /** @description SNI для клиентов; пусто — как обычно */
4732
+ sni: string;
4733
+ };
4399
4734
  ImportRunInputBody: {
4400
4735
  /** @enum {string} */
4401
- kind: "marzban" | "pasarguard" | "remnawave";
4736
+ kind: "marzban" | "pasarguard" | "remnawave" | "3xui";
4402
4737
  password?: string;
4403
4738
  /**
4404
4739
  * Format: int64
@@ -4411,13 +4746,13 @@ export interface components {
4411
4746
  };
4412
4747
  ImportSource: {
4413
4748
  /** @enum {string} */
4414
- kind: "marzban" | "pasarguard" | "remnawave";
4749
+ kind: "marzban" | "pasarguard" | "remnawave" | "3xui";
4415
4750
  password?: string;
4416
- /** @description Remnawave: API-токен; PasarGuard: API-ключ вместо логина */
4751
+ /** @description Remnawave: API-токен; PasarGuard: API-ключ вместо логина; 3x-ui: API-токен вместо логина */
4417
4752
  token?: string;
4418
- /** @description Адрес старой панели: https://panel.example.com; http:// — только для этого сервера или локальной сети */
4753
+ /** @description Адрес старой панели: https://panel.example.com, у 3x-ui — с его секретным путём; http:// — только для этого сервера или локальной сети */
4419
4754
  url: string;
4420
- /** @description Marzban, PasarGuard: логин администратора */
4755
+ /** @description Marzban, PasarGuard, 3x-ui: логин администратора */
4421
4756
  username?: string;
4422
4757
  };
4423
4758
  InactiveOutputBody: {
@@ -4496,6 +4831,8 @@ export interface components {
4496
4831
  fingerprint?: string;
4497
4832
  /** Format: int64 */
4498
4833
  id: number;
4834
+ /** @description Подключение входит в «Авто» подписки; выключено — только в списке и группе страны (выключенная нода убирает все свои) */
4835
+ in_auto: boolean;
4499
4836
  /** @description Адрес, на котором нода слушает: пусто — все адреса, 127.0.0.1 — только сам сервер (за nginx или HAProxy) */
4500
4837
  listen: string;
4501
4838
  name: string;
@@ -4529,6 +4866,8 @@ export interface components {
4529
4866
  status: "ok" | "error" | "unknown";
4530
4867
  /** @description Имя, которое увидит клиент */
4531
4868
  sub_name: string;
4869
+ /** @description Метки подключения: свои слова админа, по ним фильтруют список; в подписку не попадают */
4870
+ tags: string[];
4532
4871
  title: string;
4533
4872
  /** @description Тип листенера mihomo */
4534
4873
  type: string;
@@ -4595,20 +4934,20 @@ export interface components {
4595
4934
  LegacyLinks: {
4596
4935
  /** @description Старые ссылки сейчас открываются: задан их путь, а для подписанных ещё и секрет старой панели */
4597
4936
  active: boolean;
4598
- /** @description Из какой панели: marzban, pasarguard или remnawave */
4937
+ /** @description Из какой панели: marzban, pasarguard, remnawave или 3xui */
4599
4938
  source: string;
4600
- /** @description Ссылка целиком. Только у Remnawave: токен Marzban и PasarGuard подписан, импорт его не видел и не хранит, а ссылки, что уже у людей, проверяются по подписи */
4939
+ /** @description Ссылка целиком. Только у Remnawave и 3x-ui: токен Marzban и PasarGuard подписан, импорт его не видел и не хранит, а ссылки, что уже у людей, проверяются по подписи */
4601
4940
  url?: string;
4602
4941
  };
4603
4942
  LegacyView: {
4604
- /** @description Чьи ссылки: marzban, pasarguard или remnawave; импорт ставит его сам */
4943
+ /** @description Чьи ссылки: marzban, pasarguard, remnawave или 3xui; импорт ставит его сам */
4605
4944
  kind: string;
4606
4945
  /**
4607
4946
  * Format: int64
4608
4947
  * @description У скольких пользователей заведены старые ссылки
4609
4948
  */
4610
4949
  links: number;
4611
- /** @description Путь старых ссылок подписки: sub у Marzban и PasarGuard, api/sub у Remnawave; пусто — выключено */
4950
+ /** @description Путь старых ссылок подписки: sub у Marzban, PasarGuard и 3x-ui, api/sub у Remnawave; пусто — выключено */
4612
4951
  path: string;
4613
4952
  /** @description Секрет старой панели задан; сам он не возвращается */
4614
4953
  secret_set: boolean;
@@ -4890,23 +5229,102 @@ export interface components {
4890
5229
  */
4891
5230
  term_days: number | null;
4892
5231
  };
4893
- NodeCertInputBody: {
4894
- /** @description Цепочка в PEM: сначала сертификат, за ним промежуточные (fullchain.pem) */
4895
- cert: string;
4896
- /** @description Закрытый ключ в PEM (privkey.pem): RSA от 2048 бит, ECDSA P-256/384/521 или Ed25519 */
4897
- key: string;
4898
- };
4899
- NodeCertView: {
4900
- /** @description custom_expired, custom_invalid — сертификат не используется, нода на своём самоподписанном */
4901
- error?: string;
4902
- issuer: string;
4903
- /** @description Домены и IP, на которые он выписан */
4904
- names: string[];
5232
+ NodeBilling: {
5233
+ /** @description Дата оплаты, YYYY-MM-DD (UTC); пусто — не задана. С pay_months — любая оплата из череды, следующую считает панель */
5234
+ pay_date: string;
5235
+ /**
5236
+ * Format: int64
5237
+ * @description Оплата повторяется каждые столько месяцев; 0 — разовая
5238
+ */
5239
+ pay_months: number;
5240
+ /** @description Хостер сервера, как его назвал админ */
5241
+ provider: string;
5242
+ /**
5243
+ * Format: int64
5244
+ * @description За сколько дней до оплаты напомнить админу в Telegram; 0 — не напоминать
5245
+ */
5246
+ remind_days: number;
5247
+ /**
5248
+ * Format: int64
5249
+ * @description День месяца, с которого хостер считает трафик заново; в коротком месяце — его последний день
5250
+ */
5251
+ reset_day: number;
5252
+ /**
5253
+ * Format: int64
5254
+ * @description При скольких процентах лимита сказать админу; раз за период
5255
+ */
5256
+ traffic_alert: number;
5257
+ /**
5258
+ * Format: int64
5259
+ * @description Трафик тарифа сервера за период, байты; 0 — без лимита
5260
+ */
5261
+ traffic_limit: number;
5262
+ };
5263
+ NodeCertInputBody: {
5264
+ /** @description Цепочка в PEM: сначала сертификат, за ним промежуточные (fullchain.pem) */
5265
+ cert: string;
5266
+ /** @description Закрытый ключ в PEM (privkey.pem): RSA от 2048 бит, ECDSA P-256/384/521 или Ed25519 */
5267
+ key: string;
5268
+ };
5269
+ NodeCertView: {
5270
+ /** @description custom_expired, custom_invalid — сертификат не используется, нода на своём самоподписанном */
5271
+ error?: string;
5272
+ issuer: string;
5273
+ /** @description Домены и IP, на которые он выписан */
5274
+ names: string[];
4905
5275
  /** Format: date-time */
4906
5276
  not_after: string;
4907
5277
  /** @description Публично доверенный для адреса: приложения принимают его без пина */
4908
5278
  trusted: boolean;
4909
5279
  };
5280
+ NodeClient: {
5281
+ /**
5282
+ * Format: int64
5283
+ * @description Скачано через эту ноду с начала учёта
5284
+ */
5285
+ down: number;
5286
+ /**
5287
+ * Format: date-time
5288
+ * @description Последняя сохранённая порция трафика пользователя на этой ноде
5289
+ */
5290
+ last_seen: string;
5291
+ /** @description Что открыто на ноде сейчас, по ключам; пусто — не в сети */
5292
+ online: components["schemas"]["NodeClientOnline"][];
5293
+ /**
5294
+ * Format: int64
5295
+ * @description Отдано через эту ноду с начала учёта
5296
+ */
5297
+ up: number;
5298
+ /** Format: int64 */
5299
+ user_id: number;
5300
+ /** @description Имя пользователя; оператор поддержки без доступа к подписчикам видит #ID */
5301
+ user_name: string;
5302
+ };
5303
+ NodeClientOnline: {
5304
+ /** Format: int64 */
5305
+ conns: number;
5306
+ /**
5307
+ * Format: int64
5308
+ * @description Привязанное устройство, чьими ключами подключены; null — общие ключи пользователя
5309
+ */
5310
+ device_id: number | null;
5311
+ /** @description Адреса с открытыми соединениями; оператор поддержки без доступа к подписчикам получает пустой список */
5312
+ online_ips: string[];
5313
+ };
5314
+ NodeClientsOutputBody: {
5315
+ /** @description Последние увиденные сверху */
5316
+ items: components["schemas"]["NodeClient"][];
5317
+ /**
5318
+ * Format: int64
5319
+ * @description Сколько пользователей в сети на ноде сейчас, без учёта запроса
5320
+ */
5321
+ online: number;
5322
+ /**
5323
+ * Format: int64
5324
+ * @description Сколько всего пользователей под запрос
5325
+ */
5326
+ total: number;
5327
+ };
4910
5328
  NodeHello: {
4911
5329
  /** Format: date-time */
4912
5330
  at: string;
@@ -4936,6 +5354,7 @@ export interface components {
4936
5354
  balance_group: string;
4937
5355
  /** @description Нода старее панели */
4938
5356
  behind: boolean;
5357
+ billing: components["schemas"]["NodeBilling"];
4939
5358
  /** @description Панель может обновить ноду сама: удалённая, отвечает, версия 0.5.0.2 или новее; старую обновляют один раз вручную командой mikan update на её сервере */
4940
5359
  can_update: boolean;
4941
5360
  /**
@@ -5024,6 +5443,8 @@ export interface components {
5024
5443
  mem_used: number;
5025
5444
  /** @description Группа в подписке, например «🇳🇱 Нидерланды»; её флаг — префикс имён подключений */
5026
5445
  name: string;
5446
+ /** @description Ближайшая оплата сегодня или позже, YYYY-MM-DD (UTC); нет — оплата не задана или разовая прошла */
5447
+ next_payment?: string;
5027
5448
  /**
5028
5449
  * Format: double
5029
5450
  * @description Доля процессора самого процесса ноды (вся машина = 100); нет у нод до 0.5.0.4
@@ -5041,6 +5462,8 @@ export interface components {
5041
5462
  sni_router: boolean;
5042
5463
  /** @enum {string} */
5043
5464
  status: "ok" | "error" | "unknown";
5465
+ /** @description Метки ноды: свои слова админа, по ним фильтруют список */
5466
+ tags: string[];
5044
5467
  tls?: components["schemas"]["NodeTLSView"];
5045
5468
  /**
5046
5469
  * Format: int64
@@ -5050,6 +5473,8 @@ export interface components {
5050
5473
  /** @description Как идёт или прошло обновление ноды */
5051
5474
  update?: components["schemas"]["UpdateStatus"];
5052
5475
  version?: string;
5476
+ /** @description Трафик тарифа сервера за текущий период; только с billing.traffic_limit */
5477
+ vps_traffic?: components["schemas"]["VPSTraffic"];
5053
5478
  };
5054
5479
  NodeKeyOutputBody: {
5055
5480
  /** @description Команда установки на сервере ноды */
@@ -5172,9 +5597,10 @@ export interface components {
5172
5597
  };
5173
5598
  Note: {
5174
5599
  /** @enum {string} */
5175
- code: "fallback_fastest" | "balance_fastest" | "balance_random" | "balance_flat" | "select_first" | "chain_group_hop" | "chain_dialer_taken";
5600
+ code: "fallback_fastest" | "balance_fastest" | "balance_random" | "balance_flat" | "select_first" | "chain_group_hop" | "chain_dialer_taken" | "proxy_unsupported" | "rule_unsupported" | "list_unsupported" | "dns_policy_unsupported" | "category_missing";
5176
5601
  /** @enum {string} */
5177
5602
  core: "mihomo" | "singbox" | "xray";
5603
+ /** @description О чём заметка: группа, условие TYPE,VALUE, список, ключ политики DNS, сервер или geosite:NAME */
5178
5604
  group: string;
5179
5605
  };
5180
5606
  Notify: {
@@ -5410,11 +5836,46 @@ export interface components {
5410
5836
  /** @description Заголовок превью; пусто — бренд */
5411
5837
  title: string;
5412
5838
  };
5839
+ PasskeyAddInputBody: {
5840
+ /** @description Ответ navigator.credentials.create() в JSON (PublicKeyCredential.toJSON()) */
5841
+ credential: unknown;
5842
+ name: string;
5843
+ };
5844
+ PasskeyBeginInputBody: {
5845
+ /** @description Пароль: без него украденная сессия добавила бы свой вход */
5846
+ password: string;
5847
+ /** @description Код из приложения, если включена 2FA */
5848
+ totp?: string;
5849
+ };
5850
+ PasskeyLoginBeginOutputBody: {
5851
+ /** @description Передаётся обратно в POST /auth/login/passkey */
5852
+ ceremony: string;
5853
+ /** @description Параметры WebAuthn для navigator.credentials.get() ({publicKey: …}, двоичные поля в base64url) */
5854
+ options: unknown;
5855
+ };
5856
+ PasskeyLoginInputBody: {
5857
+ ceremony: string;
5858
+ /** @description Ответ navigator.credentials.get() в JSON (PublicKeyCredential.toJSON()) */
5859
+ credential: unknown;
5860
+ };
5861
+ PasskeyOptionsOutputBody: {
5862
+ /** @description Параметры WebAuthn для navigator.credentials.create() ({publicKey: …}, двоичные поля в base64url) */
5863
+ options: unknown;
5864
+ };
5865
+ PasskeyView: {
5866
+ /** Format: date-time */
5867
+ created_at: string;
5868
+ /** Format: int64 */
5869
+ id: number;
5870
+ /** Format: date-time */
5871
+ last_used_at?: string;
5872
+ name: string;
5873
+ };
5413
5874
  PasswordInputBody: {
5414
5875
  current: string;
5415
5876
  /** @description Не короче 12 символов */
5416
5877
  new: string;
5417
- /** @description Отозвать и ключи API (по умолчанию да): другие сессии завершаются при смене пароля, ключ, выпущенный из угнанной сессии, пережил бы это */
5878
+ /** @description Отозвать и ключи API, и ключи доступа (passkey) (по умолчанию да): другие сессии завершаются при смене пароля, ключ, выпущенный или добавленный из угнанной сессии, пережил бы это */
5418
5879
  revoke_keys?: boolean;
5419
5880
  };
5420
5881
  PatchAddonInputBody: {
@@ -5468,6 +5929,8 @@ export interface components {
5468
5929
  exit_node_id?: number;
5469
5930
  /** @description Отпечаток TLS у клиентов: из списка (chrome, firefox, safari, ios, android, edge, 360, qq, random, randomized) или своё — латиница, цифры, _; пусто — общий из настроек */
5470
5931
  fingerprint?: string;
5932
+ /** @description Подключение в «Авто» подписки; false — только в списке и группе страны */
5933
+ in_auto?: boolean;
5471
5934
  /** @description Адрес, на котором нода слушает: пусто — все адреса, иначе один IP (127.0.0.1 — за nginx или HAProxy на том же сервере). Свой адрес выключает перенос порта */
5472
5935
  listen?: string;
5473
5936
  /**
@@ -5490,12 +5953,14 @@ export interface components {
5490
5953
  server_name?: string;
5491
5954
  /** @description Поставить за SNI-роутер ноды на 443 (true) или вернуть на свой порт (false) */
5492
5955
  sni443?: boolean;
5956
+ /** @description Метки подключения целиком; пустой список снимает все */
5957
+ tags?: string[];
5493
5958
  /** @description Тонкая настройка XHTTP целиком: пустое поле — значение ядра по умолчанию */
5494
5959
  xhttp?: components["schemas"]["XHTTPTuning"];
5495
5960
  };
5496
5961
  PatchLegacyInputBody: {
5497
5962
  /** @enum {string} */
5498
- kind?: "marzban" | "pasarguard" | "remnawave" | "";
5963
+ kind?: "marzban" | "pasarguard" | "remnawave" | "3xui" | "";
5499
5964
  path?: string;
5500
5965
  /** @description Секрет из таблицы jwt базы старой панели; пусто — убрать */
5501
5966
  secret?: string;
@@ -5505,6 +5970,8 @@ export interface components {
5505
5970
  api_allow?: string[];
5506
5971
  /** @description API ноды только с адресов панели; не для ноды панели */
5507
5972
  api_lockdown?: boolean;
5973
+ /** @description Учёт сервера у хостера, целиком */
5974
+ billing?: components["schemas"]["NodeBilling"];
5508
5975
  /**
5509
5976
  * Format: int64
5510
5977
  * @description Ширина канала ноды, Мбит/с в каждую сторону
@@ -5529,6 +5996,8 @@ export interface components {
5529
5996
  public_name?: string;
5530
5997
  /** @description SNI-роутер на 443: подключения с отметкой «через общий 443» слушают на loopback за ним */
5531
5998
  sni_router?: boolean;
5999
+ /** @description Метки ноды целиком; пустой список снимает все */
6000
+ tags?: string[];
5532
6001
  };
5533
6002
  PatchPaymentSettingsInputBody: {
5534
6003
  allow_new?: boolean;
@@ -5900,7 +6369,7 @@ export interface components {
5900
6369
  starter?: boolean;
5901
6370
  };
5902
6371
  PreviewSubTemplateOutputBody: {
5903
- /** @description Что sing-box и Xray делают с группами шаблона Clash, которых у них нет как есть */
6372
+ /** @description Что sing-box и Xray делают с шаблоном Clash, которого не могут передать как есть: ближайший вид группы; сервер, правило, список, политика DNS или категория, которые они опускают */
5904
6373
  notes: components["schemas"]["Note"][];
5905
6374
  /** @description Что получит пользователь со всеми подключениями: профиль Clash (YAML), конфиг sing-box или список конфигов Xray (JSON); ключи — заглушки */
5906
6375
  profile: string;
@@ -6123,6 +6592,42 @@ export interface components {
6123
6592
  network: string;
6124
6593
  ports: components["schemas"]["ReachPort"][];
6125
6594
  };
6595
+ ReadySubTemplate: {
6596
+ author: string;
6597
+ /** @description Свой шаблон mikan: панель собирает его из своих настроек, когда его загружают */
6598
+ builtin: boolean;
6599
+ /** @enum {string} */
6600
+ core: "mihomo" | "singbox" | "xray";
6601
+ id: string;
6602
+ /** @description Лицензия текста шаблона, SPDX */
6603
+ license: string;
6604
+ name: string;
6605
+ /** @description Откуда шаблон и списки, на которые он ссылается */
6606
+ source: string;
6607
+ /** @description Описание по-русски; панель переводит его по id */
6608
+ summary: string;
6609
+ };
6610
+ ReadySubTemplateOutputBody: {
6611
+ author: string;
6612
+ /** @description Текст шаблона: для своего шаблона mikan собран из текущих настроек панели */
6613
+ body: string;
6614
+ /** @description Свой шаблон mikan: панель собирает его из своих настроек, когда его загружают */
6615
+ builtin: boolean;
6616
+ /** @enum {string} */
6617
+ core: "mihomo" | "singbox" | "xray";
6618
+ id: string;
6619
+ /** @description Лицензия текста шаблона, SPDX */
6620
+ license: string;
6621
+ name: string;
6622
+ /** @description Откуда шаблон и списки, на которые он ссылается */
6623
+ source: string;
6624
+ /** @description Описание по-русски; панель переводит его по id */
6625
+ summary: string;
6626
+ };
6627
+ ReadySubTemplatesOutputBody: {
6628
+ /** @description По ядрам, в порядке каталога */
6629
+ templates: components["schemas"]["ReadySubTemplate"][];
6630
+ };
6126
6631
  RecordingInfo: {
6127
6632
  /**
6128
6633
  * Format: date-time
@@ -6219,6 +6724,27 @@ export interface components {
6219
6724
  /** @description Имена, которые уже есть в mikan: эти пользователи не перенесены */
6220
6725
  skipped: components["schemas"]["List"];
6221
6726
  };
6727
+ ResetConnectionsInputBody: {
6728
+ /**
6729
+ * Format: int64
6730
+ * @description Чьи ключи: не передано — все ключи пользователя; 0 — общие ключи пользователя; иначе привязанное устройство (device_id из списка онлайн)
6731
+ */
6732
+ device_id?: number;
6733
+ /**
6734
+ * Format: int64
6735
+ * @description Нода; 0 или не передано — все ноды
6736
+ */
6737
+ node_id?: number;
6738
+ };
6739
+ ResetConnectionsOutputBody: {
6740
+ /**
6741
+ * Format: int64
6742
+ * @description Сколько соединений закрыто на всех нодах
6743
+ */
6744
+ closed: number;
6745
+ /** @description Как прошло на каждой ноде; нода, которая сбрасывать не умеет или не ответила, не делает ошибкой весь запрос */
6746
+ nodes: components["schemas"]["ConnResetView"][];
6747
+ };
6222
6748
  ResetPathOutputBody: {
6223
6749
  admin_url: string;
6224
6750
  };
@@ -6300,7 +6826,7 @@ export interface components {
6300
6826
  sub_rules?: string;
6301
6827
  };
6302
6828
  RoutesPreviewOutputBody: {
6303
- /** @description Что ядра sing-box и Xray делают с группами, которых у них нет как есть: ближайший вид */
6829
+ /** @description Что ядра sing-box и Xray делают с профилем, которого не могут передать как есть: ближайший вид группы; сервер, правило, список, политика DNS или категория, которые они опускают */
6304
6830
  notes: components["schemas"]["Note"][];
6305
6831
  /** @description Профиль Clash (YAML) пользователя со всеми подключениями; ключи — заглушки */
6306
6832
  profile: string;
@@ -7129,7 +7655,7 @@ export interface components {
7129
7655
  */
7130
7656
  accounts: number;
7131
7657
  admin_chat_set: boolean;
7132
- /** @description Последнее уведомление, которое Telegram отверг насовсем (бот заблокирован, чат или канал недоступен): оно не доставлено и не повторяется */
7658
+ /** @description Последнее уведомление, которое Telegram или Discord отверг насовсем (бот заблокирован, чат, канал или webhook недоступен): оно не доставлено и не повторяется */
7133
7659
  alerts_refused?: components["schemas"]["Refused"];
7134
7660
  bot?: components["schemas"]["TelegramBot"];
7135
7661
  /** @description Последняя рассылка с запуска панели */
@@ -7139,6 +7665,10 @@ export interface components {
7139
7665
  config: components["schemas"]["Config"];
7140
7666
  /** @description Встроенные тексты на языке бота: пустое поле берёт их */
7141
7667
  defaults: components["schemas"]["Texts"];
7668
+ /** @description Имя webhook в Discord */
7669
+ discord_name?: string;
7670
+ /** @description Webhook Discord для уведомлений админу сохранён; сам адрес не возвращается */
7671
+ discord_set: boolean;
7142
7672
  enabled: boolean;
7143
7673
  /** @description token_invalid, token_revoked, token_conflict (токен опрашивает ещё одна программа), unreachable или ответ Telegram */
7144
7674
  error?: string;
@@ -7447,6 +7977,48 @@ export interface components {
7447
7977
  /** Format: int64 */
7448
7978
  limited: number;
7449
7979
  };
7980
+ UserNode: {
7981
+ /**
7982
+ * Format: int64
7983
+ * @description Скачано через эту ноду с начала учёта
7984
+ */
7985
+ down: number;
7986
+ /**
7987
+ * Format: date-time
7988
+ * @description Последняя сохранённая порция трафика пользователя на этой ноде
7989
+ */
7990
+ last_seen: string;
7991
+ /** @description Своя нода панели */
7992
+ local: boolean;
7993
+ /** Format: int64 */
7994
+ node_id: number;
7995
+ /** @description Имя ноды; у своей ноды панели может быть пустым */
7996
+ node_name: string;
7997
+ /** @description Подключён к этой ноде сейчас */
7998
+ online: boolean;
7999
+ /**
8000
+ * Format: int64
8001
+ * @description Отдано через эту ноду с начала учёта
8002
+ */
8003
+ up: number;
8004
+ };
8005
+ UserOnlineView: {
8006
+ /**
8007
+ * Format: int64
8008
+ * @description Открытые соединения на этой ноде
8009
+ */
8010
+ conns: number;
8011
+ /**
8012
+ * Format: int64
8013
+ * @description Привязанное устройство, чьими ключами подключены; null — общие ключи пользователя (приложения без ID или без привязки)
8014
+ */
8015
+ device_id: number | null;
8016
+ /** Format: int64 */
8017
+ node_id: number;
8018
+ node_name: string;
8019
+ /** @description Адреса с открытыми соединениями на этой ноде; оператор поддержки без доступа к подписчикам получает пустой список */
8020
+ online_ips: string[];
8021
+ };
7450
8022
  UserPoolView: {
7451
8023
  /** @description Свой лимит группы и её пакеты исчерпаны: подключения группы не работают до сброса */
7452
8024
  exhausted: boolean;
@@ -7584,6 +8156,17 @@ export interface components {
7584
8156
  /** Format: int64 */
7585
8157
  used_up: number;
7586
8158
  };
8159
+ VPSTraffic: {
8160
+ /** @description День, с которого начнётся следующий период, YYYY-MM-DD (UTC) */
8161
+ resets: string;
8162
+ /** @description Первый день периода, YYYY-MM-DD (UTC) */
8163
+ since: string;
8164
+ /**
8165
+ * Format: int64
8166
+ * @description Сколько нода унесла с начала периода: трафик пользователей и каскада других нод, вверх и вниз вместе, байты
8167
+ */
8168
+ used: number;
8169
+ };
7587
8170
  ValidateInboundInputBody: {
7588
8171
  config: string;
7589
8172
  /**
@@ -8445,6 +9028,69 @@ export interface operations {
8445
9028
  };
8446
9029
  };
8447
9030
  };
9031
+ "passkey-login": {
9032
+ parameters: {
9033
+ query?: never;
9034
+ header?: never;
9035
+ path?: never;
9036
+ cookie?: never;
9037
+ };
9038
+ requestBody: {
9039
+ content: {
9040
+ "application/json": components["schemas"]["PasskeyLoginInputBody"];
9041
+ };
9042
+ };
9043
+ responses: {
9044
+ /** @description OK */
9045
+ 200: {
9046
+ headers: {
9047
+ "Set-Cookie"?: string;
9048
+ [name: string]: unknown;
9049
+ };
9050
+ content: {
9051
+ "application/json": components["schemas"]["MeBody"];
9052
+ };
9053
+ };
9054
+ /** @description Error */
9055
+ default: {
9056
+ headers: {
9057
+ [name: string]: unknown;
9058
+ };
9059
+ content: {
9060
+ "application/problem+json": components["schemas"]["ErrorModel"];
9061
+ };
9062
+ };
9063
+ };
9064
+ };
9065
+ "passkey-login-begin": {
9066
+ parameters: {
9067
+ query?: never;
9068
+ header?: never;
9069
+ path?: never;
9070
+ cookie?: never;
9071
+ };
9072
+ requestBody?: never;
9073
+ responses: {
9074
+ /** @description OK */
9075
+ 200: {
9076
+ headers: {
9077
+ [name: string]: unknown;
9078
+ };
9079
+ content: {
9080
+ "application/json": components["schemas"]["PasskeyLoginBeginOutputBody"];
9081
+ };
9082
+ };
9083
+ /** @description Error */
9084
+ default: {
9085
+ headers: {
9086
+ [name: string]: unknown;
9087
+ };
9088
+ content: {
9089
+ "application/problem+json": components["schemas"]["ErrorModel"];
9090
+ };
9091
+ };
9092
+ };
9093
+ };
8448
9094
  logout: {
8449
9095
  parameters: {
8450
9096
  query?: never;
@@ -8502,6 +9148,130 @@ export interface operations {
8502
9148
  };
8503
9149
  };
8504
9150
  };
9151
+ "list-passkeys": {
9152
+ parameters: {
9153
+ query?: never;
9154
+ header?: never;
9155
+ path?: never;
9156
+ cookie?: never;
9157
+ };
9158
+ requestBody?: never;
9159
+ responses: {
9160
+ /** @description OK */
9161
+ 200: {
9162
+ headers: {
9163
+ [name: string]: unknown;
9164
+ };
9165
+ content: {
9166
+ "application/json": components["schemas"]["PasskeyView"][];
9167
+ };
9168
+ };
9169
+ /** @description Error */
9170
+ default: {
9171
+ headers: {
9172
+ [name: string]: unknown;
9173
+ };
9174
+ content: {
9175
+ "application/problem+json": components["schemas"]["ErrorModel"];
9176
+ };
9177
+ };
9178
+ };
9179
+ };
9180
+ "add-passkey": {
9181
+ parameters: {
9182
+ query?: never;
9183
+ header?: never;
9184
+ path?: never;
9185
+ cookie?: never;
9186
+ };
9187
+ requestBody: {
9188
+ content: {
9189
+ "application/json": components["schemas"]["PasskeyAddInputBody"];
9190
+ };
9191
+ };
9192
+ responses: {
9193
+ /** @description Created */
9194
+ 201: {
9195
+ headers: {
9196
+ [name: string]: unknown;
9197
+ };
9198
+ content: {
9199
+ "application/json": components["schemas"]["PasskeyView"];
9200
+ };
9201
+ };
9202
+ /** @description Error */
9203
+ default: {
9204
+ headers: {
9205
+ [name: string]: unknown;
9206
+ };
9207
+ content: {
9208
+ "application/problem+json": components["schemas"]["ErrorModel"];
9209
+ };
9210
+ };
9211
+ };
9212
+ };
9213
+ "passkey-begin": {
9214
+ parameters: {
9215
+ query?: never;
9216
+ header?: never;
9217
+ path?: never;
9218
+ cookie?: never;
9219
+ };
9220
+ requestBody: {
9221
+ content: {
9222
+ "application/json": components["schemas"]["PasskeyBeginInputBody"];
9223
+ };
9224
+ };
9225
+ responses: {
9226
+ /** @description OK */
9227
+ 200: {
9228
+ headers: {
9229
+ [name: string]: unknown;
9230
+ };
9231
+ content: {
9232
+ "application/json": components["schemas"]["PasskeyOptionsOutputBody"];
9233
+ };
9234
+ };
9235
+ /** @description Error */
9236
+ default: {
9237
+ headers: {
9238
+ [name: string]: unknown;
9239
+ };
9240
+ content: {
9241
+ "application/problem+json": components["schemas"]["ErrorModel"];
9242
+ };
9243
+ };
9244
+ };
9245
+ };
9246
+ "delete-passkey": {
9247
+ parameters: {
9248
+ query?: never;
9249
+ header?: never;
9250
+ path: {
9251
+ id: number;
9252
+ };
9253
+ cookie?: never;
9254
+ };
9255
+ requestBody?: never;
9256
+ responses: {
9257
+ /** @description No Content */
9258
+ 204: {
9259
+ headers: {
9260
+ [name: string]: unknown;
9261
+ };
9262
+ content?: never;
9263
+ };
9264
+ /** @description Error */
9265
+ default: {
9266
+ headers: {
9267
+ [name: string]: unknown;
9268
+ };
9269
+ content: {
9270
+ "application/problem+json": components["schemas"]["ErrorModel"];
9271
+ };
9272
+ };
9273
+ };
9274
+ };
8505
9275
  "change-password": {
8506
9276
  parameters: {
8507
9277
  query?: never;
@@ -9410,7 +10180,10 @@ export interface operations {
9410
10180
  };
9411
10181
  "list-inbounds": {
9412
10182
  parameters: {
9413
- query?: never;
10183
+ query?: {
10184
+ /** @description Только подключения с этой меткой (без учёта регистра) */
10185
+ tag?: string;
10186
+ };
9414
10187
  header?: never;
9415
10188
  path?: never;
9416
10189
  cookie?: never;
@@ -9507,12 +10280,141 @@ export interface operations {
9507
10280
  parameters: {
9508
10281
  query?: never;
9509
10282
  header?: never;
9510
- path?: never;
10283
+ path?: never;
10284
+ cookie?: never;
10285
+ };
10286
+ requestBody: {
10287
+ content: {
10288
+ "application/json": components["schemas"]["SetExitsInputBody"];
10289
+ };
10290
+ };
10291
+ responses: {
10292
+ /** @description OK */
10293
+ 200: {
10294
+ headers: {
10295
+ [name: string]: unknown;
10296
+ };
10297
+ content: {
10298
+ "application/json": components["schemas"]["InboundView"][];
10299
+ };
10300
+ };
10301
+ /** @description Error */
10302
+ default: {
10303
+ headers: {
10304
+ [name: string]: unknown;
10305
+ };
10306
+ content: {
10307
+ "application/problem+json": components["schemas"]["ErrorModel"];
10308
+ };
10309
+ };
10310
+ };
10311
+ };
10312
+ "scan-targets": {
10313
+ parameters: {
10314
+ query?: {
10315
+ /** @description Нода, рядом с которой искать */
10316
+ node_id?: number;
10317
+ };
10318
+ header?: never;
10319
+ path?: never;
10320
+ cookie?: never;
10321
+ };
10322
+ requestBody?: never;
10323
+ responses: {
10324
+ /** @description OK */
10325
+ 200: {
10326
+ headers: {
10327
+ [name: string]: unknown;
10328
+ };
10329
+ content: {
10330
+ "application/json": components["schemas"]["ScanTargetsOutputBody"];
10331
+ };
10332
+ };
10333
+ /** @description Error */
10334
+ default: {
10335
+ headers: {
10336
+ [name: string]: unknown;
10337
+ };
10338
+ content: {
10339
+ "application/problem+json": components["schemas"]["ErrorModel"];
10340
+ };
10341
+ };
10342
+ };
10343
+ };
10344
+ "validate-inbound": {
10345
+ parameters: {
10346
+ query?: never;
10347
+ header?: never;
10348
+ path?: never;
10349
+ cookie?: never;
10350
+ };
10351
+ requestBody: {
10352
+ content: {
10353
+ "application/json": components["schemas"]["ValidateInboundInputBody"];
10354
+ };
10355
+ };
10356
+ responses: {
10357
+ /** @description OK */
10358
+ 200: {
10359
+ headers: {
10360
+ [name: string]: unknown;
10361
+ };
10362
+ content: {
10363
+ "application/json": components["schemas"]["ValidateInboundOutputBody"];
10364
+ };
10365
+ };
10366
+ /** @description Error */
10367
+ default: {
10368
+ headers: {
10369
+ [name: string]: unknown;
10370
+ };
10371
+ content: {
10372
+ "application/problem+json": components["schemas"]["ErrorModel"];
10373
+ };
10374
+ };
10375
+ };
10376
+ };
10377
+ "delete-inbound": {
10378
+ parameters: {
10379
+ query?: never;
10380
+ header?: never;
10381
+ path: {
10382
+ id: number;
10383
+ };
10384
+ cookie?: never;
10385
+ };
10386
+ requestBody?: never;
10387
+ responses: {
10388
+ /** @description No Content */
10389
+ 204: {
10390
+ headers: {
10391
+ [name: string]: unknown;
10392
+ };
10393
+ content?: never;
10394
+ };
10395
+ /** @description Error */
10396
+ default: {
10397
+ headers: {
10398
+ [name: string]: unknown;
10399
+ };
10400
+ content: {
10401
+ "application/problem+json": components["schemas"]["ErrorModel"];
10402
+ };
10403
+ };
10404
+ };
10405
+ };
10406
+ "update-inbound": {
10407
+ parameters: {
10408
+ query?: never;
10409
+ header?: never;
10410
+ path: {
10411
+ id: number;
10412
+ };
9511
10413
  cookie?: never;
9512
10414
  };
9513
10415
  requestBody: {
9514
10416
  content: {
9515
- "application/json": components["schemas"]["SetExitsInputBody"];
10417
+ "application/json": components["schemas"]["PatchInboundInputBody"];
9516
10418
  };
9517
10419
  };
9518
10420
  responses: {
@@ -9522,7 +10424,7 @@ export interface operations {
9522
10424
  [name: string]: unknown;
9523
10425
  };
9524
10426
  content: {
9525
- "application/json": components["schemas"]["InboundView"][];
10427
+ "application/json": components["schemas"]["InboundView"];
9526
10428
  };
9527
10429
  };
9528
10430
  /** @description Error */
@@ -9536,25 +10438,28 @@ export interface operations {
9536
10438
  };
9537
10439
  };
9538
10440
  };
9539
- "scan-targets": {
10441
+ "copy-inbound": {
9540
10442
  parameters: {
9541
- query?: {
9542
- /** @description Нода, рядом с которой искать */
9543
- node_id?: number;
9544
- };
10443
+ query?: never;
9545
10444
  header?: never;
9546
- path?: never;
10445
+ path: {
10446
+ id: number;
10447
+ };
9547
10448
  cookie?: never;
9548
10449
  };
9549
- requestBody?: never;
10450
+ requestBody: {
10451
+ content: {
10452
+ "application/json": components["schemas"]["CopyInboundInputBody"];
10453
+ };
10454
+ };
9550
10455
  responses: {
9551
- /** @description OK */
9552
- 200: {
10456
+ /** @description Created */
10457
+ 201: {
9553
10458
  headers: {
9554
10459
  [name: string]: unknown;
9555
10460
  };
9556
10461
  content: {
9557
- "application/json": components["schemas"]["ScanTargetsOutputBody"];
10462
+ "application/json": components["schemas"]["InboundView"];
9558
10463
  };
9559
10464
  };
9560
10465
  /** @description Error */
@@ -9568,18 +10473,16 @@ export interface operations {
9568
10473
  };
9569
10474
  };
9570
10475
  };
9571
- "validate-inbound": {
10476
+ "list-inbound-hosts": {
9572
10477
  parameters: {
9573
10478
  query?: never;
9574
10479
  header?: never;
9575
- path?: never;
9576
- cookie?: never;
9577
- };
9578
- requestBody: {
9579
- content: {
9580
- "application/json": components["schemas"]["ValidateInboundInputBody"];
10480
+ path: {
10481
+ id: number;
9581
10482
  };
10483
+ cookie?: never;
9582
10484
  };
10485
+ requestBody?: never;
9583
10486
  responses: {
9584
10487
  /** @description OK */
9585
10488
  200: {
@@ -9587,7 +10490,7 @@ export interface operations {
9587
10490
  [name: string]: unknown;
9588
10491
  };
9589
10492
  content: {
9590
- "application/json": components["schemas"]["ValidateInboundOutputBody"];
10493
+ "application/json": components["schemas"]["HostView"][];
9591
10494
  };
9592
10495
  };
9593
10496
  /** @description Error */
@@ -9601,7 +10504,7 @@ export interface operations {
9601
10504
  };
9602
10505
  };
9603
10506
  };
9604
- "delete-inbound": {
10507
+ "add-inbound-host": {
9605
10508
  parameters: {
9606
10509
  query?: never;
9607
10510
  header?: never;
@@ -9610,14 +10513,20 @@ export interface operations {
9610
10513
  };
9611
10514
  cookie?: never;
9612
10515
  };
9613
- requestBody?: never;
10516
+ requestBody: {
10517
+ content: {
10518
+ "application/json": components["schemas"]["HostInput"];
10519
+ };
10520
+ };
9614
10521
  responses: {
9615
- /** @description No Content */
9616
- 204: {
10522
+ /** @description Created */
10523
+ 201: {
9617
10524
  headers: {
9618
10525
  [name: string]: unknown;
9619
10526
  };
9620
- content?: never;
10527
+ content: {
10528
+ "application/json": components["schemas"]["HostView"];
10529
+ };
9621
10530
  };
9622
10531
  /** @description Error */
9623
10532
  default: {
@@ -9630,18 +10539,19 @@ export interface operations {
9630
10539
  };
9631
10540
  };
9632
10541
  };
9633
- "update-inbound": {
10542
+ "update-inbound-host": {
9634
10543
  parameters: {
9635
10544
  query?: never;
9636
10545
  header?: never;
9637
10546
  path: {
9638
10547
  id: number;
10548
+ host_id: number;
9639
10549
  };
9640
10550
  cookie?: never;
9641
10551
  };
9642
10552
  requestBody: {
9643
10553
  content: {
9644
- "application/json": components["schemas"]["PatchInboundInputBody"];
10554
+ "application/json": components["schemas"]["HostInput"];
9645
10555
  };
9646
10556
  };
9647
10557
  responses: {
@@ -9651,7 +10561,7 @@ export interface operations {
9651
10561
  [name: string]: unknown;
9652
10562
  };
9653
10563
  content: {
9654
- "application/json": components["schemas"]["InboundView"];
10564
+ "application/json": components["schemas"]["HostView"];
9655
10565
  };
9656
10566
  };
9657
10567
  /** @description Error */
@@ -9665,29 +10575,24 @@ export interface operations {
9665
10575
  };
9666
10576
  };
9667
10577
  };
9668
- "copy-inbound": {
10578
+ "delete-inbound-host": {
9669
10579
  parameters: {
9670
10580
  query?: never;
9671
10581
  header?: never;
9672
10582
  path: {
9673
10583
  id: number;
10584
+ host_id: number;
9674
10585
  };
9675
10586
  cookie?: never;
9676
10587
  };
9677
- requestBody: {
9678
- content: {
9679
- "application/json": components["schemas"]["CopyInboundInputBody"];
9680
- };
9681
- };
10588
+ requestBody?: never;
9682
10589
  responses: {
9683
- /** @description Created */
9684
- 201: {
10590
+ /** @description No Content */
10591
+ 204: {
9685
10592
  headers: {
9686
10593
  [name: string]: unknown;
9687
10594
  };
9688
- content: {
9689
- "application/json": components["schemas"]["InboundView"];
9690
- };
10595
+ content?: never;
9691
10596
  };
9692
10597
  /** @description Error */
9693
10598
  default: {
@@ -10020,7 +10925,10 @@ export interface operations {
10020
10925
  };
10021
10926
  "list-nodes": {
10022
10927
  parameters: {
10023
- query?: never;
10928
+ query?: {
10929
+ /** @description Только ноды с этой меткой (без учёта регистра) */
10930
+ tag?: string;
10931
+ };
10024
10932
  header?: never;
10025
10933
  path?: never;
10026
10934
  cookie?: never;
@@ -10462,6 +11370,42 @@ export interface operations {
10462
11370
  };
10463
11371
  };
10464
11372
  };
11373
+ "node-clients": {
11374
+ parameters: {
11375
+ query?: {
11376
+ /** @description Часть имени пользователя. Оператору поддержки без показа подписчиков закрыт: 403 support_denied */
11377
+ q?: string;
11378
+ limit?: number;
11379
+ offset?: number;
11380
+ };
11381
+ header?: never;
11382
+ path: {
11383
+ id: number;
11384
+ };
11385
+ cookie?: never;
11386
+ };
11387
+ requestBody?: never;
11388
+ responses: {
11389
+ /** @description OK */
11390
+ 200: {
11391
+ headers: {
11392
+ [name: string]: unknown;
11393
+ };
11394
+ content: {
11395
+ "application/json": components["schemas"]["NodeClientsOutputBody"];
11396
+ };
11397
+ };
11398
+ /** @description Error */
11399
+ default: {
11400
+ headers: {
11401
+ [name: string]: unknown;
11402
+ };
11403
+ content: {
11404
+ "application/problem+json": components["schemas"]["ErrorModel"];
11405
+ };
11406
+ };
11407
+ };
11408
+ };
10465
11409
  "doctor-node": {
10466
11410
  parameters: {
10467
11411
  query?: never;
@@ -12675,6 +13619,66 @@ export interface operations {
12675
13619
  };
12676
13620
  };
12677
13621
  };
13622
+ "list-ready-sub-templates": {
13623
+ parameters: {
13624
+ query?: never;
13625
+ header?: never;
13626
+ path?: never;
13627
+ cookie?: never;
13628
+ };
13629
+ requestBody?: never;
13630
+ responses: {
13631
+ /** @description OK */
13632
+ 200: {
13633
+ headers: {
13634
+ [name: string]: unknown;
13635
+ };
13636
+ content: {
13637
+ "application/json": components["schemas"]["ReadySubTemplatesOutputBody"];
13638
+ };
13639
+ };
13640
+ /** @description Error */
13641
+ default: {
13642
+ headers: {
13643
+ [name: string]: unknown;
13644
+ };
13645
+ content: {
13646
+ "application/problem+json": components["schemas"]["ErrorModel"];
13647
+ };
13648
+ };
13649
+ };
13650
+ };
13651
+ "get-ready-sub-template": {
13652
+ parameters: {
13653
+ query?: never;
13654
+ header?: never;
13655
+ path: {
13656
+ id: string;
13657
+ };
13658
+ cookie?: never;
13659
+ };
13660
+ requestBody?: never;
13661
+ responses: {
13662
+ /** @description OK */
13663
+ 200: {
13664
+ headers: {
13665
+ [name: string]: unknown;
13666
+ };
13667
+ content: {
13668
+ "application/json": components["schemas"]["ReadySubTemplateOutputBody"];
13669
+ };
13670
+ };
13671
+ /** @description Error */
13672
+ default: {
13673
+ headers: {
13674
+ [name: string]: unknown;
13675
+ };
13676
+ content: {
13677
+ "application/problem+json": components["schemas"]["ErrorModel"];
13678
+ };
13679
+ };
13680
+ };
13681
+ };
12678
13682
  "get-sub-template": {
12679
13683
  parameters: {
12680
13684
  query?: never;
@@ -14705,6 +15709,68 @@ export interface operations {
14705
15709
  };
14706
15710
  };
14707
15711
  };
15712
+ "user-nodes": {
15713
+ parameters: {
15714
+ query?: never;
15715
+ header?: never;
15716
+ path: {
15717
+ id: number;
15718
+ };
15719
+ cookie?: never;
15720
+ };
15721
+ requestBody?: never;
15722
+ responses: {
15723
+ /** @description OK */
15724
+ 200: {
15725
+ headers: {
15726
+ [name: string]: unknown;
15727
+ };
15728
+ content: {
15729
+ "application/json": components["schemas"]["UserNode"][];
15730
+ };
15731
+ };
15732
+ /** @description Error */
15733
+ default: {
15734
+ headers: {
15735
+ [name: string]: unknown;
15736
+ };
15737
+ content: {
15738
+ "application/problem+json": components["schemas"]["ErrorModel"];
15739
+ };
15740
+ };
15741
+ };
15742
+ };
15743
+ "user-online": {
15744
+ parameters: {
15745
+ query?: never;
15746
+ header?: never;
15747
+ path: {
15748
+ id: number;
15749
+ };
15750
+ cookie?: never;
15751
+ };
15752
+ requestBody?: never;
15753
+ responses: {
15754
+ /** @description OK */
15755
+ 200: {
15756
+ headers: {
15757
+ [name: string]: unknown;
15758
+ };
15759
+ content: {
15760
+ "application/json": components["schemas"]["UserOnlineView"][];
15761
+ };
15762
+ };
15763
+ /** @description Error */
15764
+ default: {
15765
+ headers: {
15766
+ [name: string]: unknown;
15767
+ };
15768
+ content: {
15769
+ "application/problem+json": components["schemas"]["ErrorModel"];
15770
+ };
15771
+ };
15772
+ };
15773
+ };
14708
15774
  "user-pools": {
14709
15775
  parameters: {
14710
15776
  query?: never;
@@ -14802,6 +15868,41 @@ export interface operations {
14802
15868
  };
14803
15869
  };
14804
15870
  };
15871
+ "reset-user-connections": {
15872
+ parameters: {
15873
+ query?: never;
15874
+ header?: never;
15875
+ path: {
15876
+ id: number;
15877
+ };
15878
+ cookie?: never;
15879
+ };
15880
+ requestBody: {
15881
+ content: {
15882
+ "application/json": components["schemas"]["ResetConnectionsInputBody"];
15883
+ };
15884
+ };
15885
+ responses: {
15886
+ /** @description OK */
15887
+ 200: {
15888
+ headers: {
15889
+ [name: string]: unknown;
15890
+ };
15891
+ content: {
15892
+ "application/json": components["schemas"]["ResetConnectionsOutputBody"];
15893
+ };
15894
+ };
15895
+ /** @description Error */
15896
+ default: {
15897
+ headers: {
15898
+ [name: string]: unknown;
15899
+ };
15900
+ content: {
15901
+ "application/problem+json": components["schemas"]["ErrorModel"];
15902
+ };
15903
+ };
15904
+ };
15905
+ };
14805
15906
  "reset-user-traffic": {
14806
15907
  parameters: {
14807
15908
  query?: never;