@abpjs/ui 0.2.0-next.3 → 0.2.0-next.31

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