Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/angry-phones-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@clerk/backend": minor
---

Bug fix: Introducing missing `deleteSelfEnabled` from User.
1 change: 1 addition & 0 deletions packages/backend/src/api/resources/JSON.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ export interface UserJSON extends ClerkResourceJSON {
last_active_at: number | null;
create_organization_enabled: boolean;
create_organizations_limit: number | null;
delete_self_enabled: boolean;
}

export interface VerificationJSON extends ClerkResourceJSON {
Expand Down
2 changes: 2 additions & 0 deletions packages/backend/src/api/resources/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class User {
readonly lastActiveAt: number | null,
readonly createOrganizationEnabled: boolean,
readonly createOrganizationsLimit: number | null = null,
readonly deleteSelfEnabled: boolean,
) {}

static fromJSON(data: UserJSON): User {
Expand Down Expand Up @@ -71,6 +72,7 @@ export class User {
data.last_active_at,
data.create_organization_enabled,
data.create_organizations_limit,
data.delete_self_enabled,
);
}

Expand Down