seam 2.51.0 → 2.53.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/index.rb +0 -2
- data/lib/seam/routes/clients/instant_keys.rb +12 -0
- data/lib/seam/routes/clients/thermostats.rb +0 -12
- data/lib/seam/routes/clients/user_identities.rb +0 -4
- data/lib/seam/version.rb +1 -1
- metadata +2 -4
- data/lib/seam/routes/clients/thermostats_daily_programs.rb +0 -34
- data/lib/seam/routes/clients/user_identities_enrollment_automations.rb +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 771aac56cdc619c82cae84fb1353eae2073e217089a2e9449e06e99db6a47e3e
|
4
|
+
data.tar.gz: 172a524a28cee9febcf3a4e3b36fa63d89c8397501e0cac635105d2e6b66569c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 391d57c58c711bd5fbabd722ec01c89376553cec0797020586f18e55ef5e5dfbaf26581c10082f5e73c9457fb506b4e2f198f98d8ab5db5f13e43fc2b64446a0
|
7
|
+
data.tar.gz: 86e2adf97bc7023418f157275f12441eab83e039f47f818b7e3d455eb719b08be442eb942a1a2f580ab2ff464a8d39a850304278a8eb2db79aee7994b0a303a7
|
data/Gemfile.lock
CHANGED
@@ -32,10 +32,8 @@ require_relative "phones"
|
|
32
32
|
require_relative "phones_simulate"
|
33
33
|
require_relative "spaces"
|
34
34
|
require_relative "thermostats"
|
35
|
-
require_relative "thermostats_daily_programs"
|
36
35
|
require_relative "thermostats_schedules"
|
37
36
|
require_relative "thermostats_simulate"
|
38
37
|
require_relative "user_identities"
|
39
|
-
require_relative "user_identities_enrollment_automations"
|
40
38
|
require_relative "webhooks"
|
41
39
|
require_relative "workspaces"
|
@@ -8,6 +8,18 @@ module Seam
|
|
8
8
|
@defaults = defaults
|
9
9
|
end
|
10
10
|
|
11
|
+
def delete(instant_key_id:)
|
12
|
+
@client.post("/instant_keys/delete", {instant_key_id: instant_key_id}.compact)
|
13
|
+
|
14
|
+
nil
|
15
|
+
end
|
16
|
+
|
17
|
+
def get(instant_key_id:)
|
18
|
+
res = @client.post("/instant_keys/get", {instant_key_id: instant_key_id}.compact)
|
19
|
+
|
20
|
+
Seam::Resources::InstantKey.load_from_response(res.body["instant_key"])
|
21
|
+
end
|
22
|
+
|
11
23
|
def list(user_identity_id: nil)
|
12
24
|
res = @client.post("/instant_keys/list", {user_identity_id: user_identity_id}.compact)
|
13
25
|
|
@@ -10,10 +10,6 @@ module Seam
|
|
10
10
|
@defaults = defaults
|
11
11
|
end
|
12
12
|
|
13
|
-
def daily_programs
|
14
|
-
@daily_programs ||= Seam::Clients::ThermostatsDailyPrograms.new(client: @client, defaults: @defaults)
|
15
|
-
end
|
16
|
-
|
17
13
|
def schedules
|
18
14
|
@schedules ||= Seam::Clients::ThermostatsSchedules.new(client: @client, defaults: @defaults)
|
19
15
|
end
|
@@ -113,14 +109,6 @@ module Seam
|
|
113
109
|
|
114
110
|
nil
|
115
111
|
end
|
116
|
-
|
117
|
-
def update_weekly_program(device_id:, friday_program_id: nil, monday_program_id: nil, saturday_program_id: nil, sunday_program_id: nil, thursday_program_id: nil, tuesday_program_id: nil, wednesday_program_id: nil, wait_for_action_attempt: nil)
|
118
|
-
res = @client.post("/thermostats/update_weekly_program", {device_id: device_id, friday_program_id: friday_program_id, monday_program_id: monday_program_id, saturday_program_id: saturday_program_id, sunday_program_id: sunday_program_id, thursday_program_id: thursday_program_id, tuesday_program_id: tuesday_program_id, wednesday_program_id: wednesday_program_id}.compact)
|
119
|
-
|
120
|
-
wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
|
121
|
-
|
122
|
-
Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
|
123
|
-
end
|
124
112
|
end
|
125
113
|
end
|
126
114
|
end
|
@@ -8,10 +8,6 @@ module Seam
|
|
8
8
|
@defaults = defaults
|
9
9
|
end
|
10
10
|
|
11
|
-
def enrollment_automations
|
12
|
-
@enrollment_automations ||= Seam::Clients::UserIdentitiesEnrollmentAutomations.new(client: @client, defaults: @defaults)
|
13
|
-
end
|
14
|
-
|
15
11
|
def add_acs_user(acs_user_id:, user_identity_id:)
|
16
12
|
@client.post("/user_identities/add_acs_user", {acs_user_id: acs_user_id, user_identity_id: user_identity_id}.compact)
|
17
13
|
|
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.53.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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -236,11 +236,9 @@ files:
|
|
236
236
|
- lib/seam/routes/clients/phones_simulate.rb
|
237
237
|
- lib/seam/routes/clients/spaces.rb
|
238
238
|
- lib/seam/routes/clients/thermostats.rb
|
239
|
-
- lib/seam/routes/clients/thermostats_daily_programs.rb
|
240
239
|
- lib/seam/routes/clients/thermostats_schedules.rb
|
241
240
|
- lib/seam/routes/clients/thermostats_simulate.rb
|
242
241
|
- lib/seam/routes/clients/user_identities.rb
|
243
|
-
- lib/seam/routes/clients/user_identities_enrollment_automations.rb
|
244
242
|
- lib/seam/routes/clients/webhooks.rb
|
245
243
|
- lib/seam/routes/clients/workspaces.rb
|
246
244
|
- lib/seam/routes/resources/access_code.rb
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "seam/helpers/action_attempt"
|
4
|
-
|
5
|
-
module Seam
|
6
|
-
module Clients
|
7
|
-
class ThermostatsDailyPrograms
|
8
|
-
def initialize(client:, defaults:)
|
9
|
-
@client = client
|
10
|
-
@defaults = defaults
|
11
|
-
end
|
12
|
-
|
13
|
-
def create(device_id:, name:, periods:)
|
14
|
-
res = @client.post("/thermostats/daily_programs/create", {device_id: device_id, name: name, periods: periods}.compact)
|
15
|
-
|
16
|
-
Seam::Resources::ThermostatDailyProgram.load_from_response(res.body["thermostat_daily_program"])
|
17
|
-
end
|
18
|
-
|
19
|
-
def delete(thermostat_daily_program_id:)
|
20
|
-
@client.post("/thermostats/daily_programs/delete", {thermostat_daily_program_id: thermostat_daily_program_id}.compact)
|
21
|
-
|
22
|
-
nil
|
23
|
-
end
|
24
|
-
|
25
|
-
def update(name:, periods:, thermostat_daily_program_id:, wait_for_action_attempt: nil)
|
26
|
-
res = @client.post("/thermostats/daily_programs/update", {name: name, periods: periods, thermostat_daily_program_id: thermostat_daily_program_id}.compact)
|
27
|
-
|
28
|
-
wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
|
29
|
-
|
30
|
-
Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Seam
|
4
|
-
module Clients
|
5
|
-
class UserIdentitiesEnrollmentAutomations
|
6
|
-
def initialize(client:, defaults:)
|
7
|
-
@client = client
|
8
|
-
@defaults = defaults
|
9
|
-
end
|
10
|
-
|
11
|
-
def delete(enrollment_automation_id:)
|
12
|
-
@client.post("/user_identities/enrollment_automations/delete", {enrollment_automation_id: enrollment_automation_id}.compact)
|
13
|
-
|
14
|
-
nil
|
15
|
-
end
|
16
|
-
|
17
|
-
def get(enrollment_automation_id:)
|
18
|
-
res = @client.post("/user_identities/enrollment_automations/get", {enrollment_automation_id: enrollment_automation_id}.compact)
|
19
|
-
|
20
|
-
Seam::Resources::EnrollmentAutomation.load_from_response(res.body["enrollment_automation"])
|
21
|
-
end
|
22
|
-
|
23
|
-
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)
|
24
|
-
res = @client.post("/user_identities/enrollment_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)
|
25
|
-
|
26
|
-
Seam::Resources::EnrollmentAutomation.load_from_response(res.body["enrollment_automation"])
|
27
|
-
end
|
28
|
-
|
29
|
-
def list(user_identity_id:)
|
30
|
-
res = @client.post("/user_identities/enrollment_automations/list", {user_identity_id: user_identity_id}.compact)
|
31
|
-
|
32
|
-
Seam::Resources::EnrollmentAutomation.load_from_response(res.body["enrollment_automations"])
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|