Skip to content

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

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

alihesari merged 11 commits into
mainfrom
feature/sdk-gaps

Conversation

@alihesari

Copy link
Copy Markdown
Member

What changed

Brings com.fopost:fopost-java up to the current REST API. The sdk-gaps checker reported 66 missing operations on main; it now exits 0 on this branch.

Added

  • Posting queue queue(): listSlots, createSlot, updateSlot, deleteSlot, next, preview (QueueSlot, QueueSlotUpdate, QueueSlotDeleted, QueueSlotMove, QueueSlotParams). CreatePostParams.queue() / UpdatePostParams.queue() send schedule: queue.
  • Unpublish posts().unpublish (UnpublishResult).
  • Connect sessions connectSessions(): create, get (ConnectSession, ConnectSessionParams).
  • Webhook deliveries webhooks().deliveries, delivery, redeliver (WebhookDelivery).
  • Automation versions automations().versions, version, restoreVersion (AutomationVersion, AutomationVersionPage, AutomationGraph, AutomationRestore).
  • Request log logs().list (LogParams, LogPage, LogEntry, LogSummary).
  • Inbox analytics analytics().inbox (InboxAnalytics).

operationId escape hatch (javadoc only, every method verified to send that verb to that path)

  • GoogleBusinessResource: all 20 gbp operations (paths built by path(accountId, …)).
  • WhatsappResource: 31 operations (paths built by base(accountId)).
  • AccountsResource: 18 Discord operations (paths built by discord(accountId, …)).
  • BlogResource: regenerateBlogArticle, submitBlogArticle, rejectBlogArticle (shared action() helper).
  • AdsResource: reserveReachFrequency, cancelReachFrequency (shared reachFrequencyAction() helper).

Tested

  • New tests against FakeTransport: QueueTest, UnpublishTest, ConnectSessionsTest, WebhookDeliveriesTest, AutomationVersionsTest, LogsTest, InboxAnalyticsTest, each asserting verb, path, body and decoded response.
  • mvn -B verify: 188 tests, 0 failures, BUILD SUCCESS. No new compiler warnings.
  • sdk-gaps.mjs: complete, exit 0.

Version

0.3.0 → 0.4.0 in pom.xml, Version.java, README, CLAUDE.md; CHANGELOG entry added. Not tagged, not released.

Downstream

fopost-spring only wraps this SDK; adding methods does not break it, so no PR there.

@alihesari
alihesari merged commit 3d7e998 into main Oct 18, 2026
3 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