Skip to content

Add Audit resource #13

@evanvolgas

Description

@evanvolgas

Summary

The core tessera API has audit log endpoints that the SDK doesn't expose yet.

Core API endpoints to support

  • GET /audit - List audit events with filtering
  • GET /audit/{entity_type}/{entity_id} - Get audit history for specific entity

Models needed

class AuditEvent(BaseModel):
    id: UUID
    entity_type: str  # "asset", "contract", "team", etc.
    entity_id: UUID
    action: str  # "created", "updated", "deleted", etc.
    actor_id: UUID | None
    actor_type: str  # "user", "api_key", "system"
    payload: dict
    created_at: datetime

Resource methods

  • audit.list(entity_type=None, entity_id=None, action=None, since=None)
  • audit.get_history(entity_type, entity_id)

Use case

Compliance and debugging - understanding who changed what and when.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions