Skip to content

Add missing response models #17

@evanvolgas

Description

@evanvolgas

Summary

Several response models from the core API are missing from the SDK.

Models to add

Extended Asset models

class AssetWithTeam(Asset):
    """Asset with team name included."""
    team_name: str

class AssetWithOwners(Asset):
    """Asset with full owner details."""
    owner_team: Team
    owner_user: User | None

Proposal models

class AffectedAsset(BaseModel):
    """Asset affected by a proposal."""
    id: UUID
    fqn: str
    name: str

class AffectedTeam(BaseModel):
    """Team affected by a proposal."""
    id: UUID
    name: str
    assets: list[AffectedAsset]
    acknowledgment_status: str | None

Acknowledgment models

class AcknowledgmentResponse(BaseModel):
    """Full acknowledgment with team details."""
    id: UUID
    proposal_id: UUID
    team_id: UUID
    team_name: str
    response: AcknowledgmentResponseType
    comment: str | None
    created_at: datetime

Use case

These models are returned by various endpoints and needed for proper type hints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions