feat(generated)!: regenerate from spec (5 changes)#563
feat(generated)!: regenerate from spec (5 changes)#563workos-sdk-automation[bot] wants to merge 4 commits into
Conversation
Greptile SummaryThis is a generated SDK update regenerated from the OpenAPI spec, adding new API key expiration and update events, directory sync token lifecycle events, a
Confidence Score: 3/5Mostly safe to merge; the DsyncToken event constants gap means consumers cannot subscribe to or switch on the new dsync.token events using typed constants until a follow-up is cut. The core additions (CreateExpire, APIKeyUpdated models, user name field, Snowflake enum) are well-formed and consistent with existing patterns. The missing pkg/events/events.go and enums.go — both need DsyncTokenCreated and DsyncTokenRevoked entries to match the pattern every other dsync event follows. Important Files Changed
|
| { | ||
| "expires_at": "2030-01-01T00:00:00.000Z" | ||
| } |
There was a problem hiding this comment.
Fixture shape does not match the function's return type
CreateExpire returns *APIKey, but this fixture contains only {"expires_at": "..."}. The existing test for CreateExpire correctly uses testdata/api_key.json as its fixture, not this file, so it is currently unused. The manifest (oagen-manifest.json) lists this file, suggesting it was meant to be used somewhere, but no test reads it. If a test is added later that loads this fixture and deserialises it into an APIKey, all non-expires_at required fields will be zero-valued and assertions like result.ID will silently pass empty strings rather than failing loudly.
Summary
feat(api_keys): Add expire operation and API key update events
CreateExpireoperation to expire API keys immediately or schedule future expirationApiKeyUpdatedevent and related models (ApiKeyUpdatedData,ApiKeyUpdatedDataPreviousAttribute)expires_atfield required inApiKeyCreatedDataandApiKeyRevokedDataAPI_KEY_UPDATEDenum value to webhook event typesfeat(directory_sync): Remove deactivated event and add token lifecycle events
DsyncDeactivatedevent and related models (DsyncDeactivatedData,DsyncDeactivatedDataDomain) and enumsDsyncTokenCreatedandDsyncTokenRevokedevents with related data models for directory token lifecycle trackingfeat(user_management): Remove return_to from revoke session and add user name field
return_toparameter fromUserManagementRevokeSessionParamsnamefield toUserObject,CreateUser,UpdateUser,User, andEmailChangeConfirmationUsermodelsUserManagementGetLogoutURLParamsfields for clarityfeat(audit_logs): Add Snowflake as log stream type
SNOWFLAKEenum value toAuditLogConfigurationLogStreamTypefeat(radar): Remove domain sign-up rate limit control
DOMAIN_SIGN_UP_RATE_LIMITenum value fromRadarStandaloneResponseControlTriggered by workos/openapi-spec@dee95fc
BEGIN_COMMIT_OVERRIDE
feat(api_keys): Add expire operation and API key update events (#563)
feat(directory_sync): Remove deactivated event and add token lifecycle events (#563)
feat(user_management): Remove return_to from revoke session and add user name field (#563)
feat(audit_logs): Add Snowflake as log stream type (#563)
feat(radar): Remove domain sign-up rate limit control (#563)
END_COMMIT_OVERRIDE