← 输入框|github.com|刷新
Skip to content

feat(generated): Changes to events, pipes, user_management, and 2 more services - #768

Merged
workos-sdk-automation[bot] merged 7 commits into
mainfrom
oagen/batch-24b6ce96
Nov 4, 2026
Merged

workos-sdk-automation[bot] merged 7 commits into
mainfrom
oagen/batch-24b6ce96

Conversation

@workos-sdk-automation

@workos-sdk-automation workos-sdk-automation Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

feat(events)!: SDK surface change: Parameter type changed for "order" on "Events.list_events"

  • SDK surface change: Parameter type changed for "order" on "Events.list_events".

feat(pipes)!: Change Pipes API surface

  • SDK surface change: Parameter "body" renamed to "user_id" on "Pipes.authorize_data_integration".
  • SDK surface change: Parameter "body" renamed to "user_id" on "Pipes.update_data_integration_api_key".
  • SDK surface change: Required parameter "secret" added to "Pipes.update_data_integration_api_key".
  • SDK surface change: Parameter "body" renamed to "user_id" on "Pipes.update_data_integration_client_credentials".
  • SDK surface change: Required parameter "client_id" added to "Pipes.update_data_integration_client_credentials".
  • SDK surface change: Required parameter "client_secret" added to "Pipes.update_data_integration_client_credentials".
  • SDK surface change: Symbol "AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequest" was removed.
  • SDK surface change: Symbol "AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.account_display_name" was removed.
  • SDK surface change: Symbol "AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.config" was removed.
  • SDK surface change: Symbol "AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.connection_intent" was removed.
  • SDK surface change: Symbol "AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.connection_owner" was removed.
  • SDK surface change: Symbol "AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.organization_id" was removed.
  • SDK surface change: Symbol "AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.return_to" was removed.
  • SDK surface change: Symbol "AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.user_id" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.account_display_name" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.account_identifier" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.api_key_last_4" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.auth_method" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.client_id" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.client_secret_last_4" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.config" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.connection_role" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.created_at" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.established_by_user_id" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.id" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.object" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.organization_id" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.scopes" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.state" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.state_reason" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.updated_at" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.user_id" was removed.
  • SDK surface change: Symbol "ConnectedAccountWriteResponse.warnings" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertApiKeyRequest2" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertApiKeyRequest2.account_display_name" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertApiKeyRequest2.account_identifier" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertApiKeyRequest2.connected_account_id" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertApiKeyRequest2.connection_owner" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertApiKeyRequest2.organization_id" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertApiKeyRequest2.secret" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertApiKeyRequest2.user_id" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertClientCredentialsRequest2" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertClientCredentialsRequest2.account_display_name" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertClientCredentialsRequest2.account_identifier" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertClientCredentialsRequest2.client_id" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertClientCredentialsRequest2.client_secret" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertClientCredentialsRequest2.config" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertClientCredentialsRequest2.connected_account_id" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertClientCredentialsRequest2.connection_owner" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertClientCredentialsRequest2.organization_id" was removed.
  • SDK surface change: Symbol "DataIntegrationsUpsertClientCredentialsRequest2.user_id" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsGetDataIntegrationAuthorizeUrlRequest" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.account_display_name" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.config" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.connected_account_id" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.connection_intent" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.connection_owner" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.organization_id" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.return_to" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.user_id" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertApiKeyRequest" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertApiKeyRequest.account_display_name" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertApiKeyRequest.account_identifier" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertApiKeyRequest.connected_account_id" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertApiKeyRequest.connection_intent" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertApiKeyRequest.connection_owner" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertApiKeyRequest.organization_id" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertApiKeyRequest.secret" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertApiKeyRequest.user_id" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertClientCredentialsRequest" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertClientCredentialsRequest.account_display_name" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertClientCredentialsRequest.account_identifier" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertClientCredentialsRequest.client_id" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertClientCredentialsRequest.client_secret" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertClientCredentialsRequest.config" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertClientCredentialsRequest.connected_account_id" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertClientCredentialsRequest.connection_intent" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertClientCredentialsRequest.connection_owner" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertClientCredentialsRequest.organization_id" was removed.
  • SDK surface change: Symbol "ReauthorizeDataIntegrationsUpsertClientCredentialsRequest.user_id" was removed.

