Skip to content

feat(generated): AdminPortal, Authorization, Webhooks, UserManagement, AuditLogs (batch 08085e9d)#120

Merged
workos-sdk-automation[bot] merged 2 commits into
mainfrom
oagen/batch-08085e9d
Jul 1, 2026
Merged

feat(generated): AdminPortal, Authorization, Webhooks, UserManagement, AuditLogs (batch 08085e9d)#120
workos-sdk-automation[bot] merged 2 commits into
mainfrom
oagen/batch-08085e9d

Conversation

@workos-sdk-automation

Copy link
Copy Markdown
Contributor

Summary

Regenerated SDK from spec changes.

Triggered by workos/openapi-spec@704603f

@greptile-apps

greptile-apps Bot commented Jul 1, 2026

Copy link
Copy Markdown

Greptile Summary

This is an auto-generated SDK regeneration from OpenAPI spec commit 704603f. It adds new webhook event variants, a UserRoleAssignmentSource model, new list_cors_origins and list_redirect_uris endpoints, a max_age auth parameter, and removes intent_options from GenerateLink (a breaking removal documented in the changelog).

  • New webhook events: Six AgentRegistration.* variants, authentication.reauthentication_succeeded, and pipes.connected_account.connection_failed added to both CreateWebhookEndpointEvents and UpdateWebhookEndpointEvents.
  • User role assignment source: New UserRoleAssignmentSource model and UserRoleAssignmentSourceType enum added; source is now a required (non-optional) field on UserRoleAssignment.
  • New list endpoints: GET /user_management/cors_origins and GET /user_management/redirect_uris added with full pagination and auto-paging support.

Confidence Score: 5/5

Safe to merge; all changes are auto-generated from a spec update and follow established patterns throughout the codebase.

Every new struct, enum variant, and API method is consistent with existing generated code. The new required source field on UserRoleAssignment is a deliberate breaking change documented in the changelog, test fixtures were updated accordingly, and the 12 new tests exercise the new endpoints across all standard error paths.

No files require special attention.

Important Files Changed

Filename Overview
src/resources/user_management.rs Adds max_age to GetAuthorizationUrlParams, new ListCorsOriginsParams/ListRedirectUrisParams structs, and full API methods with auto-paging for both new endpoints.
src/models/user_role_assignment.rs Adds required (non-optional) source: UserRoleAssignmentSource field; correctly breaking-documented in changelog.
src/models/user_role_assignment_source.rs New model file for UserRoleAssignmentSource; follows existing pattern with optional group_role_assignment_id.
src/enums/user_role_assignment_source_type.rs New enum with Direct, Group, and Unknown variants; correctly implements forward-compatible Unknown(String) pattern.
src/enums/create_webhook_endpoint_events.rs Adds 7 new event variants; as_str() and from_str() are consistent for all new additions.
src/enums/update_webhook_endpoint_events.rs Mirror of create_webhook_endpoint_events.rs changes; identical 7 new variants added consistently.
src/enums/audit_log_export_state.rs Adds Expired variant; all three arms (as_str, from_str, doc comment) updated consistently.
src/models/generate_link.rs Removes intent_options field; breaking removal is documented in changelog as a fix.
tests/user_management_test.rs Adds 12 new tests covering round-trip, auth errors, 404, rate-limit, server-error, and empty-page scenarios for both new list endpoints.
tests/fixtures/user_role_assignment.json Updated to include required source field; fixture is structurally correct for serde deserialization.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[OpenAPI Spec Update] --> B[Enums]
    A --> C[Models]
    A --> D[Resources]
    A --> E[Tests]

    B --> B1[AuditLogExportState + Expired]
    B --> B2[CreateWebhookEndpointEvents + 7 new variants]
    B --> B3[UpdateWebhookEndpointEvents + 7 new variants]
    B --> B4[UserRoleAssignmentSourceType New: Direct / Group / Unknown]

    C --> C1[AuditLogExport updated doc comment]
    C --> C2[GenerateLink - intent_options removed]
    C --> C3[UserRoleAssignment + source: UserRoleAssignmentSource]
    C --> C4[UserRoleAssignmentSource New model]

    D --> D1[GetAuthorizationUrlParams + max_age]
    D --> D2[list_cors_origins GET /user_management/cors_origins]
    D --> D3[list_redirect_uris GET /user_management/redirect_uris]

    E --> E1[12 new tests cors_origins + redirect_uris]
    E --> E2[Updated fixtures user_role_assignment json]
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    A[OpenAPI Spec Update] --> B[Enums]
    A --> C[Models]
    A --> D[Resources]
    A --> E[Tests]

    B --> B1[AuditLogExportState + Expired]
    B --> B2[CreateWebhookEndpointEvents + 7 new variants]
    B --> B3[UpdateWebhookEndpointEvents + 7 new variants]
    B --> B4[UserRoleAssignmentSourceType New: Direct / Group / Unknown]

    C --> C1[AuditLogExport updated doc comment]
    C --> C2[GenerateLink - intent_options removed]
    C --> C3[UserRoleAssignment + source: UserRoleAssignmentSource]
    C --> C4[UserRoleAssignmentSource New model]

    D --> D1[GetAuthorizationUrlParams + max_age]
    D --> D2[list_cors_origins GET /user_management/cors_origins]
    D --> D3[list_redirect_uris GET /user_management/redirect_uris]

    E --> E1[12 new tests cors_origins + redirect_uris]
    E --> E2[Updated fixtures user_role_assignment json]
Loading

Reviews (1): Last reviewed commit: "chore(generated): add release notes frag..." | Re-trigger Greptile

@workos-sdk-automation workos-sdk-automation Bot merged commit 791a73b into main Jul 1, 2026
5 checks passed
@workos-sdk-automation workos-sdk-automation Bot deleted the oagen/batch-08085e9d branch July 1, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

0 participants