feat: add support for creating service accounts (#23140)

This commit is contained in:
Kayla はな
2026-03-17 15:36:20 -06:00
committed by GitHub
parent f9c265ca6e
commit 49e5547c22
23 changed files with 556 additions and 362 deletions
+3 -2
View File
@@ -57,8 +57,9 @@ type ReducedUser struct {
UpdatedAt time.Time `json:"updated_at" table:"updated at" format:"date-time"`
LastSeenAt time.Time `json:"last_seen_at,omitempty" format:"date-time"`
Status UserStatus `json:"status" table:"status" enums:"active,suspended"`
LoginType LoginType `json:"login_type"`
Status UserStatus `json:"status" table:"status" enums:"active,suspended"`
LoginType LoginType `json:"login_type"`
IsServiceAccount bool `json:"is_service_account,omitempty"`
// Deprecated: this value should be retrieved from
// `codersdk.UserPreferenceSettings` instead.
ThemePreference string `json:"theme_preference,omitempty"`