feat(user_management)!: Change user management API surface

  • SDK surface change: Parameter "limit" removed from "UserManagement.list_waitlists".
  • SDK surface change: Parameter "before" removed from "UserManagement.list_waitlists".
  • SDK surface change: Parameter "after" removed from "UserManagement.list_waitlists".
  • SDK surface change: Parameter "order" removed from "UserManagement.list_waitlists".

feat(feature_flags): Add feature flag API surface

  • Added model FlagRule.
  • Added model FlagTarget.
  • Added model FlagTargetWithRuleId.
  • Added model FlagTargetWithValueType.
  • Added model FeatureFlagsFlagCreated.
  • Added model FeatureFlagsFlagCreatedData.
  • Added model FeatureFlagsFlagCreatedDataOwner.
  • Added model FeatureFlagsFlagCreatedContext.
  • Added model FeatureFlagsFlagCreatedContextActor.
  • Added model FeatureFlagsFlagDeleted.
  • Added model FeatureFlagsFlagDeletedData.
  • Added model FeatureFlagsFlagDeletedDataOwner.
  • Added model FeatureFlagsFlagDeletedContext.
  • Added model FeatureFlagsFlagDeletedContextActor.
  • Added model FeatureFlagsFlagRuleCreated.
  • Added model FeatureFlagsFlagRuleCreatedContext.
  • Added model FeatureFlagsFlagRuleCreatedContextActor.
  • Added model FeatureFlagsFlagRuleDeleted.
  • Added model FeatureFlagsFlagRuleDeletedContext.
  • Added model FeatureFlagsFlagRuleDeletedContextActor.
  • Added model FeatureFlagsFlagRuleUpdated.
  • Added model FeatureFlagsFlagRuleUpdatedContext.
  • Added model FeatureFlagsFlagRuleUpdatedContextActor.
  • Added model FeatureFlagsFlagRuleUpdatedContextPreviousAttribute.
  • Added model FeatureFlagsFlagRuleUpdatedContextPreviousAttributeData.
  • Added model FeatureFlagsFlagUpdated.
  • Added model FeatureFlagsFlagUpdatedData.
  • Added model FeatureFlagsFlagUpdatedDataOwner.
  • Added model FeatureFlagsFlagUpdatedContext.
  • Added model FeatureFlagsFlagUpdatedContextActor.
  • Added model FeatureFlagsFlagUpdatedContextPreviousAttribute.
  • Added model FeatureFlagsFlagUpdatedContextPreviousAttributeData.
  • Added model FeatureFlagsFlagUpdatedContextPreviousAttributeDataOwner.
  • Added model FeatureFlagsFlagTargetCreated.
  • Added model FeatureFlagsFlagTargetCreatedContext.
  • Added model FeatureFlagsFlagTargetCreatedContextActor.
  • Added model FeatureFlagsFlagTargetDeleted.
  • Added model FeatureFlagsFlagTargetDeletedContext.
  • Added model FeatureFlagsFlagTargetDeletedContextActor.
  • Added enum FeatureFlagsFlagCreatedContextActorSource.
  • Added enum FeatureFlagsFlagDeletedContextActorSource.
  • Added enum FeatureFlagsFlagRuleCreatedContextActorSource.
  • Added enum FeatureFlagsFlagRuleDeletedContextActorSource.
  • Added enum FeatureFlagsFlagRuleUpdatedContextActorSource.
  • Added enum FeatureFlagsFlagUpdatedContextActorSource.
  • Added enum FeatureFlagsFlagTargetCreatedContextActorSource.
  • Added enum FeatureFlagsFlagTargetDeletedContextActorSource.

