@hubex/mcp 0.12.20261118 → 0.13.0

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.
@@ -1,1300 +0,0 @@
1
- {
2
- "openapi": "3.0.1",
3
- "info": {
4
- "title": "HubEx ONBRD API",
5
- "description": "User onboarding service (#32241)",
6
- "contact": {
7
- "name": "SmartService Development Team",
8
- "email": "fmbackend@melston.ru"
9
- },
10
- "version": "v1.0.0.0"
11
- },
12
- "servers": [
13
- {
14
- "url": "https://dev-api.hubex.ru/fsm/ONBRD"
15
- }
16
- ],
17
- "paths": {
18
- "/onboarding/status": {
19
- "get": {
20
- "tags": [
21
- "UserOnboarding"
22
- ],
23
- "summary": "Получить статус онбординга текущего пользователя",
24
- "description": "## Пример запроса:\r\n \r\nGET /onboarding/status?onboardingTypeId=1\r\n \r\n## Пример успешного ответа:\r\n```json\r\n{\r\n \"onboardingTypeID\": 1,\r\n \"onboardingState\": \"not_started\",\r\n \"progressJson\": null,\r\n \"isEnabled\": false,\r\n \"isSystemOnboardingEnabled\": false,\r\n \"isTenantOnboardingEnabled\": false,\r\n \"isUserOnboardingEnabled\": null\r\n}\r\n```",
25
- "parameters": [
26
- {
27
- "name": "onboardingTypeId",
28
- "in": "query",
29
- "description": "Идентификатор типа онбординга (1 — general, 2 — task, 3 — asset). По умолчанию 1",
30
- "schema": {
31
- "type": "integer",
32
- "format": "int32",
33
- "default": 1
34
- }
35
- },
36
- {
37
- "name": "X-Application-ID",
38
- "in": "header",
39
- "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
40
- "schema": {
41
- "enum": [
42
- 1,
43
- 2,
44
- 3,
45
- 4,
46
- 5,
47
- 6
48
- ],
49
- "type": "integer",
50
- "format": "int32",
51
- "default": 3,
52
- "x-enumNames": [
53
- "EngineerMobile",
54
- "CustomerMobile",
55
- "MainWeb",
56
- "AdminWeb",
57
- "Api",
58
- "PlateWeb"
59
- ]
60
- }
61
- }
62
- ],
63
- "responses": {
64
- "200": {
65
- "description": "Статус успешно получен",
66
- "content": {
67
- "text/plain": {
68
- "schema": {
69
- "$ref": "#/components/schemas/UserOnboardingConfigDto"
70
- }
71
- },
72
- "application/json": {
73
- "schema": {
74
- "$ref": "#/components/schemas/UserOnboardingConfigDto"
75
- }
76
- },
77
- "text/json": {
78
- "schema": {
79
- "$ref": "#/components/schemas/UserOnboardingConfigDto"
80
- }
81
- }
82
- }
83
- },
84
- "401": {
85
- "description": "Пользователь тенанта не найден или недоступен",
86
- "content": {
87
- "text/plain": {
88
- "schema": {
89
- "$ref": "#/components/schemas/ErrorModel"
90
- }
91
- },
92
- "application/json": {
93
- "schema": {
94
- "$ref": "#/components/schemas/ErrorModel"
95
- }
96
- },
97
- "text/json": {
98
- "schema": {
99
- "$ref": "#/components/schemas/ErrorModel"
100
- }
101
- }
102
- }
103
- },
104
- "409": {
105
- "description": "Неверный тип онбординга",
106
- "content": {
107
- "text/plain": {
108
- "schema": {
109
- "$ref": "#/components/schemas/ErrorModel"
110
- }
111
- },
112
- "application/json": {
113
- "schema": {
114
- "$ref": "#/components/schemas/ErrorModel"
115
- }
116
- },
117
- "text/json": {
118
- "schema": {
119
- "$ref": "#/components/schemas/ErrorModel"
120
- }
121
- }
122
- }
123
- },
124
- "403": {
125
- "description": "Forbidden"
126
- }
127
- }
128
- }
129
- },
130
- "/onboarding/flags": {
131
- "get": {
132
- "tags": [
133
- "UserOnboarding"
134
- ],
135
- "summary": "Получить флаги включения онбординга",
136
- "description": "## Пример запроса:\r\n \r\nGET /onboarding/flags?onboardingTypeId=1\r\n \r\n## Пример успешного ответа:\r\n```json\r\n{\r\n \"onboardingTypeID\": 1,\r\n \"userID\": 42,\r\n \"isSystemOnboardingEnabled\": false,\r\n \"isTenantOnboardingEnabled\": true,\r\n \"isUserOnboardingEnabled\": null,\r\n \"isEnabled\": true\r\n}\r\n```",
137
- "parameters": [
138
- {
139
- "name": "onboardingTypeId",
140
- "in": "query",
141
- "description": "Идентификатор типа онбординга. По умолчанию 1",
142
- "schema": {
143
- "type": "integer",
144
- "format": "int32",
145
- "default": 1
146
- }
147
- },
148
- {
149
- "name": "X-Application-ID",
150
- "in": "header",
151
- "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
152
- "schema": {
153
- "enum": [
154
- 1,
155
- 2,
156
- 3,
157
- 4,
158
- 5,
159
- 6
160
- ],
161
- "type": "integer",
162
- "format": "int32",
163
- "default": 3,
164
- "x-enumNames": [
165
- "EngineerMobile",
166
- "CustomerMobile",
167
- "MainWeb",
168
- "AdminWeb",
169
- "Api",
170
- "PlateWeb"
171
- ]
172
- }
173
- }
174
- ],
175
- "responses": {
176
- "200": {
177
- "description": "Флаги успешно получены",
178
- "content": {
179
- "text/plain": {
180
- "schema": {
181
- "$ref": "#/components/schemas/OnboardingConfigDto"
182
- }
183
- },
184
- "application/json": {
185
- "schema": {
186
- "$ref": "#/components/schemas/OnboardingConfigDto"
187
- }
188
- },
189
- "text/json": {
190
- "schema": {
191
- "$ref": "#/components/schemas/OnboardingConfigDto"
192
- }
193
- }
194
- }
195
- },
196
- "401": {
197
- "description": "Пользователь тенанта не найден или недоступен",
198
- "content": {
199
- "text/plain": {
200
- "schema": {
201
- "$ref": "#/components/schemas/ErrorModel"
202
- }
203
- },
204
- "application/json": {
205
- "schema": {
206
- "$ref": "#/components/schemas/ErrorModel"
207
- }
208
- },
209
- "text/json": {
210
- "schema": {
211
- "$ref": "#/components/schemas/ErrorModel"
212
- }
213
- }
214
- }
215
- },
216
- "409": {
217
- "description": "Неверный тип онбординга",
218
- "content": {
219
- "text/plain": {
220
- "schema": {
221
- "$ref": "#/components/schemas/ErrorModel"
222
- }
223
- },
224
- "application/json": {
225
- "schema": {
226
- "$ref": "#/components/schemas/ErrorModel"
227
- }
228
- },
229
- "text/json": {
230
- "schema": {
231
- "$ref": "#/components/schemas/ErrorModel"
232
- }
233
- }
234
- }
235
- },
236
- "403": {
237
- "description": "Forbidden"
238
- }
239
- }
240
- }
241
- },
242
- "/onboarding/progress": {
243
- "put": {
244
- "tags": [
245
- "UserOnboarding"
246
- ],
247
- "summary": "Сохранить прогресс онбординга",
248
- "description": "## Пример запроса:\r\n \r\nPUT /onboarding/progress?onboardingTypeId=1\r\n \r\n```json\r\n{\r\n \"onboardingState\": \"in_progress\",\r\n \"progress\": {\r\n \"currentStepId\": \"welcome\",\r\n \"completedStepIds\": [],\r\n \"schemaVersion\": \"1\"\r\n }\r\n}\r\n```\r\n \r\n## Пример успешного ответа:\r\n```json\r\n{\r\n \"onboardingTypeID\": 1,\r\n \"onboardingState\": \"in_progress\",\r\n \"progressJson\": \"{\\\"currentStepId\\\":\\\"welcome\\\",\\\"completedStepIds\\\":[],\\\"schemaVersion\\\":\\\"1\\\"}\"\r\n}\r\n```",
249
- "parameters": [
250
- {
251
- "name": "onboardingTypeId",
252
- "in": "query",
253
- "description": "Идентификатор типа онбординга. По умолчанию 1",
254
- "schema": {
255
- "type": "integer",
256
- "format": "int32",
257
- "default": 1
258
- }
259
- },
260
- {
261
- "name": "X-Application-ID",
262
- "in": "header",
263
- "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
264
- "schema": {
265
- "enum": [
266
- 1,
267
- 2,
268
- 3,
269
- 4,
270
- 5,
271
- 6
272
- ],
273
- "type": "integer",
274
- "format": "int32",
275
- "default": 3,
276
- "x-enumNames": [
277
- "EngineerMobile",
278
- "CustomerMobile",
279
- "MainWeb",
280
- "AdminWeb",
281
- "Api",
282
- "PlateWeb"
283
- ]
284
- }
285
- }
286
- ],
287
- "requestBody": {
288
- "description": "Состояние и JSON прогресса",
289
- "content": {
290
- "application/json-patch+json": {
291
- "schema": {
292
- "$ref": "#/components/schemas/UserOnboardingProgressDto"
293
- }
294
- },
295
- "application/json": {
296
- "schema": {
297
- "$ref": "#/components/schemas/UserOnboardingProgressDto"
298
- }
299
- },
300
- "text/json": {
301
- "schema": {
302
- "$ref": "#/components/schemas/UserOnboardingProgressDto"
303
- }
304
- },
305
- "application/*+json": {
306
- "schema": {
307
- "$ref": "#/components/schemas/UserOnboardingProgressDto"
308
- }
309
- }
310
- }
311
- },
312
- "responses": {
313
- "200": {
314
- "description": "Прогресс успешно сохранён",
315
- "content": {
316
- "text/plain": {
317
- "schema": {
318
- "$ref": "#/components/schemas/UserOnboardingProgressDto"
319
- }
320
- },
321
- "application/json": {
322
- "schema": {
323
- "$ref": "#/components/schemas/UserOnboardingProgressDto"
324
- }
325
- },
326
- "text/json": {
327
- "schema": {
328
- "$ref": "#/components/schemas/UserOnboardingProgressDto"
329
- }
330
- }
331
- }
332
- },
333
- "400": {
334
- "description": "Неверное тело запроса",
335
- "content": {
336
- "text/plain": {
337
- "schema": {
338
- "$ref": "#/components/schemas/ErrorModel"
339
- }
340
- },
341
- "application/json": {
342
- "schema": {
343
- "$ref": "#/components/schemas/ErrorModel"
344
- }
345
- },
346
- "text/json": {
347
- "schema": {
348
- "$ref": "#/components/schemas/ErrorModel"
349
- }
350
- }
351
- }
352
- },
353
- "401": {
354
- "description": "Пользователь тенанта не найден или недоступен",
355
- "content": {
356
- "text/plain": {
357
- "schema": {
358
- "$ref": "#/components/schemas/ErrorModel"
359
- }
360
- },
361
- "application/json": {
362
- "schema": {
363
- "$ref": "#/components/schemas/ErrorModel"
364
- }
365
- },
366
- "text/json": {
367
- "schema": {
368
- "$ref": "#/components/schemas/ErrorModel"
369
- }
370
- }
371
- }
372
- },
373
- "409": {
374
- "description": "Онбординг уже завершён или пропущен, либо неверные данные",
375
- "content": {
376
- "text/plain": {
377
- "schema": {
378
- "$ref": "#/components/schemas/ErrorModel"
379
- }
380
- },
381
- "application/json": {
382
- "schema": {
383
- "$ref": "#/components/schemas/ErrorModel"
384
- }
385
- },
386
- "text/json": {
387
- "schema": {
388
- "$ref": "#/components/schemas/ErrorModel"
389
- }
390
- }
391
- }
392
- },
393
- "403": {
394
- "description": "Forbidden"
395
- }
396
- }
397
- }
398
- },
399
- "/onboarding/skip": {
400
- "post": {
401
- "tags": [
402
- "UserOnboarding"
403
- ],
404
- "summary": "Пропустить онбординг",
405
- "description": "## Пример запроса:\r\n \r\nPOST /onboarding/skip?onboardingTypeId=1\r\n \r\n## Пример успешного ответа:\r\n```json\r\n{\r\n \"onboardingTypeID\": 1,\r\n \"onboardingState\": \"skipped\"\r\n}\r\n```",
406
- "parameters": [
407
- {
408
- "name": "onboardingTypeId",
409
- "in": "query",
410
- "description": "Идентификатор типа онбординга. По умолчанию 1",
411
- "schema": {
412
- "type": "integer",
413
- "format": "int32",
414
- "default": 1
415
- }
416
- },
417
- {
418
- "name": "X-Application-ID",
419
- "in": "header",
420
- "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
421
- "schema": {
422
- "enum": [
423
- 1,
424
- 2,
425
- 3,
426
- 4,
427
- 5,
428
- 6
429
- ],
430
- "type": "integer",
431
- "format": "int32",
432
- "default": 3,
433
- "x-enumNames": [
434
- "EngineerMobile",
435
- "CustomerMobile",
436
- "MainWeb",
437
- "AdminWeb",
438
- "Api",
439
- "PlateWeb"
440
- ]
441
- }
442
- }
443
- ],
444
- "responses": {
445
- "200": {
446
- "description": "Онбординг успешно пропущен",
447
- "content": {
448
- "text/plain": {
449
- "schema": {
450
- "$ref": "#/components/schemas/UserOnboardingStateResultDto"
451
- }
452
- },
453
- "application/json": {
454
- "schema": {
455
- "$ref": "#/components/schemas/UserOnboardingStateResultDto"
456
- }
457
- },
458
- "text/json": {
459
- "schema": {
460
- "$ref": "#/components/schemas/UserOnboardingStateResultDto"
461
- }
462
- }
463
- }
464
- },
465
- "401": {
466
- "description": "Пользователь тенанта не найден или недоступен",
467
- "content": {
468
- "text/plain": {
469
- "schema": {
470
- "$ref": "#/components/schemas/ErrorModel"
471
- }
472
- },
473
- "application/json": {
474
- "schema": {
475
- "$ref": "#/components/schemas/ErrorModel"
476
- }
477
- },
478
- "text/json": {
479
- "schema": {
480
- "$ref": "#/components/schemas/ErrorModel"
481
- }
482
- }
483
- }
484
- },
485
- "409": {
486
- "description": "Онбординг уже завершён или пропущен",
487
- "content": {
488
- "text/plain": {
489
- "schema": {
490
- "$ref": "#/components/schemas/ErrorModel"
491
- }
492
- },
493
- "application/json": {
494
- "schema": {
495
- "$ref": "#/components/schemas/ErrorModel"
496
- }
497
- },
498
- "text/json": {
499
- "schema": {
500
- "$ref": "#/components/schemas/ErrorModel"
501
- }
502
- }
503
- }
504
- },
505
- "403": {
506
- "description": "Forbidden"
507
- }
508
- }
509
- }
510
- },
511
- "/onboarding/reset": {
512
- "post": {
513
- "tags": [
514
- "UserOnboarding"
515
- ],
516
- "summary": "Сбросить прогресс онбординга пользователя",
517
- "description": "## Пример запроса:\r\n \r\nPOST /onboarding/reset?userId=42&onboardingTypeId=1\r\n \r\n## Пример успешного ответа:\r\n```json\r\n{\r\n \"onboardingTypeID\": 1,\r\n \"userID\": 42,\r\n \"onboardingState\": \"not_started\"\r\n}\r\n```",
518
- "parameters": [
519
- {
520
- "name": "userId",
521
- "in": "query",
522
- "description": "Идентификатор пользователя (ADM.User), для которого выполняется сброс",
523
- "schema": {
524
- "type": "integer",
525
- "format": "int32"
526
- }
527
- },
528
- {
529
- "name": "onboardingTypeId",
530
- "in": "query",
531
- "description": "Идентификатор типа онбординга. По умолчанию 1",
532
- "schema": {
533
- "type": "integer",
534
- "format": "int32",
535
- "default": 1
536
- }
537
- },
538
- {
539
- "name": "X-Application-ID",
540
- "in": "header",
541
- "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
542
- "schema": {
543
- "enum": [
544
- 1,
545
- 2,
546
- 3,
547
- 4,
548
- 5,
549
- 6
550
- ],
551
- "type": "integer",
552
- "format": "int32",
553
- "default": 3,
554
- "x-enumNames": [
555
- "EngineerMobile",
556
- "CustomerMobile",
557
- "MainWeb",
558
- "AdminWeb",
559
- "Api",
560
- "PlateWeb"
561
- ]
562
- }
563
- }
564
- ],
565
- "responses": {
566
- "200": {
567
- "description": "Прогресс успешно сброшен",
568
- "content": {
569
- "text/plain": {
570
- "schema": {
571
- "$ref": "#/components/schemas/UserOnboardingResetResultDto"
572
- }
573
- },
574
- "application/json": {
575
- "schema": {
576
- "$ref": "#/components/schemas/UserOnboardingResetResultDto"
577
- }
578
- },
579
- "text/json": {
580
- "schema": {
581
- "$ref": "#/components/schemas/UserOnboardingResetResultDto"
582
- }
583
- }
584
- }
585
- },
586
- "401": {
587
- "description": "Пользователь тенанта не найден или недоступен",
588
- "content": {
589
- "text/plain": {
590
- "schema": {
591
- "$ref": "#/components/schemas/ErrorModel"
592
- }
593
- },
594
- "application/json": {
595
- "schema": {
596
- "$ref": "#/components/schemas/ErrorModel"
597
- }
598
- },
599
- "text/json": {
600
- "schema": {
601
- "$ref": "#/components/schemas/ErrorModel"
602
- }
603
- }
604
- }
605
- },
606
- "403": {
607
- "description": "Недостаточно прав или пользователь не найден",
608
- "content": {
609
- "text/plain": {
610
- "schema": {
611
- "$ref": "#/components/schemas/ErrorModel"
612
- }
613
- },
614
- "application/json": {
615
- "schema": {
616
- "$ref": "#/components/schemas/ErrorModel"
617
- }
618
- },
619
- "text/json": {
620
- "schema": {
621
- "$ref": "#/components/schemas/ErrorModel"
622
- }
623
- }
624
- }
625
- },
626
- "409": {
627
- "description": "Неверный тип онбординга",
628
- "content": {
629
- "text/plain": {
630
- "schema": {
631
- "$ref": "#/components/schemas/ErrorModel"
632
- }
633
- },
634
- "application/json": {
635
- "schema": {
636
- "$ref": "#/components/schemas/ErrorModel"
637
- }
638
- },
639
- "text/json": {
640
- "schema": {
641
- "$ref": "#/components/schemas/ErrorModel"
642
- }
643
- }
644
- }
645
- }
646
- }
647
- }
648
- },
649
- "/onboarding/flags/tenant": {
650
- "put": {
651
- "tags": [
652
- "UserOnboarding"
653
- ],
654
- "summary": "Обновить флаг включения онбординга на уровне тенанта",
655
- "description": "## Пример запроса:\r\n \r\nPUT /onboarding/flags/tenant?onboardingTypeId=1\r\n \r\n```json\r\ntrue\r\n```\r\n \r\n## Пример успешного ответа:\r\n```json\r\ntrue\r\n```",
656
- "parameters": [
657
- {
658
- "name": "onboardingTypeId",
659
- "in": "query",
660
- "description": "Идентификатор типа онбординга. По умолчанию 1",
661
- "schema": {
662
- "type": "integer",
663
- "format": "int32",
664
- "default": 1
665
- }
666
- },
667
- {
668
- "name": "X-Application-ID",
669
- "in": "header",
670
- "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
671
- "schema": {
672
- "enum": [
673
- 1,
674
- 2,
675
- 3,
676
- 4,
677
- 5,
678
- 6
679
- ],
680
- "type": "integer",
681
- "format": "int32",
682
- "default": 3,
683
- "x-enumNames": [
684
- "EngineerMobile",
685
- "CustomerMobile",
686
- "MainWeb",
687
- "AdminWeb",
688
- "Api",
689
- "PlateWeb"
690
- ]
691
- }
692
- }
693
- ],
694
- "requestBody": {
695
- "content": {
696
- "application/json-patch+json": {
697
- "schema": {
698
- "type": "boolean"
699
- }
700
- },
701
- "application/json": {
702
- "schema": {
703
- "type": "boolean"
704
- }
705
- },
706
- "text/json": {
707
- "schema": {
708
- "type": "boolean"
709
- }
710
- },
711
- "application/*+json": {
712
- "schema": {
713
- "type": "boolean"
714
- }
715
- }
716
- }
717
- },
718
- "responses": {
719
- "200": {
720
- "description": "Флаг успешно обновлён",
721
- "content": {
722
- "text/plain": {
723
- "schema": {
724
- "type": "boolean"
725
- }
726
- },
727
- "application/json": {
728
- "schema": {
729
- "type": "boolean"
730
- }
731
- },
732
- "text/json": {
733
- "schema": {
734
- "type": "boolean"
735
- }
736
- }
737
- }
738
- },
739
- "400": {
740
- "description": "Неверное тело запроса",
741
- "content": {
742
- "text/plain": {
743
- "schema": {
744
- "$ref": "#/components/schemas/ErrorModel"
745
- }
746
- },
747
- "application/json": {
748
- "schema": {
749
- "$ref": "#/components/schemas/ErrorModel"
750
- }
751
- },
752
- "text/json": {
753
- "schema": {
754
- "$ref": "#/components/schemas/ErrorModel"
755
- }
756
- }
757
- }
758
- },
759
- "401": {
760
- "description": "Пользователь тенанта или тенант не найден",
761
- "content": {
762
- "text/plain": {
763
- "schema": {
764
- "$ref": "#/components/schemas/ErrorModel"
765
- }
766
- },
767
- "application/json": {
768
- "schema": {
769
- "$ref": "#/components/schemas/ErrorModel"
770
- }
771
- },
772
- "text/json": {
773
- "schema": {
774
- "$ref": "#/components/schemas/ErrorModel"
775
- }
776
- }
777
- }
778
- },
779
- "403": {
780
- "description": "Недостаточно прав для изменения флага онбординга тенанта",
781
- "content": {
782
- "text/plain": {
783
- "schema": {
784
- "$ref": "#/components/schemas/ErrorModel"
785
- }
786
- },
787
- "application/json": {
788
- "schema": {
789
- "$ref": "#/components/schemas/ErrorModel"
790
- }
791
- },
792
- "text/json": {
793
- "schema": {
794
- "$ref": "#/components/schemas/ErrorModel"
795
- }
796
- }
797
- }
798
- },
799
- "409": {
800
- "description": "Неверный тип онбординга",
801
- "content": {
802
- "text/plain": {
803
- "schema": {
804
- "$ref": "#/components/schemas/ErrorModel"
805
- }
806
- },
807
- "application/json": {
808
- "schema": {
809
- "$ref": "#/components/schemas/ErrorModel"
810
- }
811
- },
812
- "text/json": {
813
- "schema": {
814
- "$ref": "#/components/schemas/ErrorModel"
815
- }
816
- }
817
- }
818
- }
819
- }
820
- }
821
- },
822
- "/onboarding/flags/user/{userId}": {
823
- "put": {
824
- "tags": [
825
- "UserOnboarding"
826
- ],
827
- "summary": "Обновить override-флаг онбординга для пользователя",
828
- "description": "## Пример запроса:\r\n \r\nPUT /onboarding/flags/user/42?onboardingTypeId=1\r\n \r\n```json\r\nfalse\r\n```\r\n \r\nПередайте `null`, чтобы сбросить override и использовать tenant-флаг.\r\n \r\n## Пример успешного ответа:\r\n```json\r\nfalse\r\n```",
829
- "parameters": [
830
- {
831
- "name": "userId",
832
- "in": "path",
833
- "description": "Идентификатор пользователя (ADM.User)",
834
- "required": true,
835
- "schema": {
836
- "type": "integer",
837
- "format": "int32"
838
- }
839
- },
840
- {
841
- "name": "onboardingTypeId",
842
- "in": "query",
843
- "description": "Идентификатор типа онбординга. По умолчанию 1",
844
- "schema": {
845
- "type": "integer",
846
- "format": "int32",
847
- "default": 1
848
- }
849
- },
850
- {
851
- "name": "X-Application-ID",
852
- "in": "header",
853
- "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
854
- "schema": {
855
- "enum": [
856
- 1,
857
- 2,
858
- 3,
859
- 4,
860
- 5,
861
- 6
862
- ],
863
- "type": "integer",
864
- "format": "int32",
865
- "default": 3,
866
- "x-enumNames": [
867
- "EngineerMobile",
868
- "CustomerMobile",
869
- "MainWeb",
870
- "AdminWeb",
871
- "Api",
872
- "PlateWeb"
873
- ]
874
- }
875
- }
876
- ],
877
- "requestBody": {
878
- "content": {
879
- "application/json-patch+json": {
880
- "schema": {
881
- "type": "boolean"
882
- }
883
- },
884
- "application/json": {
885
- "schema": {
886
- "type": "boolean"
887
- }
888
- },
889
- "text/json": {
890
- "schema": {
891
- "type": "boolean"
892
- }
893
- },
894
- "application/*+json": {
895
- "schema": {
896
- "type": "boolean"
897
- }
898
- }
899
- }
900
- },
901
- "responses": {
902
- "200": {
903
- "description": "Флаг успешно обновлён",
904
- "content": {
905
- "text/plain": {
906
- "schema": {
907
- "type": "boolean"
908
- }
909
- },
910
- "application/json": {
911
- "schema": {
912
- "type": "boolean"
913
- }
914
- },
915
- "text/json": {
916
- "schema": {
917
- "type": "boolean"
918
- }
919
- }
920
- }
921
- },
922
- "400": {
923
- "description": "Неверное тело запроса",
924
- "content": {
925
- "text/plain": {
926
- "schema": {
927
- "$ref": "#/components/schemas/ErrorModel"
928
- }
929
- },
930
- "application/json": {
931
- "schema": {
932
- "$ref": "#/components/schemas/ErrorModel"
933
- }
934
- },
935
- "text/json": {
936
- "schema": {
937
- "$ref": "#/components/schemas/ErrorModel"
938
- }
939
- }
940
- }
941
- },
942
- "401": {
943
- "description": "Пользователь тенанта не найден или недоступен",
944
- "content": {
945
- "text/plain": {
946
- "schema": {
947
- "$ref": "#/components/schemas/ErrorModel"
948
- }
949
- },
950
- "application/json": {
951
- "schema": {
952
- "$ref": "#/components/schemas/ErrorModel"
953
- }
954
- },
955
- "text/json": {
956
- "schema": {
957
- "$ref": "#/components/schemas/ErrorModel"
958
- }
959
- }
960
- }
961
- },
962
- "403": {
963
- "description": "Недостаточно прав или пользователь не найден",
964
- "content": {
965
- "text/plain": {
966
- "schema": {
967
- "$ref": "#/components/schemas/ErrorModel"
968
- }
969
- },
970
- "application/json": {
971
- "schema": {
972
- "$ref": "#/components/schemas/ErrorModel"
973
- }
974
- },
975
- "text/json": {
976
- "schema": {
977
- "$ref": "#/components/schemas/ErrorModel"
978
- }
979
- }
980
- }
981
- },
982
- "409": {
983
- "description": "Неверный тип онбординга",
984
- "content": {
985
- "text/plain": {
986
- "schema": {
987
- "$ref": "#/components/schemas/ErrorModel"
988
- }
989
- },
990
- "application/json": {
991
- "schema": {
992
- "$ref": "#/components/schemas/ErrorModel"
993
- }
994
- },
995
- "text/json": {
996
- "schema": {
997
- "$ref": "#/components/schemas/ErrorModel"
998
- }
999
- }
1000
- }
1001
- }
1002
- }
1003
- }
1004
- },
1005
- "/onboarding/flags/system": {
1006
- "put": {
1007
- "tags": [
1008
- "UserOnboarding"
1009
- ],
1010
- "summary": "Обновить глобальный флаг принудительного включения онбординга",
1011
- "description": "При `isEnabled: true` онбординг включается для всех тенантов и пользователей (effective = true).\r\nПри `isEnabled: false` глобальный принудительный вкл снимается; итоговый флаг считается по tenant и user override.\r\n \r\n## Пример запроса:\r\n \r\nPUT /onboarding/flags/system\r\n \r\n```json\r\ntrue\r\n```\r\n \r\n## Пример успешного ответа:\r\n```json\r\ntrue\r\n```",
1012
- "parameters": [
1013
- {
1014
- "name": "X-Application-ID",
1015
- "in": "header",
1016
- "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
1017
- "schema": {
1018
- "enum": [
1019
- 1,
1020
- 2,
1021
- 3,
1022
- 4,
1023
- 5,
1024
- 6
1025
- ],
1026
- "type": "integer",
1027
- "format": "int32",
1028
- "default": 3,
1029
- "x-enumNames": [
1030
- "EngineerMobile",
1031
- "CustomerMobile",
1032
- "MainWeb",
1033
- "AdminWeb",
1034
- "Api",
1035
- "PlateWeb"
1036
- ]
1037
- }
1038
- }
1039
- ],
1040
- "requestBody": {
1041
- "content": {
1042
- "application/json-patch+json": {
1043
- "schema": {
1044
- "type": "boolean"
1045
- }
1046
- },
1047
- "application/json": {
1048
- "schema": {
1049
- "type": "boolean"
1050
- }
1051
- },
1052
- "text/json": {
1053
- "schema": {
1054
- "type": "boolean"
1055
- }
1056
- },
1057
- "application/*+json": {
1058
- "schema": {
1059
- "type": "boolean"
1060
- }
1061
- }
1062
- }
1063
- },
1064
- "responses": {
1065
- "200": {
1066
- "description": "Флаг успешно обновлён",
1067
- "content": {
1068
- "text/plain": {
1069
- "schema": {
1070
- "type": "boolean"
1071
- }
1072
- },
1073
- "application/json": {
1074
- "schema": {
1075
- "type": "boolean"
1076
- }
1077
- },
1078
- "text/json": {
1079
- "schema": {
1080
- "type": "boolean"
1081
- }
1082
- }
1083
- }
1084
- },
1085
- "400": {
1086
- "description": "Неверное тело запроса",
1087
- "content": {
1088
- "text/plain": {
1089
- "schema": {
1090
- "$ref": "#/components/schemas/ErrorModel"
1091
- }
1092
- },
1093
- "application/json": {
1094
- "schema": {
1095
- "$ref": "#/components/schemas/ErrorModel"
1096
- }
1097
- },
1098
- "text/json": {
1099
- "schema": {
1100
- "$ref": "#/components/schemas/ErrorModel"
1101
- }
1102
- }
1103
- }
1104
- },
1105
- "403": {
1106
- "description": "Доступ запрещён (требуется cross-tenant admin)",
1107
- "content": {
1108
- "text/plain": {
1109
- "schema": {
1110
- "$ref": "#/components/schemas/ErrorModel"
1111
- }
1112
- },
1113
- "application/json": {
1114
- "schema": {
1115
- "$ref": "#/components/schemas/ErrorModel"
1116
- }
1117
- },
1118
- "text/json": {
1119
- "schema": {
1120
- "$ref": "#/components/schemas/ErrorModel"
1121
- }
1122
- }
1123
- }
1124
- },
1125
- "401": {
1126
- "description": "Unauthorized"
1127
- }
1128
- }
1129
- }
1130
- }
1131
- },
1132
- "components": {
1133
- "schemas": {
1134
- "ErrorModel": {
1135
- "type": "object",
1136
- "properties": {
1137
- "traceIdentifier": {
1138
- "type": "string",
1139
- "nullable": true
1140
- },
1141
- "code": {
1142
- "type": "string",
1143
- "nullable": true
1144
- },
1145
- "message": {
1146
- "type": "string",
1147
- "nullable": true
1148
- },
1149
- "arguments": {
1150
- "type": "object",
1151
- "additionalProperties": {
1152
- "type": "string",
1153
- "nullable": true
1154
- },
1155
- "nullable": true
1156
- }
1157
- },
1158
- "additionalProperties": false
1159
- },
1160
- "JToken": {
1161
- "type": "array",
1162
- "items": {
1163
- "$ref": "#/components/schemas/JToken"
1164
- }
1165
- },
1166
- "OnboardingConfigDto": {
1167
- "type": "object",
1168
- "properties": {
1169
- "onboardingTypeID": {
1170
- "type": "integer",
1171
- "format": "int32"
1172
- },
1173
- "userID": {
1174
- "type": "integer",
1175
- "format": "int32",
1176
- "nullable": true
1177
- },
1178
- "isSystemOnboardingEnabled": {
1179
- "type": "boolean"
1180
- },
1181
- "isTenantOnboardingEnabled": {
1182
- "type": "boolean"
1183
- },
1184
- "isUserOnboardingEnabled": {
1185
- "type": "boolean",
1186
- "nullable": true
1187
- },
1188
- "isEnabled": {
1189
- "type": "boolean"
1190
- }
1191
- },
1192
- "additionalProperties": false
1193
- },
1194
- "OnboardingStateCode": {
1195
- "enum": [
1196
- "NotStarted",
1197
- "InProgress",
1198
- "Completed",
1199
- "Skipped"
1200
- ],
1201
- "type": "string"
1202
- },
1203
- "UserOnboardingConfigDto": {
1204
- "type": "object",
1205
- "properties": {
1206
- "onboardingTypeID": {
1207
- "type": "integer",
1208
- "format": "int32"
1209
- },
1210
- "userID": {
1211
- "type": "integer",
1212
- "format": "int32",
1213
- "nullable": true
1214
- },
1215
- "isSystemOnboardingEnabled": {
1216
- "type": "boolean"
1217
- },
1218
- "isTenantOnboardingEnabled": {
1219
- "type": "boolean"
1220
- },
1221
- "isUserOnboardingEnabled": {
1222
- "type": "boolean",
1223
- "nullable": true
1224
- },
1225
- "isEnabled": {
1226
- "type": "boolean"
1227
- },
1228
- "onboardingState": {
1229
- "$ref": "#/components/schemas/OnboardingStateCode"
1230
- },
1231
- "progressJson": {
1232
- "type": "string",
1233
- "nullable": true
1234
- }
1235
- },
1236
- "additionalProperties": false
1237
- },
1238
- "UserOnboardingProgressDto": {
1239
- "type": "object",
1240
- "properties": {
1241
- "onboardingTypeID": {
1242
- "type": "integer",
1243
- "format": "int32"
1244
- },
1245
- "onboardingState": {
1246
- "$ref": "#/components/schemas/OnboardingStateCode"
1247
- },
1248
- "progressJson": {
1249
- "type": "string",
1250
- "nullable": true
1251
- },
1252
- "progress": {
1253
- "$ref": "#/components/schemas/JToken"
1254
- }
1255
- },
1256
- "additionalProperties": false
1257
- },
1258
- "UserOnboardingResetResultDto": {
1259
- "type": "object",
1260
- "properties": {
1261
- "onboardingTypeID": {
1262
- "type": "integer",
1263
- "format": "int32"
1264
- },
1265
- "userID": {
1266
- "type": "integer",
1267
- "format": "int32"
1268
- },
1269
- "onboardingState": {
1270
- "$ref": "#/components/schemas/OnboardingStateCode"
1271
- }
1272
- },
1273
- "additionalProperties": false
1274
- },
1275
- "UserOnboardingStateResultDto": {
1276
- "type": "object",
1277
- "properties": {
1278
- "onboardingTypeID": {
1279
- "type": "integer",
1280
- "format": "int32"
1281
- },
1282
- "onboardingState": {
1283
- "$ref": "#/components/schemas/OnboardingStateCode"
1284
- }
1285
- },
1286
- "additionalProperties": false
1287
- }
1288
- }
1289
- },
1290
- "tags": [
1291
- {
1292
- "name": "UserOnboarding",
1293
- "description": "Контроллер пользовательского онбординга"
1294
- },
1295
- {
1296
- "name": "UserOnboarding",
1297
- "description": "Контроллер пользовательского онбординга"
1298
- }
1299
- ]
1300
- }