@evergis/api 4.1.5 → 4.1.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 (84) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +5 -15
  3. package/dist/Api.d.ts +78 -78
  4. package/dist/ApiEvent.d.ts +5 -5
  5. package/dist/EventEmitter.d.ts +11 -11
  6. package/dist/ExtendedHttpClient.d.ts +5 -0
  7. package/dist/__generated__/AccountPreviewService.d.ts +81 -81
  8. package/dist/__generated__/AccountService.d.ts +513 -513
  9. package/dist/__generated__/BulkOperationsService.d.ts +21 -21
  10. package/dist/__generated__/CamerasService.d.ts +105 -105
  11. package/dist/__generated__/CatalogService.d.ts +213 -213
  12. package/dist/__generated__/ClientSettingsService.d.ts +57 -57
  13. package/dist/__generated__/DataSourceService.d.ts +201 -201
  14. package/dist/__generated__/EqlService.d.ts +105 -105
  15. package/dist/__generated__/FeedbackService.d.ts +33 -33
  16. package/dist/__generated__/FiltersService.d.ts +45 -45
  17. package/dist/__generated__/GeocodeService.d.ts +45 -45
  18. package/dist/__generated__/HttpClient.d.ts +27 -27
  19. package/dist/__generated__/ImportService.d.ts +129 -129
  20. package/dist/__generated__/LayersService.d.ts +573 -573
  21. package/dist/__generated__/NotificationService.d.ts +69 -69
  22. package/dist/__generated__/ProjectsService.d.ts +249 -249
  23. package/dist/__generated__/QueryTokenAccessService.d.ts +64 -64
  24. package/dist/__generated__/RemoteTaskManagerService.d.ts +213 -213
  25. package/dist/__generated__/SecurityService.d.ts +165 -165
  26. package/dist/__generated__/Service.d.ts +5 -5
  27. package/dist/__generated__/SpatialReferencesService.d.ts +45 -45
  28. package/dist/__generated__/StatisticService.d.ts +45 -45
  29. package/dist/__generated__/TablesService.d.ts +237 -237
  30. package/dist/__generated__/ToolsService.d.ts +8 -8
  31. package/dist/__generated__/VectorTileService.d.ts +21 -21
  32. package/dist/__generated__/data-contracts.d.ts +7677 -6907
  33. package/dist/api.esm.js +5228 -7637
  34. package/dist/api.esm.js.map +1 -1
  35. package/dist/config.d.ts +4 -0
  36. package/dist/constants.d.ts +3 -3
  37. package/dist/index.d.ts +7 -7
  38. package/dist/index.js +5804 -5
  39. package/dist/index.js.map +1 -0
  40. package/dist/interfaces/ResourceService.d.ts +7 -7
  41. package/dist/services/Account.d.ts +36 -36
  42. package/dist/services/AccountPreview.d.ts +3 -3
  43. package/dist/services/BulkOperations.d.ts +3 -3
  44. package/dist/services/Cameras.d.ts +3 -3
  45. package/dist/services/ClientSettings.d.ts +62 -62
  46. package/dist/services/Eql.d.ts +3 -3
  47. package/dist/services/Feedback.d.ts +3 -3
  48. package/dist/services/FileUpload.d.ts +6 -6
  49. package/dist/services/Filters.d.ts +3 -3
  50. package/dist/services/Geocode.d.ts +9 -9
  51. package/dist/services/Import.d.ts +3 -3
  52. package/dist/services/Layers.d.ts +28 -28
  53. package/dist/services/Names.d.ts +32 -32
  54. package/dist/services/Notification.d.ts +48 -48
  55. package/dist/services/PortalSettings.d.ts +33 -33
  56. package/dist/services/Projects.d.ts +20 -20
  57. package/dist/services/RemoteTaskManager.d.ts +3 -3
  58. package/dist/services/Resources.d.ts +18 -18
  59. package/dist/services/Security.d.ts +9 -9
  60. package/dist/services/Statistic.d.ts +3 -3
  61. package/dist/services/Tables.d.ts +11 -11
  62. package/dist/services/Tools.d.ts +3 -3
  63. package/dist/services/VectorTiles.d.ts +3 -3
  64. package/dist/services/index.d.ts +23 -23
  65. package/dist/utils/errorHandler.d.ts +26 -26
  66. package/dist/utils/formDataFromFile.d.ts +1 -1
  67. package/dist/utils/generateId.d.ts +2 -2
  68. package/dist/utils/index.d.ts +9 -9
  69. package/dist/utils/isString.d.ts +1 -1
  70. package/dist/utils/location.d.ts +2 -2
  71. package/dist/utils/parseJwt.d.ts +1 -1
  72. package/dist/utils/promiseAllIgnoreErrors.d.ts +1 -1
  73. package/dist/utils/stripUselessSlashes.d.ts +1 -1
  74. package/dist/utils/unique.d.ts +1 -1
  75. package/dist/utils/user.d.ts +3 -3
  76. package/package.json +15 -27
  77. package/dist/__generated__/PythonService.d.ts +0 -33
  78. package/dist/__generated__/SymbolStorageService.d.ts +0 -225
  79. package/dist/__generated__/WfsServerService.d.ts +0 -45
  80. package/dist/__generated__/WmtsService.d.ts +0 -21
  81. package/dist/api.cjs.development.js +0 -7636
  82. package/dist/api.cjs.development.js.map +0 -1
  83. package/dist/api.cjs.production.min.js +0 -2
  84. package/dist/api.cjs.production.min.js.map +0 -1