feat(webhooks): Add webhook API surface

  • Added feature_flags.flag.created to CreateWebhookEndpointEvents.
  • Added feature_flags.flag.updated to CreateWebhookEndpointEvents.
  • Added feature_flags.flag.deleted to CreateWebhookEndpointEvents.
  • Added feature_flags.flag_rule.created to CreateWebhookEndpointEvents.
  • Added feature_flags.flag_rule.updated to CreateWebhookEndpointEvents.
  • Added feature_flags.flag_target.created to CreateWebhookEndpointEvents.
  • Added feature_flags.flag_rule.deleted to CreateWebhookEndpointEvents.
  • Added feature_flags.flag_target.deleted to CreateWebhookEndpointEvents.
  • Added feature_flags.flag.created to UpdateWebhookEndpointEvents.
  • Added feature_flags.flag.updated to UpdateWebhookEndpointEvents.
  • Added feature_flags.flag.deleted to UpdateWebhookEndpointEvents.
  • Added feature_flags.flag_rule.created to UpdateWebhookEndpointEvents.
  • Added feature_flags.flag_rule.updated to UpdateWebhookEndpointEvents.
  • Added feature_flags.flag_target.created to UpdateWebhookEndpointEvents.
  • Added feature_flags.flag_rule.deleted to UpdateWebhookEndpointEvents.
  • Added feature_flags.flag_target.deleted to UpdateWebhookEndpointEvents.

fix(events): Updated model EventSchema

  • Updated model EventSchema.

Triggered by workos/openapi-spec@c593dbf

