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,27 @@
* [#685](https://github.com/workos/workos-python/pull/685) feat(generated): regenerate from spec (1 change)

**Features**
* **[pipes](https://workos.com/docs/reference/pipes)**:
* Added model `DataIntegrationCredentialsDto`
* Added model `CustomProviderDefinition`
* Added model `CreateDataIntegration`
* Added model `UpdateCustomProviderDefinition`
* Added model `UpdateDataIntegration`
* Added model `DataIntegration`
* Added model `DataIntegrationList`
* Added model `DataIntegrationListListMetadata`
* Added model `DataIntegrationCredential`
* Added model `DataIntegrationCustomProvider`
* Added enum `DataIntegrationCredentialsType`
* Added enum `CustomProviderDefinitionAuthenticateVia`
* Added enum `UpdateCustomProviderDefinitionAuthenticateVia`
* Added enum `DataIntegrationState`
* Added enum `DataIntegrationCredentialType`
* Added enum `DataIntegrationCustomProviderAuthenticateVia`
* Added endpoint `GET /data-integrations`
* Added endpoint `POST /data-integrations`
* Added endpoint `GET /data-integrations/{slug}`
* Added endpoint `PUT /data-integrations/{slug}`
* Added endpoint `DELETE /data-integrations/{slug}`
* Added endpoint `POST /user_management/users/{user_id}/connected_accounts/{slug}`
* Added endpoint `PUT /user_management/users/{user_id}/connected_accounts/{slug}`
2 changes: 1 addition & 1 deletion .last-synced-sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dc04d30b352063b5c97e45de03be5c83629f5412
4b4e0618779460dbebc1cf5e0f02197c21796d1f
60 changes: 59 additions & 1 deletion .oagen-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 2,
"language": "python",
"generatedAt": "2026-07-01T18:19:12.330Z",
"generatedAt": "2026-07-02T14:58:45.916Z",
"files": [
"src/workos/_client.py",
"src/workos/admin_portal/__init__.py",
Expand Down Expand Up @@ -201,9 +201,14 @@
"src/workos/common/models/create_user_invite_options_locale.py",
"src/workos/common/models/create_user_password_hash_type.py",
"src/workos/common/models/create_webhook_endpoint_events.py",
"src/workos/common/models/custom_provider_definition_authenticate_via.py",
"src/workos/common/models/data_integration_access_token_response_error.py",
"src/workos/common/models/data_integration_credential_type.py",
"src/workos/common/models/data_integration_credentials_credentials_type.py",
"src/workos/common/models/data_integration_credentials_response_error.py",
"src/workos/common/models/data_integration_credentials_type.py",
"src/workos/common/models/data_integration_custom_provider_authenticate_via.py",
"src/workos/common/models/data_integration_state.py",
"src/workos/common/models/data_integrations_list_response_data_auth_methods.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_state.py",
Expand Down Expand Up @@ -415,6 +420,7 @@
"src/workos/common/models/session_revoked_data_impersonator.py",
"src/workos/common/models/session_revoked_data_status.py",
"src/workos/common/models/slim_role.py",
"src/workos/common/models/update_custom_provider_definition_authenticate_via.py",
"src/workos/common/models/update_user_password_hash_type.py",
"src/workos/common/models/update_webhook_endpoint_events.py",
"src/workos/common/models/update_webhook_endpoint_status.py",
Expand Down Expand Up @@ -548,18 +554,27 @@
"src/workos/pipes/_resource.py",
"src/workos/pipes/models/__init__.py",
"src/workos/pipes/models/connected_account.py",
"src/workos/pipes/models/connected_account_dto.py",
"src/workos/pipes/models/create_data_integration.py",
"src/workos/pipes/models/custom_provider_definition.py",
"src/workos/pipes/models/data_integration.py",
"src/workos/pipes/models/data_integration_access_token_response.py",
"src/workos/pipes/models/data_integration_access_token_response_access_token.py",
"src/workos/pipes/models/data_integration_authorize_url_response.py",
"src/workos/pipes/models/data_integration_credential.py",
"src/workos/pipes/models/data_integration_credentials_dto.py",
"src/workos/pipes/models/data_integration_credentials_response.py",
"src/workos/pipes/models/data_integration_credentials_response_credential.py",
"src/workos/pipes/models/data_integration_custom_provider.py",
"src/workos/pipes/models/data_integrations_get_data_integration_authorize_url_request.py",
"src/workos/pipes/models/data_integrations_get_user_token_request.py",
"src/workos/pipes/models/data_integrations_list_response.py",
"src/workos/pipes/models/data_integrations_list_response_data.py",
"src/workos/pipes/models/data_integrations_list_response_data_connected_account.py",
"src/workos/pipes/models/data_integrations_upsert_api_key_request.py",
"src/workos/pipes/models/data_integrations_vend_credentials_request.py",
"src/workos/pipes/models/update_custom_provider_definition.py",
"src/workos/pipes/models/update_data_integration.py",
"src/workos/pipes_provider/__init__.py",
"src/workos/pipes_provider/_resource.py",
"src/workos/pipes_provider/models/__init__.py",
Expand Down Expand Up @@ -814,6 +829,7 @@
"tests/fixtures/connect_application_oauth.json",
"tests/fixtures/connect_application_oauth_redirect_uris.json",
"tests/fixtures/connected_account.json",
"tests/fixtures/connected_account_dto.json",
"tests/fixtures/connection.json",
"tests/fixtures/connection_activated.json",
"tests/fixtures/connection_activated_data.json",
Expand All @@ -837,6 +853,7 @@
"tests/fixtures/create_authorization_permission.json",
"tests/fixtures/create_authorization_resource.json",
"tests/fixtures/create_cors_origin.json",
"tests/fixtures/create_data_integration.json",
"tests/fixtures/create_data_key_request.json",
"tests/fixtures/create_data_key_response.json",
"tests/fixtures/create_group.json",
Expand All @@ -858,14 +875,19 @@
"tests/fixtures/create_user_invite_options.json",
"tests/fixtures/create_user_organization_membership.json",
"tests/fixtures/create_webhook_endpoint.json",
"tests/fixtures/custom_provider_definition.json",
"tests/fixtures/data_integration.json",
"tests/fixtures/data_integration_access_token_response.json",
"tests/fixtures/data_integration_access_token_response_access_token.json",
"tests/fixtures/data_integration_authorize_url_response.json",
"tests/fixtures/data_integration_configuration_list_response.json",
"tests/fixtures/data_integration_configuration_response.json",
"tests/fixtures/data_integration_credential.json",
"tests/fixtures/data_integration_credentials.json",
"tests/fixtures/data_integration_credentials_dto.json",
"tests/fixtures/data_integration_credentials_response.json",
"tests/fixtures/data_integration_credentials_response_credential.json",
"tests/fixtures/data_integration_custom_provider.json",
"tests/fixtures/data_integrations_get_data_integration_authorize_url_request.json",
"tests/fixtures/data_integrations_get_user_token_request.json",
"tests/fixtures/data_integrations_list_response.json",
Expand Down Expand Up @@ -995,6 +1017,7 @@
"tests/fixtures/list_connect_application.json",
"tests/fixtures/list_connection.json",
"tests/fixtures/list_cors_origin_response.json",
"tests/fixtures/list_data_integration.json",
"tests/fixtures/list_directory.json",
"tests/fixtures/list_directory_group.json",
"tests/fixtures/list_directory_user_with_groups.json",
Expand Down Expand Up @@ -1132,6 +1155,8 @@
"tests/fixtures/update_audit_logs_retention.json",
"tests/fixtures/update_authorization_permission.json",
"tests/fixtures/update_authorization_resource.json",
"tests/fixtures/update_custom_provider_definition.json",
"tests/fixtures/update_data_integration.json",
"tests/fixtures/update_group.json",
"tests/fixtures/update_jwt_template.json",
"tests/fixtures/update_oauth_application.json",
Expand Down Expand Up @@ -1224,6 +1249,7 @@
"tests/test_organizations.py",
"tests/test_organizations_models_round_trip.py",
"tests/test_pipes.py",
"tests/test_pipes_models_round_trip.py",
"tests/test_pipes_provider.py",
"tests/test_radar.py",
"tests/test_sso.py",
Expand Down Expand Up @@ -2022,6 +2048,38 @@
"GET /user_management/redirect_uris": {
"sdkMethod": "list_redirect_uris",
"service": "user_management"
},
"GET /data-integrations": {
"sdkMethod": "list_data_integrations",
"service": "pipes"
},
"POST /data-integrations": {
"sdkMethod": "create_data_integration",
"service": "pipes"
},
"GET /data-integrations/{slug}": {
"sdkMethod": "get_data_integration",
"service": "pipes"
},
"PUT /data-integrations/{slug}": {
"sdkMethod": "update_data_integration",
"service": "pipes"
},
"DELETE /data-integrations/{slug}": {
"sdkMethod": "delete_data_integration",
"service": "pipes"
},
"POST /user_management/radar_challenges": {
"sdkMethod": "create_radar_challenge",
"service": "user_management"
},
"POST /user_management/users/{user_id}/connected_accounts/{slug}": {
"sdkMethod": "create_user_connected_account",
"service": "pipes"
},
"PUT /user_management/users/{user_id}/connected_accounts/{slug}": {
"sdkMethod": "update_user_connected_account",
"service": "pipes"
}
}
}
12 changes: 12 additions & 0 deletions src/workos/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@
from .models import CreateUserInviteOptionsLocale as CreateUserInviteOptionsLocale
from .models import CreateUserPasswordHashType as CreateUserPasswordHashType
from .models import CreateWebhookEndpointEvents as CreateWebhookEndpointEvents
from .models import (
CustomProviderDefinitionAuthenticateVia as CustomProviderDefinitionAuthenticateVia,
)
from .models import (
DataIntegrationAccessTokenResponseError as DataIntegrationAccessTokenResponseError,
)
Expand All @@ -179,6 +182,11 @@
from .models import (
DataIntegrationCredentialsResponseError as DataIntegrationCredentialsResponseError,
)
from .models import DataIntegrationCredentialsType as DataIntegrationCredentialsType
from .models import DataIntegrationCredentialType as DataIntegrationCredentialType
from .models import (
DataIntegrationCustomProviderAuthenticateVia as DataIntegrationCustomProviderAuthenticateVia,
)
from .models import (
DataIntegrationsListResponseDataAuthMethods as DataIntegrationsListResponseDataAuthMethods,
)
Expand All @@ -191,6 +199,7 @@
from .models import (
DataIntegrationsListResponseDataOwnership as DataIntegrationsListResponseDataOwnership,
)
from .models import DataIntegrationState as DataIntegrationState
from .models import DirectoryGroup as DirectoryGroup
from .models import DirectoryState as DirectoryState
from .models import DirectoryType as DirectoryType
Expand Down Expand Up @@ -402,6 +411,9 @@
from .models import SessionRevokedData as SessionRevokedData
from .models import SessionRevokedDataImpersonator as SessionRevokedDataImpersonator
from .models import SlimRole as SlimRole
from .models import (
UpdateCustomProviderDefinitionAuthenticateVia as UpdateCustomProviderDefinitionAuthenticateVia,
)
from .models import UpdateUserPasswordHashType as UpdateUserPasswordHashType
from .models import UpdateWebhookEndpointEvents as UpdateWebhookEndpointEvents
from .models import UpdateWebhookEndpointStatus as UpdateWebhookEndpointStatus
Expand Down
16 changes: 16 additions & 0 deletions src/workos/common/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@
from .create_webhook_endpoint_events import (
CreateWebhookEndpointEvents as CreateWebhookEndpointEvents,
)
from .custom_provider_definition_authenticate_via import (
CustomProviderDefinitionAuthenticateVia as CustomProviderDefinitionAuthenticateVia,
)
from .data_integration_access_token_response_error import (
DataIntegrationAccessTokenResponseError as DataIntegrationAccessTokenResponseError,
)
Expand All @@ -297,6 +300,15 @@
from .data_integration_credentials_response_error import (
DataIntegrationCredentialsResponseError as DataIntegrationCredentialsResponseError,
)
from .data_integration_credentials_type import (
DataIntegrationCredentialsType as DataIntegrationCredentialsType,
)
from .data_integration_credential_type import (
DataIntegrationCredentialType as DataIntegrationCredentialType,
)
from .data_integration_custom_provider_authenticate_via import (
DataIntegrationCustomProviderAuthenticateVia as DataIntegrationCustomProviderAuthenticateVia,
)
from .data_integrations_list_response_data_auth_methods import (
DataIntegrationsListResponseDataAuthMethods as DataIntegrationsListResponseDataAuthMethods,
)
Expand All @@ -309,6 +321,7 @@
from .data_integrations_list_response_data_ownership import (
DataIntegrationsListResponseDataOwnership as DataIntegrationsListResponseDataOwnership,
)
from .data_integration_state import DataIntegrationState as DataIntegrationState
from .directory_user_state import * # noqa: F401,F403
from .directory_group import DirectoryGroup as DirectoryGroup
from .directory_state import DirectoryState as DirectoryState
Expand Down Expand Up @@ -656,6 +669,9 @@
SessionRevokedDataImpersonator as SessionRevokedDataImpersonator,
)
from .slim_role import SlimRole as SlimRole
from .update_custom_provider_definition_authenticate_via import (
UpdateCustomProviderDefinitionAuthenticateVia as UpdateCustomProviderDefinitionAuthenticateVia,
)
from .update_user_password_hash_type import (
UpdateUserPasswordHashType as UpdateUserPasswordHashType,
)
Expand Down
5 changes: 1 addition & 4 deletions src/workos/common/models/connected_account_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class ConnectedAccountState(str, Enum):

