-
Notifications
You must be signed in to change notification settings - Fork 33
feat(generated)!: regenerate from spec (8 changes) #495
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
10
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
10 commits
Select commit
Hold shift + click to select a range
e8790d2
feat(user_management)!: Remove return_to param from revoke_session; a…
workos-sdk-automation[bot] 20dbc9a
feat(user_management)!: Add UserApiKeyUpdatedDataOwner model
workos-sdk-automation[bot] 617398b
feat(api_keys): Add API key expiration and update event support
workos-sdk-automation[bot] d4c6ebc
feat(directory_sync): Remove DsyncDeactivated models; add DsyncToken …
workos-sdk-automation[bot] 86cd421
feat(vault): Rename ObjectModel class to VaultObject
workos-sdk-automation[bot] a0f3bb1
feat(connect): Add name field to UserObject
workos-sdk-automation[bot] 57aece5
feat(groups): Move UserOrganizationMembershipBaseListData from author…
workos-sdk-automation[bot] 4639543
feat(types): Add SNOWFLAKE log stream type; remove DOMAIN_SIGN_UP_RAT…
workos-sdk-automation[bot] ae2d070
chore(generated): shared regenerated files
workos-sdk-automation[bot] e2e8fbb
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
31 changes: 31 additions & 0 deletions
31
.changelog-pending/2026-06-03T19-21-00-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,31 @@ | ||
| * [#495](https://github.com/workos/workos-ruby/pull/495) feat(generated)!: regenerate from spec (8 changes) | ||
|
|
||
| **⚠️ Breaking** | ||
| * **user_management:** Remove return_to param from revoke_session; add name field to user models | ||
| * Remove `return_to` parameter from `revoke_session` method (breaking change) | ||
| * Add optional `name` field to `User`, `CreateUser`, `UpdateUser`, and `EmailChangeConfirmationUser` models | ||
| * Update related `.rbi` type stubs to reflect signature changes | ||
| * **user_management:** Add UserApiKeyUpdatedDataOwner model | ||
| * Add `UserApiKeyUpdatedDataOwner` model for API key update events owned by users | ||
|
|
||
| **Features** | ||
| * **api_keys:** Add API key expiration and update event support | ||
| * Add `create_api_key_expire` operation to expire API keys via `POST /api_keys/{id}/expire` | ||
| * Add `ApiKeyUpdated` event class with `ApiKeyUpdatedData` and related nested models for tracking API key update events | ||
| * Add new `expires_at` required field to `ApiKeyCreatedData` and `ApiKeyRevokedData` | ||
| * **directory_sync:** Remove DsyncDeactivated models; add DsyncToken events | ||
| * Remove `DsyncDeactivated`, `DsyncDeactivatedData`, and related enum classes (breaking change) | ||
| * Add `DsyncTokenCreated`, `DsyncTokenCreatedData`, `DsyncTokenRevoked`, and `DsyncTokenRevokedData` event models | ||
| * Support new directory token lifecycle events in webhooks | ||
| * **vault:** Rename ObjectModel class to VaultObject | ||
| * Rename `ObjectModel` class to `VaultObject` for consistency with vault service naming (breaking change) | ||
| * Update `get_name` and `get_kv` methods to return `VaultObject` instead of `ObjectModel` | ||
| * Remove `object` inflection mapping that no longer applies | ||
| * **connect:** Add name field to UserObject | ||
| * Add optional `name` field to `UserObject` model for Connect applications | ||
| * **groups:** Move UserOrganizationMembershipBaseListData from authorization to groups | ||
| * Relocate `UserOrganizationMembershipBaseListData` model from authorization service to groups service (organizational change) | ||
| * **types:** Add SNOWFLAKE log stream type; remove DOMAIN_SIGN_UP_RATE_LIMIT enum | ||
| * Add `SNOWFLAKE` value to `AuditLogConfigurationLogStreamType` enum | ||
| * Remove `DOMAIN_SIGN_UP_RATE_LIMIT` value from `RadarStandaloneResponseControl` enum (breaking at type level) | ||
| * Add `API_KEY_UPDATED` event type to webhook endpoint event enums |
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,49 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| # This file is auto-generated by oagen. Do not edit. | ||
|
|
||
| module WorkOS | ||
| class ApiKeyUpdatedData < WorkOS::Types::BaseModel | ||
| HASH_ATTRS = { | ||
| object: :object, | ||
| id: :id, | ||
| owner: :owner, | ||
| name: :name, | ||
| obfuscated_value: :obfuscated_value, | ||
| last_used_at: :last_used_at, | ||
| expires_at: :expires_at, | ||
| permissions: :permissions, | ||
| created_at: :created_at, | ||
| updated_at: :updated_at, | ||
| previous_attributes: :previous_attributes | ||
| }.freeze | ||
|
|
||
| attr_accessor \ | ||
| :object, | ||
| :id, | ||
| :owner, | ||
| :name, | ||
| :obfuscated_value, | ||
| :last_used_at, | ||
| :expires_at, | ||
| :permissions, | ||
| :created_at, | ||
| :updated_at, | ||
| :previous_attributes | ||
|
|
||
| def initialize(json) | ||
| hash = self.class.normalize(json) | ||
| @object = hash[:object] | ||
| @id = hash[:id] | ||
| @owner = hash[:owner] ? (case hash[:owner][:type] when "organization" then WorkOS::ApiKeyUpdatedDataOwner.new(hash[:owner]) when "user" then WorkOS::UserApiKeyUpdatedDataOwner.new(hash[:owner]) else hash[:owner] end) : nil | ||
| @name = hash[:name] | ||
| @obfuscated_value = hash[:obfuscated_value] | ||
| @last_used_at = hash[:last_used_at] | ||
| @expires_at = hash[:expires_at] | ||
| @permissions = hash[:permissions] || [] | ||
| @created_at = hash[:created_at] | ||
| @updated_at = hash[:updated_at] | ||
| @previous_attributes = hash[:previous_attributes] ? WorkOS::ApiKeyUpdatedDataPreviousAttribute.new(hash[:previous_attributes]) : nil | ||
| end | ||
| end | ||
| end |
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
18 changes: 18 additions & 0 deletions
18
lib/workos/api_keys/api_key_updated_data_previous_attribute.rb
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,18 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| # This file is auto-generated by oagen. Do not edit. | ||
|
|
||
| module WorkOS | ||
| class ApiKeyUpdatedDataPreviousAttribute < WorkOS::Types::BaseModel | ||
| HASH_ATTRS = { | ||
| expires_at: :expires_at | ||
| }.freeze | ||
|
|
||
| attr_accessor :expires_at | ||
|
|
||
| def initialize(json) | ||
| hash = self.class.normalize(json) | ||
| @expires_at = hash[:expires_at] | ||
| end | ||
| end | ||
| end |
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,18 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| # This file is auto-generated by oagen. Do not edit. | ||
|
|
||
| module WorkOS | ||
| class ExpireApiKey < WorkOS::Types::BaseModel | ||
| HASH_ATTRS = { | ||
| expires_at: :expires_at | ||
| }.freeze | ||
|
|
||
| attr_accessor :expires_at | ||
|
|
||
| def initialize(json) | ||
| hash = self.class.normalize(json) | ||
| @expires_at = hash[:expires_at] | ||
| end | ||
| end | ||
| end |
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.
nilexpires_atsilently omitted — "clear scheduled expiration" use-case is unreachableThe docstring says "Use null to clear a scheduled future expiration", but the body is built with
.compact, which drops anynilvalue. Callingcreate_api_key_expire(id: "key_id", expires_at: nil)(the explicit-null form) producesbody = {}, identical to omitting the parameter entirely. If the API distinguishes{"expires_at": null}(cancel pending expiry) from an empty body (expire immediately), that distinction is permanently lost here and the "clear scheduled expiration" path can never be exercised.