Skip to content

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

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

alihesari merged 14 commits into
mainfrom
feature/sdk-gaps

Conversation

@alihesari

Copy link
Copy Markdown
Member

What was added

Closes the 40 operations scripts/sdk-gaps.mjs reported for this SDK, plus the rest of each family.

  • Posts: unpublish(), validateBulkImport(), commitBulkImport(), rollbackBulkImport(); schedule: 'queue' on create() and update()
  • Queue ($client->queue()): listSlots, createSlot, updateSlot, deleteSlot, next, preview
  • Connect sessions ($client->connectSessions()): create, get
  • Webhooks ($client->webhooks()): list, create, update, delete, test, listDeliveries, getDelivery, redeliver
  • Automations ($client->automations()): list, stats, get, create, update, delete, toggle, listVersions, getVersion, restoreVersion, listRuns, getRun
  • Workspaces: create, update, delete; Workspace gains connectRedirectDomains and updatedAt
  • Accounts: X communities listCommunities, syncCommunities, searchCommunities, addCommunity, removeCommunity
  • Logs ($client->logs()): list
  • Analytics: overview, timeSeries, topPosts, labels, postsTable, postingStreak, demographics, inbox
  • Media: upload() (multipart), list(), delete(); MediaAsset carries every library field

Hand-written models for every response shape. normalizeFiles() moved from PostsResource to the Resource base so media and bulk import share it.

Not wrapped on purpose: POST /automations/{id}/trigger is authenticated with the automation's own secret, not an API key.

Escape hatch

None. Every operation is a real method with its path literal.

Testing

  • ./vendor/bin/phpunit: OK (236 tests, 1183 assertions)
  • ./vendor/bin/phpcs: clean
  • node scripts/sdk-gaps.mjs --spec openapi.json .: sdk-gaps: complete (with the comment-only operationId rule)

Version

Client::VERSION 0.3.0 → 0.4.0, CHANGELOG entry added. Not tagged.

fopost-laravel and fopost-symfony only gain methods, so no downstream PR is needed.

@alihesari
alihesari merged commit c06b896 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