Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
* [#732](https://github.com/workos/workos-python/pull/732) fix(generated): regenerate from spec (1 change)

**Features**
* **[multi_factor_auth](https://workos.com/docs/reference/authkit/mfa)**:
* Changed errors for endpoint `POST /auth/factors/{id}/challenge`
* **[pipes](https://workos.com/docs/reference/pipes)**:
* Added `connection_owner` to `DataIntegrationsListResponseData`
* Added enum `DataIntegrationsListResponseDataConnectionOwner`
* Added `connection_role` to `DataIntegrationsListResponseDataConnectedAccount`
* Added `account_identifier` to `DataIntegrationsListResponseDataConnectedAccount`
* Added `account_display_name` to `DataIntegrationsListResponseDataConnectedAccount`
* Added enum `DataIntegrationsListResponseDataConnectedAccountConnectionRole`
* Added `connection_role` to `DataIntegrationInstallation`
* Added `account_identifier` to `DataIntegrationInstallation`
* Added `account_display_name` to `DataIntegrationInstallation`
* Added enum `DataIntegrationInstallationConnectionRole`
* Added `connection_owner` to `DataIntegrationsGetDataIntegrationAuthorizeUrlRequest`
* Added enum `DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner`
* **[connect](https://workos.com/docs/reference/workos-connect/standalone)**:
* Added `connection_role` to `ConnectedAccount`
* Added `account_identifier` to `ConnectedAccount`
* Added `account_display_name` to `ConnectedAccount`
* Added enum `ConnectedAccountConnectionRole`
* **[organizations](https://workos.com/docs/reference/organization)**:
* Added service `OrganizationsDataProviders`
* **[webhooks](https://workos.com/docs/reference/webhooks)**:
* Added `pipes.account_connection.add_failed` to `CreateWebhookEndpointEvents`
* Added `pipes.account_connection.connected` to `CreateWebhookEndpointEvents`
* Added `pipes.account_connection.connection_failed` to `CreateWebhookEndpointEvents`
* Added `pipes.account_connection.disconnected` to `CreateWebhookEndpointEvents`
* Added `pipes.account_connection.reauthorization_needed` to `CreateWebhookEndpointEvents`
* Added `pipes.account_connection.add_failed` to `UpdateWebhookEndpointEvents`
* Added `pipes.account_connection.connected` to `UpdateWebhookEndpointEvents`
* Added `pipes.account_connection.connection_failed` to `UpdateWebhookEndpointEvents`
* Added `pipes.account_connection.disconnected` to `UpdateWebhookEndpointEvents`
* Added `pipes.account_connection.reauthorization_needed` to `UpdateWebhookEndpointEvents`

**Fixes**
* **[multi_factor_auth](https://workos.com/docs/reference/authkit/mfa)**:
* Changed errors for endpoint `POST /auth/factors/{id}/challenge`
2 changes: 1 addition & 1 deletion .last-synced-sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d3fa61120f8b9e73972b9dc5f4b5ea2bc0526636
13ba15b32754d2d635b7799ab779867df2b611d6
51 changes: 51 additions & 0 deletions .oagen-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@
"src/workos/common/models/connect_application_oauth_redirect_uris.py",
"src/workos/common/models/connected_account.py",
"src/workos/common/models/connected_account_auth_method.py",
"src/workos/common/models/connected_account_connection_role.py",
"src/workos/common/models/connected_account_input.py",
"src/workos/common/models/connected_account_input_state.py",
"src/workos/common/models/connected_account_state.py",
"src/workos/common/models/connection_activated.py",
Expand Down Expand Up @@ -294,12 +296,19 @@
"src/workos/common/models/data_integration_credentials_input_type.py",
"src/workos/common/models/data_integration_credentials_response_error.py",
"src/workos/common/models/data_integration_custom_provider_authenticate_via.py",
"src/workos/common/models/data_integration_installation_connection_role.py",
"src/workos/common/models/data_integration_ownership.py",
"src/workos/common/models/data_integration_state.py",
"src/workos/common/models/data_integrations_get_data_integration_authorize_url_request_connection_owner.py",
"src/workos/common/models/data_integrations_get_user_token_request_connection_owner.py",
"src/workos/common/models/data_integrations_list_response.py",
"src/workos/common/models/data_integrations_list_response_data.py",
"src/workos/common/models/data_integrations_list_response_data_auth_methods.py",
"src/workos/common/models/data_integrations_list_response_data_connected_account.py",
"src/workos/common/models/data_integrations_list_response_data_connected_account_auth_method.py",
"src/workos/common/models/data_integrations_list_response_data_connected_account_connection_role.py",
"src/workos/common/models/data_integrations_list_response_data_connected_account_state.py",
"src/workos/common/models/data_integrations_list_response_data_connection_owner.py",
"src/workos/common/models/data_integrations_list_response_data_ownership.py",
"src/workos/common/models/data_integrations_upsert_api_key_request_connection_owner.py",
"src/workos/common/models/data_integrations_upsert_client_credentials_request_connection_owner.py",
Expand Down Expand Up @@ -483,7 +492,16 @@
"src/workos/common/models/permission_updated.py",
"src/workos/common/models/permission_updated_data.py",
"src/workos/common/models/pipe_connected_account.py",
"src/workos/common/models/pipe_connected_account_auth_method.py",
"src/workos/common/models/pipe_connected_account_connection_role.py",
"src/workos/common/models/pipe_connected_account_state.py",
"src/workos/common/models/pipes_account_connection_add_failed.py",
"src/workos/common/models/pipes_account_connection_add_failed_data.py",
"src/workos/common/models/pipes_account_connection_connected.py",
"src/workos/common/models/pipes_account_connection_connection_failed.py",
"src/workos/common/models/pipes_account_connection_connection_failed_data.py",
"src/workos/common/models/pipes_account_connection_disconnected.py",
"src/workos/common/models/pipes_account_connection_reauthorization_needed.py",
"src/workos/common/models/pipes_connected_account_connected.py",
"src/workos/common/models/pipes_connected_account_connection_failed.py",
"src/workos/common/models/pipes_connected_account_connection_failed_data.py",
Expand Down Expand Up @@ -672,6 +690,9 @@
"src/workos/organizations/models/organization_input.py",
"src/workos/organizations/models/update_audit_logs_retention.py",
"src/workos/organizations/models/update_organization.py",
"src/workos/organizations_data_providers/__init__.py",
"src/workos/organizations_data_providers/_resource.py",
"src/workos/organizations_data_providers/models/__init__.py",
"src/workos/pipes/__init__.py",
"src/workos/pipes/_resource.py",
"src/workos/pipes/models/__init__.py",
Expand Down Expand Up @@ -771,6 +792,7 @@
"src/workos/types/organization_domains/__init__.py",
"src/workos/types/organization_membership/__init__.py",
"src/workos/types/organizations/__init__.py",
"src/workos/types/organizations_data_providers/__init__.py",
"src/workos/types/pipes/__init__.py",
"src/workos/types/pipes_provider/__init__.py",
"src/workos/types/platform_teams/__init__.py",
Expand Down Expand Up @@ -1366,6 +1388,13 @@
"tests/fixtures/permission_updated.json",
"tests/fixtures/permission_updated_data.json",
"tests/fixtures/pipe_connected_account.json",
"tests/fixtures/pipes_account_connection_add_failed.json",
"tests/fixtures/pipes_account_connection_add_failed_data.json",
"tests/fixtures/pipes_account_connection_connected.json",
"tests/fixtures/pipes_account_connection_connection_failed.json",
"tests/fixtures/pipes_account_connection_connection_failed_data.json",
"tests/fixtures/pipes_account_connection_disconnected.json",
"tests/fixtures/pipes_account_connection_reauthorization_needed.json",
"tests/fixtures/pipes_connected_account_connected.json",
"tests/fixtures/pipes_connected_account_connection_failed.json",
"tests/fixtures/pipes_connected_account_connection_failed_data.json",
Expand Down Expand Up @@ -1544,6 +1573,8 @@
"tests/test_organization_membership.py",
"tests/test_organization_membership_models_round_trip.py",
"tests/test_organizations.py",
"tests/test_organizations_data_providers.py",
"tests/test_organizations_data_providers_models_round_trip.py",
"tests/test_organizations_models_round_trip.py",
"tests/test_pipes.py",
"tests/test_pipes_models_round_trip.py",
Expand Down Expand Up @@ -2588,6 +2619,26 @@
"DELETE /user_management/authkit_oauth_resources/{id}": {
"sdkMethod": "delete_authkit_oauth_resource",
"service": "user_management"
},
"GET /organizations/{organization_id}/connected_accounts/{slug}": {
"sdkMethod": "get_organization_connected_account",
"service": "organizations_data_providers"
},
"POST /organizations/{organization_id}/connected_accounts/{slug}": {
"sdkMethod": "create_organization_connected_account",
"service": "organizations_data_providers"
},
"PUT /organizations/{organization_id}/connected_accounts/{slug}": {
"sdkMethod": "update_organization_connected_account",
"service": "organizations_data_providers"
},
"DELETE /organizations/{organization_id}/connected_accounts/{slug}": {
"sdkMethod": "delete_organization_connected_account",
"service": "organizations_data_providers"
},
"GET /organizations/{organization_id}/data_providers": {
"sdkMethod": "list_organization_data_providers",
"service": "organizations_data_providers"
}
}
}
14 changes: 14 additions & 0 deletions src/workos/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
OrganizationMembershipService,
)
from .organizations._resource import AsyncOrganizations, Organizations
from .organizations_data_providers._resource import (
AsyncOrganizationsDataProviders,
OrganizationsDataProviders,
)
from .passwordless import AsyncPasswordless, Passwordless
from .pipes._resource import AsyncPipes, Pipes
from .pipes_provider._resource import AsyncPipesProvider, PipesProvider
Expand Down Expand Up @@ -123,6 +127,11 @@ def groups(self) -> Groups:
"""Groups API resources."""
return Groups(self)

@functools.cached_property
def organizations_data_providers(self) -> OrganizationsDataProviders:
"""Organizations Data Providers API resources."""
return OrganizationsDataProviders(self)

@functools.cached_property
def platform_teams(self) -> PlatformTeams:
"""Platform Teams API resources."""
Expand Down Expand Up @@ -271,6 +280,11 @@ def groups(self) -> AsyncGroups:
"""Groups API resources."""
return AsyncGroups(self)

@functools.cached_property
def organizations_data_providers(self) -> AsyncOrganizationsDataProviders:
"""Organizations Data Providers API resources."""
return AsyncOrganizationsDataProviders(self)

@functools.cached_property
def platform_teams(self) -> AsyncPlatformTeams:
"""Platform Teams API resources."""
Expand Down
Loading