seam 2.4.0 → 2.5.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: 6fd920983a08afea0ad7077a09189dcd9431f214c450dd3356630333c6fbcf04
4
- data.tar.gz: 238b1af59f8fcf390622185b640937bfc016d95756ead641c0499c7687577626
3
+ metadata.gz: d1a9acf167dd32f5024266d7d21bdd99b425039f6ee9b732940fcdb82f78833e
4
+ data.tar.gz: ea34a8913c7b374f84fbeaa406e72f883df2a6f51d2d6b1f6bfe6d85aea21531
5
5
  SHA512:
6
- metadata.gz: b5400af12dc43967b8bcc53a6436ffbbbc3e612d112f7d63b9daf4fb3efa3a4bba01fdedbd0aca0388a443d4705f024bbca5192e1a1de2902886411608bfc581
7
- data.tar.gz: 5693d3a1970b412f00849fa144f97604625b4cf285bf4ebc7e1ec66ee8efdbc214b19812cc0021de7e2187497626d6de87053f586fe0ab5e8a2a56a7cc390adc
6
+ metadata.gz: da01602a094fcaa3af47382d0a135a8658ed4e2396f71e9da2d8ee4e941f81dc92b2bbb6d55c6369e71e697318794fb7a08df8869183bb06ea77139c7bc60cdf
7
+ data.tar.gz: 53a962f30990925a88f28d520cca2873a4c42fb37d03315cc761ef561c9f4dcc720ce036f98fd1fdf2ed2a393fb912fa20619833cf13c1289639d98aa0710a96
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seam (2.4.0)
4
+ seam (2.5.0)
5
5
  faraday (~> 2.7)
6
6
  faraday-retry (~> 2.2)
7
7
  svix (~> 1.30)
@@ -12,14 +12,6 @@ module Seam
12
12
  @access_groups ||= Seam::Clients::AcsAccessGroups.new(client: @client, defaults: @defaults)
13
13
  end
14
14
 
15
- def credential_pools
16
- @credential_pools ||= Seam::Clients::AcsCredentialPools.new(client: @client, defaults: @defaults)
17
- end
18
-
19
- def credential_provisioning_automations
20
- @credential_provisioning_automations ||= Seam::Clients::AcsCredentialProvisioningAutomations.new(client: @client, defaults: @defaults)
21
- end
22
-
23
15
  def credentials
24
16
  @credentials ||= Seam::Clients::AcsCredentials.new(client: @client, defaults: @defaults)
25
17
  end
@@ -20,12 +20,6 @@ module Seam
20
20
  Seam::Resources::AcsCredential.load_from_response(res.body["acs_credential"])
21
21
  end
22
22
 
23
- def create_offline_code(acs_user_id:, allowed_acs_entrance_id:, ends_at: nil, is_one_time_use: nil, starts_at: nil)
24
- res = @client.post("/acs/credentials/create_offline_code", {acs_user_id: acs_user_id, allowed_acs_entrance_id: allowed_acs_entrance_id, ends_at: ends_at, is_one_time_use: is_one_time_use, starts_at: starts_at}.compact)
25
-
26
- Seam::Resources::AcsCredential.load_from_response(res.body["acs_credential"])
27
- end
28
-
29
23
  def delete(acs_credential_id:)
30
24
  @client.post("/acs/credentials/delete", {acs_credential_id: acs_credential_id}.compact)
31
25
 
@@ -32,8 +32,8 @@ module Seam
32
32
  Seam::Resources::AcsUser.load_from_response(res.body["acs_user"])
33
33
  end
34
34
 
35
- def list(acs_system_id: nil, created_before: nil, limit: nil, user_identity_email_address: nil, user_identity_id: nil, user_identity_phone_number: nil)
36
- res = @client.post("/acs/users/list", {acs_system_id: acs_system_id, created_before: created_before, limit: limit, user_identity_email_address: user_identity_email_address, user_identity_id: user_identity_id, user_identity_phone_number: user_identity_phone_number}.compact)
35
+ def list(acs_system_id: nil, created_before: nil, limit: nil, page_cursor: nil, user_identity_email_address: nil, user_identity_id: nil, user_identity_phone_number: nil)
36
+ res = @client.post("/acs/users/list", {acs_system_id: acs_system_id, created_before: created_before, limit: limit, page_cursor: page_cursor, user_identity_email_address: user_identity_email_address, user_identity_id: user_identity_id, user_identity_phone_number: user_identity_phone_number}.compact)
37
37
 
38
38
  Seam::Resources::AcsUser.load_from_response(res.body["acs_users"])
39
39
  end
@@ -16,12 +16,6 @@ module Seam
16
16
  @unmanaged ||= Seam::Clients::DevicesUnmanaged.new(client: @client, defaults: @defaults)
