Common

Common module contains common models and functions to support different automations and handlers.

Model

class fair_wizard.automation.common.model.AuthorizedUserResponse(*, type: str = 'AuthorizedUserResponse', firstName: str | None, lastName: str | None, email: str | None, imageUrl: str | None, affiliation: str | None, externalId: str, externalLabel: str | None = None, userGroupUuids: list[UUID])[source]
model_computed_fields = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config = {'populate_by_name': True}

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

model_fields = {'affiliation': FieldInfo(annotation=Union[str, NoneType], required=True, alias='affiliation', alias_priority=2), 'email': FieldInfo(annotation=Union[str, NoneType], required=True, alias='email', alias_priority=2), 'external_id': FieldInfo(annotation=str, required=True, alias='externalId', alias_priority=2), 'external_label': FieldInfo(annotation=Union[str, NoneType], required=False, default=None, alias='externalLabel', alias_priority=2), 'first_name': FieldInfo(annotation=Union[str, NoneType], required=True, alias='firstName', alias_priority=2), 'image_url': FieldInfo(annotation=Union[str, NoneType], required=True, alias='imageUrl', alias_priority=2), 'last_name': FieldInfo(annotation=Union[str, NoneType], required=True, alias='lastName', alias_priority=2), 'type': FieldInfo(annotation=str, required=False, default='AuthorizedUserResponse'), 'user_group_uuids': FieldInfo(annotation=list[UUID], required=True, alias='userGroupUuids', alias_priority=2)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

class fair_wizard.automation.common.model.ErrorResponse(*, type: str = 'ErrorResponse', message: str)[source]
model_computed_fields = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config = {'populate_by_name': True}

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

model_fields = {'message': FieldInfo(annotation=str, required=True), 'type': FieldInfo(annotation=str, required=False, default='ErrorResponse')}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

class fair_wizard.automation.common.model.ForbiddenResponse(*, type: str = 'ForbiddenResponse', message: str)[source]
model_computed_fields = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config = {'populate_by_name': True}

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

model_fields = {'message': FieldInfo(annotation=str, required=True, alias='message', alias_priority=2), 'type': FieldInfo(annotation=str, required=False, default='ForbiddenResponse')}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.