-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathen.objects.generated.ts
More file actions
2763 lines (2760 loc) · 72.9 KB
/
Copy pathen.objects.generated.ts
File metadata and controls
2763 lines (2760 loc) · 72.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
/**
* Auto-generated by 'os i18n extract' for locale 'en'.
* Edit translations in place; re-run extract (with --merge) to fill new gaps.
* Do not hand-edit the structure — only the leaf string values.
*/
import type { TranslationData } from '@objectstack/spec/system';
export const enObjects: NonNullable<TranslationData['objects']> = {
sys_user: {
label: "User",
pluralLabel: "Users",
description: "User accounts for authentication",
fields: {
name: {
label: "Name"
},
email: {
label: "Email"
},
email_verified: {
label: "Email Verified"
},
two_factor_enabled: {
label: "Two-Factor Enabled",
help: "Whether two-factor authentication is enabled for this user. Maintained by the better-auth `twoFactor` plugin."
},
role: {
label: "Platform Role",
help: "Platform-level role (admin, user, …). Set via the Set Platform Role action."
},
banned: {
label: "Banned",
help: "When true, the user cannot sign in. Toggle via Ban User / Unban User actions."
},
ban_reason: {
label: "Ban Reason"
},
ban_expires: {
label: "Ban Expires",
help: "When set, the ban auto-clears at this time."
},
failed_login_count: {
label: "Failed Login Count",
help: "Consecutive failed sign-in attempts; reset to 0 on success. Maintained by the auth manager."
},
locked_until: {
label: "Locked Until",
help: "When set and in the future, sign-in is rejected (brute-force lockout). Auto-clears past this time; an admin can clear it early via Unlock."
},
password_changed_at: {
label: "Password Changed At",
help: "Timestamp of the last password change. Backs password_expiry_days; system-managed."
},
phone_number: {
label: "Phone Number",
help: "Sign-in phone number (E.164 recommended). Unique per user; managed by better-auth when the phoneNumber plugin is enabled."
},
phone_number_verified: {
label: "Phone Verified",
help: "Whether the phone number has been verified (OTP verification requires SMS infrastructure; false until that ships). System-managed."
},
must_change_password: {
label: "Must Change Password",
help: "When true, the user is blocked (403 PASSWORD_EXPIRED) until they change their password. Stamped by the admin user-management routes; system-managed."
},
mfa_required_at: {
label: "MFA Required At",
help: "When enforced MFA first applied to this user (grace-period clock). Backs mfa_required; system-managed."
},
last_login_at: {
label: "Last Login At",
help: "Timestamp of the last successful sign-in. Stamped by the auth manager; system-managed."
},
last_login_ip: {
label: "Last Login IP",
help: "Client IP of the last successful sign-in (from the trusted proxy forwarded header). System-managed."
},
ai_access: {
label: "AI Access",
help: "Whether this user holds an AI seat — grants access to the in-UI AI agents (build / ask). The framework synthesizes the `ai_seat` capability from this flag (plugin-hono-server resolveCtx). Assignment is capped by the licensed / purchased seat count (enforced by @objectstack/security-enterprise AiSeatPlugin). Owned by objectql (better-auth is oblivious to this column)."
},
image: {
label: "Profile Image"
},
manager_id: {
label: "Manager",
help: "This user's direct manager. Forms the reporting chain the `own_and_reports` hierarchy scope walks (ADR-0057 / @objectstack/security-enterprise)."
},
primary_business_unit_id: {
label: "Primary Business Unit",
help: "The user's primary business unit — a denormalised projection of sys_business_unit_member.is_primary, maintained by plugin-sharing (ADR-0057 addendum D12). Lets a user-lookup filter candidates by business unit without traversing the membership junction. Do not edit directly; set it via business-unit membership."
},
source: {
label: "Identity Source",
help: "How this identity was created — idp_provisioned (federated SSO JIT) or env_native (local signup / app end-user). System-managed; do not edit.",
options: {
idp_provisioned: "IdP-Provisioned",
env_native: "Env-Native"
}
},
id: {
label: "User ID"
},
created_at: {
label: "Created At"
},
updated_at: {
label: "Updated At"
}
},
_views: {
me: {
label: "My Profile"
},
all_users: {
label: "All Users"
},
unverified: {
label: "Unverified"
},
two_factor: {
label: "2FA Enabled"
},
banned: {
label: "Banned"
}
},
_actions: {
invite_user: {
label: "Invite User",
successMessage: "Invitation sent"
},
ban_user: {
label: "Ban User",
confirmText: "Ban this user? They will be signed out and unable to sign in until unbanned.",
successMessage: "User banned",
params: {
banReason: {
label: "Ban Reason"
}
}
},
unban_user: {
label: "Unban User",
successMessage: "User unbanned"
},
unlock_user: {
label: "Unlock Account",
successMessage: "Account unlocked"
},
create_user: {
label: "Create User",
successMessage: "User created",
params: {
phoneNumber: {
label: "Phone Number",
helpText: "Sign-in phone number (E.164, e.g. +8613800000000). Required when no email is given."
},
generatePassword: {
label: "Generate Temporary Password"
},
password: {
label: "Password (leave empty to generate)"
},
mustChangePassword: {
label: "Require Password Change On First Login"
}
},
resultDialog: {
title: "User Created",
description: "Copy the temporary password now — it is shown only once and never stored.",
acknowledge: "I have saved this password",
fields: {
"user.email": "Email",
"user.phoneNumber": "Phone Number",
temporaryPassword: "Temporary Password"
}
}
},
set_user_password: {
label: "Set Password",
successMessage: "Password updated",
params: {
generatePassword: {
label: "Generate Temporary Password"
},
newPassword: {
label: "New Password (leave empty to generate)"
},
mustChangePassword: {
label: "Require Password Change On Next Login"
}
},
resultDialog: {
title: "Password Updated",
description: "If a temporary password was generated, copy it now — it is shown only once and never stored.",
acknowledge: "Done",
fields: {
temporaryPassword: "Temporary Password"
}
}
},
set_user_role: {
label: "Set Platform Role",
successMessage: "Role updated",
params: {
role: {
label: "Platform Role"
}
}
},
impersonate_user: {
label: "Impersonate User",
confirmText: "Start an impersonation session for this user? Use only for legitimate support cases — actions will be logged.",
successMessage: "Now impersonating user"
},
update_my_profile: {
label: "Update Profile",
successMessage: "Profile updated"
},
change_my_password: {
label: "Change Password",
successMessage: "Password changed",
params: {
currentPassword: {
label: "Current Password"
},
newPassword: {
label: "New Password"
},
revokeOtherSessions: {
label: "Sign out other devices"
}
}
},
change_my_email: {
label: "Change Email",
successMessage: "Verification email sent — check the new address to confirm.",
params: {
newEmail: {
label: "New Email"
}
}
},
resend_verification_email: {
label: "Resend Verification Email",
successMessage: "Verification email sent — check your inbox."
},
delete_my_account: {
label: "Delete My Account",
confirmText: "Permanently delete your account? This cannot be undone — all your sessions will be terminated and all data you own will be removed per the configured retention policy.",
successMessage: "Account deleted",
params: {
password: {
label: "Current Password"
}
}
},
enable_two_factor: {
label: "Enable Two-Factor Auth",
successMessage: "Two-factor authentication enabled. Scan the QR code or paste the otpauth URI into your authenticator app, then verify a code to complete setup.",
params: {
password: {
label: "Current Password"
}
}
},
disable_two_factor: {
label: "Disable Two-Factor Auth",
confirmText: "Turn off two-factor authentication? Your account will be less secure.",
successMessage: "Two-factor authentication disabled.",
params: {
password: {
label: "Current Password"
}
}
},
generate_backup_codes: {
label: "Regenerate Backup Codes",
confirmText: "Generate a new set of backup codes? Any previously generated codes will stop working.",
successMessage: "New backup codes generated — save them somewhere safe.",
params: {
password: {
label: "Current Password"
}
}
}
}
},
sys_session: {
label: "Session",
pluralLabel: "Sessions",
description: "Active user sessions",
fields: {
user_id: {
label: "User"
},
expires_at: {
label: "Expires At"
},
last_activity_at: {
label: "Last Activity At",
help: "Timestamp of the last request on this session; drives idle-timeout. System-managed."
},
revoked_at: {
label: "Revoked At",
help: "When set, this session was revoked (idle / absolute-max / concurrent-cap / admin). System-managed."
},
revoke_reason: {
label: "Revoke Reason",
help: "Why the session was revoked (idle_timeout, absolute_max, concurrent_cap, …)."
},
active_organization_id: {
label: "Active Organization"
},
active_team_id: {
label: "Active Team"
},
ip_address: {
label: "IP Address"
},
user_agent: {
label: "User Agent"
},
impersonated_by: {
label: "Impersonated By",
help: "User id of the admin that started this impersonation session, if any."
},
token: {
label: "Session Token",
help: "Opaque session token — never exposed in UI"
},
id: {
label: "Session ID"
},
created_at: {
label: "Created At"
},
updated_at: {
label: "Updated At"
}
},
_views: {
mine: {
label: "My Sessions"
},
all_sessions: {
label: "All"
}
},
_actions: {
revoke_my_other_sessions: {
label: "Sign out other devices",
confirmText: "Sign out of every other device where you're currently logged in? Your current session will remain active.",
successMessage: "All other sessions revoked"
},
revoke_session: {
label: "Revoke Session",
confirmText: "Revoke this session? The user will be signed out from that device.",
successMessage: "Session revoked"
}
}
},
sys_account: {
label: "Account",
pluralLabel: "Accounts",
description: "OAuth and authentication provider accounts",
fields: {
id: {
label: "Account ID"
},
created_at: {
label: "Created At"
},
updated_at: {
label: "Updated At"
},
provider_id: {
label: "Provider ID",
help: "OAuth provider identifier (google, github, etc.)"
},
account_id: {
label: "Provider Account ID",
help: "User's ID in the provider's system"
},
user_id: {
label: "User",
help: "Link to user table"
},
access_token: {
label: "Access Token"
},
refresh_token: {
label: "Refresh Token"
},
id_token: {
label: "ID Token"
},
access_token_expires_at: {
label: "Access Token Expires At"
},
refresh_token_expires_at: {
label: "Refresh Token Expires At"
},
scope: {
label: "OAuth Scope"
},
password: {
label: "Password Hash",
help: "Hashed password for email/password provider"
},
previous_password_hashes: {
label: "Previous Password Hashes",
help: "JSON array of prior password hashes (bounded by password_history_count); reuse-prevention only. System-managed."
}
},
_views: {
mine: {
label: "My Links"
},
by_provider: {
label: "By Provider"
},
all_links: {
label: "All"
}
},
_actions: {
link_social: {
label: "Link Social Account",
params: {
provider: {
label: "Provider",
options: {
google: "Google",
github: "GitHub",
microsoft: "Microsoft",
apple: "Apple",
facebook: "Facebook",
gitlab: "GitLab",
discord: "Discord"
}
}
}
},
unlink_account: {
label: "Unlink Account",
confirmText: "Unlink this identity link? The user will no longer be able to sign in with this provider until they re-link it from their account settings.",
successMessage: "Identity link removed"
}
}
},
sys_verification: {
label: "Verification",
pluralLabel: "Verifications",
description: "Email and phone verification tokens",
fields: {
id: {
label: "Verification ID"
},
created_at: {
label: "Created At"
},
updated_at: {
label: "Updated At"
},
value: {
label: "Verification Token",
help: "Token or code for verification"
},
expires_at: {
label: "Expires At"
},
identifier: {
label: "Identifier",
help: "Email address or phone number"
}
}
},
sys_organization: {
label: "Organization",
pluralLabel: "Organizations",
description: "Organizations for multi-tenant grouping",
fields: {
name: {
label: "Name"
},
slug: {
label: "Slug",
help: "URL-friendly identifier"
},
logo: {
label: "Logo"
},
metadata: {
label: "Metadata",
help: "JSON-serialized organization metadata"
},
require_mfa: {
label: "Require Multi-Factor Auth",
help: "When true, every member of this organization must enroll an authenticator app to access data."
},
id: {
label: "Organization ID"
},
created_at: {
label: "Created At"
},
updated_at: {
label: "Updated At"
}
},
_views: {
all_orgs: {
label: "All"
}
},
_actions: {
create_organization: {
label: "Create Organization",
successMessage: "Organization created"
},
update_organization: {
label: "Edit Organization",
successMessage: "Organization updated"
},
delete_organization: {
label: "Delete Organization",
confirmText: "Delete this organization? All members will lose access immediately. This cannot be undone.",
successMessage: "Organization deleted"
},
set_active_organization: {
label: "Set Active",
successMessage: "Active organization switched"
},
leave_organization: {
label: "Leave Organization",
confirmText: "Leave this organization? You will lose access to all of its resources.",
successMessage: "You have left the organization"
},
change_slug: {
label: "Change Slug",
confirmText: "Renaming the slug rewrites every platform subdomain for this org and parks the old slug for 90 days. Continue?",
successMessage: "Organization slug changed"
}
}
},
sys_member: {
label: "Member",
pluralLabel: "Members",
description: "Organization membership records",
fields: {
id: {
label: "Member ID"
},
created_at: {
label: "Created At"
},
organization_id: {
label: "Organization"
},
user_id: {
label: "User"
},
role: {
label: "Role",
help: "Member role within the organization",
options: {
owner: "Owner",
admin: "Admin",
member: "Member"
}
}
},
_views: {
mine: {
label: "My Memberships",
emptyState: {
title: "No organizations yet",
message: "You haven't joined any organizations."
}
}
},
_actions: {
add_member: {
label: "Add Member",
successMessage: "Member added"
},
update_member_role: {
label: "Change Role",
successMessage: "Member role updated"
},
remove_member: {
label: "Remove Member",
confirmText: "Remove this member from the organization? They will lose access to all org resources.",
successMessage: "Member removed"
},
transfer_ownership: {
label: "Transfer Ownership",
confirmText: "Transfer ownership of this organization to the selected member? You will be demoted to admin and lose owner-only privileges.",
successMessage: "Ownership transferred"
}
}
},
sys_invitation: {
label: "Invitation",
pluralLabel: "Invitations",
description: "Organization invitations for user onboarding",
fields: {
id: {
label: "Invitation ID"
},
created_at: {
label: "Created At"
},
organization_id: {
label: "Organization"
},
email: {
label: "Email",
help: "Email address of the invited user"
},
role: {
label: "Role",
help: "Role to assign upon acceptance",
options: {
owner: "Owner",
admin: "Admin",
member: "Member"
}
},
status: {
label: "Status",
options: {
pending: "pending",
accepted: "accepted",
rejected: "rejected",
expired: "expired",
canceled: "canceled"
}
},
inviter_id: {
label: "Inviter",
help: "User who sent the invitation"
},
expires_at: {
label: "Expires At"
},
team_id: {
label: "Team",
help: "Optional team to assign upon acceptance"
}
},
_views: {
pending: {
label: "Pending"
},
accepted: {
label: "Accepted"
},
expired: {
label: "Expired / Canceled"
},
all_invitations: {
label: "All"
}
},
_actions: {
invite_user: {
label: "Invite User",
successMessage: "Invitation sent"
},
cancel_invitation: {
label: "Cancel Invitation",
confirmText: "Cancel this invitation? The recipient will no longer be able to accept it.",
successMessage: "Invitation canceled"
},
resend_invitation: {
label: "Resend Invitation",
successMessage: "Invitation resent"
},
accept_invitation: {
label: "Accept Invitation",
successMessage: "Invitation accepted"
},
reject_invitation: {
label: "Decline Invitation",
confirmText: "Decline this invitation? The inviter will be notified and you will need a new invitation to join.",
successMessage: "Invitation declined"
}
}
},
sys_team: {
label: "Team",
pluralLabel: "Teams",
description: "Teams within organizations for fine-grained grouping",
fields: {
name: {
label: "Name"
},
organization_id: {
label: "Organization",
help: "Parent organization for this team"
},
id: {
label: "Team ID"
},
created_at: {
label: "Created At"
},
updated_at: {
label: "Updated At"
}
},
_views: {
by_org: {
label: "By Organization"
},
all_teams: {
label: "All"
}
},
_actions: {
create_team: {
label: "Create Team",
successMessage: "Team created"
},
update_team: {
label: "Edit Team",
successMessage: "Team updated"
},
remove_team: {
label: "Delete Team",
confirmText: "Delete this team? Members will lose any team-scoped access. This cannot be undone.",
successMessage: "Team deleted"
}
}
},
sys_team_member: {
label: "Team Member",
pluralLabel: "Team Members",
description: "Team membership records linking users to teams",
fields: {
id: {
label: "Team Member ID"
},
created_at: {
label: "Created At"
},
team_id: {
label: "Team"
},
user_id: {
label: "User"
}
},
_actions: {
add_team_member: {
label: "Add Member",
successMessage: "Team member added"
},
remove_team_member: {
label: "Remove from Team",
confirmText: "Remove this user from the team? They will lose any team-scoped access.",
successMessage: "Team member removed"
}
}
},
sys_business_unit: {
label: "Business Unit",
pluralLabel: "Business Units",
description: "Hierarchical org-skeleton node (department / division / business unit / office).",
fields: {
name: {
label: "Name"
},
code: {
label: "Code",
help: "Short stable code (e.g. EMEA-SALES). Unique within tenant."
},
kind: {
label: "Kind",
help: "Categorisation hint — does not change graph semantics.",
options: {
company: "company",
division: "division",
department: "department",
office: "office",
cost_center: "cost_center"
}
},
parent_business_unit_id: {
label: "Parent Business Unit",
help: "Self-reference for the org tree. Null = root of tenant."
},
organization_id: {
label: "Organization",
help: "Tenant scope."
},
manager_user_id: {
label: "Business Unit Head",
help: "User responsible for this org unit (business unit head / lead)."
},
active: {
label: "Active",
help: "When false, members are not expanded by graph queries."
},
effective_from: {
label: "Effective From",
help: "When this business unit came into existence (HRIS sync)."
},
effective_to: {
label: "Effective To",
help: "When this business unit was retired (HRIS sync)."
},
external_ref: {
label: "External Reference",
help: "ID in upstream HRIS (Workday / SAP HR / 北森)."
},
id: {
label: "Business Unit ID"
},
created_at: {
label: "Created At"
},
updated_at: {
label: "Updated At"
}
},
_views: {
org_chart: {
label: "Org Chart"
},
active: {
label: "Active"
},
inactive: {
label: "Inactive"
},
by_kind: {
label: "By Kind"
},
all_departments: {
label: "All"
}
}
},
sys_business_unit_member: {
label: "Business Unit Member",
pluralLabel: "Business Unit Members",
description: "User assignment to a business unit (matrix-org friendly, effective-dated).",
fields: {
id: {
label: "Member ID"
},
business_unit_id: {
label: "Business Unit"
},
user_id: {
label: "User"
},
function_in_business_unit: {
label: "Function in Business Unit",
help: "`lead` is the day-to-day head; `deputy` may stand in for the lead in approval routing.",
options: {
member: "member",
lead: "lead",
deputy: "deputy"
}
},
is_primary: {
label: "Primary Assignment",
help: "When the user is in multiple departments, this marks the canonical one for reporting."
},
effective_from: {
label: "Effective From"
},
effective_to: {
label: "Effective To"
},
created_at: {
label: "Created At"
},
updated_at: {
label: "Updated At"
}
}
},
sys_api_key: {
label: "API Key",
pluralLabel: "API Keys",
description: "API keys for programmatic access",
fields: {
name: {
label: "Name",
help: "Human-readable label for the API key"
},
prefix: {
label: "Prefix",
help: "Visible prefix for identifying the key (e.g., \"osk_\")"
},
user_id: {
label: "Owner",
help: "User who owns this API key"
},
scopes: {
label: "Scopes",
help: "JSON array of permission scopes"
},
expires_at: {
label: "Expires At"
},
last_used_at: {
label: "Last Used At",
help: "Automatically updated on each API call"
},
revoked: {
label: "Revoked"
},
key: {
label: "Hashed Key",
help: "Hashed API key value — never exposed to clients"
},
id: {
label: "API Key ID"
},
created_at: {
label: "Created At"
},
updated_at: {
label: "Updated At"
}
},
_views: {
mine: {
label: "My Keys"
},
active: {
label: "Active"
},
revoked: {
label: "Revoked"
},
all_keys: {
label: "All"
}
},
_actions: {
revoke_api_key: {
label: "Revoke API Key",
confirmText: "Revoke this API key? Any clients using it will immediately lose access.",
successMessage: "API key revoked"
},
restore_api_key: {
label: "Restore API Key",
confirmText: "Restore this revoked API key? Existing clients holding the key will regain access.",
successMessage: "API key restored"
}
}
},
sys_two_factor: {
label: "Two Factor",
pluralLabel: "Two Factor Credentials",
description: "Two-factor authentication credentials",
fields: {
id: {
label: "Two Factor ID"
},
created_at: {
label: "Created At"
},
updated_at: {
label: "Updated At"
},
user_id: {
label: "User"
},
secret: {
label: "Secret",
help: "TOTP secret key"
},
backup_codes: {
label: "Backup Codes",
help: "JSON-serialized backup recovery codes"
},
verified: {
label: "Verified",
help: "Whether the enrollment was confirmed with a valid TOTP code (managed by better-auth)"
}
},
_views: {
mine: {
label: "My Enrollment"
},
all_enrollments: {
label: "All"
}