Commit a806a31
Add permission and organization role support (#548)
* Add authorization permissions support
Introduce the authorization module with CRUD operations for permissions
including create, list (paginated), get, update (PATCH), and delete.
Register the module on both sync and async clients.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add authorization organization roles support (#549)
* Add authorization organization roles support
Add CRUD operations for organization roles including create, list, get,
update, set/add/remove permissions on the authorization module.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* format
* Add authorization environment roles support (#550)
* Add authorization environment roles support
Add CRUD operations for environment roles including create, list, get,
update, set/add permissions on the authorization module.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Use Role union type for list/get organization role endpoints
The list and get organization role endpoints can return both
EnvironmentRole and OrganizationRole types. This aligns the
Python SDK return types with the Node SDK.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add authorization event and webhook types (#551)
* Add authorization event and webhook types
Add event and webhook types for organization_role (created, updated,
deleted) and permission (created, updated, deleted) to support
authorization-related event streaming and webhook delivery.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Distinct type for organization role events
* mypy
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* Remove aliasing, format
* Format, types
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent a734f62 commit a806a31
File tree
20 files changed
+1359
-43
lines changed- src/workos
- types
- authorization
- events
- webhooks
- utils
- tests
- utils/fixtures
20 files changed
+1359
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
58 | 65 | | |
59 | 66 | | |
60 | 67 | | |
| |||
0 commit comments