Skip to content

feat(sdk): wrap every operation in the current API - #41

Merged
alihesari merged 15 commits into
mainfrom
feature/sdk-gaps
Oct 18, 2026
Merged

alihesari merged 15 commits into
mainfrom
feature/sdk-gaps

Conversation

@alihesari

Copy link
Copy Markdown
Member

What changed

Brings fopost up to the current REST API: the sdk-gaps checker reported 43 missing operations on main and reports none on this branch.

Added

  • Posting queue client.queue: list_slots, create_slot, update_slot, delete_slot, next, preview; schedule="queue" on posts.create / posts.update
  • Connect sessions client.connect_sessions: create, get
  • Webhooks client.webhook_endpoints: list, create, update, delete, test, deliveries, get_delivery, redeliver. Named apart from the existing fopost.webhooks verification module on purpose
  • Automations client.automations: list, create, get, update, delete, toggle, stats, versions, get_version, restore_version, runs, get_run
  • Logs client.logs.list
  • Posts: unpublish, validate_bulk_import, commit_bulk_import, rollback_bulk_import
  • Workspaces: create, update, delete. Labels: create, get, update, delete
  • Accounts: list_communities, sync_communities, search_communities, add_community, remove_community
  • Media: list, upload, delete. Analytics: overview, time_series, top_posts, labels, posts_table, posting_streak, demographics, inbox, collect
  • Models for every response above; MediaItem, Workspace and Label gain optional fields only

Escape hatch

None. Every method spells its path literally.

Not wrapped

POST /v1/automations/{id}/trigger is authenticated by the automation secret, not an API key, so it stays outside the client (the checker does not list it).

Tested

  • uv run pytest: 227 passed
  • uv run mypy, uv run ruff check ., uv run ruff format --check ., uv build: clean
  • node scripts/sdk-gaps.mjs --spec openapi.json <worktree>: sdk-gaps: complete, exit 0

Version

0.3.0 → 0.4.0 (minor: methods added, nothing removed). Not tagged.

Downstream

fopost-django and fopost-fastapi wrap this package; adding methods breaks neither, so no PR there.

@alihesari
alihesari merged commit c39d5fc into main Oct 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant