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

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,1547 @@
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { ListSource } 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 AppEnrolmentDto = Schemas['AppEnrolmentDto'];
1175
+ type SecondFactorSenderDto = Schemas['SecondFactorSenderDto'];
1176
+ type SignUpSettingsDto = Schemas['SignUpSettingsDto'];
1177
+ type SignUpSettingsInput = Schemas['SignUpSettingsInput'];
1178
+ type AnonymousGrantDto = Schemas['AnonymousGrantDto'];
1179
+ type AccountPage = Schemas['PagedResultDtoOfAccountDto'];
1180
+ type GroupPage = Schemas['PagedResultDtoOfGroupDto'];
1181
+ /** A directory's sign-in test, step by step (POST directories/{id}/test-login: its document names no answer). */
1182
+ type TestLoginStepName = 'Connection' | 'FindUser' | 'Authenticate' | 'Precedence';
1183
+ interface TestLoginResult {
1184
+ steps: {
1185
+ step: TestLoginStepName | string;
1186
+ succeeded: boolean;
1187
+ message: string;
1188
+ }[];
1189
+ }
1190
+ /** An account's status as the API sends it; a status this version doesn't know is shown as sent. */
1191
+ type AccountStatus = 'Active' | 'Inactive' | 'Locked';
1192
+ /** A connector plugin's state, as the directories' list names it. */
1193
+ type PluginState = 'Installed' | 'Enabled' | 'Disabled' | 'Failed';
1194
+ /** A number the API may give as a string (its 64-bit counts). */
1195
+ declare const num: (value: number | string | null | undefined) => number;
1196
+
1197
+ interface AccountEmailsPanelProps {
1198
+ addresses: AccountEmailsDto;
1199
+ /**
1200
+ * Whose they are, as a path of AbpGuard.HttpApi: `/accounts/{id}` for an admin (an address is confirmed at once), `/me`
1201
+ * for the person (a link is mailed to it).
1202
+ */
1203
+ base: string;
1204
+ /** Whether the person looking may change them. */
1205
+ canEdit: boolean;
1206
+ onChange: (addresses: AccountEmailsDto) => void;
1207
+ }
1208
+ /**
1209
+ * An account's addresses: its directory's, and its own. Every confirmed address matches the account; mail goes to the
1210
+ * one chosen. An admin's are confirmed at once; a person's once they follow the link mailed to the address.
1211
+ */
1212
+ declare function AccountEmailsPanel({ addresses, base, canEdit, onChange }: AccountEmailsPanelProps): react.JSX.Element;
1213
+
1214
+ interface AccountNameEditorProps {
1215
+ name: string;
1216
+ /** The person's name in other languages, by language code. */
1217
+ names?: Record<string, string> | null;
1218
+ /** `/me`, or `/accounts/{id}` for an admin. */
1219
+ base: string;
1220
+ /** Whether the name may be corrected here: an account of the internal directory, by someone who may change it. */
1221
+ correctable: boolean;
1222
+ onRenamed: (name: string) => void;
1223
+ }
1224
+ /**
1225
+ * An account's display name, corrected in place: only an account of the internal directory; a directory's account is
1226
+ * corrected in its directory. The person writes their name in each of the site's languages: the English one is the name
1227
+ * as written, which history and exports keep; each other language's shows to readers of that language. AbpGuard asks for
1228
+ * the password again.
1229
+ */
1230
+ declare function AccountNameEditor({ name, names, base, correctable, onRenamed }: AccountNameEditorProps): react.JSX.Element;
1231
+
1232
+ /**
1233
+ * Where the area's pages open on the host, for its links between them (a directory's page from the list, an account's
1234
+ * merge from its page). Hosts mount the pages under their own addresses; the default is Administration's `/admin`.
1235
+ */
1236
+ interface GuardRoutes {
1237
+ directories: string;
1238
+ directory: (id: string) => string;
1239
+ accounts: string;
1240
+ account: (id: string) => string;
1241
+ accountMerge: (id: string) => string;
1242
+ groups: string;
1243
+ group: (id: string) => string;
1244
+ }
1245
+ /** The area's pages under one base: `{base}/accounts`, `{base}/accounts/{id}`, `{base}/groups/{id}`… */
1246
+ declare function guardRoutes(base?: string): GuardRoutes;
1247
+
1248
+ /** What the person looking may do to this account, as AbpGuard.HttpApi answers it with the account (from 0.8.2). */
1249
+ type AccountAction = keyof AccountCanDto;
1250
+ /**
1251
+ * Whether the person looking may do `action` to the account: the account's own `can` flags, the server's answer for this
1252
+ * person and this account; from a server before them, whether they administer people and sign-in.
1253
+ */
1254
+ declare function useAccountCan(detail: AccountDetailDto | undefined): (action: AccountAction) => boolean;
1255
+ interface AccountScreenProps {
1256
+ id: string;
1257
+ routes?: GuardRoutes;
1258
+ }
1259
+ /**
1260
+ * An account: its name, addresses and second factor, the directories it comes from and which one wins, the groups it's
1261
+ * in (directly or through others), and the merges it was in. Lock, unlock and merge are shown only where AbpGuard allows
1262
+ * them for this very account (a helpdesk scoped to one directory, say). A host adds its own buttons through the
1263
+ * `guard.account.actions` slot, notices above the panels through `guard.account.notices`, and panels below the account's
1264
+ * through `guard.account.panels`; each gets `{ account, detail, reload }`.
1265
+ */
1266
+ declare function AccountScreen({ id, routes }: AccountScreenProps): react.JSX.Element;
1267
+
1268
+ interface AccountSecondFactorPanelProps {
1269
+ accountId: string;
1270
+ name: string;
1271
+ /** Whether the person looking may reset them; never on their own account. */
1272
+ canReset: boolean;
1273
+ }
1274
+ /**
1275
+ * A person's two-factor sign-in as an admin sees it: what their groups ask, what they set up, the recovery codes left,
1276
+ * and a reset for someone who lost their phone and their codes. Resetting is a strong step-up, and audited.
1277
+ */
1278
+ declare function AccountSecondFactorPanel({ accountId, name, canReset }: AccountSecondFactorPanelProps): react.JSX.Element;
1279
+
1280
+ interface AccountsScreenProps {
1281
+ routes?: GuardRoutes;
1282
+ /** Where the rows come from: AbpGuard.HttpApi's `/accounts/page` by default; a host may give its own. */
1283
+ source?: ListSource<AccountDto>;
1284
+ }
1285
+ /**
1286
+ * The accounts the person may see, a page at a time: searched by username, name or address, filtered by status, sorted
1287
+ * by any column but the directory. A site admin creates internal accounts here, and sees accounts that share an address.
1288
+ */
1289
+ declare function AccountsScreen({ routes, source }: AccountsScreenProps): react.JSX.Element;
1290
+
1291
+ /**
1292
+ * Anonymous access, for site admins: every role given to anonymous visitors, in one place, because anyone on the
1293
+ * internet gets it. Grants are made where the role is given (a place's members); any can be revoked here.
1294
+ * `roleName` names a role the host ships in the reader's language; the server's name otherwise.
1295
+ */
1296
+ declare function AnonymousScreen({ roleName }: {
1297
+ roleName?: (key: string, name: string) => string;
1298
+ }): react.JSX.Element;
1299
+
1300
+ /**
1301
+ * The site's directories, in the order sign-in tries them: added, reordered, synced now. A connector a directory needs
1302
+ * that isn't there (its plugin turned off) says so, and what a connector warns of in its settings is shown.
1303
+ */
1304
+ declare function DirectoriesScreen({ routes }: {
1305
+ routes?: GuardRoutes;
1306
+ }): react.JSX.Element;
1307
+
1308
+ interface DirectoryFormProps {
1309
+ mode: 'create' | 'edit';
1310
+ types: DirectoryTypeDto[];
1311
+ initial: DirectoryInput;
1312
+ /** Called with the input to save; throw to show the error inline. */
1313
+ onSubmit: (input: DirectoryInput) => Promise<void>;
1314
+ onCancel?: () => void;
1315
+ /** Fallback definitions when the directory's type is not registered (its connector's plugin turned off). */
1316
+ fallbackSettings?: DirectorySettingDefinition[];
1317
+ }
1318
+ /**
1319
+ * A directory's settings: its name by language, type, sync interval, whether it's active and signs people in, and its
1320
+ * connector's own settings (a secret is kept unless a new one is typed). A host may offer presets for a type's
1321
+ * settings through the `guard.directory.presets` slot (`apply(settings)` fills them).
1322
+ */
1323
+ declare function DirectoryForm({ mode, types, initial, onSubmit, onCancel, fallbackSettings }: DirectoryFormProps): react.JSX.Element;
1324
+ /**
1325
+ * What a directory's connector warns of in its settings: a read without TLS, a certificate check turned off. A
1326
+ * warning, not an error: the directory is saved and works; people's data travels in the clear.
1327
+ */
1328
+ declare function DirectoryWarnings({ title, warnings }: {
1329
+ title: string;
1330
+ warnings?: string[] | null;
1331
+ }): react.JSX.Element | null;
1332
+
1333
+ /**
1334
+ * A directory: its settings (a secret is never sent back, only kept or replaced), a test of its connection and of one
1335
+ * person's sign-in, syncing it now, its sync runs, and the panels its type's connector adds (`guard.directory.panel`).
1336
+ */
1337
+ declare function DirectoryScreen({ id, routes }: {
1338
+ id: string;
1339
+ routes?: GuardRoutes;
1340
+ }): react.JSX.Element;
1341
+
1342
+ /**
1343
+ * Accounts that share an address: one person twice, most likely, such as a placeholder from an import that the address
1344
+ * didn't match by itself because more than one account has it. Each offers a merge into the account listed first (an
1345
+ * active one when there is one). Draws nothing when there are none.
1346
+ */
1347
+ declare function DuplicatesPanel({ routes }: {
1348
+ routes?: GuardRoutes;
1349
+ }): react.JSX.Element | null;
1350
+
1351
+ interface GroupScreenProps {
1352
+ id: string;
1353
+ routes?: GuardRoutes;
1354
+ }
1355
+ /**
1356
+ * A group: its names, its direct members (accounts and groups) and the groups it's in, the groups nested in it as a
1357
+ * tree, whether its members are asked for a second factor, an organization's domains and attributes, and everyone in it
1358
+ * through any path. A local group takes members here; a synced or computed one says where its members come from.
1359
+ */
1360
+ declare function GroupScreen({ id, routes }: GroupScreenProps): react.JSX.Element;
1361
+
1362
+ interface GroupsScreenProps {
1363
+ routes?: GuardRoutes;
1364
+ /** Where the rows come from: AbpGuard.HttpApi's `/groups/page` by default; a host may give its own. */
1365
+ source?: ListSource<GroupDto>;
1366
+ }
1367
+ /**
1368
+ * The groups, a page at a time: local ones made here, synced ones from a directory, and those AbpGuard keeps itself
1369
+ * (everyone in a directory, an OU). Searched by name, filtered by directory and kind, sorted by name, kind or directory.
1370
+ * A site admin creates groups here: a group, or an organization customers join by their address's domain.
1371
+ */
1372
+ declare function GroupsScreen({ routes, source }: GroupsScreenProps): react.JSX.Element;
1373
+
1374
+ interface GroupTreeProps {
1375
+ rootId: string;
1376
+ rootName: string;
1377
+ rootMembers: GroupMemberDto[];
1378
+ /** Where a group's page opens; `guardRoutes()` by default. */
1379
+ routes?: GuardRoutes;
1380
+ }
1381
+ /** A group's nested member groups, as a tree. Children load when opened; a group met again on its own path is cut off. */
1382
+ declare function GroupTree({ rootId, rootName, rootMembers, routes }: GroupTreeProps): react.JSX.Element;
1383
+
1384
+ declare const TWO_FACTOR_MODES: readonly ["off", "optional", "required", "strong"];
1385
+ /**
1386
+ * Whether a group's members are asked for a second factor: off, offered, required, or required strong (a passkey or an
1387
+ * authenticator app). A person follows the strictest of all their groups. Changing it is a step-up, and audited.
1388
+ */
1389
+ declare function GroupTwoFactorPanel({ group, onSaved }: {
1390
+ group: GroupDto;
1391
+ onSaved: (updated: GroupDto) => void;
1392
+ }): react.JSX.Element;
1393
+
1394
+ /**
1395
+ * A count as a person reads it: `merge.count.{key}` with its dots as underscores (`records.reporter` as
1396
+ * `merge.count.records_reporter`), which a host gives for its own modules' counts through `AbpHost.texts.guard`; else
1397
+ * the part's own label, else its key.
1398
+ */
1399
+ declare function useCountLabel(): (c: MergeCountDto) => string;
1400
+ /** The module or plugin a part of a merge belongs to: `merge.part.{key}`, which a host gives for its own modules. */
1401
+ declare function usePartLabel(): (key: string, plugin: boolean) => string;
1402
+ /** What one part moved, as a short list. */
1403
+ declare function CountList({ counts }: {
1404
+ counts: MergeCountDto[];
1405
+ }): react.JSX.Element;
1406
+ interface MergesPanelProps {
1407
+ accountId: string;
1408
+ merges: AccountMergeDto[];
1409
+ onChange: () => Promise<void>;
1410
+ routes?: GuardRoutes;
1411
+ }
1412
+ /**
1413
+ * The merges an account was in: into it, or of it into another; who did it, or why it was automatic; and what each
1414
+ * module and plugin moved. A merge a part didn't finish can be resumed.
1415
+ */
1416
+ declare function MergesPanel({ accountId, merges, onChange, routes }: MergesPanelProps): react.JSX.Element;
1417
+
1418
+ interface MergeScreenProps {
1419
+ /** The account to merge into another. */
1420
+ id: string;
1421
+ /** The account to merge it into, when the link names one (the duplicates list's): picked already. */
1422
+ into?: string | null;
1423
+ routes?: GuardRoutes;
1424
+ }
1425
+ /**
1426
+ * Merges an account into another: everything it did, owns or is named in moves there, in every module and plugin, and
1427
+ * it stays as an inactive account that can't sign in. The page shows what would move first; an account that can sign
1428
+ * in is merged only once its username is typed to confirm.
1429
+ */
1430
+ declare function MergeScreen({ id, into, routes }: MergeScreenProps): react.JSX.Element;
1431
+
1432
+ interface MySecondFactorsPanelProps {
1433
+ /** Start setting up an authenticator app at once (signing in sent the person here because a group offers one). */
1434
+ setUpNow?: boolean;
1435
+ /** The person opened or closed the setup: a host that asked through its address forgets it, so a reload doesn't start again. */
1436
+ onSetUpChosen?: (settingUp: boolean) => void;
1437
+ /** Their factors changed: a host refreshes what it knows of the person (whether they have a strong factor). */
1438
+ onChange?: () => void;
1439
+ }
1440
+ /**
1441
+ * The person's own two-factor sign-in: what their groups ask, their passkeys (named, so they know which device) and
1442
+ * authenticator apps, and the recovery codes left. Adding one, removing one and new recovery codes each are a step-up,
1443
+ * a strong one once they have a strong factor, asked by the foundation's step-up dialog.
1444
+ */
1445
+ declare function MySecondFactorsPanel({ setUpNow, onSetUpChosen, onChange }: MySecondFactorsPanelProps): react.JSX.Element;
1446
+
1447
+ /**
1448
+ * 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
1449
+ * written, which is the English one.
1450
+ */
1451
+ declare function useWrittenName(): (name: string, names?: Record<string, string> | null) => string;
1452
+
1453
+ /** The authenticator app's base32 key in groups of four, easier to type into an app. */
1454
+ declare function groupedKey(secret: string): string;
1455
+ /**
1456
+ * A way a code is sent, in the person's language: `secondFactor.sender.{method}` when the host gives it (its non-word
1457
+ * characters as underscores: `acme.messaging:sms` is `secondFactor.sender.acme_messaging_sms`), email by name, else the
1458
+ * name the sender gives itself.
1459
+ */
1460
+ declare function useSenderName(): (sender: SecondFactorSenderDto) => string;
1461
+ /** A code field for six digits, or a recovery code: what a phone's keyboard and a password manager should offer. */
1462
+ declare function CodeInput({ recovery, value, onChange, autoFocus, }: {
1463
+ recovery?: boolean;
1464
+ value: string;
1465
+ onChange: (v: string) => void;
1466
+ autoFocus?: boolean;
1467
+ }): react.JSX.Element;
1468
+ interface AppSetupProps {
1469
+ /** Makes the secret: the key, its `otpauth:` address and its QR code. */
1470
+ start: () => Promise<AppEnrolmentDto>;
1471
+ /** Checks the first code: the recovery codes (null when the person has some already), or false for a wrong code. */
1472
+ confirm: (code: string) => Promise<string[] | null | false>;
1473
+ onDone: (recoveryCodes: string[] | null) => void;
1474
+ onCancel?: () => void;
1475
+ }
1476
+ /**
1477
+ * Setting up an authenticator app: the QR code to scan, the key to type in, a link that opens an app on this device,
1478
+ * and the first code.
1479
+ */
1480
+ declare function AppSetup({ start, confirm, onDone, onCancel }: AppSetupProps): react.JSX.Element;
1481
+ /** Recovery codes, shown once: to copy or download, and a button for when they're saved. */
1482
+ declare function RecoveryCodes({ codes, onSaved, savedLabel }: {
1483
+ codes: string[];
1484
+ onSaved: () => void;
1485
+ savedLabel?: string;
1486
+ }): react.JSX.Element;
1487
+
1488
+ /**
1489
+ * Sign-up, for site admins: off by default. On, people create their own accounts in the internal directory chosen
1490
+ * here, optionally only with an email in some domains; an account is active once its email is confirmed. Which places
1491
+ * they may use is a grant like any other, to that directory's "everyone" group.
1492
+ */
1493
+ declare function SignUpScreen(): react.JSX.Element;
1494
+
1495
+ /** What AbpGuard says of a person's strong factor (`me.strongFactor`): whether they have one, and by when they must. */
1496
+ interface StrongFactorState {
1497
+ has: boolean;
1498
+ requiredBy?: string | null;
1499
+ overdue?: boolean;
1500
+ }
1501
+ /**
1502
+ * A site admin the operator requires a strong factor of, who has none yet: by when to set up a passkey or an
1503
+ * authenticator app, at the top of every page until they have. After the date, signing in asks them to set one up
1504
+ * before going on; until then it's this, never in the way of their work. Draws nothing otherwise.
1505
+ */
1506
+ declare function StrongFactorBanner({ strongFactor, setUpHref }: {
1507
+ strongFactor?: StrongFactorState | null;
1508
+ setUpHref: string;
1509
+ }): react.JSX.Element | null;
1510
+
1511
+ /** The API sends the status as a string; one this version doesn't know is shown as sent. */
1512
+ declare function AccountStatusPill({ status }: {
1513
+ status: string;
1514
+ }): react.JSX.Element;
1515
+ /** The API sends the state as a string; one this version doesn't know is shown as sent. */
1516
+ declare function PluginStatePill({ state }: {
1517
+ state: string;
1518
+ }): react.JSX.Element;
1519
+ /** A yes/no flag as a pill: positive is success, negative is neutral. */
1520
+ declare function FlagPill({ value, yes, no }: {
1521
+ value: boolean;
1522
+ yes: string;
1523
+ no: string;
1524
+ }): react.JSX.Element;
1525
+ declare function PassFail({ ok }: {
1526
+ ok: boolean | null;
1527
+ }): react.JSX.Element;
1528
+ /** Result of a sync run: running (null), succeeded or failed. */
1529
+ declare function SyncResultPill({ succeeded }: {
1530
+ succeeded: boolean | null;
1531
+ }): react.JSX.Element;
1532
+ declare function SyncStatus({ d }: {
1533
+ d: Pick<DirectoryDto, 'lastSyncAt' | 'lastSyncSucceeded' | 'lastSyncMessage'>;
1534
+ }): react.JSX.Element;
1535
+
1536
+ /** The area's words, in English and Arabic; a host overrides any key through `AbpHost.texts.guard`. */
1537
+ declare const useGuardTexts: () => (key: string, values?: Record<string, string | number>) => string;
1538
+ type GuardText = (key: string, values?: Record<string, string | number>) => string;
1539
+ /** One group of the area's words (`directories`, `accountDetail`): `t('title')` reads `directories.title`. */
1540
+ declare function useGuardNs(namespace: string): GuardText;
1541
+ /**
1542
+ * A text with places for parts it doesn't hold (`Merged into <survivor></survivor>`): each empty tag gives way to the
1543
+ * part of that name, a link say, so the sentence stays in one piece for each language's word order.
1544
+ */
1545
+ declare function withParts(text: string, parts: Record<string, ReactNode>): ReactNode;
1546
+
1547
+ 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, 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, type MergeCountDto, type MergePreviewDto, MergeScreen, type MergeScreenProps, MergesPanel, type MergesPanelProps, type MySecondFactorsDto, MySecondFactorsPanel, type MySecondFactorsPanelProps, PassFail, type PluginState, PluginStatePill, RecoveryCodes, type SecondFactorDto, type SecondFactorSenderDto, SignUpScreen, type SignUpSettingsDto, type SignUpSettingsInput, StrongFactorBanner, type StrongFactorState, SyncResultPill, type SyncRunDto, SyncStatus, TWO_FACTOR_MODES, type TestLoginResult, type TestLoginStepName, groupedKey, guardRoutes, num, useAccountCan, useCountLabel, useGuardNs, useGuardTexts, usePartLabel, useSenderName, useWrittenName, withParts };