Skip to content

Commit 5bbab38

Browse files
workos-sdk-automation[bot]workos-bot[bot]gjtorikianclaude
authored
chore(main): release 6.0.0 (#608)
Co-authored-by: workos-sdk-automation[bot] <255426317+workos-sdk-automation[bot]@users.noreply.github.com> Co-authored-by: workos-bot[bot] <workos-bot[bot]@users.noreply.github.com> Co-authored-by: Garen J. Torikian <gjtorikian@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 09f0169 commit 5bbab38

File tree

582 files changed

+1564
-3627
lines changed

Some content is hidden

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

582 files changed

+1564
-3627
lines changed

.oagen-manifest.json

Lines changed: 1050 additions & 0 deletions
Large diffs are not rendered by default.

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "5.46.0"
2+
".": "6.0.0"
33
}

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## [6.0.0](https://github.com/workos/workos-python/compare/v5.46.0...v6.0.0) (2026-04-13)
4+
5+
6+
### Top-level notices
7+
8+
- v6 is a breaking release and now requires Python 3.10 or newer.
9+
- The SDK now uses generated sync and async clients with top-level imports from `workos`.
10+
- `client.portal` has been renamed to `client.admin_portal`, and `client.fga` is not available in v6.
11+
12+
### What's changed
13+
14+
- Rebuilt the Python SDK around a generated client/runtime with updated request handling, pagination, typed models, and error surfaces.
15+
- Reorganized package exports and service modules to support the new v6 client shape across the SDK.
16+
- Added release validation coverage, including package smoke tests and the runtime dependency updates needed for packaged installs.
17+
18+
See the [V6 migration guide](docs/V6_MIGRATION_GUIDE.md) before upgrading from v5.
19+
320
## [5.46.0](https://github.com/workos/workos-python/compare/v5.45.0...v5.46.0) (2026-03-16)
421

522

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
[project]
22
name = "workos"
3-
version = "5.46.0"
3+
version = "6.0.0"
44
description = "WorkOS Python Client"
55
readme = "README.md"
66
license = "MIT"
77
authors = [{ name = "WorkOS", email = "sdk@workos.com" }]
88
requires-python = ">=3.10"
99

10-
dependencies = ["cryptography~=46.0", "httpx~=0.28", "pyjwt~=2.12"]
10+
dependencies = [
11+
"cryptography~=46.0",
12+
"httpx~=0.28",
13+
"pyjwt~=2.12",
14+
"typing_extensions~=4.0; python_version < '3.11'",
15+
]
1116

1217
[project.urls]
1318
Homepage = "https://workos.com/docs/sdks/python"

src/workos/_types.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@
55
import sys
66
from datetime import datetime
77
from enum import Enum
8-
from typing import Any, Dict, NoReturn, Protocol, TypeVar
9-
from typing_extensions import Self, TypedDict
8+
from typing import Any, Dict, NoReturn, Protocol, TypedDict, TypeVar
9+
10+
if sys.version_info >= (3, 11):
11+
from typing import Self
12+
else:
13+
from typing_extensions import Self
1014

1115

1216
class RequestOptions(TypedDict, total=False):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is auto-generated by oagen. Do not edit.
22

3-
from typing_extensions import TypeAlias
3+
from typing import TypeAlias
44
from workos.common.models.api_key_created_data_owner import ApiKeyCreatedDataOwner
55

66
ApiKeyOwner: TypeAlias = ApiKeyCreatedDataOwner
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is auto-generated by oagen. Do not edit.
22

3-
from typing_extensions import TypeAlias
3+
from typing import TypeAlias
44
from workos.common.models.api_key_created_data_owner import ApiKeyCreatedDataOwner
55

66
ApiKeyWithValueOwner: TypeAlias = ApiKeyCreatedDataOwner

src/workos/api_keys/models/organizations_api_keys_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is auto-generated by oagen. Do not edit.
22

3-
from typing_extensions import TypeAlias
3+
from typing import TypeAlias
44
from workos.connect.models.applications_order import ApplicationsOrder
55

66
OrganizationsApiKeysOrder: TypeAlias = ApplicationsOrder
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is auto-generated by oagen. Do not edit.
22

3-
from typing_extensions import TypeAlias
3+
from typing import TypeAlias
44
from .audit_log_event_actor import AuditLogEventActor
55

66
AuditLogEventTarget: TypeAlias = AuditLogEventActor
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is auto-generated by oagen. Do not edit.
22

3-
from typing_extensions import TypeAlias
3+
from typing import TypeAlias
44
from .audit_log_schema_actor import AuditLogSchemaActor
55

66
AuditLogSchemaJsonActor: TypeAlias = AuditLogSchemaActor

0 commit comments

Comments
 (0)