feat(generated)!: regenerate from spec (8 changes)#495
feat(generated)!: regenerate from spec (8 changes)#495workos-sdk-automation[bot] wants to merge 10 commits into
Conversation
…dd name field to user models
…ization to groups
Greptile SummaryAuto-generated regeneration from the OpenAPI spec adding API key expiration support, new event models (
Confidence Score: 4/5The bulk of the PR is safe mechanical code generation — model additions, renames, and removals all look correct. The one functional gap is in Nearly all changes are clean renames, additions, and removals consistent with the rest of the SDK. The lib/workos/api_keys.rb — specifically the body construction in Important Files Changed
|
| def create_api_key_expire( | ||
| id:, | ||
| expires_at: nil, | ||
| request_options: {} | ||
| ) | ||
| body = { |
There was a problem hiding this comment.
nil expires_at silently omitted — "clear scheduled expiration" use-case is unreachable
The docstring says "Use null to clear a scheduled future expiration", but the body is built with .compact, which drops any nil value. Calling create_api_key_expire(id: "key_id", expires_at: nil) (the explicit-null form) produces body = {}, 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.
Summary
feat(api_keys): Add API key expiration and update event support
create_api_key_expireoperation to expire API keys viaPOST /api_keys/{id}/expireApiKeyUpdatedevent class withApiKeyUpdatedDataand related nested models for tracking API key update eventsexpires_atrequired field toApiKeyCreatedDataandApiKeyRevokedDatafeat(user_management)!: Remove return_to param from revoke_session; add name field to user models
return_toparameter fromrevoke_sessionmethod (breaking change)namefield toUser,CreateUser,UpdateUser, andEmailChangeConfirmationUsermodels.rbitype stubs to reflect signature changesfeat(directory_sync): Remove DsyncDeactivated models; add DsyncToken events
DsyncDeactivated,DsyncDeactivatedData, and related enum classes (breaking change)DsyncTokenCreated,DsyncTokenCreatedData,DsyncTokenRevoked, andDsyncTokenRevokedDataevent modelsfeat(vault): Rename ObjectModel class to VaultObject
ObjectModelclass toVaultObjectfor consistency with vault service naming (breaking change)get_nameandget_kvmethods to returnVaultObjectinstead ofObjectModelobjectinflection mapping that no longer appliesfeat(connect): Add name field to UserObject
namefield toUserObjectmodel for Connect applicationsfeat(groups): Move UserOrganizationMembershipBaseListData from authorization to groups
UserOrganizationMembershipBaseListDatamodel from authorization service to groups service (organizational change)feat(types): Add SNOWFLAKE log stream type; remove DOMAIN_SIGN_UP_RATE_LIMIT enum
SNOWFLAKEvalue toAuditLogConfigurationLogStreamTypeenumDOMAIN_SIGN_UP_RATE_LIMITvalue fromRadarStandaloneResponseControlenum (breaking at type level)API_KEY_UPDATEDevent type to webhook endpoint event enumsfeat(user_management)!: Add UserApiKeyUpdatedDataOwner model
UserApiKeyUpdatedDataOwnermodel for API key update events owned by usersTriggered by workos/openapi-spec@dee95fc
BEGIN_COMMIT_OVERRIDE
feat(api_keys): Add API key expiration and update event support (#495)
feat(user_management)!: Remove return_to param from revoke_session; add name field to user models (#495)
feat(directory_sync): Remove DsyncDeactivated models; add DsyncToken events (#495)
feat(vault): Rename ObjectModel class to VaultObject (#495)
feat(connect): Add name field to UserObject (#495)
feat(groups): Move UserOrganizationMembershipBaseListData from authorization to groups (#495)
feat(types): Add SNOWFLAKE log stream type; remove DOMAIN_SIGN_UP_RATE_LIMIT enum (#495)
feat(user_management)!: Add UserApiKeyUpdatedDataOwner model (#495)
END_COMMIT_OVERRIDE