@abpjs/identity-pro 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +986 -47
- package/dist/index.d.ts +986 -47
- package/dist/index.js +936 -7
- package/dist/index.mjs +919 -7
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { RoutesService, SettingTabsService,
|
|
1
|
+
import { RoutesService, SettingTabsService, ExtensibleObject, ExtensibleEntityDto, PagedAndSortedResultRequestDto, EntityDto, PagedResultRequestDto, ExtensibleFullAuditedEntityDto, CreationAuditedEntityDto, RestService, PagedResultDto, ListResultDto, ABP } from '@abpjs/core';
|
|
2
2
|
import React, { ComponentType } from 'react';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Identity Policy Names
|
|
6
6
|
* Policy names for permission checking in the Identity module.
|
|
7
7
|
* @since 3.0.0
|
|
8
|
+
* @updated 3.1.0 - Added SecurityLogs
|
|
8
9
|
*/
|
|
9
10
|
/**
|
|
10
11
|
* Identity policy names enum.
|
|
11
12
|
* Used for checking permissions in the identity management module.
|
|
12
13
|
* @since 3.0.0
|
|
14
|
+
* @updated 3.1.0 - Added SecurityLogs
|
|
13
15
|
*/
|
|
14
16
|
declare const eIdentityPolicyNames: {
|
|
15
17
|
readonly IdentityManagement: "AbpIdentity.Roles || AbpIdentity.Users || AbpIdentity.ClaimTypes || AbpIdentity.OrganizationUnits";
|
|
@@ -17,6 +19,8 @@ declare const eIdentityPolicyNames: {
|
|
|
17
19
|
readonly Users: "AbpIdentity.Users";
|
|
18
20
|
readonly ClaimTypes: "AbpIdentity.ClaimTypes";
|
|
19
21
|
readonly OrganizationUnits: "AbpIdentity.OrganizationUnits";
|
|
22
|
+
/** Security logs policy (v3.1.0) */
|
|
23
|
+
readonly SecurityLogs: "AbpIdentity.SecurityLogs";
|
|
20
24
|
};
|
|
21
25
|
/**
|
|
22
26
|
* Type for identity policy name values
|
|
@@ -27,6 +31,7 @@ type IdentityPolicyNameKey = (typeof eIdentityPolicyNames)[keyof typeof eIdentit
|
|
|
27
31
|
* Identity Route Names
|
|
28
32
|
* Route names for the Identity module navigation.
|
|
29
33
|
* @since 3.0.0
|
|
34
|
+
* @updated 3.1.0 - Added SecurityLogs
|
|
30
35
|
*/
|
|
31
36
|
/**
|
|
32
37
|
* Identity route names enum.
|
|
@@ -36,6 +41,7 @@ type IdentityPolicyNameKey = (typeof eIdentityPolicyNames)[keyof typeof eIdentit
|
|
|
36
41
|
* Routes are now organized under IdentityManagement.
|
|
37
42
|
*
|
|
38
43
|
* @since 3.0.0
|
|
44
|
+
* @updated 3.1.0 - Added SecurityLogs
|
|
39
45
|
*/
|
|
40
46
|
declare const eIdentityRouteNames: {
|
|
41
47
|
readonly IdentityManagement: "AbpIdentity::Menu:IdentityManagement";
|
|
@@ -43,6 +49,8 @@ declare const eIdentityRouteNames: {
|
|
|
43
49
|
readonly Users: "AbpIdentity::Users";
|
|
44
50
|
readonly ClaimTypes: "AbpIdentity::ClaimTypes";
|
|
45
51
|
readonly OrganizationUnits: "AbpIdentity::OrganizationUnits";
|
|
52
|
+
/** Security logs route name (v3.1.0) */
|
|
53
|
+
readonly SecurityLogs: "AbpIdentity::SecurityLogs";
|
|
46
54
|
};
|
|
47
55
|
/**
|
|
48
56
|
* Type for identity route name values
|
|
@@ -193,16 +201,680 @@ declare const IDENTITY_SETTING_TAB_PROVIDERS: {
|
|
|
193
201
|
configureSettingTabs: typeof configureSettingTabs;
|
|
194
202
|
};
|
|
195
203
|
|
|
204
|
+
/**
|
|
205
|
+
* Identity claim value types
|
|
206
|
+
* Translated from @volo/abp.ng.identity IdentityClaimValueType
|
|
207
|
+
* @since 3.2.0
|
|
208
|
+
*/
|
|
209
|
+
declare enum IdentityClaimValueType {
|
|
210
|
+
String = 0,
|
|
211
|
+
Int = 1,
|
|
212
|
+
Boolean = 2,
|
|
213
|
+
DateTime = 3
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Options array for claim value type select components
|
|
217
|
+
* @since 3.2.0
|
|
218
|
+
*/
|
|
219
|
+
declare const identityClaimValueTypeOptions: readonly [{
|
|
220
|
+
readonly label: "String";
|
|
221
|
+
readonly value: IdentityClaimValueType.String;
|
|
222
|
+
}, {
|
|
223
|
+
readonly label: "Int";
|
|
224
|
+
readonly value: IdentityClaimValueType.Int;
|
|
225
|
+
}, {
|
|
226
|
+
readonly label: "Boolean";
|
|
227
|
+
readonly value: IdentityClaimValueType.Boolean;
|
|
228
|
+
}, {
|
|
229
|
+
readonly label: "DateTime";
|
|
230
|
+
readonly value: IdentityClaimValueType.DateTime;
|
|
231
|
+
}];
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Identity proxy models
|
|
235
|
+
* Translated from @volo/abp.ng.identity/lib/proxy/identity/models
|
|
236
|
+
* @since 3.2.0
|
|
237
|
+
*/
|
|
238
|
+
|
|
239
|
+
interface ChangePasswordInput {
|
|
240
|
+
currentPassword: string;
|
|
241
|
+
newPassword: string;
|
|
242
|
+
}
|
|
243
|
+
interface ProfileDto extends ExtensibleObject {
|
|
244
|
+
userName: string;
|
|
245
|
+
email: string;
|
|
246
|
+
emailConfirmed: boolean;
|
|
247
|
+
name: string;
|
|
248
|
+
surname: string;
|
|
249
|
+
phoneNumber: string;
|
|
250
|
+
phoneNumberConfirmed: boolean;
|
|
251
|
+
isExternal: boolean;
|
|
252
|
+
hasPassword: boolean;
|
|
253
|
+
}
|
|
254
|
+
interface UpdateProfileDto extends ExtensibleObject {
|
|
255
|
+
userName: string;
|
|
256
|
+
email: string;
|
|
257
|
+
name: string;
|
|
258
|
+
surname: string;
|
|
259
|
+
phoneNumber: string;
|
|
260
|
+
}
|
|
261
|
+
interface ClaimTypeDto extends ExtensibleEntityDto<string> {
|
|
262
|
+
name: string;
|
|
263
|
+
required: boolean;
|
|
264
|
+
isStatic: boolean;
|
|
265
|
+
regex: string;
|
|
266
|
+
regexDescription: string;
|
|
267
|
+
description: string;
|
|
268
|
+
valueType: IdentityClaimValueType;
|
|
269
|
+
valueTypeAsString: string;
|
|
270
|
+
}
|
|
271
|
+
interface CreateClaimTypeDto extends ExtensibleObject {
|
|
272
|
+
name: string;
|
|
273
|
+
required: boolean;
|
|
274
|
+
regex: string;
|
|
275
|
+
regexDescription: string;
|
|
276
|
+
description: string;
|
|
277
|
+
valueType: IdentityClaimValueType;
|
|
278
|
+
}
|
|
279
|
+
interface UpdateClaimTypeDto extends ExtensibleObject {
|
|
280
|
+
name: string;
|
|
281
|
+
required: boolean;
|
|
282
|
+
regex: string;
|
|
283
|
+
regexDescription: string;
|
|
284
|
+
description: string;
|
|
285
|
+
valueType: IdentityClaimValueType;
|
|
286
|
+
}
|
|
287
|
+
interface GetIdentityClaimTypesInput extends PagedAndSortedResultRequestDto {
|
|
288
|
+
filter: string;
|
|
289
|
+
}
|
|
290
|
+
interface IdentityRoleDto extends ExtensibleEntityDto<string> {
|
|
291
|
+
name: string;
|
|
292
|
+
isDefault: boolean;
|
|
293
|
+
isStatic: boolean;
|
|
294
|
+
isPublic: boolean;
|
|
295
|
+
concurrencyStamp: string;
|
|
296
|
+
}
|
|
297
|
+
interface IdentityRoleCreateOrUpdateDtoBase extends ExtensibleObject {
|
|
298
|
+
name: string;
|
|
299
|
+
isDefault: boolean;
|
|
300
|
+
isPublic: boolean;
|
|
301
|
+
}
|
|
302
|
+
type IdentityRoleCreateDto = IdentityRoleCreateOrUpdateDtoBase;
|
|
303
|
+
interface IdentityRoleUpdateDto extends IdentityRoleCreateOrUpdateDtoBase {
|
|
304
|
+
concurrencyStamp: string;
|
|
305
|
+
}
|
|
306
|
+
interface IdentityRoleClaimDto {
|
|
307
|
+
roleId: string;
|
|
308
|
+
claimType: string;
|
|
309
|
+
claimValue: string;
|
|
310
|
+
}
|
|
311
|
+
interface GetIdentityRoleListInput extends PagedAndSortedResultRequestDto {
|
|
312
|
+
filter: string;
|
|
313
|
+
}
|
|
314
|
+
interface IdentityUserDto extends ExtensibleEntityDto<string> {
|
|
315
|
+
tenantId?: string;
|
|
316
|
+
userName: string;
|
|
317
|
+
email: string;
|
|
318
|
+
name: string;
|
|
319
|
+
surname: string;
|
|
320
|
+
emailConfirmed: boolean;
|
|
321
|
+
phoneNumber: string;
|
|
322
|
+
phoneNumberConfirmed: boolean;
|
|
323
|
+
supportTwoFactor: boolean;
|
|
324
|
+
lockoutEnabled: boolean;
|
|
325
|
+
isLockedOut: boolean;
|
|
326
|
+
concurrencyStamp: string;
|
|
327
|
+
}
|
|
328
|
+
interface IdentityUserCreateOrUpdateDtoBase extends ExtensibleObject {
|
|
329
|
+
userName: string;
|
|
330
|
+
name: string;
|
|
331
|
+
surname: string;
|
|
332
|
+
email: string;
|
|
333
|
+
phoneNumber: string;
|
|
334
|
+
lockoutEnabled: boolean;
|
|
335
|
+
roleNames: string[];
|
|
336
|
+
organizationUnitIds: string[];
|
|
337
|
+
}
|
|
338
|
+
interface IdentityUserCreateDto extends IdentityUserCreateOrUpdateDtoBase {
|
|
339
|
+
password: string;
|
|
340
|
+
}
|
|
341
|
+
interface IdentityUserUpdateDto extends IdentityUserCreateOrUpdateDtoBase {
|
|
342
|
+
concurrencyStamp: string;
|
|
343
|
+
}
|
|
344
|
+
interface IdentityUserClaimDto {
|
|
345
|
+
userId: string;
|
|
346
|
+
claimType: string;
|
|
347
|
+
claimValue: string;
|
|
348
|
+
}
|
|
349
|
+
interface IdentityUserUpdatePasswordInput {
|
|
350
|
+
newPassword: string;
|
|
351
|
+
}
|
|
352
|
+
interface IdentityUserUpdateRolesDto {
|
|
353
|
+
roleNames: string[];
|
|
354
|
+
}
|
|
355
|
+
interface GetIdentityUsersInput extends PagedAndSortedResultRequestDto {
|
|
356
|
+
filter: string;
|
|
357
|
+
}
|
|
358
|
+
interface IdentitySecurityLogDto extends EntityDto<string> {
|
|
359
|
+
tenantId?: string;
|
|
360
|
+
applicationName: string;
|
|
361
|
+
identity: string;
|
|
362
|
+
action: string;
|
|
363
|
+
userId?: string;
|
|
364
|
+
userName: string;
|
|
365
|
+
tenantName: string;
|
|
366
|
+
clientId: string;
|
|
367
|
+
correlationId: string;
|
|
368
|
+
clientIpAddress: string;
|
|
369
|
+
browserInfo: string;
|
|
370
|
+
creationTime: string;
|
|
371
|
+
extraProperties: Record<string, object>;
|
|
372
|
+
}
|
|
373
|
+
interface GetIdentitySecurityLogListInput extends PagedAndSortedResultRequestDto {
|
|
374
|
+
startTime?: string;
|
|
375
|
+
endTime?: string;
|
|
376
|
+
applicationName: string;
|
|
377
|
+
identity: string;
|
|
378
|
+
action: string;
|
|
379
|
+
userName: string;
|
|
380
|
+
clientId: string;
|
|
381
|
+
correlationId: string;
|
|
382
|
+
}
|
|
383
|
+
interface IdentityPasswordSettingsDto {
|
|
384
|
+
requiredLength: number;
|
|
385
|
+
requiredUniqueChars: number;
|
|
386
|
+
requireNonAlphanumeric: boolean;
|
|
387
|
+
requireLowercase: boolean;
|
|
388
|
+
requireUppercase: boolean;
|
|
389
|
+
requireDigit: boolean;
|
|
390
|
+
}
|
|
391
|
+
interface IdentityLockoutSettingsDto {
|
|
392
|
+
allowedForNewUsers: boolean;
|
|
393
|
+
lockoutDuration: number;
|
|
394
|
+
maxFailedAccessAttempts: number;
|
|
395
|
+
}
|
|
396
|
+
interface IdentitySignInSettingsDto {
|
|
397
|
+
requireConfirmedEmail: boolean;
|
|
398
|
+
enablePhoneNumberConfirmation: boolean;
|
|
399
|
+
requireConfirmedPhoneNumber: boolean;
|
|
400
|
+
}
|
|
401
|
+
interface IdentityUserSettingsDto {
|
|
402
|
+
isUserNameUpdateEnabled: boolean;
|
|
403
|
+
isEmailUpdateEnabled: boolean;
|
|
404
|
+
}
|
|
405
|
+
interface IdentitySettingsDto {
|
|
406
|
+
password: IdentityPasswordSettingsDto;
|
|
407
|
+
lockout: IdentityLockoutSettingsDto;
|
|
408
|
+
signIn: IdentitySignInSettingsDto;
|
|
409
|
+
user: IdentityUserSettingsDto;
|
|
410
|
+
}
|
|
411
|
+
interface OrganizationUnitCreateOrUpdateDtoBase extends ExtensibleObject {
|
|
412
|
+
displayName: string;
|
|
413
|
+
}
|
|
414
|
+
interface OrganizationUnitCreateDto extends OrganizationUnitCreateOrUpdateDtoBase {
|
|
415
|
+
parentId?: string;
|
|
416
|
+
}
|
|
417
|
+
type OrganizationUnitUpdateDto = OrganizationUnitCreateOrUpdateDtoBase;
|
|
418
|
+
interface OrganizationUnitRoleDto extends CreationAuditedEntityDto {
|
|
419
|
+
organizationUnitId: string;
|
|
420
|
+
roleId: string;
|
|
421
|
+
}
|
|
422
|
+
interface OrganizationUnitDto extends ExtensibleFullAuditedEntityDto<string> {
|
|
423
|
+
parentId?: string;
|
|
424
|
+
code: string;
|
|
425
|
+
displayName: string;
|
|
426
|
+
roles: OrganizationUnitRoleDto[];
|
|
427
|
+
}
|
|
428
|
+
interface OrganizationUnitWithDetailsDto extends ExtensibleFullAuditedEntityDto<string> {
|
|
429
|
+
parentId?: string;
|
|
430
|
+
code: string;
|
|
431
|
+
displayName: string;
|
|
432
|
+
roles: IdentityRoleDto[];
|
|
433
|
+
}
|
|
434
|
+
interface OrganizationUnitMoveInput {
|
|
435
|
+
newParentId?: string;
|
|
436
|
+
}
|
|
437
|
+
interface OrganizationUnitRoleInput {
|
|
438
|
+
roleIds: string[];
|
|
439
|
+
}
|
|
440
|
+
interface OrganizationUnitUserInput {
|
|
441
|
+
userIds: string[];
|
|
442
|
+
}
|
|
443
|
+
interface GetOrganizationUnitInput extends PagedAndSortedResultRequestDto {
|
|
444
|
+
filter: string;
|
|
445
|
+
}
|
|
446
|
+
interface GetAvailableRolesInput extends PagedAndSortedResultRequestDto {
|
|
447
|
+
filter: string;
|
|
448
|
+
id: string;
|
|
449
|
+
}
|
|
450
|
+
interface GetAvailableUsersInput extends PagedAndSortedResultRequestDto {
|
|
451
|
+
filter: string;
|
|
452
|
+
id: string;
|
|
453
|
+
}
|
|
454
|
+
interface UserLookupCountInputDto {
|
|
455
|
+
filter: string;
|
|
456
|
+
}
|
|
457
|
+
interface UserLookupSearchInputDto extends PagedResultRequestDto {
|
|
458
|
+
sorting: string;
|
|
459
|
+
filter: string;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Identity Claim Type Service
|
|
464
|
+
* Translated from @volo/abp.ng.identity IdentityClaimTypeService
|
|
465
|
+
* @since 3.2.0
|
|
466
|
+
*/
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Service for managing identity claim types
|
|
470
|
+
* @since 3.2.0
|
|
471
|
+
*/
|
|
472
|
+
declare class IdentityClaimTypeService {
|
|
473
|
+
private restService;
|
|
474
|
+
apiName: string;
|
|
475
|
+
constructor(restService: RestService);
|
|
476
|
+
/**
|
|
477
|
+
* Creates a new claim type
|
|
478
|
+
*/
|
|
479
|
+
create(input: CreateClaimTypeDto): Promise<ClaimTypeDto>;
|
|
480
|
+
/**
|
|
481
|
+
* Deletes a claim type by ID
|
|
482
|
+
*/
|
|
483
|
+
delete(id: string): Promise<void>;
|
|
484
|
+
/**
|
|
485
|
+
* Gets a claim type by ID
|
|
486
|
+
*/
|
|
487
|
+
get(id: string): Promise<ClaimTypeDto>;
|
|
488
|
+
/**
|
|
489
|
+
* Gets a paginated list of claim types
|
|
490
|
+
*/
|
|
491
|
+
getList(input: GetIdentityClaimTypesInput): Promise<PagedResultDto<ClaimTypeDto>>;
|
|
492
|
+
/**
|
|
493
|
+
* Updates a claim type
|
|
494
|
+
*/
|
|
495
|
+
update(id: string, input: UpdateClaimTypeDto): Promise<ClaimTypeDto>;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Identity Role Service
|
|
500
|
+
* Translated from @volo/abp.ng.identity IdentityRoleService
|
|
501
|
+
* @since 3.2.0
|
|
502
|
+
*/
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Service for managing identity roles
|
|
506
|
+
* @since 3.2.0
|
|
507
|
+
*/
|
|
508
|
+
declare class IdentityRoleService {
|
|
509
|
+
private restService;
|
|
510
|
+
apiName: string;
|
|
511
|
+
constructor(restService: RestService);
|
|
512
|
+
/**
|
|
513
|
+
* Creates a new role
|
|
514
|
+
*/
|
|
515
|
+
create(input: IdentityRoleCreateDto): Promise<IdentityRoleDto>;
|
|
516
|
+
/**
|
|
517
|
+
* Deletes a role by ID
|
|
518
|
+
*/
|
|
519
|
+
delete(id: string): Promise<void>;
|
|
520
|
+
/**
|
|
521
|
+
* Gets a role by ID
|
|
522
|
+
*/
|
|
523
|
+
get(id: string): Promise<IdentityRoleDto>;
|
|
524
|
+
/**
|
|
525
|
+
* Gets all claim types available for roles
|
|
526
|
+
*/
|
|
527
|
+
getAllClaimTypes(): Promise<ClaimTypeDto[]>;
|
|
528
|
+
/**
|
|
529
|
+
* Gets all roles without pagination
|
|
530
|
+
*/
|
|
531
|
+
getAllList(): Promise<ListResultDto<IdentityRoleDto>>;
|
|
532
|
+
/**
|
|
533
|
+
* Gets claims for a role
|
|
534
|
+
*/
|
|
535
|
+
getClaims(id: string): Promise<IdentityRoleClaimDto[]>;
|
|
536
|
+
/**
|
|
537
|
+
* Gets a paginated list of roles
|
|
538
|
+
*/
|
|
539
|
+
getList(input: GetIdentityRoleListInput): Promise<PagedResultDto<IdentityRoleDto>>;
|
|
540
|
+
/**
|
|
541
|
+
* Updates a role
|
|
542
|
+
*/
|
|
543
|
+
update(id: string, input: IdentityRoleUpdateDto): Promise<IdentityRoleDto>;
|
|
544
|
+
/**
|
|
545
|
+
* Updates claims for a role
|
|
546
|
+
*/
|
|
547
|
+
updateClaims(id: string, input: IdentityRoleClaimDto[]): Promise<void>;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Identity Security Log Service (Proxy)
|
|
552
|
+
* Translated from @volo/abp.ng.identity IdentitySecurityLogService (proxy version)
|
|
553
|
+
* @since 3.2.0
|
|
554
|
+
*/
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Proxy service for querying identity security logs
|
|
558
|
+
* @since 3.2.0
|
|
559
|
+
*/
|
|
560
|
+
declare class IdentitySecurityLogService {
|
|
561
|
+
private restService;
|
|
562
|
+
apiName: string;
|
|
563
|
+
constructor(restService: RestService);
|
|
564
|
+
/**
|
|
565
|
+
* Gets a security log by ID
|
|
566
|
+
*/
|
|
567
|
+
get(id: string): Promise<IdentitySecurityLogDto>;
|
|
568
|
+
/**
|
|
569
|
+
* Gets a paginated list of security logs
|
|
570
|
+
*/
|
|
571
|
+
getList(input: GetIdentitySecurityLogListInput): Promise<PagedResultDto<IdentitySecurityLogDto>>;
|
|
572
|
+
/**
|
|
573
|
+
* Gets the current user's security log by ID
|
|
574
|
+
*/
|
|
575
|
+
getMy(id: string): Promise<IdentitySecurityLogDto>;
|
|
576
|
+
/**
|
|
577
|
+
* Gets a paginated list of the current user's security logs
|
|
578
|
+
*/
|
|
579
|
+
getMyList(input: GetIdentitySecurityLogListInput): Promise<PagedResultDto<IdentitySecurityLogDto>>;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Identity Settings Service
|
|
584
|
+
* Translated from @volo/abp.ng.identity IdentitySettingsService
|
|
585
|
+
* @since 3.2.0
|
|
586
|
+
*/
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Service for managing identity settings
|
|
590
|
+
* @since 3.2.0
|
|
591
|
+
*/
|
|
592
|
+
declare class IdentitySettingsService {
|
|
593
|
+
private restService;
|
|
594
|
+
apiName: string;
|
|
595
|
+
constructor(restService: RestService);
|
|
596
|
+
/**
|
|
597
|
+
* Gets identity settings
|
|
598
|
+
*/
|
|
599
|
+
get(): Promise<IdentitySettingsDto>;
|
|
600
|
+
/**
|
|
601
|
+
* Updates identity settings
|
|
602
|
+
*/
|
|
603
|
+
update(input: IdentitySettingsDto): Promise<void>;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* User data models for user lookup
|
|
608
|
+
* Translated from @volo/abp.ng.identity/lib/proxy/users/models
|
|
609
|
+
* @since 3.2.0
|
|
610
|
+
*/
|
|
611
|
+
/**
|
|
612
|
+
* User data returned from user lookup service
|
|
613
|
+
*/
|
|
614
|
+
interface UserData {
|
|
615
|
+
id: string;
|
|
616
|
+
tenantId?: string;
|
|
617
|
+
userName: string;
|
|
618
|
+
name: string;
|
|
619
|
+
surname: string;
|
|
620
|
+
email: string;
|
|
621
|
+
emailConfirmed: boolean;
|
|
622
|
+
phoneNumber: string;
|
|
623
|
+
phoneNumberConfirmed: boolean;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Identity User Lookup Service
|
|
628
|
+
* Translated from @volo/abp.ng.identity IdentityUserLookupService
|
|
629
|
+
* @since 3.2.0
|
|
630
|
+
*/
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Service for looking up users
|
|
634
|
+
* @since 3.2.0
|
|
635
|
+
*/
|
|
636
|
+
declare class IdentityUserLookupService {
|
|
637
|
+
private restService;
|
|
638
|
+
apiName: string;
|
|
639
|
+
constructor(restService: RestService);
|
|
640
|
+
/**
|
|
641
|
+
* Finds a user by ID
|
|
642
|
+
*/
|
|
643
|
+
findById(id: string): Promise<UserData>;
|
|
644
|
+
/**
|
|
645
|
+
* Finds a user by username
|
|
646
|
+
*/
|
|
647
|
+
findByUserName(userName: string): Promise<UserData>;
|
|
648
|
+
/**
|
|
649
|
+
* Gets the count of users matching the filter
|
|
650
|
+
*/
|
|
651
|
+
getCount(input: UserLookupCountInputDto): Promise<number>;
|
|
652
|
+
/**
|
|
653
|
+
* Searches for users
|
|
654
|
+
*/
|
|
655
|
+
search(input: UserLookupSearchInputDto): Promise<ListResultDto<UserData>>;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Identity User Service
|
|
660
|
+
* Translated from @volo/abp.ng.identity IdentityUserService
|
|
661
|
+
* @since 3.2.0
|
|
662
|
+
*/
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* Service for managing identity users
|
|
666
|
+
* @since 3.2.0
|
|
667
|
+
*/
|
|
668
|
+
declare class IdentityUserService {
|
|
669
|
+
private restService;
|
|
670
|
+
apiName: string;
|
|
671
|
+
constructor(restService: RestService);
|
|
672
|
+
/**
|
|
673
|
+
* Creates a new user
|
|
674
|
+
*/
|
|
675
|
+
create(input: IdentityUserCreateDto): Promise<IdentityUserDto>;
|
|
676
|
+
/**
|
|
677
|
+
* Deletes a user by ID
|
|
678
|
+
*/
|
|
679
|
+
delete(id: string): Promise<void>;
|
|
680
|
+
/**
|
|
681
|
+
* Finds a user by email
|
|
682
|
+
*/
|
|
683
|
+
findByEmail(email: string): Promise<IdentityUserDto>;
|
|
684
|
+
/**
|
|
685
|
+
* Finds a user by username
|
|
686
|
+
*/
|
|
687
|
+
findByUsername(username: string): Promise<IdentityUserDto>;
|
|
688
|
+
/**
|
|
689
|
+
* Gets a user by ID
|
|
690
|
+
*/
|
|
691
|
+
get(id: string): Promise<IdentityUserDto>;
|
|
692
|
+
/**
|
|
693
|
+
* Gets all claim types available for users
|
|
694
|
+
*/
|
|
695
|
+
getAllClaimTypes(): Promise<ClaimTypeDto[]>;
|
|
696
|
+
/**
|
|
697
|
+
* Gets assignable roles for users
|
|
698
|
+
*/
|
|
699
|
+
getAssignableRoles(): Promise<ListResultDto<IdentityRoleDto>>;
|
|
700
|
+
/**
|
|
701
|
+
* Gets available organization units for users
|
|
702
|
+
*/
|
|
703
|
+
getAvailableOrganizationUnits(): Promise<ListResultDto<OrganizationUnitWithDetailsDto>>;
|
|
704
|
+
/**
|
|
705
|
+
* Gets claims for a user
|
|
706
|
+
*/
|
|
707
|
+
getClaims(id: string): Promise<IdentityUserClaimDto[]>;
|
|
708
|
+
/**
|
|
709
|
+
* Gets a paginated list of users
|
|
710
|
+
*/
|
|
711
|
+
getList(input: GetIdentityUsersInput): Promise<PagedResultDto<IdentityUserDto>>;
|
|
712
|
+
/**
|
|
713
|
+
* Gets organization units for a user
|
|
714
|
+
*/
|
|
715
|
+
getOrganizationUnits(id: string): Promise<OrganizationUnitDto[]>;
|
|
716
|
+
/**
|
|
717
|
+
* Gets roles for a user
|
|
718
|
+
*/
|
|
719
|
+
getRoles(id: string): Promise<ListResultDto<IdentityRoleDto>>;
|
|
720
|
+
/**
|
|
721
|
+
* Gets two-factor authentication status for a user
|
|
722
|
+
*/
|
|
723
|
+
getTwoFactorEnabled(id: string): Promise<boolean>;
|
|
724
|
+
/**
|
|
725
|
+
* Locks a user account for a specified duration
|
|
726
|
+
*/
|
|
727
|
+
lock(id: string, lockoutDuration: number): Promise<void>;
|
|
728
|
+
/**
|
|
729
|
+
* Sets two-factor authentication status for a user
|
|
730
|
+
*/
|
|
731
|
+
setTwoFactorEnabled(id: string, enabled: boolean): Promise<void>;
|
|
732
|
+
/**
|
|
733
|
+
* Unlocks a user account
|
|
734
|
+
*/
|
|
735
|
+
unlock(id: string): Promise<void>;
|
|
736
|
+
/**
|
|
737
|
+
* Updates a user
|
|
738
|
+
*/
|
|
739
|
+
update(id: string, input: IdentityUserUpdateDto): Promise<IdentityUserDto>;
|
|
740
|
+
/**
|
|
741
|
+
* Updates claims for a user
|
|
742
|
+
*/
|
|
743
|
+
updateClaims(id: string, input: IdentityUserClaimDto[]): Promise<void>;
|
|
744
|
+
/**
|
|
745
|
+
* Updates password for a user (admin action)
|
|
746
|
+
*/
|
|
747
|
+
updatePassword(id: string, input: IdentityUserUpdatePasswordInput): Promise<void>;
|
|
748
|
+
/**
|
|
749
|
+
* Updates roles for a user
|
|
750
|
+
*/
|
|
751
|
+
updateRoles(id: string, input: IdentityUserUpdateRolesDto): Promise<void>;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Organization Unit Service (Proxy)
|
|
756
|
+
* Translated from @volo/abp.ng.identity OrganizationUnitService (proxy version)
|
|
757
|
+
* @since 3.2.0
|
|
758
|
+
*/
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Proxy service for managing organization units
|
|
762
|
+
* @since 3.2.0
|
|
763
|
+
*/
|
|
764
|
+
declare class OrganizationUnitService {
|
|
765
|
+
private restService;
|
|
766
|
+
apiName: string;
|
|
767
|
+
constructor(restService: RestService);
|
|
768
|
+
/**
|
|
769
|
+
* Adds members to an organization unit
|
|
770
|
+
*/
|
|
771
|
+
addMembers(id: string, input: OrganizationUnitUserInput): Promise<void>;
|
|
772
|
+
/**
|
|
773
|
+
* Adds roles to an organization unit
|
|
774
|
+
*/
|
|
775
|
+
addRoles(id: string, input: OrganizationUnitRoleInput): Promise<void>;
|
|
776
|
+
/**
|
|
777
|
+
* Creates a new organization unit
|
|
778
|
+
*/
|
|
779
|
+
create(input: OrganizationUnitCreateDto): Promise<OrganizationUnitWithDetailsDto>;
|
|
780
|
+
/**
|
|
781
|
+
* Deletes an organization unit
|
|
782
|
+
*/
|
|
783
|
+
delete(id: string): Promise<void>;
|
|
784
|
+
/**
|
|
785
|
+
* Gets an organization unit by ID
|
|
786
|
+
*/
|
|
787
|
+
get(id: string): Promise<OrganizationUnitWithDetailsDto>;
|
|
788
|
+
/**
|
|
789
|
+
* Gets available roles for an organization unit
|
|
790
|
+
*/
|
|
791
|
+
getAvailableRoles(input: GetAvailableRolesInput): Promise<PagedResultDto<IdentityRoleDto>>;
|
|
792
|
+
/**
|
|
793
|
+
* Gets available users for an organization unit
|
|
794
|
+
*/
|
|
795
|
+
getAvailableUsers(input: GetAvailableUsersInput): Promise<PagedResultDto<IdentityUserDto>>;
|
|
796
|
+
/**
|
|
797
|
+
* Gets a paginated list of organization units
|
|
798
|
+
*/
|
|
799
|
+
getList(input: GetOrganizationUnitInput): Promise<PagedResultDto<OrganizationUnitWithDetailsDto>>;
|
|
800
|
+
/**
|
|
801
|
+
* Gets all organization units without pagination
|
|
802
|
+
*/
|
|
803
|
+
getListAll(): Promise<ListResultDto<OrganizationUnitWithDetailsDto>>;
|
|
804
|
+
/**
|
|
805
|
+
* Gets members of an organization unit
|
|
806
|
+
*/
|
|
807
|
+
getMembers(id: string, input: GetIdentityUsersInput): Promise<PagedResultDto<IdentityUserDto>>;
|
|
808
|
+
/**
|
|
809
|
+
* Gets roles of an organization unit
|
|
810
|
+
*/
|
|
811
|
+
getRoles(id: string, input: PagedAndSortedResultRequestDto): Promise<PagedResultDto<IdentityRoleDto>>;
|
|
812
|
+
/**
|
|
813
|
+
* Moves an organization unit to a new parent
|
|
814
|
+
*/
|
|
815
|
+
move(id: string, input: OrganizationUnitMoveInput): Promise<void>;
|
|
816
|
+
/**
|
|
817
|
+
* Removes a member from an organization unit
|
|
818
|
+
*/
|
|
819
|
+
removeMember(id: string, memberId: string): Promise<void>;
|
|
820
|
+
/**
|
|
821
|
+
* Removes a role from an organization unit
|
|
822
|
+
*/
|
|
823
|
+
removeRole(id: string, roleId: string): Promise<void>;
|
|
824
|
+
/**
|
|
825
|
+
* Updates an organization unit
|
|
826
|
+
*/
|
|
827
|
+
update(id: string, input: OrganizationUnitUpdateDto): Promise<OrganizationUnitWithDetailsDto>;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Profile Service
|
|
832
|
+
* Translated from @volo/abp.ng.identity ProfileService
|
|
833
|
+
* @since 3.2.0
|
|
834
|
+
*/
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Service for managing user profile
|
|
838
|
+
* @since 3.2.0
|
|
839
|
+
*/
|
|
840
|
+
declare class ProfileService {
|
|
841
|
+
private restService;
|
|
842
|
+
apiName: string;
|
|
843
|
+
constructor(restService: RestService);
|
|
844
|
+
/**
|
|
845
|
+
* Changes the current user's password
|
|
846
|
+
*/
|
|
847
|
+
changePassword(input: ChangePasswordInput): Promise<void>;
|
|
848
|
+
/**
|
|
849
|
+
* Gets the current user's profile
|
|
850
|
+
*/
|
|
851
|
+
get(): Promise<ProfileDto>;
|
|
852
|
+
/**
|
|
853
|
+
* Gets the current user's two-factor authentication status
|
|
854
|
+
*/
|
|
855
|
+
getTwoFactorEnabled(): Promise<boolean>;
|
|
856
|
+
/**
|
|
857
|
+
* Sets the current user's two-factor authentication status
|
|
858
|
+
*/
|
|
859
|
+
setTwoFactorEnabled(enabled: boolean): Promise<void>;
|
|
860
|
+
/**
|
|
861
|
+
* Updates the current user's profile
|
|
862
|
+
*/
|
|
863
|
+
update(input: UpdateProfileDto): Promise<ProfileDto>;
|
|
864
|
+
}
|
|
865
|
+
|
|
196
866
|
/**
|
|
197
867
|
* Organization Unit With Details DTO
|
|
198
868
|
* Translated from @volo/abp.ng.identity v2.9.0
|
|
199
869
|
* @since 2.9.0
|
|
870
|
+
* @updated 3.2.0 - Re-exports from proxy/identity/models
|
|
200
871
|
*/
|
|
872
|
+
|
|
201
873
|
/**
|
|
202
|
-
*
|
|
203
|
-
*
|
|
874
|
+
* Legacy interface for backward compatibility.
|
|
875
|
+
* @deprecated Use OrganizationUnitWithDetailsDto from proxy/identity/models instead
|
|
204
876
|
*/
|
|
205
|
-
interface
|
|
877
|
+
interface LegacyOrganizationUnitWithDetailsDto {
|
|
206
878
|
/** Parent organization unit ID (null for root units) */
|
|
207
879
|
parentId?: string;
|
|
208
880
|
/** Hierarchical code of the organization unit (e.g., "00001.00002") */
|
|
@@ -234,8 +906,9 @@ interface OrganizationUnitWithDetailsDto {
|
|
|
234
906
|
* Factory function to create an OrganizationUnitWithDetailsDto with defaults.
|
|
235
907
|
* @param initialValues - Partial values to initialize the DTO
|
|
236
908
|
* @returns A new OrganizationUnitWithDetailsDto instance
|
|
909
|
+
* @deprecated Use the proxy types directly
|
|
237
910
|
*/
|
|
238
|
-
declare function createOrganizationUnitWithDetailsDto(initialValues?: Partial<
|
|
911
|
+
declare function createOrganizationUnitWithDetailsDto(initialValues?: Partial<LegacyOrganizationUnitWithDetailsDto>): LegacyOrganizationUnitWithDetailsDto;
|
|
239
912
|
|
|
240
913
|
/**
|
|
241
914
|
* Identity namespace containing all types related to identity management.
|
|
@@ -245,9 +918,19 @@ declare function createOrganizationUnitWithDetailsDto(initialValues?: Partial<Or
|
|
|
245
918
|
* - Claim type management
|
|
246
919
|
* - User/Role claims management
|
|
247
920
|
* - Organization unit management (v2.9.0)
|
|
921
|
+
* - Security logs (v3.1.0)
|
|
922
|
+
* - User lock functionality (v3.1.0)
|
|
248
923
|
*
|
|
249
924
|
* @since 0.7.2
|
|
250
925
|
* @updated 2.9.0 - Added organization units support
|
|
926
|
+
* @updated 3.1.0 - Added UserLockDurationType enum
|
|
927
|
+
* @updated 3.2.0 - Types deprecated, use proxy/identity/models instead
|
|
928
|
+
* @deprecated Types in this namespace are deprecated and will be removed in v4.0.
|
|
929
|
+
* Use the new typed DTOs from proxy/identity/models instead:
|
|
930
|
+
* - RoleItem -> IdentityRoleDto
|
|
931
|
+
* - UserItem -> IdentityUserDto
|
|
932
|
+
* - ClaimType -> ClaimTypeDto
|
|
933
|
+
* - etc.
|
|
251
934
|
*/
|
|
252
935
|
declare namespace Identity {
|
|
253
936
|
/**
|
|
@@ -270,10 +953,12 @@ declare namespace Identity {
|
|
|
270
953
|
}
|
|
271
954
|
/**
|
|
272
955
|
* Paginated response for roles
|
|
956
|
+
* @deprecated Use PagedResultDto<IdentityRoleDto> from proxy/identity/models instead
|
|
273
957
|
*/
|
|
274
958
|
type RoleResponse = ABP.PagedResponse<RoleItem>;
|
|
275
959
|
/**
|
|
276
960
|
* Request payload for creating/updating a role
|
|
961
|
+
* @deprecated Use IdentityRoleCreateDto or IdentityRoleUpdateDto from proxy/identity/models instead
|
|
277
962
|
*/
|
|
278
963
|
interface RoleSaveRequest {
|
|
279
964
|
name: string;
|
|
@@ -282,6 +967,7 @@ declare namespace Identity {
|
|
|
282
967
|
}
|
|
283
968
|
/**
|
|
284
969
|
* Role item returned from the API
|
|
970
|
+
* @deprecated Use IdentityRoleDto from proxy/identity/models instead
|
|
285
971
|
*/
|
|
286
972
|
interface RoleItem extends RoleSaveRequest {
|
|
287
973
|
isStatic: boolean;
|
|
@@ -290,10 +976,12 @@ declare namespace Identity {
|
|
|
290
976
|
}
|
|
291
977
|
/**
|
|
292
978
|
* Paginated response for users
|
|
979
|
+
* @deprecated Use PagedResultDto<IdentityUserDto> from proxy/identity/models instead
|
|
293
980
|
*/
|
|
294
981
|
type UserResponse = ABP.PagedResponse<UserItem>;
|
|
295
982
|
/**
|
|
296
983
|
* Base user properties
|
|
984
|
+
* @deprecated Use IdentityUserCreateOrUpdateDtoBase from proxy/identity/models instead
|
|
297
985
|
*/
|
|
298
986
|
interface User {
|
|
299
987
|
userName: string;
|
|
@@ -306,6 +994,7 @@ declare namespace Identity {
|
|
|
306
994
|
}
|
|
307
995
|
/**
|
|
308
996
|
* User item returned from the API
|
|
997
|
+
* @deprecated Use IdentityUserDto from proxy/identity/models instead
|
|
309
998
|
*/
|
|
310
999
|
interface UserItem extends User {
|
|
311
1000
|
tenantId: string;
|
|
@@ -318,6 +1007,7 @@ declare namespace Identity {
|
|
|
318
1007
|
/**
|
|
319
1008
|
* Request payload for creating/updating a user
|
|
320
1009
|
* @updated 2.9.0 - Added organizationUnitIds
|
|
1010
|
+
* @deprecated Use IdentityUserCreateDto or IdentityUserUpdateDto from proxy/identity/models instead
|
|
321
1011
|
*/
|
|
322
1012
|
interface UserSaveRequest extends User {
|
|
323
1013
|
password: string;
|
|
@@ -336,6 +1026,7 @@ declare namespace Identity {
|
|
|
336
1026
|
/**
|
|
337
1027
|
* Simple claim type name for dropdowns
|
|
338
1028
|
* Pro feature since 0.7.2
|
|
1029
|
+
* @deprecated Use ClaimTypeDto from proxy/identity/models instead
|
|
339
1030
|
*/
|
|
340
1031
|
interface ClaimTypeName {
|
|
341
1032
|
name: string;
|
|
@@ -343,6 +1034,7 @@ declare namespace Identity {
|
|
|
343
1034
|
/**
|
|
344
1035
|
* Full claim type definition
|
|
345
1036
|
* Pro feature since 0.7.2
|
|
1037
|
+
* @deprecated Use ClaimTypeDto from proxy/identity/models instead
|
|
346
1038
|
*/
|
|
347
1039
|
interface ClaimType {
|
|
348
1040
|
/** Optional ID for existing claim types */
|
|
@@ -367,6 +1059,7 @@ declare namespace Identity {
|
|
|
367
1059
|
/**
|
|
368
1060
|
* Claim request for assigning claims to users or roles
|
|
369
1061
|
* Pro feature since 0.7.2
|
|
1062
|
+
* @deprecated Use IdentityUserClaimDto or IdentityRoleClaimDto from proxy/identity/models instead
|
|
370
1063
|
*/
|
|
371
1064
|
interface ClaimRequest {
|
|
372
1065
|
/** User ID (for user claims) */
|
|
@@ -381,11 +1074,13 @@ declare namespace Identity {
|
|
|
381
1074
|
/**
|
|
382
1075
|
* Paginated response for claim types
|
|
383
1076
|
* Pro feature since 0.7.2
|
|
1077
|
+
* @deprecated Use PagedResultDto<ClaimTypeDto> from proxy/identity/models instead
|
|
384
1078
|
*/
|
|
385
1079
|
type ClaimResponse = ABP.PagedResponse<ClaimType>;
|
|
386
1080
|
/**
|
|
387
1081
|
* Value type enumeration for claim types
|
|
388
1082
|
* Pro feature since 0.7.2
|
|
1083
|
+
* @deprecated Use IdentityClaimValueType from proxy/identity/identity-claim-value-type.enum instead
|
|
389
1084
|
*/
|
|
390
1085
|
enum ClaimValueType {
|
|
391
1086
|
String = 0,
|
|
@@ -393,19 +1088,116 @@ declare namespace Identity {
|
|
|
393
1088
|
Boolean = 2,
|
|
394
1089
|
DateTime = 3
|
|
395
1090
|
}
|
|
1091
|
+
/**
|
|
1092
|
+
* User lock duration type enumeration (values in seconds)
|
|
1093
|
+
* Used for locking user accounts for a specified duration.
|
|
1094
|
+
* @since 3.1.0
|
|
1095
|
+
*/
|
|
1096
|
+
enum UserLockDurationType {
|
|
1097
|
+
Second = 1,
|
|
1098
|
+
Minute = 60,
|
|
1099
|
+
Hour = 3600,
|
|
1100
|
+
Day = 86400,
|
|
1101
|
+
Month = 2592000,
|
|
1102
|
+
Year = 31536000
|
|
1103
|
+
}
|
|
396
1104
|
}
|
|
397
1105
|
|
|
1106
|
+
/**
|
|
1107
|
+
* Identity Security Log Models
|
|
1108
|
+
* Types for security log management in the Identity module.
|
|
1109
|
+
* @since 3.1.0
|
|
1110
|
+
* @updated 3.2.0 - Re-exports from proxy/identity/models
|
|
1111
|
+
*/
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* Legacy security log data transfer object.
|
|
1115
|
+
* @since 3.1.0
|
|
1116
|
+
* @deprecated Use IdentitySecurityLogDto from proxy/identity/models instead
|
|
1117
|
+
*/
|
|
1118
|
+
interface LegacyIdentitySecurityLogDto {
|
|
1119
|
+
/** Unique identifier for the log entry */
|
|
1120
|
+
id: string;
|
|
1121
|
+
/** Tenant ID if applicable */
|
|
1122
|
+
tenantId?: string | null;
|
|
1123
|
+
/** Application name */
|
|
1124
|
+
applicationName?: string | null;
|
|
1125
|
+
/** Identity of the user (e.g., username) */
|
|
1126
|
+
identity?: string | null;
|
|
1127
|
+
/** The action performed (e.g., LoginSucceeded, LoginFailed) */
|
|
1128
|
+
action?: string | null;
|
|
1129
|
+
/** User ID if logged in */
|
|
1130
|
+
userId?: string | null;
|
|
1131
|
+
/** Username if available */
|
|
1132
|
+
userName?: string | null;
|
|
1133
|
+
/** Client IP address */
|
|
1134
|
+
clientIpAddress?: string | null;
|
|
1135
|
+
/** Client ID for OAuth clients */
|
|
1136
|
+
clientId?: string | null;
|
|
1137
|
+
/** Correlation ID for request tracing */
|
|
1138
|
+
correlationId?: string | null;
|
|
1139
|
+
/** Browser information (user agent) */
|
|
1140
|
+
browserInfo?: string | null;
|
|
1141
|
+
/** When the event occurred */
|
|
1142
|
+
creationTime: string;
|
|
1143
|
+
/** Extra properties dictionary */
|
|
1144
|
+
extraProperties?: Record<string, unknown>;
|
|
1145
|
+
}
|
|
1146
|
+
/**
|
|
1147
|
+
* Input parameters for querying security logs.
|
|
1148
|
+
* @since 3.1.0
|
|
1149
|
+
*/
|
|
1150
|
+
interface IdentitySecurityLogGetListInput {
|
|
1151
|
+
/** Filter term */
|
|
1152
|
+
filter?: string;
|
|
1153
|
+
/** Start date for date range filter */
|
|
1154
|
+
startTime?: string;
|
|
1155
|
+
/** End date for date range filter */
|
|
1156
|
+
endTime?: string;
|
|
1157
|
+
/** Application name filter */
|
|
1158
|
+
applicationName?: string;
|
|
1159
|
+
/** Identity filter */
|
|
1160
|
+
identity?: string;
|
|
1161
|
+
/** Action filter */
|
|
1162
|
+
action?: string;
|
|
1163
|
+
/** User ID filter */
|
|
1164
|
+
userId?: string;
|
|
1165
|
+
/** Username filter */
|
|
1166
|
+
userName?: string;
|
|
1167
|
+
/** Client ID filter */
|
|
1168
|
+
clientId?: string;
|
|
1169
|
+
/** Correlation ID filter */
|
|
1170
|
+
correlationId?: string;
|
|
1171
|
+
/** Sorting expression */
|
|
1172
|
+
sorting?: string;
|
|
1173
|
+
/** Number of items to skip */
|
|
1174
|
+
skipCount?: number;
|
|
1175
|
+
/** Maximum number of items to return */
|
|
1176
|
+
maxResultCount?: number;
|
|
1177
|
+
}
|
|
1178
|
+
/**
|
|
1179
|
+
* Paginated response for security logs.
|
|
1180
|
+
* @since 3.1.0
|
|
1181
|
+
*/
|
|
1182
|
+
type IdentitySecurityLogResponse = PagedResultDto<LegacyIdentitySecurityLogDto>;
|
|
1183
|
+
/**
|
|
1184
|
+
* Factory function to create a default IdentitySecurityLogGetListInput.
|
|
1185
|
+
* @since 3.1.0
|
|
1186
|
+
*/
|
|
1187
|
+
declare function createIdentitySecurityLogGetListInput(overrides?: Partial<IdentitySecurityLogGetListInput>): IdentitySecurityLogGetListInput;
|
|
1188
|
+
|
|
398
1189
|
/**
|
|
399
1190
|
* Get Organization Unit Input
|
|
400
1191
|
* Translated from @volo/abp.ng.identity v2.9.0
|
|
401
1192
|
* @since 2.9.0
|
|
1193
|
+
* @updated 3.2.0 - Re-exports from proxy/identity/models
|
|
402
1194
|
*/
|
|
403
1195
|
|
|
404
1196
|
/**
|
|
405
|
-
*
|
|
406
|
-
*
|
|
1197
|
+
* Legacy input parameters for querying organization units.
|
|
1198
|
+
* @deprecated Use GetOrganizationUnitInput from proxy/identity/models instead
|
|
407
1199
|
*/
|
|
408
|
-
interface
|
|
1200
|
+
interface LegacyGetOrganizationUnitInput extends PagedAndSortedResultRequestDto {
|
|
409
1201
|
/** Filter string for searching organization units */
|
|
410
1202
|
filter?: string;
|
|
411
1203
|
}
|
|
@@ -413,19 +1205,22 @@ interface GetOrganizationUnitInput extends PagedAndSortedResultRequestDto {
|
|
|
413
1205
|
* Factory function to create a GetOrganizationUnitInput with defaults.
|
|
414
1206
|
* @param initialValues - Partial values to initialize the input
|
|
415
1207
|
* @returns A new GetOrganizationUnitInput instance
|
|
1208
|
+
* @deprecated Use the proxy types directly
|
|
416
1209
|
*/
|
|
417
|
-
declare function createGetOrganizationUnitInput(initialValues?: Partial<
|
|
1210
|
+
declare function createGetOrganizationUnitInput(initialValues?: Partial<LegacyGetOrganizationUnitInput>): LegacyGetOrganizationUnitInput;
|
|
418
1211
|
|
|
419
1212
|
/**
|
|
420
1213
|
* Organization Unit Create/Update Base DTO
|
|
421
1214
|
* Translated from @volo/abp.ng.identity v2.9.0
|
|
422
1215
|
* @since 2.9.0
|
|
1216
|
+
* @updated 3.2.0 - Re-exports from proxy/identity/models
|
|
423
1217
|
*/
|
|
1218
|
+
|
|
424
1219
|
/**
|
|
425
|
-
*
|
|
426
|
-
*
|
|
1220
|
+
* Legacy base interface for creating or updating organization units.
|
|
1221
|
+
* @deprecated Use OrganizationUnitCreateOrUpdateDtoBase from proxy/identity/models instead
|
|
427
1222
|
*/
|
|
428
|
-
interface
|
|
1223
|
+
interface LegacyOrganizationUnitCreateOrUpdateDtoBase {
|
|
429
1224
|
/** Display name of the organization unit */
|
|
430
1225
|
displayName: string;
|
|
431
1226
|
}
|
|
@@ -433,20 +1228,22 @@ interface OrganizationUnitCreateOrUpdateDtoBase {
|
|
|
433
1228
|
* Factory function to create an OrganizationUnitCreateOrUpdateDtoBase with defaults.
|
|
434
1229
|
* @param initialValues - Partial values to initialize the DTO
|
|
435
1230
|
* @returns A new OrganizationUnitCreateOrUpdateDtoBase instance
|
|
1231
|
+
* @deprecated Use the proxy types directly
|
|
436
1232
|
*/
|
|
437
|
-
declare function createOrganizationUnitCreateOrUpdateDtoBase(initialValues?: Partial<
|
|
1233
|
+
declare function createOrganizationUnitCreateOrUpdateDtoBase(initialValues?: Partial<LegacyOrganizationUnitCreateOrUpdateDtoBase>): LegacyOrganizationUnitCreateOrUpdateDtoBase;
|
|
438
1234
|
|
|
439
1235
|
/**
|
|
440
1236
|
* Organization Unit Create DTO
|
|
441
1237
|
* Translated from @volo/abp.ng.identity v2.9.0
|
|
442
1238
|
* @since 2.9.0
|
|
1239
|
+
* @updated 3.2.0 - Re-exports from proxy/identity/models
|
|
443
1240
|
*/
|
|
444
1241
|
|
|
445
1242
|
/**
|
|
446
|
-
* DTO for creating a new organization unit.
|
|
447
|
-
*
|
|
1243
|
+
* Legacy DTO for creating a new organization unit.
|
|
1244
|
+
* @deprecated Use OrganizationUnitCreateDto from proxy/identity/models instead
|
|
448
1245
|
*/
|
|
449
|
-
interface
|
|
1246
|
+
interface LegacyOrganizationUnitCreateDto extends LegacyOrganizationUnitCreateOrUpdateDtoBase {
|
|
450
1247
|
/** Parent organization unit ID (optional, null for root units) */
|
|
451
1248
|
parentId?: string;
|
|
452
1249
|
/** Extra properties for extensibility */
|
|
@@ -456,19 +1253,22 @@ interface OrganizationUnitCreateDto extends OrganizationUnitCreateOrUpdateDtoBas
|
|
|
456
1253
|
* Factory function to create an OrganizationUnitCreateDto with defaults.
|
|
457
1254
|
* @param initialValues - Partial values to initialize the DTO
|
|
458
1255
|
* @returns A new OrganizationUnitCreateDto instance
|
|
1256
|
+
* @deprecated Use the proxy types directly
|
|
459
1257
|
*/
|
|
460
|
-
declare function createOrganizationUnitCreateDto(initialValues?: Partial<
|
|
1258
|
+
declare function createOrganizationUnitCreateDto(initialValues?: Partial<LegacyOrganizationUnitCreateDto>): LegacyOrganizationUnitCreateDto;
|
|
461
1259
|
|
|
462
1260
|
/**
|
|
463
1261
|
* Organization Unit Move Input
|
|
464
1262
|
* Translated from @volo/abp.ng.identity v2.9.0
|
|
465
1263
|
* @since 2.9.0
|
|
1264
|
+
* @updated 3.2.0 - Re-exports from proxy/identity/models
|
|
466
1265
|
*/
|
|
1266
|
+
|
|
467
1267
|
/**
|
|
468
|
-
*
|
|
469
|
-
*
|
|
1268
|
+
* Legacy input for moving an organization unit to a new parent.
|
|
1269
|
+
* @deprecated Use OrganizationUnitMoveInput from proxy/identity/models instead
|
|
470
1270
|
*/
|
|
471
|
-
interface
|
|
1271
|
+
interface LegacyOrganizationUnitMoveInput {
|
|
472
1272
|
/** New parent organization unit ID (null to move to root level) */
|
|
473
1273
|
newParentId?: string;
|
|
474
1274
|
}
|
|
@@ -476,19 +1276,22 @@ interface OrganizationUnitMoveInput {
|
|
|
476
1276
|
* Factory function to create an OrganizationUnitMoveInput with defaults.
|
|
477
1277
|
* @param initialValues - Partial values to initialize the input
|
|
478
1278
|
* @returns A new OrganizationUnitMoveInput instance
|
|
1279
|
+
* @deprecated Use the proxy types directly
|
|
479
1280
|
*/
|
|
480
|
-
declare function createOrganizationUnitMoveInput(initialValues?: Partial<
|
|
1281
|
+
declare function createOrganizationUnitMoveInput(initialValues?: Partial<LegacyOrganizationUnitMoveInput>): LegacyOrganizationUnitMoveInput;
|
|
481
1282
|
|
|
482
1283
|
/**
|
|
483
1284
|
* Organization Unit Role Input
|
|
484
1285
|
* Translated from @volo/abp.ng.identity v2.9.0
|
|
485
1286
|
* @since 2.9.0
|
|
1287
|
+
* @updated 3.2.0 - Re-exports from proxy/identity/models
|
|
486
1288
|
*/
|
|
1289
|
+
|
|
487
1290
|
/**
|
|
488
|
-
*
|
|
489
|
-
*
|
|
1291
|
+
* Legacy input for adding roles to an organization unit.
|
|
1292
|
+
* @deprecated Use OrganizationUnitRoleInput from proxy/identity/models instead
|
|
490
1293
|
*/
|
|
491
|
-
interface
|
|
1294
|
+
interface LegacyOrganizationUnitRoleInput {
|
|
492
1295
|
/** Array of role IDs to add to the organization unit */
|
|
493
1296
|
roleIds: string[];
|
|
494
1297
|
}
|
|
@@ -496,20 +1299,22 @@ interface OrganizationUnitRoleInput {
|
|
|
496
1299
|
* Factory function to create an OrganizationUnitRoleInput with defaults.
|
|
497
1300
|
* @param initialValues - Partial values to initialize the input
|
|
498
1301
|
* @returns A new OrganizationUnitRoleInput instance
|
|
1302
|
+
* @deprecated Use the proxy types directly
|
|
499
1303
|
*/
|
|
500
|
-
declare function createOrganizationUnitRoleInput(initialValues?: Partial<
|
|
1304
|
+
declare function createOrganizationUnitRoleInput(initialValues?: Partial<LegacyOrganizationUnitRoleInput>): LegacyOrganizationUnitRoleInput;
|
|
501
1305
|
|
|
502
1306
|
/**
|
|
503
1307
|
* Organization Unit Update DTO
|
|
504
1308
|
* Translated from @volo/abp.ng.identity v2.9.0
|
|
505
1309
|
* @since 2.9.0
|
|
1310
|
+
* @updated 3.2.0 - Re-exports from proxy/identity/models
|
|
506
1311
|
*/
|
|
507
1312
|
|
|
508
1313
|
/**
|
|
509
|
-
* DTO for updating an existing organization unit.
|
|
510
|
-
*
|
|
1314
|
+
* Legacy DTO for updating an existing organization unit.
|
|
1315
|
+
* @deprecated Use OrganizationUnitUpdateDto from proxy/identity/models instead
|
|
511
1316
|
*/
|
|
512
|
-
interface
|
|
1317
|
+
interface LegacyOrganizationUnitUpdateDto extends LegacyOrganizationUnitCreateOrUpdateDtoBase {
|
|
513
1318
|
/** Extra properties for extensibility */
|
|
514
1319
|
extraProperties?: unknown[];
|
|
515
1320
|
}
|
|
@@ -517,19 +1322,22 @@ interface OrganizationUnitUpdateDto extends OrganizationUnitCreateOrUpdateDtoBas
|
|
|
517
1322
|
* Factory function to create an OrganizationUnitUpdateDto with defaults.
|
|
518
1323
|
* @param initialValues - Partial values to initialize the DTO
|
|
519
1324
|
* @returns A new OrganizationUnitUpdateDto instance
|
|
1325
|
+
* @deprecated Use the proxy types directly
|
|
520
1326
|
*/
|
|
521
|
-
declare function createOrganizationUnitUpdateDto(initialValues?: Partial<
|
|
1327
|
+
declare function createOrganizationUnitUpdateDto(initialValues?: Partial<LegacyOrganizationUnitUpdateDto>): LegacyOrganizationUnitUpdateDto;
|
|
522
1328
|
|
|
523
1329
|
/**
|
|
524
1330
|
* Organization Unit User Input
|
|
525
1331
|
* Translated from @volo/abp.ng.identity v2.9.0
|
|
526
1332
|
* @since 2.9.0
|
|
1333
|
+
* @updated 3.2.0 - Re-exports from proxy/identity/models
|
|
527
1334
|
*/
|
|
1335
|
+
|
|
528
1336
|
/**
|
|
529
|
-
*
|
|
530
|
-
*
|
|
1337
|
+
* Legacy input for adding users (members) to an organization unit.
|
|
1338
|
+
* @deprecated Use OrganizationUnitUserInput from proxy/identity/models instead
|
|
531
1339
|
*/
|
|
532
|
-
interface
|
|
1340
|
+
interface LegacyOrganizationUnitUserInput {
|
|
533
1341
|
/** Array of user IDs to add to the organization unit */
|
|
534
1342
|
userIds: string[];
|
|
535
1343
|
}
|
|
@@ -537,12 +1345,13 @@ interface OrganizationUnitUserInput {
|
|
|
537
1345
|
* Factory function to create an OrganizationUnitUserInput with defaults.
|
|
538
1346
|
* @param initialValues - Partial values to initialize the input
|
|
539
1347
|
* @returns A new OrganizationUnitUserInput instance
|
|
1348
|
+
* @deprecated Use the proxy types directly
|
|
540
1349
|
*/
|
|
541
|
-
declare function createOrganizationUnitUserInput(initialValues?: Partial<
|
|
1350
|
+
declare function createOrganizationUnitUserInput(initialValues?: Partial<LegacyOrganizationUnitUserInput>): LegacyOrganizationUnitUserInput;
|
|
542
1351
|
|
|
543
1352
|
/**
|
|
544
1353
|
* Identity Pro Component Identifiers
|
|
545
|
-
* Translated from @volo/abp.ng.identity
|
|
1354
|
+
* Translated from @volo/abp.ng.identity v3.1.0
|
|
546
1355
|
*/
|
|
547
1356
|
/**
|
|
548
1357
|
* Enum-like const object for identity component identifiers.
|
|
@@ -550,6 +1359,7 @@ declare function createOrganizationUnitUserInput(initialValues?: Partial<Organiz
|
|
|
550
1359
|
* @since 2.4.0
|
|
551
1360
|
* @updated 2.7.0 - Changed from enum to const object
|
|
552
1361
|
* @updated 2.9.0 - Added OrganizationUnits, OrganizationMembers, OrganizationRoles
|
|
1362
|
+
* @updated 3.1.0 - Added SecurityLogs
|
|
553
1363
|
*/
|
|
554
1364
|
declare const eIdentityComponents: {
|
|
555
1365
|
readonly Claims: "Identity.ClaimsComponent";
|
|
@@ -558,12 +1368,42 @@ declare const eIdentityComponents: {
|
|
|
558
1368
|
readonly OrganizationUnits: "Identity.OrganizationUnitsComponent";
|
|
559
1369
|
readonly OrganizationMembers: "Identity.OrganizationMembersComponent";
|
|
560
1370
|
readonly OrganizationRoles: "Identity.OrganizationRolesComponent";
|
|
1371
|
+
/** Security logs component (v3.1.0) */
|
|
1372
|
+
readonly SecurityLogs: "Identity.SecurityLogs";
|
|
561
1373
|
};
|
|
562
1374
|
/**
|
|
563
1375
|
* Type for identity component key values
|
|
564
1376
|
*/
|
|
565
1377
|
type IdentityComponentKey = (typeof eIdentityComponents)[keyof typeof eIdentityComponents];
|
|
566
1378
|
|
|
1379
|
+
/**
|
|
1380
|
+
* Two-factor authentication behaviour options
|
|
1381
|
+
* Translated from @volo/abp.ng.identity eIdentityTwoFactorBehaviour
|
|
1382
|
+
* @since 3.2.0
|
|
1383
|
+
*/
|
|
1384
|
+
declare enum eIdentityTwoFactorBehaviour {
|
|
1385
|
+
/** Two-factor authentication is optional for users */
|
|
1386
|
+
Optional = 0,
|
|
1387
|
+
/** Two-factor authentication is disabled */
|
|
1388
|
+
Disabled = 1,
|
|
1389
|
+
/** Two-factor authentication is required for all users */
|
|
1390
|
+
Forced = 2
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* Options array for two-factor behaviour select components
|
|
1394
|
+
* @since 3.2.0
|
|
1395
|
+
*/
|
|
1396
|
+
declare const identityTwoFactorBehaviourOptions: readonly [{
|
|
1397
|
+
readonly label: "Optional";
|
|
1398
|
+
readonly value: eIdentityTwoFactorBehaviour.Optional;
|
|
1399
|
+
}, {
|
|
1400
|
+
readonly label: "Disabled";
|
|
1401
|
+
readonly value: eIdentityTwoFactorBehaviour.Disabled;
|
|
1402
|
+
}, {
|
|
1403
|
+
readonly label: "Forced";
|
|
1404
|
+
readonly value: eIdentityTwoFactorBehaviour.Forced;
|
|
1405
|
+
}];
|
|
1406
|
+
|
|
567
1407
|
/**
|
|
568
1408
|
* Identity Extensions Guard
|
|
569
1409
|
* Guard for loading identity extensions before route activation.
|
|
@@ -616,9 +1456,11 @@ declare class IdentityExtensionsGuard {
|
|
|
616
1456
|
* Pro features include:
|
|
617
1457
|
* - Claim type management
|
|
618
1458
|
* - User/Role claims management
|
|
1459
|
+
* - User lock functionality (v3.1.0)
|
|
619
1460
|
*
|
|
620
1461
|
* Translated from @volo/abp.ng.identity IdentityService
|
|
621
1462
|
* @since 2.0.0
|
|
1463
|
+
* @updated 3.1.0 - Added getUserAvailableOrganizationUnits, lockUser methods
|
|
622
1464
|
*/
|
|
623
1465
|
declare class IdentityService {
|
|
624
1466
|
/**
|
|
@@ -730,6 +1572,20 @@ declare class IdentityService {
|
|
|
730
1572
|
* @returns Promise with roles that can be assigned to users
|
|
731
1573
|
*/
|
|
732
1574
|
getUserAssingableRoles(): Promise<Identity.RoleResponse>;
|
|
1575
|
+
/**
|
|
1576
|
+
* Get available organization units for user assignment
|
|
1577
|
+
* @since 3.1.0
|
|
1578
|
+
* @returns Promise with available organization units
|
|
1579
|
+
*/
|
|
1580
|
+
getUserAvailableOrganizationUnits(): Promise<PagedResultDto<OrganizationUnitWithDetailsDto>>;
|
|
1581
|
+
/**
|
|
1582
|
+
* Lock a user for a specified duration
|
|
1583
|
+
* @since 3.1.0
|
|
1584
|
+
* @param id - The user ID to lock
|
|
1585
|
+
* @param lockoutDurationInSeconds - Duration to lock the user (in seconds)
|
|
1586
|
+
* @returns Promise resolving when complete
|
|
1587
|
+
*/
|
|
1588
|
+
lockUser(id: string, lockoutDurationInSeconds: number): Promise<void>;
|
|
733
1589
|
/**
|
|
734
1590
|
* Get claim types available for roles
|
|
735
1591
|
* @since 3.0.0
|
|
@@ -970,13 +1826,66 @@ declare class IdentityStateService {
|
|
|
970
1826
|
}
|
|
971
1827
|
|
|
972
1828
|
/**
|
|
973
|
-
*
|
|
974
|
-
*
|
|
975
|
-
*
|
|
976
|
-
|
|
1829
|
+
* Identity Security Log Service
|
|
1830
|
+
* @since 3.1.0
|
|
1831
|
+
* @updated 3.2.0 - New proxy service re-exported, legacy service renamed
|
|
1832
|
+
*/
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* Legacy service for managing identity security log API operations.
|
|
1836
|
+
* @deprecated Use IdentitySecurityLogService from proxy/identity instead
|
|
1837
|
+
* @since 3.1.0
|
|
1838
|
+
*/
|
|
1839
|
+
declare class LegacyIdentitySecurityLogService {
|
|
1840
|
+
/**
|
|
1841
|
+
* The API name used for REST requests.
|
|
1842
|
+
*/
|
|
1843
|
+
apiName: string;
|
|
1844
|
+
private rest;
|
|
1845
|
+
constructor(rest: RestService);
|
|
1846
|
+
/**
|
|
1847
|
+
* Get security logs with filtering and pagination.
|
|
1848
|
+
* Requires AbpIdentity.SecurityLogs permission.
|
|
1849
|
+
* @param params - Query parameters for filtering and pagination
|
|
1850
|
+
* @returns Promise with paginated security logs
|
|
1851
|
+
*/
|
|
1852
|
+
getListByInput(params?: Partial<IdentitySecurityLogGetListInput>): Promise<PagedResultDto<LegacyIdentitySecurityLogDto>>;
|
|
1853
|
+
/**
|
|
1854
|
+
* Get a single security log by ID.
|
|
1855
|
+
* Requires AbpIdentity.SecurityLogs permission.
|
|
1856
|
+
* @param id - The security log ID
|
|
1857
|
+
* @returns Promise with the security log details
|
|
1858
|
+
*/
|
|
1859
|
+
getById(id: string): Promise<LegacyIdentitySecurityLogDto>;
|
|
1860
|
+
/**
|
|
1861
|
+
* Get security logs for the current user.
|
|
1862
|
+
* This method allows users to view their own security logs without
|
|
1863
|
+
* requiring the full AbpIdentity.SecurityLogs permission.
|
|
1864
|
+
* @param params - Query parameters for filtering and pagination
|
|
1865
|
+
* @returns Promise with paginated security logs for current user
|
|
1866
|
+
*/
|
|
1867
|
+
getMyListByInput(params?: Partial<IdentitySecurityLogGetListInput>): Promise<PagedResultDto<LegacyIdentitySecurityLogDto>>;
|
|
1868
|
+
/**
|
|
1869
|
+
* Get a single security log by ID for the current user.
|
|
1870
|
+
* This method allows users to view details of their own security logs.
|
|
1871
|
+
* @param id - The security log ID
|
|
1872
|
+
* @returns Promise with the security log details
|
|
1873
|
+
*/
|
|
1874
|
+
getMyById(id: string): Promise<LegacyIdentitySecurityLogDto>;
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
/**
|
|
1878
|
+
* Organization Unit Service
|
|
977
1879
|
* @since 2.9.0
|
|
1880
|
+
* @updated 3.2.0 - New proxy service re-exported, legacy service renamed
|
|
978
1881
|
*/
|
|
979
|
-
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* Legacy service for managing organization unit operations.
|
|
1885
|
+
* @deprecated Use OrganizationUnitService from proxy/identity instead
|
|
1886
|
+
* @since 2.9.0
|
|
1887
|
+
*/
|
|
1888
|
+
declare class LegacyOrganizationUnitService {
|
|
980
1889
|
/**
|
|
981
1890
|
* The API name used for REST requests.
|
|
982
1891
|
*/
|
|
@@ -989,20 +1898,20 @@ declare class OrganizationUnitService {
|
|
|
989
1898
|
* @param id - The organization unit ID
|
|
990
1899
|
* @returns Promise resolving when complete
|
|
991
1900
|
*/
|
|
992
|
-
addRolesByIdAndInput(body:
|
|
1901
|
+
addRolesByIdAndInput(body: LegacyOrganizationUnitRoleInput, id: string): Promise<void>;
|
|
993
1902
|
/**
|
|
994
1903
|
* Add members (users) to an organization unit
|
|
995
1904
|
* @param body - The user IDs to add
|
|
996
1905
|
* @param id - The organization unit ID
|
|
997
1906
|
* @returns Promise resolving when complete
|
|
998
1907
|
*/
|
|
999
|
-
addMembersByIdAndInput(body:
|
|
1908
|
+
addMembersByIdAndInput(body: LegacyOrganizationUnitUserInput, id: string): Promise<void>;
|
|
1000
1909
|
/**
|
|
1001
1910
|
* Create a new organization unit
|
|
1002
1911
|
* @param body - The organization unit data
|
|
1003
1912
|
* @returns Promise with the created organization unit
|
|
1004
1913
|
*/
|
|
1005
|
-
createByInput(body:
|
|
1914
|
+
createByInput(body: LegacyOrganizationUnitCreateDto): Promise<LegacyOrganizationUnitWithDetailsDto>;
|
|
1006
1915
|
/**
|
|
1007
1916
|
* Delete an organization unit
|
|
1008
1917
|
* @param id - The organization unit ID to delete
|
|
@@ -1014,13 +1923,13 @@ declare class OrganizationUnitService {
|
|
|
1014
1923
|
* @param id - The organization unit ID
|
|
1015
1924
|
* @returns Promise with the organization unit
|
|
1016
1925
|
*/
|
|
1017
|
-
getById(id: string): Promise<
|
|
1926
|
+
getById(id: string): Promise<LegacyOrganizationUnitWithDetailsDto>;
|
|
1018
1927
|
/**
|
|
1019
1928
|
* Get organization units with optional filtering and pagination
|
|
1020
1929
|
* @param params - Query parameters for filtering and pagination
|
|
1021
1930
|
* @returns Promise with paginated organization units
|
|
1022
1931
|
*/
|
|
1023
|
-
getListByInput(params?:
|
|
1932
|
+
getListByInput(params?: LegacyGetOrganizationUnitInput): Promise<PagedResultDto<LegacyOrganizationUnitWithDetailsDto>>;
|
|
1024
1933
|
/**
|
|
1025
1934
|
* Get roles assigned to an organization unit
|
|
1026
1935
|
* @param params - Query parameters for pagination
|
|
@@ -1041,14 +1950,14 @@ declare class OrganizationUnitService {
|
|
|
1041
1950
|
* @param id - The organization unit ID to move
|
|
1042
1951
|
* @returns Promise resolving when complete
|
|
1043
1952
|
*/
|
|
1044
|
-
moveByIdAndInput(body:
|
|
1953
|
+
moveByIdAndInput(body: LegacyOrganizationUnitMoveInput, id: string): Promise<void>;
|
|
1045
1954
|
/**
|
|
1046
1955
|
* Update an organization unit
|
|
1047
1956
|
* @param body - The updated organization unit data
|
|
1048
1957
|
* @param id - The organization unit ID to update
|
|
1049
1958
|
* @returns Promise with the updated organization unit
|
|
1050
1959
|
*/
|
|
1051
|
-
updateByIdAndInput(body:
|
|
1960
|
+
updateByIdAndInput(body: LegacyOrganizationUnitUpdateDto, id: string): Promise<LegacyOrganizationUnitWithDetailsDto>;
|
|
1052
1961
|
/**
|
|
1053
1962
|
* Remove a member (user) from an organization unit
|
|
1054
1963
|
* @param id - The organization unit ID
|
|
@@ -1608,6 +2517,7 @@ declare const IDENTITY_POLICIES: {
|
|
|
1608
2517
|
* Identity Extension Tokens
|
|
1609
2518
|
* Provides extension points for customizing identity components.
|
|
1610
2519
|
* @since 3.0.0
|
|
2520
|
+
* @updated 3.1.0 - Added SecurityLogs extensions
|
|
1611
2521
|
*/
|
|
1612
2522
|
|
|
1613
2523
|
/**
|
|
@@ -1696,6 +2606,12 @@ declare const DEFAULT_ORGANIZATION_MEMBERS_ENTITY_ACTIONS: EntityAction<Identity
|
|
|
1696
2606
|
* Default entity actions for Organization Roles component.
|
|
1697
2607
|
*/
|
|
1698
2608
|
declare const DEFAULT_ORGANIZATION_ROLES_ENTITY_ACTIONS: EntityAction<Identity.RoleItem>[];
|
|
2609
|
+
/**
|
|
2610
|
+
* Default entity actions for Security Logs component.
|
|
2611
|
+
* Security logs are read-only, so no actions by default.
|
|
2612
|
+
* @since 3.1.0
|
|
2613
|
+
*/
|
|
2614
|
+
declare const DEFAULT_SECURITY_LOGS_ENTITY_ACTIONS: EntityAction<IdentitySecurityLogDto>[];
|
|
1699
2615
|
/**
|
|
1700
2616
|
* Combined default identity entity actions.
|
|
1701
2617
|
*/
|
|
@@ -1705,6 +2621,8 @@ declare const DEFAULT_IDENTITY_ENTITY_ACTIONS: {
|
|
|
1705
2621
|
readonly 'Identity.UsersComponent': EntityAction<Identity.UserItem>[];
|
|
1706
2622
|
readonly 'Identity.OrganizationMembersComponent': EntityAction<Identity.UserItem>[];
|
|
1707
2623
|
readonly 'Identity.OrganizationRolesComponent': EntityAction<Identity.RoleItem>[];
|
|
2624
|
+
/** Security logs entity actions (v3.1.0) */
|
|
2625
|
+
readonly 'Identity.SecurityLogs': EntityAction<IdentitySecurityLogDto>[];
|
|
1708
2626
|
};
|
|
1709
2627
|
/**
|
|
1710
2628
|
* Default toolbar actions for Claims component.
|
|
@@ -1722,6 +2640,12 @@ declare const DEFAULT_USERS_TOOLBAR_ACTIONS: ToolbarAction<Identity.UserItem[]>[
|
|
|
1722
2640
|
* Default toolbar actions for Organization Units component.
|
|
1723
2641
|
*/
|
|
1724
2642
|
declare const DEFAULT_ORGANIZATION_UNITS_TOOLBAR_ACTIONS: ToolbarAction<OrganizationUnitWithDetailsDto[]>[];
|
|
2643
|
+
/**
|
|
2644
|
+
* Default toolbar actions for Security Logs component.
|
|
2645
|
+
* Security logs are read-only, no create action by default.
|
|
2646
|
+
* @since 3.1.0
|
|
2647
|
+
*/
|
|
2648
|
+
declare const DEFAULT_SECURITY_LOGS_TOOLBAR_ACTIONS: ToolbarAction<IdentitySecurityLogDto[]>[];
|
|
1725
2649
|
/**
|
|
1726
2650
|
* Combined default identity toolbar actions.
|
|
1727
2651
|
*/
|
|
@@ -1730,6 +2654,8 @@ declare const DEFAULT_IDENTITY_TOOLBAR_ACTIONS: {
|
|
|
1730
2654
|
readonly 'Identity.RolesComponent': ToolbarAction<Identity.RoleItem[]>[];
|
|
1731
2655
|
readonly 'Identity.UsersComponent': ToolbarAction<Identity.UserItem[]>[];
|
|
1732
2656
|
readonly 'Identity.OrganizationUnitsComponent': ToolbarAction<OrganizationUnitWithDetailsDto[]>[];
|
|
2657
|
+
/** Security logs toolbar actions (v3.1.0) */
|
|
2658
|
+
readonly 'Identity.SecurityLogs': ToolbarAction<IdentitySecurityLogDto[]>[];
|
|
1733
2659
|
};
|
|
1734
2660
|
/**
|
|
1735
2661
|
* Default entity props for Claims component.
|
|
@@ -1751,6 +2677,11 @@ declare const DEFAULT_ORGANIZATION_MEMBERS_ENTITY_PROPS: EntityProp<Identity.Use
|
|
|
1751
2677
|
* Default entity props for Organization Roles component.
|
|
1752
2678
|
*/
|
|
1753
2679
|
declare const DEFAULT_ORGANIZATION_ROLES_ENTITY_PROPS: EntityProp<Identity.RoleItem>[];
|
|
2680
|
+
/**
|
|
2681
|
+
* Default entity props for Security Logs component.
|
|
2682
|
+
* @since 3.1.0
|
|
2683
|
+
*/
|
|
2684
|
+
declare const DEFAULT_SECURITY_LOGS_ENTITY_PROPS: EntityProp<IdentitySecurityLogDto>[];
|
|
1754
2685
|
/**
|
|
1755
2686
|
* Combined default identity entity props.
|
|
1756
2687
|
*/
|
|
@@ -1760,6 +2691,8 @@ declare const DEFAULT_IDENTITY_ENTITY_PROPS: {
|
|
|
1760
2691
|
readonly 'Identity.UsersComponent': EntityProp<Identity.UserItem>[];
|
|
1761
2692
|
readonly 'Identity.OrganizationMembersComponent': EntityProp<Identity.UserItem>[];
|
|
1762
2693
|
readonly 'Identity.OrganizationRolesComponent': EntityProp<Identity.RoleItem>[];
|
|
2694
|
+
/** Security logs entity props (v3.1.0) */
|
|
2695
|
+
readonly 'Identity.SecurityLogs': EntityProp<IdentitySecurityLogDto>[];
|
|
1763
2696
|
};
|
|
1764
2697
|
/**
|
|
1765
2698
|
* Default create form props for Claims component.
|
|
@@ -1803,6 +2736,7 @@ declare const DEFAULT_IDENTITY_EDIT_FORM_PROPS: {
|
|
|
1803
2736
|
};
|
|
1804
2737
|
/**
|
|
1805
2738
|
* Entity action contributors type.
|
|
2739
|
+
* @updated 3.1.0 - Added SecurityLogs
|
|
1806
2740
|
*/
|
|
1807
2741
|
type IdentityEntityActionContributors = Partial<{
|
|
1808
2742
|
[eIdentityComponents.Claims]: EntityActionContributorCallback<Identity.ClaimType>[];
|
|
@@ -1810,18 +2744,22 @@ type IdentityEntityActionContributors = Partial<{
|
|
|
1810
2744
|
[eIdentityComponents.Users]: EntityActionContributorCallback<Identity.UserItem>[];
|
|
1811
2745
|
[eIdentityComponents.OrganizationMembers]: EntityActionContributorCallback<Identity.UserItem>[];
|
|
1812
2746
|
[eIdentityComponents.OrganizationRoles]: EntityActionContributorCallback<Identity.RoleItem>[];
|
|
2747
|
+
[eIdentityComponents.SecurityLogs]: EntityActionContributorCallback<IdentitySecurityLogDto>[];
|
|
1813
2748
|
}>;
|
|
1814
2749
|
/**
|
|
1815
2750
|
* Toolbar action contributors type.
|
|
2751
|
+
* @updated 3.1.0 - Added SecurityLogs
|
|
1816
2752
|
*/
|
|
1817
2753
|
type IdentityToolbarActionContributors = Partial<{
|
|
1818
2754
|
[eIdentityComponents.Claims]: ToolbarActionContributorCallback<Identity.ClaimType[]>[];
|
|
1819
2755
|
[eIdentityComponents.Roles]: ToolbarActionContributorCallback<Identity.RoleItem[]>[];
|
|
1820
2756
|
[eIdentityComponents.Users]: ToolbarActionContributorCallback<Identity.UserItem[]>[];
|
|
1821
2757
|
[eIdentityComponents.OrganizationUnits]: ToolbarActionContributorCallback<OrganizationUnitWithDetailsDto[]>[];
|
|
2758
|
+
[eIdentityComponents.SecurityLogs]: ToolbarActionContributorCallback<IdentitySecurityLogDto[]>[];
|
|
1822
2759
|
}>;
|
|
1823
2760
|
/**
|
|
1824
2761
|
* Entity prop contributors type.
|
|
2762
|
+
* @updated 3.1.0 - Added SecurityLogs
|
|
1825
2763
|
*/
|
|
1826
2764
|
type IdentityEntityPropContributors = Partial<{
|
|
1827
2765
|
[eIdentityComponents.Claims]: EntityPropContributorCallback<Identity.ClaimType>[];
|
|
@@ -1829,6 +2767,7 @@ type IdentityEntityPropContributors = Partial<{
|
|
|
1829
2767
|
[eIdentityComponents.Users]: EntityPropContributorCallback<Identity.UserItem>[];
|
|
1830
2768
|
[eIdentityComponents.OrganizationMembers]: EntityPropContributorCallback<Identity.UserItem>[];
|
|
1831
2769
|
[eIdentityComponents.OrganizationRoles]: EntityPropContributorCallback<Identity.RoleItem>[];
|
|
2770
|
+
[eIdentityComponents.SecurityLogs]: EntityPropContributorCallback<IdentitySecurityLogDto>[];
|
|
1832
2771
|
}>;
|
|
1833
2772
|
/**
|
|
1834
2773
|
* Create form prop contributors type.
|
|
@@ -2032,4 +2971,4 @@ declare class TreeAdapter<T extends BaseNode = BaseNode> {
|
|
|
2032
2971
|
expandPathToNode(id: string): void;
|
|
2033
2972
|
}
|
|
2034
2973
|
|
|
2035
|
-
export { type BaseNode, ClaimModal, type ClaimModalProps, type ClaimOperationResult, ClaimsComponent, type ClaimsComponentProps, type CreateFormPropContributorCallback, DEFAULT_CLAIMS_CREATE_FORM_PROPS, DEFAULT_CLAIMS_EDIT_FORM_PROPS, DEFAULT_CLAIMS_ENTITY_ACTIONS, DEFAULT_CLAIMS_ENTITY_PROPS, DEFAULT_CLAIMS_TOOLBAR_ACTIONS, DEFAULT_IDENTITY_CREATE_FORM_PROPS, DEFAULT_IDENTITY_EDIT_FORM_PROPS, DEFAULT_IDENTITY_ENTITY_ACTIONS, DEFAULT_IDENTITY_ENTITY_PROPS, DEFAULT_IDENTITY_TOOLBAR_ACTIONS, DEFAULT_ORGANIZATION_MEMBERS_ENTITY_ACTIONS, DEFAULT_ORGANIZATION_MEMBERS_ENTITY_PROPS, DEFAULT_ORGANIZATION_ROLES_ENTITY_ACTIONS, DEFAULT_ORGANIZATION_ROLES_ENTITY_PROPS, DEFAULT_ORGANIZATION_UNITS_TOOLBAR_ACTIONS, DEFAULT_ROLES_CREATE_FORM_PROPS, DEFAULT_ROLES_EDIT_FORM_PROPS, DEFAULT_ROLES_ENTITY_ACTIONS, DEFAULT_ROLES_ENTITY_PROPS, DEFAULT_ROLES_TOOLBAR_ACTIONS, DEFAULT_USERS_CREATE_FORM_PROPS, DEFAULT_USERS_EDIT_FORM_PROPS, DEFAULT_USERS_ENTITY_ACTIONS, DEFAULT_USERS_ENTITY_PROPS, DEFAULT_USERS_TOOLBAR_ACTIONS, type EditFormPropContributorCallback, type EntityAction, type EntityActionContributorCallback, type EntityProp, type EntityPropContributorCallback, type FormProp, type GetOrganizationUnitInput, IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS, IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS, IDENTITY_ENTITY_ACTION_CONTRIBUTORS, IDENTITY_ENTITY_PROP_CONTRIBUTORS, IDENTITY_POLICIES, IDENTITY_ROUTES, IDENTITY_ROUTE_PATHS, IDENTITY_ROUTE_PROVIDERS, IDENTITY_SETTING_TAB_CONFIG, IDENTITY_SETTING_TAB_PROVIDERS, IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS, Identity, type IdentityComponentKey, type IdentityCreateFormPropContributors, type IdentityEditFormPropContributors, type IdentityEntityActionContributors, type IdentityEntityPropContributors, IdentityExtensionsGuard, type IdentityPolicyNameKey, type IdentityRouteNameKey, IdentityService, type IdentitySettingTabConfig, type IdentitySettingTabNameKey, identitySettings as IdentitySettings, IdentityStateService, type IdentityToolbarActionContributors, type OrganizationUnitCreateDto, type OrganizationUnitCreateOrUpdateDtoBase, type OrganizationUnitMoveInput, type OrganizationUnitRoleInput, OrganizationUnitService, type OrganizationUnitUpdateDto, type OrganizationUnitUserInput, type OrganizationUnitWithDetailsDto, type RoleOperationResult, RolesComponent, type RolesComponentProps, type SortOrder, type ToolbarAction, type ToolbarActionContributorCallback, TreeAdapter, type TreeNode, type UseClaimsReturn, type UseIdentityReturn, type UseRolesReturn, type UseUsersReturn, type UserOperationResult, UsersComponent, type UsersComponentProps, configureRoutes, configureSettingTabs, createGetOrganizationUnitInput, createOrganizationUnitCreateDto, createOrganizationUnitCreateOrUpdateDtoBase, createOrganizationUnitMoveInput, createOrganizationUnitRoleInput, createOrganizationUnitUpdateDto, createOrganizationUnitUserInput, createOrganizationUnitWithDetailsDto, createTreeNode, eIdentityComponents, eIdentityPolicyNames, eIdentityRouteNames, eIdentitySettingTabNames, identityExtensionsGuard, initializeIdentityRoutes, initializeIdentitySettingTabs, useClaims, useIdentity, useIdentityExtensionsGuard, useRoles, useUsers };
|
|
2974
|
+
export { type BaseNode, type ChangePasswordInput, ClaimModal, type ClaimModalProps, type ClaimOperationResult, type ClaimTypeDto, ClaimsComponent, type ClaimsComponentProps, type CreateClaimTypeDto, type CreateFormPropContributorCallback, DEFAULT_CLAIMS_CREATE_FORM_PROPS, DEFAULT_CLAIMS_EDIT_FORM_PROPS, DEFAULT_CLAIMS_ENTITY_ACTIONS, DEFAULT_CLAIMS_ENTITY_PROPS, DEFAULT_CLAIMS_TOOLBAR_ACTIONS, DEFAULT_IDENTITY_CREATE_FORM_PROPS, DEFAULT_IDENTITY_EDIT_FORM_PROPS, DEFAULT_IDENTITY_ENTITY_ACTIONS, DEFAULT_IDENTITY_ENTITY_PROPS, DEFAULT_IDENTITY_TOOLBAR_ACTIONS, DEFAULT_ORGANIZATION_MEMBERS_ENTITY_ACTIONS, DEFAULT_ORGANIZATION_MEMBERS_ENTITY_PROPS, DEFAULT_ORGANIZATION_ROLES_ENTITY_ACTIONS, DEFAULT_ORGANIZATION_ROLES_ENTITY_PROPS, DEFAULT_ORGANIZATION_UNITS_TOOLBAR_ACTIONS, DEFAULT_ROLES_CREATE_FORM_PROPS, DEFAULT_ROLES_EDIT_FORM_PROPS, DEFAULT_ROLES_ENTITY_ACTIONS, DEFAULT_ROLES_ENTITY_PROPS, DEFAULT_ROLES_TOOLBAR_ACTIONS, DEFAULT_SECURITY_LOGS_ENTITY_ACTIONS, DEFAULT_SECURITY_LOGS_ENTITY_PROPS, DEFAULT_SECURITY_LOGS_TOOLBAR_ACTIONS, DEFAULT_USERS_CREATE_FORM_PROPS, DEFAULT_USERS_EDIT_FORM_PROPS, DEFAULT_USERS_ENTITY_ACTIONS, DEFAULT_USERS_ENTITY_PROPS, DEFAULT_USERS_TOOLBAR_ACTIONS, type EditFormPropContributorCallback, type EntityAction, type EntityActionContributorCallback, type EntityProp, type EntityPropContributorCallback, type FormProp, type GetAvailableRolesInput, type GetAvailableUsersInput, type GetIdentityClaimTypesInput, type GetIdentityRoleListInput, type GetIdentitySecurityLogListInput, type GetIdentityUsersInput, type GetOrganizationUnitInput, IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS, IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS, IDENTITY_ENTITY_ACTION_CONTRIBUTORS, IDENTITY_ENTITY_PROP_CONTRIBUTORS, IDENTITY_POLICIES, IDENTITY_ROUTES, IDENTITY_ROUTE_PATHS, IDENTITY_ROUTE_PROVIDERS, IDENTITY_SETTING_TAB_CONFIG, IDENTITY_SETTING_TAB_PROVIDERS, IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS, Identity, IdentityClaimTypeService, IdentityClaimValueType, type IdentityComponentKey, type IdentityCreateFormPropContributors, type IdentityEditFormPropContributors, type IdentityEntityActionContributors, type IdentityEntityPropContributors, IdentityExtensionsGuard, type IdentityLockoutSettingsDto, type IdentityPasswordSettingsDto, type IdentityPolicyNameKey, type IdentityRoleClaimDto, type IdentityRoleCreateDto, type IdentityRoleCreateOrUpdateDtoBase, type IdentityRoleDto, IdentityRoleService, type IdentityRoleUpdateDto, type IdentityRouteNameKey, type IdentitySecurityLogDto, type IdentitySecurityLogGetListInput, type IdentitySecurityLogResponse, IdentitySecurityLogService, IdentityService, type IdentitySettingTabConfig, type IdentitySettingTabNameKey, identitySettings as IdentitySettings, type IdentitySettingsDto, IdentitySettingsService, type IdentitySignInSettingsDto, IdentityStateService, type IdentityToolbarActionContributors, type IdentityUserClaimDto, type IdentityUserCreateDto, type IdentityUserCreateOrUpdateDtoBase, type IdentityUserDto, IdentityUserLookupService, IdentityUserService, type IdentityUserSettingsDto, type IdentityUserUpdateDto, type IdentityUserUpdatePasswordInput, type IdentityUserUpdateRolesDto, type LegacyGetOrganizationUnitInput, type LegacyIdentitySecurityLogDto, LegacyIdentitySecurityLogService, type LegacyOrganizationUnitCreateDto, type LegacyOrganizationUnitCreateOrUpdateDtoBase, type LegacyOrganizationUnitMoveInput, type LegacyOrganizationUnitRoleInput, LegacyOrganizationUnitService, type LegacyOrganizationUnitUpdateDto, type LegacyOrganizationUnitUserInput, type LegacyOrganizationUnitWithDetailsDto, type OrganizationUnitCreateDto, type OrganizationUnitCreateOrUpdateDtoBase, type OrganizationUnitDto, type OrganizationUnitMoveInput, type OrganizationUnitRoleDto, type OrganizationUnitRoleInput, OrganizationUnitService, type OrganizationUnitUpdateDto, type OrganizationUnitUserInput, type OrganizationUnitWithDetailsDto, type ProfileDto, ProfileService, type RoleOperationResult, RolesComponent, type RolesComponentProps, type SortOrder, type ToolbarAction, type ToolbarActionContributorCallback, TreeAdapter, type TreeNode, type UpdateClaimTypeDto, type UpdateProfileDto, type UseClaimsReturn, type UseIdentityReturn, type UseRolesReturn, type UseUsersReturn, type UserData, type UserLookupCountInputDto, type UserLookupSearchInputDto, type UserOperationResult, UsersComponent, type UsersComponentProps, configureRoutes, configureSettingTabs, createGetOrganizationUnitInput, createIdentitySecurityLogGetListInput, createOrganizationUnitCreateDto, createOrganizationUnitCreateOrUpdateDtoBase, createOrganizationUnitMoveInput, createOrganizationUnitRoleInput, createOrganizationUnitUpdateDto, createOrganizationUnitUserInput, createOrganizationUnitWithDetailsDto, createTreeNode, eIdentityComponents, eIdentityPolicyNames, eIdentityRouteNames, eIdentitySettingTabNames, eIdentityTwoFactorBehaviour, identityClaimValueTypeOptions, identityExtensionsGuard, identityTwoFactorBehaviourOptions, initializeIdentityRoutes, initializeIdentitySettingTabs, useClaims, useIdentity, useIdentityExtensionsGuard, useRoles, useUsers };
|