pyeudiw.presentation_exchange.schemas package

Submodules

pyeudiw.presentation_exchange.schemas.oid4vc_presentation_definition module

class pyeudiw.presentation_exchange.schemas.oid4vc_presentation_definition.Constraints(*, limit_disclosure: LimitDisclosure | None = None, fields: List[Any] | None = None)[source]

Bases: BaseModel

fields: List[Any] | None
limit_disclosure: LimitDisclosure | None
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyeudiw.presentation_exchange.schemas.oid4vc_presentation_definition.InputDescriptor(*, id: str, name: str | None = None, purpose: str | None = None, format: PresentationDefinitionClaimFormatDesignations | None = None, group: List[str] | None = None, constraints: Constraints)[source]

Bases: BaseModel

constraints: Constraints
format: PresentationDefinitionClaimFormatDesignations | None
group: List[str] | None
id: str
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str | None
purpose: str | None
class pyeudiw.presentation_exchange.schemas.oid4vc_presentation_definition.LimitDisclosure(*values)[source]

Bases: Enum

preferred = 'preferred'
required = 'required'
class pyeudiw.presentation_exchange.schemas.oid4vc_presentation_definition.PresentationDefinition(*, id: str, input_descriptors: List[InputDescriptor], submission_requirements: List[SubmissionRequirement] | None = None)[source]

Bases: BaseModel

id: str
input_descriptors: List[InputDescriptor]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

submission_requirements: List[SubmissionRequirement] | None
class pyeudiw.presentation_exchange.schemas.oid4vc_presentation_definition.PresentationDefinitionClaimFormatDesignations(root: RootModelRootType = PydanticUndefined)[source]

Bases: RootModel[Union[Dict[Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern='^jwt$|^jwt_vc$|^jwt_vp$')])], PresentationDefinitionClaimFormatDesignations1], Dict[Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern='^ldp_vc$|^ldp_vp$|^ldp$')])], PresentationDefinitionClaimFormatDesignations2], Dict[Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern='^dc\+sd-jwt$')])], PresentationDefinitionClaimFormatDesignations3]]]

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

root: Dict[Annotated[str, Field(pattern='^jwt$|^jwt_vc$|^jwt_vp$')], PresentationDefinitionClaimFormatDesignations1] | Dict[Annotated[str, Field(pattern='^ldp_vc$|^ldp_vp$|^ldp$')], PresentationDefinitionClaimFormatDesignations2] | Dict[Annotated[str, Field(pattern='^dc\\+sd-jwt$')], PresentationDefinitionClaimFormatDesignations2]
class pyeudiw.presentation_exchange.schemas.oid4vc_presentation_definition.PresentationDefinitionClaimFormatDesignations1(*, alg: Annotated[List[str] | None, MinLen(min_length=1)] = None)[source]

Bases: BaseModel

alg: List[str] | None
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyeudiw.presentation_exchange.schemas.oid4vc_presentation_definition.PresentationDefinitionClaimFormatDesignations2(*, proof_type: Annotated[List[str] | None, MinLen(min_length=1)] = None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

proof_type: List[str] | None
class pyeudiw.presentation_exchange.schemas.oid4vc_presentation_definition.PresentationDefinitionClaimFormatDesignations3[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyeudiw.presentation_exchange.schemas.oid4vc_presentation_definition.Rule(*values)[source]

Bases: Enum

pick = 'pick'
class pyeudiw.presentation_exchange.schemas.oid4vc_presentation_definition.SubmissionRequirement(root: RootModelRootType = PydanticUndefined)[source]

Bases: RootModel[SubmissionRequirement1]

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

root: SubmissionRequirement1
class pyeudiw.presentation_exchange.schemas.oid4vc_presentation_definition.SubmissionRequirement1(*, name: str | None = None, rule: Rule, count: Annotated[int, None, Interval(gt=None, ge=1, lt=None, le=None), None] | None = None, from_: str)[source]

Bases: BaseModel

count: conint(ge=1) | None
from_: str
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str | None
rule: Rule

Module contents