Skip to content

Person

sereto.models.person

Person

Bases: SeretoBaseModel

Model representing a person.

Attributes:

Name Type Description
type PersonType

Type of the person in relation to the assessment.

name str | None

Full name of the person.

business_unit str | None

Business unit the person belongs to.

email EmailStr | None

Email address of the person.

role str | None

Role of the person within the organization.

Source code in sereto/models/person.py
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
class Person(SeretoBaseModel):
    """Model representing a person.

    Attributes:
        type: Type of the person in relation to the assessment.
        name: Full name of the person.
        business_unit: Business unit the person belongs to.
        email: Email address of the person.
        role: Role of the person within the organization.
    """

    type: PersonType = Field(strict=False)  # `strict=False` allows coercion from string
    name: str | None = None
    business_unit: str | None = None
    email: EmailStr | None = None
    role: str | None = None

PersonType

Bases: StrEnum

Enum representing a person's role in regards to the current assessment.

Attributes:

Name Type Description
author

Author of the report.

requestor

Person who requested the assessment.

asset_owner

Owner of the asset being tested.

security_officer

Security officer responsible for the asset.

technical_contact

Person who can answer technical questions about the asset.

reviewer

Reviewer of the report.

Source code in sereto/models/person.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class PersonType(StrEnum):
    """Enum representing a person's role in regards to the current assessment.

    Attributes:
        author: Author of the report.
        requestor: Person who requested the assessment.
        asset_owner: Owner of the asset being tested.
        security_officer: Security officer responsible for the asset.
        technical_contact: Person who can answer technical questions about the asset.
        reviewer: Reviewer of the report.
    """

    author = "author"
    requestor = "requestor"
    asset_owner = "asset_owner"
    security_officer = "security_officer"
    technical_contact = "technical_contact"
    reviewer = "reviewer"