Repository navigation
feat(sdk): wrap every operation in the current API - #41
Merged
Merged
Conversation
…ks, automations, logs, analytics and bulk import
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Brings
fopostup to the current REST API: thesdk-gapschecker reported 43 missing operations onmainand reports none on this branch.Added
client.queue:list_slots,create_slot,update_slot,delete_slot,next,preview;schedule="queue"onposts.create/posts.updateclient.connect_sessions:create,getclient.webhook_endpoints:list,create,update,delete,test,deliveries,get_delivery,redeliver. Named apart from the existingfopost.webhooksverification module on purposeclient.automations:list,create,get,update,delete,toggle,stats,versions,get_version,restore_version,runs,get_runclient.logs.listunpublish,validate_bulk_import,commit_bulk_import,rollback_bulk_importcreate,update,delete. Labels:create,get,update,deletelist_communities,sync_communities,search_communities,add_community,remove_communitylist,upload,delete. Analytics:overview,time_series,top_posts,labels,posts_table,posting_streak,demographics,inbox,collectMediaItem,WorkspaceandLabelgain optional fields onlyEscape hatch
None. Every method spells its path literally.
Not wrapped
POST /v1/automations/{id}/triggeris 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 passeduv run mypy,uv run ruff check .,uv run ruff format --check .,uv build: cleannode scripts/sdk-gaps.mjs --spec openapi.json <worktree>:sdk-gaps: complete, exit 0Version
0.3.0→0.4.0(minor: methods added, nothing removed). Not tagged.Downstream
fopost-djangoandfopost-fastapiwrap this package; adding methods breaks neither, so no PR there.