Skip to content

Conversation

@antn
Copy link
Member

@antn antn commented Nov 20, 2025

Toward AUTH-5515.

Description

Contains:

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[ ] Yes

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.

@antn antn self-assigned this Nov 20, 2025
@antn antn requested a review from a team as a code owner November 20, 2025 12:52
@antn antn requested a review from dandorman November 20, 2025 12:52
@linear
Copy link

linear bot commented Nov 20, 2025

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Nov 20, 2025

Greptile Overview

Greptile Summary

Version bump to 5.33.0 to release the invitation resend functionality added in PR #494.

The included changes from PR #494 add a resend_invitation method to both sync and async user management modules, following the established SDK patterns:

  • Properly implements both sync (UserManagement) and async (AsyncUserManagement) variants
  • Includes comprehensive test coverage for success and error cases (expired, revoked, accepted, not found)
  • Follows existing code patterns for similar invitation operations (create, revoke)
  • Uses proper Pydantic model validation for response handling

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • Simple version bump for a well-tested feature release. The included functionality follows established SDK patterns, has comprehensive test coverage including error cases, and implements both sync/async variants correctly per the CLAUDE.md guidelines. No security concerns, no violations of custom rules, and no breaking changes.
  • No files require special attention

Important Files Changed

File Analysis

Filename Score Overview
workos/about.py 5/5 Version bumped from 5.32.0 to 5.33.0 for release - straightforward change

Sequence Diagram

sequenceDiagram
    participant Client as Client Code
    participant UM as UserManagement/AsyncUserManagement
    participant HTTP as HTTP Client
    participant API as WorkOS API

    Client->>UM: resend_invitation(invitation_id)
    UM->>HTTP: request(INVITATION_RESEND_PATH, POST)
    HTTP->>API: POST /user_management/invitations/{id}/resend
    
    alt Success (200)
        API-->>HTTP: Invitation response
        HTTP-->>UM: response
        UM->>UM: Invitation.model_validate(response)
        UM-->>Client: Invitation object
    else Error (404/400)
        API-->>HTTP: Error response
        Note over API,HTTP: not_found, invite_expired,<br/>invite_revoked, invite_accepted
        HTTP-->>UM: Exception
        UM-->>Client: Exception raised
    end
Loading

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

@antn antn merged commit 3e5b4f0 into main Nov 21, 2025
6 checks passed
@antn antn deleted the 5.33.0 branch November 21, 2025 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants