nylas 6.0.1 → 6.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bc9d352821f8cde06dbc037ea67f17ed9a74f8dea1f9af98ebd4d03bc931e05
4
- data.tar.gz: 8a172bc12ea5c467442079dc27f557034ef33924de9222275cde90eb6fafd49a
3
+ metadata.gz: 4210ab41b7981d0dee78c6c08cad413063e621f0142909ef9e156e477092c572
4
+ data.tar.gz: 8845808ca7a7a993676b02373ab89d9db702742f2f3ad89678b529392e9596b0
5
5
  SHA512:
6
- metadata.gz: e18c1c89f5bacace76a182d5a2f33215625855d64ba2d5ec406c6529c1d9eee41d54921accf73879dc89db8374ef9d08d85c9ea0939d9fe1efb7e1c92eb5c770
7
- data.tar.gz: 2a0faa22fdc201dfc556cb65acd0305dbc83c601d649771dad6b7dd5ce15c94b8dc060cfdb2d49ee2a8bb6ba3a86a61fd86d72cbd74a5323793035312f8d38f0
6
+ metadata.gz: 47e3479b8c975bd0bb4d5d25dd336abb1f8fa469e06d2eeda5b039ae4d09d7a3f5cab3efb7f2d9ec4b9124a991ccdd531766a32b6a89b70c6a26b878f6f03792
7
+ data.tar.gz: c69da1ded4c8f953009b747b999e743e6bc6ef1418d88544f3d33991a655ad40a9c95a94db6ed2f13a0bf2bda133858f35f738e4e2cdfa0c9130061e5a35098b
@@ -9,6 +9,7 @@ module Nylas
9
9
  include ApiOperations::Get
10
10
  include ApiOperations::Put
11
11
  include ApiOperations::Delete
12
+ include ApiOperations::Patch
12
13
 
13
14
  # Return all grants.
14
15
  #
@@ -37,7 +38,7 @@ module Nylas
37
38
  # @param request_body [Hash] The values to update the grant with
38
39
  # @return [Array(Hash, String)] The updated grant and API Request ID.
39
40
  def update(grant_id:, request_body:)
40
- put(
41
+ patch(
41
42
  path: "#{api_uri}/v3/grants/#{grant_id}",
42
43
  request_body: request_body
43
44
  )
@@ -89,8 +89,8 @@ module Nylas
89
89
  # @param webhook_id [String] The ID of the webhook destination to update.
90
90
  # @return [Array(Hash, String)] The updated webhook destination and API Request ID.
91
91
  def rotate_secret(webhook_id:)
92
- put(
93
- path: "#{api_uri}/v3/webhooks/#{webhook_id}/rotate-secret",
92
+ post(
93
+ path: "#{api_uri}/v3/webhooks/rotate-secret/#{webhook_id}",
94
94
  request_body: {}
95
95
  )
96
96
  end
data/lib/nylas/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nylas
4
- VERSION = "6.0.1"
4
+ VERSION = "6.0.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nylas
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.1
4
+ version: 6.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nylas, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-12 00:00:00.000000000 Z
11
+ date: 2024-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types