Skip to content

Commit

Permalink
Merge branch 'main' into TW-2801-kotlin-add-custom-headers-support
Browse files Browse the repository at this point in the history
  • Loading branch information
mrashed-dev authored Apr 30, 2024
2 parents 58abe58 + 2a3eef8 commit a4c2536
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

## [2.2.1] - Released 2024-03-05

### Added
* Added support for `provider` field in code exchange response

### Changed
* Improved message sending and draft create/update performance
* Change default timeout to match API (90 seconds)
Expand Down
5 changes: 5 additions & 0 deletions src/main/kotlin/com/nylas/models/CodeExchangeResponse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ data class CodeExchangeResponse(
*/
@Json(name = "email")
val email: String? = null,
/**
* The provider that the code was exchanged with.
*/
@Json(name = "provider")
val provider: AuthProvider? = null,
/**
* Only returned if the code was requested using [AccessType.OFFLINE][com.nylas.models.AccessType.OFFLINE].
*/
Expand Down
18 changes: 18 additions & 0 deletions src/main/kotlin/com/nylas/models/WebhookTriggers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,27 @@ enum class WebhookTriggers {
@Json(name = "grant.expired")
GRANT_EXPIRED,

@Json(name = "message.created")
MESSAGE_CREATED,

@Json(name = "message.updated")
MESSAGE_UPDATED,

@Json(name = "message.send_success")
MESSAGE_SEND_SUCCESS,

@Json(name = "message.send_failed")
MESSAGE_SEND_FAILED,

@Json(name = "message.bounce_detected")
MESSAGE_BOUNCE_DETECTED,

@Json(name = "message.opened")
MESSAGE_OPENED,

@Json(name = "message.link_clicked")
MESSAGE_LINK_CLICKED,

@Json(name = "thread.replied")
THREAD_REPLIED,
}

0 comments on commit a4c2536

Please sign in to comment.