BEGIN_COMMIT_OVERRIDE
feat(events): SDK surface change: Parameter type changed for "order" on "Events.list_events" (#768)
feat(pipes): Change Pipes API surface (#768)
feat(user_management): Change user management API surface (#768)
feat(feature_flags): Add feature flag API surface (#768)
feat(webhooks): Add webhook API surface (#768)
fix(events): Updated model EventSchema (#768)
END_COMMIT_OVERRIDE

…iKeys, AuditLogs, Authorization, ClientApi, Connect, DirectorySync, Events, FeatureFlags, Groups, MultiFactorAuth, OrganizationDomains, OrganizationMembership, Organizations, Pipes, PipesProvider, PlatformTeams, Radar, SSO, UserManagement, Vault, Webhooks, Widgets
@workos-sdk-automation
workos-sdk-automation Bot requested review from a team as code owners November 4, 2026 15:06
@workos-sdk-automation workos-sdk-automation Bot added the autogenerated Autogenerated code or content label Nov 4, 2026
@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[High impact] The PR changes public SDK contracts across several WorkOS workflows.

The PR appears safe to merge, with non-blocking fixes for a public type alias, create-method consistency, and PATCH test coverage.

Findings

  1. P2 Literal alias points to enum ▶
  2. P2 PATCH tests send no updates ▶
  3. P2 Create methods lack CORS option ▶
Fix with agent prompt
### Issue 1
src/workos/pipes/models/add_data_integrations_get_data_integration_authorize_url_request_connection_owner_literal.py:7
`AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwnerLiteral` points to the enum class, not `Literal["user", "organization"]`. Callers using this exported name in an annotation get type errors for valid plain strings. Alias `CreateDataIntegrationOwnershipLiteral` instead, in both the type-checking import and the lazy return.

### Issue 2
tests/test_authorization.py:107-114
The new tests for `patch_group_role_assignments` and `update_group_organization_memberships` send no `add` or `remove` entries, although both methods require at least one entry. They only check the method and URL, so dropping either list or breaking entry serialization would still pass. Add valid nonempty bodies and assert the outgoing JSON for both sync and async methods.

### Issue 3
src/workos/connect/models/create_oauth_application.py:29-30
`cors_origins` is added to `CreateOAuthApplication`, but neither `create_oauth_application` convenience method accepts it. Callers using those methods cannot set the new option at creation time without switching to `create_application` or making another request. Add and forward the keyword in both convenience methods.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

Regenerates SDK methods and models across several services.

  • Feature-flag events can be decoded and selected for webhooks.
  • Pipes calls can finish PKCE connections and target specific accounts.
  • Group membership changes can add and remove members together.
  • Group role assignments can be added and removed in one request.
  • Waitlist listing and email calls use updated API fields.
  • Event listing accepts updated order and timestamp inputs.
  • Connect OAuth applications can include CORS origins.

Intentional changes acknowledged by workos-sdk-automation[bot]: removing the old Pipes request models and body parameters, changing the event-order parameter, and removing waitlist paging options. The PR description explicitly lists these breaking changes.

Diagram

sequenceDiagram
    participant App
    participant WorkOS
    participant User
    App->>WorkOS: authorize_data_integration(code_challenge, return_to)
    WorkOS-->>App: url, state, completion
    App->>User: Redirect to authorization URL
    User->>WorkOS: Authorize provider access
    WorkOS-->>App: Redirect with connect_code and state
    App->>WorkOS: finish_connection(connect_code, code_verifier)
    WorkOS-->>App: connected_account
Loading

Reviews (1) · Last reviewed commit: "chore(generated): add release notes frag..." · Reviewed by Greptile


if TYPE_CHECKING:
from workos.common.models.create_data_integration_ownership import (
CreateDataIntegrationOwnership as AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwnerLiteral,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Literal alias points to enum

AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwnerLiteral points to the enum class, not Literal["user", "organization"]. Callers using this exported name in an annotation get type errors for valid plain strings. Alias CreateDataIntegrationOwnershipLiteral instead, in both the type-checking import and the lazy return.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/workos/pipes/models/add_data_integrations_get_data_integration_authorize_url_request_connection_owner_literal.py
Line: 7

Comment:
**Literal alias points to enum**

`AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwnerLiteral` points to the enum class, not `Literal["user", "organization"]`. Callers using this exported name in an annotation get type errors for valid plain strings. Alias `CreateDataIntegrationOwnershipLiteral` instead, in both the type-checking import and the lazy return.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Comment on lines +107 to +114
def test_patch_group_role_assignments(self, workos, httpx_mock):
httpx_mock.add_response(json={})
workos.authorization.patch_group_role_assignments("test_group_id")
request = httpx_mock.get_request()
assert request.method == "PATCH"
assert request.url.path.endswith(
"/authorization/groups/test_group_id/role_assignments"
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 PATCH tests send no updates

The new tests for patch_group_role_assignments and update_group_organization_memberships send no add or remove entries, although both methods require at least one entry. They only check the method and URL, so dropping either list or breaking entry serialization would still pass. Add valid nonempty bodies and assert the outgoing JSON for both sync and async methods.

Prompt To Fix With AI
This is a comment left during a code review.
Path: tests/test_authorization.py
Line: 107-114

Comment:
**PATCH tests send no updates**

The new tests for `patch_group_role_assignments` and `update_group_organization_memberships` send no `add` or `remove` entries, although both methods require at least one entry. They only check the method and URL, so dropping either list or breaking entry serialization would still pass. Add valid nonempty bodies and assert the outgoing JSON for both sync and async methods.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Comment on lines +29 to +30
cors_origins: list[str] | None = None
"""Origins allowed to call the OAuth token endpoint for this application from a browser."""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Create methods lack CORS option

cors_origins is added to CreateOAuthApplication, but neither create_oauth_application convenience method accepts it. Callers using those methods cannot set the new option at creation time without switching to create_application or making another request. Add and forward the keyword in both convenience methods.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/workos/connect/models/create_oauth_application.py
Line: 29-30

Comment:
**Create methods lack CORS option**

`cors_origins` is added to `CreateOAuthApplication`, but neither `create_oauth_application` convenience method accepts it. Callers using those methods cannot set the new option at creation time without switching to `create_application` or making another request. Add and forward the keyword in both convenience methods.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@gjtorikian gjtorikian changed the title feat(generated)!: Changes to events, pipes, user_management, and 2 more services feat(generated): Changes to events, pipes, user_management, and 2 more services Nov 4, 2026
@workos-sdk-automation
workos-sdk-automation Bot merged commit 87d6603 into main Nov 4, 2026
14 checks passed
@workos-sdk-automation
workos-sdk-automation Bot deleted the oagen/batch-24b6ce96 branch November 4, 2026 16:46
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.

0 participants