@ayasofyazilim/saas 0.0.25 → 0.0.26

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,1453 +1,1453 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
-
3
- import type { CancelablePromise } from './core/CancelablePromise';
4
- import type { BaseHttpRequest } from './core/BaseHttpRequest';
5
- import type { GetApiAbpApiDefinitionData, GetApiAbpApiDefinitionResponse, GetApiAbpApplicationConfigurationData, GetApiAbpApplicationConfigurationResponse, GetApiAbpApplicationLocalizationData, GetApiAbpApplicationLocalizationResponse, GetApiAbpMultiTenancyTenantsByNameByNameData, GetApiAbpMultiTenancyTenantsByNameByNameResponse, GetApiAbpMultiTenancyTenantsByIdByIdData, GetApiAbpMultiTenancyTenantsByIdByIdResponse, PostApiAccountRegisterData, PostApiAccountRegisterResponse, PostApiAccountSendPasswordResetCodeData, PostApiAccountSendPasswordResetCodeResponse, PostApiAccountVerifyPasswordResetTokenData, PostApiAccountVerifyPasswordResetTokenResponse, PostApiAccountResetPasswordData, PostApiAccountResetPasswordResponse, GetApiAccountConfirmationStateData, GetApiAccountConfirmationStateResponse, PostApiAccountSendPhoneNumberConfirmationTokenData, PostApiAccountSendPhoneNumberConfirmationTokenResponse, PostApiAccountSendEmailConfirmationTokenData, PostApiAccountSendEmailConfirmationTokenResponse, PostApiAccountVerifyEmailConfirmationTokenData, PostApiAccountVerifyEmailConfirmationTokenResponse, PostApiAccountConfirmPhoneNumberData, PostApiAccountConfirmPhoneNumberResponse, PostApiAccountConfirmEmailData, PostApiAccountConfirmEmailResponse, PostApiAccountProfilePictureData, PostApiAccountProfilePictureResponse, GetApiAccountProfilePictureByIdData, GetApiAccountProfilePictureByIdResponse, GetApiAccountTwoFactorProvidersData, GetApiAccountTwoFactorProvidersResponse, PostApiAccountSendTwoFactorCodeData, PostApiAccountSendTwoFactorCodeResponse, GetApiAccountSecurityLogsData, GetApiAccountSecurityLogsResponse, PostApiAccountVerifyAuthenticatorCodeData, PostApiAccountVerifyAuthenticatorCodeResponse, PostApiAccountResetAuthenticatorResponse, GetApiAccountHasAuthenticatorKeyResponse, GetApiAccountAuthenticatorInfoResponse, GetApiAccountProfilePictureFileByIdData, GetApiAccountProfilePictureFileByIdResponse, GetApiAccountRecaptchaValidateData, GetApiAccountRecaptchaValidateResponse, GetApiAccountExternalProviderResponse, GetApiAccountExternalProviderByNameData, GetApiAccountExternalProviderByNameResponse, GetApiAccountAdminSettingsResponse, PutApiAccountAdminSettingsData, PutApiAccountAdminSettingsResponse, GetApiAccountAdminSettingsTwoFactorResponse, PutApiAccountAdminSettingsTwoFactorData, PutApiAccountAdminSettingsTwoFactorResponse, GetApiAccountAdminSettingsRecaptchaResponse, PutApiAccountAdminSettingsRecaptchaData, PutApiAccountAdminSettingsRecaptchaResponse, GetApiAccountAdminSettingsExternalProviderResponse, PutApiAccountAdminSettingsExternalProviderData, PutApiAccountAdminSettingsExternalProviderResponse, PostApiAccountDynamicClaimsRefreshResponse, PostApiAccountLoginData, PostApiAccountLoginResponse, PostApiAccountLinkLoginData, PostApiAccountLinkLoginResponse, GetApiAccountLogoutResponse, PostApiAccountCheckPasswordData, PostApiAccountCheckPasswordResponse, GetApiAccountMyProfileResponse, PutApiAccountMyProfileData, PutApiAccountMyProfileResponse, PostApiAccountMyProfileChangePasswordData, PostApiAccountMyProfileChangePasswordResponse, GetApiAccountMyProfileTwoFactorEnabledResponse, PostApiAccountMyProfileSetTwoFactorEnabledData, PostApiAccountMyProfileSetTwoFactorEnabledResponse, GetApiAccountMyProfileCanEnableTwoFactorResponse, GetApiAccountMyProfileTimezonesResponse, PostApiAccountLinkUserLinkData, PostApiAccountLinkUserLinkResponse, PostApiAccountLinkUserUnlinkData, PostApiAccountLinkUserUnlinkResponse, PostApiAccountLinkUserIsLinkedData, PostApiAccountLinkUserIsLinkedResponse, PostApiAccountLinkUserGenerateLinkTokenResponse, PostApiAccountLinkUserVerifyLinkTokenData, PostApiAccountLinkUserVerifyLinkTokenResponse, PostApiAccountLinkUserGenerateLinkLoginTokenResponse, PostApiAccountLinkUserVerifyLinkLoginTokenData, PostApiAccountLinkUserVerifyLinkLoginTokenResponse, GetApiAccountLinkUserResponse, GetApiAccountUserDelegationDelegatedUsersResponse, GetApiAccountUserDelegationMyDelegatedUsersResponse, GetApiAccountUserDelegationActiveDelegationsResponse, GetApiAccountUserDelegationUserLookupData, GetApiAccountUserDelegationUserLookupResponse, PostApiAccountUserDelegationDelegateNewUserData, PostApiAccountUserDelegationDelegateNewUserResponse, PostApiAccountUserDelegationDeleteDelegationData, PostApiAccountUserDelegationDeleteDelegationResponse } from './types.gen';
6
-
7
- export class AbpApiDefinitionService {
8
- constructor(public readonly httpRequest: BaseHttpRequest) { }
9
-
10
- /**
11
- * @param data The data for the request.
12
- * @param data.includeTypes
13
- * @returns unknown Success
14
- * @throws ApiError
15
- */
16
- public getApiAbpApiDefinition(data: GetApiAbpApiDefinitionData = {}): CancelablePromise<GetApiAbpApiDefinitionResponse> {
17
- return this.httpRequest.request({
18
- method: 'GET',
19
- url: '/api/abp/api-definition',
20
- query: {
21
- IncludeTypes: data.includeTypes
22
- },
23
- errors: {
24
- 400: 'Bad Request',
25
- 401: 'Unauthorized',
26
- 403: 'Forbidden',
27
- 404: 'Not Found',
28
- 500: 'Server Error',
29
- 501: 'Server Error'
30
- }
31
- });
32
- }
33
-
34
- }
35
-
36
- export class AbpApplicationConfigurationService {
37
- constructor(public readonly httpRequest: BaseHttpRequest) { }
38
-
39
- /**
40
- * @param data The data for the request.
41
- * @param data.includeLocalizationResources
42
- * @returns unknown Success
43
- * @throws ApiError
44
- */
45
- public getApiAbpApplicationConfiguration(data: GetApiAbpApplicationConfigurationData = {}): CancelablePromise<GetApiAbpApplicationConfigurationResponse> {
46
- return this.httpRequest.request({
47
- method: 'GET',
48
- url: '/api/abp/application-configuration',
49
- query: {
50
- IncludeLocalizationResources: data.includeLocalizationResources
51
- },
52
- errors: {
53
- 400: 'Bad Request',
54
- 401: 'Unauthorized',
55
- 403: 'Forbidden',
56
- 404: 'Not Found',
57
- 500: 'Server Error',
58
- 501: 'Server Error'
59
- }
60
- });
61
- }
62
-
63
- }
64
-
65
- export class AbpApplicationLocalizationService {
66
- constructor(public readonly httpRequest: BaseHttpRequest) { }
67
-
68
- /**
69
- * @param data The data for the request.
70
- * @param data.cultureName
71
- * @param data.onlyDynamics
72
- * @returns unknown Success
73
- * @throws ApiError
74
- */
75
- public getApiAbpApplicationLocalization(data: GetApiAbpApplicationLocalizationData): CancelablePromise<GetApiAbpApplicationLocalizationResponse> {
76
- return this.httpRequest.request({
77
- method: 'GET',
78
- url: '/api/abp/application-localization',
79
- query: {
80
- CultureName: data.cultureName,
81
- OnlyDynamics: data.onlyDynamics
82
- },
83
- errors: {
84
- 400: 'Bad Request',
85
- 401: 'Unauthorized',
86
- 403: 'Forbidden',
87
- 404: 'Not Found',
88
- 500: 'Server Error',
89
- 501: 'Server Error'
90
- }
91
- });
92
- }
93
-
94
- }
95
-
96
- export class AbpTenantService {
97
- constructor(public readonly httpRequest: BaseHttpRequest) { }
98
-
99
- /**
100
- * @param data The data for the request.
101
- * @param data.name
102
- * @returns unknown Success
103
- * @throws ApiError
104
- */
105
- public getApiAbpMultiTenancyTenantsByNameByName(data: GetApiAbpMultiTenancyTenantsByNameByNameData): CancelablePromise<GetApiAbpMultiTenancyTenantsByNameByNameResponse> {
106
- return this.httpRequest.request({
107
- method: 'GET',
108
- url: '/api/abp/multi-tenancy/tenants/by-name/{name}',
109
- path: {
110
- name: data.name
111
- },
112
- errors: {
113
- 400: 'Bad Request',
114
- 401: 'Unauthorized',
115
- 403: 'Forbidden',
116
- 404: 'Not Found',
117
- 500: 'Server Error',
118
- 501: 'Server Error'
119
- }
120
- });
121
- }
122
-
123
- /**
124
- * @param data The data for the request.
125
- * @param data.id
126
- * @returns unknown Success
127
- * @throws ApiError
128
- */
129
- public getApiAbpMultiTenancyTenantsByIdById(data: GetApiAbpMultiTenancyTenantsByIdByIdData): CancelablePromise<GetApiAbpMultiTenancyTenantsByIdByIdResponse> {
130
- return this.httpRequest.request({
131
- method: 'GET',
132
- url: '/api/abp/multi-tenancy/tenants/by-id/{id}',
133
- path: {
134
- id: data.id
135
- },
136
- errors: {
137
- 400: 'Bad Request',
138
- 401: 'Unauthorized',
139
- 403: 'Forbidden',
140
- 404: 'Not Found',
141
- 500: 'Server Error',
142
- 501: 'Server Error'
143
- }
144
- });
145
- }
146
-
147
- }
148
-
149
- export class AccountService {
150
- constructor(public readonly httpRequest: BaseHttpRequest) { }
151
-
152
- /**
153
- * @param data The data for the request.
154
- * @param data.requestBody
155
- * @returns unknown Success
156
- * @throws ApiError
157
- */
158
- public postApiAccountRegister(data: PostApiAccountRegisterData = {}): CancelablePromise<PostApiAccountRegisterResponse> {
159
- return this.httpRequest.request({
160
- method: 'POST',
161
- url: '/api/account/register',
162
- body: data.requestBody,
163
- mediaType: 'application/json',
164
- errors: {
165
- 400: 'Bad Request',
166
- 401: 'Unauthorized',
167
- 403: 'Forbidden',
168
- 404: 'Not Found',
169
- 500: 'Server Error',
170
- 501: 'Server Error'
171
- }
172
- });
173
- }
174
-
175
- /**
176
- * @param data The data for the request.
177
- * @param data.requestBody
178
- * @returns unknown Success
179
- * @throws ApiError
180
- */
181
- public postApiAccountSendPasswordResetCode(data: PostApiAccountSendPasswordResetCodeData = {}): CancelablePromise<PostApiAccountSendPasswordResetCodeResponse> {
182
- return this.httpRequest.request({
183
- method: 'POST',
184
- url: '/api/account/send-password-reset-code',
185
- body: data.requestBody,
186
- mediaType: 'application/json',
187
- errors: {
188
- 400: 'Bad Request',
189
- 401: 'Unauthorized',
190
- 403: 'Forbidden',
191
- 404: 'Not Found',
192
- 500: 'Server Error',
193
- 501: 'Server Error'
194
- }
195
- });
196
- }
197
-
198
- /**
199
- * @param data The data for the request.
200
- * @param data.requestBody
201
- * @returns boolean Success
202
- * @throws ApiError
203
- */
204
- public postApiAccountVerifyPasswordResetToken(data: PostApiAccountVerifyPasswordResetTokenData = {}): CancelablePromise<PostApiAccountVerifyPasswordResetTokenResponse> {
205
- return this.httpRequest.request({
206
- method: 'POST',
207
- url: '/api/account/verify-password-reset-token',
208
- body: data.requestBody,
209
- mediaType: 'application/json',
210
- errors: {
211
- 400: 'Bad Request',
212
- 401: 'Unauthorized',
213
- 403: 'Forbidden',
214
- 404: 'Not Found',
215
- 500: 'Server Error',
216
- 501: 'Server Error'
217
- }
218
- });
219
- }
220
-
221
- /**
222
- * @param data The data for the request.
223
- * @param data.requestBody
224
- * @returns unknown Success
225
- * @throws ApiError
226
- */
227
- public postApiAccountResetPassword(data: PostApiAccountResetPasswordData = {}): CancelablePromise<PostApiAccountResetPasswordResponse> {
228
- return this.httpRequest.request({
229
- method: 'POST',
230
- url: '/api/account/reset-password',
231
- body: data.requestBody,
232
- mediaType: 'application/json',
233
- errors: {
234
- 400: 'Bad Request',
235
- 401: 'Unauthorized',
236
- 403: 'Forbidden',
237
- 404: 'Not Found',
238
- 500: 'Server Error',
239
- 501: 'Server Error'
240
- }
241
- });
242
- }
243
-
244
- /**
245
- * @param data The data for the request.
246
- * @param data.id
247
- * @returns unknown Success
248
- * @throws ApiError
249
- */
250
- public getApiAccountConfirmationState(data: GetApiAccountConfirmationStateData = {}): CancelablePromise<GetApiAccountConfirmationStateResponse> {
251
- return this.httpRequest.request({
252
- method: 'GET',
253
- url: '/api/account/confirmation-state',
254
- query: {
255
- id: data.id
256
- },
257
- errors: {
258
- 400: 'Bad Request',
259
- 401: 'Unauthorized',
260
- 403: 'Forbidden',
261
- 404: 'Not Found',
262
- 500: 'Server Error',
263
- 501: 'Server Error'
264
- }
265
- });
266
- }
267
-
268
- /**
269
- * @param data The data for the request.
270
- * @param data.requestBody
271
- * @returns unknown Success
272
- * @throws ApiError
273
- */
274
- public postApiAccountSendPhoneNumberConfirmationToken(data: PostApiAccountSendPhoneNumberConfirmationTokenData = {}): CancelablePromise<PostApiAccountSendPhoneNumberConfirmationTokenResponse> {
275
- return this.httpRequest.request({
276
- method: 'POST',
277
- url: '/api/account/send-phone-number-confirmation-token',
278
- body: data.requestBody,
279
- mediaType: 'application/json',
280
- errors: {
281
- 400: 'Bad Request',
282
- 401: 'Unauthorized',
283
- 403: 'Forbidden',
284
- 404: 'Not Found',
285
- 500: 'Server Error',
286
- 501: 'Server Error'
287
- }
288
- });
289
- }
290
-
291
- /**
292
- * @param data The data for the request.
293
- * @param data.requestBody
294
- * @returns unknown Success
295
- * @throws ApiError
296
- */
297
- public postApiAccountSendEmailConfirmationToken(data: PostApiAccountSendEmailConfirmationTokenData = {}): CancelablePromise<PostApiAccountSendEmailConfirmationTokenResponse> {
298
- return this.httpRequest.request({
299
- method: 'POST',
300
- url: '/api/account/send-email-confirmation-token',
301
- body: data.requestBody,
302
- mediaType: 'application/json',
303
- errors: {
304
- 400: 'Bad Request',
305
- 401: 'Unauthorized',
306
- 403: 'Forbidden',
307
- 404: 'Not Found',
308
- 500: 'Server Error',
309
- 501: 'Server Error'
310
- }
311
- });
312
- }
313
-
314
- /**
315
- * @param data The data for the request.
316
- * @param data.requestBody
317
- * @returns boolean Success
318
- * @throws ApiError
319
- */
320
- public postApiAccountVerifyEmailConfirmationToken(data: PostApiAccountVerifyEmailConfirmationTokenData = {}): CancelablePromise<PostApiAccountVerifyEmailConfirmationTokenResponse> {
321
- return this.httpRequest.request({
322
- method: 'POST',
323
- url: '/api/account/verify-email-confirmation-token',
324
- body: data.requestBody,
325
- mediaType: 'application/json',
326
- errors: {
327
- 400: 'Bad Request',
328
- 401: 'Unauthorized',
329
- 403: 'Forbidden',
330
- 404: 'Not Found',
331
- 500: 'Server Error',
332
- 501: 'Server Error'
333
- }
334
- });
335
- }
336
-
337
- /**
338
- * @param data The data for the request.
339
- * @param data.requestBody
340
- * @returns unknown Success
341
- * @throws ApiError
342
- */
343
- public postApiAccountConfirmPhoneNumber(data: PostApiAccountConfirmPhoneNumberData = {}): CancelablePromise<PostApiAccountConfirmPhoneNumberResponse> {
344
- return this.httpRequest.request({
345
- method: 'POST',
346
- url: '/api/account/confirm-phone-number',
347
- body: data.requestBody,
348
- mediaType: 'application/json',
349
- errors: {
350
- 400: 'Bad Request',
351
- 401: 'Unauthorized',
352
- 403: 'Forbidden',
353
- 404: 'Not Found',
354
- 500: 'Server Error',
355
- 501: 'Server Error'
356
- }
357
- });
358
- }
359
-
360
- /**
361
- * @param data The data for the request.
362
- * @param data.requestBody
363
- * @returns unknown Success
364
- * @throws ApiError
365
- */
366
- public postApiAccountConfirmEmail(data: PostApiAccountConfirmEmailData = {}): CancelablePromise<PostApiAccountConfirmEmailResponse> {
367
- return this.httpRequest.request({
368
- method: 'POST',
369
- url: '/api/account/confirm-email',
370
- body: data.requestBody,
371
- mediaType: 'application/json',
372
- errors: {
373
- 400: 'Bad Request',
374
- 401: 'Unauthorized',
375
- 403: 'Forbidden',
376
- 404: 'Not Found',
377
- 500: 'Server Error',
378
- 501: 'Server Error'
379
- }
380
- });
381
- }
382
-
383
- /**
384
- * @param data The data for the request.
385
- * @param data.type
386
- * @param data.formData
387
- * @returns unknown Success
388
- * @throws ApiError
389
- */
390
- public postApiAccountProfilePicture(data: PostApiAccountProfilePictureData = {}): CancelablePromise<PostApiAccountProfilePictureResponse> {
391
- return this.httpRequest.request({
392
- method: 'POST',
393
- url: '/api/account/profile-picture',
394
- query: {
395
- Type: data.type
396
- },
397
- formData: data.formData,
398
- mediaType: 'multipart/form-data',
399
- errors: {
400
- 400: 'Bad Request',
401
- 401: 'Unauthorized',
402
- 403: 'Forbidden',
403
- 404: 'Not Found',
404
- 500: 'Server Error',
405
- 501: 'Server Error'
406
- }
407
- });
408
- }
409
-
410
- /**
411
- * @param data The data for the request.
412
- * @param data.id
413
- * @returns unknown Success
414
- * @throws ApiError
415
- */
416
- public getApiAccountProfilePictureById(data: GetApiAccountProfilePictureByIdData): CancelablePromise<GetApiAccountProfilePictureByIdResponse> {
417
- return this.httpRequest.request({
418
- method: 'GET',
419
- url: '/api/account/profile-picture/{id}',
420
- path: {
421
- id: data.id
422
- },
423
- errors: {
424
- 400: 'Bad Request',
425
- 401: 'Unauthorized',
426
- 403: 'Forbidden',
427
- 404: 'Not Found',
428
- 500: 'Server Error',
429
- 501: 'Server Error'
430
- }
431
- });
432
- }
433
-
434
- /**
435
- * @param data The data for the request.
436
- * @param data.userId
437
- * @param data.token
438
- * @returns string Success
439
- * @throws ApiError
440
- */
441
- public getApiAccountTwoFactorProviders(data: GetApiAccountTwoFactorProvidersData): CancelablePromise<GetApiAccountTwoFactorProvidersResponse> {
442
- return this.httpRequest.request({
443
- method: 'GET',
444
- url: '/api/account/two-factor-providers',
445
- query: {
446
- UserId: data.userId,
447
- Token: data.token
448
- },
449
- errors: {
450
- 400: 'Bad Request',
451
- 401: 'Unauthorized',
452
- 403: 'Forbidden',
453
- 404: 'Not Found',
454
- 500: 'Server Error',
455
- 501: 'Server Error'
456
- }
457
- });
458
- }
459
-
460
- /**
461
- * @param data The data for the request.
462
- * @param data.requestBody
463
- * @returns unknown Success
464
- * @throws ApiError
465
- */
466
- public postApiAccountSendTwoFactorCode(data: PostApiAccountSendTwoFactorCodeData = {}): CancelablePromise<PostApiAccountSendTwoFactorCodeResponse> {
467
- return this.httpRequest.request({
468
- method: 'POST',
469
- url: '/api/account/send-two-factor-code',
470
- body: data.requestBody,
471
- mediaType: 'application/json',
472
- errors: {
473
- 400: 'Bad Request',
474
- 401: 'Unauthorized',
475
- 403: 'Forbidden',
476
- 404: 'Not Found',
477
- 500: 'Server Error',
478
- 501: 'Server Error'
479
- }
480
- });
481
- }
482
-
483
- /**
484
- * @param data The data for the request.
485
- * @param data.startTime
486
- * @param data.endTime
487
- * @param data.applicationName
488
- * @param data.identity
489
- * @param data.action
490
- * @param data.userName
491
- * @param data.clientId
492
- * @param data.correlationId
493
- * @param data.sorting
494
- * @param data.skipCount
495
- * @param data.maxResultCount
496
- * @param data.extraProperties
497
- * @returns unknown Success
498
- * @throws ApiError
499
- */
500
- public getApiAccountSecurityLogs(data: GetApiAccountSecurityLogsData = {}): CancelablePromise<GetApiAccountSecurityLogsResponse> {
501
- return this.httpRequest.request({
502
- method: 'GET',
503
- url: '/api/account/security-logs',
504
- query: {
505
- StartTime: data.startTime,
506
- EndTime: data.endTime,
507
- ApplicationName: data.applicationName,
508
- Identity: data.identity,
509
- Action: data.action,
510
- UserName: data.userName,
511
- ClientId: data.clientId,
512
- CorrelationId: data.correlationId,
513
- Sorting: data.sorting,
514
- SkipCount: data.skipCount,
515
- MaxResultCount: data.maxResultCount,
516
- ExtraProperties: data.extraProperties
517
- },
518
- errors: {
519
- 400: 'Bad Request',
520
- 401: 'Unauthorized',
521
- 403: 'Forbidden',
522
- 404: 'Not Found',
523
- 500: 'Server Error',
524
- 501: 'Server Error'
525
- }
526
- });
527
- }
528
-
529
- /**
530
- * @param data The data for the request.
531
- * @param data.requestBody
532
- * @returns unknown Success
533
- * @throws ApiError
534
- */
535
- public postApiAccountVerifyAuthenticatorCode(data: PostApiAccountVerifyAuthenticatorCodeData = {}): CancelablePromise<PostApiAccountVerifyAuthenticatorCodeResponse> {
536
- return this.httpRequest.request({
537
- method: 'POST',
538
- url: '/api/account/verify-authenticator-code',
539
- body: data.requestBody,
540
- mediaType: 'application/json',
541
- errors: {
542
- 400: 'Bad Request',
543
- 401: 'Unauthorized',
544
- 403: 'Forbidden',
545
- 404: 'Not Found',
546
- 500: 'Server Error',
547
- 501: 'Server Error'
548
- }
549
- });
550
- }
551
-
552
- /**
553
- * @returns unknown Success
554
- * @throws ApiError
555
- */
556
- public postApiAccountResetAuthenticator(): CancelablePromise<PostApiAccountResetAuthenticatorResponse> {
557
- return this.httpRequest.request({
558
- method: 'POST',
559
- url: '/api/account/reset-authenticator',
560
- errors: {
561
- 400: 'Bad Request',
562
- 401: 'Unauthorized',
563
- 403: 'Forbidden',
564
- 404: 'Not Found',
565
- 500: 'Server Error',
566
- 501: 'Server Error'
567
- }
568
- });
569
- }
570
-
571
- /**
572
- * @returns boolean Success
573
- * @throws ApiError
574
- */
575
- public getApiAccountHasAuthenticatorKey(): CancelablePromise<GetApiAccountHasAuthenticatorKeyResponse> {
576
- return this.httpRequest.request({
577
- method: 'GET',
578
- url: '/api/account/has-authenticator-key',
579
- errors: {
580
- 400: 'Bad Request',
581
- 401: 'Unauthorized',
582
- 403: 'Forbidden',
583
- 404: 'Not Found',
584
- 500: 'Server Error',
585
- 501: 'Server Error'
586
- }
587
- });
588
- }
589
-
590
- /**
591
- * @returns unknown Success
592
- * @throws ApiError
593
- */
594
- public getApiAccountAuthenticatorInfo(): CancelablePromise<GetApiAccountAuthenticatorInfoResponse> {
595
- return this.httpRequest.request({
596
- method: 'GET',
597
- url: '/api/account/authenticator-info',
598
- errors: {
599
- 400: 'Bad Request',
600
- 401: 'Unauthorized',
601
- 403: 'Forbidden',
602
- 404: 'Not Found',
603
- 500: 'Server Error',
604
- 501: 'Server Error'
605
- }
606
- });
607
- }
608
-
609
- /**
610
- * @param data The data for the request.
611
- * @param data.id
612
- * @returns binary Success
613
- * @throws ApiError
614
- */
615
- public getApiAccountProfilePictureFileById(data: GetApiAccountProfilePictureFileByIdData): CancelablePromise<GetApiAccountProfilePictureFileByIdResponse> {
616
- return this.httpRequest.request({
617
- method: 'GET',
618
- url: '/api/account/profile-picture-file/{id}',
619
- path: {
620
- id: data.id
621
- },
622
- errors: {
623
- 400: 'Bad Request',
624
- 401: 'Unauthorized',
625
- 403: 'Forbidden',
626
- 404: 'Not Found',
627
- 500: 'Server Error',
628
- 501: 'Server Error'
629
- }
630
- });
631
- }
632
-
633
- /**
634
- * @param data The data for the request.
635
- * @param data.captchaResponse
636
- * @returns unknown Success
637
- * @throws ApiError
638
- */
639
- public getApiAccountRecaptchaValidate(data: GetApiAccountRecaptchaValidateData = {}): CancelablePromise<GetApiAccountRecaptchaValidateResponse> {
640
- return this.httpRequest.request({
641
- method: 'GET',
642
- url: '/api/account/recaptcha-validate',
643
- query: {
644
- captchaResponse: data.captchaResponse
645
- },
646
- errors: {
647
- 400: 'Bad Request',
648
- 401: 'Unauthorized',
649
- 403: 'Forbidden',
650
- 404: 'Not Found',
651
- 500: 'Server Error',
652
- 501: 'Server Error'
653
- }
654
- });
655
- }
656
-
657
- }
658
-
659
- export class AccountExternalProviderService {
660
- constructor(public readonly httpRequest: BaseHttpRequest) { }
661
-
662
- /**
663
- * @returns unknown Success
664
- * @throws ApiError
665
- */
666
- public getApiAccountExternalProvider(): CancelablePromise<GetApiAccountExternalProviderResponse> {
667
- return this.httpRequest.request({
668
- method: 'GET',
669
- url: '/api/account/external-provider',
670
- errors: {
671
- 400: 'Bad Request',
672
- 401: 'Unauthorized',
673
- 403: 'Forbidden',
674
- 404: 'Not Found',
675
- 500: 'Server Error',
676
- 501: 'Server Error'
677
- }
678
- });
679
- }
680
-
681
- /**
682
- * @param data The data for the request.
683
- * @param data.tenantId
684
- * @param data.name
685
- * @returns unknown Success
686
- * @throws ApiError
687
- */
688
- public getApiAccountExternalProviderByName(data: GetApiAccountExternalProviderByNameData = {}): CancelablePromise<GetApiAccountExternalProviderByNameResponse> {
689
- return this.httpRequest.request({
690
- method: 'GET',
691
- url: '/api/account/external-provider/by-name',
692
- query: {
693
- TenantId: data.tenantId,
694
- Name: data.name
695
- },
696
- errors: {
697
- 400: 'Bad Request',
698
- 401: 'Unauthorized',
699
- 403: 'Forbidden',
700
- 404: 'Not Found',
701
- 500: 'Server Error',
702
- 501: 'Server Error'
703
- }
704
- });
705
- }
706
-
707
- }
708
-
709
- export class AccountSettingsService {
710
- constructor(public readonly httpRequest: BaseHttpRequest) { }
711
-
712
- /**
713
- * @returns unknown Success
714
- * @throws ApiError
715
- */
716
- public getApiAccountAdminSettings(): CancelablePromise<GetApiAccountAdminSettingsResponse> {
717
- return this.httpRequest.request({
718
- method: 'GET',
719
- url: '/api/account-admin/settings',
720
- errors: {
721
- 400: 'Bad Request',
722
- 401: 'Unauthorized',
723
- 403: 'Forbidden',
724
- 404: 'Not Found',
725
- 500: 'Server Error',
726
- 501: 'Server Error'
727
- }
728
- });
729
- }
730
-
731
- /**
732
- * @param data The data for the request.
733
- * @param data.requestBody
734
- * @returns unknown Success
735
- * @throws ApiError
736
- */
737
- public putApiAccountAdminSettings(data: PutApiAccountAdminSettingsData = {}): CancelablePromise<PutApiAccountAdminSettingsResponse> {
738
- return this.httpRequest.request({
739
- method: 'PUT',
740
- url: '/api/account-admin/settings',
741
- body: data.requestBody,
742
- mediaType: 'application/json',
743
- errors: {
744
- 400: 'Bad Request',
745
- 401: 'Unauthorized',
746
- 403: 'Forbidden',
747
- 404: 'Not Found',
748
- 500: 'Server Error',
749
- 501: 'Server Error'
750
- }
751
- });
752
- }
753
-
754
- /**
755
- * @returns unknown Success
756
- * @throws ApiError
757
- */
758
- public getApiAccountAdminSettingsTwoFactor(): CancelablePromise<GetApiAccountAdminSettingsTwoFactorResponse> {
759
- return this.httpRequest.request({
760
- method: 'GET',
761
- url: '/api/account-admin/settings/two-factor',
762
- errors: {
763
- 400: 'Bad Request',
764
- 401: 'Unauthorized',
765
- 403: 'Forbidden',
766
- 404: 'Not Found',
767
- 500: 'Server Error',
768
- 501: 'Server Error'
769
- }
770
- });
771
- }
772
-
773
- /**
774
- * @param data The data for the request.
775
- * @param data.requestBody
776
- * @returns unknown Success
777
- * @throws ApiError
778
- */
779
- public putApiAccountAdminSettingsTwoFactor(data: PutApiAccountAdminSettingsTwoFactorData = {}): CancelablePromise<PutApiAccountAdminSettingsTwoFactorResponse> {
780
- return this.httpRequest.request({
781
- method: 'PUT',
782
- url: '/api/account-admin/settings/two-factor',
783
- body: data.requestBody,
784
- mediaType: 'application/json',
785
- errors: {
786
- 400: 'Bad Request',
787
- 401: 'Unauthorized',
788
- 403: 'Forbidden',
789
- 404: 'Not Found',
790
- 500: 'Server Error',
791
- 501: 'Server Error'
792
- }
793
- });
794
- }
795
-
796
- /**
797
- * @returns unknown Success
798
- * @throws ApiError
799
- */
800
- public getApiAccountAdminSettingsRecaptcha(): CancelablePromise<GetApiAccountAdminSettingsRecaptchaResponse> {
801
- return this.httpRequest.request({
802
- method: 'GET',
803
- url: '/api/account-admin/settings/recaptcha',
804
- errors: {
805
- 400: 'Bad Request',
806
- 401: 'Unauthorized',
807
- 403: 'Forbidden',
808
- 404: 'Not Found',
809
- 500: 'Server Error',
810
- 501: 'Server Error'
811
- }
812
- });
813
- }
814
-
815
- /**
816
- * @param data The data for the request.
817
- * @param data.requestBody
818
- * @returns unknown Success
819
- * @throws ApiError
820
- */
821
- public putApiAccountAdminSettingsRecaptcha(data: PutApiAccountAdminSettingsRecaptchaData = {}): CancelablePromise<PutApiAccountAdminSettingsRecaptchaResponse> {
822
- return this.httpRequest.request({
823
- method: 'PUT',
824
- url: '/api/account-admin/settings/recaptcha',
825
- body: data.requestBody,
826
- mediaType: 'application/json',
827
- errors: {
828
- 400: 'Bad Request',
829
- 401: 'Unauthorized',
830
- 403: 'Forbidden',
831
- 404: 'Not Found',
832
- 500: 'Server Error',
833
- 501: 'Server Error'
834
- }
835
- });
836
- }
837
-
838
- /**
839
- * @returns unknown Success
840
- * @throws ApiError
841
- */
842
- public getApiAccountAdminSettingsExternalProvider(): CancelablePromise<GetApiAccountAdminSettingsExternalProviderResponse> {
843
- return this.httpRequest.request({
844
- method: 'GET',
845
- url: '/api/account-admin/settings/external-provider',
846
- errors: {
847
- 400: 'Bad Request',
848
- 401: 'Unauthorized',
849
- 403: 'Forbidden',
850
- 404: 'Not Found',
851
- 500: 'Server Error',
852
- 501: 'Server Error'
853
- }
854
- });
855
- }
856
-
857
- /**
858
- * @param data The data for the request.
859
- * @param data.requestBody
860
- * @returns unknown Success
861
- * @throws ApiError
862
- */
863
- public putApiAccountAdminSettingsExternalProvider(data: PutApiAccountAdminSettingsExternalProviderData = {}): CancelablePromise<PutApiAccountAdminSettingsExternalProviderResponse> {
864
- return this.httpRequest.request({
865
- method: 'PUT',
866
- url: '/api/account-admin/settings/external-provider',
867
- body: data.requestBody,
868
- mediaType: 'application/json',
869
- errors: {
870
- 400: 'Bad Request',
871
- 401: 'Unauthorized',
872
- 403: 'Forbidden',
873
- 404: 'Not Found',
874
- 500: 'Server Error',
875
- 501: 'Server Error'
876
- }
877
- });
878
- }
879
-
880
- }
881
-
882
- export class DynamicClaimsService {
883
- constructor(public readonly httpRequest: BaseHttpRequest) { }
884
-
885
- /**
886
- * @returns unknown Success
887
- * @throws ApiError
888
- */
889
- public postApiAccountDynamicClaimsRefresh(): CancelablePromise<PostApiAccountDynamicClaimsRefreshResponse> {
890
- return this.httpRequest.request({
891
- method: 'POST',
892
- url: '/api/account/dynamic-claims/refresh',
893
- errors: {
894
- 400: 'Bad Request',
895
- 401: 'Unauthorized',
896
- 403: 'Forbidden',
897
- 404: 'Not Found',
898
- 500: 'Server Error',
899
- 501: 'Server Error'
900
- }
901
- });
902
- }
903
-
904
- }
905
-
906
- export class LoginService {
907
- constructor(public readonly httpRequest: BaseHttpRequest) { }
908
-
909
- /**
910
- * @param data The data for the request.
911
- * @param data.requestBody
912
- * @returns unknown Success
913
- * @throws ApiError
914
- */
915
- public postApiAccountLogin(data: PostApiAccountLoginData = {}): CancelablePromise<PostApiAccountLoginResponse> {
916
- return this.httpRequest.request({
917
- method: 'POST',
918
- url: '/api/account/login',
919
- body: data.requestBody,
920
- mediaType: 'application/json',
921
- errors: {
922
- 400: 'Bad Request',
923
- 401: 'Unauthorized',
924
- 403: 'Forbidden',
925
- 404: 'Not Found',
926
- 500: 'Server Error',
927
- 501: 'Server Error'
928
- }
929
- });
930
- }
931
-
932
- /**
933
- * @param data The data for the request.
934
- * @param data.requestBody
935
- * @returns unknown Success
936
- * @throws ApiError
937
- */
938
- public postApiAccountLinkLogin(data: PostApiAccountLinkLoginData = {}): CancelablePromise<PostApiAccountLinkLoginResponse> {
939
- return this.httpRequest.request({
940
- method: 'POST',
941
- url: '/api/account/linkLogin',
942
- body: data.requestBody,
943
- mediaType: 'application/json',
944
- errors: {
945
- 400: 'Bad Request',
946
- 401: 'Unauthorized',
947
- 403: 'Forbidden',
948
- 404: 'Not Found',
949
- 500: 'Server Error',
950
- 501: 'Server Error'
951
- }
952
- });
953
- }
954
-
955
- /**
956
- * @returns unknown Success
957
- * @throws ApiError
958
- */
959
- public getApiAccountLogout(): CancelablePromise<GetApiAccountLogoutResponse> {
960
- return this.httpRequest.request({
961
- method: 'GET',
962
- url: '/api/account/logout',
963
- errors: {
964
- 400: 'Bad Request',
965
- 401: 'Unauthorized',
966
- 403: 'Forbidden',
967
- 404: 'Not Found',
968
- 500: 'Server Error',
969
- 501: 'Server Error'
970
- }
971
- });
972
- }
973
-
974
- /**
975
- * @param data The data for the request.
976
- * @param data.requestBody
977
- * @returns unknown Success
978
- * @throws ApiError
979
- */
980
- public postApiAccountCheckPassword(data: PostApiAccountCheckPasswordData = {}): CancelablePromise<PostApiAccountCheckPasswordResponse> {
981
- return this.httpRequest.request({
982
- method: 'POST',
983
- url: '/api/account/checkPassword',
984
- body: data.requestBody,
985
- mediaType: 'application/json',
986
- errors: {
987
- 400: 'Bad Request',
988
- 401: 'Unauthorized',
989
- 403: 'Forbidden',
990
- 404: 'Not Found',
991
- 500: 'Server Error',
992
- 501: 'Server Error'
993
- }
994
- });
995
- }
996
-
997
- }
998
-
999
- export class ProfileService {
1000
- constructor(public readonly httpRequest: BaseHttpRequest) { }
1001
-
1002
- /**
1003
- * @returns unknown Success
1004
- * @throws ApiError
1005
- */
1006
- public getApiAccountMyProfile(): CancelablePromise<GetApiAccountMyProfileResponse> {
1007
- return this.httpRequest.request({
1008
- method: 'GET',
1009
- url: '/api/account/my-profile',
1010
- errors: {
1011
- 400: 'Bad Request',
1012
- 401: 'Unauthorized',
1013
- 403: 'Forbidden',
1014
- 404: 'Not Found',
1015
- 500: 'Server Error',
1016
- 501: 'Server Error'
1017
- }
1018
- });
1019
- }
1020
-
1021
- /**
1022
- * @param data The data for the request.
1023
- * @param data.requestBody
1024
- * @returns unknown Success
1025
- * @throws ApiError
1026
- */
1027
- public putApiAccountMyProfile(data: PutApiAccountMyProfileData = {}): CancelablePromise<PutApiAccountMyProfileResponse> {
1028
- return this.httpRequest.request({
1029
- method: 'PUT',
1030
- url: '/api/account/my-profile',
1031
- body: data.requestBody,
1032
- mediaType: 'application/json',
1033
- errors: {
1034
- 400: 'Bad Request',
1035
- 401: 'Unauthorized',
1036
- 403: 'Forbidden',
1037
- 404: 'Not Found',
1038
- 500: 'Server Error',
1039
- 501: 'Server Error'
1040
- }
1041
- });
1042
- }
1043
-
1044
- /**
1045
- * @param data The data for the request.
1046
- * @param data.requestBody
1047
- * @returns unknown Success
1048
- * @throws ApiError
1049
- */
1050
- public postApiAccountMyProfileChangePassword(data: PostApiAccountMyProfileChangePasswordData = {}): CancelablePromise<PostApiAccountMyProfileChangePasswordResponse> {
1051
- return this.httpRequest.request({
1052
- method: 'POST',
1053
- url: '/api/account/my-profile/change-password',
1054
- body: data.requestBody,
1055
- mediaType: 'application/json',
1056
- errors: {
1057
- 400: 'Bad Request',
1058
- 401: 'Unauthorized',
1059
- 403: 'Forbidden',
1060
- 404: 'Not Found',
1061
- 500: 'Server Error',
1062
- 501: 'Server Error'
1063
- }
1064
- });
1065
- }
1066
-
1067
- /**
1068
- * @returns boolean Success
1069
- * @throws ApiError
1070
- */
1071
- public getApiAccountMyProfileTwoFactorEnabled(): CancelablePromise<GetApiAccountMyProfileTwoFactorEnabledResponse> {
1072
- return this.httpRequest.request({
1073
- method: 'GET',
1074
- url: '/api/account/my-profile/two-factor-enabled',
1075
- errors: {
1076
- 400: 'Bad Request',
1077
- 401: 'Unauthorized',
1078
- 403: 'Forbidden',
1079
- 404: 'Not Found',
1080
- 500: 'Server Error',
1081
- 501: 'Server Error'
1082
- }
1083
- });
1084
- }
1085
-
1086
- /**
1087
- * @param data The data for the request.
1088
- * @param data.enabled
1089
- * @returns unknown Success
1090
- * @throws ApiError
1091
- */
1092
- public postApiAccountMyProfileSetTwoFactorEnabled(data: PostApiAccountMyProfileSetTwoFactorEnabledData = {}): CancelablePromise<PostApiAccountMyProfileSetTwoFactorEnabledResponse> {
1093
- return this.httpRequest.request({
1094
- method: 'POST',
1095
- url: '/api/account/my-profile/set-two-factor-enabled',
1096
- query: {
1097
- enabled: data.enabled
1098
- },
1099
- errors: {
1100
- 400: 'Bad Request',
1101
- 401: 'Unauthorized',
1102
- 403: 'Forbidden',
1103
- 404: 'Not Found',
1104
- 500: 'Server Error',
1105
- 501: 'Server Error'
1106
- }
1107
- });
1108
- }
1109
-
1110
- /**
1111
- * @returns boolean Success
1112
- * @throws ApiError
1113
- */
1114
- public getApiAccountMyProfileCanEnableTwoFactor(): CancelablePromise<GetApiAccountMyProfileCanEnableTwoFactorResponse> {
1115
- return this.httpRequest.request({
1116
- method: 'GET',
1117
- url: '/api/account/my-profile/can-enable-two-factor',
1118
- errors: {
1119
- 400: 'Bad Request',
1120
- 401: 'Unauthorized',
1121
- 403: 'Forbidden',
1122
- 404: 'Not Found',
1123
- 500: 'Server Error',
1124
- 501: 'Server Error'
1125
- }
1126
- });
1127
- }
1128
-
1129
- /**
1130
- * @returns unknown Success
1131
- * @throws ApiError
1132
- */
1133
- public getApiAccountMyProfileTimezones(): CancelablePromise<GetApiAccountMyProfileTimezonesResponse> {
1134
- return this.httpRequest.request({
1135
- method: 'GET',
1136
- url: '/api/account/my-profile/timezones',
1137
- errors: {
1138
- 400: 'Bad Request',
1139
- 401: 'Unauthorized',
1140
- 403: 'Forbidden',
1141
- 404: 'Not Found',
1142
- 500: 'Server Error',
1143
- 501: 'Server Error'
1144
- }
1145
- });
1146
- }
1147
-
1148
- }
1149
-
1150
- export class UserService {
1151
- constructor(public readonly httpRequest: BaseHttpRequest) { }
1152
-
1153
- /**
1154
- * @param data The data for the request.
1155
- * @param data.requestBody
1156
- * @returns unknown Success
1157
- * @throws ApiError
1158
- */
1159
- public postApiAccountLinkUserLink(data: PostApiAccountLinkUserLinkData = {}): CancelablePromise<PostApiAccountLinkUserLinkResponse> {
1160
- return this.httpRequest.request({
1161
- method: 'POST',
1162
- url: '/api/account/link-user/link',
1163
- body: data.requestBody,
1164
- mediaType: 'application/json',
1165
- errors: {
1166
- 400: 'Bad Request',
1167
- 401: 'Unauthorized',
1168
- 403: 'Forbidden',
1169
- 404: 'Not Found',
1170
- 500: 'Server Error',
1171
- 501: 'Server Error'
1172
- }
1173
- });
1174
- }
1175
-
1176
- /**
1177
- * @param data The data for the request.
1178
- * @param data.requestBody
1179
- * @returns unknown Success
1180
- * @throws ApiError
1181
- */
1182
- public postApiAccountLinkUserUnlink(data: PostApiAccountLinkUserUnlinkData = {}): CancelablePromise<PostApiAccountLinkUserUnlinkResponse> {
1183
- return this.httpRequest.request({
1184
- method: 'POST',
1185
- url: '/api/account/link-user/unlink',
1186
- body: data.requestBody,
1187
- mediaType: 'application/json',
1188
- errors: {
1189
- 400: 'Bad Request',
1190
- 401: 'Unauthorized',
1191
- 403: 'Forbidden',
1192
- 404: 'Not Found',
1193
- 500: 'Server Error',
1194
- 501: 'Server Error'
1195
- }
1196
- });
1197
- }
1198
-
1199
- /**
1200
- * @param data The data for the request.
1201
- * @param data.requestBody
1202
- * @returns boolean Success
1203
- * @throws ApiError
1204
- */
1205
- public postApiAccountLinkUserIsLinked(data: PostApiAccountLinkUserIsLinkedData = {}): CancelablePromise<PostApiAccountLinkUserIsLinkedResponse> {
1206
- return this.httpRequest.request({
1207
- method: 'POST',
1208
- url: '/api/account/link-user/is-linked',
1209
- body: data.requestBody,
1210
- mediaType: 'application/json',
1211
- errors: {
1212
- 400: 'Bad Request',
1213
- 401: 'Unauthorized',
1214
- 403: 'Forbidden',
1215
- 404: 'Not Found',
1216
- 500: 'Server Error',
1217
- 501: 'Server Error'
1218
- }
1219
- });
1220
- }
1221
-
1222
- /**
1223
- * @returns string Success
1224
- * @throws ApiError
1225
- */
1226
- public postApiAccountLinkUserGenerateLinkToken(): CancelablePromise<PostApiAccountLinkUserGenerateLinkTokenResponse> {
1227
- return this.httpRequest.request({
1228
- method: 'POST',
1229
- url: '/api/account/link-user/generate-link-token',
1230
- errors: {
1231
- 400: 'Bad Request',
1232
- 401: 'Unauthorized',
1233
- 403: 'Forbidden',
1234
- 404: 'Not Found',
1235
- 500: 'Server Error',
1236
- 501: 'Server Error'
1237
- }
1238
- });
1239
- }
1240
-
1241
- /**
1242
- * @param data The data for the request.
1243
- * @param data.requestBody
1244
- * @returns boolean Success
1245
- * @throws ApiError
1246
- */
1247
- public postApiAccountLinkUserVerifyLinkToken(data: PostApiAccountLinkUserVerifyLinkTokenData = {}): CancelablePromise<PostApiAccountLinkUserVerifyLinkTokenResponse> {
1248
- return this.httpRequest.request({
1249
- method: 'POST',
1250
- url: '/api/account/link-user/verify-link-token',
1251
- body: data.requestBody,
1252
- mediaType: 'application/json',
1253
- errors: {
1254
- 400: 'Bad Request',
1255
- 401: 'Unauthorized',
1256
- 403: 'Forbidden',
1257
- 404: 'Not Found',
1258
- 500: 'Server Error',
1259
- 501: 'Server Error'
1260
- }
1261
- });
1262
- }
1263
-
1264
- /**
1265
- * @returns string Success
1266
- * @throws ApiError
1267
- */
1268
- public postApiAccountLinkUserGenerateLinkLoginToken(): CancelablePromise<PostApiAccountLinkUserGenerateLinkLoginTokenResponse> {
1269
- return this.httpRequest.request({
1270
- method: 'POST',
1271
- url: '/api/account/link-user/generate-link-login-token',
1272
- errors: {
1273
- 400: 'Bad Request',
1274
- 401: 'Unauthorized',
1275
- 403: 'Forbidden',
1276
- 404: 'Not Found',
1277
- 500: 'Server Error',
1278
- 501: 'Server Error'
1279
- }
1280
- });
1281
- }
1282
-
1283
- /**
1284
- * @param data The data for the request.
1285
- * @param data.requestBody
1286
- * @returns boolean Success
1287
- * @throws ApiError
1288
- */
1289
- public postApiAccountLinkUserVerifyLinkLoginToken(data: PostApiAccountLinkUserVerifyLinkLoginTokenData = {}): CancelablePromise<PostApiAccountLinkUserVerifyLinkLoginTokenResponse> {
1290
- return this.httpRequest.request({
1291
- method: 'POST',
1292
- url: '/api/account/link-user/verify-link-login-token',
1293
- body: data.requestBody,
1294
- mediaType: 'application/json',
1295
- errors: {
1296
- 400: 'Bad Request',
1297
- 401: 'Unauthorized',
1298
- 403: 'Forbidden',
1299
- 404: 'Not Found',
1300
- 500: 'Server Error',
1301
- 501: 'Server Error'
1302
- }
1303
- });
1304
- }
1305
-
1306
- /**
1307
- * @returns unknown Success
1308
- * @throws ApiError
1309
- */
1310
- public getApiAccountLinkUser(): CancelablePromise<GetApiAccountLinkUserResponse> {
1311
- return this.httpRequest.request({
1312
- method: 'GET',
1313
- url: '/api/account/link-user',
1314
- errors: {
1315
- 400: 'Bad Request',
1316
- 401: 'Unauthorized',
1317
- 403: 'Forbidden',
1318
- 404: 'Not Found',
1319
- 500: 'Server Error',
1320
- 501: 'Server Error'
1321
- }
1322
- });
1323
- }
1324
-
1325
- /**
1326
- * @returns unknown Success
1327
- * @throws ApiError
1328
- */
1329
- public getApiAccountUserDelegationDelegatedUsers(): CancelablePromise<GetApiAccountUserDelegationDelegatedUsersResponse> {
1330
- return this.httpRequest.request({
1331
- method: 'GET',
1332
- url: '/api/account/user-delegation/delegated-users',
1333
- errors: {
1334
- 400: 'Bad Request',
1335
- 401: 'Unauthorized',
1336
- 403: 'Forbidden',
1337
- 404: 'Not Found',
1338
- 500: 'Server Error',
1339
- 501: 'Server Error'
1340
- }
1341
- });
1342
- }
1343
-
1344
- /**
1345
- * @returns unknown Success
1346
- * @throws ApiError
1347
- */
1348
- public getApiAccountUserDelegationMyDelegatedUsers(): CancelablePromise<GetApiAccountUserDelegationMyDelegatedUsersResponse> {
1349
- return this.httpRequest.request({
1350
- method: 'GET',
1351
- url: '/api/account/user-delegation/my-delegated-users',
1352
- errors: {
1353
- 400: 'Bad Request',
1354
- 401: 'Unauthorized',
1355
- 403: 'Forbidden',
1356
- 404: 'Not Found',
1357
- 500: 'Server Error',
1358
- 501: 'Server Error'
1359
- }
1360
- });
1361
- }
1362
-
1363
- /**
1364
- * @returns unknown Success
1365
- * @throws ApiError
1366
- */
1367
- public getApiAccountUserDelegationActiveDelegations(): CancelablePromise<GetApiAccountUserDelegationActiveDelegationsResponse> {
1368
- return this.httpRequest.request({
1369
- method: 'GET',
1370
- url: '/api/account/user-delegation/active-delegations',
1371
- errors: {
1372
- 400: 'Bad Request',
1373
- 401: 'Unauthorized',
1374
- 403: 'Forbidden',
1375
- 404: 'Not Found',
1376
- 500: 'Server Error',
1377
- 501: 'Server Error'
1378
- }
1379
- });
1380
- }
1381
-
1382
- /**
1383
- * @param data The data for the request.
1384
- * @param data.userName
1385
- * @returns unknown Success
1386
- * @throws ApiError
1387
- */
1388
- public getApiAccountUserDelegationUserLookup(data: GetApiAccountUserDelegationUserLookupData = {}): CancelablePromise<GetApiAccountUserDelegationUserLookupResponse> {
1389
- return this.httpRequest.request({
1390
- method: 'GET',
1391
- url: '/api/account/user-delegation/user-lookup',
1392
- query: {
1393
- UserName: data.userName
1394
- },
1395
- errors: {
1396
- 400: 'Bad Request',
1397
- 401: 'Unauthorized',
1398
- 403: 'Forbidden',
1399
- 404: 'Not Found',
1400
- 500: 'Server Error',
1401
- 501: 'Server Error'
1402
- }
1403
- });
1404
- }
1405
-
1406
- /**
1407
- * @param data The data for the request.
1408
- * @param data.requestBody
1409
- * @returns unknown Success
1410
- * @throws ApiError
1411
- */
1412
- public postApiAccountUserDelegationDelegateNewUser(data: PostApiAccountUserDelegationDelegateNewUserData = {}): CancelablePromise<PostApiAccountUserDelegationDelegateNewUserResponse> {
1413
- return this.httpRequest.request({
1414
- method: 'POST',
1415
- url: '/api/account/user-delegation/delegate-new-user',
1416
- body: data.requestBody,
1417
- mediaType: 'application/json',
1418
- errors: {
1419
- 400: 'Bad Request',
1420
- 401: 'Unauthorized',
1421
- 403: 'Forbidden',
1422
- 404: 'Not Found',
1423
- 500: 'Server Error',
1424
- 501: 'Server Error'
1425
- }
1426
- });
1427
- }
1428
-
1429
- /**
1430
- * @param data The data for the request.
1431
- * @param data.id
1432
- * @returns unknown Success
1433
- * @throws ApiError
1434
- */
1435
- public postApiAccountUserDelegationDeleteDelegation(data: PostApiAccountUserDelegationDeleteDelegationData = {}): CancelablePromise<PostApiAccountUserDelegationDeleteDelegationResponse> {
1436
- return this.httpRequest.request({
1437
- method: 'POST',
1438
- url: '/api/account/user-delegation/delete-delegation',
1439
- query: {
1440
- id: data.id
1441
- },
1442
- errors: {
1443
- 400: 'Bad Request',
1444
- 401: 'Unauthorized',
1445
- 403: 'Forbidden',
1446
- 404: 'Not Found',
1447
- 500: 'Server Error',
1448
- 501: 'Server Error'
1449
- }
1450
- });
1451
- }
1452
-
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+
3
+ import type { CancelablePromise } from './core/CancelablePromise';
4
+ import type { BaseHttpRequest } from './core/BaseHttpRequest';
5
+ import type { GetApiAbpApiDefinitionData, GetApiAbpApiDefinitionResponse, GetApiAbpApplicationConfigurationData, GetApiAbpApplicationConfigurationResponse, GetApiAbpApplicationLocalizationData, GetApiAbpApplicationLocalizationResponse, GetApiAbpMultiTenancyTenantsByNameByNameData, GetApiAbpMultiTenancyTenantsByNameByNameResponse, GetApiAbpMultiTenancyTenantsByIdByIdData, GetApiAbpMultiTenancyTenantsByIdByIdResponse, PostApiAccountRegisterData, PostApiAccountRegisterResponse, PostApiAccountSendPasswordResetCodeData, PostApiAccountSendPasswordResetCodeResponse, PostApiAccountVerifyPasswordResetTokenData, PostApiAccountVerifyPasswordResetTokenResponse, PostApiAccountResetPasswordData, PostApiAccountResetPasswordResponse, GetApiAccountConfirmationStateData, GetApiAccountConfirmationStateResponse, PostApiAccountSendPhoneNumberConfirmationTokenData, PostApiAccountSendPhoneNumberConfirmationTokenResponse, PostApiAccountSendEmailConfirmationTokenData, PostApiAccountSendEmailConfirmationTokenResponse, PostApiAccountVerifyEmailConfirmationTokenData, PostApiAccountVerifyEmailConfirmationTokenResponse, PostApiAccountConfirmPhoneNumberData, PostApiAccountConfirmPhoneNumberResponse, PostApiAccountConfirmEmailData, PostApiAccountConfirmEmailResponse, PostApiAccountProfilePictureData, PostApiAccountProfilePictureResponse, GetApiAccountProfilePictureByIdData, GetApiAccountProfilePictureByIdResponse, GetApiAccountTwoFactorProvidersData, GetApiAccountTwoFactorProvidersResponse, PostApiAccountSendTwoFactorCodeData, PostApiAccountSendTwoFactorCodeResponse, GetApiAccountSecurityLogsData, GetApiAccountSecurityLogsResponse, PostApiAccountVerifyAuthenticatorCodeData, PostApiAccountVerifyAuthenticatorCodeResponse, PostApiAccountResetAuthenticatorResponse, GetApiAccountHasAuthenticatorKeyResponse, GetApiAccountAuthenticatorInfoResponse, GetApiAccountProfilePictureFileByIdData, GetApiAccountProfilePictureFileByIdResponse, GetApiAccountRecaptchaValidateData, GetApiAccountRecaptchaValidateResponse, GetApiAccountExternalProviderResponse, GetApiAccountExternalProviderByNameData, GetApiAccountExternalProviderByNameResponse, GetApiAccountAdminSettingsResponse, PutApiAccountAdminSettingsData, PutApiAccountAdminSettingsResponse, GetApiAccountAdminSettingsTwoFactorResponse, PutApiAccountAdminSettingsTwoFactorData, PutApiAccountAdminSettingsTwoFactorResponse, GetApiAccountAdminSettingsRecaptchaResponse, PutApiAccountAdminSettingsRecaptchaData, PutApiAccountAdminSettingsRecaptchaResponse, GetApiAccountAdminSettingsExternalProviderResponse, PutApiAccountAdminSettingsExternalProviderData, PutApiAccountAdminSettingsExternalProviderResponse, PostApiAccountDynamicClaimsRefreshResponse, PostApiAccountLoginData, PostApiAccountLoginResponse, PostApiAccountLinkLoginData, PostApiAccountLinkLoginResponse, GetApiAccountLogoutResponse, PostApiAccountCheckPasswordData, PostApiAccountCheckPasswordResponse, GetApiAccountMyProfileResponse, PutApiAccountMyProfileData, PutApiAccountMyProfileResponse, PostApiAccountMyProfileChangePasswordData, PostApiAccountMyProfileChangePasswordResponse, GetApiAccountMyProfileTwoFactorEnabledResponse, PostApiAccountMyProfileSetTwoFactorEnabledData, PostApiAccountMyProfileSetTwoFactorEnabledResponse, GetApiAccountMyProfileCanEnableTwoFactorResponse, GetApiAccountMyProfileTimezonesResponse, PostApiAccountLinkUserLinkData, PostApiAccountLinkUserLinkResponse, PostApiAccountLinkUserUnlinkData, PostApiAccountLinkUserUnlinkResponse, PostApiAccountLinkUserIsLinkedData, PostApiAccountLinkUserIsLinkedResponse, PostApiAccountLinkUserGenerateLinkTokenResponse, PostApiAccountLinkUserVerifyLinkTokenData, PostApiAccountLinkUserVerifyLinkTokenResponse, PostApiAccountLinkUserGenerateLinkLoginTokenResponse, PostApiAccountLinkUserVerifyLinkLoginTokenData, PostApiAccountLinkUserVerifyLinkLoginTokenResponse, GetApiAccountLinkUserResponse, GetApiAccountUserDelegationDelegatedUsersResponse, GetApiAccountUserDelegationMyDelegatedUsersResponse, GetApiAccountUserDelegationActiveDelegationsResponse, GetApiAccountUserDelegationUserLookupData, GetApiAccountUserDelegationUserLookupResponse, PostApiAccountUserDelegationDelegateNewUserData, PostApiAccountUserDelegationDelegateNewUserResponse, PostApiAccountUserDelegationDeleteDelegationData, PostApiAccountUserDelegationDeleteDelegationResponse } from './types.gen';
6
+
7
+ export class AbpApiDefinitionService {
8
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
9
+
10
+ /**
11
+ * @param data The data for the request.
12
+ * @param data.includeTypes
13
+ * @returns unknown Success
14
+ * @throws ApiError
15
+ */
16
+ public getApiAbpApiDefinition(data: GetApiAbpApiDefinitionData = {}): CancelablePromise<GetApiAbpApiDefinitionResponse> {
17
+ return this.httpRequest.request({
18
+ method: 'GET',
19
+ url: '/api/abp/api-definition',
20
+ query: {
21
+ IncludeTypes: data.includeTypes
22
+ },
23
+ errors: {
24
+ 400: 'Bad Request',
25
+ 401: 'Unauthorized',
26
+ 403: 'Forbidden',
27
+ 404: 'Not Found',
28
+ 500: 'Server Error',
29
+ 501: 'Server Error'
30
+ }
31
+ });
32
+ }
33
+
34
+ }
35
+
36
+ export class AbpApplicationConfigurationService {
37
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
38
+
39
+ /**
40
+ * @param data The data for the request.
41
+ * @param data.includeLocalizationResources
42
+ * @returns unknown Success
43
+ * @throws ApiError
44
+ */
45
+ public getApiAbpApplicationConfiguration(data: GetApiAbpApplicationConfigurationData = {}): CancelablePromise<GetApiAbpApplicationConfigurationResponse> {
46
+ return this.httpRequest.request({
47
+ method: 'GET',
48
+ url: '/api/abp/application-configuration',
49
+ query: {
50
+ IncludeLocalizationResources: data.includeLocalizationResources
51
+ },
52
+ errors: {
53
+ 400: 'Bad Request',
54
+ 401: 'Unauthorized',
55
+ 403: 'Forbidden',
56
+ 404: 'Not Found',
57
+ 500: 'Server Error',
58
+ 501: 'Server Error'
59
+ }
60
+ });
61
+ }
62
+
63
+ }
64
+
65
+ export class AbpApplicationLocalizationService {
66
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
67
+
68
+ /**
69
+ * @param data The data for the request.
70
+ * @param data.cultureName
71
+ * @param data.onlyDynamics
72
+ * @returns unknown Success
73
+ * @throws ApiError
74
+ */
75
+ public getApiAbpApplicationLocalization(data: GetApiAbpApplicationLocalizationData): CancelablePromise<GetApiAbpApplicationLocalizationResponse> {
76
+ return this.httpRequest.request({
77
+ method: 'GET',
78
+ url: '/api/abp/application-localization',
79
+ query: {
80
+ CultureName: data.cultureName,
81
+ OnlyDynamics: data.onlyDynamics
82
+ },
83
+ errors: {
84
+ 400: 'Bad Request',
85
+ 401: 'Unauthorized',
86
+ 403: 'Forbidden',
87
+ 404: 'Not Found',
88
+ 500: 'Server Error',
89
+ 501: 'Server Error'
90
+ }
91
+ });
92
+ }
93
+
94
+ }
95
+
96
+ export class AbpTenantService {
97
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
98
+
99
+ /**
100
+ * @param data The data for the request.
101
+ * @param data.name
102
+ * @returns unknown Success
103
+ * @throws ApiError
104
+ */
105
+ public getApiAbpMultiTenancyTenantsByNameByName(data: GetApiAbpMultiTenancyTenantsByNameByNameData): CancelablePromise<GetApiAbpMultiTenancyTenantsByNameByNameResponse> {
106
+ return this.httpRequest.request({
107
+ method: 'GET',
108
+ url: '/api/abp/multi-tenancy/tenants/by-name/{name}',
109
+ path: {
110
+ name: data.name
111
+ },
112
+ errors: {
113
+ 400: 'Bad Request',
114
+ 401: 'Unauthorized',
115
+ 403: 'Forbidden',
116
+ 404: 'Not Found',
117
+ 500: 'Server Error',
118
+ 501: 'Server Error'
119
+ }
120
+ });
121
+ }
122
+
123
+ /**
124
+ * @param data The data for the request.
125
+ * @param data.id
126
+ * @returns unknown Success
127
+ * @throws ApiError
128
+ */
129
+ public getApiAbpMultiTenancyTenantsByIdById(data: GetApiAbpMultiTenancyTenantsByIdByIdData): CancelablePromise<GetApiAbpMultiTenancyTenantsByIdByIdResponse> {
130
+ return this.httpRequest.request({
131
+ method: 'GET',
132
+ url: '/api/abp/multi-tenancy/tenants/by-id/{id}',
133
+ path: {
134
+ id: data.id
135
+ },
136
+ errors: {
137
+ 400: 'Bad Request',
138
+ 401: 'Unauthorized',
139
+ 403: 'Forbidden',
140
+ 404: 'Not Found',
141
+ 500: 'Server Error',
142
+ 501: 'Server Error'
143
+ }
144
+ });
145
+ }
146
+
147
+ }
148
+
149
+ export class AccountService {
150
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
151
+
152
+ /**
153
+ * @param data The data for the request.
154
+ * @param data.requestBody
155
+ * @returns unknown Success
156
+ * @throws ApiError
157
+ */
158
+ public postApiAccountRegister(data: PostApiAccountRegisterData = {}): CancelablePromise<PostApiAccountRegisterResponse> {
159
+ return this.httpRequest.request({
160
+ method: 'POST',
161
+ url: '/api/account/register',
162
+ body: data.requestBody,
163
+ mediaType: 'application/json',
164
+ errors: {
165
+ 400: 'Bad Request',
166
+ 401: 'Unauthorized',
167
+ 403: 'Forbidden',
168
+ 404: 'Not Found',
169
+ 500: 'Server Error',
170
+ 501: 'Server Error'
171
+ }
172
+ });
173
+ }
174
+
175
+ /**
176
+ * @param data The data for the request.
177
+ * @param data.requestBody
178
+ * @returns unknown Success
179
+ * @throws ApiError
180
+ */
181
+ public postApiAccountSendPasswordResetCode(data: PostApiAccountSendPasswordResetCodeData = {}): CancelablePromise<PostApiAccountSendPasswordResetCodeResponse> {
182
+ return this.httpRequest.request({
183
+ method: 'POST',
184
+ url: '/api/account/send-password-reset-code',
185
+ body: data.requestBody,
186
+ mediaType: 'application/json',
187
+ errors: {
188
+ 400: 'Bad Request',
189
+ 401: 'Unauthorized',
190
+ 403: 'Forbidden',
191
+ 404: 'Not Found',
192
+ 500: 'Server Error',
193
+ 501: 'Server Error'
194
+ }
195
+ });
196
+ }
197
+
198
+ /**
199
+ * @param data The data for the request.
200
+ * @param data.requestBody
201
+ * @returns boolean Success
202
+ * @throws ApiError
203
+ */
204
+ public postApiAccountVerifyPasswordResetToken(data: PostApiAccountVerifyPasswordResetTokenData = {}): CancelablePromise<PostApiAccountVerifyPasswordResetTokenResponse> {
205
+ return this.httpRequest.request({
206
+ method: 'POST',
207
+ url: '/api/account/verify-password-reset-token',
208
+ body: data.requestBody,
209
+ mediaType: 'application/json',
210
+ errors: {
211
+ 400: 'Bad Request',
212
+ 401: 'Unauthorized',
213
+ 403: 'Forbidden',
214
+ 404: 'Not Found',
215
+ 500: 'Server Error',
216
+ 501: 'Server Error'
217
+ }
218
+ });
219
+ }
220
+
221
+ /**
222
+ * @param data The data for the request.
223
+ * @param data.requestBody
224
+ * @returns unknown Success
225
+ * @throws ApiError
226
+ */
227
+ public postApiAccountResetPassword(data: PostApiAccountResetPasswordData = {}): CancelablePromise<PostApiAccountResetPasswordResponse> {
228
+ return this.httpRequest.request({
229
+ method: 'POST',
230
+ url: '/api/account/reset-password',
231
+ body: data.requestBody,
232
+ mediaType: 'application/json',
233
+ errors: {
234
+ 400: 'Bad Request',
235
+ 401: 'Unauthorized',
236
+ 403: 'Forbidden',
237
+ 404: 'Not Found',
238
+ 500: 'Server Error',
239
+ 501: 'Server Error'
240
+ }
241
+ });
242
+ }
243
+
244
+ /**
245
+ * @param data The data for the request.
246
+ * @param data.id
247
+ * @returns unknown Success
248
+ * @throws ApiError
249
+ */
250
+ public getApiAccountConfirmationState(data: GetApiAccountConfirmationStateData = {}): CancelablePromise<GetApiAccountConfirmationStateResponse> {
251
+ return this.httpRequest.request({
252
+ method: 'GET',
253
+ url: '/api/account/confirmation-state',
254
+ query: {
255
+ id: data.id
256
+ },
257
+ errors: {
258
+ 400: 'Bad Request',
259
+ 401: 'Unauthorized',
260
+ 403: 'Forbidden',
261
+ 404: 'Not Found',
262
+ 500: 'Server Error',
263
+ 501: 'Server Error'
264
+ }
265
+ });
266
+ }
267
+
268
+ /**
269
+ * @param data The data for the request.
270
+ * @param data.requestBody
271
+ * @returns unknown Success
272
+ * @throws ApiError
273
+ */
274
+ public postApiAccountSendPhoneNumberConfirmationToken(data: PostApiAccountSendPhoneNumberConfirmationTokenData = {}): CancelablePromise<PostApiAccountSendPhoneNumberConfirmationTokenResponse> {
275
+ return this.httpRequest.request({
276
+ method: 'POST',
277
+ url: '/api/account/send-phone-number-confirmation-token',
278
+ body: data.requestBody,
279
+ mediaType: 'application/json',
280
+ errors: {
281
+ 400: 'Bad Request',
282
+ 401: 'Unauthorized',
283
+ 403: 'Forbidden',
284
+ 404: 'Not Found',
285
+ 500: 'Server Error',
286
+ 501: 'Server Error'
287
+ }
288
+ });
289
+ }
290
+
291
+ /**
292
+ * @param data The data for the request.
293
+ * @param data.requestBody
294
+ * @returns unknown Success
295
+ * @throws ApiError
296
+ */
297
+ public postApiAccountSendEmailConfirmationToken(data: PostApiAccountSendEmailConfirmationTokenData = {}): CancelablePromise<PostApiAccountSendEmailConfirmationTokenResponse> {
298
+ return this.httpRequest.request({
299
+ method: 'POST',
300
+ url: '/api/account/send-email-confirmation-token',
301
+ body: data.requestBody,
302
+ mediaType: 'application/json',
303
+ errors: {
304
+ 400: 'Bad Request',
305
+ 401: 'Unauthorized',
306
+ 403: 'Forbidden',
307
+ 404: 'Not Found',
308
+ 500: 'Server Error',
309
+ 501: 'Server Error'
310
+ }
311
+ });
312
+ }
313
+
314
+ /**
315
+ * @param data The data for the request.
316
+ * @param data.requestBody
317
+ * @returns boolean Success
318
+ * @throws ApiError
319
+ */
320
+ public postApiAccountVerifyEmailConfirmationToken(data: PostApiAccountVerifyEmailConfirmationTokenData = {}): CancelablePromise<PostApiAccountVerifyEmailConfirmationTokenResponse> {
321
+ return this.httpRequest.request({
322
+ method: 'POST',
323
+ url: '/api/account/verify-email-confirmation-token',
324
+ body: data.requestBody,
325
+ mediaType: 'application/json',
326
+ errors: {
327
+ 400: 'Bad Request',
328
+ 401: 'Unauthorized',
329
+ 403: 'Forbidden',
330
+ 404: 'Not Found',
331
+ 500: 'Server Error',
332
+ 501: 'Server Error'
333
+ }
334
+ });
335
+ }
336
+
337
+ /**
338
+ * @param data The data for the request.
339
+ * @param data.requestBody
340
+ * @returns unknown Success
341
+ * @throws ApiError
342
+ */
343
+ public postApiAccountConfirmPhoneNumber(data: PostApiAccountConfirmPhoneNumberData = {}): CancelablePromise<PostApiAccountConfirmPhoneNumberResponse> {
344
+ return this.httpRequest.request({
345
+ method: 'POST',
346
+ url: '/api/account/confirm-phone-number',
347
+ body: data.requestBody,
348
+ mediaType: 'application/json',
349
+ errors: {
350
+ 400: 'Bad Request',
351
+ 401: 'Unauthorized',
352
+ 403: 'Forbidden',
353
+ 404: 'Not Found',
354
+ 500: 'Server Error',
355
+ 501: 'Server Error'
356
+ }
357
+ });
358
+ }
359
+
360
+ /**
361
+ * @param data The data for the request.
362
+ * @param data.requestBody
363
+ * @returns unknown Success
364
+ * @throws ApiError
365
+ */
366
+ public postApiAccountConfirmEmail(data: PostApiAccountConfirmEmailData = {}): CancelablePromise<PostApiAccountConfirmEmailResponse> {
367
+ return this.httpRequest.request({
368
+ method: 'POST',
369
+ url: '/api/account/confirm-email',
370
+ body: data.requestBody,
371
+ mediaType: 'application/json',
372
+ errors: {
373
+ 400: 'Bad Request',
374
+ 401: 'Unauthorized',
375
+ 403: 'Forbidden',
376
+ 404: 'Not Found',
377
+ 500: 'Server Error',
378
+ 501: 'Server Error'
379
+ }
380
+ });
381
+ }
382
+
383
+ /**
384
+ * @param data The data for the request.
385
+ * @param data.type
386
+ * @param data.formData
387
+ * @returns unknown Success
388
+ * @throws ApiError
389
+ */
390
+ public postApiAccountProfilePicture(data: PostApiAccountProfilePictureData = {}): CancelablePromise<PostApiAccountProfilePictureResponse> {
391
+ return this.httpRequest.request({
392
+ method: 'POST',
393
+ url: '/api/account/profile-picture',
394
+ query: {
395
+ Type: data.type
396
+ },
397
+ formData: data.formData,
398
+ mediaType: 'multipart/form-data',
399
+ errors: {
400
+ 400: 'Bad Request',
401
+ 401: 'Unauthorized',
402
+ 403: 'Forbidden',
403
+ 404: 'Not Found',
404
+ 500: 'Server Error',
405
+ 501: 'Server Error'
406
+ }
407
+ });
408
+ }
409
+
410
+ /**
411
+ * @param data The data for the request.
412
+ * @param data.id
413
+ * @returns unknown Success
414
+ * @throws ApiError
415
+ */
416
+ public getApiAccountProfilePictureById(data: GetApiAccountProfilePictureByIdData): CancelablePromise<GetApiAccountProfilePictureByIdResponse> {
417
+ return this.httpRequest.request({
418
+ method: 'GET',
419
+ url: '/api/account/profile-picture/{id}',
420
+ path: {
421
+ id: data.id
422
+ },
423
+ errors: {
424
+ 400: 'Bad Request',
425
+ 401: 'Unauthorized',
426
+ 403: 'Forbidden',
427
+ 404: 'Not Found',
428
+ 500: 'Server Error',
429
+ 501: 'Server Error'
430
+ }
431
+ });
432
+ }
433
+
434
+ /**
435
+ * @param data The data for the request.
436
+ * @param data.userId
437
+ * @param data.token
438
+ * @returns string Success
439
+ * @throws ApiError
440
+ */
441
+ public getApiAccountTwoFactorProviders(data: GetApiAccountTwoFactorProvidersData): CancelablePromise<GetApiAccountTwoFactorProvidersResponse> {
442
+ return this.httpRequest.request({
443
+ method: 'GET',
444
+ url: '/api/account/two-factor-providers',
445
+ query: {
446
+ UserId: data.userId,
447
+ Token: data.token
448
+ },
449
+ errors: {
450
+ 400: 'Bad Request',
451
+ 401: 'Unauthorized',
452
+ 403: 'Forbidden',
453
+ 404: 'Not Found',
454
+ 500: 'Server Error',
455
+ 501: 'Server Error'
456
+ }
457
+ });
458
+ }
459
+
460
+ /**
461
+ * @param data The data for the request.
462
+ * @param data.requestBody
463
+ * @returns unknown Success
464
+ * @throws ApiError
465
+ */
466
+ public postApiAccountSendTwoFactorCode(data: PostApiAccountSendTwoFactorCodeData = {}): CancelablePromise<PostApiAccountSendTwoFactorCodeResponse> {
467
+ return this.httpRequest.request({
468
+ method: 'POST',
469
+ url: '/api/account/send-two-factor-code',
470
+ body: data.requestBody,
471
+ mediaType: 'application/json',
472
+ errors: {
473
+ 400: 'Bad Request',
474
+ 401: 'Unauthorized',
475
+ 403: 'Forbidden',
476
+ 404: 'Not Found',
477
+ 500: 'Server Error',
478
+ 501: 'Server Error'
479
+ }
480
+ });
481
+ }
482
+
483
+ /**
484
+ * @param data The data for the request.
485
+ * @param data.startTime
486
+ * @param data.endTime
487
+ * @param data.applicationName
488
+ * @param data.identity
489
+ * @param data.action
490
+ * @param data.userName
491
+ * @param data.clientId
492
+ * @param data.correlationId
493
+ * @param data.sorting
494
+ * @param data.skipCount
495
+ * @param data.maxResultCount
496
+ * @param data.extraProperties
497
+ * @returns unknown Success
498
+ * @throws ApiError
499
+ */
500
+ public getApiAccountSecurityLogs(data: GetApiAccountSecurityLogsData = {}): CancelablePromise<GetApiAccountSecurityLogsResponse> {
501
+ return this.httpRequest.request({
502
+ method: 'GET',
503
+ url: '/api/account/security-logs',
504
+ query: {
505
+ StartTime: data.startTime,
506
+ EndTime: data.endTime,
507
+ ApplicationName: data.applicationName,
508
+ Identity: data.identity,
509
+ Action: data.action,
510
+ UserName: data.userName,
511
+ ClientId: data.clientId,
512
+ CorrelationId: data.correlationId,
513
+ Sorting: data.sorting,
514
+ SkipCount: data.skipCount,
515
+ MaxResultCount: data.maxResultCount,
516
+ ExtraProperties: data.extraProperties
517
+ },
518
+ errors: {
519
+ 400: 'Bad Request',
520
+ 401: 'Unauthorized',
521
+ 403: 'Forbidden',
522
+ 404: 'Not Found',
523
+ 500: 'Server Error',
524
+ 501: 'Server Error'
525
+ }
526
+ });
527
+ }
528
+
529
+ /**
530
+ * @param data The data for the request.
531
+ * @param data.requestBody
532
+ * @returns unknown Success
533
+ * @throws ApiError
534
+ */
535
+ public postApiAccountVerifyAuthenticatorCode(data: PostApiAccountVerifyAuthenticatorCodeData = {}): CancelablePromise<PostApiAccountVerifyAuthenticatorCodeResponse> {
536
+ return this.httpRequest.request({
537
+ method: 'POST',
538
+ url: '/api/account/verify-authenticator-code',
539
+ body: data.requestBody,
540
+ mediaType: 'application/json',
541
+ errors: {
542
+ 400: 'Bad Request',
543
+ 401: 'Unauthorized',
544
+ 403: 'Forbidden',
545
+ 404: 'Not Found',
546
+ 500: 'Server Error',
547
+ 501: 'Server Error'
548
+ }
549
+ });
550
+ }
551
+
552
+ /**
553
+ * @returns unknown Success
554
+ * @throws ApiError
555
+ */
556
+ public postApiAccountResetAuthenticator(): CancelablePromise<PostApiAccountResetAuthenticatorResponse> {
557
+ return this.httpRequest.request({
558
+ method: 'POST',
559
+ url: '/api/account/reset-authenticator',
560
+ errors: {
561
+ 400: 'Bad Request',
562
+ 401: 'Unauthorized',
563
+ 403: 'Forbidden',
564
+ 404: 'Not Found',
565
+ 500: 'Server Error',
566
+ 501: 'Server Error'
567
+ }
568
+ });
569
+ }
570
+
571
+ /**
572
+ * @returns boolean Success
573
+ * @throws ApiError
574
+ */
575
+ public getApiAccountHasAuthenticatorKey(): CancelablePromise<GetApiAccountHasAuthenticatorKeyResponse> {
576
+ return this.httpRequest.request({
577
+ method: 'GET',
578
+ url: '/api/account/has-authenticator-key',
579
+ errors: {
580
+ 400: 'Bad Request',
581
+ 401: 'Unauthorized',
582
+ 403: 'Forbidden',
583
+ 404: 'Not Found',
584
+ 500: 'Server Error',
585
+ 501: 'Server Error'
586
+ }
587
+ });
588
+ }
589
+
590
+ /**
591
+ * @returns unknown Success
592
+ * @throws ApiError
593
+ */
594
+ public getApiAccountAuthenticatorInfo(): CancelablePromise<GetApiAccountAuthenticatorInfoResponse> {
595
+ return this.httpRequest.request({
596
+ method: 'GET',
597
+ url: '/api/account/authenticator-info',
598
+ errors: {
599
+ 400: 'Bad Request',
600
+ 401: 'Unauthorized',
601
+ 403: 'Forbidden',
602
+ 404: 'Not Found',
603
+ 500: 'Server Error',
604
+ 501: 'Server Error'
605
+ }
606
+ });
607
+ }
608
+
609
+ /**
610
+ * @param data The data for the request.
611
+ * @param data.id
612
+ * @returns binary Success
613
+ * @throws ApiError
614
+ */
615
+ public getApiAccountProfilePictureFileById(data: GetApiAccountProfilePictureFileByIdData): CancelablePromise<GetApiAccountProfilePictureFileByIdResponse> {
616
+ return this.httpRequest.request({
617
+ method: 'GET',
618
+ url: '/api/account/profile-picture-file/{id}',
619
+ path: {
620
+ id: data.id
621
+ },
622
+ errors: {
623
+ 400: 'Bad Request',
624
+ 401: 'Unauthorized',
625
+ 403: 'Forbidden',
626
+ 404: 'Not Found',
627
+ 500: 'Server Error',
628
+ 501: 'Server Error'
629
+ }
630
+ });
631
+ }
632
+
633
+ /**
634
+ * @param data The data for the request.
635
+ * @param data.captchaResponse
636
+ * @returns unknown Success
637
+ * @throws ApiError
638
+ */
639
+ public getApiAccountRecaptchaValidate(data: GetApiAccountRecaptchaValidateData = {}): CancelablePromise<GetApiAccountRecaptchaValidateResponse> {
640
+ return this.httpRequest.request({
641
+ method: 'GET',
642
+ url: '/api/account/recaptcha-validate',
643
+ query: {
644
+ captchaResponse: data.captchaResponse
645
+ },
646
+ errors: {
647
+ 400: 'Bad Request',
648
+ 401: 'Unauthorized',
649
+ 403: 'Forbidden',
650
+ 404: 'Not Found',
651
+ 500: 'Server Error',
652
+ 501: 'Server Error'
653
+ }
654
+ });
655
+ }
656
+
657
+ }
658
+
659
+ export class AccountExternalProviderService {
660
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
661
+
662
+ /**
663
+ * @returns unknown Success
664
+ * @throws ApiError
665
+ */
666
+ public getApiAccountExternalProvider(): CancelablePromise<GetApiAccountExternalProviderResponse> {
667
+ return this.httpRequest.request({
668
+ method: 'GET',
669
+ url: '/api/account/external-provider',
670
+ errors: {
671
+ 400: 'Bad Request',
672
+ 401: 'Unauthorized',
673
+ 403: 'Forbidden',
674
+ 404: 'Not Found',
675
+ 500: 'Server Error',
676
+ 501: 'Server Error'
677
+ }
678
+ });
679
+ }
680
+
681
+ /**
682
+ * @param data The data for the request.
683
+ * @param data.tenantId
684
+ * @param data.name
685
+ * @returns unknown Success
686
+ * @throws ApiError
687
+ */
688
+ public getApiAccountExternalProviderByName(data: GetApiAccountExternalProviderByNameData = {}): CancelablePromise<GetApiAccountExternalProviderByNameResponse> {
689
+ return this.httpRequest.request({
690
+ method: 'GET',
691
+ url: '/api/account/external-provider/by-name',
692
+ query: {
693
+ TenantId: data.tenantId,
694
+ Name: data.name
695
+ },
696
+ errors: {
697
+ 400: 'Bad Request',
698
+ 401: 'Unauthorized',
699
+ 403: 'Forbidden',
700
+ 404: 'Not Found',
701
+ 500: 'Server Error',
702
+ 501: 'Server Error'
703
+ }
704
+ });
705
+ }
706
+
707
+ }
708
+
709
+ export class AccountSettingsService {
710
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
711
+
712
+ /**
713
+ * @returns unknown Success
714
+ * @throws ApiError
715
+ */
716
+ public getApiAccountAdminSettings(): CancelablePromise<GetApiAccountAdminSettingsResponse> {
717
+ return this.httpRequest.request({
718
+ method: 'GET',
719
+ url: '/api/account-admin/settings',
720
+ errors: {
721
+ 400: 'Bad Request',
722
+ 401: 'Unauthorized',
723
+ 403: 'Forbidden',
724
+ 404: 'Not Found',
725
+ 500: 'Server Error',
726
+ 501: 'Server Error'
727
+ }
728
+ });
729
+ }
730
+
731
+ /**
732
+ * @param data The data for the request.
733
+ * @param data.requestBody
734
+ * @returns unknown Success
735
+ * @throws ApiError
736
+ */
737
+ public putApiAccountAdminSettings(data: PutApiAccountAdminSettingsData = {}): CancelablePromise<PutApiAccountAdminSettingsResponse> {
738
+ return this.httpRequest.request({
739
+ method: 'PUT',
740
+ url: '/api/account-admin/settings',
741
+ body: data.requestBody,
742
+ mediaType: 'application/json',
743
+ errors: {
744
+ 400: 'Bad Request',
745
+ 401: 'Unauthorized',
746
+ 403: 'Forbidden',
747
+ 404: 'Not Found',
748
+ 500: 'Server Error',
749
+ 501: 'Server Error'
750
+ }
751
+ });
752
+ }
753
+
754
+ /**
755
+ * @returns unknown Success
756
+ * @throws ApiError
757
+ */
758
+ public getApiAccountAdminSettingsTwoFactor(): CancelablePromise<GetApiAccountAdminSettingsTwoFactorResponse> {
759
+ return this.httpRequest.request({
760
+ method: 'GET',
761
+ url: '/api/account-admin/settings/two-factor',
762
+ errors: {
763
+ 400: 'Bad Request',
764
+ 401: 'Unauthorized',
765
+ 403: 'Forbidden',
766
+ 404: 'Not Found',
767
+ 500: 'Server Error',
768
+ 501: 'Server Error'
769
+ }
770
+ });
771
+ }
772
+
773
+ /**
774
+ * @param data The data for the request.
775
+ * @param data.requestBody
776
+ * @returns unknown Success
777
+ * @throws ApiError
778
+ */
779
+ public putApiAccountAdminSettingsTwoFactor(data: PutApiAccountAdminSettingsTwoFactorData = {}): CancelablePromise<PutApiAccountAdminSettingsTwoFactorResponse> {
780
+ return this.httpRequest.request({
781
+ method: 'PUT',
782
+ url: '/api/account-admin/settings/two-factor',
783
+ body: data.requestBody,
784
+ mediaType: 'application/json',
785
+ errors: {
786
+ 400: 'Bad Request',
787
+ 401: 'Unauthorized',
788
+ 403: 'Forbidden',
789
+ 404: 'Not Found',
790
+ 500: 'Server Error',
791
+ 501: 'Server Error'
792
+ }
793
+ });
794
+ }
795
+
796
+ /**
797
+ * @returns unknown Success
798
+ * @throws ApiError
799
+ */
800
+ public getApiAccountAdminSettingsRecaptcha(): CancelablePromise<GetApiAccountAdminSettingsRecaptchaResponse> {
801
+ return this.httpRequest.request({
802
+ method: 'GET',
803
+ url: '/api/account-admin/settings/recaptcha',
804
+ errors: {
805
+ 400: 'Bad Request',
806
+ 401: 'Unauthorized',
807
+ 403: 'Forbidden',
808
+ 404: 'Not Found',
809
+ 500: 'Server Error',
810
+ 501: 'Server Error'
811
+ }
812
+ });
813
+ }
814
+
815
+ /**
816
+ * @param data The data for the request.
817
+ * @param data.requestBody
818
+ * @returns unknown Success
819
+ * @throws ApiError
820
+ */
821
+ public putApiAccountAdminSettingsRecaptcha(data: PutApiAccountAdminSettingsRecaptchaData = {}): CancelablePromise<PutApiAccountAdminSettingsRecaptchaResponse> {
822
+ return this.httpRequest.request({
823
+ method: 'PUT',
824
+ url: '/api/account-admin/settings/recaptcha',
825
+ body: data.requestBody,
826
+ mediaType: 'application/json',
827
+ errors: {
828
+ 400: 'Bad Request',
829
+ 401: 'Unauthorized',
830
+ 403: 'Forbidden',
831
+ 404: 'Not Found',
832
+ 500: 'Server Error',
833
+ 501: 'Server Error'
834
+ }
835
+ });
836
+ }
837
+
838
+ /**
839
+ * @returns unknown Success
840
+ * @throws ApiError
841
+ */
842
+ public getApiAccountAdminSettingsExternalProvider(): CancelablePromise<GetApiAccountAdminSettingsExternalProviderResponse> {
843
+ return this.httpRequest.request({
844
+ method: 'GET',
845
+ url: '/api/account-admin/settings/external-provider',
846
+ errors: {
847
+ 400: 'Bad Request',
848
+ 401: 'Unauthorized',
849
+ 403: 'Forbidden',
850
+ 404: 'Not Found',
851
+ 500: 'Server Error',
852
+ 501: 'Server Error'
853
+ }
854
+ });
855
+ }
856
+
857
+ /**
858
+ * @param data The data for the request.
859
+ * @param data.requestBody
860
+ * @returns unknown Success
861
+ * @throws ApiError
862
+ */
863
+ public putApiAccountAdminSettingsExternalProvider(data: PutApiAccountAdminSettingsExternalProviderData = {}): CancelablePromise<PutApiAccountAdminSettingsExternalProviderResponse> {
864
+ return this.httpRequest.request({
865
+ method: 'PUT',
866
+ url: '/api/account-admin/settings/external-provider',
867
+ body: data.requestBody,
868
+ mediaType: 'application/json',
869
+ errors: {
870
+ 400: 'Bad Request',
871
+ 401: 'Unauthorized',
872
+ 403: 'Forbidden',
873
+ 404: 'Not Found',
874
+ 500: 'Server Error',
875
+ 501: 'Server Error'
876
+ }
877
+ });
878
+ }
879
+
880
+ }
881
+
882
+ export class DynamicClaimsService {
883
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
884
+
885
+ /**
886
+ * @returns unknown Success
887
+ * @throws ApiError
888
+ */
889
+ public postApiAccountDynamicClaimsRefresh(): CancelablePromise<PostApiAccountDynamicClaimsRefreshResponse> {
890
+ return this.httpRequest.request({
891
+ method: 'POST',
892
+ url: '/api/account/dynamic-claims/refresh',
893
+ errors: {
894
+ 400: 'Bad Request',
895
+ 401: 'Unauthorized',
896
+ 403: 'Forbidden',
897
+ 404: 'Not Found',
898
+ 500: 'Server Error',
899
+ 501: 'Server Error'
900
+ }
901
+ });
902
+ }
903
+
904
+ }
905
+
906
+ export class LoginService {
907
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
908
+
909
+ /**
910
+ * @param data The data for the request.
911
+ * @param data.requestBody
912
+ * @returns unknown Success
913
+ * @throws ApiError
914
+ */
915
+ public postApiAccountLogin(data: PostApiAccountLoginData = {}): CancelablePromise<PostApiAccountLoginResponse> {
916
+ return this.httpRequest.request({
917
+ method: 'POST',
918
+ url: '/api/account/login',
919
+ body: data.requestBody,
920
+ mediaType: 'application/json',
921
+ errors: {
922
+ 400: 'Bad Request',
923
+ 401: 'Unauthorized',
924
+ 403: 'Forbidden',
925
+ 404: 'Not Found',
926
+ 500: 'Server Error',
927
+ 501: 'Server Error'
928
+ }
929
+ });
930
+ }
931
+
932
+ /**
933
+ * @param data The data for the request.
934
+ * @param data.requestBody
935
+ * @returns unknown Success
936
+ * @throws ApiError
937
+ */
938
+ public postApiAccountLinkLogin(data: PostApiAccountLinkLoginData = {}): CancelablePromise<PostApiAccountLinkLoginResponse> {
939
+ return this.httpRequest.request({
940
+ method: 'POST',
941
+ url: '/api/account/linkLogin',
942
+ body: data.requestBody,
943
+ mediaType: 'application/json',
944
+ errors: {
945
+ 400: 'Bad Request',
946
+ 401: 'Unauthorized',
947
+ 403: 'Forbidden',
948
+ 404: 'Not Found',
949
+ 500: 'Server Error',
950
+ 501: 'Server Error'
951
+ }
952
+ });
953
+ }
954
+
955
+ /**
956
+ * @returns unknown Success
957
+ * @throws ApiError
958
+ */
959
+ public getApiAccountLogout(): CancelablePromise<GetApiAccountLogoutResponse> {
960
+ return this.httpRequest.request({
961
+ method: 'GET',
962
+ url: '/api/account/logout',
963
+ errors: {
964
+ 400: 'Bad Request',
965
+ 401: 'Unauthorized',
966
+ 403: 'Forbidden',
967
+ 404: 'Not Found',
968
+ 500: 'Server Error',
969
+ 501: 'Server Error'
970
+ }
971
+ });
972
+ }
973
+
974
+ /**
975
+ * @param data The data for the request.
976
+ * @param data.requestBody
977
+ * @returns unknown Success
978
+ * @throws ApiError
979
+ */
980
+ public postApiAccountCheckPassword(data: PostApiAccountCheckPasswordData = {}): CancelablePromise<PostApiAccountCheckPasswordResponse> {
981
+ return this.httpRequest.request({
982
+ method: 'POST',
983
+ url: '/api/account/checkPassword',
984
+ body: data.requestBody,
985
+ mediaType: 'application/json',
986
+ errors: {
987
+ 400: 'Bad Request',
988
+ 401: 'Unauthorized',
989
+ 403: 'Forbidden',
990
+ 404: 'Not Found',
991
+ 500: 'Server Error',
992
+ 501: 'Server Error'
993
+ }
994
+ });
995
+ }
996
+
997
+ }
998
+
999
+ export class ProfileService {
1000
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
1001
+
1002
+ /**
1003
+ * @returns unknown Success
1004
+ * @throws ApiError
1005
+ */
1006
+ public getApiAccountMyProfile(): CancelablePromise<GetApiAccountMyProfileResponse> {
1007
+ return this.httpRequest.request({
1008
+ method: 'GET',
1009
+ url: '/api/account/my-profile',
1010
+ errors: {
1011
+ 400: 'Bad Request',
1012
+ 401: 'Unauthorized',
1013
+ 403: 'Forbidden',
1014
+ 404: 'Not Found',
1015
+ 500: 'Server Error',
1016
+ 501: 'Server Error'
1017
+ }
1018
+ });
1019
+ }
1020
+
1021
+ /**
1022
+ * @param data The data for the request.
1023
+ * @param data.requestBody
1024
+ * @returns unknown Success
1025
+ * @throws ApiError
1026
+ */
1027
+ public putApiAccountMyProfile(data: PutApiAccountMyProfileData = {}): CancelablePromise<PutApiAccountMyProfileResponse> {
1028
+ return this.httpRequest.request({
1029
+ method: 'PUT',
1030
+ url: '/api/account/my-profile',
1031
+ body: data.requestBody,
1032
+ mediaType: 'application/json',
1033
+ errors: {
1034
+ 400: 'Bad Request',
1035
+ 401: 'Unauthorized',
1036
+ 403: 'Forbidden',
1037
+ 404: 'Not Found',
1038
+ 500: 'Server Error',
1039
+ 501: 'Server Error'
1040
+ }
1041
+ });
1042
+ }
1043
+
1044
+ /**
1045
+ * @param data The data for the request.
1046
+ * @param data.requestBody
1047
+ * @returns unknown Success
1048
+ * @throws ApiError
1049
+ */
1050
+ public postApiAccountMyProfileChangePassword(data: PostApiAccountMyProfileChangePasswordData = {}): CancelablePromise<PostApiAccountMyProfileChangePasswordResponse> {
1051
+ return this.httpRequest.request({
1052
+ method: 'POST',
1053
+ url: '/api/account/my-profile/change-password',
1054
+ body: data.requestBody,
1055
+ mediaType: 'application/json',
1056
+ errors: {
1057
+ 400: 'Bad Request',
1058
+ 401: 'Unauthorized',
1059
+ 403: 'Forbidden',
1060
+ 404: 'Not Found',
1061
+ 500: 'Server Error',
1062
+ 501: 'Server Error'
1063
+ }
1064
+ });
1065
+ }
1066
+
1067
+ /**
1068
+ * @returns boolean Success
1069
+ * @throws ApiError
1070
+ */
1071
+ public getApiAccountMyProfileTwoFactorEnabled(): CancelablePromise<GetApiAccountMyProfileTwoFactorEnabledResponse> {
1072
+ return this.httpRequest.request({
1073
+ method: 'GET',
1074
+ url: '/api/account/my-profile/two-factor-enabled',
1075
+ errors: {
1076
+ 400: 'Bad Request',
1077
+ 401: 'Unauthorized',
1078
+ 403: 'Forbidden',
1079
+ 404: 'Not Found',
1080
+ 500: 'Server Error',
1081
+ 501: 'Server Error'
1082
+ }
1083
+ });
1084
+ }
1085
+
1086
+ /**
1087
+ * @param data The data for the request.
1088
+ * @param data.enabled
1089
+ * @returns unknown Success
1090
+ * @throws ApiError
1091
+ */
1092
+ public postApiAccountMyProfileSetTwoFactorEnabled(data: PostApiAccountMyProfileSetTwoFactorEnabledData = {}): CancelablePromise<PostApiAccountMyProfileSetTwoFactorEnabledResponse> {
1093
+ return this.httpRequest.request({
1094
+ method: 'POST',
1095
+ url: '/api/account/my-profile/set-two-factor-enabled',
1096
+ query: {
1097
+ enabled: data.enabled
1098
+ },
1099
+ errors: {
1100
+ 400: 'Bad Request',
1101
+ 401: 'Unauthorized',
1102
+ 403: 'Forbidden',
1103
+ 404: 'Not Found',
1104
+ 500: 'Server Error',
1105
+ 501: 'Server Error'
1106
+ }
1107
+ });
1108
+ }
1109
+
1110
+ /**
1111
+ * @returns boolean Success
1112
+ * @throws ApiError
1113
+ */
1114
+ public getApiAccountMyProfileCanEnableTwoFactor(): CancelablePromise<GetApiAccountMyProfileCanEnableTwoFactorResponse> {
1115
+ return this.httpRequest.request({
1116
+ method: 'GET',
1117
+ url: '/api/account/my-profile/can-enable-two-factor',
1118
+ errors: {
1119
+ 400: 'Bad Request',
1120
+ 401: 'Unauthorized',
1121
+ 403: 'Forbidden',
1122
+ 404: 'Not Found',
1123
+ 500: 'Server Error',
1124
+ 501: 'Server Error'
1125
+ }
1126
+ });
1127
+ }
1128
+
1129
+ /**
1130
+ * @returns unknown Success
1131
+ * @throws ApiError
1132
+ */
1133
+ public getApiAccountMyProfileTimezones(): CancelablePromise<GetApiAccountMyProfileTimezonesResponse> {
1134
+ return this.httpRequest.request({
1135
+ method: 'GET',
1136
+ url: '/api/account/my-profile/timezones',
1137
+ errors: {
1138
+ 400: 'Bad Request',
1139
+ 401: 'Unauthorized',
1140
+ 403: 'Forbidden',
1141
+ 404: 'Not Found',
1142
+ 500: 'Server Error',
1143
+ 501: 'Server Error'
1144
+ }
1145
+ });
1146
+ }
1147
+
1148
+ }
1149
+
1150
+ export class UserService {
1151
+ constructor(public readonly httpRequest: BaseHttpRequest) { }
1152
+
1153
+ /**
1154
+ * @param data The data for the request.
1155
+ * @param data.requestBody
1156
+ * @returns unknown Success
1157
+ * @throws ApiError
1158
+ */
1159
+ public postApiAccountLinkUserLink(data: PostApiAccountLinkUserLinkData = {}): CancelablePromise<PostApiAccountLinkUserLinkResponse> {
1160
+ return this.httpRequest.request({
1161
+ method: 'POST',
1162
+ url: '/api/account/link-user/link',
1163
+ body: data.requestBody,
1164
+ mediaType: 'application/json',
1165
+ errors: {
1166
+ 400: 'Bad Request',
1167
+ 401: 'Unauthorized',
1168
+ 403: 'Forbidden',
1169
+ 404: 'Not Found',
1170
+ 500: 'Server Error',
1171
+ 501: 'Server Error'
1172
+ }
1173
+ });
1174
+ }
1175
+
1176
+ /**
1177
+ * @param data The data for the request.
1178
+ * @param data.requestBody
1179
+ * @returns unknown Success
1180
+ * @throws ApiError
1181
+ */
1182
+ public postApiAccountLinkUserUnlink(data: PostApiAccountLinkUserUnlinkData = {}): CancelablePromise<PostApiAccountLinkUserUnlinkResponse> {
1183
+ return this.httpRequest.request({
1184
+ method: 'POST',
1185
+ url: '/api/account/link-user/unlink',
1186
+ body: data.requestBody,
1187
+ mediaType: 'application/json',
1188
+ errors: {
1189
+ 400: 'Bad Request',
1190
+ 401: 'Unauthorized',
1191
+ 403: 'Forbidden',
1192
+ 404: 'Not Found',
1193
+ 500: 'Server Error',
1194
+ 501: 'Server Error'
1195
+ }
1196
+ });
1197
+ }
1198
+
1199
+ /**
1200
+ * @param data The data for the request.
1201
+ * @param data.requestBody
1202
+ * @returns boolean Success
1203
+ * @throws ApiError
1204
+ */
1205
+ public postApiAccountLinkUserIsLinked(data: PostApiAccountLinkUserIsLinkedData = {}): CancelablePromise<PostApiAccountLinkUserIsLinkedResponse> {
1206
+ return this.httpRequest.request({
1207
+ method: 'POST',
1208
+ url: '/api/account/link-user/is-linked',
1209
+ body: data.requestBody,
1210
+ mediaType: 'application/json',
1211
+ errors: {
1212
+ 400: 'Bad Request',
1213
+ 401: 'Unauthorized',
1214
+ 403: 'Forbidden',
1215
+ 404: 'Not Found',
1216
+ 500: 'Server Error',
1217
+ 501: 'Server Error'
1218
+ }
1219
+ });
1220
+ }
1221
+
1222
+ /**
1223
+ * @returns string Success
1224
+ * @throws ApiError
1225
+ */
1226
+ public postApiAccountLinkUserGenerateLinkToken(): CancelablePromise<PostApiAccountLinkUserGenerateLinkTokenResponse> {
1227
+ return this.httpRequest.request({
1228
+ method: 'POST',
1229
+ url: '/api/account/link-user/generate-link-token',
1230
+ errors: {
1231
+ 400: 'Bad Request',
1232
+ 401: 'Unauthorized',
1233
+ 403: 'Forbidden',
1234
+ 404: 'Not Found',
1235
+ 500: 'Server Error',
1236
+ 501: 'Server Error'
1237
+ }
1238
+ });
1239
+ }
1240
+
1241
+ /**
1242
+ * @param data The data for the request.
1243
+ * @param data.requestBody
1244
+ * @returns boolean Success
1245
+ * @throws ApiError
1246
+ */
1247
+ public postApiAccountLinkUserVerifyLinkToken(data: PostApiAccountLinkUserVerifyLinkTokenData = {}): CancelablePromise<PostApiAccountLinkUserVerifyLinkTokenResponse> {
1248
+ return this.httpRequest.request({
1249
+ method: 'POST',
1250
+ url: '/api/account/link-user/verify-link-token',
1251
+ body: data.requestBody,
1252
+ mediaType: 'application/json',
1253
+ errors: {
1254
+ 400: 'Bad Request',
1255
+ 401: 'Unauthorized',
1256
+ 403: 'Forbidden',
1257
+ 404: 'Not Found',
1258
+ 500: 'Server Error',
1259
+ 501: 'Server Error'
1260
+ }
1261
+ });
1262
+ }
1263
+
1264
+ /**
1265
+ * @returns string Success
1266
+ * @throws ApiError
1267
+ */
1268
+ public postApiAccountLinkUserGenerateLinkLoginToken(): CancelablePromise<PostApiAccountLinkUserGenerateLinkLoginTokenResponse> {
1269
+ return this.httpRequest.request({
1270
+ method: 'POST',
1271
+ url: '/api/account/link-user/generate-link-login-token',
1272
+ errors: {
1273
+ 400: 'Bad Request',
1274
+ 401: 'Unauthorized',
1275
+ 403: 'Forbidden',
1276
+ 404: 'Not Found',
1277
+ 500: 'Server Error',
1278
+ 501: 'Server Error'
1279
+ }
1280
+ });
1281
+ }
1282
+
1283
+ /**
1284
+ * @param data The data for the request.
1285
+ * @param data.requestBody
1286
+ * @returns boolean Success
1287
+ * @throws ApiError
1288
+ */
1289
+ public postApiAccountLinkUserVerifyLinkLoginToken(data: PostApiAccountLinkUserVerifyLinkLoginTokenData = {}): CancelablePromise<PostApiAccountLinkUserVerifyLinkLoginTokenResponse> {
1290
+ return this.httpRequest.request({
1291
+ method: 'POST',
1292
+ url: '/api/account/link-user/verify-link-login-token',
1293
+ body: data.requestBody,
1294
+ mediaType: 'application/json',
1295
+ errors: {
1296
+ 400: 'Bad Request',
1297
+ 401: 'Unauthorized',
1298
+ 403: 'Forbidden',
1299
+ 404: 'Not Found',
1300
+ 500: 'Server Error',
1301
+ 501: 'Server Error'
1302
+ }
1303
+ });
1304
+ }
1305
+
1306
+ /**
1307
+ * @returns unknown Success
1308
+ * @throws ApiError
1309
+ */
1310
+ public getApiAccountLinkUser(): CancelablePromise<GetApiAccountLinkUserResponse> {
1311
+ return this.httpRequest.request({
1312
+ method: 'GET',
1313
+ url: '/api/account/link-user',
1314
+ errors: {
1315
+ 400: 'Bad Request',
1316
+ 401: 'Unauthorized',
1317
+ 403: 'Forbidden',
1318
+ 404: 'Not Found',
1319
+ 500: 'Server Error',
1320
+ 501: 'Server Error'
1321
+ }
1322
+ });
1323
+ }
1324
+
1325
+ /**
1326
+ * @returns unknown Success
1327
+ * @throws ApiError
1328
+ */
1329
+ public getApiAccountUserDelegationDelegatedUsers(): CancelablePromise<GetApiAccountUserDelegationDelegatedUsersResponse> {
1330
+ return this.httpRequest.request({
1331
+ method: 'GET',
1332
+ url: '/api/account/user-delegation/delegated-users',
1333
+ errors: {
1334
+ 400: 'Bad Request',
1335
+ 401: 'Unauthorized',
1336
+ 403: 'Forbidden',
1337
+ 404: 'Not Found',
1338
+ 500: 'Server Error',
1339
+ 501: 'Server Error'
1340
+ }
1341
+ });
1342
+ }
1343
+
1344
+ /**
1345
+ * @returns unknown Success
1346
+ * @throws ApiError
1347
+ */
1348
+ public getApiAccountUserDelegationMyDelegatedUsers(): CancelablePromise<GetApiAccountUserDelegationMyDelegatedUsersResponse> {
1349
+ return this.httpRequest.request({
1350
+ method: 'GET',
1351
+ url: '/api/account/user-delegation/my-delegated-users',
1352
+ errors: {
1353
+ 400: 'Bad Request',
1354
+ 401: 'Unauthorized',
1355
+ 403: 'Forbidden',
1356
+ 404: 'Not Found',
1357
+ 500: 'Server Error',
1358
+ 501: 'Server Error'
1359
+ }
1360
+ });
1361
+ }
1362
+
1363
+ /**
1364
+ * @returns unknown Success
1365
+ * @throws ApiError
1366
+ */
1367
+ public getApiAccountUserDelegationActiveDelegations(): CancelablePromise<GetApiAccountUserDelegationActiveDelegationsResponse> {
1368
+ return this.httpRequest.request({
1369
+ method: 'GET',
1370
+ url: '/api/account/user-delegation/active-delegations',
1371
+ errors: {
1372
+ 400: 'Bad Request',
1373
+ 401: 'Unauthorized',
1374
+ 403: 'Forbidden',
1375
+ 404: 'Not Found',
1376
+ 500: 'Server Error',
1377
+ 501: 'Server Error'
1378
+ }
1379
+ });
1380
+ }
1381
+
1382
+ /**
1383
+ * @param data The data for the request.
1384
+ * @param data.userName
1385
+ * @returns unknown Success
1386
+ * @throws ApiError
1387
+ */
1388
+ public getApiAccountUserDelegationUserLookup(data: GetApiAccountUserDelegationUserLookupData = {}): CancelablePromise<GetApiAccountUserDelegationUserLookupResponse> {
1389
+ return this.httpRequest.request({
1390
+ method: 'GET',
1391
+ url: '/api/account/user-delegation/user-lookup',
1392
+ query: {
1393
+ UserName: data.userName
1394
+ },
1395
+ errors: {
1396
+ 400: 'Bad Request',
1397
+ 401: 'Unauthorized',
1398
+ 403: 'Forbidden',
1399
+ 404: 'Not Found',
1400
+ 500: 'Server Error',
1401
+ 501: 'Server Error'
1402
+ }
1403
+ });
1404
+ }
1405
+
1406
+ /**
1407
+ * @param data The data for the request.
1408
+ * @param data.requestBody
1409
+ * @returns unknown Success
1410
+ * @throws ApiError
1411
+ */
1412
+ public postApiAccountUserDelegationDelegateNewUser(data: PostApiAccountUserDelegationDelegateNewUserData = {}): CancelablePromise<PostApiAccountUserDelegationDelegateNewUserResponse> {
1413
+ return this.httpRequest.request({
1414
+ method: 'POST',
1415
+ url: '/api/account/user-delegation/delegate-new-user',
1416
+ body: data.requestBody,
1417
+ mediaType: 'application/json',
1418
+ errors: {
1419
+ 400: 'Bad Request',
1420
+ 401: 'Unauthorized',
1421
+ 403: 'Forbidden',
1422
+ 404: 'Not Found',
1423
+ 500: 'Server Error',
1424
+ 501: 'Server Error'
1425
+ }
1426
+ });
1427
+ }
1428
+
1429
+ /**
1430
+ * @param data The data for the request.
1431
+ * @param data.id
1432
+ * @returns unknown Success
1433
+ * @throws ApiError
1434
+ */
1435
+ public postApiAccountUserDelegationDeleteDelegation(data: PostApiAccountUserDelegationDeleteDelegationData = {}): CancelablePromise<PostApiAccountUserDelegationDeleteDelegationResponse> {
1436
+ return this.httpRequest.request({
1437
+ method: 'POST',
1438
+ url: '/api/account/user-delegation/delete-delegation',
1439
+ query: {
1440
+ id: data.id
1441
+ },
1442
+ errors: {
1443
+ 400: 'Bad Request',
1444
+ 401: 'Unauthorized',
1445
+ 403: 'Forbidden',
1446
+ 404: 'Not Found',
1447
+ 500: 'Server Error',
1448
+ 501: 'Server Error'
1449
+ }
1450
+ });
1451
+ }
1452
+
1453
1453
  }