diff --git a/.changeset/angry-phones-nail.md b/.changeset/angry-phones-nail.md new file mode 100644 index 0000000000..ef0f70cf55 --- /dev/null +++ b/.changeset/angry-phones-nail.md @@ -0,0 +1,5 @@ +--- +"@clerk/backend": minor +--- + +Bug fix: Introducing missing `deleteSelfEnabled` from User. diff --git a/packages/backend/src/api/resources/JSON.ts b/packages/backend/src/api/resources/JSON.ts index ddba80f514..9e509f2270 100644 --- a/packages/backend/src/api/resources/JSON.ts +++ b/packages/backend/src/api/resources/JSON.ts @@ -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 { diff --git a/packages/backend/src/api/resources/User.ts b/packages/backend/src/api/resources/User.ts index f25d9c8f22..7eab723c5a 100644 --- a/packages/backend/src/api/resources/User.ts +++ b/packages/backend/src/api/resources/User.ts @@ -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 { @@ -71,6 +72,7 @@ export class User { data.last_active_at, data.create_organization_enabled, data.create_organizations_limit, + data.delete_self_enabled, ); }