feat(generated): AdminPortal, Authorization, Webhooks, UserManagement, AuditLogs (batch 08085e9d)#510
Conversation
…ion, Webhooks, UserManagement, AuditLogs
Greptile SummaryThis PR regenerates the Ruby SDK from the updated OpenAPI spec. The main changes are:
Confidence Score: 4/5Safe to merge after fixing the typed interface mismatch for the new list APIs. Runtime SDK changes follow existing generated patterns, but one new RBI contract is incorrect for Sorbet users.
What T-Rex did
Important Files Changed
|
| ).returns(T::Array[WorkOS::CORSOriginResponse]) | ||
| end | ||
| def list_cors_origins(before:, after:, limit:, order:, request_options:); end |
There was a problem hiding this comment.
Fix list return types
The RBI declares list_cors_origins as returning T::Array, but the implementation returns WorkOS::Types::ListStruct.from_response and the generated test asserts WorkOS::Types::ListStruct. Sorbet users receive the wrong type for pagination metadata and next behavior; list_redirect_uris has the same mismatch at lines 363-365.
Prompt To Fix With AI
This is a comment left during a code review.
Path: rbi/workos/user_management.rbi
Line: 87-89
Comment:
**Fix list return types**
The RBI declares `list_cors_origins` as returning `T::Array`, but the implementation returns `WorkOS::Types::ListStruct.from_response` and the generated test asserts `WorkOS::Types::ListStruct`. Sorbet users receive the wrong type for pagination metadata and `next` behavior; `list_redirect_uris` has the same mismatch at lines 363-365.
How can I resolve this? If you propose a fix, please make it concise.
Summary
Regenerated SDK from spec changes.
Triggered by workos/openapi-spec@704603f