Skip to content

feat(generated): update generated SDK from spec changes#465

Merged
gjtorikian merged 1 commit into
mainfrom
oagen/spec-update-ce743dc5ff16fcef19f92866f4994a64ba1862b2
Apr 27, 2026
Merged

feat(generated): update generated SDK from spec changes#465
gjtorikian merged 1 commit into
mainfrom
oagen/spec-update-ce743dc5ff16fcef19f92866f4994a64ba1862b2

Conversation

@workos-sdk-automation
Copy link
Copy Markdown
Contributor

Summary

update generated SDK from spec changes

Spec Diff

  • Added: | Removed: | Modified: | Breaking:

Triggered by openapi-spec commit: ce743dc5ff16fcef19f92866f4994a64ba1862b2

@workos-sdk-automation workos-sdk-automation Bot requested a review from a team as a code owner April 27, 2026 20:38
@workos-sdk-automation workos-sdk-automation Bot added the autogenerated Autogenerated code or content label Apr 27, 2026
@workos-sdk-automation workos-sdk-automation Bot requested a review from a team as a code owner April 27, 2026 20:38
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Apr 27, 2026

Greptile Summary

This is a generated SDK update driven by OpenAPI spec changes. It introduces a new Groups module (CRUD + membership management), new WaitlistUser models, new DomainVerificationIntentOptions, and fixes several POST/PATCH/PUT methods that were incorrectly sending body parameters as query params instead of in the request body.

Several public methods have been renamed (e.g. list_organization_membership_resourceslist_resources_for_membership, create_role_permissionadd_organization_role_permission) and the admin_emails keyword in AdminPortal#generate_link has been renamed to it_contact_emails — these are breaking changes for existing SDK users.

Confidence Score: 4/5

Safe to merge — generated changes are internally consistent and all tests are updated; breaking renames are intentional spec-driven changes.

No P0 or P1 bugs found. The params-to-body migration is a genuine bug fix applied consistently. All renamed methods have corresponding test updates and no stale references remain in the repo. The UpdateGroup = UpdateAuthorizationPermission alias is valid (fields match). Score stays at 4 rather than 5 due to multiple breaking API renames that downstream SDK consumers will need to accommodate.

lib/workos/authorization.rb — 11 public method renames; lib/workos/admin_portal.rb — admin_emails → it_contact_emails rename.

Important Files Changed

Filename Overview
lib/workos/authorization.rb Fixes params-vs-body bug for POST/PATCH methods; renames 11 public methods — all breaking changes for existing callers.
lib/workos/admin_portal.rb Renames admin_emails parameter to it_contact_emails in generate_link — breaking change for existing callers.
lib/workos/groups.rb New Groups class with full CRUD (list, create, get, update, delete) and group-membership operations; follows existing SDK patterns.
lib/workos/user_management_organization_membership_groups.rb New class exposing list_organization_membership_groups for the user management OM → groups relation; clean implementation.
lib/workos/user_management.rb Fixes params-vs-body bug for create/update user and create/update organization membership calls; no logic changes otherwise.
lib/workos/groups/update_group.rb Aliases UpdateGroup to UpdateAuthorizationPermission (both share name/description fields); fields match correctly.
lib/workos/shared/waitlist_user.rb New WaitlistUser model with standard BaseModel pattern; accompanied by approved/created/denied event variants.
lib/workos/admin_portal/intent_options.rb Adds domain_verification field to IntentOptions, backed by new DomainVerificationIntentOptions model.
test/workos/test_groups.rb New test file covers all 8 Groups endpoints with happy-path and auth-error cases.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    Client["WorkOS::Client"]

    Client --> Groups["Groups\n(new)"]
    Client --> UMOmGroups["UserManagementOrganization\nMembershipGroups\n(new)"]
    Client --> Authorization["Authorization\n(renamed methods)"]
    Client --> AdminPortal["AdminPortal\n(it_contact_emails)"]
    Client --> UserMgmt["UserManagement\n(body fix)"]

    Groups --> G1["list_organization_groups"]
    Groups --> G2["create_organization_group"]
    Groups --> G3["get/update/delete_organization_group"]
    Groups --> G4["list/create/delete\n_group_organization_memberships"]

    UMOmGroups --> UG1["list_organization_membership_groups"]

    Authorization --> A1["check ✓ body fix"]
    Authorization --> A2["list_resources_for_membership\n(was list_organization_membership_resources)"]
    Authorization --> A3["list_effective_permissions\n(was list_resource_permissions)"]
    Authorization --> A4["list_role_assignments\n(was list_organization_membership_role_assignments)"]
    Authorization --> A5["remove_role_assignment\n(was delete_organization_membership_role_assignment)"]
    Authorization --> A6["+ 6 more renames"]

    UserMgmt --> U1["create_user ✓ body fix"]
    UserMgmt --> U2["update_user ✓ body fix"]
    UserMgmt --> U3["create/update_organization_membership ✓ body fix"]
Loading

Reviews (1): Last reviewed commit: "fix(generated): update generated SDK fro..." | Re-trigger Greptile

@gjtorikian gjtorikian changed the title fix(generated): update generated SDK from spec changes feat(generated): update generated SDK from spec changes Apr 27, 2026
@gjtorikian gjtorikian merged commit 6c145d2 into main Apr 27, 2026
8 checks passed
@gjtorikian gjtorikian deleted the oagen/spec-update-ce743dc5ff16fcef19f92866f4994a64ba1862b2 branch April 27, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autogenerated Autogenerated code or content

Development

Successfully merging this pull request may close these issues.

1 participant