seam 2.28.0 → 2.30.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 +6 -6
- data/lib/seam/routes/clients/access_methods.rb +4 -4
- data/lib/seam/routes/clients/client_sessions.rb +6 -6
- data/lib/seam/routes/resources/access_grant.rb +11 -0
- data/lib/seam/routes/resources/access_method.rb +11 -0
- data/lib/seam/routes/resources/client_session.rb +1 -1
- data/lib/seam/routes/resources/index.rb +2 -0
- data/lib/seam/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2117fa8c739e7cbbe14ac0ea32329fdf114bc6c467207e224825923789309895
|
4
|
+
data.tar.gz: ec927442a13989555c0f788f42bff68ec8081e3ba5e33657310dd1ed7bd7728a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97b972f6c70b2fe0fcb9f26ed1afc774ab7df9fc096b7f87efefb44f5bf8aef266d940a13e34761551a04304784de7ac9e9a842521760add5df4eca4095457ac
|
7
|
+
data.tar.gz: fcc68da597c46ab6604895071656c275215190210377e2387e3176027c7202f233e67b0b363e25d5d2dc32d7654fbd37b10655741ba7f6ea703fdd8817daa246
|
data/Gemfile.lock
CHANGED
@@ -9,9 +9,9 @@ module Seam
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def create(requested_access_methods:, user_identity_id: nil, user_identity: nil, acs_entrance_ids: nil, device_ids: nil, ends_at: nil, location: nil, location_ids: nil, space_ids: nil, starts_at: nil)
|
12
|
-
@client.post("/access_grants/create", {requested_access_methods: requested_access_methods, user_identity_id: user_identity_id, user_identity: user_identity, acs_entrance_ids: acs_entrance_ids, device_ids: device_ids, ends_at: ends_at, location: location, location_ids: location_ids, space_ids: space_ids, starts_at: starts_at}.compact)
|
12
|
+
res = @client.post("/access_grants/create", {requested_access_methods: requested_access_methods, user_identity_id: user_identity_id, user_identity: user_identity, acs_entrance_ids: acs_entrance_ids, device_ids: device_ids, ends_at: ends_at, location: location, location_ids: location_ids, space_ids: space_ids, starts_at: starts_at}.compact)
|
13
13
|
|
14
|
-
|
14
|
+
Seam::Resources::AccessGrant.load_from_response(res.body["access_grant"])
|
15
15
|
end
|
16
16
|
|
17
17
|
def delete(access_grant_id:)
|
@@ -21,15 +21,15 @@ module Seam
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def get(access_grant_id:)
|
24
|
-
@client.post("/access_grants/get", {access_grant_id: access_grant_id}.compact)
|
24
|
+
res = @client.post("/access_grants/get", {access_grant_id: access_grant_id}.compact)
|
25
25
|
|
26
|
-
|
26
|
+
Seam::Resources::AccessGrant.load_from_response(res.body["access_grant"])
|
27
27
|
end
|
28
28
|
|
29
29
|
def list(acs_entrance_id: nil, acs_system_id: nil, location_id: nil, space_id: nil, user_identity_id: nil)
|
30
|
-
@client.post("/access_grants/list", {acs_entrance_id: acs_entrance_id, acs_system_id: acs_system_id, location_id: location_id, space_id: space_id, user_identity_id: user_identity_id}.compact)
|
30
|
+
res = @client.post("/access_grants/list", {acs_entrance_id: acs_entrance_id, acs_system_id: acs_system_id, location_id: location_id, space_id: space_id, user_identity_id: user_identity_id}.compact)
|
31
31
|
|
32
|
-
|
32
|
+
Seam::Resources::AccessGrant.load_from_response(res.body["access_grants"])
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -15,15 +15,15 @@ module Seam
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def get(access_method_id:)
|
18
|
-
@client.post("/access_methods/get", {access_method_id: access_method_id}.compact)
|
18
|
+
res = @client.post("/access_methods/get", {access_method_id: access_method_id}.compact)
|
19
19
|
|
20
|
-
|
20
|
+
Seam::Resources::AccessMethod.load_from_response(res.body["access_method"])
|
21
21
|
end
|
22
22
|
|
23
23
|
def list(access_grant_id:)
|
24
|
-
@client.post("/access_methods/list", {access_grant_id: access_grant_id}.compact)
|
24
|
+
res = @client.post("/access_methods/list", {access_grant_id: access_grant_id}.compact)
|
25
25
|
|
26
|
-
|
26
|
+
Seam::Resources::AccessMethod.load_from_response(res.body["access_methods"])
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
@@ -8,8 +8,8 @@ module Seam
|
|
8
8
|
@defaults = defaults
|
9
9
|
end
|
10
10
|
|
11
|
-
def create(connect_webview_ids: nil, connected_account_ids: nil, customer_id: nil, customer_key: nil, expires_at: nil, user_identifier_key: nil, user_identity_ids: nil)
|
12
|
-
res = @client.post("/client_sessions/create", {connect_webview_ids: connect_webview_ids, connected_account_ids: connected_account_ids, customer_id: customer_id, customer_key: customer_key, expires_at: expires_at, user_identifier_key: user_identifier_key, user_identity_ids: user_identity_ids}.compact)
|
11
|
+
def create(connect_webview_ids: nil, connected_account_ids: nil, customer_id: nil, customer_key: nil, expires_at: nil, user_identifier_key: nil, user_identity_id: nil, user_identity_ids: nil)
|
12
|
+
res = @client.post("/client_sessions/create", {connect_webview_ids: connect_webview_ids, connected_account_ids: connected_account_ids, customer_id: customer_id, customer_key: customer_key, expires_at: expires_at, user_identifier_key: user_identifier_key, user_identity_id: user_identity_id, user_identity_ids: user_identity_ids}.compact)
|
13
13
|
|
14
14
|
Seam::Resources::ClientSession.load_from_response(res.body["client_session"])
|
15
15
|
end
|
@@ -26,14 +26,14 @@ module Seam
|
|
26
26
|
Seam::Resources::ClientSession.load_from_response(res.body["client_session"])
|
27
27
|
end
|
28
28
|
|
29
|
-
def get_or_create(connect_webview_ids: nil, connected_account_ids: nil, expires_at: nil, user_identifier_key: nil, user_identity_ids: nil)
|
30
|
-
res = @client.post("/client_sessions/get_or_create", {connect_webview_ids: connect_webview_ids, connected_account_ids: connected_account_ids, expires_at: expires_at, user_identifier_key: user_identifier_key, user_identity_ids: user_identity_ids}.compact)
|
29
|
+
def get_or_create(connect_webview_ids: nil, connected_account_ids: nil, expires_at: nil, user_identifier_key: nil, user_identity_id: nil, user_identity_ids: nil)
|
30
|
+
res = @client.post("/client_sessions/get_or_create", {connect_webview_ids: connect_webview_ids, connected_account_ids: connected_account_ids, expires_at: expires_at, user_identifier_key: user_identifier_key, user_identity_id: user_identity_id, user_identity_ids: user_identity_ids}.compact)
|
31
31
|
|
32
32
|
Seam::Resources::ClientSession.load_from_response(res.body["client_session"])
|
33
33
|
end
|
34
34
|
|
35
|
-
def grant_access(client_session_id: nil, connect_webview_ids: nil, connected_account_ids: nil, user_identifier_key: nil, user_identity_ids: nil)
|
36
|
-
@client.post("/client_sessions/grant_access", {client_session_id: client_session_id, connect_webview_ids: connect_webview_ids, connected_account_ids: connected_account_ids, user_identifier_key: user_identifier_key, user_identity_ids: user_identity_ids}.compact)
|
35
|
+
def grant_access(client_session_id: nil, connect_webview_ids: nil, connected_account_ids: nil, user_identifier_key: nil, user_identity_id: nil, user_identity_ids: nil)
|
36
|
+
@client.post("/client_sessions/grant_access", {client_session_id: client_session_id, connect_webview_ids: connect_webview_ids, connected_account_ids: connected_account_ids, user_identifier_key: user_identifier_key, user_identity_id: user_identity_id, user_identity_ids: user_identity_ids}.compact)
|
37
37
|
|
38
38
|
nil
|
39
39
|
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Seam
|
4
|
+
module Resources
|
5
|
+
class AccessGrant < BaseResource
|
6
|
+
attr_accessor :access_grant_id, :access_method_ids, :display_name, :location_ids, :requested_access_methods, :space_ids, :user_identity_id, :workspace_id
|
7
|
+
|
8
|
+
date_accessor :created_at
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Seam
|
4
|
+
module Resources
|
5
|
+
class AccessMethod < BaseResource
|
6
|
+
attr_accessor :access_method_id, :display_name, :instant_key_url, :is_card_encoding_required, :mode, :workspace_id
|
7
|
+
|
8
|
+
date_accessor :created_at, :issued_at
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Seam
|
4
4
|
module Resources
|
5
5
|
class ClientSession < BaseResource
|
6
|
-
attr_accessor :client_session_id, :connect_webview_ids, :connected_account_ids, :customer_id, :device_count, :token, :user_identifier_key, :user_identity_ids, :workspace_id
|
6
|
+
attr_accessor :client_session_id, :connect_webview_ids, :connected_account_ids, :customer_id, :device_count, :token, :user_identifier_key, :user_identity_id, :user_identity_ids, :workspace_id
|
7
7
|
|
8
8
|
date_accessor :created_at, :expires_at
|
9
9
|
end
|
@@ -6,6 +6,8 @@ require_relative "resource_warning"
|
|
6
6
|
require_relative "resource_errors_support"
|
7
7
|
require_relative "resource_warnings_support"
|
8
8
|
require_relative "access_code"
|
9
|
+
require_relative "access_grant"
|
10
|
+
require_relative "access_method"
|
9
11
|
require_relative "acs_access_group"
|
10
12
|
require_relative "acs_credential"
|
11
13
|
require_relative "acs_credential_pool"
|
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.30.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-
|
11
|
+
date: 2025-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -241,6 +241,8 @@ files:
|
|
241
241
|
- lib/seam/routes/clients/webhooks.rb
|
242
242
|
- lib/seam/routes/clients/workspaces.rb
|
243
243
|
- lib/seam/routes/resources/access_code.rb
|
244
|
+
- lib/seam/routes/resources/access_grant.rb
|
245
|
+
- lib/seam/routes/resources/access_method.rb
|
244
246
|
- lib/seam/routes/resources/acs_access_group.rb
|
245
247
|
- lib/seam/routes/resources/acs_credential.rb
|
246
248
|
- lib/seam/routes/resources/acs_credential_pool.rb
|