@@ -109,9 +109,7 @@ const settingsSchema = {
109109 . trim ( )
110110 . valid ( 'full' , 'fast' )
111111 . example ( 'full' )
112- . description (
113- 'IMAP indexing strategy:\n * full - Detect new, changed, and deleted messages (slower but complete)\n * fast - Detect only new messages'
114- )
112+ . description ( 'IMAP indexing strategy:\n * full - Detect new, changed, and deleted messages (slower but complete)\n * fast - Detect only new messages' )
115113 . label ( 'ImapIndexer' ) ,
116114
117115 resolveGmailCategories : Joi . boolean ( )
@@ -388,7 +386,11 @@ const settingsSchema = {
388386 . label ( 'SmtpStrategy' ) ,
389387
390388 localAddresses : Joi . array ( )
391- . items ( Joi . string ( ) . ip ( { version : [ 'ipv4' , 'ipv6' ] , cidr : 'forbidden' } ) . label ( 'LocalAddressEntry' ) )
389+ . items (
390+ Joi . string ( )
391+ . ip ( { version : [ 'ipv4' , 'ipv6' ] , cidr : 'forbidden' } )
392+ . label ( 'LocalAddressEntry' )
393+ )
392394 . single ( )
393395 . description ( 'List of local IP addresses to use for outbound connections (requires appropriate network configuration)' )
394396 . label ( 'LocalAddresses' ) ,
@@ -1107,7 +1109,11 @@ const lastErrorSchema = Joi.object({
11071109 response : Joi . string ( ) . example ( 'Token request failed' ) . description ( 'Human-readable error message' ) ,
11081110 serverResponseCode : Joi . string ( ) . example ( 'OauthRenewError' ) . description ( 'Error code or classification' ) ,
11091111 tokenRequest : Joi . object ( {
1110- grant : Joi . string ( ) . valid ( 'refresh_token' , 'authorization_code' ) . example ( 'refresh_token' ) . description ( 'OAuth2 grant type being requested' ) . label ( 'OAuthGrant' ) ,
1112+ grant : Joi . string ( )
1113+ . valid ( 'refresh_token' , 'authorization_code' )
1114+ . example ( 'refresh_token' )
1115+ . description ( 'OAuth2 grant type being requested' )
1116+ . label ( 'OAuthGrant' ) ,
11111117 provider : Joi . string ( ) . max ( 256 ) . example ( 'gmail' ) . description ( 'OAuth2 provider name' ) . label ( 'OAuthProvider' ) ,
11121118 status : Joi . number ( ) . integer ( ) . example ( 400 ) . description ( 'HTTP status code from the OAuth2 server' ) . label ( 'OAuthStatusCode' ) ,
11131119 clientId : Joi . string ( )
@@ -1395,7 +1401,13 @@ const oauthCreateSchema = {
13951401 . example ( 'boT7Q~dUljnfFdVuqpC11g8nGMjO8kpRAv-ZB' )
13961402 . description ( 'OAuth2 client secret from the provider' ) ,
13971403
1398- baseScopes : Joi . string ( ) . empty ( '' ) . trim ( ) . valid ( 'imap' , 'api' , 'pubsub' ) . example ( 'imap' ) . description ( 'Connection type (IMAP, API, or Pub/Sub)' ) . label ( 'OAuth2BaseScopes' ) ,
1404+ baseScopes : Joi . string ( )
1405+ . empty ( '' )
1406+ . trim ( )
1407+ . valid ( 'imap' , 'api' , 'pubsub' )
1408+ . example ( 'imap' )
1409+ . description ( 'Connection type (IMAP, API, or Pub/Sub)' )
1410+ . label ( 'OAuth2BaseScopes' ) ,
13991411
14001412 pubSubApp : Joi . string ( )
14011413 . empty ( '' )
@@ -1751,7 +1763,11 @@ const exportProgressSchema = Joi.object({
17511763
17521764const exportStatusSchema = Joi . object ( {
17531765 exportId : Joi . string ( ) . example ( 'exp_abc123def456' ) . description ( 'Export job identifier' ) ,
1754- status : Joi . string ( ) . valid ( 'queued' , 'processing' , 'completed' , 'failed' , 'cancelled' ) . example ( 'processing' ) . description ( 'Export status' ) . label ( 'ExportStatusValue' ) ,
1766+ status : Joi . string ( )
1767+ . valid ( 'queued' , 'processing' , 'completed' , 'failed' , 'cancelled' )
1768+ . example ( 'processing' )
1769+ . description ( 'Export status' )
1770+ . label ( 'ExportStatusValue' ) ,
17551771 phase : Joi . string ( ) . valid ( 'indexing' , 'exporting' , 'complete' ) . example ( 'indexing' ) . description ( 'Current export phase' ) . label ( 'ExportPhase' ) ,
17561772 folders : Joi . array ( ) . items ( Joi . string ( ) . label ( 'ExportFolderItem' ) ) . description ( 'Folders being exported' ) . label ( 'ExportFolders' ) ,
17571773 startDate : Joi . date ( ) . iso ( ) . example ( '2024-01-01T00:00:00Z' ) . description ( 'Export start date filter' ) ,
@@ -1765,7 +1781,11 @@ const exportStatusSchema = Joi.object({
17651781
17661782const exportListEntrySchema = Joi . object ( {
17671783 exportId : Joi . string ( ) . example ( 'exp_abc123def456' ) . description ( 'Export job identifier' ) ,
1768- status : Joi . string ( ) . valid ( 'queued' , 'processing' , 'completed' , 'failed' , 'cancelled' ) . example ( 'completed' ) . description ( 'Export status' ) . label ( 'ExportListStatusValue' ) ,
1784+ status : Joi . string ( )
1785+ . valid ( 'queued' , 'processing' , 'completed' , 'failed' , 'cancelled' )
1786+ . example ( 'completed' )
1787+ . description ( 'Export status' )
1788+ . label ( 'ExportListStatusValue' ) ,
17691789 created : Joi . date ( ) . iso ( ) . example ( '2024-01-15T10:30:00Z' ) . description ( 'When export was created' ) ,
17701790 expiresAt : Joi . date ( ) . iso ( ) . example ( '2024-01-16T10:30:00Z' ) . description ( 'When export file expires' )
17711791} ) . label ( 'ExportListEntry' ) ;
0 commit comments