@abpjs/ui 0.2.0-next.13 → 0.2.0-next.14

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.
@@ -0,0 +1,1484 @@
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { ListSource, ListState } from '@abpjs/ui';
4
+
5
+ interface components {
6
+ schemas: {
7
+ AccountCanDto: {
8
+ update: boolean;
9
+ lock: boolean;
10
+ unlock: boolean;
11
+ merge: boolean;
12
+ resetSecondFactor: boolean;
13
+ erase: boolean;
14
+ exportData: boolean;
15
+ };
16
+ AccountDetailDto: {
17
+ account: components["schemas"]["AccountDto"];
18
+ identities: components["schemas"]["IdentityDto"][];
19
+ groups: components["schemas"]["EffectiveGroupDto"][];
20
+ addresses: components["schemas"]["AccountEmailsDto"];
21
+ merges: components["schemas"]["AccountMergeDto"][];
22
+ mergedIntoUsername: null | string;
23
+ can?: components["schemas"]["AccountCanDto"];
24
+ };
25
+ AccountDto: {
26
+ /** Format: uuid */
27
+ id: string;
28
+ username: string;
29
+ displayName: string;
30
+ email: null | string;
31
+ status: string;
32
+ statusReason: null | string;
33
+ /** Format: uuid */
34
+ directoryId: string;
35
+ directoryName: string;
36
+ /** Format: date-time */
37
+ lastLoginAt: null | string;
38
+ /** Format: uuid */
39
+ mergedIntoId?: null | string;
40
+ mailTo?: null | string;
41
+ /** @default false */
42
+ isService: boolean;
43
+ isAgent?: boolean;
44
+ displayNames?: {
45
+ [key: string]: string;
46
+ };
47
+ };
48
+ AccountEmailDto: {
49
+ /** Format: uuid */
50
+ id: string;
51
+ email: string;
52
+ source: string;
53
+ /** Format: date-time */
54
+ verifiedAt: null | string;
55
+ /** Format: date-time */
56
+ addedAt: string;
57
+ mailGoesHere: boolean;
58
+ };
59
+ AccountEmailsDto: {
60
+ directoryEmail: null | string;
61
+ mailTo: null | string;
62
+ directoryMailGoesHere: boolean;
63
+ addresses: components["schemas"]["AccountEmailDto"][];
64
+ correctable?: boolean;
65
+ directory?: null | string;
66
+ };
67
+ AccountMergeDto: {
68
+ /** Format: uuid */
69
+ id: string;
70
+ /** Format: uuid */
71
+ sourceId: string;
72
+ sourceUsername: string;
73
+ sourceDisplayName: string;
74
+ sourceEmail: null | string;
75
+ /** Format: uuid */
76
+ survivorId: string;
77
+ survivorUsername: string;
78
+ /** Format: uuid */
79
+ actorId: null | string;
80
+ actorUsername: null | string;
81
+ reason: string;
82
+ automatic: boolean;
83
+ /** Format: date-time */
84
+ startedAt: string;
85
+ /** Format: date-time */
86
+ finishedAt: null | string;
87
+ state: string;
88
+ steps: components["schemas"]["MergeStepDto"][];
89
+ };
90
+ AccountNameDto: {
91
+ displayName: string;
92
+ displayNames?: {
93
+ [key: string]: string;
94
+ };
95
+ };
96
+ AccountNameInput: {
97
+ displayName: string;
98
+ displayNames?: null | {
99
+ [key: string]: string;
100
+ };
101
+ };
102
+ AccountSessionDto: {
103
+ id: string;
104
+ kind: string;
105
+ current: boolean;
106
+ /** Format: date-time */
107
+ createdAt: string;
108
+ /** Format: date-time */
109
+ lastSeenAt: null | string;
110
+ /** Format: date-time */
111
+ expiresAt: null | string;
112
+ userAgent: null | string;
113
+ ip: null | string;
114
+ };
115
+ AccountSummaryDto: {
116
+ /** Format: uuid */
117
+ id: string;
118
+ username: string;
119
+ displayName: string;
120
+ email: null | string;
121
+ status: string;
122
+ directoryName: string;
123
+ /** Format: date-time */
124
+ lastLoginAt: null | string;
125
+ };
126
+ AddEmailInput: {
127
+ email: string;
128
+ };
129
+ AddMemberInput: {
130
+ /** Format: uuid */
131
+ accountId: null | string;
132
+ /** Format: uuid */
133
+ groupId: null | string;
134
+ };
135
+ AdminsStrongFactorDto: {
136
+ required: boolean;
137
+ /** Format: int32 */
138
+ graceHours: number | string;
139
+ source: string;
140
+ variable: string;
141
+ };
142
+ AnonymousGrantDto: {
143
+ /** Format: uuid */
144
+ id: string;
145
+ roleKey: string;
146
+ roleName: string;
147
+ scopeKey: null | string;
148
+ scope: null | string;
149
+ href: null | string;
150
+ /** Format: date-time */
151
+ validUntil: null | string;
152
+ /** Format: date-time */
153
+ createdAt: string;
154
+ };
155
+ AppEnrolmentDto: {
156
+ secret: string;
157
+ address: string;
158
+ qr: string;
159
+ };
160
+ CodeSentDto: {
161
+ method: string;
162
+ to: string;
163
+ /** Format: date-time */
164
+ expiresAt: string;
165
+ };
166
+ ConnectionTestResult: {
167
+ succeeded: boolean;
168
+ message: string;
169
+ /** Format: int32 */
170
+ usersFound?: null | number | string;
171
+ /** Format: int32 */
172
+ groupsFound?: null | number | string;
173
+ };
174
+ ConsentHandledInput: {
175
+ note: null | string;
176
+ };
177
+ ConsentStoreDto: {
178
+ key: string;
179
+ name: components["schemas"]["LocalizedText"];
180
+ purpose: components["schemas"]["LocalizedText"];
181
+ /** Format: date-time */
182
+ withdrawnAt: null | string;
183
+ /** Format: date-time */
184
+ handledAt: null | string;
185
+ };
186
+ ConsentWithdrawalDto: {
187
+ /** Format: uuid */
188
+ id: string;
189
+ /** Format: uuid */
190
+ accountId: string;
191
+ username: null | string;
192
+ store: string;
193
+ /** Format: date-time */
194
+ at: string;
195
+ /** Format: date-time */
196
+ handledAt: null | string;
197
+ note: null | string;
198
+ };
199
+ ConsentWithdrawInput: {
200
+ store: string;
201
+ };
202
+ CreateAccountInput: {
203
+ username: string;
204
+ displayName: string;
205
+ email: null | string;
206
+ password: string;
207
+ /** Format: uuid */
208
+ directoryId?: null | string;
209
+ };
210
+ CreateGroupInput: {
211
+ name: string;
212
+ description: null | string;
213
+ /** Format: uuid */
214
+ directoryId: null | string;
215
+ kind?: null | string;
216
+ attributes?: null | {
217
+ [key: string]: string;
218
+ };
219
+ emailDomains?: null | string[];
220
+ names?: null | {
221
+ [key: string]: string;
222
+ };
223
+ };
224
+ CreateOAuthAppInput: {
225
+ name: string;
226
+ redirectUris: string[];
227
+ confidential: boolean;
228
+ };
229
+ CreatePersonalTokenInput: {
230
+ name: string;
231
+ access: string;
232
+ projectIds: null | string[];
233
+ /** Format: int32 */
234
+ days: number | string;
235
+ tools?: null | string[];
236
+ };
237
+ CreateRoleInput: {
238
+ key: string;
239
+ name: string;
240
+ description: null | string;
241
+ rules: components["schemas"]["JsonObject"][];
242
+ names?: null | {
243
+ [key: string]: string;
244
+ };
245
+ descriptions?: null | {
246
+ [key: string]: string;
247
+ };
248
+ };
249
+ CreateServiceAccountInput: {
250
+ username: string;
251
+ displayName: null | string;
252
+ };
253
+ DataExportInput: {
254
+ /** @default true */
255
+ files: boolean;
256
+ };
257
+ DirectoryDto: {
258
+ /** Format: uuid */
259
+ id: string;
260
+ name: string;
261
+ type: string;
262
+ typeDisplayName: string;
263
+ /** Format: int32 */
264
+ order: number | string;
265
+ isActive: boolean;
266
+ authenticationEnabled: boolean;
267
+ settings: {
268
+ [key: string]: string;
269
+ };
270
+ /** Format: int32 */
271
+ syncIntervalMinutes: null | number | string;
272
+ /** Format: date-time */
273
+ lastSyncAt: null | string;
274
+ lastSyncSucceeded: null | boolean;
275
+ lastSyncMessage: null | string;
276
+ /** Format: int32 */
277
+ userCount: number | string;
278
+ /** Format: int32 */
279
+ groupCount: number | string;
280
+ connectorAvailable: boolean;
281
+ pluginKey: null | string;
282
+ /** @default true */
283
+ secretsReadable: boolean;
284
+ warnings?: null | string[];
285
+ names?: {
286
+ [key: string]: string;
287
+ };
288
+ };
289
+ DirectoryInput: {
290
+ name: string;
291
+ type: string;
292
+ isActive: boolean;
293
+ authenticationEnabled: boolean;
294
+ /** Format: int32 */
295
+ syncIntervalMinutes: null | number | string;
296
+ settings: null | {
297
+ [key: string]: string;
298
+ };
299
+ names?: null | {
300
+ [key: string]: string;
301
+ };
302
+ };
303
+ DirectorySettingDefinition: {
304
+ name: string;
305
+ label: string;
306
+ /** @default false */
307
+ required: boolean;
308
+ /** @default false */
309
+ secret: boolean;
310
+ defaultValue?: null | string;
311
+ help?: null | string;
312
+ };
313
+ DirectoryTypeDto: {
314
+ type: string;
315
+ displayName: string;
316
+ capabilities: string[];
317
+ settings: components["schemas"]["DirectorySettingDefinition"][];
318
+ pluginKey: null | string;
319
+ };
320
+ DuplicateDto: {
321
+ email: string;
322
+ accounts: components["schemas"]["AccountSummaryDto"][];
323
+ };
324
+ EffectiveGroupDto: {
325
+ /** Format: uuid */
326
+ groupId: string;
327
+ name: string;
328
+ /** Format: uuid */
329
+ directoryId: string;
330
+ directoryName: string;
331
+ direct: boolean;
332
+ path: string[];
333
+ };
334
+ EffectiveMemberDto: {
335
+ /** Format: uuid */
336
+ accountId: string;
337
+ username: string;
338
+ displayName: string;
339
+ path: string[];
340
+ };
341
+ ErasureDeclineInput: {
342
+ reason: string;
343
+ };
344
+ ErasureDto: {
345
+ /** Format: uuid */
346
+ id: string;
347
+ /** Format: int32 */
348
+ number: number | string;
349
+ pseudonym: string;
350
+ /** Format: uuid */
351
+ accountId: null | string;
352
+ about: null | string;
353
+ state: string;
354
+ reason: null | string;
355
+ declinedReason: null | string;
356
+ /** Format: date-time */
357
+ createdAt: string;
358
+ /** Format: date-time */
359
+ finishedAt: null | string;
360
+ stores: {
361
+ [key: string]: string;
362
+ };
363
+ };
364
+ ErasurePreviewDto: {
365
+ about: string;
366
+ stores: string[];
367
+ holds: components["schemas"]["LegalHoldDto"][];
368
+ merged: string[];
369
+ directory: null | string;
370
+ };
371
+ ErasureRequestInput: {
372
+ reason: null | string;
373
+ };
374
+ ForgotPasswordInput: {
375
+ email: string;
376
+ };
377
+ GrantDto: {
378
+ /** Format: uuid */
379
+ id: string;
380
+ principalType: string;
381
+ /** Format: uuid */
382
+ principalId: string;
383
+ principalName: string;
384
+ scope: null | components["schemas"]["JsonNode"];
385
+ /** Format: date-time */
386
+ validUntil: null | string;
387
+ /** Format: date-time */
388
+ createdAt: string;
389
+ };
390
+ GrantInput: {
391
+ principalType: string;
392
+ /** Format: uuid */
393
+ principalId: string;
394
+ scope: null | components["schemas"]["JsonObject"];
395
+ /** Format: date-time */
396
+ validUntil: null | string;
397
+ };
398
+ GroupDetailDto: {
399
+ group: components["schemas"]["GroupDto"];
400
+ members: components["schemas"]["GroupMemberDto"][];
401
+ parents: components["schemas"]["GroupDto"][];
402
+ effectiveMembers: components["schemas"]["EffectiveMemberDto"][];
403
+ };
404
+ GroupDto: {
405
+ /** Format: uuid */
406
+ id: string;
407
+ name: string;
408
+ description: null | string;
409
+ /** Format: uuid */
410
+ directoryId: string;
411
+ directoryName: string;
412
+ isLocal: boolean;
413
+ writable: boolean;
414
+ /** Format: int32 */
415
+ directMemberCount: number | string;
416
+ /** Format: int32 */
417
+ memberGroupCount: number | string;
418
+ kind: string;
419
+ computed: boolean;
420
+ attributes: {
421
+ [key: string]: string;
422
+ };
423
+ emailDomains: string[];
424
+ /** @default off */
425
+ twoFactor: string;
426
+ names?: {
427
+ [key: string]: string;
428
+ };
429
+ };
430
+ GroupMemberDto: {
431
+ memberType: string;
432
+ /** Format: uuid */
433
+ memberId: string;
434
+ name: string;
435
+ displayName: null | string;
436
+ directoryName: string;
437
+ source: string;
438
+ removable: boolean;
439
+ };
440
+ GroupTwoFactorInput: {
441
+ mode: null | string;
442
+ };
443
+ IdentityDto: {
444
+ /** Format: uuid */
445
+ directoryId: string;
446
+ directoryName: string;
447
+ /** Format: int32 */
448
+ directoryOrder: number | string;
449
+ externalId: string;
450
+ username: string;
451
+ displayName: null | string;
452
+ email: null | string;
453
+ isActive: boolean;
454
+ isWinning: boolean;
455
+ /** Format: date-time */
456
+ lastSyncedAt: null | string;
457
+ };
458
+ InstalledPlugin: {
459
+ key: string;
460
+ name: components["schemas"]["LocalizedText"];
461
+ version: string;
462
+ state: string;
463
+ /** Format: date-time */
464
+ removedAt: null | string;
465
+ personalData: components["schemas"]["PluginPersonalData"];
466
+ };
467
+ JsonElement: unknown;
468
+ JsonNode: unknown;
469
+ JsonObject: Record<string, never>;
470
+ LegalHoldDto: {
471
+ /** Format: uuid */
472
+ id: string;
473
+ /** Format: uuid */
474
+ accountId: null | string;
475
+ username: null | string;
476
+ address: null | string;
477
+ reason: string;
478
+ /** Format: date-time */
479
+ until: null | string;
480
+ /** Format: date-time */
481
+ createdAt: string;
482
+ /** Format: date-time */
483
+ releasedAt: null | string;
484
+ active: boolean;
485
+ };
486
+ LegalHoldInput: {
487
+ /** Format: uuid */
488
+ accountId: null | string;
489
+ email: null | string;
490
+ phone: null | string;
491
+ reason: string;
492
+ /** Format: date-time */
493
+ until: null | string;
494
+ };
495
+ LocalizedText: {
496
+ en: string;
497
+ ar: string;
498
+ };
499
+ MailToInput: {
500
+ email: null | string;
501
+ };
502
+ MergeCountDto: {
503
+ key: string;
504
+ /** Format: int32 */
505
+ count: number | string;
506
+ label: null | string;
507
+ };
508
+ MergeInput: {
509
+ /** Format: uuid */
510
+ survivorId: string;
511
+ confirm?: null | string;
512
+ };
513
+ MergePartDto: {
514
+ key: string;
515
+ plugin: boolean;
516
+ counts: components["schemas"]["MergeCountDto"][];
517
+ error: null | string;
518
+ };
519
+ MergePreviewDto: {
520
+ source: components["schemas"]["AccountSummaryDto"];
521
+ survivor: components["schemas"]["AccountSummaryDto"];
522
+ needsConfirmation: boolean;
523
+ sameDirectory: boolean;
524
+ parts: components["schemas"]["MergePartDto"][];
525
+ };
526
+ MergeStepDto: {
527
+ key: string;
528
+ plugin: boolean;
529
+ state: string;
530
+ error: null | string;
531
+ /** Format: date-time */
532
+ at: string;
533
+ counts: components["schemas"]["MergeCountDto"][];
534
+ };
535
+ MotionInput: {
536
+ motion: null | string;
537
+ };
538
+ MyPrivacyDto: {
539
+ /** Format: int32 */
540
+ currentVersion: null | number | string;
541
+ /** Format: int32 */
542
+ acceptedVersion: null | number | string;
543
+ /** Format: date-time */
544
+ acceptedAt: null | string;
545
+ needsAcceptance: boolean;
546
+ consent: components["schemas"]["ConsentStoreDto"][];
547
+ };
548
+ MySecondFactorsDto: {
549
+ mode: string;
550
+ asked: boolean;
551
+ factors: components["schemas"]["SecondFactorDto"][];
552
+ /** Format: int32 */
553
+ recoveryCodesLeft: number | string;
554
+ disabled: boolean;
555
+ senders?: null | components["schemas"]["SecondFactorSenderDto"][];
556
+ strong?: boolean;
557
+ /** Format: date-time */
558
+ requiredBy?: null | string;
559
+ overdue?: boolean;
560
+ };
561
+ MySecondFactorSendInput: {
562
+ method: null | string;
563
+ };
564
+ NewOAuthAppDto: {
565
+ app: components["schemas"]["OAuthAppDto"];
566
+ secret: null | string;
567
+ };
568
+ NewPersonalTokenDto: {
569
+ token: components["schemas"]["PersonalTokenDto"];
570
+ secret: string;
571
+ };
572
+ NonPersonalTable: {
573
+ table: string;
574
+ why: string;
575
+ };
576
+ NoticeAcceptInput: {
577
+ /** Format: int32 */
578
+ version: number | string;
579
+ };
580
+ OAuthAppDto: {
581
+ clientId: string;
582
+ name: string;
583
+ kind: string;
584
+ confidential: boolean;
585
+ redirectUris: string[];
586
+ /** Format: int32 */
587
+ people: number | string;
588
+ };
589
+ OAuthClientDto: {
590
+ clientId: string;
591
+ name: string;
592
+ kind: string;
593
+ redirectHosts: string[];
594
+ };
595
+ OAuthGrantDto: {
596
+ id: string;
597
+ clientId: string;
598
+ appName: string;
599
+ access: string;
600
+ /** Format: date-time */
601
+ grantedAt: null | string;
602
+ };
603
+ OutsideDataExportInput: {
604
+ email: null | string;
605
+ phone: null | string;
606
+ /** @default true */
607
+ files: boolean;
608
+ };
609
+ OutsideErasureInput: {
610
+ email: null | string;
611
+ phone: null | string;
612
+ };
613
+ PagedResultDtoOfAccountDto: {
614
+ /** Format: int64 */
615
+ totalCount?: number | string;
616
+ items?: components["schemas"]["AccountDto"][];
617
+ };
618
+ PagedResultDtoOfGroupDto: {
619
+ /** Format: int64 */
620
+ totalCount?: number | string;
621
+ items?: components["schemas"]["GroupDto"][];
622
+ };
623
+ PasskeyAddedDto: {
624
+ /** Format: uuid */
625
+ id: string;
626
+ kind: string;
627
+ /** Format: date-time */
628
+ createdAt: string;
629
+ /** Format: date-time */
630
+ lastUsedAt: null | string;
631
+ name: null | string;
632
+ backedUp: null | boolean;
633
+ provider: null | string;
634
+ strong: boolean;
635
+ recoveryCodes: null | string[];
636
+ };
637
+ PasskeyEnrolInput: {
638
+ ticket: null | string;
639
+ name: null | string;
640
+ credential: null | components["schemas"]["JsonElement"];
641
+ };
642
+ PasskeyInput: {
643
+ name: null | string;
644
+ credential: null | components["schemas"]["JsonElement"];
645
+ };
646
+ PasskeyNameInput: {
647
+ name: null | string;
648
+ };
649
+ PersonalDataField: {
650
+ on: string;
651
+ key: string;
652
+ };
653
+ PersonalDataStore: {
654
+ key: string;
655
+ owner: string;
656
+ name: components["schemas"]["LocalizedText"];
657
+ purpose: components["schemas"]["LocalizedText"];
658
+ tables: string[];
659
+ files: string[];
660
+ about: string;
661
+ kinds: string[];
662
+ kept: string;
663
+ goesTo: string[];
664
+ fields: components["schemas"]["PersonalDataField"][];
665
+ };
666
+ PersonalTokenDto: {
667
+ /** Format: uuid */
668
+ id: string;
669
+ /** Format: uuid */
670
+ accountId: string;
671
+ username: string;
672
+ name: string;
673
+ prefix: string;
674
+ access: string;
675
+ projects: null | components["schemas"]["TokenProjectDto"][];
676
+ /** Format: date-time */
677
+ expiresAt: string;
678
+ /** Format: date-time */
679
+ createdAt: string;
680
+ /** Format: date-time */
681
+ lastUsedAt: null | string;
682
+ lastUsedIp: null | string;
683
+ /** Format: date-time */
684
+ revokedAt: null | string;
685
+ active: boolean;
686
+ tools?: null | string[];
687
+ };
688
+ PluginPersonalData: {
689
+ plugin: string;
690
+ state: string;
691
+ stores: components["schemas"]["PersonalDataStore"][];
692
+ notPersonal: components["schemas"]["NonPersonalTable"][];
693
+ problems: string[];
694
+ };
695
+ PreferencesDto: {
696
+ language: null | string;
697
+ timeZone: null | string;
698
+ siteTimeZone: string;
699
+ firstDayOfWeek: string;
700
+ motion: string;
701
+ };
702
+ PreferencesInput: {
703
+ language: null | string;
704
+ timeZone: null | string;
705
+ };
706
+ PrivacyContactDto: {
707
+ name: null | string;
708
+ contact: null | string;
709
+ };
710
+ PrivacyDestination: {
711
+ recipient: null | string;
712
+ country: null | string;
713
+ outsideCountry: boolean;
714
+ };
715
+ PrivacyMapDto: {
716
+ stores: components["schemas"]["PrivacyStoreDto"][];
717
+ plugins: components["schemas"]["InstalledPlugin"][];
718
+ settings: components["schemas"]["PrivacySettingsDto"];
719
+ noLongerDeclared: components["schemas"]["PrivacyRecordedDto"][];
720
+ kinds: string[];
721
+ destinations: string[];
722
+ legalBases: string[];
723
+ };
724
+ PrivacyNoticeDto: {
725
+ /** Format: int32 */
726
+ version: number | string;
727
+ language: string;
728
+ markdown: null | string;
729
+ link: null | string;
730
+ /** Format: date-time */
731
+ publishedAt: string;
732
+ officer: components["schemas"]["PrivacyContactDto"];
733
+ controller: components["schemas"]["PrivacyContactDto"];
734
+ };
735
+ PrivacyNoticeInput: {
736
+ texts: null | {
737
+ [key: string]: components["schemas"]["PrivacyNoticeText"];
738
+ };
739
+ };
740
+ PrivacyNoticeText: {
741
+ markdown: null | string;
742
+ link: null | string;
743
+ };
744
+ PrivacyNoticeVersionDto: {
745
+ /** Format: int32 */
746
+ version: number | string;
747
+ texts: {
748
+ [key: string]: components["schemas"]["PrivacyNoticeText"];
749
+ };
750
+ /** Format: date-time */
751
+ publishedAt: string;
752
+ /** Format: uuid */
753
+ publishedBy: null | string;
754
+ /** Format: int32 */
755
+ accepted: number | string;
756
+ };
757
+ PrivacyPersonDto: {
758
+ /** Format: uuid */
759
+ id: string;
760
+ name: string;
761
+ };
762
+ PrivacyRecordedDto: {
763
+ storeKey: string;
764
+ legalBasis: null | string;
765
+ sensitive: null | boolean;
766
+ notes: null | string;
767
+ /** Format: date-time */
768
+ updatedAt: string;
769
+ updatedBy: null | components["schemas"]["PrivacyPersonDto"];
770
+ };
771
+ PrivacySettingsDto: {
772
+ controller: components["schemas"]["PrivacyContactDto"];
773
+ officer: components["schemas"]["PrivacyContactDto"];
774
+ country: null | string;
775
+ destinations: {
776
+ [key: string]: components["schemas"]["PrivacyDestination"];
777
+ };
778
+ /** Format: date-time */
779
+ updatedAt: null | string;
780
+ updatedBy: null | components["schemas"]["PrivacyPersonDto"];
781
+ /** Format: int32 */
782
+ noticeVersion?: null | number | string;
783
+ /** Format: date-time */
784
+ noticePublishedAt?: null | string;
785
+ appsMayRegister?: boolean;
786
+ securityFeedHost?: null | string;
787
+ };
788
+ PrivacySettingsInput: {
789
+ controller: null | components["schemas"]["PrivacyContactDto"];
790
+ officer: null | components["schemas"]["PrivacyContactDto"];
791
+ country: null | string;
792
+ destinations: null | {
793
+ [key: string]: components["schemas"]["PrivacyDestination"];
794
+ };
795
+ };
796
+ PrivacyStoreDto: {
797
+ key: string;
798
+ owner: string;
799
+ ownerKind: string;
800
+ name: components["schemas"]["LocalizedText"];
801
+ purpose: components["schemas"]["LocalizedText"];
802
+ tables: string[];
803
+ files: string[];
804
+ fields: components["schemas"]["PersonalDataField"][];
805
+ about: string;
806
+ kinds: string[];
807
+ kept: string;
808
+ goesTo: string[];
809
+ suggestSensitive: boolean;
810
+ recorded: null | components["schemas"]["PrivacyRecordedDto"];
811
+ };
812
+ PrivacyStoreInput: {
813
+ legalBasis: null | string;
814
+ sensitive: null | boolean;
815
+ notes: null | string;
816
+ };
817
+ RecoveryCodesDto: {
818
+ recoveryCodes: string[];
819
+ };
820
+ ReorderInput: {
821
+ directoryIds: string[];
822
+ };
823
+ ResetPasswordInput: {
824
+ token: string;
825
+ password: string;
826
+ };
827
+ RetentionDto: {
828
+ /** Format: date-time */
829
+ confirmedAt: null | string;
830
+ confirmedByDefault: boolean;
831
+ rules: components["schemas"]["RetentionRuleDto"][];
832
+ };
833
+ RetentionInput: {
834
+ days: null | {
835
+ [key: string]: null | number | string;
836
+ };
837
+ confirm: boolean;
838
+ };
839
+ RetentionRuleDto: {
840
+ key: string;
841
+ store: string;
842
+ owner: string;
843
+ name: components["schemas"]["LocalizedText"];
844
+ /** Format: int32 */
845
+ defaultDays: number | string;
846
+ /** Format: int32 */
847
+ minDays: number | string;
848
+ /** Format: int32 */
849
+ maxDays: number | string;
850
+ /** Format: int32 */
851
+ days: number | string;
852
+ isDefault: boolean;
853
+ /** Format: date-time */
854
+ lastSweptAt: null | string;
855
+ /** Format: int32 */
856
+ lastCount: number | string;
857
+ };
858
+ RoleDto: {
859
+ /** Format: uuid */
860
+ id: string;
861
+ key: string;
862
+ name: string;
863
+ description: null | string;
864
+ isSystem: boolean;
865
+ rules: unknown[];
866
+ grants: components["schemas"]["GrantDto"][];
867
+ names?: {
868
+ [key: string]: string;
869
+ };
870
+ descriptions?: {
871
+ [key: string]: string;
872
+ };
873
+ };
874
+ SecondFactorConfirmInput: {
875
+ code: null | string;
876
+ ticket?: null | string;
877
+ };
878
+ SecondFactorDto: {
879
+ /** Format: uuid */
880
+ id: string;
881
+ kind: string;
882
+ /** Format: date-time */
883
+ createdAt: string;
884
+ /** Format: date-time */
885
+ lastUsedAt: null | string;
886
+ name?: null | string;
887
+ backedUp?: null | boolean;
888
+ provider?: null | string;
889
+ strong?: boolean;
890
+ };
891
+ SecondFactorEnrolledDto: {
892
+ recoveryCodes: null | string[];
893
+ };
894
+ SecondFactorMethodOptionDto: {
895
+ method: string;
896
+ name: string;
897
+ ready: boolean;
898
+ };
899
+ SecondFactorSenderDto: {
900
+ method: string;
901
+ name: string;
902
+ to: string;
903
+ };
904
+ SecondFactorSendInput: {
905
+ ticket: null | string;
906
+ method: null | string;
907
+ };
908
+ SecondFactorSettingsDto: {
909
+ methods: string[];
910
+ available: components["schemas"]["SecondFactorMethodOptionDto"][];
911
+ };
912
+ SecondFactorSettingsInput: {
913
+ methods: null | string[];
914
+ };
915
+ SecondFactorTicketInput: {
916
+ ticket: null | string;
917
+ };
918
+ SecurityAlert: {
919
+ kind: string;
920
+ /** Format: int32 */
921
+ count: number | string;
922
+ /** Format: date-time */
923
+ since: string;
924
+ };
925
+ SecurityEventDto: {
926
+ /** Format: uuid */
927
+ id: string;
928
+ /** Format: date-time */
929
+ time: string;
930
+ type: string;
931
+ /** Format: uuid */
932
+ accountId: null | string;
933
+ username: null | string;
934
+ /** Format: uuid */
935
+ actingAccountId: null | string;
936
+ actingUsername: null | string;
937
+ actingMode: null | string;
938
+ /** Format: uuid */
939
+ sessionId: null | string;
940
+ targetType: null | string;
941
+ /** Format: uuid */
942
+ targetId: null | string;
943
+ targetName: null | string;
944
+ detail: null | string;
945
+ ip: null | string;
946
+ scopeLabel?: null | string;
947
+ scopeHref?: null | string;
948
+ };
949
+ SecurityEventPageDto: {
950
+ /** Format: int64 */
951
+ total: number | string;
952
+ items: components["schemas"]["SecurityEventDto"][];
953
+ };
954
+ SecurityFeedDto: {
955
+ url: null | string;
956
+ enabled: boolean;
957
+ hasSecret: boolean;
958
+ /** Format: date-time */
959
+ lastSentAt: null | string;
960
+ lastError: null | string;
961
+ /** Format: date-time */
962
+ failingSince: null | string;
963
+ };
964
+ SecurityFeedInput: {
965
+ url: null | string;
966
+ enabled: boolean;
967
+ };
968
+ SecurityFeedSecretDto: {
969
+ secret: string;
970
+ };
971
+ SecuritySettingsDto: {
972
+ /** Format: int32 */
973
+ retentionDays: number | string;
974
+ /** Format: int32 */
975
+ minRetentionDays: number | string;
976
+ /** Format: int32 */
977
+ maxRetentionDays: number | string;
978
+ /** Format: int32 */
979
+ stepUpMinutes: number | string;
980
+ /** Format: int32 */
981
+ minStepUpMinutes: number | string;
982
+ /** Format: int32 */
983
+ maxStepUpMinutes: number | string;
984
+ /** Format: int32 */
985
+ tokenMaxDays: number | string;
986
+ /** Format: int32 */
987
+ minTokenMaxDays: number | string;
988
+ /** Format: int32 */
989
+ maxTokenMaxDays: number | string;
990
+ /** @default false */
991
+ appsMayRegister: boolean;
992
+ stepUpStrong?: string[];
993
+ stepUpAppCodeAlone?: boolean;
994
+ adminsStrongFactor?: components["schemas"]["AdminsStrongFactorDto"];
995
+ };
996
+ SecuritySettingsInput: {
997
+ /** Format: int32 */
998
+ retentionDays: number | string;
999
+ /** Format: int32 */
1000
+ stepUpMinutes: number | string;
1001
+ /** Format: int32 */
1002
+ tokenMaxDays?: null | number | string;
1003
+ appsMayRegister?: null | boolean;
1004
+ };
1005
+ ServiceAccountDto: {
1006
+ account: components["schemas"]["AccountDto"];
1007
+ /** Format: int32 */
1008
+ tokens: number | string;
1009
+ };
1010
+ SessionDto: {
1011
+ account: components["schemas"]["AccountDto"];
1012
+ preferences: components["schemas"]["PreferencesDto"];
1013
+ /** Format: date-time */
1014
+ expiresAt: string;
1015
+ /** Format: date-time */
1016
+ authTime: string;
1017
+ /** @default false */
1018
+ secondFactorOffered: boolean;
1019
+ };
1020
+ SessionHandoffDto: {
1021
+ code: string;
1022
+ /** Format: date-time */
1023
+ expiresAt: string;
1024
+ };
1025
+ SessionSecondFactorInput: {
1026
+ ticket: null | string;
1027
+ method: null | string;
1028
+ code: null | string;
1029
+ credential?: unknown;
1030
+ };
1031
+ SessionsEndedDto: {
1032
+ /** Format: int32 */
1033
+ browsers: number | string;
1034
+ /** Format: int32 */
1035
+ apps: number | string;
1036
+ };
1037
+ SessionStartInput: {
1038
+ username: null | string;
1039
+ password: null | string;
1040
+ };
1041
+ SessionStepUpDto: {
1042
+ /** Format: date-time */
1043
+ authTime: string;
1044
+ /** Format: date-time */
1045
+ strongAuthTime?: null | string;
1046
+ };
1047
+ SessionStepUpInput: {
1048
+ password: null | string;
1049
+ method?: null | string;
1050
+ code?: null | string;
1051
+ credential?: unknown;
1052
+ };
1053
+ SessionTicketInput: {
1054
+ ticket: null | string;
1055
+ };
1056
+ SignUpInfoDto: {
1057
+ enabled: boolean;
1058
+ emailDomains: string[];
1059
+ };
1060
+ SignUpInput: {
1061
+ email: string;
1062
+ displayName: string;
1063
+ password: string;
1064
+ captcha?: null | string;
1065
+ /** Format: int32 */
1066
+ noticeVersion?: null | number | string;
1067
+ };
1068
+ SignUpSettingsDto: {
1069
+ enabled: boolean;
1070
+ /** Format: uuid */
1071
+ directoryId: null | string;
1072
+ directoryName: null | string;
1073
+ emailDomains: string[];
1074
+ };
1075
+ SignUpSettingsInput: {
1076
+ enabled: boolean;
1077
+ /** Format: uuid */
1078
+ directoryId: null | string;
1079
+ emailDomains: null | string[];
1080
+ };
1081
+ SyncRunDto: {
1082
+ /** Format: uuid */
1083
+ id: string;
1084
+ /** Format: uuid */
1085
+ directoryId: string;
1086
+ /** Format: date-time */
1087
+ startedAt: string;
1088
+ /** Format: date-time */
1089
+ finishedAt: null | string;
1090
+ succeeded: null | boolean;
1091
+ /** Format: int32 */
1092
+ usersAdded: number | string;
1093
+ /** Format: int32 */
1094
+ usersUpdated: number | string;
1095
+ /** Format: int32 */
1096
+ usersDeactivated: number | string;
1097
+ /** Format: int32 */
1098
+ groupsSynced: number | string;
1099
+ /** Format: int32 */
1100
+ membershipsSynced: number | string;
1101
+ error: null | string;
1102
+ };
1103
+ TestAccountDto: {
1104
+ username: string;
1105
+ password: string;
1106
+ note: null | string;
1107
+ };
1108
+ TestLoginInput: {
1109
+ username: string;
1110
+ password: string;
1111
+ };
1112
+ TokenInput: {
1113
+ token: string;
1114
+ };
1115
+ TokenLimitsDto: {
1116
+ /** Format: int32 */
1117
+ maxDays: number | string;
1118
+ };
1119
+ TokenProjectDto: {
1120
+ /** Format: uuid */
1121
+ id: string;
1122
+ label: string;
1123
+ href: null | string;
1124
+ };
1125
+ UpdateGroupInput: {
1126
+ name: string;
1127
+ description: null | string;
1128
+ attributes?: null | {
1129
+ [key: string]: string;
1130
+ };
1131
+ emailDomains?: null | string[];
1132
+ names?: null | {
1133
+ [key: string]: string;
1134
+ };
1135
+ };
1136
+ ValidateInput: {
1137
+ rule: components["schemas"]["JsonObject"];
1138
+ };
1139
+ };
1140
+ responses: never;
1141
+ parameters: never;
1142
+ requestBodies: never;
1143
+ headers: never;
1144
+ pathItems: never;
1145
+ }
1146
+
1147
+ type Schemas = components['schemas'];
1148
+ /** AbpGuard.HttpApi's types, as its OpenAPI document gives them (`api.d.ts`). */
1149
+ type GuardTypes = Schemas;
1150
+ type AccountDto = Schemas['AccountDto'];
1151
+ type AccountCanDto = Schemas['AccountCanDto'];
1152
+ type AccountDetailDto = Schemas['AccountDetailDto'];
1153
+ type AccountSummaryDto = Schemas['AccountSummaryDto'];
1154
+ type AccountEmailsDto = Schemas['AccountEmailsDto'];
1155
+ type AccountNameDto = Schemas['AccountNameDto'];
1156
+ type AccountMergeDto = Schemas['AccountMergeDto'];
1157
+ type MergeCountDto = Schemas['MergeCountDto'];
1158
+ type MergePreviewDto = Schemas['MergePreviewDto'];
1159
+ type DuplicateDto = Schemas['DuplicateDto'];
1160
+ type IdentityDto = Schemas['IdentityDto'];
1161
+ type DirectoryDto = Schemas['DirectoryDto'];
1162
+ type DirectoryInput = Schemas['DirectoryInput'];
1163
+ type DirectoryTypeDto = Schemas['DirectoryTypeDto'];
1164
+ type DirectorySettingDefinition = Schemas['DirectorySettingDefinition'];
1165
+ type SyncRunDto = Schemas['SyncRunDto'];
1166
+ type ConnectionTestResult = Schemas['ConnectionTestResult'];
1167
+ type GroupDto = Schemas['GroupDto'];
1168
+ type GroupDetailDto = Schemas['GroupDetailDto'];
1169
+ type GroupMemberDto = Schemas['GroupMemberDto'];
1170
+ type EffectiveGroupDto = Schemas['EffectiveGroupDto'];
1171
+ type EffectiveMemberDto = Schemas['EffectiveMemberDto'];
1172
+ type SecondFactorDto = Schemas['SecondFactorDto'];
1173
+ type MySecondFactorsDto = Schemas['MySecondFactorsDto'];
1174
+ type SignUpSettingsDto = Schemas['SignUpSettingsDto'];
1175
+ type SignUpSettingsInput = Schemas['SignUpSettingsInput'];
1176
+ type AnonymousGrantDto = Schemas['AnonymousGrantDto'];
1177
+ type AccountPage = Schemas['PagedResultDtoOfAccountDto'];
1178
+ type GroupPage = Schemas['PagedResultDtoOfGroupDto'];
1179
+ /** A directory's sign-in test, step by step (POST directories/{id}/test-login: its document names no answer). */
1180
+ type TestLoginStepName = 'Connection' | 'FindUser' | 'Authenticate' | 'Precedence';
1181
+ interface TestLoginResult {
1182
+ steps: {
1183
+ step: TestLoginStepName | string;
1184
+ succeeded: boolean;
1185
+ message: string;
1186
+ }[];
1187
+ }
1188
+ /** An account's status as the API sends it; a status this version doesn't know is shown as sent. */
1189
+ type AccountStatus = 'Active' | 'Inactive' | 'Locked';
1190
+ /** A connector plugin's state, as the directories' list names it. */
1191
+ type PluginState = 'Installed' | 'Enabled' | 'Disabled' | 'Failed';
1192
+ /** A number the API may give as a string (its 64-bit counts). */
1193
+ declare const num: (value: number | string | null | undefined) => number;
1194
+
1195
+ interface AccountEmailsPanelProps {
1196
+ addresses: AccountEmailsDto;
1197
+ /**
1198
+ * Whose they are, as a path of AbpGuard.HttpApi: `/accounts/{id}` for an admin (an address is confirmed at once), `/me`
1199
+ * for the person (a link is mailed to it).
1200
+ */
1201
+ base: string;
1202
+ /** Whether the person looking may change them. */
1203
+ canEdit: boolean;
1204
+ onChange: (addresses: AccountEmailsDto) => void;
1205
+ }
1206
+ /**
1207
+ * An account's addresses: its directory's, and its own. Every confirmed address matches the account; mail goes to the
1208
+ * one chosen. An admin's are confirmed at once; a person's once they follow the link mailed to the address.
1209
+ */
1210
+ declare function AccountEmailsPanel({ addresses, base, canEdit, onChange }: AccountEmailsPanelProps): react.JSX.Element;
1211
+
1212
+ interface AccountNameEditorProps {
1213
+ name: string;
1214
+ /** The person's name in other languages, by language code. */
1215
+ names?: Record<string, string> | null;
1216
+ /** `/me`, or `/accounts/{id}` for an admin. */
1217
+ base: string;
1218
+ /** Whether the name may be corrected here: an account of the internal directory, by someone who may change it. */
1219
+ correctable: boolean;
1220
+ onRenamed: (name: string) => void;
1221
+ }
1222
+ /**
1223
+ * An account's display name, corrected in place: only an account of the internal directory; a directory's account is
1224
+ * corrected in its directory. The person writes their name in each of the site's languages: the English one is the name
1225
+ * as written, which history and exports keep; each other language's shows to readers of that language. AbpGuard asks for
1226
+ * the password again.
1227
+ */
1228
+ declare function AccountNameEditor({ name, names, base, correctable, onRenamed }: AccountNameEditorProps): react.JSX.Element;
1229
+
1230
+ /**
1231
+ * Where the area's pages open on the host, for its links between them (a directory's page from the list, an account's
1232
+ * merge from its page). Hosts mount the pages under their own addresses; the default is Administration's `/admin`.
1233
+ */
1234
+ interface GuardRoutes {
1235
+ directories: string;
1236
+ directory: (id: string) => string;
1237
+ accounts: string;
1238
+ account: (id: string) => string;
1239
+ accountMerge: (id: string) => string;
1240
+ groups: string;
1241
+ group: (id: string) => string;
1242
+ }
1243
+ /** The area's pages under one base: `{base}/accounts`, `{base}/accounts/{id}`, `{base}/groups/{id}`… */
1244
+ declare function guardRoutes(base?: string): GuardRoutes;
1245
+
1246
+ /** What the person looking may do to this account, as AbpGuard.HttpApi answers it with the account (from 0.8.2). */
1247
+ type AccountAction = keyof AccountCanDto;
1248
+ /**
1249
+ * Whether the person looking may do `action` to the account: the account's own `can` flags, the server's answer for this
1250
+ * person and this account; from a server before them, whether they administer people and sign-in.
1251
+ */
1252
+ declare function useAccountCan(detail: AccountDetailDto | undefined): (action: AccountAction) => boolean;
1253
+ interface AccountScreenProps {
1254
+ id: string;
1255
+ routes?: GuardRoutes;
1256
+ }
1257
+ /**
1258
+ * An account: its name, addresses and second factor, the directories it comes from and which one wins, the groups it's
1259
+ * in (directly or through others), and the merges it was in. Lock, unlock and merge are shown only where AbpGuard allows
1260
+ * them for this very account (a helpdesk scoped to one directory, say). A host adds its own buttons through the
1261
+ * `guard.account.actions` slot, notices above the panels through `guard.account.notices`, and panels below the account's
1262
+ * through `guard.account.panels`; each gets `{ account, detail, reload }`.
1263
+ */
1264
+ declare function AccountScreen({ id, routes }: AccountScreenProps): react.JSX.Element;
1265
+
1266
+ interface AccountSecondFactorPanelProps {
1267
+ accountId: string;
1268
+ name: string;
1269
+ /** Whether the person looking may reset them; never on their own account. */
1270
+ canReset: boolean;
1271
+ }
1272
+ /**
1273
+ * A person's two-factor sign-in as an admin sees it: what their groups ask, what they set up, the recovery codes left,
1274
+ * and a reset for someone who lost their phone and their codes. Resetting is a strong step-up, and audited.
1275
+ */
1276
+ declare function AccountSecondFactorPanel({ accountId, name, canReset }: AccountSecondFactorPanelProps): react.JSX.Element;
1277
+
1278
+ interface AccountsScreenProps {
1279
+ routes?: GuardRoutes;
1280
+ /** Where the rows come from: AbpGuard.HttpApi's `/accounts/page` by default; a host may give its own. */
1281
+ source?: ListSource<AccountDto>;
1282
+ }
1283
+ /**
1284
+ * The accounts the person may see, a page at a time: searched by username, name or address, filtered by status, sorted
1285
+ * by any column but the directory. A site admin creates internal accounts here, and sees accounts that share an address.
1286
+ */
1287
+ declare function AccountsScreen({ routes, source }: AccountsScreenProps): react.JSX.Element;
1288
+
1289
+ /**
1290
+ * Anonymous access, for site admins: every role given to anonymous visitors, in one place, because anyone on the
1291
+ * internet gets it. Grants are made where the role is given (a place's members); any can be revoked here.
1292
+ * `roleName` names a role the host ships in the reader's language; the server's name otherwise.
1293
+ */
1294
+ declare function AnonymousScreen({ roleName }: {
1295
+ roleName?: (key: string, name: string) => string;
1296
+ }): react.JSX.Element;
1297
+
1298
+ /**
1299
+ * The site's directories, in the order sign-in tries them: added, reordered, synced now. A connector a directory needs
1300
+ * that isn't there (its plugin turned off) says so, and what a connector warns of in its settings is shown.
1301
+ */
1302
+ declare function DirectoriesScreen({ routes }: {
1303
+ routes?: GuardRoutes;
1304
+ }): react.JSX.Element;
1305
+
1306
+ interface DirectoryFormProps {
1307
+ mode: 'create' | 'edit';
1308
+ types: DirectoryTypeDto[];
1309
+ initial: DirectoryInput;
1310
+ /** Called with the input to save; throw to show the error inline. */
1311
+ onSubmit: (input: DirectoryInput) => Promise<void>;
1312
+ onCancel?: () => void;
1313
+ /** Fallback definitions when the directory's type is not registered (its connector's plugin turned off). */
1314
+ fallbackSettings?: DirectorySettingDefinition[];
1315
+ }
1316
+ /**
1317
+ * A directory's settings: its name by language, type, sync interval, whether it's active and signs people in, and its
1318
+ * connector's own settings (a secret is kept unless a new one is typed). A host may offer presets for a type's
1319
+ * settings through the `guard.directory.presets` slot (`apply(settings)` fills them).
1320
+ */
1321
+ declare function DirectoryForm({ mode, types, initial, onSubmit, onCancel, fallbackSettings }: DirectoryFormProps): react.JSX.Element;
1322
+ /**
1323
+ * What a directory's connector warns of in its settings: a read without TLS, a certificate check turned off. A
1324
+ * warning, not an error: the directory is saved and works; people's data travels in the clear.
1325
+ */
1326
+ declare function DirectoryWarnings({ title, warnings }: {
1327
+ title: string;
1328
+ warnings?: string[] | null;
1329
+ }): react.JSX.Element | null;
1330
+
1331
+ /**
1332
+ * A directory: its settings (a secret is never sent back, only kept or replaced), a test of its connection and of one
1333
+ * person's sign-in, syncing it now, its sync runs, and the panels its type's connector adds (`guard.directory.panel`).
1334
+ */
1335
+ declare function DirectoryScreen({ id, routes }: {
1336
+ id: string;
1337
+ routes?: GuardRoutes;
1338
+ }): react.JSX.Element;
1339
+
1340
+ /**
1341
+ * Accounts that share an address: one person twice, most likely, such as a placeholder from an import that the address
1342
+ * didn't match by itself because more than one account has it. Each offers a merge into the account listed first (an
1343
+ * active one when there is one). Draws nothing when there are none.
1344
+ */
1345
+ declare function DuplicatesPanel({ routes }: {
1346
+ routes?: GuardRoutes;
1347
+ }): react.JSX.Element | null;
1348
+
1349
+ interface GroupScreenProps {
1350
+ id: string;
1351
+ routes?: GuardRoutes;
1352
+ }
1353
+ /**
1354
+ * A group: its names, its direct members (accounts and groups) and the groups it's in, the groups nested in it as a
1355
+ * tree, whether its members are asked for a second factor, an organization's domains and attributes, and everyone in it
1356
+ * through any path. A local group takes members here; a synced or computed one says where its members come from.
1357
+ */
1358
+ declare function GroupScreen({ id, routes }: GroupScreenProps): react.JSX.Element;
1359
+
1360
+ interface GroupsScreenProps {
1361
+ routes?: GuardRoutes;
1362
+ /** Where the rows come from: AbpGuard.HttpApi's `/groups/page` by default; a host may give its own. */
1363
+ source?: ListSource<GroupDto>;
1364
+ }
1365
+ /**
1366
+ * The groups, a page at a time: local ones made here, synced ones from a directory, and those AbpGuard keeps itself
1367
+ * (everyone in a directory, an OU). Searched by name, filtered by directory and kind, sorted by name, kind or directory.
1368
+ * A site admin creates groups here: a group, or an organization customers join by their address's domain.
1369
+ */
1370
+ declare function GroupsScreen({ routes, source }: GroupsScreenProps): react.JSX.Element;
1371
+
1372
+ interface GroupTreeProps {
1373
+ rootId: string;
1374
+ rootName: string;
1375
+ rootMembers: GroupMemberDto[];
1376
+ /** Where a group's page opens; `guardRoutes()` by default. */
1377
+ routes?: GuardRoutes;
1378
+ }
1379
+ /** A group's nested member groups, as a tree. Children load when opened; a group met again on its own path is cut off. */
1380
+ declare function GroupTree({ rootId, rootName, rootMembers, routes }: GroupTreeProps): react.JSX.Element;
1381
+
1382
+ declare const TWO_FACTOR_MODES: readonly ["off", "optional", "required", "strong"];
1383
+ /**
1384
+ * Whether a group's members are asked for a second factor: off, offered, required, or required strong (a passkey or an
1385
+ * authenticator app). A person follows the strictest of all their groups. Changing it is a step-up, and audited.
1386
+ */
1387
+ declare function GroupTwoFactorPanel({ group, onSaved }: {
1388
+ group: GroupDto;
1389
+ onSaved: (updated: GroupDto) => void;
1390
+ }): react.JSX.Element;
1391
+
1392
+ /** A paged list's foot: its pages, and which rows of how many show, in the foundation's words. */
1393
+ declare function ListFooter<T>({ list }: {
1394
+ list: ListState<T>;
1395
+ }): react.JSX.Element | null;
1396
+
1397
+ /**
1398
+ * A count as a person reads it: `merge.count.{key}` with its dots as underscores (`records.reporter` as
1399
+ * `merge.count.records_reporter`), which a host gives for its own modules' counts through `AbpHost.texts.guard`; else
1400
+ * the part's own label, else its key.
1401
+ */
1402
+ declare function useCountLabel(): (c: MergeCountDto) => string;
1403
+ /** The module or plugin a part of a merge belongs to: `merge.part.{key}`, which a host gives for its own modules. */
1404
+ declare function usePartLabel(): (key: string, plugin: boolean) => string;
1405
+ /** What one part moved, as a short list. */
1406
+ declare function CountList({ counts }: {
1407
+ counts: MergeCountDto[];
1408
+ }): react.JSX.Element;
1409
+ interface MergesPanelProps {
1410
+ accountId: string;
1411
+ merges: AccountMergeDto[];
1412
+ onChange: () => Promise<void>;
1413
+ routes?: GuardRoutes;
1414
+ }
1415
+ /**
1416
+ * The merges an account was in: into it, or of it into another; who did it, or why it was automatic; and what each
1417
+ * module and plugin moved. A merge a part didn't finish can be resumed.
1418
+ */
1419
+ declare function MergesPanel({ accountId, merges, onChange, routes }: MergesPanelProps): react.JSX.Element;
1420
+
1421
+ interface MergeScreenProps {
1422
+ /** The account to merge into another. */
1423
+ id: string;
1424
+ /** The account to merge it into, when the link names one (the duplicates list's): picked already. */
1425
+ into?: string | null;
1426
+ routes?: GuardRoutes;
1427
+ }
1428
+ /**
1429
+ * Merges an account into another: everything it did, owns or is named in moves there, in every module and plugin, and
1430
+ * it stays as an inactive account that can't sign in. The page shows what would move first; an account that can sign
1431
+ * in is merged only once its username is typed to confirm.
1432
+ */
1433
+ declare function MergeScreen({ id, into, routes }: MergeScreenProps): react.JSX.Element;
1434
+
1435
+ /**
1436
+ * A name as the reader sees it: in their language when one was written for it (a person's, a group's), else the name as
1437
+ * written, which is the English one.
1438
+ */
1439
+ declare function useWrittenName(): (name: string, names?: Record<string, string> | null) => string;
1440
+
1441
+ /**
1442
+ * Sign-up, for site admins: off by default. On, people create their own accounts in the internal directory chosen
1443
+ * here, optionally only with an email in some domains; an account is active once its email is confirmed. Which places
1444
+ * they may use is a grant like any other, to that directory's "everyone" group.
1445
+ */
1446
+ declare function SignUpScreen(): react.JSX.Element;
1447
+
1448
+ /** The API sends the status as a string; one this version doesn't know is shown as sent. */
1449
+ declare function AccountStatusPill({ status }: {
1450
+ status: string;
1451
+ }): react.JSX.Element;
1452
+ /** The API sends the state as a string; one this version doesn't know is shown as sent. */
1453
+ declare function PluginStatePill({ state }: {
1454
+ state: string;
1455
+ }): react.JSX.Element;
1456
+ /** A yes/no flag as a pill: positive is success, negative is neutral. */
1457
+ declare function FlagPill({ value, yes, no }: {
1458
+ value: boolean;
1459
+ yes: string;
1460
+ no: string;
1461
+ }): react.JSX.Element;
1462
+ declare function PassFail({ ok }: {
1463
+ ok: boolean | null;
1464
+ }): react.JSX.Element;
1465
+ /** Result of a sync run: running (null), succeeded or failed. */
1466
+ declare function SyncResultPill({ succeeded }: {
1467
+ succeeded: boolean | null;
1468
+ }): react.JSX.Element;
1469
+ declare function SyncStatus({ d }: {
1470
+ d: Pick<DirectoryDto, 'lastSyncAt' | 'lastSyncSucceeded' | 'lastSyncMessage'>;
1471
+ }): react.JSX.Element;
1472
+
1473
+ /** The area's words, in English and Arabic; a host overrides any key through `AbpHost.texts.guard`. */
1474
+ declare const useGuardTexts: () => (key: string, values?: Record<string, string | number>) => string;
1475
+ type GuardText = (key: string, values?: Record<string, string | number>) => string;
1476
+ /** One group of the area's words (`directories`, `accountDetail`): `t('title')` reads `directories.title`. */
1477
+ declare function useGuardNs(namespace: string): GuardText;
1478
+ /**
1479
+ * A text with places for parts it doesn't hold (`Merged into <survivor></survivor>`): each empty tag gives way to the
1480
+ * part of that name, a link say, so the sentence stays in one piece for each language's word order.
1481
+ */
1482
+ declare function withParts(text: string, parts: Record<string, ReactNode>): ReactNode;
1483
+
1484
+ export { type AccountAction, type AccountCanDto, type AccountDetailDto, type AccountDto, type AccountEmailsDto, AccountEmailsPanel, type AccountEmailsPanelProps, type AccountMergeDto, type AccountNameDto, AccountNameEditor, type AccountNameEditorProps, type AccountPage, AccountScreen, type AccountScreenProps, AccountSecondFactorPanel, type AccountSecondFactorPanelProps, type AccountStatus, AccountStatusPill, type AccountSummaryDto, AccountsScreen, type AccountsScreenProps, type AnonymousGrantDto, AnonymousScreen, type ConnectionTestResult, CountList, DirectoriesScreen, type DirectoryDto, DirectoryForm, type DirectoryFormProps, type DirectoryInput, DirectoryScreen, type DirectorySettingDefinition, type DirectoryTypeDto, DirectoryWarnings, type DuplicateDto, DuplicatesPanel, type EffectiveGroupDto, type EffectiveMemberDto, FlagPill, type GroupDetailDto, type GroupDto, type GroupMemberDto, type GroupPage, GroupScreen, type GroupScreenProps, GroupTree, type GroupTreeProps, GroupTwoFactorPanel, GroupsScreen, type GroupsScreenProps, type GuardRoutes, type GuardText, type GuardTypes, type IdentityDto, ListFooter, type MergeCountDto, type MergePreviewDto, MergeScreen, type MergeScreenProps, MergesPanel, type MergesPanelProps, type MySecondFactorsDto, PassFail, type PluginState, PluginStatePill, type SecondFactorDto, SignUpScreen, type SignUpSettingsDto, type SignUpSettingsInput, SyncResultPill, type SyncRunDto, SyncStatus, TWO_FACTOR_MODES, type TestLoginResult, type TestLoginStepName, guardRoutes, num, useAccountCan, useCountLabel, useGuardNs, useGuardTexts, usePartLabel, useWrittenName, withParts };