17
17
  end
18
18
 
19
- def delete(device_id:)
20
- @client.post("/devices/delete", {device_id: device_id}.compact)
21
-
22
- nil
23
- end
24
-
25
19
  def get(device_id: nil, name: nil)
26
20
  res = @client.post("/devices/get", {device_id: device_id, name: name}.compact)
27
21
 
@@ -14,8 +14,8 @@ module Seam
14
14
  Seam::Resources::SeamEvent.load_from_response(res.body["event"])
15
15
  end
16
16
 
17
- def list(access_code_id: nil, access_code_ids: nil, acs_system_id: nil, acs_system_ids: nil, between: nil, connect_webview_id: nil, connected_account_id: nil, device_id: nil, device_ids: nil, event_type: nil, event_types: nil, limit: nil, since: nil, unstable_offset: nil)
18
- res = @client.post("/events/list", {access_code_id: access_code_id, access_code_ids: access_code_ids, acs_system_id: acs_system_id, acs_system_ids: acs_system_ids, between: between, connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, device_id: device_id, device_ids: device_ids, event_type: event_type, event_types: event_types, limit: limit, since: since, unstable_offset: unstable_offset}.compact)
17
+ def list(access_code_id: nil, access_code_ids: nil, acs_system_id: nil, acs_system_ids: nil, between: nil, connect_webview_id: nil, connected_account_id: nil, device_id: nil, device_ids: nil, event_ids: nil, event_type: nil, event_types: nil, limit: nil, since: nil, unstable_offset: nil)
18
+ res = @client.post("/events/list", {access_code_id: access_code_id, access_code_ids: access_code_ids, acs_system_id: acs_system_id, acs_system_ids: acs_system_ids, between: between, connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, device_id: device_id, device_ids: device_ids, event_ids: event_ids, event_type: event_type, event_types: event_types, limit: limit, since: since, unstable_offset: unstable_offset}.compact)
19
19
 
20
20
  Seam::Resources::SeamEvent.load_from_response(res.body["events"])
21
21
  end
@@ -5,17 +5,12 @@ require_relative "access_codes_simulate"
5
5
  require_relative "access_codes_unmanaged"
6
6
  require_relative "acs_access_groups"
7
7
  require_relative "acs"
8
- require_relative "acs_access_groups_unmanaged"
9
- require_relative "acs_credential_pools"
10
- require_relative "acs_credential_provisioning_automations"
11
8
  require_relative "acs_credentials"
12
- require_relative "acs_credentials_unmanaged"
13
9
  require_relative "acs_encoders"
14
10
  require_relative "acs_encoders_simulate"
15
11
  require_relative "acs_entrances"
16
12
  require_relative "acs_systems"
17
13
  require_relative "acs_users"
18
- require_relative "acs_users_unmanaged"
19
14
  require_relative "action_attempts"
20
15
  require_relative "bridges"
21
16
  require_relative "client_sessions"
@@ -46,12 +46,6 @@ module Seam
46
46
  nil
47
47
  end
48
48
 
49
- def get(device_id: nil, name: nil)
50
- res = @client.post("/thermostats/get", {device_id: device_id, name: name}.compact)
51
-
52
- Seam::Resources::Device.load_from_response(res.body["thermostat"])
53
- end
54
-
55
49
  def heat(device_id:, heating_set_point_celsius: nil, heating_set_point_fahrenheit: nil, sync: nil, wait_for_action_attempt: nil)
56
50
  res = @client.post("/thermostats/heat", {device_id: device_id, heating_set_point_celsius: heating_set_point_celsius, heating_set_point_fahrenheit: heating_set_point_fahrenheit, sync: sync}.compact)
57
51
 
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.4.0"
4
+ VERSION = "2.5.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.4.0
4
+ version: 2.5.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-02-13 00:00:00.000000000 Z
11
+ date: 2025-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -207,17 +207,12 @@ files:
207
207
  - lib/seam/routes/clients/access_codes_unmanaged.rb
208
208
  - lib/seam/routes/clients/acs.rb
209
209
  - lib/seam/routes/clients/acs_access_groups.rb
210
- - lib/seam/routes/clients/acs_access_groups_unmanaged.rb
211
- - lib/seam/routes/clients/acs_credential_pools.rb
212
- - lib/seam/routes/clients/acs_credential_provisioning_automations.rb
213
210
  - lib/seam/routes/clients/acs_credentials.rb
214
- - lib/seam/routes/clients/acs_credentials_unmanaged.rb
215
211
  - lib/seam/routes/clients/acs_encoders.rb
216
212
  - lib/seam/routes/clients/acs_encoders_simulate.rb
217
213
  - lib/seam/routes/clients/acs_entrances.rb
