@@ -77,9 +77,9 @@ def update(self):
7777
7878
7979class Message (NylasAPIObject ):
80- attrs = ["bcc" , "body" , "cc" , "date" , "files" , "from" , "id" ,
81- "account_id" , "object" , "subject " , "thread_id " , "to" , "unread " ,
82- "starred" , "_folder" , "_labels" ]
80+ attrs = ["bcc" , "body" , "cc" , "date" , "events" , " files" , "from" , "id" ,
81+ "account_id" , "object" , "snippet " , "starred " , "subject " ,
82+ "thread_id" , "to" , "unread" , " starred" , "_folder" , "_labels" ]
8383 collection_name = 'messages'
8484
8585 def __init__ (self , api ):
@@ -166,7 +166,7 @@ def __init__(self, api):
166166
167167
168168class Folder (NylasAPIObject ):
169- attrs = ["id" , "display_name" , "name" ]
169+ attrs = ["id" , "display_name" , "name" , "object" , "account_id" ]
170170 collection_name = "folders"
171171
172172 def __init__ (self , api ):
@@ -182,7 +182,7 @@ def messages(self):
182182
183183
184184class Label (NylasAPIObject ):
185- attrs = ["id" , "display_name" , "name" ]
185+ attrs = ["id" , "display_name" , "name" , "object" , "account_id" ]
186186 collection_name = "labels"
187187
188188 def __init__ (self , api ):
@@ -201,7 +201,8 @@ class Thread(NylasAPIObject):
201201 attrs = ["draft_ids" , "id" , "message_ids" , "account_id" , "object" ,
202202 "participants" , "snippet" , "subject" , "subject_date" , "tags" ,
203203 "last_message_timestamp" , "first_message_timestamp" ,
204- "unread" , "starred" , "version" , "_folders" , "_labels" ]
204+ "unread" , "starred" , "version" , "_folders" , "_labels" ,
205+ "received_recent_date" ]
205206 collection_name = 'threads'
206207
207208 def __init__ (self , api ):
@@ -325,7 +326,8 @@ def __init__(self, api):
325326class Draft (Message ):
326327 attrs = ["bcc" , "cc" , "body" , "date" , "files" , "from" , "id" ,
327328 "account_id" , "object" , "subject" , "thread_id" , "to" ,
328- "unread" , "version" , "file_ids" ]
329+ "unread" , "version" , "file_ids" , "reply_to_message_id" ,
330+ "reply_to" , "starred" , "snippet" ]
329331 collection_name = 'drafts'
330332
331333 def __init__ (self , api , thread_id = None ):
@@ -355,8 +357,8 @@ def send(self):
355357
356358
357359class File (NylasAPIObject ):
358- attrs = ["content_type" , "filename" , "id" , "is_embedded" , "message_id " ,
359- "account_id" , "object" , "size" ]
360+ attrs = ["content_type" , "filename" , "id" , "content_id " ,
361+ "account_id" , "object" , "size" , "message_ids" , ]
360362 collection_name = 'files'
361363
362364 def save (self ):
@@ -386,15 +388,15 @@ def __init__(self, api):
386388
387389
388390class Contact (NylasAPIObject ):
389- attrs = ["id" , "account_id" , "name" , "email" ]
391+ attrs = ["id" , "account_id" , "name" , "email" , "object" ]
390392 collection_name = 'contacts'
391393
392394 def __init__ (self , api ):
393395 NylasAPIObject .__init__ (self , Contact , api )
394396
395397
396398class Calendar (NylasAPIObject ):
397- attrs = ["id" , "account_id" , "name" , "description" , "read_only" ]
399+ attrs = ["id" , "account_id" , "name" , "description" , "read_only" , "object" ]
398400 collection_name = 'calendars'
399401
400402 def __init__ (self , api ):
@@ -409,7 +411,7 @@ class Event(NylasAPIObject):
409411 attrs = ["id" , "account_id" , "title" , "description" , "location" ,
410412 "read_only" , "when" , "busy" , "participants" , "calendar_id" ,
411413 "recurrence" , "status" , "master_event_id" , "owner" ,
412- "original_start_time" ]
414+ "original_start_time" , "object" ]
413415 collection_name = 'events'
414416
415417 def __init__ (self , api ):
0 commit comments