-
Notifications
You must be signed in to change notification settings - Fork 30
feat(generated)!: regenerate from spec (9 changes) #665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
workos-sdk-automation
wants to merge
11
commits into
main
Choose a base branch
from
oagen/spec-update-dee95fc33c4f813ac60adfa8c57d210db8183dd8
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
860a2dd
feat(user_management)!: Remove return_to parameter from revoke_session
workos-sdk-automation[bot] 2583b48
feat(user_management)!: Add name field to User, CreateUser, and Updat…
workos-sdk-automation[bot] 2772092
feat(api_keys): Add create_api_key_expire operation
workos-sdk-automation[bot] 11c785a
feat(common): Remove DsyncDeactivated models and add DsyncToken events
workos-sdk-automation[bot] e96526d
feat(common): Add ApiKeyUpdated event models
workos-sdk-automation[bot] dadaf54
feat(common): Make expires_at required in ApiKeyCreatedData and ApiKe…
workos-sdk-automation[bot] 8513efe
feat(connect): Add name field to UserObject model
workos-sdk-automation[bot] 3f21924
feat(authorization): Remove DOMAIN_SIGN_UP_RATE_LIMIT from RadarStand…
workos-sdk-automation[bot] c398808
feat(audit_logs): Add SNOWFLAKE to AuditLogConfigurationLogStreamType…
workos-sdk-automation[bot] c2a0fce
chore(generated): shared regenerated files
workos-sdk-automation[bot] 17967f9
chore(generated): add release notes fragment
workos-sdk-automation[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
.changelog-pending/2026-06-03T19-20-22-dee95fc33c4f813ac60adfa8c57d210db8183dd8.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| * [#665](https://github.com/workos/workos-python/pull/665) feat(generated)!: regenerate from spec (9 changes) | ||
|
|
||
| **⚠️ Breaking** | ||
| * **user_management:** Remove return_to parameter from revoke_session | ||
| * Removed `return_to` parameter from `UserManagement.revoke_session` and `AsyncUserManagement.revoke_session` methods | ||
| * Updated `RevokeSession` model to remove the `return_to` field | ||
| * The parameter was optional but is now completely removed from the API | ||
| * **user_management:** Add name field to User, CreateUser, and UpdateUser models | ||
| * Added `name` field to `User` model for the user's full name | ||
| * Added `name` parameter to `create_user` and `update_user` methods | ||
| * Added `name` field to `CreateUser` and `UpdateUser` models | ||
| * Allows setting user's full name in addition to first and last name separately | ||
|
|
||
| **Features** | ||
| * **api_keys:** Add create_api_key_expire operation | ||
| * Added new `create_api_key_expire` method to both `ApiKeys` and `AsyncApiKeys` classes | ||
| * Added `ExpireApiKey` model with optional `expires_at` field | ||
| * New operation allows expiring an API key immediately, scheduling future expiration, or clearing scheduled expiration | ||
| * **common:** Remove DsyncDeactivated models and add DsyncToken events | ||
| * Removed `DsyncDeactivated`, `DsyncDeactivatedData`, `DsyncDeactivatedDataDomain`, `DsyncDeactivatedDataState`, and `DsyncDeactivatedDataType` models (breaking change) | ||
| * Added new event models: `DsyncTokenCreated`, `DsyncTokenCreatedData`, `DsyncTokenRevoked`, `DsyncTokenRevokedData` | ||
| * Updated event schema to reflect removal of `dsync.deactivated` event and addition of `dsync.token.created` and `dsync.token.revoked` events | ||
| * Updated webhook endpoint events to support new `api_key.updated` event | ||
| * **common:** Add ApiKeyUpdated event models | ||
| * Added `ApiKeyUpdated`, `ApiKeyUpdatedData`, `ApiKeyUpdatedDataOwner`, `ApiKeyUpdatedDataPreviousAttribute`, and `UserApiKeyUpdatedDataOwner` models | ||
| * New event models support tracking API key updates with previous attribute values | ||
| * Updated create and update webhook endpoint events to include `api_key.updated` | ||
| * **common:** Make expires_at required in ApiKeyCreatedData and ApiKeyRevokedData | ||
| * Changed `expires_at` field from optional to required in `ApiKeyCreatedData` model | ||
| * Changed `expires_at` field from optional to required in `ApiKeyRevokedData` model | ||
| * Reordered fields to move `expires_at` before `permissions` in serialization | ||
| * **connect:** Add name field to UserObject model | ||
| * Added `name` field to `UserObject` model for the user's full name | ||
| * Allows Connect endpoints to return and accept user's full name alongside first and last name | ||
| * **authorization:** Remove DOMAIN_SIGN_UP_RATE_LIMIT from RadarStandaloneResponseControl enum | ||
| * Removed `DOMAIN_SIGN_UP_RATE_LIMIT` value from `RadarStandaloneResponseControl` enum (breaking change) | ||
| * Updated enum type alias to exclude the removed value | ||
| * **audit_logs:** Add SNOWFLAKE to AuditLogConfigurationLogStreamType enum | ||
| * Added `SNOWFLAKE` value to `AuditLogConfigurationLogStreamType` enum | ||
| * Extends audit log configuration to support Snowflake as a log stream destination |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| cb6857d51b453e3cbdb5bf3647d3ca229dd8af65 | ||
| d8c5a7de598792b1cee18d4a9842825110e5c74a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # This file is auto-generated by oagen. Do not edit. | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from dataclasses import dataclass | ||
| from datetime import datetime | ||
| from typing import Any, Dict, Optional | ||
| from workos._types import _raise_deserialize_error | ||
| from workos._types import _format_datetime, _parse_datetime | ||
|
|
||
|
|
||
| @dataclass(slots=True) | ||
| class ExpireApiKey: | ||
| """Expire Api Key model.""" | ||
|
|
||
| expires_at: Optional[datetime] = None | ||
| """When the API key should expire. If omitted or in the past, the key expires immediately. Use null to clear a scheduled future expiration.""" | ||
|
|
||
| @classmethod | ||
| def from_dict(cls, data: Dict[str, Any]) -> "ExpireApiKey": | ||
| """Deserialize from a dictionary.""" | ||
| try: | ||
| return cls( | ||
| expires_at=_parse_datetime(_v_expires_at) | ||
| if (_v_expires_at := data.get("expires_at")) is not None | ||
| else None, | ||
| ) | ||
| except (KeyError, ValueError) as e: | ||
| _raise_deserialize_error("ExpireApiKey", e) | ||
|
|
||
| def to_dict(self) -> Dict[str, Any]: | ||
| """Serialize to a dictionary.""" | ||
| result: Dict[str, Any] = {} | ||
| if self.expires_at is not None: | ||
| result["expires_at"] = _format_datetime(self.expires_at) | ||
| else: | ||
| result["expires_at"] = None | ||
| return result |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nullto clear scheduled expirationThe docstring for
expires_atstates: "Use null to clear a scheduled future expiration." However the body-building filterif v is not Nonesilently drops aNonevalue, so callingcreate_api_key_expire(id, expires_at=None)produces an empty body{}— identical to omitting the argument. There is no way for callers to send{"expires_at": null}to the API, making the "clear scheduled expiration" use case completely unreachable. The same issue is present inAsyncApiKeys.create_api_key_expireat line 415.