@@ -3,6 +3,7 @@ import type {
33 ClientJSON ,
44 ClientJSONSnapshot ,
55 ClientResource ,
6+ ClientTrustState ,
67 LastAuthenticationStrategy ,
78 SignedInSessionResource ,
89 SignInResource ,
@@ -26,6 +27,7 @@ export class Client extends BaseResource implements ClientResource {
2627 cookieExpiresAt : Date | null = null ;
2728 /** Last authentication strategy used by this client; `null` when unknown/disabled. */
2829 lastAuthenticationStrategy : LastAuthenticationStrategy | null = null ;
30+ clientTrustState ?: ClientTrustState = undefined ;
2931 createdAt : Date | null = null ;
3032 updatedAt : Date | null = null ;
3133
@@ -86,6 +88,7 @@ export class Client extends BaseResource implements ClientResource {
8688 this . signIn = new SignIn ( null ) ;
8789 this . lastActiveSessionId = null ;
8890 this . lastAuthenticationStrategy = null ;
91+ this . clientTrustState = undefined ;
8992 this . cookieExpiresAt = null ;
9093 this . createdAt = null ;
9194 this . updatedAt = null ;
@@ -135,6 +138,7 @@ export class Client extends BaseResource implements ClientResource {
135138 this . captchaBypass = data . captcha_bypass || false ;
136139 this . cookieExpiresAt = data . cookie_expires_at ? unixEpochToDate ( data . cookie_expires_at ) : null ;
137140 this . lastAuthenticationStrategy = data . last_authentication_strategy || null ;
141+ this . clientTrustState = data . client_trust_state ;
138142 this . createdAt = unixEpochToDate ( data . created_at || undefined ) ;
139143 this . updatedAt = unixEpochToDate ( data . updated_at || undefined ) ;
140144 }
@@ -153,6 +157,7 @@ export class Client extends BaseResource implements ClientResource {
153157 captcha_bypass : this . captchaBypass ,
154158 cookie_expires_at : this . cookieExpiresAt ? this . cookieExpiresAt . getTime ( ) : null ,
155159 last_authentication_strategy : this . lastAuthenticationStrategy ?? null ,
160+ ...( this . clientTrustState && { client_trust_state : this . clientTrustState } ) ,
156161 created_at : this . createdAt ?. getTime ( ) ?? null ,
157162 updated_at : this . updatedAt ?. getTime ( ) ?? null ,
158163 } ;
0 commit comments