seam 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/lib/seam/routes/clients/access_codes.rb +2 -2
- data/lib/seam/routes/clients/acs_credentials.rb +2 -2
- data/lib/seam/routes/clients/acs_encoders.rb +7 -7
- data/lib/seam/routes/clients/devices.rb +2 -2
- data/lib/seam/routes/clients/devices_unmanaged.rb +2 -2
- data/lib/seam/routes/clients/locks.rb +2 -2
- data/lib/seam/routes/clients/noise_sensors.rb +2 -2
- data/lib/seam/routes/clients/thermostats.rb +4 -4
- data/lib/seam/routes/clients/thermostats_schedules.rb +4 -4
- data/lib/seam/routes/resources/acs_system.rb +1 -1
- data/lib/seam/routes/resources/thermostat_schedule.rb +1 -1
- data/lib/seam/routes/routes.rb +0 -4
- data/lib/seam/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c07f619b27bff2b51f470df41776663837f1927928c4ecbe9a3dfaad95f94be5
|
4
|
+
data.tar.gz: 15462d83c3305282d8cf4c7a08579617bb7c3f9436c3e873f3ff1fc662a6e12f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbaaedfa65d60963d719e848cd57628d8bad58c006f754e9fb6c5d87debed97601304cff9890f372da889029b77b3f66f94ee83e9683cf158303c84dfcb7caa8
|
7
|
+
data.tar.gz: '09709484de2997533804923d5efbe605f60c6e62cf8d37689e99f5f4c65220484d65db9650386d2c1a851df392ba4a88c09b24c7f0c7713bb94263c4f4b28dee'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
seam (2.
|
4
|
+
seam (2.1.0)
|
5
5
|
faraday (~> 2.7)
|
6
6
|
faraday-retry (~> 2.2)
|
7
7
|
svix (~> 1.30)
|
@@ -108,10 +108,10 @@ GEM
|
|
108
108
|
thor (1.3.2)
|
109
109
|
unicode-display_width (2.6.0)
|
110
110
|
uri (1.0.1)
|
111
|
-
webmock (3.0
|
112
|
-
addressable (>= 2.
|
111
|
+
webmock (3.24.0)
|
112
|
+
addressable (>= 2.8.0)
|
113
113
|
crack (>= 0.3.2)
|
114
|
-
hashdiff
|
114
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
115
115
|
|
116
116
|
PLATFORMS
|
117
117
|
ruby
|
@@ -127,7 +127,7 @@ DEPENDENCIES
|
|
127
127
|
simplecov (~> 0.21)
|
128
128
|
simplecov-console (~> 0.9)
|
129
129
|
standard (~> 1.3)
|
130
|
-
webmock (~> 3.
|
130
|
+
webmock (~> 3.24.0)
|
131
131
|
|
132
132
|
BUNDLED WITH
|
133
133
|
2.5.16
|
@@ -64,8 +64,8 @@ module Seam
|
|
64
64
|
nil
|
65
65
|
end
|
66
66
|
|
67
|
-
def update_multiple(common_code_key:,
|
68
|
-
@client.post("/access_codes/update_multiple", {common_code_key: common_code_key,
|
67
|
+
def update_multiple(common_code_key:, ends_at: nil, name: nil, starts_at: nil)
|
68
|
+
@client.post("/access_codes/update_multiple", {common_code_key: common_code_key, ends_at: ends_at, name: name, starts_at: starts_at}.compact)
|
69
69
|
|
70
70
|
nil
|
71
71
|
end
|
@@ -14,8 +14,8 @@ module Seam
|
|
14
14
|
nil
|
15
15
|
end
|
16
16
|
|
17
|
-
def create(access_method:, acs_user_id:, allowed_acs_entrance_ids: nil, code: nil, credential_manager_acs_system_id: nil, ends_at: nil, is_multi_phone_sync_credential: nil, starts_at: nil, visionline_metadata: nil)
|
18
|
-
res = @client.post("/acs/credentials/create", {access_method: access_method, acs_user_id: acs_user_id, allowed_acs_entrance_ids: allowed_acs_entrance_ids, code: code, credential_manager_acs_system_id: credential_manager_acs_system_id, ends_at: ends_at, is_multi_phone_sync_credential: is_multi_phone_sync_credential, starts_at: starts_at, visionline_metadata: visionline_metadata}.compact)
|
17
|
+
def create(access_method:, acs_user_id:, allowed_acs_entrance_ids: nil, assa_abloy_vostio_metadata: nil, code: nil, credential_manager_acs_system_id: nil, ends_at: nil, is_multi_phone_sync_credential: nil, starts_at: nil, visionline_metadata: nil)
|
18
|
+
res = @client.post("/acs/credentials/create", {access_method: access_method, acs_user_id: acs_user_id, allowed_acs_entrance_ids: allowed_acs_entrance_ids, assa_abloy_vostio_metadata: assa_abloy_vostio_metadata, code: code, credential_manager_acs_system_id: credential_manager_acs_system_id, ends_at: ends_at, is_multi_phone_sync_credential: is_multi_phone_sync_credential, starts_at: starts_at, visionline_metadata: visionline_metadata}.compact)
|
19
19
|
|
20
20
|
Seam::Resources::AcsCredential.load_from_response(res.body["acs_credential"])
|
21
21
|
end
|
@@ -10,22 +10,22 @@ module Seam
|
|
10
10
|
@defaults = defaults
|
11
11
|
end
|
12
12
|
|
13
|
-
def
|
14
|
-
res = @client.post("/acs/encoders/
|
13
|
+
def encode_credential(acs_credential_id:, acs_encoder_id:, wait_for_action_attempt: nil)
|
14
|
+
res = @client.post("/acs/encoders/encode_credential", {acs_credential_id: acs_credential_id, acs_encoder_id: acs_encoder_id}.compact)
|
15
15
|
|
16
16
|
wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
|
17
17
|
|
18
18
|
Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
|
19
19
|
end
|
20
20
|
|
21
|
-
def list(
|
22
|
-
|
21
|
+
def list(acs_encoder_ids: nil, acs_system_ids: nil, limit: nil)
|
22
|
+
@client.post("/acs/encoders/list", {acs_encoder_ids: acs_encoder_ids, acs_system_ids: acs_system_ids, limit: limit}.compact)
|
23
23
|
|
24
|
-
|
24
|
+
nil
|
25
25
|
end
|
26
26
|
|
27
|
-
def
|
28
|
-
res = @client.post("/acs/encoders/
|
27
|
+
def scan_credential(acs_encoder_id:, acs_system_id:, wait_for_action_attempt: nil)
|
28
|
+
res = @client.post("/acs/encoders/scan_credential", {acs_encoder_id: acs_encoder_id, acs_system_id: acs_system_id}.compact)
|
29
29
|
|
30
30
|
wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
|
31
31
|
|
@@ -28,8 +28,8 @@ module Seam
|
|
28
28
|
Seam::Resources::Device.load_from_response(res.body["device"])
|
29
29
|
end
|
30
30
|
|
31
|
-
def list(connect_webview_id: nil, connected_account_id: nil, connected_account_ids: nil, created_before: nil, custom_metadata_has: nil, device_ids: nil, device_types: nil, exclude_if: nil, include_if: nil, limit: nil, manufacturer: nil, user_identifier_key: nil)
|
32
|
-
res = @client.post("/devices/list", {connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, connected_account_ids: connected_account_ids, created_before: created_before, custom_metadata_has: custom_metadata_has, device_ids: device_ids, device_types: device_types, exclude_if: exclude_if, include_if: include_if, limit: limit, manufacturer: manufacturer, user_identifier_key: user_identifier_key}.compact)
|
31
|
+
def list(connect_webview_id: nil, connected_account_id: nil, connected_account_ids: nil, created_before: nil, custom_metadata_has: nil, device_ids: nil, device_type: nil, device_types: nil, exclude_if: nil, include_if: nil, limit: nil, manufacturer: nil, user_identifier_key: nil)
|
32
|
+
res = @client.post("/devices/list", {connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, connected_account_ids: connected_account_ids, created_before: created_before, custom_metadata_has: custom_metadata_has, device_ids: device_ids, device_type: device_type, device_types: device_types, exclude_if: exclude_if, include_if: include_if, limit: limit, manufacturer: manufacturer, user_identifier_key: user_identifier_key}.compact)
|
33
33
|
|
34
34
|
Seam::Resources::Device.load_from_response(res.body["devices"])
|
35
35
|
end
|
@@ -14,8 +14,8 @@ module Seam
|
|
14
14
|
Seam::Resources::UnmanagedDevice.load_from_response(res.body["device"])
|
15
15
|
end
|
16
16
|
|
17
|
-
def list(connect_webview_id: nil, connected_account_id: nil, connected_account_ids: nil, created_before: nil, custom_metadata_has: nil, device_ids: nil, device_types: nil, exclude_if: nil, include_if: nil, limit: nil, manufacturer: nil, user_identifier_key: nil)
|
18
|
-
res = @client.post("/devices/unmanaged/list", {connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, connected_account_ids: connected_account_ids, created_before: created_before, custom_metadata_has: custom_metadata_has, device_ids: device_ids, device_types: device_types, exclude_if: exclude_if, include_if: include_if, limit: limit, manufacturer: manufacturer, user_identifier_key: user_identifier_key}.compact)
|
17
|
+
def list(connect_webview_id: nil, connected_account_id: nil, connected_account_ids: nil, created_before: nil, custom_metadata_has: nil, device_ids: nil, device_type: nil, device_types: nil, exclude_if: nil, include_if: nil, limit: nil, manufacturer: nil, user_identifier_key: nil)
|
18
|
+
res = @client.post("/devices/unmanaged/list", {connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, connected_account_ids: connected_account_ids, created_before: created_before, custom_metadata_has: custom_metadata_has, device_ids: device_ids, device_type: device_type, device_types: device_types, exclude_if: exclude_if, include_if: include_if, limit: limit, manufacturer: manufacturer, user_identifier_key: user_identifier_key}.compact)
|
19
19
|
|
20
20
|
Seam::Resources::UnmanagedDevice.load_from_response(res.body["devices"])
|
21
21
|
end
|
@@ -16,8 +16,8 @@ module Seam
|
|
16
16
|
Seam::Resources::Device.load_from_response(res.body["device"])
|
17
17
|
end
|
18
18
|
|
19
|
-
def list(connect_webview_id: nil, connected_account_id: nil, connected_account_ids: nil, created_before: nil, custom_metadata_has: nil, device_ids: nil, device_types: nil, exclude_if: nil, include_if: nil, limit: nil, manufacturer: nil, user_identifier_key: nil)
|
20
|
-
res = @client.post("/locks/list", {connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, connected_account_ids: connected_account_ids, created_before: created_before, custom_metadata_has: custom_metadata_has, device_ids: device_ids, device_types: device_types, exclude_if: exclude_if, include_if: include_if, limit: limit, manufacturer: manufacturer, user_identifier_key: user_identifier_key}.compact)
|
19
|
+
def list(connect_webview_id: nil, connected_account_id: nil, connected_account_ids: nil, created_before: nil, custom_metadata_has: nil, device_ids: nil, device_type: nil, device_types: nil, exclude_if: nil, include_if: nil, limit: nil, manufacturer: nil, user_identifier_key: nil)
|
20
|
+
res = @client.post("/locks/list", {connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, connected_account_ids: connected_account_ids, created_before: created_before, custom_metadata_has: custom_metadata_has, device_ids: device_ids, device_type: device_type, device_types: device_types, exclude_if: exclude_if, include_if: include_if, limit: limit, manufacturer: manufacturer, user_identifier_key: user_identifier_key}.compact)
|
21
21
|
|
22
22
|
Seam::Resources::Device.load_from_response(res.body["devices"])
|
23
23
|
end
|
@@ -16,8 +16,8 @@ module Seam
|
|
16
16
|
@simulate ||= Seam::Clients::NoiseSensorsSimulate.new(client: @client, defaults: @defaults)
|
17
17
|
end
|
18
18
|
|
19
|
-
def list(connect_webview_id: nil, connected_account_id: nil, connected_account_ids: nil, created_before: nil, custom_metadata_has: nil, device_ids: nil, device_types: nil, exclude_if: nil, include_if: nil, limit: nil, manufacturer: nil, user_identifier_key: nil)
|
20
|
-
res = @client.post("/noise_sensors/list", {connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, connected_account_ids: connected_account_ids, created_before: created_before, custom_metadata_has: custom_metadata_has, device_ids: device_ids, device_types: device_types, exclude_if: exclude_if, include_if: include_if, limit: limit, manufacturer: manufacturer, user_identifier_key: user_identifier_key}.compact)
|
19
|
+
def list(connect_webview_id: nil, connected_account_id: nil, connected_account_ids: nil, created_before: nil, custom_metadata_has: nil, device_ids: nil, device_type: nil, device_types: nil, exclude_if: nil, include_if: nil, limit: nil, manufacturer: nil, user_identifier_key: nil)
|
20
|
+
res = @client.post("/noise_sensors/list", {connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, connected_account_ids: connected_account_ids, created_before: created_before, custom_metadata_has: custom_metadata_has, device_ids: device_ids, device_type: device_type, device_types: device_types, exclude_if: exclude_if, include_if: include_if, limit: limit, manufacturer: manufacturer, user_identifier_key: user_identifier_key}.compact)
|
21
21
|
|
22
22
|
Seam::Resources::Device.load_from_response(res.body["devices"])
|
23
23
|
end
|
@@ -30,8 +30,8 @@ module Seam
|
|
30
30
|
Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
|
31
31
|
end
|
32
32
|
|
33
|
-
def create_climate_preset(climate_preset_key:, device_id:,
|
34
|
-
@client.post("/thermostats/create_climate_preset", {climate_preset_key: climate_preset_key, device_id: device_id,
|
33
|
+
def create_climate_preset(climate_preset_key:, device_id:, cooling_set_point_celsius: nil, cooling_set_point_fahrenheit: nil, fan_mode_setting: nil, heating_set_point_celsius: nil, heating_set_point_fahrenheit: nil, hvac_mode_setting: nil, manual_override_allowed: nil, name: nil)
|
34
|
+
@client.post("/thermostats/create_climate_preset", {climate_preset_key: climate_preset_key, device_id: device_id, cooling_set_point_celsius: cooling_set_point_celsius, cooling_set_point_fahrenheit: cooling_set_point_fahrenheit, fan_mode_setting: fan_mode_setting, heating_set_point_celsius: heating_set_point_celsius, heating_set_point_fahrenheit: heating_set_point_fahrenheit, hvac_mode_setting: hvac_mode_setting, manual_override_allowed: manual_override_allowed, name: name}.compact)
|
35
35
|
|
36
36
|
nil
|
37
37
|
end
|
@@ -64,8 +64,8 @@ module Seam
|
|
64
64
|
Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
|
65
65
|
end
|
66
66
|
|
67
|
-
def list(connect_webview_id: nil, connected_account_id: nil, connected_account_ids: nil, created_before: nil, custom_metadata_has: nil, device_ids: nil, device_types: nil, exclude_if: nil, include_if: nil, limit: nil, manufacturer: nil, user_identifier_key: nil)
|
68
|
-
res = @client.post("/thermostats/list", {connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, connected_account_ids: connected_account_ids, created_before: created_before, custom_metadata_has: custom_metadata_has, device_ids: device_ids, device_types: device_types, exclude_if: exclude_if, include_if: include_if, limit: limit, manufacturer: manufacturer, user_identifier_key: user_identifier_key}.compact)
|
67
|
+
def list(connect_webview_id: nil, connected_account_id: nil, connected_account_ids: nil, created_before: nil, custom_metadata_has: nil, device_ids: nil, device_type: nil, device_types: nil, exclude_if: nil, include_if: nil, limit: nil, manufacturer: nil, user_identifier_key: nil)
|
68
|
+
res = @client.post("/thermostats/list", {connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, connected_account_ids: connected_account_ids, created_before: created_before, custom_metadata_has: custom_metadata_has, device_ids: device_ids, device_type: device_type, device_types: device_types, exclude_if: exclude_if, include_if: include_if, limit: limit, manufacturer: manufacturer, user_identifier_key: user_identifier_key}.compact)
|
69
69
|
|
70
70
|
Seam::Resources::Device.load_from_response(res.body["devices"])
|
71
71
|
end
|
@@ -8,8 +8,8 @@ module Seam
|
|
8
8
|
@defaults = defaults
|
9
9
|
end
|
10
10
|
|
11
|
-
def create(climate_preset_key:, device_id:, ends_at:, starts_at:, max_override_period_minutes: nil, name: nil)
|
12
|
-
res = @client.post("/thermostats/schedules/create", {climate_preset_key: climate_preset_key, device_id: device_id, ends_at: ends_at, starts_at: starts_at, max_override_period_minutes: max_override_period_minutes, name: name}.compact)
|
11
|
+
def create(climate_preset_key:, device_id:, ends_at:, starts_at:, is_override_allowed: nil, max_override_period_minutes: nil, name: nil)
|
12
|
+
res = @client.post("/thermostats/schedules/create", {climate_preset_key: climate_preset_key, device_id: device_id, ends_at: ends_at, starts_at: starts_at, is_override_allowed: is_override_allowed, max_override_period_minutes: max_override_period_minutes, name: name}.compact)
|
13
13
|
|
14
14
|
Seam::Resources::ThermostatSchedule.load_from_response(res.body["thermostat_schedule"])
|
15
15
|
end
|
@@ -32,8 +32,8 @@ module Seam
|
|
32
32
|
Seam::Resources::ThermostatSchedule.load_from_response(res.body["thermostat_schedules"])
|
33
33
|
end
|
34
34
|
|
35
|
-
def update(thermostat_schedule_id:, climate_preset_key: nil, ends_at: nil, max_override_period_minutes: nil, name: nil, starts_at: nil)
|
36
|
-
@client.post("/thermostats/schedules/update", {thermostat_schedule_id: thermostat_schedule_id, climate_preset_key: climate_preset_key, ends_at: ends_at, max_override_period_minutes: max_override_period_minutes, name: name, starts_at: starts_at}.compact)
|
35
|
+
def update(thermostat_schedule_id:, climate_preset_key: nil, ends_at: nil, is_override_allowed: nil, max_override_period_minutes: nil, name: nil, starts_at: nil)
|
36
|
+
@client.post("/thermostats/schedules/update", {thermostat_schedule_id: thermostat_schedule_id, climate_preset_key: climate_preset_key, ends_at: ends_at, is_override_allowed: is_override_allowed, max_override_period_minutes: max_override_period_minutes, name: name, starts_at: starts_at}.compact)
|
37
37
|
|
38
38
|
nil
|
39
39
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Seam
|
4
4
|
module Resources
|
5
5
|
class AcsSystem < BaseResource
|
6
|
-
attr_accessor :acs_system_id, :can_add_acs_users_to_acs_access_groups, :can_automate_enrollment, :can_create_acs_access_groups, :can_remove_acs_users_from_acs_access_groups, :connected_account_ids, :default_credential_manager_acs_system_id, :external_type, :external_type_display_name, :image_alt_text, :image_url, :is_credential_manager, :name, :system_type, :system_type_display_name, :visionline_metadata, :workspace_id
|
6
|
+
attr_accessor :acs_system_id, :can_add_acs_users_to_acs_access_groups, :can_automate_enrollment, :can_create_acs_access_groups, :can_remove_acs_users_from_acs_access_groups, :connected_account_ids, :default_credential_manager_acs_system_id, :external_type, :external_type_display_name, :image_alt_text, :image_url, :is_credential_manager, :location, :name, :system_type, :system_type_display_name, :visionline_metadata, :workspace_id
|
7
7
|
|
8
8
|
date_accessor :created_at
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Seam
|
4
4
|
module Resources
|
5
5
|
class ThermostatSchedule < BaseResource
|
6
|
-
attr_accessor :climate_preset_key, :device_id, :max_override_period_minutes, :name, :thermostat_schedule_id
|
6
|
+
attr_accessor :climate_preset_key, :device_id, :max_override_period_minutes, :name, :thermostat_schedule_id, :unstable_is_override_allowed
|
7
7
|
|
8
8
|
date_accessor :created_at, :ends_at, :starts_at
|
9
9
|
|
data/lib/seam/routes/routes.rb
CHANGED
@@ -66,10 +66,6 @@ module Seam
|
|
66
66
|
@workspaces ||= Seam::Clients::Workspaces.new(client: @client, defaults: @defaults)
|
67
67
|
end
|
68
68
|
|
69
|
-
def health
|
70
|
-
@client.get("/health")
|
71
|
-
end
|
72
|
-
|
73
69
|
# @deprecated Please use {#devices.unmanaged} instead.
|
74
70
|
def unmanaged_devices
|
75
71
|
warn "[DEPRECATION] 'unmanaged_devices' is deprecated. Please use 'devices.unmanaged' instead."
|
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.1.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: 2024-11-
|
11
|
+
date: 2024-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -170,14 +170,14 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 3.
|
173
|
+
version: 3.24.0
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 3.
|
180
|
+
version: 3.24.0
|
181
181
|
description: SDK for the Seam API written in Ruby.
|
182
182
|
email: engineering@getseam.com
|
183
183
|
executables: []
|