@@ -109,30 +109,30 @@ export const AuthBootstrapResult = Schema.Struct({
109109 authenticated : Schema . Literal ( true ) ,
110110 role : AuthSessionRole ,
111111 sessionMethod : ServerAuthSessionMethod ,
112- expiresAt : Schema . DateTimeUtc ,
112+ expiresAt : Schema . DateTimeUtcFromString ,
113113} ) ;
114114export type AuthBootstrapResult = typeof AuthBootstrapResult . Type ;
115115
116116export const AuthBearerBootstrapResult = Schema . Struct ( {
117117 authenticated : Schema . Literal ( true ) ,
118118 role : AuthSessionRole ,
119119 sessionMethod : Schema . Literal ( "bearer-session-token" ) ,
120- expiresAt : Schema . DateTimeUtc ,
120+ expiresAt : Schema . DateTimeUtcFromString ,
121121 sessionToken : TrimmedNonEmptyString ,
122122} ) ;
123123export type AuthBearerBootstrapResult = typeof AuthBearerBootstrapResult . Type ;
124124
125125export const AuthWebSocketTokenResult = Schema . Struct ( {
126126 token : TrimmedNonEmptyString ,
127- expiresAt : Schema . DateTimeUtc ,
127+ expiresAt : Schema . DateTimeUtcFromString ,
128128} ) ;
129129export type AuthWebSocketTokenResult = typeof AuthWebSocketTokenResult . Type ;
130130
131131export const AuthPairingCredentialResult = Schema . Struct ( {
132132 id : TrimmedNonEmptyString ,
133133 credential : TrimmedNonEmptyString ,
134134 label : Schema . optionalKey ( TrimmedNonEmptyString ) ,
135- expiresAt : Schema . DateTimeUtc ,
135+ expiresAt : Schema . DateTimeUtcFromString ,
136136} ) ;
137137export type AuthPairingCredentialResult = typeof AuthPairingCredentialResult . Type ;
138138
@@ -142,8 +142,8 @@ export const AuthPairingLink = Schema.Struct({
142142 role : AuthSessionRole ,
143143 subject : TrimmedNonEmptyString ,
144144 label : Schema . optionalKey ( TrimmedNonEmptyString ) ,
145- createdAt : Schema . DateTimeUtc ,
146- expiresAt : Schema . DateTimeUtc ,
145+ createdAt : Schema . DateTimeUtcFromString ,
146+ expiresAt : Schema . DateTimeUtcFromString ,
147147} ) ;
148148export type AuthPairingLink = typeof AuthPairingLink . Type ;
149149
@@ -172,9 +172,9 @@ export const AuthClientSession = Schema.Struct({
172172 role : AuthSessionRole ,
173173 method : ServerAuthSessionMethod ,
174174 client : AuthClientMetadata ,
175- issuedAt : Schema . DateTimeUtc ,
176- expiresAt : Schema . DateTimeUtc ,
177- lastConnectedAt : Schema . NullOr ( Schema . DateTimeUtc ) ,
175+ issuedAt : Schema . DateTimeUtcFromString ,
176+ expiresAt : Schema . DateTimeUtcFromString ,
177+ lastConnectedAt : Schema . NullOr ( Schema . DateTimeUtcFromString ) ,
178178 connected : Schema . Boolean ,
179179 current : Schema . Boolean ,
180180} ) ;
@@ -261,6 +261,6 @@ export const AuthSessionState = Schema.Struct({
261261 auth : ServerAuthDescriptor ,
262262 role : Schema . optionalKey ( AuthSessionRole ) ,
263263 sessionMethod : Schema . optionalKey ( ServerAuthSessionMethod ) ,
264- expiresAt : Schema . optionalKey ( Schema . DateTimeUtc ) ,
264+ expiresAt : Schema . optionalKey ( Schema . DateTimeUtcFromString ) ,
265265} ) ;
266266export type AuthSessionState = typeof AuthSessionState . Type ;
0 commit comments