You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: seam/resources/access_code.py
+1-24Lines changed: 1 addition & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -16,76 +16,53 @@ class AccessCode:
16
16
For granting a person access to a space, `Access Grants <https://docs.seam.co/use-cases/granting-access>`_ are the default and recommended approach and work across both standalone smart locks and access systems. Use the lower-level Access Codes API directly only when you specifically need to manage individual PIN codes.
17
17
18
18
:ivar access_code_id: Unique identifier for the access code.
19
-
:vartype access_code_id: str
20
19
21
20
:ivar code: Code used for access. Typically, a numeric or alphanumeric string.
22
-
:vartype code: str
23
21
24
22
:ivar common_code_key: Unique identifier for a group of access codes that share the same code.
25
-
:vartype common_code_key: str
26
23
27
24
:ivar created_at: Date and time at which the access code was created.
28
-
:vartype created_at: str
29
25
30
26
:ivar device_id: Unique identifier for the device associated with the access code.
31
-
:vartype device_id: str
32
27
33
28
:ivar dormakaba_oracode_metadata: Metadata for a dormakaba Oracode managed access code. Only present for access codes from dormakaba Oracode devices.
:ivar ends_at: Date and time after which the time-bound access code becomes inactive.
37
-
:vartype ends_at: str
38
31
39
32
:ivar errors: Errors associated with the `access code <https://docs.seam.co/low-level-apis/smart-locks/access-codes>`_.
40
-
:vartype errors: List[Dict[str, Any]]
41
33
42
34
:ivar is_backup: Indicates whether the access code is a backup code.
43
-
:vartype is_backup: bool
44
35
45
36
:ivar is_backup_access_code_available: Indicates whether a backup access code is available for use if the primary access code is lost or compromised.
46
-
:vartype is_backup_access_code_available: bool
47
37
48
38
:ivar is_external_modification_allowed: Indicates whether changes to the access code from external sources are permitted.
49
-
:vartype is_external_modification_allowed: bool
50
39
51
40
:ivar is_managed: Indicates whether Seam manages the access code.
52
-
:vartype is_managed: bool
53
41
54
42
:ivar is_offline_access_code: Indicates whether the access code is intended for use in offline scenarios. If ``true``, this code can be created on a device without a network connection.
55
-
:vartype is_offline_access_code: bool
56
43
57
44
:ivar is_one_time_use: Indicates whether the access code can only be used once. If ``true``, the code becomes invalid after the first use.
58
-
:vartype is_one_time_use: bool
59
45
60
46
:ivar is_scheduled_on_device: Indicates whether the code is set on the device according to a preconfigured schedule.
61
-
:vartype is_scheduled_on_device: bool
62
47
63
48
:ivar is_waiting_for_code_assignment: Indicates whether the access code is waiting for a code assignment.
64
-
:vartype is_waiting_for_code_assignment: bool
65
49
66
50
:ivar name: Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as ``first_name`` and ``last_name``. To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints. To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called ``appearance``. This is an object with a ``name`` property and, optionally, ``first_name`` and ``last_name`` properties (for providers that break down a name into components).
67
-
:vartype name: str
68
51
69
52
:ivar pending_mutations: Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device.
70
-
:vartype pending_mutations: List[Dict[str, Any]]
71
53
72
54
:ivar pulled_backup_access_code_id: Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code.
73
-
:vartype pulled_backup_access_code_id: str
74
55
75
56
:ivar starts_at: Date and time at which the time-bound access code becomes active.
76
-
:vartype starts_at: str
77
57
78
58
:ivar status: Current status of the access code within the operational lifecycle. Values are ``setting``, a transitional phase that indicates that the code is being configured or activated; ``set``, which indicates that the code is active and operational; ``unset``, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; ``removing``, which indicates a transitional period in which the code is being deleted or made inactive; and ``unknown``, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also `Lifecycle of Access Codes <https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes>`_.
79
-
:vartype status: str
80
59
81
60
:ivar type: Type of the access code. ``ongoing`` access codes are active continuously until deactivated manually. ``time_bound`` access codes have a specific duration.
82
-
:vartype type: str
83
61
84
62
:ivar warnings: Warnings associated with the `access code <https://docs.seam.co/low-level-apis/smart-locks/access-codes>`_.
85
-
:vartype warnings: List[Dict[str, Any]]
86
63
87
64
:ivar workspace_id: Unique identifier for the Seam workspace associated with the access code.
Copy file name to clipboardExpand all lines: seam/resources/access_grant.py
+1-21Lines changed: 1 addition & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -8,64 +8,44 @@ class AccessGrant:
8
8
"""Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant.
9
9
10
10
:ivar access_grant_id: ID of the Access Grant.
11
-
:vartype access_grant_id: str
12
11
13
12
:ivar access_grant_key: Unique key for the access grant within the workspace.
14
-
:vartype access_grant_key: str
15
13
16
14
:ivar access_method_ids: IDs of the access methods created for the Access Grant.
17
-
:vartype access_method_ids: List[str]
18
15
19
16
:ivar client_session_token: Client Session Token. Only returned if the Access Grant has a mobile_key access method.
20
-
:vartype client_session_token: str
21
17
22
18
:ivar created_at: Date and time at which the Access Grant was created.
23
-
:vartype created_at: str
24
19
25
20
:ivar customization_profile_id: ID of the customization profile associated with the Access Grant.
26
-
:vartype customization_profile_id: str
27
21
28
22
:ivar display_name: Display name of the Access Grant.
29
-
:vartype display_name: str
30
23
31
24
:ivar ends_at: Date and time at which the Access Grant ends.
32
-
:vartype ends_at: str
33
25
34
26
:ivar errors: Errors associated with the `access grant <https://docs.seam.co/use-cases/granting-access>`_.
35
-
:vartype errors: List[Dict[str, Any]]
36
27
37
28
:ivar instant_key_url: Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method.
38
-
:vartype instant_key_url: str
39
29
40
30
:ivar location_ids: Deprecated: Use ``space_ids``.
41
-
:vartype location_ids: List[str]
42
31
43
32
:ivar name: Name of the Access Grant. If not provided, the display name will be computed.
44
-
:vartype name: str
45
33
46
34
:ivar pending_mutations: List of pending mutations for the access grant. This shows updates that are in progress.
47
-
:vartype pending_mutations: List[Dict[str, Any]]
48
35
49
36
:ivar requested_access_methods: Access methods that the user requested for the Access Grant.
Copy file name to clipboardExpand all lines: seam/resources/access_method.py
+1-19Lines changed: 1 addition & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -8,58 +8,40 @@ class AccessMethod:
8
8
"""Represents an access method for an Access Grant. Access methods describe the modes of access, such as PIN codes, plastic cards, and mobile keys. For a mobile key, the access method also stores the URL for the associated Instant Key.
9
9
10
10
:ivar access_method_id: ID of the access method.
11
-
:vartype access_method_id: str
12
11
13
12
:ivar client_session_token: Token of the client session associated with the access method.
14
-
:vartype client_session_token: str
15
13
16
14
:ivar code: The actual PIN code for code access methods.
17
-
:vartype code: str
18
15
19
16
:ivar created_at: Date and time at which the access method was created.
20
-
:vartype created_at: str
21
17
22
18
:ivar customization_profile_id: ID of the customization profile associated with the access method.
23
-
:vartype customization_profile_id: str
24
19
25
20
:ivar display_name: Display name of the access method.
26
-
:vartype display_name: str
27
21
28
22
:ivar errors: Errors associated with the `access method <https://docs.seam.co/use-cases/granting-access/creating-an-access-grant>`_.
29
-
:vartype errors: List[Dict[str, Any]]
30
23
31
24
:ivar instant_key_url: URL of the Instant Key for mobile key access methods.
32
-
:vartype instant_key_url: str
33
25
34
26
:ivar is_assignment_required: Indicates whether an existing card credential must be assigned to this access method before it can be issued. Only applies to card-mode access methods on systems that support credential assignment.
35
-
:vartype is_assignment_required: bool
36
27
37
28
:ivar is_encoding_required: Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.
38
-
:vartype is_encoding_required: bool
39
29
40
30
:ivar is_issued: Indicates whether the access method has been issued.
41
-
:vartype is_issued: bool
42
31
43
32
:ivar is_ready_for_assignment: Indicates whether the access method is ready for card assignment. This is true when the access method is in card mode, has not yet been issued, and the system supports credential assignment.
44
-
:vartype is_ready_for_assignment: bool
45
33
46
34
:ivar is_ready_for_encoding: Indicates whether the access method is ready to be encoded. This is true when the credential has been created and the card has not yet been issued.
47
-
:vartype is_ready_for_encoding: bool
48
35
49
36
:ivar issued_at: Date and time at which the access method was issued.
:ivar pending_mutations: Pending mutations for the `access method <https://docs.seam.co/use-cases/granting-access/creating-an-access-grant>`_. Indicates operations that are in progress.
56
-
:vartype pending_mutations: List[Dict[str, Any]]
57
41
58
42
:ivar warnings: Warnings associated with the `access method <https://docs.seam.co/use-cases/granting-access/creating-an-access-grant>`_.
59
-
:vartype warnings: List[Dict[str, Any]]
60
43
61
-
:ivar workspace_id: ID of the Seam workspace associated with the access method.
62
-
:vartype workspace_id: str"""
44
+
:ivar workspace_id: ID of the Seam workspace associated with the access method."""
Copy file name to clipboardExpand all lines: seam/resources/acs_access_group.py
+1-17Lines changed: 1 addition & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -12,52 +12,36 @@ class AcsAccessGroup:
12
12
To learn whether your access control system supports access groups, see the corresponding `system integration guide <https://docs.seam.co/device-and-system-integration-guides#access-control-systems>`_.
13
13
14
14
:ivar access_group_type: Deprecated: Use ``external_type``.
15
-
:vartype access_group_type: str
16
15
17
16
:ivar access_group_type_display_name: Deprecated: Use ``external_type_display_name``.
18
-
:vartype access_group_type_display_name: str
19
17
20
18
:ivar access_schedule: ``starts_at`` and ``ends_at`` timestamps for the access group's access.
21
-
:vartype access_schedule: Dict[str, Any]
22
19
23
20
:ivar acs_access_group_id: ID of the access group.
24
-
:vartype acs_access_group_id: str
25
21
26
22
:ivar acs_system_id: ID of the access control system that contains the access group.
27
-
:vartype acs_system_id: str
28
23
29
24
:ivar connected_account_id: ID of the connected account that contains the access group.
30
-
:vartype connected_account_id: str
31
25
32
26
:ivar created_at: Date and time at which the access group was created.
33
-
:vartype created_at: str
34
27
35
28
:ivar display_name: Display name for the access group.
36
-
:vartype display_name: str
37
29
38
30
:ivar errors: Errors associated with the ``acs_access_group``.
39
-
:vartype errors: List[Dict[str, Any]]
40
31
41
32
:ivar external_type: Brand-specific terminology for the access group type.
42
-
:vartype external_type: str
43
33
44
34
:ivar external_type_display_name: Display name that corresponds to the brand-specific terminology for the access group type.
45
-
:vartype external_type_display_name: str
46
35
47
36
:ivar is_managed: Indicates whether Seam manages the access group.
48
-
:vartype is_managed: bool
49
37
50
38
:ivar name: Name of the access group.
51
-
:vartype name: str
52
39
53
40
:ivar pending_mutations: Collection of pending mutations for the access group. Represents operations that have been requested but not yet completed on the integrated access system.
54
-
:vartype pending_mutations: List[Dict[str, Any]]
55
41
56
42
:ivar warnings: Warnings associated with the ``acs_access_group``.
57
-
:vartype warnings: List[Dict[str, Any]]
58
43
59
-
:ivar workspace_id: ID of the workspace that contains the access group.
60
-
:vartype workspace_id: str"""
44
+
:ivar workspace_id: ID of the workspace that contains the access group."""
0 commit comments