Skip to content

Generate client_session route and all the endpoints #583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/api/_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
- `/access_codes/unmanaged`
- `/action_attempts`
- `/bridges`
- `/client_sessions`
- `/connect_webviews`
- `/connected_accounts`
- `/devices`
Expand Down
119 changes: 119 additions & 0 deletions docs/api/client_sessions/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# Client Sessions

## `client_session`

### `client_session_id`

Format: `UUID`

---

### `connect_webview_ids`

Format: `List`

Item format: `UUID`

---

### `connected_account_ids`

Format: `List`

Item format: `UUID`

---

### `created_at`

Format: `Datetime`

---

### `device_count`

Format: `Number`

---

### `expires_at`

Format: `Datetime`

---

### `token`

Format: `String`

---

### `user_identifier_key`

Format: `String`

---

### `user_identity_ids`

Format: `List`

Item format: `UUID`

---

### `workspace_id`

Format: `UUID`

---

## Endpoints


---

## Events

### `client_session.deleted`

A [client session](../../core-concepts/authentication/client-session-tokens/README.md) was deleted.

<details>

<summary><code>client_session_id</code> Format: <code>UUID</code></summary>

ID of the [client session](../../core-concepts/authentication/client-session-tokens/README.md).
</details>
<details>

<summary><code>created_at</code> Format: <code>Datetime</code></summary>

Date and time at which the event was created.
</details>
<details>

<summary><code>event_id</code> Format: <code>UUID</code></summary>

ID of the event.
</details>
<details>

<summary><code>event_type</code> Format: <code>Enum</code></summary>

Value: `client_session.deleted`
</details>
<details>

<summary><code>occurred_at</code> Format: <code>Datetime</code></summary>

Date and time at which the event occurred.
</details>
<details>

<summary><code>workspace_id</code> Format: <code>UUID</code></summary>

ID of the [workspace](../../core-concepts/workspaces/README.md).
</details>
---

5 changes: 5 additions & 0 deletions src/data/paths.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,8 @@
title: Enrollment Automations
resources:
- enrollment_automation

/client_sessions:
title: Client Sessions
resources:
- client_session
3 changes: 2 additions & 1 deletion src/lib/reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export const reference = (
!route.path.startsWith('/acs') &&
!route.path.startsWith('/thermostats') &&
!route.path.startsWith('/phones') &&
!route.path.startsWith('/user_identities')
!route.path.startsWith('/user_identities') &&
!route.path.startsWith('/client_sessions')
) {
continue
}
Expand Down
Loading