seam 2.80.0 → 2.81.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 +10 -4
- data/lib/seam/routes/clients/access_grants_unmanaged.rb +8 -2
- data/lib/seam/routes/clients/acs_systems.rb +6 -0
- data/lib/seam/routes/clients/customers.rb +4 -4
- data/lib/seam/routes/clients/user_identities.rb +2 -2
- data/lib/seam/routes/clients/user_identities_unmanaged.rb +8 -2
- data/lib/seam/routes/resources/access_grant.rb +1 -1
- data/lib/seam/routes/resources/acs_entrance.rb +1 -1
- data/lib/seam/routes/resources/event.rb +1 -1
- data/lib/seam/routes/resources/index.rb +1 -0
- data/lib/seam/routes/resources/staff_member.rb +9 -0
- data/lib/seam/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4daf4e23e442693ceb469a4fabb262f565b4cbdafec50c5383f92aa50458da41
|
4
|
+
data.tar.gz: 9c24f5afadd7dc6747174b4cc3a04e8dd631cfde8b87874b5ee59a3c2d982f74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a0ade8c5f2cfa031c8f3e281401e83113e94dd9f6db876d053d31b8edb670c13500fe8a27356b355a00822c700ac23c52cea160d31de5fde97f95b90a555ab2
|
7
|
+
data.tar.gz: 61452582fb8f7b5557b0a2c66588649fa2f3d6882ad65db6159b6f88ae9e432c246166c8b1962960c2bb31370f437a3d039fd2d060dbe5db928fff93f9cecdc1
|
data/Gemfile.lock
CHANGED
@@ -12,8 +12,8 @@ module Seam
|
|
12
12
|
@unmanaged ||= Seam::Clients::AccessGrantsUnmanaged.new(client: @client, defaults: @defaults)
|
13
13
|
end
|
14
14
|
|
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)
|
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)
|
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, reservation_key: nil, space_ids: nil, space_keys: nil, starts_at: nil)
|
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, reservation_key: reservation_key, space_ids: space_ids, space_keys: space_keys, starts_at: starts_at}.compact)
|
17
17
|
|
18
18
|
Seam::Resources::AccessGrant.load_from_response(res.body["access_grant"])
|
19
19
|
end
|
@@ -36,12 +36,18 @@ module Seam
|
|
36
36
|
nil
|
37
37
|
end
|
38
38
|
|
39
|
-
def list(access_grant_key: nil, acs_entrance_id: nil, acs_system_id: nil, customer_key: nil, location_id: nil, space_id: nil, user_identity_id: nil)
|
40
|
-
res = @client.post("/access_grants/list", {access_grant_key: access_grant_key, acs_entrance_id: acs_entrance_id, acs_system_id: acs_system_id, customer_key: customer_key, location_id: location_id, space_id: space_id, user_identity_id: user_identity_id}.compact)
|
39
|
+
def list(access_grant_key: nil, acs_entrance_id: nil, acs_system_id: nil, customer_key: nil, location_id: nil, reservation_key: nil, space_id: nil, user_identity_id: nil)
|
40
|
+
res = @client.post("/access_grants/list", {access_grant_key: access_grant_key, acs_entrance_id: acs_entrance_id, acs_system_id: acs_system_id, customer_key: customer_key, location_id: location_id, reservation_key: reservation_key, space_id: space_id, user_identity_id: user_identity_id}.compact)
|
41
41
|
|
42
42
|
Seam::Resources::AccessGrant.load_from_response(res.body["access_grants"])
|
43
43
|
end
|
44
44
|
|
45
|
+
def request_access_methods(access_grant_id:, requested_access_methods:)
|
46
|
+
res = @client.post("/access_grants/request_access_methods", {access_grant_id: access_grant_id, requested_access_methods: requested_access_methods}.compact)
|
47
|
+
|
48
|
+
Seam::Resources::AccessGrant.load_from_response(res.body["access_grant"])
|
49
|
+
end
|
50
|
+
|
45
51
|
def update(access_grant_id:, ends_at: nil, name: nil, starts_at: nil)
|
46
52
|
@client.post("/access_grants/update", {access_grant_id: access_grant_id, ends_at: ends_at, name: name, starts_at: starts_at}.compact)
|
47
53
|
|
@@ -14,8 +14,14 @@ module Seam
|
|
14
14
|
nil
|
15
15
|
end
|
16
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)
|
17
|
+
def list(acs_entrance_id: nil, acs_system_id: nil, reservation_key: nil, user_identity_id: nil)
|
18
|
+
@client.post("/access_grants/unmanaged/list", {acs_entrance_id: acs_entrance_id, acs_system_id: acs_system_id, reservation_key: reservation_key, user_identity_id: user_identity_id}.compact)
|
19
|
+
|
20
|
+
nil
|
21
|
+
end
|
22
|
+
|
23
|
+
def update(access_grant_id:, is_managed:, access_grant_key: nil)
|
24
|
+
@client.post("/access_grants/unmanaged/update", {access_grant_id: access_grant_id, is_managed: is_managed, access_grant_key: access_grant_key}.compact)
|
19
25
|
|
20
26
|
nil
|
21
27
|
end
|
@@ -25,6 +25,12 @@ module Seam
|
|
25
25
|
|
26
26
|
Seam::Resources::AcsSystem.load_from_response(res.body["acs_systems"])
|
27
27
|
end
|
28
|
+
|
29
|
+
def report_devices(acs_system_id:, acs_encoders: nil, acs_entrances: nil)
|
30
|
+
@client.post("/acs/systems/report_devices", {acs_system_id: acs_system_id, acs_encoders: acs_encoders, acs_entrances: acs_entrances}.compact)
|
31
|
+
|
32
|
+
nil
|
33
|
+
end
|
28
34
|
end
|
29
35
|
end
|
30
36
|
end
|
@@ -14,14 +14,14 @@ module Seam
|
|
14
14
|
Seam::Resources::MagicLink.load_from_response(res.body["magic_link"])
|
15
15
|
end
|
16
16
|
|
17
|
-
def delete_data(access_grant_keys: nil, booking_keys: nil, building_keys: nil, common_area_keys: nil, customer_keys: nil, facility_keys: nil, guest_keys: nil, listing_keys: nil, property_keys: nil, property_listing_keys: nil, reservation_keys: nil, resident_keys: nil, room_keys: nil, space_keys: nil, tenant_keys: nil, unit_keys: nil, user_identity_keys: nil, user_keys: nil)
|
18
|
-
@client.post("/customers/delete_data", {access_grant_keys: access_grant_keys, booking_keys: booking_keys, building_keys: building_keys, common_area_keys: common_area_keys, customer_keys: customer_keys, facility_keys: facility_keys, guest_keys: guest_keys, listing_keys: listing_keys, property_keys: property_keys, property_listing_keys: property_listing_keys, reservation_keys: reservation_keys, resident_keys: resident_keys, room_keys: room_keys, space_keys: space_keys, tenant_keys: tenant_keys, unit_keys: unit_keys, user_identity_keys: user_identity_keys, user_keys: user_keys}.compact)
|
17
|
+
def delete_data(access_grant_keys: nil, booking_keys: nil, building_keys: nil, common_area_keys: nil, customer_keys: nil, facility_keys: nil, guest_keys: nil, listing_keys: nil, property_keys: nil, property_listing_keys: nil, reservation_keys: nil, resident_keys: nil, room_keys: nil, space_keys: nil, staff_member_keys: nil, tenant_keys: nil, unit_keys: nil, user_identity_keys: nil, user_keys: nil)
|
18
|
+
@client.post("/customers/delete_data", {access_grant_keys: access_grant_keys, booking_keys: booking_keys, building_keys: building_keys, common_area_keys: common_area_keys, customer_keys: customer_keys, facility_keys: facility_keys, guest_keys: guest_keys, listing_keys: listing_keys, property_keys: property_keys, property_listing_keys: property_listing_keys, reservation_keys: reservation_keys, resident_keys: resident_keys, room_keys: room_keys, space_keys: space_keys, staff_member_keys: staff_member_keys, tenant_keys: tenant_keys, unit_keys: unit_keys, user_identity_keys: user_identity_keys, user_keys: user_keys}.compact)
|
19
19
|
|
20
20
|
nil
|
21
21
|
end
|
22
22
|
|
23
|
-
def push_data(customer_key:, access_grants: nil, bookings: nil, buildings: nil, common_areas: nil, facilities: nil, guests: nil, listings: nil, properties: nil, property_listings: nil, reservations: nil, residents: nil, rooms: nil, sites: nil, spaces: nil, tenants: nil, units: nil, user_identities: nil, users: nil)
|
24
|
-
@client.post("/customers/push_data", {customer_key: customer_key, access_grants: access_grants, bookings: bookings, buildings: buildings, common_areas: common_areas, facilities: facilities, guests: guests, listings: listings, properties: properties, property_listings: property_listings, reservations: reservations, residents: residents, rooms: rooms, sites: sites, spaces: spaces, tenants: tenants, units: units, user_identities: user_identities, users: users}.compact)
|
23
|
+
def push_data(customer_key:, access_grants: nil, bookings: nil, buildings: nil, common_areas: nil, facilities: nil, guests: nil, listings: nil, properties: nil, property_listings: nil, reservations: nil, residents: nil, rooms: nil, sites: nil, spaces: nil, staff_members: nil, tenants: nil, units: nil, user_identities: nil, users: nil)
|
24
|
+
@client.post("/customers/push_data", {customer_key: customer_key, access_grants: access_grants, bookings: bookings, buildings: buildings, common_areas: common_areas, facilities: facilities, guests: guests, listings: listings, properties: properties, property_listings: property_listings, reservations: reservations, residents: residents, rooms: rooms, sites: sites, spaces: spaces, staff_members: staff_members, tenants: tenants, units: units, user_identities: user_identities, users: users}.compact)
|
25
25
|
|
26
26
|
nil
|
27
27
|
end
|
@@ -48,8 +48,8 @@ module Seam
|
|
48
48
|
nil
|
49
49
|
end
|
50
50
|
|
51
|
-
def list(credential_manager_acs_system_id: nil, search: nil)
|
52
|
-
res = @client.post("/user_identities/list", {credential_manager_acs_system_id: credential_manager_acs_system_id, search: search}.compact)
|
51
|
+
def list(created_before: nil, credential_manager_acs_system_id: nil, limit: nil, page_cursor: nil, search: nil)
|
52
|
+
res = @client.post("/user_identities/list", {created_before: created_before, credential_manager_acs_system_id: credential_manager_acs_system_id, limit: limit, page_cursor: page_cursor, search: search}.compact)
|
53
53
|
|
54
54
|
Seam::Resources::UserIdentity.load_from_response(res.body["user_identities"])
|
55
55
|
end
|
@@ -14,8 +14,14 @@ module Seam
|
|
14
14
|
nil
|
15
15
|
end
|
16
16
|
|
17
|
-
def list(search: nil)
|
18
|
-
@client.post("/user_identities/unmanaged/list", {search: search}.compact)
|
17
|
+
def list(created_before: nil, limit: nil, page_cursor: nil, search: nil)
|
18
|
+
@client.post("/user_identities/unmanaged/list", {created_before: created_before, limit: limit, page_cursor: page_cursor, search: search}.compact)
|
19
|
+
|
20
|
+
nil
|
21
|
+
end
|
22
|
+
|
23
|
+
def update(is_managed:, user_identity_id:, user_identity_key: nil)
|
24
|
+
@client.post("/user_identities/unmanaged/update", {is_managed: is_managed, user_identity_id: user_identity_id, user_identity_key: user_identity_key}.compact)
|
19
25
|
|
20
26
|
nil
|
21
27
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Seam
|
4
4
|
module Resources
|
5
5
|
class AccessGrant < BaseResource
|
6
|
-
attr_accessor :access_grant_id, :access_grant_key, :access_method_ids, :client_session_token, :customization_profile_id, :display_name, :instant_key_url, :location_ids, :name, :requested_access_methods, :space_ids, :user_identity_id, :workspace_id
|
6
|
+
attr_accessor :access_grant_id, :access_grant_key, :access_method_ids, :client_session_token, :customization_profile_id, :display_name, :instant_key_url, :location_ids, :name, :requested_access_methods, :reservation_key, :space_ids, :user_identity_id, :workspace_id
|
7
7
|
|
8
8
|
date_accessor :created_at, :ends_at, :starts_at
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Seam
|
4
4
|
module Resources
|
5
5
|
class AcsEntrance < BaseResource
|
6
|
-
attr_accessor :acs_entrance_id, :acs_system_id, :assa_abloy_vostio_metadata, :can_unlock_with_card, :can_unlock_with_code, :can_unlock_with_mobile_key, :connected_account_id, :display_name, :dormakaba_ambiance_metadata, :dormakaba_community_metadata, :hotek_metadata, :latch_metadata, :salto_ks_metadata, :salto_space_metadata, :space_ids, :visionline_metadata
|
6
|
+
attr_accessor :acs_entrance_id, :acs_system_id, :assa_abloy_vostio_metadata, :can_belong_to_reservation, :can_unlock_with_card, :can_unlock_with_code, :can_unlock_with_mobile_key, :connected_account_id, :display_name, :dormakaba_ambiance_metadata, :dormakaba_community_metadata, :hotek_metadata, :latch_metadata, :salto_ks_metadata, :salto_space_metadata, :space_ids, :visionline_metadata
|
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 SeamEvent < BaseResource
|
6
|
-
attr_accessor :access_code_id, :connected_account_custom_metadata, :connected_account_id, :device_custom_metadata, :device_id, :event_id, :event_type, :workspace_id, :code, :backup_access_code_id, :access_grant_id, :acs_entrance_id, :access_grant_key, :ends_at, :starts_at, :access_grant_ids, :access_grant_keys, :access_method_id, :is_backup_code, :acs_system_id, :acs_credential_id, :acs_user_id, :acs_encoder_id, :acs_access_group_id, :client_session_id, :connect_webview_id, :customer_key, :action_attempt_id, :action_type, :status, :error_code, :battery_level, :battery_status, :minut_metadata, :noise_level_decibels, :noise_level_nrs, :noise_threshold_id, :noise_threshold_name, :noiseaware_metadata, :method, :climate_preset_key, :is_fallback_climate_preset, :thermostat_schedule_id, :cooling_set_point_celsius, :cooling_set_point_fahrenheit, :fan_mode_setting, :heating_set_point_celsius, :heating_set_point_fahrenheit, :hvac_mode_setting, :lower_limit_celsius, :lower_limit_fahrenheit, :temperature_celsius, :temperature_fahrenheit, :upper_limit_celsius, :upper_limit_fahrenheit, :desired_temperature_celsius, :desired_temperature_fahrenheit, :device_name, :enrollment_automation_id
|
6
|
+
attr_accessor :access_code_id, :connected_account_custom_metadata, :connected_account_id, :device_custom_metadata, :device_id, :event_id, :event_type, :workspace_id, :code, :backup_access_code_id, :access_grant_id, :acs_entrance_id, :access_grant_key, :ends_at, :starts_at, :access_grant_ids, :access_grant_keys, :access_method_id, :is_backup_code, :acs_system_id, :acs_credential_id, :acs_user_id, :acs_encoder_id, :acs_access_group_id, :client_session_id, :connect_webview_id, :customer_key, :action_attempt_id, :action_type, :status, :error_code, :battery_level, :battery_status, :minut_metadata, :noise_level_decibels, :noise_level_nrs, :noise_threshold_id, :noise_threshold_name, :noiseaware_metadata, :method, :climate_preset_key, :is_fallback_climate_preset, :thermostat_schedule_id, :cooling_set_point_celsius, :cooling_set_point_fahrenheit, :fan_mode_setting, :heating_set_point_celsius, :heating_set_point_fahrenheit, :hvac_mode_setting, :lower_limit_celsius, :lower_limit_fahrenheit, :temperature_celsius, :temperature_fahrenheit, :upper_limit_celsius, :upper_limit_fahrenheit, :desired_temperature_celsius, :desired_temperature_fahrenheit, :device_name, :enrollment_automation_id, :acs_entrance_ids, :device_ids, :space_id, :space_key
|
7
7
|
|
8
8
|
date_accessor :created_at, :occurred_at
|
9
9
|
end
|
@@ -35,6 +35,7 @@ require_relative "phone"
|
|
35
35
|
require_relative "phone_registration"
|
36
36
|
require_relative "phone_session"
|
37
37
|
require_relative "space"
|
38
|
+
require_relative "staff_member"
|
38
39
|
require_relative "thermostat_daily_program"
|
39
40
|
require_relative "thermostat_schedule"
|
40
41
|
require_relative "unmanaged_access_code"
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Seam
|
4
|
+
module Resources
|
5
|
+
class StaffMember < BaseResource
|
6
|
+
attr_accessor :building_keys, :common_area_keys, :email_address, :facility_keys, :listing_keys, :name, :phone_number, :property_keys, :property_listing_keys, :room_keys, :site_keys, :space_keys, :staff_member_key, :unit_keys
|
7
|
+
end
|
8
|
+
end
|
9
|
+
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.81.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-10-
|
11
|
+
date: 2025-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -280,6 +280,7 @@ files:
|
|
280
280
|
- lib/seam/routes/resources/resource_warning.rb
|
281
281
|
- lib/seam/routes/resources/resource_warnings_support.rb
|
282
282
|
- lib/seam/routes/resources/space.rb
|
283
|
+
- lib/seam/routes/resources/staff_member.rb
|
283
284
|
- lib/seam/routes/resources/thermostat_daily_program.rb
|
284
285
|
- lib/seam/routes/resources/thermostat_schedule.rb
|
285
286
|
- lib/seam/routes/resources/unmanaged_access_code.rb
|