seam 2.50.0 → 2.52.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: 9055f7ed00657a6862bfd6954c1b127d32f0b025d7583ee21f87c08ad6e3f4c3
4
- data.tar.gz: 4319815c4d16e64de622251e5c97ad5e71cf4e4464537a3d9681b251fceb75bf
3
+ metadata.gz: 73df2dd75b3b699b55f3ed09f0cf80306513cd6b44775fde53d880be5076f577
4
+ data.tar.gz: 65ed479a2482ecbdf63c82fd348011f0ac67ac468bdbb6f9567767fbaa1acffa
5
5
  SHA512:
6
- metadata.gz: 72e0475031a483ed72f0f427ff9bdf3a3ecb3d98304cfb1d56b8b8838e997715e26aa6999003fa74dca61b43230f04a07794bd47f7c827b32ec13c6b27bfc7be
7
- data.tar.gz: f2beea2bd5e18c8ca3fe7b053380fd93d93ba0de4f394f9144aad79717b9464c1544db10a8801afbc81df5d210651da29ac706dcc3bea0bec4e107f5299d99e9
6
+ metadata.gz: a8a794778a2ea1c76d27ed4c02607013089c2918a095bd337324bae52da1ebe2501d06e2a6fdc134a33e6c927140c67b4a7a7e6c034e14e189fc990488b30086
7
+ data.tar.gz: 07ac8557648d6352ae433ecb76bc18dbeae09344c7c5ddb26c111caf637ee4f789ac175577fe1f3bd3770d7ec21ae6fc9558371e7c335768688a4f75256d30bc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seam (2.50.0)
4
+ seam (2.52.0)
5
5
  faraday (~> 2.7)
6
6
  faraday-retry (~> 2.2)
7
7
  svix (~> 1.30)
@@ -8,8 +8,8 @@ module Seam
8
8
  @defaults = defaults
9
9
  end
10
10
 
11
- def create(requested_access_methods:, user_identity_id: nil, user_identity: nil, access_grant_key: nil, acs_entrance_ids: nil, device_ids: nil, ends_at: nil, location: nil, location_ids: nil, name: nil, space_ids: nil, starts_at: nil)
12
- res = @client.post("/access_grants/create", {requested_access_methods: requested_access_methods, user_identity_id: user_identity_id, user_identity: user_identity, access_grant_key: access_grant_key, acs_entrance_ids: acs_entrance_ids, device_ids: device_ids, ends_at: ends_at, location: location, location_ids: location_ids, name: name, space_ids: space_ids, starts_at: starts_at}.compact)
11
+ def create(requested_access_methods:, user_identity_id: nil, user_identity: nil, access_grant_key: nil, acs_entrance_ids: nil, device_ids: nil, ends_at: nil, location: nil, location_ids: nil, name: nil, space_ids: nil, space_keys: nil, starts_at: nil)
12
+ res = @client.post("/access_grants/create", {requested_access_methods: requested_access_methods, user_identity_id: user_identity_id, user_identity: user_identity, access_grant_key: access_grant_key, acs_entrance_ids: acs_entrance_ids, device_ids: device_ids, ends_at: ends_at, location: location, location_ids: location_ids, name: name, space_ids: space_ids, space_keys: space_keys, starts_at: starts_at}.compact)
13
13
 
14
14
  Seam::Resources::AccessGrant.load_from_response(res.body["access_grant"])
15
15
  end
@@ -22,6 +22,7 @@ require_relative "devices"
22
22
  require_relative "devices_simulate"
23
23
  require_relative "devices_unmanaged"
24
24
  require_relative "events"
25
+ require_relative "instant_keys"
25
26
  require_relative "locks"
26
27
  require_relative "locks_simulate"
27
28
  require_relative "noise_sensors"
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Seam
4
+ module Clients
5
+ class InstantKeys
6
+ def initialize(client:, defaults:)
7
+ @client = client
8
+ @defaults = defaults
9
+ end
10
+
11
+ def get(instant_key_id:)
12
+ res = @client.post("/instant_keys/get", {instant_key_id: instant_key_id}.compact)
13
+
14
+ Seam::Resources::InstantKey.load_from_response(res.body["instant_key"])
15
+ end
16
+
17
+ def list(user_identity_id: nil)
18
+ res = @client.post("/instant_keys/list", {user_identity_id: user_identity_id}.compact)
19
+
20
+ Seam::Resources::InstantKey.load_from_response(res.body["instant_keys"])
21
+ end
22
+ end
23
+ end
24
+ end
@@ -3,7 +3,7 @@
3
3
  module Seam
4
4
  module Resources
5
5
  class PhoneSession < BaseResource
6
- attr_accessor :provider_sessions
6
+ attr_accessor :provider_sessions, :user_identity, :workspace_id
7
7
  end
8
8
  end
9
9
  end
@@ -46,6 +46,10 @@ module Seam
46
46
  @events ||= Seam::Clients::Events.new(client: @client, defaults: @defaults)
47
47
  end
48
48
 
49
+ def instant_keys
50
+ @instant_keys ||= Seam::Clients::InstantKeys.new(client: @client, defaults: @defaults)
51
+ end
52
+
49
53
  def locks
50
54
  @locks ||= Seam::Clients::Locks.new(client: @client, defaults: @defaults)
51
55
  end
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.50.0"
4
+ VERSION = "2.52.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.50.0
4
+ version: 2.52.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-07-17 00:00:00.000000000 Z
11
+ date: 2025-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -226,6 +226,7 @@ files:
226
226
  - lib/seam/routes/clients/devices_unmanaged.rb
227
227
  - lib/seam/routes/clients/events.rb
228
228
  - lib/seam/routes/clients/index.rb
229
+ - lib/seam/routes/clients/instant_keys.rb
229
230
  - lib/seam/routes/clients/locks.rb
230
231
  - lib/seam/routes/clients/locks_simulate.rb
231
232
  - lib/seam/routes/clients/noise_sensors.rb