218
214
  - lib/seam/routes/clients/acs_systems.rb
219
215
  - lib/seam/routes/clients/acs_users.rb
220
- - lib/seam/routes/clients/acs_users_unmanaged.rb
221
216
  - lib/seam/routes/clients/action_attempts.rb
222
217
  - lib/seam/routes/clients/bridges.rb
223
218
  - lib/seam/routes/clients/client_sessions.rb
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Seam
4
- module Clients
5
- class AcsAccessGroupsUnmanaged
6
- def initialize(client:, defaults:)
7
- @client = client
8
- @defaults = defaults
9
- end
10
-
11
- def get(acs_access_group_id:)
12
- res = @client.post("/acs/access_groups/unmanaged/get", {acs_access_group_id: acs_access_group_id}.compact)
13
-
14
- Seam::Resources::UnmanagedAcsAccessGroup.load_from_response(res.body["acs_access_group"])
15
- end
16
-
17
- def list(acs_system_id: nil, acs_user_id: nil)
18
- res = @client.post("/acs/access_groups/unmanaged/list", {acs_system_id: acs_system_id, acs_user_id: acs_user_id}.compact)
19
-
20
- Seam::Resources::UnmanagedAcsAccessGroup.load_from_response(res.body["acs_access_groups"])
21
- end
22
- end
23
- end
24
- end
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Seam
4
- module Clients
5
- class AcsCredentialPools
6
- def initialize(client:, defaults:)
7
- @client = client
8
- @defaults = defaults
9
- end
10
-
11
- def list(acs_system_id:)
12
- res = @client.post("/acs/credential_pools/list", {acs_system_id: acs_system_id}.compact)
13
-
14
- Seam::Resources::AcsCredentialPool.load_from_response(res.body["acs_credential_pools"])
15
- end
16
- end
17
- end
18
- end
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Seam
4
- module Clients
5
- class AcsCredentialProvisioningAutomations
6
- def initialize(client:, defaults:)
7
- @client = client
8
- @defaults = defaults
9
- end
10
-
11
- def launch(credential_manager_acs_system_id:, user_identity_id:, acs_credential_pool_id: nil, create_credential_manager_user: nil, credential_manager_acs_user_id: nil)
12
- res = @client.post("/acs/credential_provisioning_automations/launch", {credential_manager_acs_system_id: credential_manager_acs_system_id, user_identity_id: user_identity_id, acs_credential_pool_id: acs_credential_pool_id, create_credential_manager_user: create_credential_manager_user, credential_manager_acs_user_id: credential_manager_acs_user_id}.compact)
13
-
14
- Seam::Resources::AcsCredentialProvisioningAutomation.load_from_response(res.body["acs_credential_provisioning_automation"])
15
- end
16
- end
17
- end
18
- end
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Seam
4
- module Clients
5
- class AcsCredentialsUnmanaged
6
- def initialize(client:, defaults:)
7
- @client = client
8
- @defaults = defaults
9
- end
10
-
11
- def get(acs_credential_id:)
12
- res = @client.post("/acs/credentials/unmanaged/get", {acs_credential_id: acs_credential_id}.compact)
13
-
14
- Seam::Resources::UnmanagedAcsCredential.load_from_response(res.body["acs_credential"])
15
- end
16
-
17
- def list(acs_user_id: nil, acs_system_id: nil, user_identity_id: nil)
18
- res = @client.post("/acs/credentials/unmanaged/list", {acs_user_id: acs_user_id, acs_system_id: acs_system_id, user_identity_id: user_identity_id}.compact)
19
-
20
- Seam::Resources::UnmanagedAcsCredential.load_from_response(res.body["acs_credentials"])
21
- end
22
- end
23
- end
24
- end
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Seam
4
- module Clients
5
- class AcsUsersUnmanaged
6
- def initialize(client:, defaults:)
7
- @client = client
8
- @defaults = defaults
9
- end
10
-
11
- def get(acs_user_id:)
12
- res = @client.post("/acs/users/unmanaged/get", {acs_user_id: acs_user_id}.compact)
13
-
14
- Seam::Resources::UnmanagedAcsUser.load_from_response(res.body["acs_user"])
15
- end
16
-
17
- def list(acs_system_id: nil, limit: nil, user_identity_email_address: nil, user_identity_id: nil, user_identity_phone_number: nil)
18
- res = @client.post("/acs/users/unmanaged/list", {acs_system_id: acs_system_id, limit: limit, user_identity_email_address: user_identity_email_address, user_identity_id: user_identity_id, user_identity_phone_number: user_identity_phone_number}.compact)
19
-
20
- Seam::Resources::UnmanagedAcsUser.load_from_response(res.body["acs_users"])
21
- end
22
- end
23
- end
24
- end