Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: workos/workos-node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.3.0
Choose a base ref
...
head repository: workos/workos-node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.3.1
Choose a head ref
  • 2 commits
  • 5 files changed
  • 2 contributors

Commits on Feb 11, 2026

  1. Rename api_key.deleted event type to api_key.revoked (#1476)

    ## Description
    
    The SDK currently defines the API key event type as `api_key.deleted`,
    but the actual WorkOS API expects `api_key.revoked`. This mismatch
    causes a 400 error when passing `api_key.deleted` to `listEvents()`:
    
    ```
    GenericServerException: Invalid name parameter, received: 'api_key.deleted'. You must pass in valid event names
    ```
    
    The [WorkOS Events documentation](https://workos.com/docs/events) lists
    this event as **"API key revoked event"** with the type
    `api_key.revoked`.
    
    ### Changes
    
    **`src/common/interfaces/event.interface.ts`**
    - `ApiKeyDeletedEvent` → `ApiKeyRevokedEvent`
    - `ApiKeyDeletedEventResponse` → `ApiKeyRevokedEventResponse`
    - Event literal `'api_key.deleted'` → `'api_key.revoked'`
    - Updated `Event` and `EventResponse` union types
    
    **`src/common/serializers/event.serializer.ts`**
    - Deserialisation case `'api_key.deleted'` → `'api_key.revoked'`
    
    This is consistent with other revocable resources in the SDK that
    already use `revoked` (e.g. `invitation.revoked`, `session.revoked`).
    
    Closes #1475
    
    ## Documentation
    
    Does this require changes to the WorkOS Docs? E.g. the [API
    Reference](https://workos.com/docs/reference) or code snippets need
    updates.
    
    - [ ] Yes
    
    The [Events documentation](https://workos.com/docs/events) already lists
    the correct event name `api_key.revoked`. No documentation changes are
    required.
    smorimoto authored Feb 11, 2026
    Configuration menu
    Copy the full SHA
    bbabf18 View commit details
    Browse the repository at this point in the history
  2. Bump to v8.3.1 (#1477)

    ## Description
    
    This releases includes:
    
    - #1476 
    
    ## Documentation
    
    Does this require changes to the WorkOS Docs? E.g. the [API
    Reference](https://workos.com/docs/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.
    stanleyphu authored Feb 11, 2026
    Configuration menu
    Copy the full SHA
    641ee44 View commit details
    Browse the repository at this point in the history
Loading