|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## [8.0.0](https://github.com/workos/workos-python/compare/v7.0.1...v8.0.0) (2026-05-26) |
| 4 | + |
| 5 | +### Bug Fixes |
| 6 | + |
| 7 | +* **deps:** update dependency cryptography to v48 ([#659](https://github.com/workos/workos-python/issues/659)) ([1ccc411](https://github.com/workos/workos-python/commit/1ccc4119ab6aa862b8af740b17667fb5a8a88928)) |
| 8 | + |
| 9 | +* [#662](https://github.com/workos/workos-python/pull/662) feat(generated)!: regenerate from spec (10 changes) |
| 10 | + |
| 11 | + **⚠️ Breaking** |
| 12 | + * **user_management:** Remove organization membership methods, move to new service |
| 13 | + * Removed `list_organization_memberships`, `create_organization_membership`, `get_organization_membership`, `update_organization_membership`, `delete_organization_membership`, `deactivate_organization_membership`, and `reactivate_organization_membership` methods from UserManagement. |
| 14 | + * Removed `RoleSingle` and `RoleMultiple` dataclasses from UserManagement. |
| 15 | + * Organization membership management is now handled by the new `OrganizationMembershipService`. |
| 16 | + * Client accessor renamed from `client.user_management_organization_membership_groups` to `client.organization_membership`. |
| 17 | + * **organization_membership:** Add new OrganizationMembershipService with membership and group operations |
| 18 | + * Created new `OrganizationMembershipService` with `list_organization_memberships`, `create_organization_membership`, `get_organization_membership`, `update_organization_membership`, `delete_organization_membership`, `deactivate_organization_membership`, `reactivate_organization_membership`, and `list_organization_membership_groups` methods. |
| 19 | + * Added `RoleSingle` and `RoleMultiple` dataclasses to support role assignment. |
| 20 | + * Added `AsyncOrganizationMembershipService` for async operations. |
| 21 | + * **vault:** Replace hand-maintained Vault module with generated Vault service |
| 22 | + * The old `workos.vault` module (`vault.py`) has been replaced by a generated `vault/_resource.py` service. Method renames: |
| 23 | + * `read_object` → `get_kv` |
| 24 | + * `read_object_by_name` → `get_name` |
| 25 | + * `get_object_metadata` → removed (no direct equivalent) |
| 26 | + * `list_objects` → `list_kv` |
| 27 | + * `list_object_versions` → `list_kv_versions` |
| 28 | + * `create_object` → `create_kv` |
| 29 | + * `update_object` → `update_kv` |
| 30 | + * `delete_object` → `delete_kv` |
| 31 | + * `create_data_key(key_context=...)` → `create_data_key(context=...)` |
| 32 | + * `decrypt_data_key` → `create_decrypt` |
| 33 | + * Removed types: `DataKey`, `DataKeyPair`, `ObjectDigest`, `ObjectUpdateBy`. Replaced by new generated models (`CreateDataKeyResponse`, `DecryptResponse`, `ObjectMetadata`, `ObjectSummary`, `ObjectWithoutValue`, `VaultObject`, etc.). |
| 34 | + * Added new methods: `create_rekey`, `list_kv_metadata`. |
| 35 | + * Added `AsyncVault` for async operations. |
| 36 | + * Client-side `encrypt`/`decrypt` (AES-GCM) methods are preserved with the same signatures. |
| 37 | + * **connect:** `ConnectApplication` is now a discriminated union |
| 38 | + * `ConnectApplication` was a single dataclass; it is now a discriminated union dispatcher based on `application_type`. |
| 39 | + * All Connect methods (`list_applications`, `create_application`, `get_application`, `update_application`) now return `ConnectApplicationVariant` (a union of `ConnectApplicationM2M`, `ConnectApplicationOAuth`, or `ConnectApplicationUnknown`). |
| 40 | + * Code using `isinstance(x, ConnectApplication)` or accessing type-specific fields without checking the variant will need updating. |
| 41 | + * **radar:** Remove device_fingerprint and bot_score parameters from assess request |
| 42 | + * Removed `device_fingerprint` and `bot_score` optional parameters from `Radar.create_attempt` and `AsyncRadar.create_attempt` methods. |
| 43 | + * Removed these fields from `RadarStandaloneAssessRequest` model. |
| 44 | + * **radar:** Rename radar list/action enums and remove enum values |
| 45 | + * Renamed `RadarAction` to `RadarListAction` and `RadarType` to `RadarListType` (affects `add_list_entry` and `remove_list_entry` method signatures). |
| 46 | + * `RadarStandaloneResponseBlocklistType` is now a lazy re-export alias of `RadarListType`. |
| 47 | + * Removed `credential_stuffing` and `ip_sign_up_rate_limit` values from `RadarStandaloneResponseControl` enum. |
| 48 | + * Removed `login`, `signup`, `sign_up`, and `sign_in` values from `RadarStandaloneAssessRequestAction` enum; only `sign-up` and `sign-in` remain. |
| 49 | + * **authorization:** Remove search parameter and add resource/role filtering |
| 50 | + * Removed `search` parameter from `Authorization.list_resources` and `AsyncAuthorization.list_resources`. |
| 51 | + * Added `resource_id`, `resource_external_id`, `resource_type_slug` parameters to `list_role_assignments` method. |
| 52 | + * Added `role_slug` parameter to `list_role_assignments_for_resource_by_external_id` and `list_role_assignments_for_resource` methods. |
| 53 | + * **api_keys:** Add expires_at field to API key models |
| 54 | + * Added `expires_at` optional field to `CreateOrganizationApiKey` model. |
| 55 | + * Added `expires_at` optional field to `CreateUserApiKey` model. |
| 56 | + * Added `expires_at` to organizational and user API key models (OrganizationApiKey, OrganizationApiKeyWithValue, UserApiKey, UserApiKeyWithValue). |
| 57 | + * Added `expires_at` parameter to `create_organization_api_key` and `create_user_api_key` methods. |
| 58 | + * **audit_logs:** Rename audit log models and update service references |
| 59 | + * Renamed `AuditLogActionJson` to `AuditLogAction`. |
| 60 | + * Renamed `AuditLogExportJson` to `AuditLogExport`. |
| 61 | + * Renamed `AuditLogSchemaJson` to `AuditLogSchema`. |
| 62 | + * Renamed `AuditLogSchemaJsonActor` to `AuditLogSchemaActorInput` and `AuditLogSchemaJsonTarget` to `AuditLogSchemaTargetInput`. |
| 63 | + * Added new `AuditLogSchemaInput` model (used for schema creation payloads). |
| 64 | + * Renamed `AuditLogsRetentionJson` to `AuditLogsRetention`. |
| 65 | + * Updated all service methods to use new model names. |
| 66 | + * **webhooks:** Rename WebhookEndpointJson to WebhookEndpoint |
| 67 | + * Renamed `WebhookEndpointJson` model to `WebhookEndpoint`. |
| 68 | + * Updated all service methods to use the new model name. |
| 69 | + * Updated webhook endpoint status references. |
| 70 | + |
| 71 | + **Features** |
| 72 | + * **common:** Add new models for pipes events and enhancements |
| 73 | + * Added `Actor` model representing the user or API key that performed an action. |
| 74 | + * Added `Error` model for error response bodies. |
| 75 | + * Added `PipeConnectedAccount` model with state enumeration. |
| 76 | + * Added pipe event models: `PipesConnectedAccountConnected`, `PipesConnectedAccountDisconnected`, `PipesConnectedAccountReauthorizationNeeded`. |
| 77 | + * Added webhook event enum values for pipes connected account events. |
| 78 | + * Renamed `AuditLogExportJsonState` to `AuditLogExportState`. |
| 79 | + * Renamed `WebhookEndpointJsonStatus` to `WebhookEndpointStatus`. |
| 80 | + * Updated `UserManagementAuthenticationScreenHint` to use `RadarStandaloneAssessRequestAction` type alias. |
| 81 | + |
3 | 82 | ## [7.0.1](https://github.com/workos/workos-python/compare/v7.0.0...v7.0.1) (2026-05-11) |
4 | 83 |
|
5 | 84 |
|
|
0 commit comments