Debian Codegraph @

src/auth0/management/types/identity.py

raw symbols SCIP
1 # This file was auto-generated by Fern from our API Definition.
2
3 import typing
4
5 import pydantic
6 from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7 from .identity_provider_enum import IdentityProviderEnum
8
9
10 class Identity(UniversalBaseModel):
11 """
12 This must be provided to verify primary social, enterprise and passwordless email identities. Also, is needed to verify secondary identities.
13 """
14
15 user_id: str = pydantic.Field()
16 """
17 user_id of the identity to be verified.
18 """
19
20 provider: IdentityProviderEnum
21 connection_id: typing.Optional[str] = pydantic.Field(default=None)
22 """
23 connection_id of the identity.
24 """
25
26 if IS_PYDANTIC_V2:
27 model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
28 else:
29
30 class Config:
31 frozen = True
32 smart_union = True
33 extra = pydantic.Extra.allow