From 3c935e740f966dc9d0a53b5c815c17f1ef45c22e Mon Sep 17 00:00:00 2001 From: kraju3 Date: Thu, 19 Sep 2024 13:41:56 -0500 Subject: [PATCH] Add account_id to the grant model for migrated accounts --- nylas/models/grants.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nylas/models/grants.py b/nylas/models/grants.py index e9be3ff8..61db3d65 100644 --- a/nylas/models/grants.py +++ b/nylas/models/grants.py @@ -16,6 +16,7 @@ class Grant: Attributes: id: Globally unique object identifier. provider: OAuth provider that the user authenticated with. + account_id: Globally unique identifier for your v2 account that has been migrated using our migration APIs. scope: Scopes specified for the grant. created_at: Unix timestamp when the grant was created. grant_status: Status of the grant, if it is still valid or if the user needs to re-authenticate. @@ -31,6 +32,7 @@ class Grant: id: str provider: str scope: List[str] = field(default_factory=list) + account_id: Optional[str] = None grant_status: Optional[str] = None email: Optional[str] = None user_agent: Optional[str] = None