Skip to content

Commit ab992b5

Browse files
workos-sdk-automation[bot]gjtorikianclaude
authored
feat(generated)!: regenerate from spec (10 changes) (#662)
Co-authored-by: workos-sdk-automation[bot] <255426317+workos-sdk-automation[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 5126d9d commit ab992b5

379 files changed

Lines changed: 7480 additions & 4023 deletions

File tree

Some content is hidden

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

.last-synced-sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a10d9ecb766d2dd996aecb19aa9c801d78bb7c26
1+
cb6857d51b453e3cbdb5bf3647d3ca229dd8af65

0 commit comments

Comments
 (0)