fix(generated): Changes to multi_factor_auth - #732
Conversation
…s/{id}/challenge`
…iKeys, AuditLogs, Authorization, ClientApi, Connect, DirectorySync, Events, FeatureFlags, Groups, MultiFactorAuth, OrganizationDomains, OrganizationMembership, Organizations, OrganizationsDataProviders, Pipes, PipesProvider, PlatformTeams, Radar, SSO, UserManagement, Vault, Webhooks, Widgets
|
| DataIntegrationsGetUserTokenRequestConnectionOwner, | ||
| ) | ||
| from workos.common.models.data_integrations_list_response import ( | ||
| DataIntegrationsListResponse, | ||
| ) |
There was a problem hiding this comment.
list_user_data_providers now deserializes responses into the common DataIntegrationsListResponse, while workos.pipes.models.DataIntegrationsListResponse remains a separate class. Existing consumers importing the Pipes model will receive an object of a different type, so class-identity checks and related annotations can break. Re-export or alias the common implementation from the old Pipes module so both imports resolve to the same class.
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/workos/pipes/_resource.py
Line: 24-28
Comment:
**Pipes Response Type Changed**
`list_user_data_providers` now deserializes responses into the common `DataIntegrationsListResponse`, while `workos.pipes.models.DataIntegrationsListResponse` remains a separate class. Existing consumers importing the Pipes model will receive an object of a different type, so class-identity checks and related annotations can break. Re-export or alias the common implementation from the old Pipes module so both imports resolve to the same class.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Summary
fix(multi_factor_auth): Change errors for endpoint
POST /auth/factors/{id}/challengePOST /auth/factors/{id}/challenge.Triggered by workos/openapi-spec@949c30c
BEGIN_COMMIT_OVERRIDE
fix(multi_factor_auth): Change errors for endpoint
POST /auth/factors/{id}/challenge(#732)END_COMMIT_OVERRIDE