seam 2.77.0 → 2.78.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: 1dae4c4e3c0c413b29f3040fa8db581fe24dff599638cee422d304d13373f209
4
- data.tar.gz: 87f8f8863e5c09d5b1afc81c043aa33c48465b94caa6f458325e4245067440c9
3
+ metadata.gz: 1e79d695baad275f75dcf9b167b001c006e5a7843a2942d16301661df52bfa40
4
+ data.tar.gz: f777873248e23eb9077eab4af22815ff9bfc176af8884a291a547677a1f0263e
5
5
  SHA512:
6
- metadata.gz: a2974d710dbb648bcc17bc1dbadb2dd650cac9207c72f2e346be2443774ec8a815c44ff222083e81d05074572919755f52a81b961a5f84be469a854174155d5f
7
- data.tar.gz: 15e3920ed1a76b6e69b3a589898f91351decd8e9a36e10ccd5936f2b38d07503a3d76bcf680aae5a18f4e5b4bb7b5d00dc7dbacf472c30fbfffd7d63ec2674bf
6
+ metadata.gz: f75b29f5a9d7239c699c78abb6aee527d4a0c5fd702b50ec6c2529cc8dd872edc16ff4b7f9df66e07bf5b13694f8ebd361359e9f4ed24737cab0610f3548b4f8
7
+ data.tar.gz: b7cd2a7b8bea390babd3bfbf093cf69ce83d8fc4e1f4df4fc71e4f61152ee6d647d420bacb935e9a12efd57caa7ab39344d90574280b4f40d6c75624e88c9edc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seam (2.77.0)
4
+ seam (2.78.0)
5
5
  faraday (~> 2.7)
6
6
  faraday-retry (~> 2.2)
7
7
  svix (~> 1.30)
@@ -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"
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Seam
4
- VERSION = "2.77.0"
4
+ VERSION = "2.78.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.77.0
4
+ version: 2.78.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-22 00:00:00.000000000 Z
11
+ date: 2025-09-24 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