@hubex/mcp 0.2.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.
- package/.env.example +54 -0
- package/CONNECTING.md +260 -0
- package/README.md +266 -0
- package/dist/auth.js +226 -0
- package/dist/config.js +120 -0
- package/dist/generated/manifest.js +3643 -0
- package/dist/guides/field-notes.json +27 -0
- package/dist/guides/loader.js +32 -0
- package/dist/guides/service-map.js +6 -0
- package/dist/http.js +93 -0
- package/dist/index/store.js +134 -0
- package/dist/index/types.js +1 -0
- package/dist/index.js +20 -0
- package/dist/paths.js +20 -0
- package/dist/pii/fields.js +100 -0
- package/dist/pii/mask.js +50 -0
- package/dist/pii/strategies.js +88 -0
- package/dist/schema/build-index.js +67 -0
- package/dist/schema/deref.js +87 -0
- package/dist/schema/describe.js +65 -0
- package/dist/server.js +62 -0
- package/dist/token-prompt.js +41 -0
- package/dist/tools/curated.js +151 -0
- package/dist/tools/discovery.js +187 -0
- package/dist/tools/guides.js +126 -0
- package/dist/tools/registry.js +37 -0
- package/dist/tools/request.js +170 -0
- package/dist/tools/types.js +1 -0
- package/docs/guides/assets.md +334 -0
- package/docs/guides/attributes.md +125 -0
- package/docs/guides/checklisttemplates.md +154 -0
- package/docs/guides/companies.md +57 -0
- package/docs/guides/dictionaries.md +64 -0
- package/docs/guides/lifecycle.md +263 -0
- package/docs/guides/materials.md +135 -0
- package/docs/guides/notifications.md +184 -0
- package/docs/guides/roles.md +125 -0
- package/docs/guides/sla.md +130 -0
- package/docs/guides/start.md +67 -0
- package/docs/guides/taskchecklists.md +149 -0
- package/docs/guides/taskcreate.md +260 -0
- package/docs/guides/taskedit.md +277 -0
- package/docs/guides/tasktypes.md +156 -0
- package/docs/guides/users.md +71 -0
- package/generated/index.dev.json +18776 -0
- package/generated/index.prod.json +18858 -0
- package/package.json +48 -0
- package/swagger/dev/ADM.json +27777 -0
- package/swagger/dev/AUTH.json +1739 -0
- package/swagger/dev/AUTHN.json +1250 -0
- package/swagger/dev/AUTHZ.json +1404 -0
- package/swagger/dev/CM.json +309 -0
- package/swagger/dev/COMMON.json +6543 -0
- package/swagger/dev/ES.json +28029 -0
- package/swagger/dev/EXPORT.json +4575 -0
- package/swagger/dev/IMPORT.json +1479 -0
- package/swagger/dev/LIC.json +224 -0
- package/swagger/dev/MSG.json +7883 -0
- package/swagger/dev/NEWS.json +348 -0
- package/swagger/dev/PA.json +5981 -0
- package/swagger/dev/PMP.json +3196 -0
- package/swagger/dev/PROXY.json +416 -0
- package/swagger/dev/REPORT.json +3921 -0
- package/swagger/dev/SC.json +3771 -0
- package/swagger/dev/SLA.json +2837 -0
- package/swagger/dev/TSTG.json +4981 -0
- package/swagger/dev/UI.json +4720 -0
- package/swagger/dev/WH.json +16796 -0
- package/swagger/dev/WORK.json +36024 -0
- package/swagger/dev/WSP.json +1612 -0
- package/swagger/prod/ADM.json +27777 -0
- package/swagger/prod/AUTH.json +1308 -0
- package/swagger/prod/AUTHN.json +2710 -0
- package/swagger/prod/AUTHZ.json +896 -0
- package/swagger/prod/CM.json +162 -0
- package/swagger/prod/COMMON.json +4910 -0
- package/swagger/prod/ES.json +28029 -0
- package/swagger/prod/EXPORT.json +3091 -0
- package/swagger/prod/LIC.json +123 -0
- package/swagger/prod/MSG.json +6239 -0
- package/swagger/prod/NEWS.json +295 -0
- package/swagger/prod/PA.json +5123 -0
- package/swagger/prod/PMP.json +2978 -0
- package/swagger/prod/PROXY.json +250 -0
- package/swagger/prod/REPORT.json +3729 -0
- package/swagger/prod/SC.json +3771 -0
- package/swagger/prod/SLA.json +2201 -0
- package/swagger/prod/TSTG.json +4220 -0
- package/swagger/prod/UI.json +3879 -0
- package/swagger/prod/WH.json +16730 -0
- package/swagger/prod/WORK.json +35994 -0
- package/swagger/prod/WSP.json +1468 -0
|
@@ -0,0 +1,1308 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.1",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Authenticatin and authorization API for HubEx",
|
|
5
|
+
"description": "Performs all of the operations, necessary to authenticate and authorize a user as a valid tenant member. Offers an API for registering, verifying e-mail, changing password, etc.",
|
|
6
|
+
"contact": {
|
|
7
|
+
"name": "SmartService Backend Team",
|
|
8
|
+
"email": "fmbackend@melston.ru"
|
|
9
|
+
},
|
|
10
|
+
"version": "v1.0.0.0"
|
|
11
|
+
},
|
|
12
|
+
"paths": {
|
|
13
|
+
"/Accounts/this/applications": {
|
|
14
|
+
"get": {
|
|
15
|
+
"tags": [
|
|
16
|
+
"Accounts"
|
|
17
|
+
],
|
|
18
|
+
"summary": "Приложения учетной записи",
|
|
19
|
+
"description": "<br />* Для выполнения данного метода требуется любое из перечисленных полномочий: **AccountClientApplicationList**<br />* Метод поддерживает диапазонный запрос через строку или заголовок запроса.",
|
|
20
|
+
"parameters": [
|
|
21
|
+
{
|
|
22
|
+
"name": "Authorization",
|
|
23
|
+
"in": "header",
|
|
24
|
+
"description": "Bearer",
|
|
25
|
+
"required": true,
|
|
26
|
+
"schema": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "Range",
|
|
32
|
+
"in": "header",
|
|
33
|
+
"description": "Формат: items=FROM-TILL , где FROM - начальный элемент (включая), TILL - конечный элемент (включая)",
|
|
34
|
+
"schema": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "offset",
|
|
40
|
+
"in": "query",
|
|
41
|
+
"description": "количество элементов, которое нобходимо пропустить",
|
|
42
|
+
"schema": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "fetch",
|
|
48
|
+
"in": "query",
|
|
49
|
+
"description": "количество эементов, которое необходимо вернуть",
|
|
50
|
+
"schema": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"responses": {
|
|
56
|
+
"200": {
|
|
57
|
+
"description": "OK",
|
|
58
|
+
"content": {
|
|
59
|
+
"text/plain": {
|
|
60
|
+
"schema": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"items": {
|
|
63
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.ApplicationListResult"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"application/json": {
|
|
68
|
+
"schema": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"items": {
|
|
71
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.ApplicationListResult"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"text/json": {
|
|
76
|
+
"schema": {
|
|
77
|
+
"type": "array",
|
|
78
|
+
"items": {
|
|
79
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.ApplicationListResult"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"401": {
|
|
86
|
+
"description": "Unauthorized"
|
|
87
|
+
},
|
|
88
|
+
"403": {
|
|
89
|
+
"description": "Forbidden"
|
|
90
|
+
},
|
|
91
|
+
"206": {
|
|
92
|
+
"description": "PartialContent",
|
|
93
|
+
"headers": {
|
|
94
|
+
"Content-Range": {
|
|
95
|
+
"description": "items=FROM-TILL/OF , где FROM - начальный элемент (включая), TILL - конечный элемент (включая) OF - общее количество элементов",
|
|
96
|
+
"schema": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"put": {
|
|
105
|
+
"tags": [
|
|
106
|
+
"Accounts"
|
|
107
|
+
],
|
|
108
|
+
"summary": "Актуализация данных о приложениях текущей учетной записи",
|
|
109
|
+
"description": "<br />* Для выполнения данного метода пользователь должен быть **Authenticated**.",
|
|
110
|
+
"parameters": [
|
|
111
|
+
{
|
|
112
|
+
"name": "Authorization",
|
|
113
|
+
"in": "header",
|
|
114
|
+
"description": "Bearer",
|
|
115
|
+
"required": true,
|
|
116
|
+
"schema": {
|
|
117
|
+
"type": "string"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"requestBody": {
|
|
122
|
+
"content": {
|
|
123
|
+
"application/json-patch+json": {
|
|
124
|
+
"schema": {
|
|
125
|
+
"$ref": "#/components/schemas/HubEx.DataProvider.Api.Data.AUTH.AccountClientApplication.MergeData"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"application/json": {
|
|
129
|
+
"schema": {
|
|
130
|
+
"$ref": "#/components/schemas/HubEx.DataProvider.Api.Data.AUTH.AccountClientApplication.MergeData"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"text/json": {
|
|
134
|
+
"schema": {
|
|
135
|
+
"$ref": "#/components/schemas/HubEx.DataProvider.Api.Data.AUTH.AccountClientApplication.MergeData"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"application/*+json": {
|
|
139
|
+
"schema": {
|
|
140
|
+
"$ref": "#/components/schemas/HubEx.DataProvider.Api.Data.AUTH.AccountClientApplication.MergeData"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"responses": {
|
|
146
|
+
"202": {
|
|
147
|
+
"description": "Accepted"
|
|
148
|
+
},
|
|
149
|
+
"401": {
|
|
150
|
+
"description": "Unauthorized"
|
|
151
|
+
},
|
|
152
|
+
"403": {
|
|
153
|
+
"description": "Forbidden"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"delete": {
|
|
158
|
+
"tags": [
|
|
159
|
+
"Accounts"
|
|
160
|
+
],
|
|
161
|
+
"summary": "Отвязка приложения и устройства от текущей учетной записи",
|
|
162
|
+
"description": "<br />* Для выполнения данного метода пользователь должен быть **Authenticated**.",
|
|
163
|
+
"parameters": [
|
|
164
|
+
{
|
|
165
|
+
"name": "Authorization",
|
|
166
|
+
"in": "header",
|
|
167
|
+
"description": "Bearer",
|
|
168
|
+
"required": true,
|
|
169
|
+
"schema": {
|
|
170
|
+
"type": "string"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"requestBody": {
|
|
175
|
+
"content": {
|
|
176
|
+
"application/json-patch+json": {
|
|
177
|
+
"schema": {
|
|
178
|
+
"$ref": "#/components/schemas/HubEx.DataProvider.Api.Data.AUTH.AccountClientApplication.RemoveData"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"application/json": {
|
|
182
|
+
"schema": {
|
|
183
|
+
"$ref": "#/components/schemas/HubEx.DataProvider.Api.Data.AUTH.AccountClientApplication.RemoveData"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"text/json": {
|
|
187
|
+
"schema": {
|
|
188
|
+
"$ref": "#/components/schemas/HubEx.DataProvider.Api.Data.AUTH.AccountClientApplication.RemoveData"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"application/*+json": {
|
|
192
|
+
"schema": {
|
|
193
|
+
"$ref": "#/components/schemas/HubEx.DataProvider.Api.Data.AUTH.AccountClientApplication.RemoveData"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"responses": {
|
|
199
|
+
"202": {
|
|
200
|
+
"description": "Accepted"
|
|
201
|
+
},
|
|
202
|
+
"401": {
|
|
203
|
+
"description": "Unauthorized"
|
|
204
|
+
},
|
|
205
|
+
"403": {
|
|
206
|
+
"description": "Forbidden"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"/Accounts/logout": {
|
|
212
|
+
"post": {
|
|
213
|
+
"tags": [
|
|
214
|
+
"Accounts"
|
|
215
|
+
],
|
|
216
|
+
"summary": "Выход из системы. Сетод можно вызывать с просроченным токеном.",
|
|
217
|
+
"description": "<br />* Выполнение данного метода резрешино от **анонимного пользователя**.",
|
|
218
|
+
"requestBody": {
|
|
219
|
+
"content": {
|
|
220
|
+
"application/json-patch+json": {
|
|
221
|
+
"schema": {
|
|
222
|
+
"$ref": "#/components/schemas/HubEx.DataProvider.Api.Data.Base.BaseLogoutData"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"application/json": {
|
|
226
|
+
"schema": {
|
|
227
|
+
"$ref": "#/components/schemas/HubEx.DataProvider.Api.Data.Base.BaseLogoutData"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"text/json": {
|
|
231
|
+
"schema": {
|
|
232
|
+
"$ref": "#/components/schemas/HubEx.DataProvider.Api.Data.Base.BaseLogoutData"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"application/*+json": {
|
|
236
|
+
"schema": {
|
|
237
|
+
"$ref": "#/components/schemas/HubEx.DataProvider.Api.Data.Base.BaseLogoutData"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"responses": {
|
|
243
|
+
"200": {
|
|
244
|
+
"description": "OK"
|
|
245
|
+
},
|
|
246
|
+
"500": {
|
|
247
|
+
"description": "Internal Server Error",
|
|
248
|
+
"content": {
|
|
249
|
+
"text/plain": {
|
|
250
|
+
"schema": {
|
|
251
|
+
"type": "array",
|
|
252
|
+
"items": {
|
|
253
|
+
"$ref": "#/components/schemas/SmartService.Common.ExceptionHandling.Models.ErrorModel"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"application/json": {
|
|
258
|
+
"schema": {
|
|
259
|
+
"type": "array",
|
|
260
|
+
"items": {
|
|
261
|
+
"$ref": "#/components/schemas/SmartService.Common.ExceptionHandling.Models.ErrorModel"
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"text/json": {
|
|
266
|
+
"schema": {
|
|
267
|
+
"type": "array",
|
|
268
|
+
"items": {
|
|
269
|
+
"$ref": "#/components/schemas/SmartService.Common.ExceptionHandling.Models.ErrorModel"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"/Accounts/register": {
|
|
279
|
+
"post": {
|
|
280
|
+
"tags": [
|
|
281
|
+
"Accounts"
|
|
282
|
+
],
|
|
283
|
+
"summary": "Создаёт аккаунт с указанной электронной почтой (если ещё не создан),\r\nблокирует его по причине непройденноё верификации почты и отправляет в Кролика\r\nнотификацию для отправки письма на указанный адрес эл. почты со ссылкой\r\nдля верификации.",
|
|
284
|
+
"description": "<br />* Выполнение данного метода резрешино от **анонимного пользователя**.",
|
|
285
|
+
"requestBody": {
|
|
286
|
+
"content": {
|
|
287
|
+
"application/json-patch+json": {
|
|
288
|
+
"schema": {
|
|
289
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Account.CreateData"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"application/json": {
|
|
293
|
+
"schema": {
|
|
294
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Account.CreateData"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"text/json": {
|
|
298
|
+
"schema": {
|
|
299
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Account.CreateData"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"application/*+json": {
|
|
303
|
+
"schema": {
|
|
304
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Account.CreateData"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"responses": {
|
|
310
|
+
"200": {
|
|
311
|
+
"description": "OK",
|
|
312
|
+
"content": {
|
|
313
|
+
"text/plain": {
|
|
314
|
+
"schema": {
|
|
315
|
+
"$ref": "#/components/schemas/HubEx.DataProvider.Api.Entities.AUTH.AccountAddResultEntity"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"application/json": {
|
|
319
|
+
"schema": {
|
|
320
|
+
"$ref": "#/components/schemas/HubEx.DataProvider.Api.Entities.AUTH.AccountAddResultEntity"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"text/json": {
|
|
324
|
+
"schema": {
|
|
325
|
+
"$ref": "#/components/schemas/HubEx.DataProvider.Api.Entities.AUTH.AccountAddResultEntity"
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"/Accounts": {
|
|
334
|
+
"get": {
|
|
335
|
+
"tags": [
|
|
336
|
+
"Accounts"
|
|
337
|
+
],
|
|
338
|
+
"summary": "Возвращает данные учетной записи по учетным данным",
|
|
339
|
+
"description": "<br />* Для выполнения данного метода требуется любое из перечисленных полномочий: **AccountGet**",
|
|
340
|
+
"parameters": [
|
|
341
|
+
{
|
|
342
|
+
"name": "credential",
|
|
343
|
+
"in": "query",
|
|
344
|
+
"description": "Адрес эл.почты, телефон, логин или логин домена для аккаунта",
|
|
345
|
+
"schema": {
|
|
346
|
+
"type": "string"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"name": "Authorization",
|
|
351
|
+
"in": "header",
|
|
352
|
+
"description": "Bearer",
|
|
353
|
+
"required": true,
|
|
354
|
+
"schema": {
|
|
355
|
+
"type": "string"
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
],
|
|
359
|
+
"responses": {
|
|
360
|
+
"200": {
|
|
361
|
+
"description": "OK",
|
|
362
|
+
"content": {
|
|
363
|
+
"text/plain": {
|
|
364
|
+
"schema": {
|
|
365
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.GetResult"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"application/json": {
|
|
369
|
+
"schema": {
|
|
370
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.GetResult"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"text/json": {
|
|
374
|
+
"schema": {
|
|
375
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.GetResult"
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"500": {
|
|
381
|
+
"description": "Internal Server Error",
|
|
382
|
+
"content": {
|
|
383
|
+
"text/plain": {
|
|
384
|
+
"schema": {
|
|
385
|
+
"type": "array",
|
|
386
|
+
"items": {
|
|
387
|
+
"$ref": "#/components/schemas/SmartService.Common.ExceptionHandling.Models.ErrorModel"
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"application/json": {
|
|
392
|
+
"schema": {
|
|
393
|
+
"type": "array",
|
|
394
|
+
"items": {
|
|
395
|
+
"$ref": "#/components/schemas/SmartService.Common.ExceptionHandling.Models.ErrorModel"
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
"text/json": {
|
|
400
|
+
"schema": {
|
|
401
|
+
"type": "array",
|
|
402
|
+
"items": {
|
|
403
|
+
"$ref": "#/components/schemas/SmartService.Common.ExceptionHandling.Models.ErrorModel"
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
"401": {
|
|
410
|
+
"description": "Unauthorized"
|
|
411
|
+
},
|
|
412
|
+
"403": {
|
|
413
|
+
"description": "Forbidden"
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"head": {
|
|
418
|
+
"tags": [
|
|
419
|
+
"Accounts"
|
|
420
|
+
],
|
|
421
|
+
"summary": "Проверяет присутствие учетной записи по указанным полномочийм",
|
|
422
|
+
"description": "<br />* Выполнение данного метода резрешино от **анонимного пользователя**.",
|
|
423
|
+
"parameters": [
|
|
424
|
+
{
|
|
425
|
+
"name": "credential",
|
|
426
|
+
"in": "query",
|
|
427
|
+
"description": "Адрес эл.почты, телефон или логин",
|
|
428
|
+
"schema": {
|
|
429
|
+
"type": "string"
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
],
|
|
433
|
+
"responses": {
|
|
434
|
+
"200": {
|
|
435
|
+
"description": "OK"
|
|
436
|
+
},
|
|
437
|
+
"404": {
|
|
438
|
+
"description": "Not Found"
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
"/Accounts/this/notifications": {
|
|
444
|
+
"get": {
|
|
445
|
+
"tags": [
|
|
446
|
+
"Accounts"
|
|
447
|
+
],
|
|
448
|
+
"summary": "Список уведомлений из лога",
|
|
449
|
+
"description": "<br />* Для выполнения данного метода требуется любое из перечисленных полномочий: **NotificationLogList**<br />* Метод поддерживает диапазонный запрос через строку или заголовок запроса.",
|
|
450
|
+
"parameters": [
|
|
451
|
+
{
|
|
452
|
+
"name": "Authorization",
|
|
453
|
+
"in": "header",
|
|
454
|
+
"description": "Bearer",
|
|
455
|
+
"required": true,
|
|
456
|
+
"schema": {
|
|
457
|
+
"type": "string"
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "Range",
|
|
462
|
+
"in": "header",
|
|
463
|
+
"description": "Формат: items=FROM-TILL , где FROM - начальный элемент (включая), TILL - конечный элемент (включая)",
|
|
464
|
+
"schema": {
|
|
465
|
+
"type": "string"
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "offset",
|
|
470
|
+
"in": "query",
|
|
471
|
+
"description": "количество элементов, которое нобходимо пропустить",
|
|
472
|
+
"schema": {
|
|
473
|
+
"type": "string"
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"name": "fetch",
|
|
478
|
+
"in": "query",
|
|
479
|
+
"description": "количество эементов, которое необходимо вернуть",
|
|
480
|
+
"schema": {
|
|
481
|
+
"type": "string"
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
],
|
|
485
|
+
"responses": {
|
|
486
|
+
"200": {
|
|
487
|
+
"description": "OK",
|
|
488
|
+
"content": {
|
|
489
|
+
"text/plain": {
|
|
490
|
+
"schema": {
|
|
491
|
+
"type": "array",
|
|
492
|
+
"items": {
|
|
493
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Notification.ListResult"
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
"application/json": {
|
|
498
|
+
"schema": {
|
|
499
|
+
"type": "array",
|
|
500
|
+
"items": {
|
|
501
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Notification.ListResult"
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"text/json": {
|
|
506
|
+
"schema": {
|
|
507
|
+
"type": "array",
|
|
508
|
+
"items": {
|
|
509
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Notification.ListResult"
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
"401": {
|
|
516
|
+
"description": "Unauthorized"
|
|
517
|
+
},
|
|
518
|
+
"403": {
|
|
519
|
+
"description": "Forbidden"
|
|
520
|
+
},
|
|
521
|
+
"206": {
|
|
522
|
+
"description": "PartialContent",
|
|
523
|
+
"headers": {
|
|
524
|
+
"Content-Range": {
|
|
525
|
+
"description": "items=FROM-TILL/OF , где FROM - начальный элемент (включая), TILL - конечный элемент (включая) OF - общее количество элементов",
|
|
526
|
+
"schema": {
|
|
527
|
+
"type": "string"
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
"/Messages/verifyEmail": {
|
|
536
|
+
"post": {
|
|
537
|
+
"tags": [
|
|
538
|
+
"Messages"
|
|
539
|
+
],
|
|
540
|
+
"summary": "Отправляет письмо проверки почты на указаннаый адрес эл почты (если не был указан, то на адрес уч.записи)",
|
|
541
|
+
"description": "<br />* Выполнение данного метода резрешино от **анонимного пользователя**.",
|
|
542
|
+
"requestBody": {
|
|
543
|
+
"content": {
|
|
544
|
+
"application/json-patch+json": {
|
|
545
|
+
"schema": {
|
|
546
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Messages.VerifyEmailData"
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
"application/json": {
|
|
550
|
+
"schema": {
|
|
551
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Messages.VerifyEmailData"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"text/json": {
|
|
555
|
+
"schema": {
|
|
556
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Messages.VerifyEmailData"
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
"application/*+json": {
|
|
560
|
+
"schema": {
|
|
561
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Messages.VerifyEmailData"
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
"responses": {
|
|
567
|
+
"200": {
|
|
568
|
+
"description": "OK",
|
|
569
|
+
"content": {
|
|
570
|
+
"text/plain": {
|
|
571
|
+
"schema": {
|
|
572
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.VerificationResult"
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
"application/json": {
|
|
576
|
+
"schema": {
|
|
577
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.VerificationResult"
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
"text/json": {
|
|
581
|
+
"schema": {
|
|
582
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.VerificationResult"
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
"/Messages/verifyPhone": {
|
|
591
|
+
"post": {
|
|
592
|
+
"tags": [
|
|
593
|
+
"Messages"
|
|
594
|
+
],
|
|
595
|
+
"summary": "Отправляет SMS проверки номера телефона почты на указаннаый телефон, (если не был указан, то на телефон учетной записи)",
|
|
596
|
+
"description": "<br />* Выполнение данного метода резрешино от **анонимного пользователя**.",
|
|
597
|
+
"requestBody": {
|
|
598
|
+
"content": {
|
|
599
|
+
"application/json-patch+json": {
|
|
600
|
+
"schema": {
|
|
601
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Messages.VerifyPhoneData"
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"application/json": {
|
|
605
|
+
"schema": {
|
|
606
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Messages.VerifyPhoneData"
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"text/json": {
|
|
610
|
+
"schema": {
|
|
611
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Messages.VerifyPhoneData"
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
"application/*+json": {
|
|
615
|
+
"schema": {
|
|
616
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Messages.VerifyPhoneData"
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
"responses": {
|
|
622
|
+
"200": {
|
|
623
|
+
"description": "OK",
|
|
624
|
+
"content": {
|
|
625
|
+
"text/plain": {
|
|
626
|
+
"schema": {
|
|
627
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.VerificationResult"
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
"application/json": {
|
|
631
|
+
"schema": {
|
|
632
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.VerificationResult"
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"text/json": {
|
|
636
|
+
"schema": {
|
|
637
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.VerificationResult"
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
"/Messages/requestPasswordChange": {
|
|
646
|
+
"post": {
|
|
647
|
+
"tags": [
|
|
648
|
+
"Messages"
|
|
649
|
+
],
|
|
650
|
+
"summary": "Отправляет запрос на изменение пароля на указанный адрес эл почты, для аутентифицированного пользователя - на адрес. эл. почты уч.записи",
|
|
651
|
+
"description": "<br />* Выполнение данного метода резрешино от **анонимного пользователя**.",
|
|
652
|
+
"requestBody": {
|
|
653
|
+
"content": {
|
|
654
|
+
"application/json-patch+json": {
|
|
655
|
+
"schema": {
|
|
656
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Messages.RequestPasswordChangeData"
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
"application/json": {
|
|
660
|
+
"schema": {
|
|
661
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Messages.RequestPasswordChangeData"
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
"text/json": {
|
|
665
|
+
"schema": {
|
|
666
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Messages.RequestPasswordChangeData"
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
"application/*+json": {
|
|
670
|
+
"schema": {
|
|
671
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Messages.RequestPasswordChangeData"
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
"responses": {
|
|
677
|
+
"200": {
|
|
678
|
+
"description": "OK",
|
|
679
|
+
"content": {
|
|
680
|
+
"text/plain": {
|
|
681
|
+
"schema": {
|
|
682
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.VerificationResult"
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
"application/json": {
|
|
686
|
+
"schema": {
|
|
687
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.VerificationResult"
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
"text/json": {
|
|
691
|
+
"schema": {
|
|
692
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.VerificationResult"
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
"/Passwords/change": {
|
|
701
|
+
"post": {
|
|
702
|
+
"tags": [
|
|
703
|
+
"Passwords"
|
|
704
|
+
],
|
|
705
|
+
"summary": "Изменяет пароль учётной записи.",
|
|
706
|
+
"description": "<br />* Выполнение данного метода резрешино от **анонимного пользователя**.",
|
|
707
|
+
"requestBody": {
|
|
708
|
+
"description": "Объект, содержащий данные, необходимый для установки пароля.",
|
|
709
|
+
"content": {
|
|
710
|
+
"application/json-patch+json": {
|
|
711
|
+
"schema": {
|
|
712
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Account.PasswordSetData"
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
"application/json": {
|
|
716
|
+
"schema": {
|
|
717
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Account.PasswordSetData"
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
"text/json": {
|
|
721
|
+
"schema": {
|
|
722
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Account.PasswordSetData"
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
"application/*+json": {
|
|
726
|
+
"schema": {
|
|
727
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.Account.PasswordSetData"
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
"responses": {
|
|
733
|
+
"200": {
|
|
734
|
+
"description": "OK"
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
"/VerificationCodes/check": {
|
|
740
|
+
"post": {
|
|
741
|
+
"tags": [
|
|
742
|
+
"VerificationCodes"
|
|
743
|
+
],
|
|
744
|
+
"summary": "Проверяет верификационый код.",
|
|
745
|
+
"description": "<br />* Выполнение данного метода резрешино от **анонимного пользователя**.",
|
|
746
|
+
"requestBody": {
|
|
747
|
+
"description": "Объект, содержащий хэш верификационного кода, который будет проверяться",
|
|
748
|
+
"content": {
|
|
749
|
+
"application/json-patch+json": {
|
|
750
|
+
"schema": {
|
|
751
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.VerificationCode.CheckData"
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
"application/json": {
|
|
755
|
+
"schema": {
|
|
756
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.VerificationCode.CheckData"
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
"text/json": {
|
|
760
|
+
"schema": {
|
|
761
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.VerificationCode.CheckData"
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
"application/*+json": {
|
|
765
|
+
"schema": {
|
|
766
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Data.VerificationCode.CheckData"
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
"responses": {
|
|
772
|
+
"200": {
|
|
773
|
+
"description": "OK",
|
|
774
|
+
"content": {
|
|
775
|
+
"text/plain": {
|
|
776
|
+
"schema": {
|
|
777
|
+
"type": "integer",
|
|
778
|
+
"format": "int32"
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
"application/json": {
|
|
782
|
+
"schema": {
|
|
783
|
+
"type": "integer",
|
|
784
|
+
"format": "int32"
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
"text/json": {
|
|
788
|
+
"schema": {
|
|
789
|
+
"type": "integer",
|
|
790
|
+
"format": "int32"
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
"components": {
|
|
800
|
+
"schemas": {
|
|
801
|
+
"HubEx.DataProvider.Api.Data.AUTH.AccountClientApplication.MergeData": {
|
|
802
|
+
"required": [
|
|
803
|
+
"applicationID",
|
|
804
|
+
"clientTypeID",
|
|
805
|
+
"uniqueClientIdentifier"
|
|
806
|
+
],
|
|
807
|
+
"type": "object",
|
|
808
|
+
"properties": {
|
|
809
|
+
"uniqueClientIdentifier": {
|
|
810
|
+
"minLength": 1,
|
|
811
|
+
"type": "string"
|
|
812
|
+
},
|
|
813
|
+
"applicationID": {
|
|
814
|
+
"type": "integer",
|
|
815
|
+
"format": "int32"
|
|
816
|
+
},
|
|
817
|
+
"clientTypeID": {
|
|
818
|
+
"type": "integer",
|
|
819
|
+
"format": "int32"
|
|
820
|
+
},
|
|
821
|
+
"agent": {
|
|
822
|
+
"type": "string",
|
|
823
|
+
"nullable": true
|
|
824
|
+
},
|
|
825
|
+
"applicationVersion": {
|
|
826
|
+
"type": "string",
|
|
827
|
+
"nullable": true
|
|
828
|
+
},
|
|
829
|
+
"pushToken": {
|
|
830
|
+
"type": "string",
|
|
831
|
+
"nullable": true
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
"additionalProperties": false
|
|
835
|
+
},
|
|
836
|
+
"HubEx.DataProvider.Api.Data.AUTH.AccountClientApplication.RemoveData": {
|
|
837
|
+
"required": [
|
|
838
|
+
"applicationID",
|
|
839
|
+
"uniqueClientIdentifier"
|
|
840
|
+
],
|
|
841
|
+
"type": "object",
|
|
842
|
+
"properties": {
|
|
843
|
+
"uniqueClientIdentifier": {
|
|
844
|
+
"minLength": 1,
|
|
845
|
+
"type": "string"
|
|
846
|
+
},
|
|
847
|
+
"applicationID": {
|
|
848
|
+
"type": "integer",
|
|
849
|
+
"format": "int32"
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
"additionalProperties": false
|
|
853
|
+
},
|
|
854
|
+
"HubEx.DataProvider.Api.Data.Base.BaseLogoutData": {
|
|
855
|
+
"required": [
|
|
856
|
+
"applicationID",
|
|
857
|
+
"uniqueClientIdentifier"
|
|
858
|
+
],
|
|
859
|
+
"type": "object",
|
|
860
|
+
"properties": {
|
|
861
|
+
"uniqueClientIdentifier": {
|
|
862
|
+
"minLength": 1,
|
|
863
|
+
"type": "string"
|
|
864
|
+
},
|
|
865
|
+
"applicationID": {
|
|
866
|
+
"type": "integer",
|
|
867
|
+
"format": "int32"
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
"additionalProperties": false
|
|
871
|
+
},
|
|
872
|
+
"HubEx.DataProvider.Api.Entities.AUTH.AccountAddResultEntity": {
|
|
873
|
+
"type": "object",
|
|
874
|
+
"properties": {
|
|
875
|
+
"id": {
|
|
876
|
+
"type": "integer",
|
|
877
|
+
"format": "int32"
|
|
878
|
+
},
|
|
879
|
+
"verificationRequestValidTill": {
|
|
880
|
+
"type": "string",
|
|
881
|
+
"format": "date-time",
|
|
882
|
+
"nullable": true
|
|
883
|
+
},
|
|
884
|
+
"isEmailVerified": {
|
|
885
|
+
"type": "boolean"
|
|
886
|
+
},
|
|
887
|
+
"isMobilePhoneVerified": {
|
|
888
|
+
"type": "boolean"
|
|
889
|
+
},
|
|
890
|
+
"isPasswordDefined": {
|
|
891
|
+
"type": "boolean"
|
|
892
|
+
},
|
|
893
|
+
"isNewAccount": {
|
|
894
|
+
"type": "boolean"
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
"additionalProperties": false
|
|
898
|
+
},
|
|
899
|
+
"HubEx.Service.AUTH.Api.Data.Account.CreateData": {
|
|
900
|
+
"type": "object",
|
|
901
|
+
"properties": {
|
|
902
|
+
"email": {
|
|
903
|
+
"type": "string",
|
|
904
|
+
"description": "Адрес эл.почты (UrlEncoded)",
|
|
905
|
+
"nullable": true
|
|
906
|
+
},
|
|
907
|
+
"mobilePhone": {
|
|
908
|
+
"type": "string",
|
|
909
|
+
"description": "Номер мобильного телефона",
|
|
910
|
+
"nullable": true
|
|
911
|
+
},
|
|
912
|
+
"domainLogin": {
|
|
913
|
+
"type": "string",
|
|
914
|
+
"description": "Логин домена аккаунта пользователя",
|
|
915
|
+
"nullable": true
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
"additionalProperties": false,
|
|
919
|
+
"description": "Базовые данные"
|
|
920
|
+
},
|
|
921
|
+
"HubEx.Service.AUTH.Api.Data.Account.PasswordSetData": {
|
|
922
|
+
"required": [
|
|
923
|
+
"password"
|
|
924
|
+
],
|
|
925
|
+
"type": "object",
|
|
926
|
+
"properties": {
|
|
927
|
+
"codeHash": {
|
|
928
|
+
"type": "string",
|
|
929
|
+
"description": "Хэш верификационного кода. Отправляется по элетронной почте. Если поле заполнено, все остольные поля будут проигнорированы.",
|
|
930
|
+
"nullable": true
|
|
931
|
+
},
|
|
932
|
+
"code": {
|
|
933
|
+
"type": "string",
|
|
934
|
+
"description": "Верификационный код из SMS.",
|
|
935
|
+
"nullable": true
|
|
936
|
+
},
|
|
937
|
+
"mobilePhone": {
|
|
938
|
+
"type": "string",
|
|
939
|
+
"description": "Номер мобильного телефона, на котрый был отправлен код подтверждения.",
|
|
940
|
+
"nullable": true
|
|
941
|
+
},
|
|
942
|
+
"email": {
|
|
943
|
+
"type": "string",
|
|
944
|
+
"description": "Адрес электронной почты, на который был отправлен код подтверждения.",
|
|
945
|
+
"nullable": true
|
|
946
|
+
},
|
|
947
|
+
"password": {
|
|
948
|
+
"minLength": 1,
|
|
949
|
+
"type": "string",
|
|
950
|
+
"description": "Новый пароль (UrlEncoded)"
|
|
951
|
+
},
|
|
952
|
+
"currentPassword": {
|
|
953
|
+
"type": "string",
|
|
954
|
+
"description": "Текущий пароль пользователя (для смены пароля без верификации через SMS или Email)",
|
|
955
|
+
"nullable": true
|
|
956
|
+
}
|
|
957
|
+
},
|
|
958
|
+
"additionalProperties": false,
|
|
959
|
+
"description": "Данные дял смены пароля"
|
|
960
|
+
},
|
|
961
|
+
"HubEx.Service.AUTH.Api.Data.Messages.RequestPasswordChangeData": {
|
|
962
|
+
"required": [
|
|
963
|
+
"credentials"
|
|
964
|
+
],
|
|
965
|
+
"type": "object",
|
|
966
|
+
"properties": {
|
|
967
|
+
"credentials": {
|
|
968
|
+
"minLength": 1,
|
|
969
|
+
"type": "string",
|
|
970
|
+
"description": "Адрес эл.почты, номер телефона или логин, для которых необходима смена пароля (UriEncoded)"
|
|
971
|
+
}
|
|
972
|
+
},
|
|
973
|
+
"additionalProperties": false,
|
|
974
|
+
"description": "Данные для смены пароля"
|
|
975
|
+
},
|
|
976
|
+
"HubEx.Service.AUTH.Api.Data.Messages.VerifyEmailData": {
|
|
977
|
+
"type": "object",
|
|
978
|
+
"properties": {
|
|
979
|
+
"accountID": {
|
|
980
|
+
"type": "integer",
|
|
981
|
+
"description": "Идентификатор уч.записи, которя запросила провекру почты (указывается только для неаутентифицированного пользователя)",
|
|
982
|
+
"format": "int32",
|
|
983
|
+
"nullable": true
|
|
984
|
+
},
|
|
985
|
+
"email": {
|
|
986
|
+
"type": "string",
|
|
987
|
+
"description": "Адрес эл.почты, который необходимо верифицировать (если не указан, то будет проверен основной адрес уч.записи)",
|
|
988
|
+
"nullable": true
|
|
989
|
+
}
|
|
990
|
+
},
|
|
991
|
+
"additionalProperties": false,
|
|
992
|
+
"description": "Данные для проверки эл.почты"
|
|
993
|
+
},
|
|
994
|
+
"HubEx.Service.AUTH.Api.Data.Messages.VerifyPhoneData": {
|
|
995
|
+
"type": "object",
|
|
996
|
+
"properties": {
|
|
997
|
+
"accountID": {
|
|
998
|
+
"type": "integer",
|
|
999
|
+
"description": "Идентификатор уч.записи, которя запросила провекру телефона (указывается только для неаутентифицированного пользователя)",
|
|
1000
|
+
"format": "int32",
|
|
1001
|
+
"nullable": true
|
|
1002
|
+
},
|
|
1003
|
+
"phone": {
|
|
1004
|
+
"type": "string",
|
|
1005
|
+
"description": "Телефон, который необходимо верифицировать (если не указан, то будет проверен основной телефон уч.записи)",
|
|
1006
|
+
"nullable": true
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
"additionalProperties": false,
|
|
1010
|
+
"description": "Данные для проверки эл.почты"
|
|
1011
|
+
},
|
|
1012
|
+
"HubEx.Service.AUTH.Api.Data.VerificationCode.CheckData": {
|
|
1013
|
+
"type": "object",
|
|
1014
|
+
"properties": {
|
|
1015
|
+
"codeHash": {
|
|
1016
|
+
"type": "string",
|
|
1017
|
+
"description": "Хэш верификационного кода. Отправляется по элетронной почте. Если поле заполнено, все остольные поля будут проигнорированы.",
|
|
1018
|
+
"nullable": true
|
|
1019
|
+
},
|
|
1020
|
+
"code": {
|
|
1021
|
+
"type": "string",
|
|
1022
|
+
"description": "Верификационный код из SMS.",
|
|
1023
|
+
"nullable": true
|
|
1024
|
+
},
|
|
1025
|
+
"mobilePhone": {
|
|
1026
|
+
"type": "string",
|
|
1027
|
+
"description": "Номер мобильного телефона, на котрый был отправлен код подтверждения.",
|
|
1028
|
+
"nullable": true
|
|
1029
|
+
},
|
|
1030
|
+
"email": {
|
|
1031
|
+
"type": "string",
|
|
1032
|
+
"description": "Адрес электронной почты, на который был отправлен код подтверждения.",
|
|
1033
|
+
"nullable": true
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
"additionalProperties": false,
|
|
1037
|
+
"description": "Данные для валидации верификационного кода"
|
|
1038
|
+
},
|
|
1039
|
+
"HubEx.Service.AUTH.Api.Results.Accounts.ApplicationListResult": {
|
|
1040
|
+
"type": "object",
|
|
1041
|
+
"properties": {
|
|
1042
|
+
"client": {
|
|
1043
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.ClientResult"
|
|
1044
|
+
},
|
|
1045
|
+
"application": {
|
|
1046
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Accounts.ApplicationResult"
|
|
1047
|
+
},
|
|
1048
|
+
"pushToken": {
|
|
1049
|
+
"type": "string",
|
|
1050
|
+
"description": "Токен push-уведомлений",
|
|
1051
|
+
"nullable": true
|
|
1052
|
+
},
|
|
1053
|
+
"timestamp": {
|
|
1054
|
+
"type": "string",
|
|
1055
|
+
"description": "Метка времени актуальности данных",
|
|
1056
|
+
"format": "date-time"
|
|
1057
|
+
}
|
|
1058
|
+
},
|
|
1059
|
+
"additionalProperties": false,
|
|
1060
|
+
"description": "Приложение учетной записи"
|
|
1061
|
+
},
|
|
1062
|
+
"HubEx.Service.AUTH.Api.Results.Accounts.ApplicationResult": {
|
|
1063
|
+
"type": "object",
|
|
1064
|
+
"properties": {
|
|
1065
|
+
"id": {
|
|
1066
|
+
"type": "integer",
|
|
1067
|
+
"format": "int32"
|
|
1068
|
+
},
|
|
1069
|
+
"name": {
|
|
1070
|
+
"type": "string",
|
|
1071
|
+
"nullable": true
|
|
1072
|
+
},
|
|
1073
|
+
"version": {
|
|
1074
|
+
"type": "string",
|
|
1075
|
+
"description": "Версия",
|
|
1076
|
+
"nullable": true
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
"additionalProperties": false,
|
|
1080
|
+
"description": "Данные приложения"
|
|
1081
|
+
},
|
|
1082
|
+
"HubEx.Service.AUTH.Api.Results.Accounts.ClientResult": {
|
|
1083
|
+
"type": "object",
|
|
1084
|
+
"properties": {
|
|
1085
|
+
"id": {
|
|
1086
|
+
"type": "integer",
|
|
1087
|
+
"description": "Идентификатор",
|
|
1088
|
+
"format": "int32"
|
|
1089
|
+
},
|
|
1090
|
+
"uniqueClientIdentifier": {
|
|
1091
|
+
"type": "string",
|
|
1092
|
+
"description": "UniqueClientIdentifier",
|
|
1093
|
+
"nullable": true
|
|
1094
|
+
},
|
|
1095
|
+
"agent": {
|
|
1096
|
+
"type": "string",
|
|
1097
|
+
"description": "Операционная система",
|
|
1098
|
+
"nullable": true
|
|
1099
|
+
},
|
|
1100
|
+
"clientType": {
|
|
1101
|
+
"$ref": "#/components/schemas/SmartService.Common.Results.IdNameResult`1[[System.Byte, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
"additionalProperties": false,
|
|
1105
|
+
"description": "Данные устройства"
|
|
1106
|
+
},
|
|
1107
|
+
"HubEx.Service.AUTH.Api.Results.Accounts.GetResult": {
|
|
1108
|
+
"type": "object",
|
|
1109
|
+
"properties": {
|
|
1110
|
+
"id": {
|
|
1111
|
+
"type": "integer",
|
|
1112
|
+
"description": "Идентификатор учетной записи",
|
|
1113
|
+
"format": "int32"
|
|
1114
|
+
},
|
|
1115
|
+
"credential": {
|
|
1116
|
+
"type": "string",
|
|
1117
|
+
"description": "Учетные данные",
|
|
1118
|
+
"nullable": true
|
|
1119
|
+
},
|
|
1120
|
+
"ban": {
|
|
1121
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Common.BanResult"
|
|
1122
|
+
},
|
|
1123
|
+
"isAnonymous": {
|
|
1124
|
+
"type": "boolean",
|
|
1125
|
+
"description": "Признак, указывающий на то, что под данной учетной запись имеется возможность входа без указания пароля"
|
|
1126
|
+
},
|
|
1127
|
+
"isCrossTenantAdmin": {
|
|
1128
|
+
"type": "boolean",
|
|
1129
|
+
"description": "Признак, указывающий на то, что учетная запись используется для администирования тенантов"
|
|
1130
|
+
},
|
|
1131
|
+
"domainLogin": {
|
|
1132
|
+
"type": "string",
|
|
1133
|
+
"description": "Логин домена аккаунта пользователя",
|
|
1134
|
+
"nullable": true
|
|
1135
|
+
},
|
|
1136
|
+
"socialProfiles": {
|
|
1137
|
+
"type": "array",
|
|
1138
|
+
"items": {
|
|
1139
|
+
"$ref": "#/components/schemas/HubEx.Service.AUTH.Api.Results.Common.SocialProfileResult"
|
|
1140
|
+
},
|
|
1141
|
+
"description": "Связь с социальными профилями",
|
|
1142
|
+
"nullable": true
|
|
1143
|
+
}
|
|
1144
|
+
},
|
|
1145
|
+
"additionalProperties": false,
|
|
1146
|
+
"description": "Результат поиска учетной записи"
|
|
1147
|
+
},
|
|
1148
|
+
"HubEx.Service.AUTH.Api.Results.Accounts.VerificationResult": {
|
|
1149
|
+
"type": "object",
|
|
1150
|
+
"properties": {
|
|
1151
|
+
"id": {
|
|
1152
|
+
"type": "integer",
|
|
1153
|
+
"description": "Идентификатор уч.записи",
|
|
1154
|
+
"format": "int32"
|
|
1155
|
+
},
|
|
1156
|
+
"isEmailVerified": {
|
|
1157
|
+
"type": "boolean",
|
|
1158
|
+
"description": "Признак пройденной проверки адреса эл.почты"
|
|
1159
|
+
},
|
|
1160
|
+
"isPhoneVerified": {
|
|
1161
|
+
"type": "boolean",
|
|
1162
|
+
"description": "Признак пройденной проверки телефона"
|
|
1163
|
+
},
|
|
1164
|
+
"verificationRequestValidTill": {
|
|
1165
|
+
"type": "string",
|
|
1166
|
+
"description": "Признак пройденной проверки телефона",
|
|
1167
|
+
"format": "date-time",
|
|
1168
|
+
"nullable": true
|
|
1169
|
+
},
|
|
1170
|
+
"isPasswordDefined": {
|
|
1171
|
+
"type": "boolean",
|
|
1172
|
+
"description": "Признак наличия пароля"
|
|
1173
|
+
},
|
|
1174
|
+
"isNewAccount": {
|
|
1175
|
+
"type": "boolean",
|
|
1176
|
+
"description": "Признак новой уч.записи"
|
|
1177
|
+
},
|
|
1178
|
+
"verificationCodeRepeatTimeout": {
|
|
1179
|
+
"type": "integer",
|
|
1180
|
+
"description": "Количество секунд через сколько можно повторить запрос на верификацию",
|
|
1181
|
+
"format": "int32"
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
"additionalProperties": false,
|
|
1185
|
+
"description": "Результат проверки"
|
|
1186
|
+
},
|
|
1187
|
+
"HubEx.Service.AUTH.Api.Results.Common.BanResult": {
|
|
1188
|
+
"type": "object",
|
|
1189
|
+
"properties": {
|
|
1190
|
+
"dateTill": {
|
|
1191
|
+
"type": "string",
|
|
1192
|
+
"description": "Срок действия бана",
|
|
1193
|
+
"format": "date-time"
|
|
1194
|
+
},
|
|
1195
|
+
"banReason": {
|
|
1196
|
+
"$ref": "#/components/schemas/SmartService.Common.Results.IdNameResult`1[[System.Byte, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1199
|
+
"additionalProperties": false,
|
|
1200
|
+
"description": "Данные блокировки пользователя"
|
|
1201
|
+
},
|
|
1202
|
+
"HubEx.Service.AUTH.Api.Results.Common.SocialProfileResult": {
|
|
1203
|
+
"type": "object",
|
|
1204
|
+
"properties": {
|
|
1205
|
+
"id": {
|
|
1206
|
+
"type": "integer",
|
|
1207
|
+
"format": "int32"
|
|
1208
|
+
},
|
|
1209
|
+
"name": {
|
|
1210
|
+
"type": "string",
|
|
1211
|
+
"nullable": true
|
|
1212
|
+
},
|
|
1213
|
+
"dateFrom": {
|
|
1214
|
+
"type": "string",
|
|
1215
|
+
"description": "Дата начала использования соц.сети для аутентификации",
|
|
1216
|
+
"format": "date-time"
|
|
1217
|
+
},
|
|
1218
|
+
"dateTill": {
|
|
1219
|
+
"type": "string",
|
|
1220
|
+
"description": "Дата окончания использования соц.сети для аутентификации",
|
|
1221
|
+
"format": "date-time"
|
|
1222
|
+
}
|
|
1223
|
+
},
|
|
1224
|
+
"additionalProperties": false,
|
|
1225
|
+
"description": "Данные социального профиля"
|
|
1226
|
+
},
|
|
1227
|
+
"HubEx.Service.AUTH.Api.Results.Notification.ListResult": {
|
|
1228
|
+
"type": "object",
|
|
1229
|
+
"properties": {
|
|
1230
|
+
"notificationID": {
|
|
1231
|
+
"type": "integer",
|
|
1232
|
+
"description": "дентификатор уведомления",
|
|
1233
|
+
"format": "int32"
|
|
1234
|
+
},
|
|
1235
|
+
"providerID": {
|
|
1236
|
+
"type": "integer",
|
|
1237
|
+
"description": "Идентификатор метода отсылки уведомления",
|
|
1238
|
+
"format": "int32"
|
|
1239
|
+
},
|
|
1240
|
+
"subject": {
|
|
1241
|
+
"type": "string",
|
|
1242
|
+
"description": "Тема уведомления",
|
|
1243
|
+
"nullable": true
|
|
1244
|
+
},
|
|
1245
|
+
"content": {
|
|
1246
|
+
"type": "string",
|
|
1247
|
+
"description": "Содержимое уведомления",
|
|
1248
|
+
"nullable": true
|
|
1249
|
+
},
|
|
1250
|
+
"created": {
|
|
1251
|
+
"type": "string",
|
|
1252
|
+
"description": "Дата и время создания уведомления",
|
|
1253
|
+
"format": "date-time",
|
|
1254
|
+
"nullable": true
|
|
1255
|
+
},
|
|
1256
|
+
"sent": {
|
|
1257
|
+
"type": "string",
|
|
1258
|
+
"description": "Дата и время отправки уведомления",
|
|
1259
|
+
"format": "date-time",
|
|
1260
|
+
"nullable": true
|
|
1261
|
+
}
|
|
1262
|
+
},
|
|
1263
|
+
"additionalProperties": false,
|
|
1264
|
+
"description": "Записи из лога уведомлений"
|
|
1265
|
+
},
|
|
1266
|
+
"SmartService.Common.ExceptionHandling.Models.ErrorModel": {
|
|
1267
|
+
"type": "object",
|
|
1268
|
+
"properties": {
|
|
1269
|
+
"traceIdentifier": {
|
|
1270
|
+
"type": "string",
|
|
1271
|
+
"nullable": true
|
|
1272
|
+
},
|
|
1273
|
+
"code": {
|
|
1274
|
+
"type": "string",
|
|
1275
|
+
"nullable": true
|
|
1276
|
+
},
|
|
1277
|
+
"message": {
|
|
1278
|
+
"type": "string",
|
|
1279
|
+
"nullable": true
|
|
1280
|
+
},
|
|
1281
|
+
"arguments": {
|
|
1282
|
+
"type": "object",
|
|
1283
|
+
"additionalProperties": {
|
|
1284
|
+
"type": "string",
|
|
1285
|
+
"nullable": true
|
|
1286
|
+
},
|
|
1287
|
+
"nullable": true
|
|
1288
|
+
}
|
|
1289
|
+
},
|
|
1290
|
+
"additionalProperties": false
|
|
1291
|
+
},
|
|
1292
|
+
"SmartService.Common.Results.IdNameResult`1[[System.Byte, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]": {
|
|
1293
|
+
"type": "object",
|
|
1294
|
+
"properties": {
|
|
1295
|
+
"id": {
|
|
1296
|
+
"type": "integer",
|
|
1297
|
+
"format": "int32"
|
|
1298
|
+
},
|
|
1299
|
+
"name": {
|
|
1300
|
+
"type": "string",
|
|
1301
|
+
"nullable": true
|
|
1302
|
+
}
|
|
1303
|
+
},
|
|
1304
|
+
"additionalProperties": false
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
}
|