Skip to content

Commit 94916bc

Browse files
committed
ci: Generate docs
1 parent 8ac48f3 commit 94916bc

74 files changed

Lines changed: 3615 additions & 1235 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/api/_blueprint.json

Lines changed: 3144 additions & 876 deletions
Large diffs are not rendered by default.

docs/api/_report.md

Lines changed: 48 additions & 203 deletions
Large diffs are not rendered by default.

docs/api/access_codes/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Represents a smart lock [access code](https://docs.seam.co/latest/capability-gui
1313

1414
An access code is a code used for a keypad or pinpad device. Unlike physical keys, which can easily be lost or duplicated, PIN codes can be customized, tracked, and altered on the fly. Using the Seam Access Code API, you can easily generate access codes on the hundreds of door lock models with which we integrate.
1515

16-
Seam supports programming two types of access codes: [ongoing](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#ongoing-access-codes) and [time-bound](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#time-bound-access-codes). To differentiate between the two, refer to the `type` property of the access code. Ongoing codes display as `ongoing`, whereas time-bound codes are labeled `time_bound`.
16+
Seam supports programming two types of access codes: [ongoing](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#ongoing-access-codes) and [time-bound](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#time-bound-access-codes). To differentiate between the two, refer to the `type` property of the access code. Ongoing codes display as `ongoing`, whereas time-bound codes are labeled `time_bound`. An ongoing access code is active, until it has been removed from the device. To specify an ongoing access code, leave both `starts_at` and `ends_at` empty. A time-bound access code will be programmed at the `starts_at` time and removed at the `ends_at` time.
1717

1818
In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection—and you do not need to be near the locks—to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code.
1919

@@ -1771,6 +1771,12 @@ Indicates whether the access code is waiting for a code assignment.
17711771
**`name`** *String*
17721772

17731773
Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.
1774+
1775+
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`.
1776+
1777+
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.
1778+
1779+
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).
17741780

17751781

17761782

@@ -3258,6 +3264,11 @@ Creates new [access codes](https://docs.seam.co/latest/capability-guides/smart-l
32583264
Deletes an [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).
32593265

32603266

3267+
[**`/access_codes/generate_code`**](./generate_code.md)
3268+
3269+
Generates a code for an [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes), given a device ID.
3270+
3271+
32613272
[**`/access_codes/get`**](./get.md)
32623273

32633274
Returns a specified [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).

docs/api/access_codes/create.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To learn more, see [Authentication](https://docs.seam.co/latest/api/authenticati
3030

3131
**`device_id`** (Required)
3232

33-
ID of the device for which to create the new access code.
33+
ID of the device for which you want to create the new access code.
3434

3535
---
3636

@@ -88,7 +88,13 @@ Maximum rounding adjustment. To create a daily-bound [offline access code](https
8888

8989
**`name`**
9090

91-
Name of the new access code.
91+
Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.
92+
93+
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`.
94+
95+
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.
96+
97+
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).
9298

9399
---
94100

docs/api/access_codes/create_multiple.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ To learn more, see [Authentication](https://docs.seam.co/latest/api/authenticati
3838

3939
**`device_ids`** *of UUIDs* (Required)
4040

41-
IDs of the devices for which to create the new access codes.
41+
IDs of the devices for which you want to create the new access codes.
4242

4343
---
4444

@@ -96,7 +96,13 @@ Maximum rounding adjustment. To create a daily-bound [offline access code](https
9696

9797
**`name`**
9898

99-
Name of the new access code.
99+
Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.
100+
101+
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`.
102+
103+
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.
104+
105+
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).
100106

101107
---
102108

docs/api/access_codes/delete.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ To learn more, see [Authentication](https://docs.seam.co/latest/api/authenticati
3030

3131
**`access_code_id`** (Required)
3232

33-
ID of the access code to delete.
33+
ID of the access code that you want to delete.
3434

3535
---
3636

3737
**`device_id`**
3838

39-
ID of the device for which to delete the access code.
39+
ID of the device for which you want to delete the access code.
4040

4141
---
4242

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Generate a Code
2+
3+
- [Request Parameters](./#request-parameters)
4+
- [Response](./#response)
5+
- [Examples](./#examples)
6+
7+
Generates a code for an [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes), given a device ID.
8+
9+
{% tabs %}
10+
{% tab title="Signature" %}
11+
```
12+
POST /access_codes/generate_code ⇒ { generated_code }
13+
```
14+
{% endtab %}
15+
{% endtabs %}
16+
17+
<details>
18+
19+
<summary>Authentication Methods</summary>
20+
21+
- API key
22+
- Client session token
23+
- Personal access token
24+
<br>Must also include the `seam-workspace` header in the request.
25+
26+
To learn more, see [Authentication](https://docs.seam.co/latest/api/authentication).
27+
</details>
28+
29+
## Request Parameters
30+
31+
**`device_id`** (Required)
32+
33+
ID of the device for which you want to generate a code.
34+
35+
---
36+
37+
38+
## Response
39+
40+
[access\_code](./)
41+
{% tabs %}
42+
{% tab title="JSON" %}
43+
```json
44+
{
45+
JSON representation of access_code
46+
}
47+
```
48+
{% endtab %}
49+
{% endtabs %}

docs/api/access_codes/pull_backup_access_code.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
Retrieves a backup access code for an [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes). See also [Managing Backup Access Codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/backup-access-codes).
88

9-
A backup access code pool is a collection of pre-programmed access codes stored on a device, ready for use. These codes are programmed in addition to the regular access codes on Seam, serving as a safety net for any issues with the primary codes.
9+
A backup access code pool is a collection of pre-programmed access codes stored on a device, ready for use. These codes are programmed in addition to the regular access codes on Seam, serving as a safety net for any issues with the primary codes. If there's ever a complication with a primary access code—be it due to intermittent connectivity, manual removal from a device, or provider outages—a backup code can be retrieved. Its end time can then be adjusted to align with the original code, facilitating seamless and uninterrupted access.
1010

11-
If there's ever a complication with a primary access code—be it due to intermittent connectivity, manual removal from a device, or provider outages—a backup code can be retrieved. Its end time can then be adjusted to align with the original code, facilitating seamless and uninterrupted access.
11+
You can pull a backup access code from the pool at any time. These backup codes are guaranteed to work immediately and automatically programmed to be removed from the device after the access code ends.
1212

1313
You can only pull backup access codes for time-bound access codes.
1414

docs/api/access_codes/report_device_constraints.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
Enables you to report access code-related constraints for a device. Currently, supports reporting supported code length constraints for SmartThings devices.
88

9+
Specify either `supported_code_lengths` or `min_code_length`/`max_code_length`.
10+
911
{% tabs %}
1012
{% tab title="Signature" %}
1113
```
@@ -30,7 +32,7 @@ To learn more, see [Authentication](https://docs.seam.co/latest/api/authenticati
3032

3133
**`device_id`** (Required)
3234

33-
ID of the device for which to report constraints.
35+
ID of the device for which you want to report constraints.
3436

3537
---
3638

docs/api/access_codes/unmanaged/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ When you create an access code on a device in Seam, it is created as a managed a
1717

1818
Prior to using Seam to manage your devices, you may have used another lock management system to manage the access codes on your devices. Where possible, we help you keep any existing access codes on devices and transition those codes to ones managed by your Seam workspace.
1919

20+
Not all providers support unmanaged access codes. The following providers do not support unmanaged access codes:
21+
22+
- [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks)
23+
2024
{% tabs %}
2125
{% tab title="JSON" %}
2226
```json
@@ -1690,6 +1694,12 @@ Indicates that Seam does not manage the access code.
16901694
**`name`** *String*
16911695

16921696
Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.
1697+
1698+
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`.
1699+
1700+
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.
1701+
1702+
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).
16931703

16941704

16951705

0 commit comments

Comments
 (0)