CONNECTED = "connected"
NEEDS_REAUTHORIZATION = "needs_reauthorization"
DISCONNECTED = "disconnected"

@classmethod
def _missing_(cls, value: object) -> Optional["ConnectedAccountState"]:
Expand All @@ -26,6 +25,4 @@ def _missing_(cls, value: object) -> Optional["ConnectedAccountState"]:
return unknown


ConnectedAccountStateLiteral: TypeAlias = Literal[
"connected", "needs_reauthorization", "disconnected"
]
ConnectedAccountStateLiteral: TypeAlias = Literal["connected", "needs_reauthorization"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This file is auto-generated by oagen. Do not edit.

"""Enumeration of custom provider definition authenticate via values."""

from __future__ import annotations

from enum import Enum
from typing import Optional
from typing import Literal, TypeAlias


class CustomProviderDefinitionAuthenticateVia(str, Enum):
"""Known values for CustomProviderDefinitionAuthenticateVia."""

REQUEST_BODY = "request_body"
BASIC_AUTH_HEADER = "basic_auth_header"

@classmethod
def _missing_(
cls, value: object
) -> Optional["CustomProviderDefinitionAuthenticateVia"]:
if not isinstance(value, str):
return None
unknown = str.__new__(cls, value)
unknown._name_ = value.upper()
unknown._value_ = value
return unknown


CustomProviderDefinitionAuthenticateViaLiteral: TypeAlias = Literal[
"request_body", "basic_auth_header"
]
28 changes: 28 additions & 0 deletions src/workos/common/models/data_integration_credential_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This file is auto-generated by oagen. Do not edit.

"""Enumeration of data integration credential type values."""

from __future__ import annotations

from enum import Enum
from typing import Optional
from typing import Literal, TypeAlias


class DataIntegrationCredentialType(str, Enum):
"""Known values for DataIntegrationCredentialType."""

CUSTOM = "custom"
ORGANIZATION = "organization"

@classmethod
def _missing_(cls, value: object) -> Optional["DataIntegrationCredentialType"]:
if not isinstance(value, str):
return None
unknown = str.__new__(cls, value)
unknown._name_ = value.upper()
unknown._value_ = value
return unknown


DataIntegrationCredentialTypeLiteral: TypeAlias = Literal["custom", "organization"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file is auto-generated by oagen. Do not edit.

from typing import TypeAlias
from .data_integration_credential_type import DataIntegrationCredentialType

DataIntegrationCredentialsType: TypeAlias = DataIntegrationCredentialType
__all__ = ["DataIntegrationCredentialsType"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This file is auto-generated by oagen. Do not edit.

from typing import TypeAlias
from .custom_provider_definition_authenticate_via import (
CustomProviderDefinitionAuthenticateVia,
)

DataIntegrationCustomProviderAuthenticateVia: TypeAlias = (
CustomProviderDefinitionAuthenticateVia
)
__all__ = ["DataIntegrationCustomProviderAuthenticateVia"]
Loading