Hi!
We recently upgraded from the WorkOS Python SDK v4 to v5 and noticed that SsoProviderType changed from an enum to a Literal type alias. In v4 we could write SsoProviderType.GoogleOAuth, but in v5 we have to pass the raw string "GoogleOAuth" since Literal types don’t have attributes at runtime.
Would you consider providing a companion enum or constants module alongside the Literal type? That way consumers get both the type safety from the Literal and a way to reference provider values without magic strings in their code.
Let me know if you have any further questions! Thanks!
Hi!
We recently upgraded from the WorkOS Python SDK v4 to v5 and noticed that
SsoProviderTypechanged from an enum to a Literal type alias. In v4 we could writeSsoProviderType.GoogleOAuth, but in v5 we have to pass the raw string"GoogleOAuth"since Literal types don’t have attributes at runtime.Would you consider providing a companion enum or constants module alongside the Literal type? That way consumers get both the type safety from the Literal and a way to reference provider values without magic strings in their code.
Let me know if you have any further questions! Thanks!