File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @clerk/backend " : minor
3+ ---
4+
5+ - Added ` legalAcceptedAt ` on ` User `
6+ - Added ` legalAcceptedAt ` and ` skipLegalChecks ` on ` CreateUserParams ` and ` UpdateUserParams `
7+ - Added ` legal_accepted_at ` on ` UserJSON `
Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ type CreateUserParams = {
7474 lastName ?: string ;
7575 skipPasswordChecks ?: boolean ;
7676 skipPasswordRequirement ?: boolean ;
77+ skipLegalChecks ?: boolean ;
78+ legalAcceptedAt ?: Date ;
7779 totpSecret ?: string ;
7880 backupCodes ?: string [ ] ;
7981 createdAt ?: Date ;
@@ -95,6 +97,8 @@ type UpdateUserParams = {
9597 backupCodes ?: string [ ] ;
9698 externalId ?: string ;
9799 createdAt ?: Date ;
100+ skipLegalChecks ?: boolean ;
101+ legalAcceptedAt ?: Date ;
98102 deleteSelfEnabled ?: boolean ;
99103 createOrganizationEnabled ?: boolean ;
100104 createOrganizationsLimit ?: number ;
Original file line number Diff line number Diff line change @@ -316,6 +316,7 @@ export interface UserJSON extends ClerkResourceJSON {
316316 create_organization_enabled : boolean ;
317317 create_organizations_limit : number | null ;
318318 delete_self_enabled : boolean ;
319+ legal_accepted_at : number | null ;
319320}
320321
321322export interface VerificationJSON extends ClerkResourceJSON {
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ export class User {
3838 readonly createOrganizationEnabled : boolean ,
3939 readonly createOrganizationsLimit : number | null = null ,
4040 readonly deleteSelfEnabled : boolean ,
41+ readonly legalAcceptedAt : number | null ,
4142 ) { }
4243
4344 static fromJSON ( data : UserJSON ) : User {
@@ -73,6 +74,7 @@ export class User {
7374 data . create_organization_enabled ,
7475 data . create_organizations_limit ,
7576 data . delete_self_enabled ,
77+ data . legal_accepted_at ,
7678 ) ;
7779 }
7880
You can’t perform that action at this time.
0 commit comments