seam 2.125.0 → 2.126.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78c01db6ff16f82bea7d612851cdf4fdcbecc29401b8a144cdd35c24660c79c1
4
- data.tar.gz: 847d94aec936a11d6513395ca5b51e537dcf739a5c8ba621946cd69c5528d3c6
3
+ metadata.gz: abcfbd9c6bd2590ac1525d31c607ae3cc8f60636a57d74640163d49d5c31472c
4
+ data.tar.gz: 9773ac6047e26295a104b939fedef8c2e4b4f77190da9732a8351cdfbd507635
5
5
  SHA512:
6
- metadata.gz: 02ee09fe42ba029d153266a87a05f66ebb5986186cc9474beac32ff3cf67e8b3574f8192ec49641eb8bd7c35a72a9fd5ba522ba2f675507572761d28f32ff160
7
- data.tar.gz: ede9cecf7285ac56d4e5b06e584cc9c60e7c20086ef8092c3e33d0ac57a87776f463ebd3aa596dfa9391c775c823fbf9cfd474c332f0dab6a0b38e2c3f694f19
6
+ metadata.gz: 79182e8b2e0b5dea4bd5b0bac2282dbe4c776283303a7d678459b737c28ca3fd56928348c68df0637040df257aa49f023f38339371e6b353081375ad17668dd5
7
+ data.tar.gz: f7d8e3e6acedf6c5c9be07c61572d3eb9d49662d36055030a87a7c1121b8b7338b9a003e02d677e4a87468595764ebbcfe686f5137fe29452e4171fc9c5e3ed9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seam (2.125.0)
4
+ seam (2.126.0)
5
5
  faraday (~> 2.7)
6
6
  faraday-retry (~> 2.2)
7
7
  svix (~> 1.30)
@@ -14,6 +14,12 @@ module Seam
14
14
  @unmanaged ||= Seam::Clients::AccessMethodsUnmanaged.new(client: @client, defaults: @defaults)
15
15
  end
16
16
 
17
+ def assign_card(access_method_id:, card_number:)
18
+ res = @client.post("/access_methods/assign_card", {access_method_id: access_method_id, card_number: card_number}.compact)
19
+
20
+ Seam::Resources::AccessMethod.load_from_response(res.body["access_method"])
21
+ end
22
+
17
23
  def delete(access_method_id: nil, access_grant_id: nil, reservation_key: nil)
18
24
  @client.post("/access_methods/delete", {access_method_id: access_method_id, access_grant_id: access_grant_id, reservation_key: reservation_key}.compact)
19
25
 
@@ -45,6 +51,14 @@ module Seam
45
51
 
46
52
  Seam::Resources::AccessMethod.load_from_response(res.body["access_methods"])
47
53
  end
54
+
55
+ def unlock_door(access_method_id:, acs_entrance_id:, wait_for_action_attempt: nil)
56
+ res = @client.post("/access_methods/unlock_door", {access_method_id: access_method_id, acs_entrance_id: acs_entrance_id}.compact)
57
+
58
+ wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
59
+
60
+ Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
61
+ end
48
62
  end
49
63
  end
50
64
  end
@@ -3,7 +3,7 @@
3
3
  module Seam
4
4
  module Resources
5
5
  class AccessMethod < BaseResource
6
- attr_accessor :access_method_id, :client_session_token, :code, :customization_profile_id, :display_name, :instant_key_url, :is_encoding_required, :is_issued, :is_ready_for_encoding, :mode, :pending_mutations, :workspace_id
6
+ attr_accessor :access_method_id, :client_session_token, :code, :customization_profile_id, :display_name, :instant_key_url, :is_assignment_required, :is_encoding_required, :is_issued, :is_ready_for_assignment, :is_ready_for_encoding, :mode, :pending_mutations, :workspace_id
7
7
 
8
8
  date_accessor :created_at, :issued_at
9
9
 
data/lib/seam/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Seam
4
- VERSION = "2.125.0"
4
+ VERSION = "2.126.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seam
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.125.0
4
+ version: 2.126.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seam Labs, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-08 00:00:00.000000000 Z
11
+ date: 2026-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday