seam 2.50.0 → 2.51.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/seam/routes/clients/access_grants.rb +2 -2
- data/lib/seam/routes/clients/index.rb +1 -0
- data/lib/seam/routes/clients/instant_keys.rb +18 -0
- data/lib/seam/routes/resources/phone_session.rb +1 -1
- data/lib/seam/routes/routes.rb +4 -0
- data/lib/seam/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f05c6a6d33f3c5cafcc2fed36a3182f08fbf03c24c058c15d9f855751f7f01be
|
4
|
+
data.tar.gz: 2af72fd773d98ab98621cd2f4aaf8d0af6ce5b4607f32baf6f0db7330c2c8f70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7204d642549ee670c32227218e6709bdb00af082bcfa3e2bd2b228fb16a0e3b61d7e8d2b2b02c89ffed6c701fdd60b81f9f066b45e6081c560b799234ebf278
|
7
|
+
data.tar.gz: f1b587eec032f82297500614c02bdd41201eaf0f78f1fe4141c171d8cb1b4029630bfe2059b2b12b6ced3e10e3ed9427cd4c045d92216fc086ec1a556d062ff0
|
data/Gemfile.lock
CHANGED
@@ -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,18 @@
|
|
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 list(user_identity_id: nil)
|
12
|
+
res = @client.post("/instant_keys/list", {user_identity_id: user_identity_id}.compact)
|
13
|
+
|
14
|
+
Seam::Resources::InstantKey.load_from_response(res.body["instant_keys"])
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/seam/routes/routes.rb
CHANGED
@@ -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
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.
|
4
|
+
version: 2.51.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-
|
11
|
+
date: 2025-07-22 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
|