Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add migration grant props #387

Merged
merged 4 commits into from
Sep 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions nylas/models/grants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
Loading