seam 2.38.0 → 2.39.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: 0a2560ea8a063ad7edfe2a0e157a58aed32072add667065d271a0dedd08153ab
4
- data.tar.gz: e7da00233f2712742ff41415c01cb03eb72073a72bc51e2039a7b41393d4027b
3
+ metadata.gz: 913e824c2a0ecc984ea07620efc8f0dc4ce6709a1d996f77055a743a9efe5443
4
+ data.tar.gz: 520b8b57a50ad01625c90178cbe23082969d403c926d870f767bbca4323594dd
5
5
  SHA512:
6
- metadata.gz: 8b5a1fb772595a84482a80d7e7bff9ee449a8c26afff94da6334e97ec8aaba21a21b77838110f45b7fe541344fb972550307df157bd0f7bffd80f9a384cd329b
7
- data.tar.gz: b914dd5effb79092f342b696bf17dc1a9238ae93df8015abf35510465907556c991a2c8f9c78d0a1cfd54aa7ea6d085273c29f82b6ea8a2d921e712e6e858ead
6
+ metadata.gz: abb612d642ac0b777e96b530943351038e84a44606e34cba8463890377938aabc7be1249d6a4141e45b0deb772d6389207372e3fb9e845aebd572d9c3428b83b
7
+ data.tar.gz: 5cd676c5ce7b134cc1f05d4854600b67b7ebfbb83280586e5e5095fe19db630640672eed1754076a29f462e4e9187e76fef9100574ec382545d9db7aeb4cb43a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seam (2.38.0)
4
+ seam (2.39.0)
5
5
  faraday (~> 2.7)
6
6
  faraday-retry (~> 2.2)
7
7
  svix (~> 1.30)
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "seam/helpers/action_attempt"
4
+
3
5
  module Seam
4
6
  module Clients
5
7
  class AccessMethods
@@ -14,6 +16,14 @@ module Seam
14
16
  nil
15
17
  end
16
18
 
19
+ def encode(access_method_id:, acs_encoder_id:, wait_for_action_attempt: nil)
20
+ res = @client.post("/access_methods/encode", {access_method_id: access_method_id, acs_encoder_id: acs_encoder_id}.compact)
21
+
22
+ wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
23
+
24
+ Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
25
+ end
26
+
17
27
  def get(access_method_id:)
18
28
  res = @client.post("/access_methods/get", {access_method_id: access_method_id}.compact)
19
29
 
@@ -10,16 +10,8 @@ module Seam
10
10
  @defaults = defaults
11
11
  end
12
12
 
13
- def encode_access_method(access_method_id:, acs_encoder_id:, wait_for_action_attempt: nil)
14
- res = @client.post("/acs/encoders/encode_access_method", {access_method_id: access_method_id, acs_encoder_id: acs_encoder_id}.compact)
15
-
16
- wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
17
-
18
- Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
19
- end
20
-
21
- def encode_credential(acs_credential_id:, acs_encoder_id:, wait_for_action_attempt: nil)
22
- res = @client.post("/acs/encoders/encode_credential", {acs_credential_id: acs_credential_id, acs_encoder_id: acs_encoder_id}.compact)
13
+ def encode_credential(acs_encoder_id:, access_method_id: nil, acs_credential_id: nil, wait_for_action_attempt: nil)
14
+ res = @client.post("/acs/encoders/encode_credential", {acs_encoder_id: acs_encoder_id, access_method_id: access_method_id, acs_credential_id: acs_credential_id}.compact)
23
15
 
24
16
  wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
25
17
 
@@ -20,8 +20,8 @@ module Seam
20
20
  Seam::Resources::ConnectedAccount.load_from_response(res.body["connected_account"])
21
21
  end
22
22
 
23
- def list(custom_metadata_has: nil, customer_ids: nil, limit: nil, page_cursor: nil, user_identifier_key: nil)
24
- res = @client.post("/connected_accounts/list", {custom_metadata_has: custom_metadata_has, customer_ids: customer_ids, limit: limit, page_cursor: page_cursor, user_identifier_key: user_identifier_key}.compact)
23
+ def list(custom_metadata_has: nil, customer_ids: nil, limit: nil, page_cursor: nil, search: nil, user_identifier_key: nil)
24
+ res = @client.post("/connected_accounts/list", {custom_metadata_has: custom_metadata_has, customer_ids: customer_ids, limit: limit, page_cursor: page_cursor, search: search, user_identifier_key: user_identifier_key}.compact)
25
25
 
26
26
  Seam::Resources::ConnectedAccount.load_from_response(res.body["connected_accounts"])
27
27
  end
@@ -3,7 +3,7 @@
3
3
  module Seam
4
4
  module Resources
5
5
  class AccessGrant < BaseResource
6
- attr_accessor :access_grant_id, :access_method_ids, :display_name, :location_ids, :requested_access_methods, :space_ids, :user_identity_id, :workspace_id
6
+ attr_accessor :access_grant_id, :access_method_ids, :display_name, :instant_key_url, :location_ids, :requested_access_methods, :space_ids, :user_identity_id, :workspace_id
7
7
 
8
8
  date_accessor :created_at, :ends_at, :starts_at
9
9
  end
@@ -3,7 +3,7 @@
3
3
  module Seam
4
4
  module Resources
5
5
  class AccessMethod < BaseResource
6
- attr_accessor :access_method_id, :display_name, :instant_key_url, :is_card_encoding_required, :mode, :workspace_id
6
+ attr_accessor :access_method_id, :display_name, :instant_key_url, :is_encoding_required, :mode, :workspace_id
7
7
 
8
8
  date_accessor :created_at, :issued_at
9
9
  end
@@ -3,7 +3,7 @@
3
3
  module Seam
4
4
  module Resources
5
5
  class Device < BaseResource
6
- attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :capabilities_supported, :connected_account_id, :custom_metadata, :device_id, :device_type, :display_name, :is_managed, :location, :nickname, :properties, :workspace_id
6
+ attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :can_unlock_with_code, :capabilities_supported, :connected_account_id, :custom_metadata, :device_id, :device_type, :display_name, :is_managed, :location, :nickname, :properties, :workspace_id
7
7
 
8
8
  date_accessor :created_at
9
9
 
@@ -3,7 +3,7 @@
3
3
  module Seam
4
4
  module Resources
5
5
  class DeviceProvider < BaseResource
6
- attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :device_provider_name, :display_name, :image_url, :provider_categories
6
+ attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :can_unlock_with_code, :device_provider_name, :display_name, :image_url, :provider_categories
7
7
  end
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@
3
3
  module Seam
4
4
  module Resources
5
5
  class UnmanagedDevice < BaseResource
6
- attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :capabilities_supported, :connected_account_id, :device_id, :device_type, :is_managed, :location, :properties, :workspace_id
6
+ attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :can_unlock_with_code, :capabilities_supported, :connected_account_id, :device_id, :device_type, :is_managed, :location, :properties, :workspace_id
7
7
 
8
8
  date_accessor :created_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.38.0"
4
+ VERSION = "2.39.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.38.0
4
+ version: 2.39.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: 2025-06-27 00:00:00.000000000 Z
11
+ date: 2025-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday