Skip to content

feat(generated)!: regenerate from spec (5 changes)#486

Open
workos-sdk-automation[bot] wants to merge 1 commit into
mainfrom
oagen/spec-update-eb5bcc44eddeb6ad299608224cfcfcaa74db966e
Open

feat(generated)!: regenerate from spec (5 changes)#486
workos-sdk-automation[bot] wants to merge 1 commit into
mainfrom
oagen/spec-update-eb5bcc44eddeb6ad299608224cfcfcaa74db966e

Conversation

@workos-sdk-automation
Copy link
Copy Markdown
Contributor

Summary

feat(authorization)!: Remove search parameter from listResources

  • Removed the search parameter from the listResources operation
  • This parameter is no longer accepted when filtering authorization resources

feat(authorization): Add resource filtering to listRoleAssignments

  • Added resource_id parameter to filter role assignments by resource ID
  • Added resource_external_id parameter to filter role assignments by resource external ID
  • Added resource_type_slug parameter to filter role assignments by resource type slug

feat(authorization): Add role_slug filter to listRoleAssignmentsForResource

  • Added role_slug parameter to listRoleAssignmentsForResource to filter assignments by role slug

feat(authorization): Add role_slug filter to listRoleAssignmentsForResourceByExternalId

  • Added role_slug parameter to listRoleAssignmentsForResourceByExternalId to filter assignments by role slug

feat(groups): Update addMember error handling

  • Updated error responses for the addMember operation

Triggered by workos/openapi-spec@eb5bcc4

BEGIN_COMMIT_OVERRIDE
feat(authorization)!: Remove search parameter from listResources
feat(authorization): Add resource filtering to listRoleAssignments
feat(authorization): Add role_slug filter to listRoleAssignmentsForResource
feat(authorization): Add role_slug filter to listRoleAssignmentsForResourceByExternalId
feat(groups): Update addMember error handling
END_COMMIT_OVERRIDE

@workos-sdk-automation workos-sdk-automation Bot added the autogenerated Autogenerated code or content label May 18, 2026
@workos-sdk-automation workos-sdk-automation Bot requested review from a team as code owners May 18, 2026 17:56
@workos-sdk-automation workos-sdk-automation Bot requested a review from mthadley May 18, 2026 17:56
@workos-sdk-automation workos-sdk-automation Bot added the autogenerated Autogenerated code or content label May 18, 2026
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 18, 2026

Greptile Summary

This PR regenerates the Ruby SDK from an updated OpenAPI spec, introducing new filter parameters to several authorization listing methods and removing the deprecated search parameter from list_resources.

  • list_role_assignments gains three new optional filters (resource_id, resource_external_id, resource_type_slug); all three are correctly threaded through the query params, fetch_next lambda, and filters passed to ListStruct.from_response.
  • list_role_assignments_for_resource and list_role_assignments_for_resource_by_external_id each gain an optional role_slug filter, propagated identically.
  • list_resources drops the search parameter (breaking change noted in the PR description); the removal is applied consistently across the method signature, query params, fetch_next, and filters.

Confidence Score: 5/5

Safe to merge — changes are additive optional filters on list methods, plus a clean removal of a deprecated parameter.

All new parameters are optional with nil defaults and are consistently threaded through query params, fetch_next pagination lambdas, and ListStruct filters. The breaking removal of search from list_resources is applied uniformly. The RBI stubs mirror the implementation exactly. No logic is altered beyond parameter propagation.

No files require special attention.

Important Files Changed

Filename Overview
lib/workos/authorization.rb New filter params added to three list methods; search removed from list_resources. All changes are consistent across method signatures, query params, fetch_next lambdas, and ListStruct filters.
rbi/workos/authorization.rbi Sorbet RBI stubs updated in lock-step with the .rb changes; new params added and search removed from the correct sig blocks and method stubs.
.oagen-manifest.json Generator manifest timestamp updated; no functional change.
.last-synced-sha Tracking SHA bumped to the new upstream spec commit; no functional change.

Sequence Diagram

sequenceDiagram
    participant Caller
    participant Authorization
    participant API

    Note over Authorization: list_role_assignments (updated)
    Caller->>Authorization: list_role_assignments(org_membership_id, resource_id?, resource_external_id?, resource_type_slug?)
    Authorization->>API: GET /authorization/organization_memberships/:id/role_assignments
    API-->>Authorization: paginated response
    Authorization-->>Caller: "ListStruct<UserRoleAssignment>"

    Note over Authorization: list_role_assignments_for_resource (updated)
    Caller->>Authorization: list_role_assignments_for_resource(resource_id, role_slug?)
    Authorization->>API: "GET /authorization/resources/:id/role_assignments?role_slug=..."
    API-->>Authorization: paginated response
    Authorization-->>Caller: "ListStruct<UserRoleAssignment>"

    Note over Authorization: list_resources (breaking change)
    Caller->>Authorization: list_resources(org_id?, resource_type_slug?, resource_external_id?, parent?)
    Note over Authorization: search param removed
    Authorization->>API: GET /authorization/resources
    API-->>Authorization: paginated response
    Authorization-->>Caller: "ListStruct<AuthorizationResource>"
Loading

Reviews (1): Last reviewed commit: "feat(generated)!: regenerate from spec (..." | Re-trigger Greptile

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