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
{{ message }}
Repository navigation
Commit 8aaab17
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .speakeasy/out.openapi.yaml
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36350,10 +36350,12 @@ components:
36350
36350
format: 'uuid'
36351
36351
type: 'string'
36352
36352
role:
36353
-
description: 'Role of the member in the workspace'
36353
+
description: 'Role of the member in the workspace. `viewer` and `restricted_viewer` are read-only: `viewer` can view the whole workspace, and `restricted_viewer` can view only their own activity.'
|`created_at`|*str*| ✔️ | ISO 8601 timestamp of when the membership was created | 2025-08-24T10:30:00Z|
10
+
|`id`|*str*| ✔️ | Unique identifier for the workspace membership | 660e8400-e29b-41d4-a716-446655440000|
11
+
|`role`|[components.WorkspaceMemberRole](../components/workspacememberrole.mdx)| ✔️ | Role of the member in the workspace. `viewer` and `restricted_viewer` are read-only: `viewer` can view the whole workspace, and `restricted_viewer` can view only their own activity. | member|
12
+
|`user_id`|*str*| ✔️ | Clerk user ID of the member | user_abc123|
13
+
|`workspace_id`|*str*| ✔️ | ID of the workspace | 550e8400-e29b-41d4-a716-446655440000|
Copy file name to clipboardExpand all lines: docs/components/workspacememberrole.mdx
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "WorkspaceMemberRole"
3
3
---
4
4
5
-
Role of the member in the workspace
5
+
Role of the member in the workspace. `viewer` and `restricted_viewer` are read-only: `viewer` can view the whole workspace, and `restricted_viewer` can view only their own activity.
6
6
7
7
## Example Usage
8
8
@@ -20,3 +20,5 @@ This is an open enum. Unrecognized values will not fail type checks.
Copy file name to clipboardExpand all lines: src/openrouter/components/workspacemember.py
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,12 @@
10
10
Literal[
11
11
"admin",
12
12
"member",
13
+
"viewer",
14
+
"restricted_viewer",
13
15
],
14
16
UnrecognizedStr,
15
17
]
16
-
r"""Role of the member in the workspace"""
18
+
r"""Role of the member in the workspace. `viewer` and `restricted_viewer` are read-only: `viewer` can view the whole workspace, and `restricted_viewer` can view only their own activity."""
17
19
18
20
19
21
classWorkspaceMemberTypedDict(TypedDict):
@@ -22,7 +24,7 @@ class WorkspaceMemberTypedDict(TypedDict):
22
24
id: str
23
25
r"""Unique identifier for the workspace membership"""
24
26
role: WorkspaceMemberRole
25
-
r"""Role of the member in the workspace"""
27
+
r"""Role of the member in the workspace. `viewer` and `restricted_viewer` are read-only: `viewer` can view the whole workspace, and `restricted_viewer` can view only their own activity."""
26
28
user_id: str
27
29
r"""Clerk user ID of the member"""
28
30
workspace_id: str
@@ -37,7 +39,7 @@ class WorkspaceMember(BaseModel):
37
39
r"""Unique identifier for the workspace membership"""
38
40
39
41
role: WorkspaceMemberRole
40
-
r"""Role of the member in the workspace"""
42
+
r"""Role of the member in the workspace. `viewer` and `restricted_viewer` are read-only: `viewer` can view the whole workspace, and `restricted_viewer` can view only their own activity."""
0 commit comments