-
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
Merged
gjtorikian
merged 11 commits into
main
from
oagen/spec-update-dee95fc33c4f813ac60adfa8c57d210db8183dd8
Jun 17, 2026
Merged
Changes from all commits
Commits
Show all changes
11 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] b829a5e
update changelog data
gjtorikian 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
39 changes: 39 additions & 0 deletions
39
.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,39 @@ | ||
| - [#495](https://github.com/workos/workos-ruby/pull/495) feat(generated)!: regenerate from spec (8 changes) | ||
|
|
||
| **⚠️ Breaking** | ||
| - **[api_keys](https://workos.com/docs/reference/authkit/api-keys)**: | ||
| - Made `expires_at` required in API key models | ||
| - **[directory_sync](https://workos.com/docs/reference/directory-sync)**: | ||
| - Removed model `DsyncDeactivated` | ||
| - Removed model `DsyncDeactivatedData` | ||
| - Removed model `DsyncDeactivatedDataDomain` | ||
| - Removed enum `DsyncDeactivatedDataType` | ||
| - Removed enum `DsyncDeactivatedDataState` | ||
| - **[radar](https://workos.com/docs/reference/radar)**: | ||
| - Removed `domain_sign_up_rate_limit` from `RadarStandaloneResponseControl` | ||
| - **[user_management](https://workos.com/docs/reference/authkit/user)**: | ||
| - Removed `return_to` from `RevokeSession` | ||
|
|
||
| **Features** | ||
| - **[api_keys](https://workos.com/docs/reference/authkit/api-keys)**: | ||
| - Added model `ExpireApiKey` | ||
| - Added model `ApiKeyUpdated` | ||
| - Added model `ApiKeyUpdatedData` | ||
| - Added model `ApiKeyUpdatedDataOwner` | ||
| - Added model `UserApiKeyUpdatedDataOwner` | ||
| - Added model `ApiKeyUpdatedDataPreviousAttribute` | ||
| - Added endpoint `POST /api_keys/{id}/expire` | ||
| - **[audit_logs](https://workos.com/docs/reference/audit-logs)**: | ||
| - Added `Snowflake` to `AuditLogConfigurationLogStreamType` | ||
| - **[connect](https://workos.com/docs/reference/workos-connect/standalone)**: | ||
| - Added `name` to `UserObject` | ||
| - **[directory_sync](https://workos.com/docs/reference/directory-sync)**: | ||
| - Added model `DsyncTokenCreated` | ||
| - Added model `DsyncTokenCreatedData` | ||
| - Added model `DsyncTokenRevoked` | ||
| - Added model `DsyncTokenRevokedData` | ||
| - **[user_management](https://workos.com/docs/reference/authkit/user)**: | ||
| - Added `name` to user management models | ||
| - **[webhooks](https://workos.com/docs/reference/webhooks)**: | ||
| - Added `api_key.updated` to `CreateWebhookEndpointEvents` | ||
| - Added `api_key.updated` to `UpdateWebhookEndpointEvents` |
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.