seam 2.33.0 → 2.35.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: 8ef9659b6acfaa2b89fb4c0bf5dd1cbc6daf7a9f527b4af3e9bc36175e8d0971
4
- data.tar.gz: f54c1cc642873c4d6a0de9a0e30b9fb097b2896400f87ea60657eca29c737a72
3
+ metadata.gz: 7caf82d5f217ac804e727ac5d7249b1b9663261fcce93f8b07be47d576a7771c
4
+ data.tar.gz: 22bcafc52de15e5ab28d90f1dba51c1fe2942e9435b52f812ac1235f28966cb9
5
5
  SHA512:
6
- metadata.gz: 1acad9c0e7379f050b83a651dd9278ca515baf7e1e5db8e6ec721a8cfd4b5365a64a09f3ed6e1db7f54a99d2ec990ad2e4d69262784cf32aec48603cd4cf7f75
7
- data.tar.gz: 21cbb164873aa5bc4f02859ac04c8991bdf19bbdabb08d9869fc7a7828a011b64ef7be0ccd576ca6b815ad1aa60aaa029299ceee4ed3b43a29dd499fe2b27203
6
+ metadata.gz: cca0de0839c10ee7a72025a7679b6a589a3d4acbaea5a9c8eb24e3136c9f63428cb943523cf1ab21c54fae2ec4f24bb1c9dbd88efe06695678dd18ded4852341
7
+ data.tar.gz: 4f9ed09f69cdc1741ece01da863ec27aa11403666168d88d1ddaef08aed0b2223d2183fa0145d756c30bdd5308e9c472301c1b8779beaea2dab6513a4e15faf7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seam (2.33.0)
4
+ seam (2.35.0)
5
5
  faraday (~> 2.7)
6
6
  faraday-retry (~> 2.2)
7
7
  svix (~> 1.30)
@@ -31,6 +31,12 @@ module Seam
31
31
 
32
32
  Seam::Resources::AccessGrant.load_from_response(res.body["access_grants"])
33
33
  end
34
+
35
+ def update(access_grant_id:, ends_at: nil, starts_at: nil)
36
+ @client.post("/access_grants/update", {access_grant_id: access_grant_id, ends_at: ends_at, starts_at: starts_at}.compact)
37
+
38
+ nil
39
+ end
34
40
  end
35
41
  end
36
42
  end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Seam
4
+ module Clients
5
+ class Customers
6
+ def initialize(client:, defaults:)
7
+ @client = client
8
+ @defaults = defaults
9
+ end
10
+
11
+ def create_portal(features: nil, customer_data: nil)
12
+ res = @client.post("/customers/create_portal", {features: features, customer_data: customer_data}.compact)
13
+
14
+ Seam::Resources::MagicLink.load_from_response(res.body["magic_link"])
15
+ end
16
+
17
+ def push_data(customer_key:, access_grants: nil, bookings: nil, buildings: nil, common_areas: nil, facilities: nil, guests: nil, listings: nil, properties: nil, reservations: nil, residents: nil, rooms: nil, spaces: nil, tenants: nil, units: nil, user_identities: nil, users: nil)
18
+ @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, reservations: reservations, residents: residents, rooms: rooms, spaces: spaces, tenants: tenants, units: units, user_identities: user_identities, users: users}.compact)
19
+
20
+ nil
21
+ end
22
+ end
23
+ end
24
+ end
@@ -17,6 +17,7 @@ require_relative "action_attempts"
17
17
  require_relative "client_sessions"
18
18
  require_relative "connect_webviews"
19
19
  require_relative "connected_accounts"
20
+ require_relative "customers"
20
21
  require_relative "devices"
21
22
  require_relative "devices_simulate"
22
23
  require_relative "devices_unmanaged"
@@ -5,7 +5,7 @@ module Seam
5
5
  class AccessGrant < BaseResource
6
6
  attr_accessor :access_grant_id, :access_method_ids, :display_name, :location_ids, :requested_access_methods, :space_ids, :user_identity_id, :workspace_id
7
7
 
8
- date_accessor :created_at
8
+ date_accessor :created_at, :ends_at, :starts_at
9
9
  end
10
10
  end
11
11
  end
@@ -31,7 +31,6 @@ require_relative "location"
31
31
  require_relative "magic_link"
32
32
  require_relative "noise_threshold"
33
33
  require_relative "pagination"
34
- require_relative "partner_resource"
35
34
  require_relative "phone"
36
35
  require_relative "phone_registration"
37
36
  require_relative "phone_session"
@@ -34,6 +34,10 @@ module Seam
34
34
  @connected_accounts ||= Seam::Clients::ConnectedAccounts.new(client: @client, defaults: @defaults)
35
35
  end
36
36
 
37
+ def customers
38
+ @customers ||= Seam::Clients::Customers.new(client: @client, defaults: @defaults)
39
+ end
40
+
37
41
  def devices
38
42
  @devices ||= Seam::Clients::Devices.new(client: @client, defaults: @defaults)
39
43
  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.33.0"
4
+ VERSION = "2.35.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.33.0
4
+ version: 2.35.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-06-18 00:00:00.000000000 Z
11
+ date: 2025-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -220,6 +220,7 @@ files:
220
220
  - lib/seam/routes/clients/client_sessions.rb
221
221
  - lib/seam/routes/clients/connect_webviews.rb
222
222
  - lib/seam/routes/clients/connected_accounts.rb
223
+ - lib/seam/routes/clients/customers.rb
223
224
  - lib/seam/routes/clients/devices.rb
224
225
  - lib/seam/routes/clients/devices_simulate.rb
225
226
  - lib/seam/routes/clients/devices_unmanaged.rb
@@ -267,7 +268,6 @@ files:
267
268
  - lib/seam/routes/resources/magic_link.rb
268
269
  - lib/seam/routes/resources/noise_threshold.rb
269
270
  - lib/seam/routes/resources/pagination.rb
270
- - lib/seam/routes/resources/partner_resource.rb
271
271
  - lib/seam/routes/resources/phone.rb
272
272
  - lib/seam/routes/resources/phone_registration.rb
273
273
  - lib/seam/routes/resources/phone_session.rb
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Seam
4
- module Resources
5
- class PartnerResource < BaseResource
6
- attr_accessor :custom_metadata, :customer_key, :description, :email_address, :ends_at, :location_keys, :name, :partner_resource_key, :partner_resource_type, :phone_number, :starts_at, :user_identity_key
7
- end
8
- end
9
- end