@@ -1,513 +1,513 @@
1
- import { AuthenticateParams, ChangeEmailParams, ChangePasswordPayload, ConfirmChangeEmailParams, ConfirmEmail1Params, CreateNamespaceParams, CreateRoleDc, CreateUserDc, CreateUserParams, ExtendedUserInfoDc, GetExtendedUsersParams, GetRolesParams, GetUsersParams, IsEmailExistsParams, IsUsernameExistsParams, LoginDc, LoginResultDc, NamespaceInfoDc, PagedListExtendedUserInfoDc, PagedListRoleInfoDc, PagedListUserInfoDc, RefreshTokenDc, RegisterClientRequestDc, RegisterClientResponseDc, RegisterUserDc, ResetPasswordCallbackPayload, ResetPasswordParams, SetEmailPayload, TokenRequestDc, TokenResponseDc, UpdateRoleDc, UpdateUserDc, UsedProjectDc, UserInfoDc } from './data-contracts';
2
- import { Service } from './Service';
3
- /**
4
- * @title Spatial Processing Core API
5
- * @version 1.5.1.0
6
- * @baseUrl /sp
7
- */
8
- export declare class AccountService extends Service {
9
- /**
10
- * No description
11
- *
12
- * @tags Account
13
- * @name GetUsers
14
- * @operationId AccountController_GetUsers
15
- * @summary Returns the list of users that correspond to the given conditions.
16
- * @request GET:/account/user/list
17
- * @secure
18
- * @response `200` OK
19
- */
20
- getUsers(query: GetUsersParams): Promise<PagedListUserInfoDc>;
21
- /**
22
- * No description
23
- *
24
- * @tags Account
25
- * @name GetExtendedUsers
26
- * @operationId AccountController_GetExtendedUsers
27
- * @summary Returns the list of extended users informations that correspond to the given conditions.
28
- * @request GET:/account/user/extendedlist
29
- * @secure
30
- * @response `200` OK
31
- */
32
- getExtendedUsers(query: GetExtendedUsersParams): Promise<PagedListExtendedUserInfoDc>;
33
- /**
34
- * No description
35
- *
36
- * @tags Account
37
- * @name GetUserInfo
38
- * @operationId AccountController_GetUserInfo
39
- * @summary Get current user basic information.
40
- * @request GET:/account
41
- * @secure
42
- * @response `200` OK
43
- */
44
- getUserInfo(): Promise<UserInfoDc>;
45
- /**
46
- * No description
47
- *
48
- * @tags Account
49
- * @name GetUserInfo1
50
- * @operationId AccountController_GetUserInfo_1
51
- * @summary Get user basic information.
52
- * @request GET:/account/{username}
53
- * @secure
54
- * @response `200` OK
55
- */
56
- getUserInfo1(username: string): Promise<UserInfoDc>;
57
- /**
58
- * No description
59
- *
60
- * @tags Account
61
- * @name GetExtendedUserInfo
62
- * @operationId AccountController_GetExtendedUserInfo
63
- * @summary Get current user extended information.
64
- * @request GET:/account/extended
65
- * @secure
66
- * @response `200` OK
67
- */
68
- getExtendedUserInfo(): Promise<ExtendedUserInfoDc>;
69
- /**
70
- * No description
71
- *
72
- * @tags Account
73
- * @name GetExtendedUserInfo1
74
- * @operationId AccountController_GetExtendedUserInfo_1
75
- * @summary Get user extended information.
76
- * @request GET:/account/extended/{username}
77
- * @secure
78
- * @response `200` OK
79
- */
80
- getExtendedUserInfo1(username: string): Promise<ExtendedUserInfoDc>;
81
- /**
82
- * No description
83
- *
84
- * @tags Account
85
- * @name IsUsernameExists
86
- * @operationId AccountController_IsUsernameExists
87
- * @summary Checks if the user with the given name is registered in the system.
88
- * @request GET:/account/user/exists
89
- * @secure
90
- * @response `200` OK
91
- */
92
- isUsernameExists(query: IsUsernameExistsParams): Promise<boolean>;
93
- /**
94
- * No description
95
- *
96
- * @tags Account
97
- * @name IsEmailExists
98
- * @operationId AccountController_IsEmailExists
99
- * @summary Checks if the user with the given email is registered in the system.
100
- * @request GET:/account/user/email/exists
101
- * @secure
102
- * @response `200` OK
103
- */
104
- isEmailExists(query: IsEmailExistsParams): Promise<boolean>;
105
- /**
106
- * No description
107
- *
108
- * @tags Account
109
- * @name RegisterUser
110
- * @operationId AccountController_RegisterUser
111
- * @summary Register new user.
112
- * @request POST:/account/register
113
- * @secure
114
- * @response `200` OK
115
- */
116
- registerUser(data: RegisterUserDc): Promise<string>;
117
- /**
118
- * @description Only for users with SPCore.Security.Abstractions.ISecurityManager.SuperuserRole role.
119
- *
120
- * @tags Account
121
- * @name CreateUser
122
- * @operationId AccountController_CreateUser
123
- * @summary Create new user.
124
- * @request POST:/account/user
125
- * @secure
126
- * @response `200` OK
127
- */
128
- createUser(query: CreateUserParams, data: CreateUserDc): Promise<void>;
129
- /**
130
- * No description
131
- *
132
- * @tags Account
133
- * @name UpdateUser
134
- * @operationId AccountController_UpdateUser
135
- * @summary Update exist user.
136
- * @request PATCH:/account/user
137
- * @secure
138
- * @response `200` OK
139
- */
140
- updateUser(data: UpdateUserDc): Promise<void>;
141
- /**
142
- * @description Only for users with SPCore.Security.Abstractions.ISecurityManager.SuperuserRole role.
143
- *
144
- * @tags Account
145
- * @name ConfirmEmail
146
- * @operationId AccountController_ConfirmEmail
147
- * @summary Confirm user email.
148
- * @request POST:/account/user/{username}/email/confirm
149
- * @secure
150
- * @response `200` OK
151
- */
152
- confirmEmail(username: string): Promise<void>;
153
- /**
154
- * No description
155
- *
156
- * @tags Account
157
- * @name VerifyEmail
158
- * @operationId AccountController_VerifyEmail
159
- * @summary Send email with verification code.
160
- * @request POST:/account/user/{username}/email/verify
161
- * @secure
162
- * @response `200` OK
163
- */
164
- verifyEmail(username: string): Promise<void>;
165
- /**
166
- * No description
167
- *
168
- * @tags Account
169
- * @name SetEmail
170
- * @operationId AccountController_SetEmail
171
- * @summary For a user that does not have a set email, sets the email and password. Requires email confirmation through link.
172
- * @request POST:/account/setEmail
173
- * @secure
174
- * @response `200` OK
175
- */
176
- setEmail(data: SetEmailPayload | FormData): Promise<void>;
177
- /**
178
- * No description
179
- *
180
- * @tags Account
181
- * @name ConfirmEmail1
182
- * @operationId AccountController_ConfirmEmail_1
183
- * @summary Confirm user email by code.
184
- * @request POST:/account/user/email/confirm
185
- * @secure
186
- * @response `200` OK
187
- */
188
- confirmEmail1(query: ConfirmEmail1Params): Promise<void>;
189
- /**
190
- * No description
191
- *
192
- * @tags Account
193
- * @name ChangeEmail
194
- * @operationId AccountController_ChangeEmail
195
- * @summary Send email message with confirmation code to new email address.
196
- * @request POST:/account/user/email/change
197
- * @secure
198
- * @response `200` OK
199
- */
200
- changeEmail(query: ChangeEmailParams): Promise<void>;
201
- /**
202
- * No description
203
- *
204
- * @tags Account
205
- * @name ConfirmChangeEmail
206
- * @operationId AccountController_ConfirmChangeEmail
207
- * @summary Check confirmation code and change email address.
208
- * @request POST:/account/user/email/change/confirm
209
- * @secure
210
- * @response `200` OK
211
- */
212
- confirmChangeEmail(query: ConfirmChangeEmailParams): Promise<void>;
213
- /**
214
- * No description
215
- *
216
- * @tags Account
217
- * @name SetUserPassword
218
- * @operationId AccountController_SetUserPassword
219
- * @summary Set user password.
220
- * @request PATCH:/account/password/set
221
- * @secure
222
- * @response `200` OK
223
- */
224
- setUserPassword(data: LoginDc): Promise<void>;
225
- /**
226
- * No description
227
- *
228
- * @tags Account
229
- * @name ChangePassword
230
- * @operationId AccountController_ChangePassword
231
- * @summary Change current user password.
232
- * @request PATCH:/account/password/change
233
- * @secure
234
- * @response `200` OK
235
- */
236
- changePassword(data: ChangePasswordPayload | FormData): Promise<void>;
237
- /**
238
- * No description
239
- *
240
- * @tags Account
241
- * @name ResetPassword
242
- * @operationId AccountController_ResetPassword
243
- * @summary Send reset password message.
244
- * @request POST:/account/password/reset
245
- * @secure
246
- * @response `200` OK
247
- */
248
- resetPassword(query: ResetPasswordParams): Promise<void>;
249
- /**
250
- * No description
251
- *
252
- * @tags Account
253
- * @name ResetPasswordCallback
254
- * @operationId AccountController_ResetPasswordCallback
255
- * @summary Reset password.
256
- * @request POST:/account/password/reset/confirm
257
- * @secure
258
- * @response `200` OK
259
- */
260
- resetPasswordCallback(data: ResetPasswordCallbackPayload | FormData): Promise<void>;
261
- /**
262
- * No description
263
- *
264
- * @tags Account
265
- * @name RemoveUser
266
- * @operationId AccountController_RemoveUser
267
- * @summary Remove user.
268
- * @request DELETE:/account/user/{username}
269
- * @secure
270
- * @response `200` OK
271
- */
272
- removeUser(username: string): Promise<void>;
273
- /**
274
- * No description
275
- *
276
- * @tags Account
277
- * @name CreateNamespace
278
- * @operationId AccountController_CreateNamespace
279
- * @summary Creates a new namespace.
280
- * @request POST:/account/namespace
281
- * @secure
282
- * @response `200` OK
283
- */
284
- createNamespace(query: CreateNamespaceParams): Promise<NamespaceInfoDc>;
285
- /**
286
- * No description
287
- *
288
- * @tags Account
289
- * @name RemoveNamespace
290
- * @operationId AccountController_RemoveNamespaceAsync
291
- * @summary Remove namespace.
292
- * @request DELETE:/account/{namespace}
293
- * @secure
294
- * @response `200` OK
295
- */
296
- removeNamespace(namespace: string): Promise<void>;
297
- /**
298
- * No description
299
- *
300
- * @tags Account
301
- * @name ActivateUser
302
- * @operationId AccountController_ActivateUser
303
- * @summary Activate user.
304
- * @request POST:/account/user/{username}/activate
305
- * @secure
306
- * @response `200` OK
307
- */
308
- activateUser(username: string): Promise<void>;
309
- /**
310
- * No description
311
- *
312
- * @tags Account
313
- * @name DeactivateUser
314
- * @operationId AccountController_DeactivateUser
315
- * @summary Deactivate user.
316
- * @request POST:/account/user/{username}/deactivate
317
- * @secure
318
- * @response `200` OK
319
- */
320
- deactivateUser(username: string): Promise<void>;
321
- /**
322
- * No description
323
- *
324
- * @tags Account
325
- * @name Authenticate
326
- * @operationId AccountController_Authenticate
327
- * @summary Login.
328
- * @request POST:/account/login
329
- * @secure
330
- * @response `200` OK
331
- */
332
- authenticate(query: AuthenticateParams, data: LoginDc): Promise<LoginResultDc>;
333
- /**
334
- * No description
335
- *
336
- * @tags Account
337
- * @name RefreshToken
338
- * @operationId AccountController_RefreshToken
339
- * @summary Refresh JWT token.
340
- * @request POST:/account/refresh-token
341
- * @secure
342
- * @response `200` OK
343
- */
344
- refreshToken(data: RefreshTokenDc): Promise<LoginResultDc>;
345
- /**
346
- * No description
347
- *
348
- * @tags Account
349
- * @name RevokeToken
350
- * @operationId AccountController_RevokeToken
351
- * @summary Revoke refresh token.
352
- * @request DELETE:/account/revoke-token
353
- * @secure
354
- * @response `200` OK
355
- */
356
- revokeToken(): Promise<void>;
357
- /**
358
- * No description
359
- *
360
- * @tags Account
361
- * @name LdapLogin
362
- * @operationId AccountController_LdapLogin
363
- * @summary The external login callback.
364
- * @request POST:/account/external/login/ldap
365
- * @secure
366
- * @response `200` OK
367
- */
368
- ldapLogin(data: LoginDc): Promise<LoginResultDc>;
369
- /**
370
- * No description
371
- *
372
- * @tags Account
373
- * @name RegisterClient
374
- * @operationId AccountController_RegisterClient
375
- * @summary Register new client.
376
- * @request POST:/account/oauth2/client
377
- * @secure
378
- * @response `200` OK
379
- */
380
- registerClient(data: RegisterClientRequestDc): Promise<RegisterClientResponseDc>;
381
- /**
382
- * No description
383
- *
384
- * @tags Account
385
- * @name UnbindClient
386
- * @operationId AccountController_UnbindClient
387
- * @summary Unbind client with id.
388
- * @request DELETE:/account/oauth2/client/{clientId}
389
- * @secure
390
- * @response `200` OK
391
- */
392
- unbindClient(clientId: string): Promise<void>;
393
- /**
394
- * No description
395
- *
396
- * @tags Account
397
- * @name Token
398
- * @operationId AccountController_Token
399
- * @summary Get access token request.
400
- * @request POST:/account/oauth2/token
401
- * @secure
402
- * @response `200` OK
403
- */
404
- token(data: TokenRequestDc): Promise<TokenResponseDc>;
405
- /**
406
- * No description
407
- *
408
- * @tags Account
409
- * @name GetRoles
410
- * @operationId AccountController_GetRoles
411
- * @summary Enumerate exist roles.
412
- * @request GET:/account/role/list
413
- * @secure
414
- * @response `200` OK
415
- */
416
- getRoles(query: GetRolesParams): Promise<PagedListRoleInfoDc>;
417
- /**
418
- * No description
419
- *
420
- * @tags Account
421
- * @name CreateRole
422
- * @operationId AccountController_CreateRole
423
- * @summary Create new role.
424
- * @request POST:/account/role
425
- * @secure
426
- * @response `200` OK
427
- */
428
- createRole(data: CreateRoleDc): Promise<void>;
429
- /**
430
- * No description
431
- *
432
- * @tags Account
433
- * @name UpdateRole
434
- * @operationId AccountController_UpdateRole
435
- * @summary Update exist role.
436
- * @request PATCH:/account/role
437
- * @secure
438
- * @response `200` OK
439
- */
440
- updateRole(data: UpdateRoleDc): Promise<void>;
441
- /**
442
- * No description
443
- *
444
- * @tags Account
445
- * @name RemoveRole
446
- * @operationId AccountController_RemoveRole
447
- * @summary Remove role.
448
- * @request DELETE:/account/role/{rolename}
449
- * @secure
450
- * @response `200` OK
451
- */
452
- removeRole(rolename: string): Promise<void>;
453
- /**
454
- * No description
455
- *
456
- * @tags Account
457
- * @name AddToRole
458
- * @operationId AccountController_AddToRole
459
- * @summary Add user to role.
460
- * @request POST:/account/user/{username}/role/{role}
461
- * @secure
462
- * @response `200` OK
463
- */
464
- addToRole(username: string, role: string): Promise<void>;
465
- /**
466
- * No description
467
- *
468
- * @tags Account
469
- * @name RemoveFromRole
470
- * @operationId AccountController_RemoveFromRole
471
- * @summary Remove user from role.
472
- * @request DELETE:/account/user/{username}/role/{role}
473
- * @secure
474
- * @response `200` OK
475
- */
476
- removeFromRole(username: string, role: string): Promise<void>;
477
- /**
478
- * No description
479
- *
480
- * @tags Account
481
- * @name PostUsedProjects
482
- * @operationId AccountController_PostUsedProjects
483
- * @summary Set used project.
484
- * @request POST:/account/latest_projects
485
- * @secure
486
- * @response `200` OK
487
- */
488
- postUsedProjects(data: UsedProjectDc): Promise<UsedProjectDc>;
489
- /**
490
- * No description
491
- *
492
- * @tags Account
493
- * @name GetUsedProjects
494
- * @operationId AccountController_GetUsedProjects
495
- * @summary Get used projects.
496
- * @request GET:/account/latest_projects
497
- * @secure
498
- * @response `200` OK
499
- */
500
- getUsedProjects(): Promise<UsedProjectDc[]>;
501
- /**
502
- * No description
503
- *
504
- * @tags Account
505
- * @name TruncateUsedProjects
506
- * @operationId AccountController_TruncateUsedProjects
507
- * @summary Truncate used projects.
508
- * @request DELETE:/account/latest_projects
509
- * @secure
510
- * @response `200` OK
511
- */
512
- truncateUsedProjects(): Promise<void>;
513
- }
1
+ import { Service } from './Service';
2
+ import { AuthenticateParams, ChangeEmailParams, ChangePasswordPayload, ConfirmChangeEmailParams, ConfirmEmail1Params, CreateNamespaceParams, CreateRoleDc, CreateUserDc, CreateUserParams, ExtendedUserInfoDc, GetExtendedUsersParams, GetRolesParams, GetUsersParams, IsEmailExistsParams, IsUsernameExistsParams, LoginDc, LoginResultDc, NamespaceInfoDc, PagedListExtendedUserInfoDc, PagedListRoleInfoDc, PagedListUserInfoDc, RefreshTokenDc, RegisterClientRequestDc, RegisterClientResponseDc, RegisterUserDc, ResetPasswordCallbackPayload, ResetPasswordParams, SetEmailPayload, TokenRequestDc, TokenResponseDc, UpdateRoleDc, UpdateUserDc, UsedProjectDc, UserInfoDc } from './data-contracts';
3
+ /**
4
+ * @title Spatial Processing Core API
5
+ * @version 1.5.1.0
6
+ * @baseUrl /sp
7
+ */
8
+ export declare class AccountService extends Service {
9
+ /**
10
+ * No description
11
+ *
12
+ * @tags Account
13
+ * @name GetUsers
14
+ * @operationId AccountController_GetUsers
15
+ * @summary Returns the list of users that correspond to the given conditions.
16
+ * @request GET:/account/user/list
17
+ * @secure
18
+ * @response `200` OK
19
+ */
20
+ getUsers(query: GetUsersParams): Promise<PagedListUserInfoDc>;
21
+ /**
22
+ * No description
23
+ *
24
+ * @tags Account
25
+ * @name GetExtendedUsers
26
+ * @operationId AccountController_GetExtendedUsers
27
+ * @summary Returns the list of extended users informations that correspond to the given conditions.
28
+ * @request GET:/account/user/extendedlist
29
+ * @secure
30
+ * @response `200` OK
31
+ */
32
+ getExtendedUsers(query: GetExtendedUsersParams): Promise<PagedListExtendedUserInfoDc>;
33
+ /**
34
+ * No description
35
+ *
36
+ * @tags Account
37
+ * @name GetUserInfo
38
+ * @operationId AccountController_GetUserInfo
39
+ * @summary Get current user basic information.
40
+ * @request GET:/account
41
+ * @secure
42
+ * @response `200` OK
43
+ */
44
+ getUserInfo(): Promise<UserInfoDc>;
45
+ /**
46
+ * No description
47
+ *
48
+ * @tags Account
49
+ * @name GetUserInfo1
50
+ * @operationId AccountController_GetUserInfo_1
51
+ * @summary Get user basic information.
52
+ * @request GET:/account/{username}
53
+ * @secure
54
+ * @response `200` OK
55
+ */
56
+ getUserInfo1(username: string): Promise<UserInfoDc>;
57
+ /**
58
+ * No description
59
+ *
60
+ * @tags Account
61
+ * @name GetExtendedUserInfo
62
+ * @operationId AccountController_GetExtendedUserInfo
63
+ * @summary Get current user extended information.
64
+ * @request GET:/account/extended
65
+ * @secure
66
+ * @response `200` OK
67
+ */
68
+ getExtendedUserInfo(): Promise<ExtendedUserInfoDc>;
69
+ /**
70
+ * No description
71
+ *
72
+ * @tags Account
73
+ * @name GetExtendedUserInfo1
74
+ * @operationId AccountController_GetExtendedUserInfo_1
75
+ * @summary Get user extended information.
76
+ * @request GET:/account/extended/{username}
77
+ * @secure
78
+ * @response `200` OK
79
+ */
80
+ getExtendedUserInfo1(username: string): Promise<ExtendedUserInfoDc>;
81
+ /**
82
+ * No description
83
+ *
84
+ * @tags Account
85
+ * @name IsUsernameExists
86
+ * @operationId AccountController_IsUsernameExists
87
+ * @summary Checks if the user with the given name is registered in the system.
88
+ * @request GET:/account/user/exists
89
+ * @secure
90
+ * @response `200` OK
91
+ */
92
+ isUsernameExists(query: IsUsernameExistsParams): Promise<boolean>;
93
+ /**
94
+ * No description
95
+ *
96
+ * @tags Account
97
+ * @name IsEmailExists
98
+ * @operationId AccountController_IsEmailExists
99
+ * @summary Checks if the user with the given email is registered in the system.
100
+ * @request GET:/account/user/email/exists
101
+ * @secure
102
+ * @response `200` OK
103
+ */
104
+ isEmailExists(query: IsEmailExistsParams): Promise<boolean>;
105
+ /**
106
+ * No description
107
+ *
108
+ * @tags Account
109
+ * @name RegisterUser
110
+ * @operationId AccountController_RegisterUser
111
+ * @summary Register new user.
112
+ * @request POST:/account/register
113
+ * @secure
114
+ * @response `200` OK
115
+ */
116
+ registerUser(data: RegisterUserDc): Promise<string>;
117
+ /**
118
+ * @description Only for users with SPCore.Security.Abstractions.ISecurityManager.SuperuserRole role.
119
+ *
120
+ * @tags Account
121
+ * @name CreateUser
122
+ * @operationId AccountController_CreateUser
123
+ * @summary Create new user.
124
+ * @request POST:/account/user
125
+ * @secure
126
+ * @response `200` OK
127
+ */
128
+ createUser(query: CreateUserParams, data: CreateUserDc): Promise<void>;
129
+ /**
130
+ * No description
131
+ *
132
+ * @tags Account
133
+ * @name UpdateUser
134
+ * @operationId AccountController_UpdateUser
135
+ * @summary Update exist user.
136
+ * @request PATCH:/account/user
137
+ * @secure
138
+ * @response `200` OK
139
+ */
140
+ updateUser(data: UpdateUserDc): Promise<void>;
141
+ /**
142
+ * @description Only for users with SPCore.Security.Abstractions.ISecurityManager.SuperuserRole role.
143
+ *
144
+ * @tags Account
145
+ * @name ConfirmEmail
146
+ * @operationId AccountController_ConfirmEmail
147
+ * @summary Confirm user email.
148
+ * @request POST:/account/user/{username}/email/confirm
149
+ * @secure
150
+ * @response `200` OK
151
+ */
152
+ confirmEmail(username: string): Promise<void>;
153
+ /**
154
+ * No description
155
+ *
156
+ * @tags Account
157
+ * @name VerifyEmail
158
+ * @operationId AccountController_VerifyEmail
159
+ * @summary Send email with verification code.
160
+ * @request POST:/account/user/{username}/email/verify
161
+ * @secure
162
+ * @response `200` OK
163
+ */
164
+ verifyEmail(username: string): Promise<void>;
165
+ /**
166
+ * No description
167
+ *
168
+ * @tags Account
169
+ * @name SetEmail
170
+ * @operationId AccountController_SetEmail
171
+ * @summary For a user that does not have a set email, sets the email and password. Requires email confirmation through link.
172
+ * @request POST:/account/setEmail
173
+ * @secure
174
+ * @response `200` OK
175
+ */
176
+ setEmail(data: SetEmailPayload | FormData): Promise<void>;
177
+ /**
178
+ * No description
179
+ *
180
+ * @tags Account
181
+ * @name ConfirmEmail1
182
+ * @operationId AccountController_ConfirmEmail_1
183
+ * @summary Confirm user email by code.
184
+ * @request POST:/account/user/email/confirm
185
+ * @secure
186
+ * @response `200` OK
187
+ */
188
+ confirmEmail1(query: ConfirmEmail1Params): Promise<void>;
189
+ /**
190
+ * No description
191
+ *
192
+ * @tags Account
193
+ * @name ChangeEmail
194
+ * @operationId AccountController_ChangeEmail
195
+ * @summary Send email message with confirmation code to new email address.
196
+ * @request POST:/account/user/email/change
197
+ * @secure
198
+ * @response `200` OK
199
+ */
200
+ changeEmail(query: ChangeEmailParams): Promise<void>;
201
+ /**
202
+ * No description
203
+ *
204
+ * @tags Account
205
+ * @name ConfirmChangeEmail
206
+ * @operationId AccountController_ConfirmChangeEmail
207
+ * @summary Check confirmation code and change email address.
208
+ * @request POST:/account/user/email/change/confirm
209
+ * @secure
210
+ * @response `200` OK
211
+ */
212
+ confirmChangeEmail(query: ConfirmChangeEmailParams): Promise<void>;
213
+ /**
214
+ * No description
215
+ *
216
+ * @tags Account
217
+ * @name SetUserPassword
218
+ * @operationId AccountController_SetUserPassword
219
+ * @summary Set user password.
220
+ * @request PATCH:/account/password/set
221
+ * @secure
222
+ * @response `200` OK
223
+ */
224
+ setUserPassword(data: LoginDc): Promise<void>;
225
+ /**
226
+ * No description
227
+ *
228
+ * @tags Account
229
+ * @name ChangePassword
230
+ * @operationId AccountController_ChangePassword
231
+ * @summary Change current user password.
232
+ * @request PATCH:/account/password/change
233
+ * @secure
234
+ * @response `200` OK
235
+ */
236
+ changePassword(data: ChangePasswordPayload | FormData): Promise<void>;
237
+ /**
238
+ * No description
239
+ *
240
+ * @tags Account
241
+ * @name ResetPassword
242
+ * @operationId AccountController_ResetPassword
243
+ * @summary Send reset password message.
244
+ * @request POST:/account/password/reset
245
+ * @secure
246
+ * @response `200` OK
247
+ */
248
+ resetPassword(query: ResetPasswordParams): Promise<void>;
249
+ /**
250
+ * No description
251
+ *
252
+ * @tags Account
253
+ * @name ResetPasswordCallback
254
+ * @operationId AccountController_ResetPasswordCallback
255
+ * @summary Reset password.
256
+ * @request POST:/account/password/reset/confirm
257
+ * @secure
258
+ * @response `200` OK
259
+ */
260
+ resetPasswordCallback(data: ResetPasswordCallbackPayload | FormData): Promise<void>;
261
+ /**
262
+ * No description
263
+ *
264
+ * @tags Account
265
+ * @name RemoveUser
266
+ * @operationId AccountController_RemoveUser
267
+ * @summary Remove user.
268
+ * @request DELETE:/account/user/{username}
269
+ * @secure
270
+ * @response `200` OK
271
+ */
272
+ removeUser(username: string): Promise<void>;
273
+ /**
274
+ * No description
275
+ *
276
+ * @tags Account
277
+ * @name CreateNamespace
278
+ * @operationId AccountController_CreateNamespace
279
+ * @summary Creates a new namespace.
280
+ * @request POST:/account/namespace
281
+ * @secure
282
+ * @response `200` OK
283
+ */
284
+ createNamespace(query: CreateNamespaceParams): Promise<NamespaceInfoDc>;
285
+ /**
286
+ * No description
287
+ *
288
+ * @tags Account
289
+ * @name RemoveNamespace
290
+ * @operationId AccountController_RemoveNamespaceAsync
291
+ * @summary Remove namespace.
292
+ * @request DELETE:/account/namespace/{name}
293
+ * @secure
294
+ * @response `200` OK
295
+ */
296
+ removeNamespace(name: string): Promise<void>;
297
+ /**
298
+ * No description
299
+ *
300
+ * @tags Account
301
+ * @name ActivateUser
302
+ * @operationId AccountController_ActivateUser
303
+ * @summary Activate user.
304
+ * @request POST:/account/user/{username}/activate
305
+ * @secure
306
+ * @response `200` OK
307
+ */
308
+ activateUser(username: string): Promise<void>;
309
+ /**
310
+ * No description
311
+ *
312
+ * @tags Account
313
+ * @name DeactivateUser
314
+ * @operationId AccountController_DeactivateUser
315
+ * @summary Deactivate user.
316
+ * @request POST:/account/user/{username}/deactivate
317
+ * @secure
318
+ * @response `200` OK
319
+ */
320
+ deactivateUser(username: string): Promise<void>;
321
+ /**
322
+ * No description
323
+ *
324
+ * @tags Account
325
+ * @name Authenticate
326
+ * @operationId AccountController_Authenticate
327
+ * @summary Login.
328
+ * @request POST:/account/login
329
+ * @secure
330
+ * @response `200` OK
331
+ */
332
+ authenticate(query: AuthenticateParams, data: LoginDc): Promise<LoginResultDc>;
333
+ /**
334
+ * No description
335
+ *
336
+ * @tags Account
337
+ * @name RefreshToken
338
+ * @operationId AccountController_RefreshToken
339
+ * @summary Refresh JWT token.
340
+ * @request POST:/account/refresh-token
341
+ * @secure
342
+ * @response `200` OK
343
+ */
344
+ refreshToken(data: RefreshTokenDc): Promise<LoginResultDc>;
345
+ /**
346
+ * No description
347
+ *
348
+ * @tags Account
349
+ * @name RevokeToken
350
+ * @operationId AccountController_RevokeToken
351
+ * @summary Revoke refresh token.
352
+ * @request DELETE:/account/revoke-token
353
+ * @secure
354
+ * @response `200` OK
355
+ */
356
+ revokeToken(): Promise<void>;
357
+ /**
358
+ * No description
359
+ *
360
+ * @tags Account
361
+ * @name LdapLogin
362
+ * @operationId AccountController_LdapLogin
363
+ * @summary The external login callback.
364
+ * @request POST:/account/external/login/ldap
365
+ * @secure
366
+ * @response `200` OK
367
+ */
368
+ ldapLogin(data: LoginDc): Promise<LoginResultDc>;
369
+ /**
370
+ * No description
371
+ *
372
+ * @tags Account
373
+ * @name RegisterClient
374
+ * @operationId AccountController_RegisterClient
375
+ * @summary Register new client.
376
+ * @request POST:/account/oauth2/client
377
+ * @secure
378
+ * @response `200` OK
379
+ */
380
+ registerClient(data: RegisterClientRequestDc): Promise<RegisterClientResponseDc>;
381
+ /**
382
+ * No description
383
+ *
384
+ * @tags Account
385
+ * @name UnbindClient
386
+ * @operationId AccountController_UnbindClient
387
+ * @summary Unbind client with id.
388
+ * @request DELETE:/account/oauth2/client/{clientId}
389
+ * @secure
390
+ * @response `200` OK
391
+ */
392
+ unbindClient(clientId: string): Promise<void>;
393
+ /**
394
+ * No description
395
+ *
396
+ * @tags Account
397
+ * @name Token
398
+ * @operationId AccountController_Token
399
+ * @summary Get access token request.
400
+ * @request POST:/account/oauth2/token
401
+ * @secure
402
+ * @response `200` OK
403
+ */
404
+ token(data: TokenRequestDc): Promise<TokenResponseDc>;
405
+ /**
406
+ * No description
407
+ *
408
+ * @tags Account
409
+ * @name GetRoles
410
+ * @operationId AccountController_GetRoles
411
+ * @summary Enumerate exist roles.
412
+ * @request GET:/account/role/list
413
+ * @secure
414
+ * @response `200` OK
415
+ */
416
+ getRoles(query: GetRolesParams): Promise<PagedListRoleInfoDc>;
417
+ /**
418
+ * No description
419
+ *
420
+ * @tags Account
421
+ * @name CreateRole
422
+ * @operationId AccountController_CreateRole
423
+ * @summary Create new role.
424
+ * @request POST:/account/role
425
+ * @secure
426
+ * @response `200` OK
427
+ */
428
+ createRole(data: CreateRoleDc): Promise<void>;
429
+ /**
430
+ * No description
431
+ *
432
+ * @tags Account
433
+ * @name UpdateRole
434
+ * @operationId AccountController_UpdateRole
435
+ * @summary Update exist role.
436
+ * @request PATCH:/account/role
437
+ * @secure
438
+ * @response `200` OK
439
+ */
440
+ updateRole(data: UpdateRoleDc): Promise<void>;
441
+ /**
442
+ * No description
443
+ *
444
+ * @tags Account
445
+ * @name RemoveRole
446
+ * @operationId AccountController_RemoveRole
447
+ * @summary Remove role.
448
+ * @request DELETE:/account/role/{rolename}
449
+ * @secure
450
+ * @response `200` OK
451
+ */
452
+ removeRole(rolename: string): Promise<void>;
453
+ /**
454
+ * No description
455
+ *
456
+ * @tags Account
457
+ * @name AddToRole
458
+ * @operationId AccountController_AddToRole
459
+ * @summary Add user to role.
460
+ * @request POST:/account/user/{username}/role/{role}
461
+ * @secure
462
+ * @response `200` OK
463
+ */
464
+ addToRole(username: string, role: string): Promise<void>;
465
+ /**
466
+ * No description
467
+ *
468
+ * @tags Account
469
+ * @name RemoveFromRole
470
+ * @operationId AccountController_RemoveFromRole
471
+ * @summary Remove user from role.
472
+ * @request DELETE:/account/user/{username}/role/{role}
473
+ * @secure
474
+ * @response `200` OK
475
+ */
476
+ removeFromRole(username: string, role: string): Promise<void>;
477
+ /**
478
+ * No description
479
+ *
480
+ * @tags Account
481
+ * @name PostUsedProjects
482
+ * @operationId AccountController_PostUsedProjects
483
+ * @summary Set used project.
484
+ * @request POST:/account/latest_projects
485
+ * @secure
486
+ * @response `200` OK
487
+ */
488
+ postUsedProjects(data: UsedProjectDc): Promise<UsedProjectDc>;
489
+ /**
490
+ * No description
491
+ *
492
+ * @tags Account
493
+ * @name GetUsedProjects
494
+ * @operationId AccountController_GetUsedProjects
495
+ * @summary Get used projects.
496
+ * @request GET:/account/latest_projects
497
+ * @secure
498
+ * @response `200` OK
499
+ */
500
+ getUsedProjects(): Promise<UsedProjectDc[]>;
501
+ /**
502
+ * No description
503
+ *
504
+ * @tags Account
505
+ * @name TruncateUsedProjects
506
+ * @operationId AccountController_TruncateUsedProjects
507
+ * @summary Truncate used projects.
508
+ * @request DELETE:/account/latest_projects
509
+ * @secure
510
+ * @response `200` OK
511
+ */
512
+ truncateUsedProjects(): Promise<void>;
513
+ }