Repository navigation
Expand file tree
/
Copy pathen.objects.generated.ts
More file actions
3530 lines (3527 loc) · 106 KB
/
Copy pathen.objects.generated.ts
File metadata and controls
3530 lines (3527 loc) · 106 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.
* Merge only fills gaps: correcting a source label/description does not
* push the correction into a leaf here that already holds a translation —
* a present-but-stale string is not a gap, so it is left as-is. Re-translate
* it by hand when its source changes; nothing here or in `os i18n check`
* tells a leaf a translator updated on purpose from one nobody has looked
* at since the source moved.
*/
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: "Legacy better-auth role scalar (admin, user, …). ObjectStack no longer writes it. To grant platform-admin standing, list the user's verified email in `OS_PLATFORM_OWNER_EMAIL`; under the `single` tenancy posture an unscoped `admin_full_access` assignment in `sys_user_permission_set` also confers it."
},
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_RESET_REQUIRED) 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. A seat grants the `ai_seat` capability, which opens the AI assistants in the app (build and ask). How many users can hold one is limited by the seats your license includes."
},
image: {
label: "Profile Image"
},
locale: {
label: "Locale",
help: "Preferred language for this user's notifications, as a language tag such as zh-CN or ja-JP. When unset, the deployment's default language applies."
},
manager_id: {
label: "Manager",
help: "This user's direct manager. Forms the reporting chain the `own_and_reports` hierarchy scope walks."
},
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. 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: {
all_users: {
label: "All Users"
},
me: {
label: "My Profile"
},
unverified: {
label: "Unverified"
},
banned: {
label: "Banned"
}
},
_actions: {
invite_user: {
label: "Invite User",
description: "Invite someone by email address. They join this organization with the chosen role when they accept the invitation.",
successMessage: "Invitation sent to ${result.email}",
params: {
role: {
options: {
owner: "Owner",
admin: "Admin",
delegated_admin: "Delegated Admin",
member: "Member",
external: "External"
}
}
}
},
ban_user: {
label: "Ban User",
description: "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."
},
password: {
label: "Password (leave empty to generate)"
},
mustChangePassword: {
label: "Require Password Change On First Login"
},
permissionSet: {
label: "Permission Set",
helpText: "Optional. Grants this permission set to the new user, so they can open their apps on first sign-in."
}
},
resultDialog: {
title: "User Created",
description: "If a temporary password was generated, copy it now — it is shown only once and never stored.",
acknowledge: "Done",
fields: {
"user.email": "Email",
"user.phoneNumber": "Phone Number",
permissionSet: "Permission Set",
temporaryPassword: "Temporary Password"
}
}
},
set_user_password: {
label: "Set Password",
successMessage: "Password updated",
params: {
newPassword: {
label: "New Password (leave empty to generate)"
},
mustChangePassword: {
label: "Require Password Change On Next Login"
},
revokeSessionsAndKeys: {
label: "Sign Out Everywhere and Revoke API Keys",
helpText: "Ends every session of this user and revokes every API key they own. Leave on when the account may be compromised; turn off for a routine reset. Revoked keys stay revoked after the password change."
}
},
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"
}
}
},
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"
},
set_user_manager: {
label: "Set Manager",
description: "Set this user's manager. The reporting chain drives approval routing and the own_and_reports record scope.",
successMessage: "Manager updated",
params: {
managerId: {
label: "Manager",
helpText: "The user this person reports to. The server refuses a manager outside their organization, a self-assignment, and a link that would close or over-deepen the reporting chain."
}
}
},
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",
description: "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",
params: {
password: {
label: "Current Password"
}
},
resultDialog: {
title: "Two-factor authentication enabled",
description: "Scan the QR code with your authenticator app, then save the backup codes somewhere safe. The backup codes are shown only once.",
acknowledge: "I have saved my backup codes",
fields: {
totpURI: "Authenticator URI",
backupCodes: "Backup Codes"
}
}
},
disable_two_factor: {
label: "Disable Two-Factor Auth",
description: "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",
description: "Generate a new set of backup codes? Any previously generated codes will stop working.",
params: {
password: {
label: "Current Password"
}
},
resultDialog: {
title: "New backup codes generated",
description: "Previous backup codes are now invalid. Save these new codes somewhere safe — they are shown only once.",
acknowledge: "I have saved the new codes",
fields: {
backupCodes: "Backup Codes"
}
}
}
},
_validations: {
locale_bcp47_shape: {
message: "Locale must be a BCP-47 language tag, such as zh-CN or ja-JP."
}
}
},
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 / organization membership ended). System-managed."
},
revoke_reason: {
label: "Revoke Reason",
help: "Why the session was revoked (idle_timeout, absolute_max, concurrent_cap, user_revoked, admin, organization_membership_ended, admin_password_reset, …)."
},
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: {
all_sessions: {
label: "All"
},
mine: {
label: "My Sessions"
},
revoked: {
label: "Revoked"
}
},
_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"
},
display_title: {
label: "Title",
help: "Record title: the provider and the account id it issued (computed on read)"
},
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",
help: "Live OAuth access token issued by the provider — never returned on the data API; better-auth reads it back through the engine's privileged internal-field accessor"
},
refresh_token: {
label: "Refresh Token",
help: "Live OAuth refresh token — long-lived and not revoked by revoking an ObjectStack session; never returned on the data API"
},
id_token: {
label: "ID Token",
help: "OIDC ID token issued by the provider — never returned on the data API"
},
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: {
all_links: {
label: "All"
},
mine: {
label: "My Links"
},
by_provider: {
label: "By Provider"
}
},
_actions: {
unlink_account: {
label: "Unlink Account",
description: "Unlink this identity link? The user will no longer be able to sign in with this provider until they re-link it.",
successMessage: "Identity link removed"
}
}
},
sys_verification: {
label: "Verification",
pluralLabel: "Verifications",
description: "Email and phone verification tokens",
fields: {
id: {
label: "Verification ID"
},
display_title: {
label: "Title",
help: "Record title: a fixed label (the identifier and token columns are internal and never titled)"
},
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",
help: "The organization's own name. Change it with Rename Organization at the top of this record. The product name the console shows is a different setting, set in Settings → Branding."
},
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."
},
timezone: {
label: "Timezone",
help: "IANA time zone (e.g. UTC, Asia/Shanghai), kept as the root default for business units without a zone of their own. It does not change any date calculation today: formulas, reports and displayed dates use Settings → Localization → Default timezone."
},
parent_organization_id: {
label: "Parent Organization",
help: "Reporting/grouping parent. Grants NOTHING — visibility across organizations comes from membership, never from this reference."
},
sort_order: {
label: "Sort Order",
help: "Display order among sibling organizations. Presentation only."
},
id: {
label: "Organization ID"
},
created_at: {
label: "Created At"
},
updated_at: {
label: "Updated At"
}
},
_views: {
all_orgs: {
label: "All"
}
},
_actions: {
invite_user: {
label: "Invite User",
description: "Invite someone by email address. They join this organization with the chosen role when they accept the invitation.",
successMessage: "Invitation sent to ${result.email}",
params: {
role: {
options: {
owner: "Owner",
admin: "Admin",
delegated_admin: "Delegated Admin",
member: "Member",
external: "External"
}
}
}
},
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"
},
rename_organization: {
label: "Rename Organization",
successMessage: "Organization renamed"
},
leave_organization: {
label: "Leave Organization",
confirmText: "Leave this organization? You will lose access to its environments and members.",
successMessage: "You have left the organization"
}
}
},
sys_member: {
label: "Member",
pluralLabel: "Members",
description: "Organization membership records",
fields: {
id: {
label: "Member ID"
},
display_title: {
label: "Title",
help: "Record title: the member and, when recorded, their role (computed on read)"
},
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",
delegated_admin: "Delegated Admin",
member: "Member",
external: "External"
}
}
},
_views: {
mine: {
label: "My Memberships",
emptyState: {
title: "No organizations yet",
message: "You haven't joined any organizations."
}
}
},
_actions: {
invite_user: {
label: "Invite User",
description: "Invite someone by email address. They join this organization with the chosen role when they accept the invitation.",
successMessage: "Invitation sent to ${result.email}",
params: {
role: {
options: {
owner: "Owner",
admin: "Admin",
delegated_admin: "Delegated Admin",
member: "Member",
external: "External"
}
}
}
},
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: "Make Owner",
confirmText: "Make the selected member an owner of this organization? They get every owner privilege, including deleting the organization. You stay an owner too; to step down, use Change Role on your own membership.",
successMessage: "Member is now an owner"
}
}
},
sys_invitation: {
label: "Invitation",
pluralLabel: "Invitations",
description: "Organization invitations for user onboarding",
fields: {
id: {
label: "Invitation ID"
},
display_title: {
label: "Title",
help: "Record title: the invited email address (computed on read)"
},
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",
delegated_admin: "Delegated Admin",
member: "Member",
external: "External"
}
},
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"
},
business_unit_id: {
label: "Placement Business Unit",
help: "Business unit the invitee is placed under on acceptance. Must lie inside the issuer's delegated subtree."
},
positions: {
label: "Placement Positions",
help: "Position names assigned on acceptance. Every position's permission sets must be allowlisted by the issuer's adminScope."
}
},
_views: {
pending: {
label: "Pending",
emptyState: {
title: "No pending invitations",
message: "An invitation stays here until it is accepted, declined or canceled, or until it expires."
}
},
accepted: {
label: "Accepted",
emptyState: {
title: "No accepted invitations",
message: "An invitation moves here when the person accepts it and joins the organization."
}
},
expired: {
label: "Expired / Canceled",
emptyState: {
title: "No expired or canceled invitations",
message: "Invitations that expired, were declined or were canceled are kept here."
}
},
all_invitations: {
label: "All",
emptyState: {
title: "No invitations yet",
message: "Every invitation to join an organization is listed here, whatever its status."
}
}
},
_actions: {
invite_user: {
label: "Invite User",
description: "Invite someone by email address. They join this organization with the chosen role when they accept the invitation.",
successMessage: "Invitation sent to ${result.email}",
params: {
role: {
options: {
owner: "Owner",
admin: "Admin",
delegated_admin: "Delegated Admin",
member: "Member",
external: "External"
}
}
}
},
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. Null in single-tenant; auto-stamped in multi-tenant."
},
member_count: {
label: "Member Count",
help: "Seat counter maintained by better-auth; do not write directly."
},
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"
},
display_title: {
label: "Title",
help: "Record title: the user and the team (computed on read)"
},
created_at: {
label: "Created At"
},
team_id: {
label: "Team"
},
user_id: {
label: "User"
},
membership_key: {
label: "Membership Key",
help: "Derived membership digest maintained by better-auth; do not write directly."
}
},
_actions: {
add_team_member: {
label: "Add Member",
successMessage: "Team member added"
},
remove_team_member: {
label: "Remove from Team",
description: "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: "Your company structure — divisions, departments, regions and offices — used to scope data and reports.",
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. A unit that still has child units cannot be deleted until they are re-parented or deleted."
},
timezone: {
label: "Timezone",
help: "IANA time zone (e.g. Asia/Shanghai) date boundaries are computed in for this unit. Leave unset to inherit the parent unit's zone, then the organization's, then UTC."
},
organization_id: {
label: "Organization",
help: "Tenant scope. Null in single-tenant; auto-stamped in multi-tenant."
},
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: {