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

feat(generated): Changes to pipes - #777

Merged
gjtorikian merged 3 commits into
mainfrom
oagen/batch-f9fdac50
Nov 13, 2026
Merged

gjtorikian merged 3 commits into
mainfrom
oagen/batch-f9fdac50

Conversation

@workos-sdk-automation

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

Copy link
Copy Markdown
Contributor

Summary

feat(pipes): Update Pipes API surface

  • Added enum PipesProviderOwnership.
  • Added parameter PipesProvider.listForOrganization.ownership.
  • Changed errors for endpoint GET /organizations/{organizationId}/data_integration_configurations.
  • Added parameter PipesProvider.configure.ownership.

Triggered by workos/openapi-spec@d4538c8

BEGIN_COMMIT_OVERRIDE
feat(pipes): Update Pipes API surface (#777)
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 added the autogenerated Autogenerated code or content label Nov 13, 2026
@workos-sdk-automation
workos-sdk-automation Bot requested review from a team as code owners November 13, 2026 20:15
@workos-sdk-automation workos-sdk-automation Bot added the autogenerated Autogenerated code or content label Nov 13, 2026
@greptile-apps

greptile-apps Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 3/5

[Medium impact] The updates reach Directory Sync, Pipes, and shared response-model workflows.

Preserve existing SSO imports and connected-account positional arguments before merging.

Findings

  1. P1 Existing SSO imports fail ▶
  2. P1 Account arguments shift fields ▶
Fix with agent prompt
### Issue 1
src/workos/common/models/__init__.py:2078-2079
The rename removes `SSORequiredOAuthErrorBodyWithConnectionIdsListEmailPendingAuthenticationToken` even though its fields have not changed. Applications importing that name from `workos.common` or `workos.common.models` now fail at startup with `ImportError`. Keep the old name and module as compatibility aliases while exposing the shorter name.

### Issue 2
src/workos/pipes/models/create_connected_account.py:24
Adding `config` before `access_token` changes the positional arguments of these public dataclasses. For example, `CreateConnectedAccount("label", "account", "token")` previously set `access_token`; it now sets `config`, leaving `access_token` empty. `to_dict()` then emits the token under the wrong key.

Append the new fields after all existing fields, or make only the new fields keyword-only. Apply the same fix to the other three changed connected-account dataclasses.

---

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

Summary

Adds provider ownership selection, connected-account configuration and import metadata, scoped Directory Sync methods, and optional event fields.

  • Directory callers can list and fetch users and groups within a Directory.
  • Pipes imports and updates can carry provider settings with each connection.
  • Pipes provider requests can target user or organization ownership.
  • Shared responses now carry more event and credential details.
  • Generated docs and sync records reflect the updated API descriptions.

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

Comment on lines +2078 to +2079
from .sso_required_oauth_error_body_with_connection_ids_list_email import (
SSORequiredOAuthErrorBodyWithConnectionIdsListEmail as SSORequiredOAuthErrorBodyWithConnectionIdsListEmail,

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.

P1 Existing SSO imports fail

The rename removes SSORequiredOAuthErrorBodyWithConnectionIdsListEmailPendingAuthenticationToken even though its fields have not changed. Applications importing that name from workos.common or workos.common.models now fail at startup with ImportError. Keep the old name and module as compatibility aliases while exposing the shorter name.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/workos/common/models/__init__.py
Line: 2078-2079

Comment:
**Existing SSO imports fail**

The rename removes `SSORequiredOAuthErrorBodyWithConnectionIdsListEmailPendingAuthenticationToken` even though its fields have not changed. Applications importing that name from `workos.common` or `workos.common.models` now fail at startup with `ImportError`. Keep the old name and module as compatibility aliases while exposing the shorter name.

---

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

"""A mutable, non-unique connection label; null clears it. Not an account identifier."""
account_identifier: str | None = None
"""A developer-attested account identifier; null clears it."""
config: dict[str, str] | None = None

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.

P1 Account arguments shift fields

Adding config before access_token changes the positional arguments of these public dataclasses. For example, CreateConnectedAccount("label", "account", "token") previously set access_token; it now sets config, leaving access_token empty. to_dict() then emits the token under the wrong key.

Append the new fields after all existing fields, or make only the new fields keyword-only. Apply the same fix to the other three changed connected-account dataclasses.

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

Comment:
**Account arguments shift fields**

Adding `config` before `access_token` changes the positional arguments of these public dataclasses. For example, `CreateConnectedAccount("label", "account", "token")` previously set `access_token`; it now sets `config`, leaving `access_token` empty. `to_dict()` then emits the token under the wrong key.

Append the new fields after all existing fields, or make only the new fields keyword-only. Apply the same fix to the other three changed connected-account dataclasses.

---

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

@gjtorikian
gjtorikian merged commit 2cb5d5e into main Nov 13, 2026
12 of 13 checks passed
@gjtorikian
gjtorikian deleted the oagen/batch-f9fdac50 branch November 13, 2026 20:23
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