Skip to content

Add Proposal expire methods #20

@evanvolgas

Description

@evanvolgas

Summary

The SDK is missing proposal expiration methods.

Core API endpoints

  • POST /proposals/{id}/expire - Expire a single proposal
  • POST /proposals/expire-pending - Expire all stale pending proposals

Methods to add

class ProposalsResource:
    def expire(self, proposal_id: UUID) -> Proposal:
        """Mark a proposal as expired."""
        
    def expire_pending(self, older_than_days: int = 30) -> dict:
        """Expire all pending proposals older than threshold."""

Use case

Cleanup of abandoned proposals that were never acknowledged.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions