seam 2.125.0 → 2.127.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: 27eae396d9a9c4bc535cdca60a97804ea62da26edb49526d703313c07f77c556
4
+ data.tar.gz: f490c1404fe361d1053c72b50200c0182ff160dec599ce9143f4369b0bfaba68
5
5
  SHA512:
6
- metadata.gz: 02ee09fe42ba029d153266a87a05f66ebb5986186cc9474beac32ff3cf67e8b3574f8192ec49641eb8bd7c35a72a9fd5ba522ba2f675507572761d28f32ff160
7
- data.tar.gz: ede9cecf7285ac56d4e5b06e584cc9c60e7c20086ef8092c3e33d0ac57a87776f463ebd3aa596dfa9391c775c823fbf9cfd474c332f0dab6a0b38e2c3f694f19
6
+ metadata.gz: f1e13209e29204c52d36695c0c3a23e6e8a85bb086691b6732fb934993917b6fd0436029dc10c7481bf655b72449fa9b1e13f7a5f8ecb0d9baf087eecc5cd547
7
+ data.tar.gz: a1739c5864d167545307b8854f085a2fd11f2665580ad65f76726242e3d46d566854b9a801339f064492a078e3ff30bccf813001d7d7ee7a2ca343a53644f402
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.127.0)
5
5
  faraday (~> 2.7)
6
6
  faraday-retry (~> 2.2)
7
7
  svix (~> 1.30)
@@ -14,6 +14,14 @@ 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:, wait_for_action_attempt: nil)
18
+ res = @client.post("/access_methods/assign_card", {access_method_id: access_method_id, card_number: card_number}.compact)
19
+
20
+ wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
21
+
22
+ Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
23
+ end
24
+
17
25
  def delete(access_method_id: nil, access_grant_id: nil, reservation_key: nil)
18
26
  @client.post("/access_methods/delete", {access_method_id: access_method_id, access_grant_id: access_grant_id, reservation_key: reservation_key}.compact)
19
27
 
@@ -45,6 +53,14 @@ module Seam
45
53
 
46
54
  Seam::Resources::AccessMethod.load_from_response(res.body["access_methods"])
47
55
  end
56
+
57
+ def unlock_door(access_method_id:, acs_entrance_id:, wait_for_action_attempt: nil)
58
+ res = @client.post("/access_methods/unlock_door", {access_method_id: access_method_id, acs_entrance_id: acs_entrance_id}.compact)
59
+
60
+ wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
61
+
62
+ Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
63
+ end
48
64
  end
49
65
  end
50
66
  end
@@ -74,8 +74,8 @@ module Seam
74
74
  nil
75
75
  end
76
76
 
77
- def update(acs_entrance_ids: nil, customer_data: nil, customer_key: nil, device_ids: nil, name: nil, space_id: nil, space_key: nil)
78
- res = @client.post("/spaces/update", {acs_entrance_ids: acs_entrance_ids, customer_data: customer_data, customer_key: customer_key, device_ids: device_ids, name: name, space_id: space_id, space_key: space_key}.compact)
77
+ def update(acs_entrance_ids: nil, customer_data: nil, device_ids: nil, name: nil, space_id: nil, space_key: nil)
78
+ res = @client.post("/spaces/update", {acs_entrance_ids: acs_entrance_ids, customer_data: customer_data, device_ids: device_ids, name: name, space_id: space_id, space_key: space_key}.compact)
79
79
 
80
80
  Seam::Resources::Space.load_from_response(res.body["space"])
81
81
  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.127.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.127.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-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday