seam 2.77.0 → 2.79.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 +4 -0
- data/lib/seam/routes/clients/access_grants_unmanaged.rb +24 -0
- data/lib/seam/routes/clients/access_methods.rb +4 -0
- data/lib/seam/routes/clients/access_methods_unmanaged.rb +24 -0
- data/lib/seam/routes/clients/index.rb +3 -0
- data/lib/seam/routes/clients/spaces.rb +4 -4
- data/lib/seam/routes/clients/user_identities.rb +4 -0
- data/lib/seam/routes/clients/user_identities_unmanaged.rb +24 -0
- data/lib/seam/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a7a72c07b334232f5bffdd00f4d1ea1cde286354ac9b51cb350f0cd40dabd8a
|
4
|
+
data.tar.gz: a221f7498e38934f3244e006660abbdad8f5bc793cd66c6b9877ca588dcfebc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adfc6c562476250aa18589797dfc2e9a1f4b81a1e55a507ddf032a12b928e4516ff048f7a20c01f03d5956ab2ba70112f0da6cae350be604f3a451e948fc1029
|
7
|
+
data.tar.gz: b743f01c668900c1c98990b60d6f1cce91fdc62ea0325cde02dca92db18e20c886486b5f620c747f4e3fb27ce9dcd9a439d243b0e84503228fa788d74831acc8
|
data/Gemfile.lock
CHANGED
@@ -8,6 +8,10 @@ module Seam
|
|
8
8
|
@defaults = defaults
|
9
9
|
end
|
10
10
|
|
11
|
+
def unmanaged
|
12
|
+
@unmanaged ||= Seam::Clients::AccessGrantsUnmanaged.new(client: @client, defaults: @defaults)
|
13
|
+
end
|
14
|
+
|
11
15
|
def create(requested_access_methods:, user_identity_id: nil, user_identity: nil, access_grant_key: nil, acs_entrance_ids: nil, customization_profile_id: nil, device_ids: nil, ends_at: nil, location: nil, location_ids: nil, name: nil, space_ids: nil, space_keys: nil, starts_at: nil)
|
12
16
|
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, customization_profile_id: customization_profile_id, 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
17
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Seam
|
4
|
+
module Clients
|
5
|
+
class AccessGrantsUnmanaged
|
6
|
+
def initialize(client:, defaults:)
|
7
|
+
@client = client
|
8
|
+
@defaults = defaults
|
9
|
+
end
|
10
|
+
|
11
|
+
def get(access_grant_id:)
|
12
|
+
@client.post("/access_grants/unmanaged/get", {access_grant_id: access_grant_id}.compact)
|
13
|
+
|
14
|
+
nil
|
15
|
+
end
|
16
|
+
|
17
|
+
def list(acs_entrance_id: nil, acs_system_id: nil, user_identity_id: nil)
|
18
|
+
@client.post("/access_grants/unmanaged/list", {acs_entrance_id: acs_entrance_id, acs_system_id: acs_system_id, user_identity_id: user_identity_id}.compact)
|
19
|
+
|
20
|
+
nil
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -10,6 +10,10 @@ module Seam
|
|
10
10
|
@defaults = defaults
|
11
11
|
end
|
12
12
|
|
13
|
+
def unmanaged
|
14
|
+
@unmanaged ||= Seam::Clients::AccessMethodsUnmanaged.new(client: @client, defaults: @defaults)
|
15
|
+
end
|
16
|
+
|
13
17
|
def delete(access_method_id:)
|
14
18
|
@client.post("/access_methods/delete", {access_method_id: access_method_id}.compact)
|
15
19
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Seam
|
4
|
+
module Clients
|
5
|
+
class AccessMethodsUnmanaged
|
6
|
+
def initialize(client:, defaults:)
|
7
|
+
@client = client
|
8
|
+
@defaults = defaults
|
9
|
+
end
|
10
|
+
|
11
|
+
def get(access_method_id:)
|
12
|
+
@client.post("/access_methods/unmanaged/get", {access_method_id: access_method_id}.compact)
|
13
|
+
|
14
|
+
nil
|
15
|
+
end
|
16
|
+
|
17
|
+
def list(access_grant_id:, acs_entrance_id: nil, device_id: nil, space_id: nil)
|
18
|
+
@client.post("/access_methods/unmanaged/list", {access_grant_id: access_grant_id, acs_entrance_id: acs_entrance_id, device_id: device_id, space_id: space_id}.compact)
|
19
|
+
|
20
|
+
nil
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -4,7 +4,9 @@ require_relative "access_codes"
|
|
4
4
|
require_relative "access_codes_simulate"
|
5
5
|
require_relative "access_codes_unmanaged"
|
6
6
|
require_relative "access_grants"
|
7
|
+
require_relative "access_grants_unmanaged"
|
7
8
|
require_relative "access_methods"
|
9
|
+
require_relative "access_methods_unmanaged"
|
8
10
|
require_relative "acs_access_groups"
|
9
11
|
require_relative "acs"
|
10
12
|
require_relative "acs_credentials"
|
@@ -36,5 +38,6 @@ require_relative "thermostats_daily_programs"
|
|
36
38
|
require_relative "thermostats_schedules"
|
37
39
|
require_relative "thermostats_simulate"
|
38
40
|
require_relative "user_identities"
|
41
|
+
require_relative "user_identities_unmanaged"
|
39
42
|
require_relative "webhooks"
|
40
43
|
require_relative "workspaces"
|
@@ -20,8 +20,8 @@ module Seam
|
|
20
20
|
nil
|
21
21
|
end
|
22
22
|
|
23
|
-
def create(name:, acs_entrance_ids: nil, device_ids: nil, space_key: nil)
|
24
|
-
res = @client.post("/spaces/create", {name: name, acs_entrance_ids: acs_entrance_ids, device_ids: device_ids, space_key: space_key}.compact)
|
23
|
+
def create(name:, acs_entrance_ids: nil, customer_key: nil, device_ids: nil, space_key: nil)
|
24
|
+
res = @client.post("/spaces/create", {name: name, acs_entrance_ids: acs_entrance_ids, customer_key: customer_key, device_ids: device_ids, space_key: space_key}.compact)
|
25
25
|
|
26
26
|
Seam::Resources::Space.load_from_response(res.body["space"])
|
27
27
|
end
|
@@ -62,8 +62,8 @@ module Seam
|
|
62
62
|
nil
|
63
63
|
end
|
64
64
|
|
65
|
-
def update(acs_entrance_ids: nil, device_ids: nil, name: nil, space_id: nil, space_key: nil)
|
66
|
-
res = @client.post("/spaces/update", {acs_entrance_ids: acs_entrance_ids, device_ids: device_ids, name: name, space_id: space_id, space_key: space_key}.compact)
|
65
|
+
def update(acs_entrance_ids: nil, customer_key: nil, device_ids: nil, name: nil, space_id: nil, space_key: nil)
|
66
|
+
res = @client.post("/spaces/update", {acs_entrance_ids: acs_entrance_ids, customer_key: customer_key, device_ids: device_ids, name: name, space_id: space_id, space_key: space_key}.compact)
|
67
67
|
|
68
68
|
Seam::Resources::Space.load_from_response(res.body["space"])
|
69
69
|
end
|
@@ -8,6 +8,10 @@ module Seam
|
|
8
8
|
@defaults = defaults
|
9
9
|
end
|
10
10
|
|
11
|
+
def unmanaged
|
12
|
+
@unmanaged ||= Seam::Clients::UserIdentitiesUnmanaged.new(client: @client, defaults: @defaults)
|
13
|
+
end
|
14
|
+
|
11
15
|
def add_acs_user(acs_user_id:, user_identity_id: nil, user_identity_key: nil)
|
12
16
|
@client.post("/user_identities/add_acs_user", {acs_user_id: acs_user_id, user_identity_id: user_identity_id, user_identity_key: user_identity_key}.compact)
|
13
17
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Seam
|
4
|
+
module Clients
|
5
|
+
class UserIdentitiesUnmanaged
|
6
|
+
def initialize(client:, defaults:)
|
7
|
+
@client = client
|
8
|
+
@defaults = defaults
|
9
|
+
end
|
10
|
+
|
11
|
+
def get(user_identity_id:)
|
12
|
+
@client.post("/user_identities/unmanaged/get", {user_identity_id: user_identity_id}.compact)
|
13
|
+
|
14
|
+
nil
|
15
|
+
end
|
16
|
+
|
17
|
+
def list(search: nil)
|
18
|
+
@client.post("/user_identities/unmanaged/list", {search: search}.compact)
|
19
|
+
|
20
|
+
nil
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
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.79.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-09-
|
11
|
+
date: 2025-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -207,7 +207,9 @@ files:
|
|
207
207
|
- lib/seam/routes/clients/access_codes_simulate.rb
|
208
208
|
- lib/seam/routes/clients/access_codes_unmanaged.rb
|
209
209
|
- lib/seam/routes/clients/access_grants.rb
|
210
|
+
- lib/seam/routes/clients/access_grants_unmanaged.rb
|
210
211
|
- lib/seam/routes/clients/access_methods.rb
|
212
|
+
- lib/seam/routes/clients/access_methods_unmanaged.rb
|
211
213
|
- lib/seam/routes/clients/acs.rb
|
212
214
|
- lib/seam/routes/clients/acs_access_groups.rb
|
213
215
|
- lib/seam/routes/clients/acs_credentials.rb
|
@@ -240,6 +242,7 @@ files:
|
|
240
242
|
- lib/seam/routes/clients/thermostats_schedules.rb
|
241
243
|
- lib/seam/routes/clients/thermostats_simulate.rb
|
242
244
|
- lib/seam/routes/clients/user_identities.rb
|
245
|
+
- lib/seam/routes/clients/user_identities_unmanaged.rb
|
243
246
|
- lib/seam/routes/clients/webhooks.rb
|
244
247
|
- lib/seam/routes/clients/workspaces.rb
|
245
248
|
- lib/seam/routes/resources/access_code.rb
|